:root {
  --bg: #020308;
  --accent-red: #ff2442;
  --accent-blue: #1f7cff;
  --accent-soft: rgba(255, 255, 255, 0.06);
  --text-main: #f5f7ff;
  --text-muted: #9ca3af;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-strong: 0 0 40px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* PAGE COMPTE */
.compte-page { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%); min-height: 100vh; }
.nav-compte { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px 40px; background: rgba(0,0,0,0.3); backdrop-filter: blur(20px);
}
.nav-user-quick { display: flex; align-items: center; gap: 15px; }
.quick-avatar { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #ff4444; }
.btn-logout-quick { 
    padding: 8px 16px; background: rgba(255,68,68,0.2); color: #ff6666; 
    border: 1px solid rgba(255,68,68,0.4); border-radius: 6px; text-decoration: none;
}

.compte-main { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.compte-header { text-align: center; padding: 60px 40px; margin-bottom: 40px; }
.user-profile { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.profile-avatar img { width: 120px; height: 120px; border-radius: 50%; border: 5px solid rgba(255,68,68,0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.profile-info h1 { font-size: 2.5em; margin: 0; background: linear-gradient(45deg, #ff4444, #ff6666); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.profile-info code { background: rgba(0,0,0,0.5); padding: 4px 12px; border-radius: 20px; font-family: 'Orbitron', monospace; }
.status-badge { background: rgba(76,175,80,0.2); color: #4caf50; padding: 8px 20px; border-radius: 25px; border: 1px solid rgba(76,175,80,0.3); }

.compte-section { padding: 40px; margin-bottom: 30px; }
.compte-section h2 { margin-top: 0; color: #fff; font-family: 'Orbitron', monospace; }

.roles-grid, .actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-top: 25px; }
.role-badge { 
    padding: 15px 20px; border-radius: 10px; background: rgba(255,255,255,0.05); 
    border-left: 4px solid #7289da; color: #fff; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; gap: 12px; transition: all 0.3s;
}
.role-badge:hover { transform: translateX(5px); background: rgba(255,255,255,0.1); }
.role-color { width: 12px; height: 12px; border-radius: 50%; }

.no-roles { text-align: center; padding: 40px; color: #aaa; }
.no-roles a { color: #5865f2; text-decoration: none; font-weight: 600; }

.action-btn { 
    display: flex; flex-direction: column; align-items: center; gap: 10px; 
    padding: 30px; background: rgba(255,255,255,0.05); border-radius: 20px; 
    text-decoration: none; color: #fff; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.1);
}
.action-btn:hover { transform: translateY(-5px); background: rgba(255,255,255,0.1); }
.discord-join { background: rgba(88,101,242,0.2); border-color: rgba(88,101,242,0.4); }
.discord-join:hover { background: rgba(88,101,242,0.3); }


/* MENU UTILISATEUR DÉROULANT */
.nav-user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Orbitron', monospace;
}

.nav-user-header:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 0, 0, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-avatar.no-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
  border: 3px solid rgba(88, 101, 242, 0.8);
}

.nav-username {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 10px;
  color: #aaa;
  transition: transform 0.3s ease;
}

.nav-user-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: #fff;
}

/* MENU DÉROULANT */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
}

.nav-user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(88, 101, 242, 0.2);
  color: #fff;
  padding-left: 24px;
}

.dropdown-item.logout {
  border-bottom: none;
  color: #ff6666;
}

.dropdown-item.logout:hover {
  background: rgba(255, 102, 102, 0.2);
  color: #ff9999;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-user-header {
    padding: 8px 12px;
  }
  
  .nav-username {
    max-width: 80px;
  }
  
  .dropdown-menu {
    right: -20px;
    min-width: 200px;
  }
}


html, body {
  height: 100%;
  scroll-behavior: smooth;
}

/* Utilisateur connecté dans la navbar */
.nav-user-connected {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 0, 0.3);
}

.nav-username {
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.btn-logout {
  padding: 6px 14px;
  background: rgba(255, 0, 0, 0.2);
  color: #ff4444;
  border: 1px solid rgba(255, 0, 0, 0.4);
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s;
}

.btn-logout:hover {
  background: rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.6);
}


body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 0% 0%, #120016 0, #020308 40%, #000000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* fond avec glow rouge/bleu */
.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 36, 66, 0.25), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(31, 124, 255, 0.22), transparent 55%);
  opacity: 0.9;
  z-index: -2;
}

/* ========= ÉCRAN DE CONNEXION ANONYMOUS ========= */

#login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 0% 0%, #050810 0, #020308 45%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-family: 'Inter', system-ui, sans-serif;
  transition: opacity 0.7s ease;
}

#login-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.login-panel {
  width: 320px;
  max-width: 90vw;
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.95), rgba(11, 15, 30, 0.95));
  border: 1px solid rgba(0, 255, 170, 0.5);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9);
}

.login-panel h2 {
  font-family: 'Orbitron', system-ui;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a7f3d0;
  margin-bottom: 18px;
  text-align: center;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.login-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6ee7b7;
}

#auto-user,
#auto-pass {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #e5e7eb;
  font-size: 13px;
  padding: 7px 9px;
  outline: none;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

#auto-user:focus,
#auto-pass:focus {
  border-color: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.7);
}

.login-status {
  margin-top: 8px;
  font-size: 11px;
  color: #22c55e;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
}

/* ========= NAVBAR ========= */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7vw 14px;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(2, 3, 8, 0.92), rgba(2, 3, 8, 0.65));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 64px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
}

.logo-text {
  font-family: 'Orbitron', system-ui;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

/* ========= LAYOUT GÉNÉRAL ========= */

main {
  padding: 40px 7vw 60px;
}

/* GLASSMORPHISM CARD */

.glass {
  background: linear-gradient(135deg, rgba(7, 12, 30, 0.9), rgba(7, 6, 20, 0.85));
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.glass.soft {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* ========= HERO ========= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.1fr);
  gap: 40px;
  padding: 40px 40px 32px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255, 36, 66, 0.7), rgba(31, 124, 255, 0.7)) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.25;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: 'Orbitron', system-ui;
  font-size: clamp(40px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.hero-sub {
  max-width: 480px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

/* HERO SIDE */

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: center;
}

.stat-card {
  padding: 18px 18px 16px;
}

.stat-card h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.stat-ip {
  font-family: 'Orbitron', system-ui;
  font-size: 14px;
  margin-bottom: 4px;
}

.stat-status {
  font-size: 13px;
  color: var(--text-muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* ========= BOUTONS ========= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border 0.12s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-red), #8b031f);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 24px rgba(255, 36, 66, 0.7);
  color: #fff;
}

.btn.primary:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 0 30px rgba(255, 36, 66, 0.9);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn.full {
  width: 100%;
}

.btn.discord {
  background: linear-gradient(135deg, #5865f2, #3134b7);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 0 26px rgba(88, 101, 242, 0.7);
}

/* ========= SECTIONS ========= */

.section {
  margin-bottom: 60px;
}

.section-header {
  max-width: 480px;
  margin-bottom: 26px;
}

.section-header h2 {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* GRIDS & CARDS */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  padding: 20px 20px 18px;
}

.card h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.list li::before {
  content: "•";
  color: var(--accent-red);
  margin-right: 8px;
}

/* LORE LAYOUT */

.lore-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lore-block p:last-child {
  margin-bottom: 0;
}

/* ACTIVITÉS */

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.activity {
  position: relative;
  overflow: hidden;
}

.activity::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 36, 66, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.activity:hover::after {
  opacity: 1;
}

/* FORMULAIRE */

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

input,
textarea {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 14px;
  padding: 8px 10px;
  outline: none;
  transition: border 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(31, 124, 255, 0.5);
  background: rgba(0, 0, 0, 0.8);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* CONTACT */

.section-contact {
  display: flex;
  justify-content: center;
}

.contact-card {
  max-width: 480px;
  text-align: center;
}

.contact-card p {
  margin: 8px 0 16px;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 7vw 22px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 900px) {
  .nav {
    padding-inline: 16px;
  }

  main {
    padding-inline: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px 18px 18px;
  }

  .hero-side {
    flex-direction: row;
    align-items: stretch;
  }

  .stat-card {
    flex: 1;
  }

  .grid-2,
  .lore-layout {
    grid-template-columns: 1fr;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .logo-text {
    font-size: 16px;
  }

  .hero {
    margin-top: 12px;
  }
}
