/* ============================================================
   GWO MATOUW — feuille de style principale
   Palette: vert vif (accent principal, CTA -- le ton "jeu vidéo
   coloré" plutôt que le sombre-doré générique) + violet (secondaire)
   sur un fond dégradé nuit-bleu-vert. Baloo 2 pour les titres (rond,
   épais, ludique -- pas un serif "dark fantasy"), Inter pour le texte.
   ============================================================ */

/* Le thème clair redéfinit juste ces variables, jamais les règles elles-mêmes : tout le CSS qui
   suit ne lit que des var(--...), donc le thème change sans toucher un seul sélecteur. Deux
   tokens à part, --accent-text et --accent-gold-text, pour le texte (liens, libellés, chevrons) :
   les mêmes teintes vives que --green-light/--gold-light servent AUSSI de fond de dégradé sur
   les boutons, où elles doivent rester claires quel que soit le thème -- en texte, sur un fond
   blanc, ce même vert/or pâle devient illisible, d'où la version plus sombre en thème clair. */
:root {
  --bg: #0b1512;
  --bg-soft: #0f1c17;
  --panel: rgba(20, 40, 32, 0.55);
  --panel-solid: #14241d;
  --border: rgba(139, 213, 87, 0.22);
  --border-strong: rgba(139, 213, 87, 0.55);

  --green: #79c93a;
  --green-light: #a3e635;
  --green-dark: #3f7a1f;

  --gold: #f0b429;
  --gold-light: #ffd873;

  --violet: #8b5cf6;
  --violet-light: #c084fc;

  --text: #eef6ea;
  --text-dim: #a9c2a6;
  --text-faint: #6f8a71;

  --accent-text: var(--green-light);
  --accent-gold-text: var(--gold-light);

  --danger: #ef4444;
  --success: #4ade80;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);

  --font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

:root[data-theme="light"] {
  --bg: #f5f9f2;
  --bg-soft: #eaf1e5;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #ffffff;
  --border: rgba(63, 122, 31, 0.22);
  --border-strong: rgba(63, 122, 31, 0.45);

  --text: #16241a;
  --text-dim: #46583f;
  --text-faint: #6b7c63;

  --accent-text: #2f6b16;
  --accent-gold-text: #8a5a06;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(121, 201, 58, 0.16), transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(139, 92, 246, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.2;
  text-wrap: balance;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; position: relative; }
.section.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.section.reveal.is-visible { opacity: 1; transform: none; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-soft); }

/* Une vraie image du jeu en fond de section, assombrie pour que le texte reste lisible --
   au lieu d'une petite galerie à part, l'image porte tout le bloc. `no-repeat` est
   essentiel : sans lui, "cover" calcule quand même une taille et l'image se répétait en
   double sur les sections très larges. `fixed` (desktop seulement -- iOS le gère mal) donne
   un léger effet de profondeur au défilement. */
.section--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
@media (min-width: 901px) {
  .section--bg { background-attachment: fixed; }
}
/* Toujours sombre, même en thème clair : une vraie photo derrière a besoin d'un voile sombre
   pour rester lisible quel que soit le thème -- comme le fond de la vidéo d'accueil, cette
   bande est une île volontairement à part du reste du site, jamais de var(--bg) ici. */
.section--bg__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, #0b1512 0%, rgba(11,21,18,0.90) 14%, rgba(11,21,18,0.92) 86%, #0b1512 100%);
}
.section--bg > .container { position: relative; z-index: 1; }
.section--bg h2, .section--bg .eyebrow, .section--bg .ak-title { text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
/* Le texte hérite d'une couleur claire fixe -- jamais var(--text), qui suivrait le thème --
   parce que le fond photo + voile sombre de cette section, lui, ne change jamais de thème. */
.section--bg { color: #eef6ea; }
.section--bg .section-head p,
.section--bg .rank-card span,
.section--bg .class-card p { color: #a9c2a6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-dim); font-size: 16.5px; }

/* ─── Boutons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(180deg, var(--green-light), var(--green));
  color: #12280a;
  box-shadow: 0 10px 30px -8px rgba(121, 201, 58, 0.55);
}
.btn--gold:hover { color: #12280a; box-shadow: 0 16px 36px -8px rgba(121, 201, 58, 0.7); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }
/* Dans le header et le hero, toujours sombres, un bouton fantôme reste toujours clair --
   jamais var(--text), qui suivrait le thème alors que ce fond-là, lui, n'en change jamais. */
.site-header .btn--ghost, .hero .btn--ghost,
.site-header .btn--ghost:hover, .hero .btn--ghost:hover { color: #eef6ea; }

.btn--violet {
  background: linear-gradient(180deg, var(--violet-light), var(--violet));
  color: #1c1030;
}
.btn--violet:hover { color: #1c1030; }

.btn--danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
.btn--danger:hover { background: rgba(239, 68, 68, 0.28); color: #fecaca; }

.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ─── Header ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(7, 7, 12, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}
.brand .dot { color: var(--gold); }
.brand img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: #ffd873; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ─── Menus déroulants de la barre (calqués sur la vraie navbar Dofus :
   un survol ouvre un petit panneau sous l'item). ────────────────── */
.nav-dropdown { position: relative; }
.nav-top {
  display: flex;
  align-items: center;
  gap: 4px;
  /* Couleur fixe, pas var(--text-dim) : la barre elle-même reste toujours sombre (comme chez
     Dofus), donc son texte doit toujours rester clair, même en thème clair. */
  color: #a9c2a6;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}
.nav-top i { font-style: normal; font-size: 10px; opacity: 0.7; }
.nav-dropdown:hover .nav-top,
a.nav-top:hover { color: #eef6ea; }
/* Le panneau commence collé (top:100%, sans marge) et garde 14px de remplissage
   transparent AU-DESSUS de la carte visible : ce remplissage fait partie de la zone
   survolée, donc la souris ne "sort" jamais du menu en descendant du bouton vers les
   liens. Avec une marge à la place du remplissage, cette bande était un trou mort où
   :hover se coupait, et le menu se refermait avant que la souris arrive dessus. */
.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  min-width: 190px;
  z-index: 200;
}
.dropdown-panel--right { left: auto; right: 0; transform: none; }
.nav-dropdown:hover .dropdown-panel { display: block; }
.dropdown-panel__card {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: rgba(121, 201, 58, 0.12); color: var(--accent-text); }
.dropdown-panel a.logout { color: #fca5a5; }
.dropdown-panel a.logout:hover { background: rgba(239,68,68,0.12); color: #fca5a5; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #eef6ea;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #eef6ea; }

.lang-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: #6f8a71;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 5px 9px;
}

.avatar-tag { padding: 0; }
.checkbox-line { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-dim); margin: 4px 0 4px; cursor: pointer; }
.checkbox-line input { margin-top: 3px; flex-shrink: 0; }
.checkbox-line a { color: var(--accent-text); }

.admin-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-tool-card {
  display: block; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-decoration: none; transition: border-color 0.2s ease;
}
.admin-tool-card:hover { border-color: var(--border-strong); }
.admin-tool-card strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.admin-tool-card p { margin: 0; font-size: 12.5px; color: var(--text-faint); }
@media (max-width: 600px) { .admin-tools { grid-template-columns: 1fr; } }

.activity-feed { display: flex; flex-direction: column; gap: 2px; }
.activity-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-dim);
}
.activity-item__icon { font-size: 16px; color: var(--gold-light); flex-shrink: 0; }
.activity-item time { margin-left: auto; font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }
.activity-item a { color: var(--accent-text); }

.emblem-badge {
  width: 72px; height: 72px; border-radius: 999px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4); border: 2px solid rgba(255,255,255,0.25);
}

.avatar-circle, .account-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--green-light), var(--green-dark));
  color: #12280a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.account-card__avatar { width: 40px; height: 40px; flex-shrink: 0; }
.account-card strong { display: block; font-size: 14px; }
.account-card span { font-size: 11.5px; color: var(--text-faint); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #eef6ea;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
}

/* ─── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 70% at 85% 15%, rgba(163, 230, 53, 0.22), transparent 60%),
    radial-gradient(45% 55% at 10% 85%, rgba(139, 92, 246, 0.20), transparent 60%),
    linear-gradient(160deg, #0f1c17 0%, #0b1512 55%, #0a1410 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.5) 0, transparent 60%),
    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,0.35) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.3) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 25%, rgba(255,255,255,0.3) 0, transparent 60%),
    radial-gradient(2px 2px at 55% 15%, rgba(255,255,255,0.4) 0, transparent 60%);
  animation: heroTwinkle 5s ease-in-out infinite alternate;
}
@keyframes heroTwinkle { from { opacity: 0.5; } to { opacity: 1; } }

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* #0b1512 en dur, pas var(--bg) : la vidéo reste une île sombre même en thème clair. */
  background:
    linear-gradient(100deg, rgba(11,21,18,0.92) 0%, rgba(11,21,18,0.55) 45%, rgba(11,21,18,0.25) 75%),
    linear-gradient(0deg, #0b1512 0%, transparent 25%);
}

.hero { color: #eef6ea; }
.hero-content { max-width: 600px; padding: 110px 0 60px; }
.hero-content .eyebrow { color: var(--green-light); }
.hero-content h1 { font-size: clamp(38px, 5.2vw, 60px); }
.hero-content h1 span { color: var(--green-light); }
.hero-content p {
  font-size: 18px;
  color: #a9c2a6;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Vrais joueurs (les portraits sont de vrais rendus in-game,
   basse résolution d'origine -- affichés à taille quasi native,
   jamais agrandis au point de pixeliser). ────────────────────── */
.player-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.player-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.player-chip .frame {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: var(--panel-solid);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.player-chip img { height: 92px; width: auto; image-rendering: -webkit-optimize-contrast; }
.player-chip span { font-size: 12.5px; color: var(--text-faint); font-weight: 600; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--green-light);
}
.hero-stat span { font-size: 12.5px; color: #6f8a71; text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── Feature rows (à la "refonte graphique") ─────────────── */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.feature-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55));
}
.feature-text .eyebrow { color: var(--violet-light); }
.feature-text h2 { font-size: 30px; }
.feature-text p { color: var(--text-dim); font-size: 15.5px; }

/* Les deux blocs de fonctionnalités n'ont pas de vraie capture d'écran du jeu -- plutôt qu'une
   fausse image, un gros chiffre décoratif et honnête. */
.feature-media--deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.feature-media--deco span {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.feature-media--deco em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
}
.feature-media--green { background: linear-gradient(160deg, var(--green-light), var(--green-dark)); }
.feature-media--violet { background: linear-gradient(160deg, var(--violet-light), #4c1d95); }
.feature-media--deco::after { display: none; }

/* ─── Témoignages ──────────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial-card p {
  font-size: 15px;
  color: var(--text);
  font-style: italic;
  margin: 0 0 16px;
}
.testimonial-card__author strong { display: block; font-size: 13.5px; }
.testimonial-card__author span { font-size: 12px; color: var(--text-faint); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ─── Communauté ───────────────────────────────────────────── */
.social-block {
  text-align: center;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
.social-block > span {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.social-icons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.social-icons a {
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}
.social-icons a:hover { background: var(--green); color: #12280a; border-color: var(--green); }

/* ─── Le titre "ak-title / ak-baseline" façon blocs Dofus ────── */
.ak-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ak-baseline { color: var(--text-dim); font-size: 14.5px; margin-top: 4px; }
.block-title-row { margin-bottom: 28px; }
.text-center { text-align: center; margin-top: 24px; }

/* ─── Bloc actus + promo, 2 colonnes ──────────────────────────── */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch; }
.two-col__news { display: flex; flex-direction: column; gap: 14px; }
.mini-news {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
}
.mini-news:hover { border-color: var(--border-strong); }
.mini-news time { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.mini-news strong { display: block; font-size: 15.5px; color: var(--text); margin: 4px 0; }
.mini-news p { margin: 0; font-size: 13.5px; color: var(--text-dim); }
.promo-box {
  border-radius: var(--radius);
  padding: 32px 28px;
  background: linear-gradient(160deg, rgba(121,201,58,0.16), rgba(139,92,246,0.10));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.promo-box .ak-baseline { margin-top: -6px; }

/* ─── Classement en vedette, 4 colonnes ───────────────────────── */
.rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rank-card {
  display: block;
  background: rgba(20, 40, 32, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.rank-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.rank-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.rank-card span { font-size: 12px; color: var(--text-faint); }

/* ─── Le launcher, 2 colonnes ──────────────────────────────────── */
.launcher-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.launcher-row__img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.08); }
.launcher-row__text p { color: var(--text-dim); font-size: 15px; }
.launcher-row__text ul { padding-left: 20px; color: var(--text-dim); font-size: 14.5px; }
.launcher-row__text li { margin-bottom: 8px; }

/* ─── Classes grid ─────────────────────────────────────────── */

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.class-card {
  background: rgba(20, 40, 32, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: default;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}
.class-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  background: rgba(121, 201, 58, 0.18);
}
/* La pastille de classe : réutilisée partout (grille des classes, classement, comptes), pas
   seulement dans la carte de classe -- d'où une règle générale et non "sous" .class-card. */
.rune {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1a1006;
  background: linear-gradient(150deg, var(--rune-a, var(--gold-light)), var(--rune-b, var(--gold)));
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.55);
}
.rune svg { width: 55%; height: 55%; }

.class-pill { display: inline-flex; align-items: center; gap: 8px; }

.class-card strong { display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 6px; }
.class-card p {
  font-size: 12px;
  color: var(--text-faint);
  margin: 0;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.2s ease, max-height 0.2s ease, margin 0.2s ease;
}
.class-card:hover p { opacity: 1; max-height: 60px; margin-top: 4px; }

/* ─── News ─────────────────────────────────────────────────── */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--panel-solid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card__img { aspect-ratio: 16/9; background-size: cover; background-position: center; position: relative; }
.news-card__img::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 40%, rgba(255,255,255,0.6) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 65%, rgba(255,255,255,0.4) 0, transparent 60%),
    radial-gradient(2px 2px at 80% 30%, rgba(255,255,255,0.5) 0, transparent 60%);
}
.news-card__img--0 { background: linear-gradient(150deg, var(--green-light), var(--green-dark)); }
.news-card__img--1 { background: linear-gradient(150deg, var(--violet-light), #4c1d95); }
.news-card__img--2 { background: linear-gradient(150deg, var(--gold-light), #92400e); }
.news-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card time { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.news-card h3 { font-size: 17px; margin: 8px 0; }
.news-card p { color: var(--text-dim); font-size: 14px; flex: 1; }
.news-card__link { font-size: 13px; font-weight: 700; color: var(--accent-gold-text); margin-top: 8px; }

/* ─── Download banner ──────────────────────────────────────── */

.download-banner {
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(240,180,41,0.16), transparent 70%),
    linear-gradient(180deg, #14141f, #0a0a12);
  border: 1px solid var(--border);
}
.download-banner h2 { font-size: 34px; }
.download-banner p { color: var(--text-dim); max-width: 520px; margin: 0 auto 30px; }

/* ─── Footer ───────────────────────────────────────────────── */

.site-footer { background: #050508; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}
/* Le footer, comme le header, reste toujours sombre (#050508 plus haut) : couleurs de texte
   fixes ici aussi, jamais var(--text-*) qui suivraient le thème. */
.footer-brand p { color: #6f8a71; font-size: 13.5px; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6f8a71;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #a9c2a6; font-size: 13.5px; }
.footer-col a:hover { color: #ffd873; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6f8a71;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Cards / forms génériques (comptes, boutique, etc.) ────── */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.page-hero {
  padding: 64px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero h1 { font-size: 38px; }
.page-hero p { color: var(--text-dim); max-width: 560px; margin: 0 auto; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-gold-text);
  margin-bottom: 7px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--border-strong);
}

.tabs { display: flex; gap: 8px; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.tabs a {
  padding: 10px 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-faint);
  border-bottom: 2px solid transparent;
  margin-right: 20px;
}
.tabs a.active { color: var(--accent-gold-text); border-color: var(--gold); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert--error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #fca5a5; }
.alert--success { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.35); color: #86efac; }

/* ─── FAQ en accordéon : <details>/<summary> natifs, pas de JS ────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__chevron { color: var(--accent-text); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 18px; }

.ranking-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.ranking-tab { padding: 10px 18px; font-size: 14px; font-weight: 700; color: var(--text-faint); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ranking-tab:hover { color: var(--text); }
.ranking-tab.active { color: var(--accent-text); border-bottom-color: var(--green); }
.ranking-sort { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 12.5px; color: var(--text-faint); }
.ranking-sort a { color: var(--text-faint); text-decoration: none; padding: 3px 9px; border-radius: 999px; }
.ranking-sort a.active { color: var(--accent-text); background: var(--panel); font-weight: 700; }
.ranking-sort a:hover { color: var(--text); }

.ranking-search { display: flex; gap: 10px; align-items: center; margin: 18px 0 22px; flex-wrap: wrap; }
.ranking-search input[type="text"] {
  flex: 1; min-width: 200px; max-width: 320px; padding: 10px 14px;
  background: var(--panel-solid); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px;
}
.ranking-search input[type="text"]:focus { outline: none; border-color: var(--border-strong); }
.ranking-search__clear { font-size: 13px; color: var(--text-faint); }
.ranking-search__clear:hover { color: var(--text); }
.ranking-search__field { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.ranking-search__field input[type="text"] { width: 100%; max-width: none; }
.ranking-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.ranking-suggestions__item { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; text-decoration: none; }
.ranking-suggestions__item:hover { background: rgba(255,255,255,0.05); }
.ranking-suggestions__item strong { font-size: 13.5px; color: var(--text); }
.ranking-suggestions__item span { font-size: 11.5px; color: var(--text-faint); }

.pw-strength { margin-top: 8px; }
.pw-strength__bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.pw-strength__bar span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 0.2s ease, background 0.2s ease; }
.pw-strength__fill--faible { background: #ef4444; }
.pw-strength__fill--moyen { background: var(--gold); }
.pw-strength__fill--bon { background: var(--green-light); }
.pw-strength__fill--excellent { background: var(--green); }
.pw-strength__label { display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pw-strength__label--faible { color: #ef4444; }
.pw-strength__label--moyen { color: var(--gold); }
.pw-strength__label--bon { color: var(--green-light); }
.pw-strength__label--excellent { color: var(--green); }

.changelog-entry { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; }
.changelog-entry__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.changelog-entry__version { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--accent-text); }
.changelog-entry__head time { font-size: 12.5px; color: var(--text-faint); }
.changelog-entry__list { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 14px; }
.changelog-entry__list li { margin-bottom: 6px; }

table.ranking { width: 100%; border-collapse: collapse; }
table.ranking th, table.ranking td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
table.ranking th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
table.ranking tr:hover td { background: rgba(255,255,255,0.02); }
.rank-badge { display: inline-flex; width: 26px; height: 26px; border-radius: 999px; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; background: rgba(255,255,255,0.06); }
.rank-badge.gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #241a02; }
.rank-badge.silver { background: linear-gradient(180deg, #e5e7eb, #9ca3af); color: #1f2937; }
.rank-badge.bronze { background: linear-gradient(180deg, #d97757, #92400e); color: #2a1204; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.shop-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; }
.shop-item img { width: 52px; height: 52px; background: rgba(0,0,0,0.3); border-radius: 8px; }
.shop-item h4 { margin: 0 0 4px; font-size: 14.5px; }
.shop-item .price { color: var(--gold-light); font-weight: 700; font-size: 14px; }
.shop-item .effects { color: var(--text-faint); font-size: 12px; margin-top: 6px; }
.shop-cat { margin: 40px 0 18px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--violet-light); }

.account-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.char-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.02); margin-bottom: 10px; }
.char-row .lvl { color: var(--text-faint); font-size: 12.5px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a10;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  }
  .main-nav.open a, .main-nav.open .nav-top { padding: 10px 0; }
  /* Pas de survol au doigt : les sous-menus restent ouverts en permanence sur mobile. */
  .main-nav.open .dropdown-panel {
    display: block;
    position: static;
    transform: none;
    padding: 0;
    margin: 0 0 8px 14px;
  }
  .main-nav.open .dropdown-panel__card { background: transparent; border: none; box-shadow: none; padding: 0; }
  .main-nav.open .dropdown-panel a { padding: 7px 0; color: var(--text-faint); }
  .nav-toggle { display: block; }
  .site-header { position: relative; flex-wrap: wrap; }
  .feature-row, .footer-grid, .account-grid { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .news-grid, .two-col, .rank-grid, .launcher-row { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}
