/* ============================================================
   THÈMES — toutes les couleurs du site vivent ici.
   Le thème est choisi via l'attribut data-theme sur <html>
   (posé par le script inline du <head>, persisté en localStorage).
   Les variantes -rgb servent aux couleurs avec transparence rgba().
   ============================================================ */
:root {
  --bg: #14110b;          /* fond principal */
  --bg-rgb: 20, 17, 11;
  --bg-deep: #100d07;     /* fond des bandes sombres (dispo) */
  --bg-soft: #16120b;     /* fond des rangées de la tier list */
  --ink: #ece3cf;         /* texte principal */
  --ink-bio: #c4b696;     /* texte de la bio */
  --soft: #a89a7c;        /* texte secondaire */
  --muted: #8d8062;       /* labels, légendes */
  --gold: #d3b06b;        /* accent doré */
  --gold-rgb: 211, 176, 107;
  --gold-bright: #f0dcae; /* doré clair (hovers) */
  --line: #241e10;        /* bordures discrètes */
  --line-2: #2b2415;      /* bordures un cran plus visibles */
  --node-border: #6b5a34; /* points de la timeline */
  --video-bg: #10151f;    /* fond des lecteurs vidéo */
  --img-ph: #2b2415;      /* placeholder d'images */
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4ecd9;
  --bg-rgb: 244, 236, 217;
  --bg-deep: #ede2c6;
  --bg-soft: #efe6cf;
  --ink: #241c0e;
  --ink-bio: #4a3d22;
  --soft: #6b5a38;
  --muted: #8a7750;
  --gold: #9a7527;
  --gold-rgb: 154, 117, 39;
  --gold-bright: #7c5d1e;
  --line: #ddceaa;
  --line-2: #d2c096;
  --node-border: #b39a63;
  --video-bg: #e7dcc0;
  --img-ph: #e4d7b6;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
img { max-width: 100%; display: block; }
.img-missing {
  background: repeating-linear-gradient(45deg, rgba(var(--gold-rgb),.08), rgba(var(--gold-rgb),.08) 10px, transparent 10px, transparent 20px);
  outline: 1px dashed rgba(var(--gold-rgb),.5);
  outline-offset: -1px;
  min-height: 40px;
}

/* --- TRANSITION ENTRE LES DEUX PAGES (Coaching <-> Joueur) ---
   Fondu enchaîné natif entre pages (Chrome, Edge, Safari récents) ; le menu reste
   en place pendant le changement. Navigateurs sans support : navigation normale. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.gNav { view-transition-name: site-nav; }

/* --- APPARITION AU SCROLL (classe posée par main.js) --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- BARRE DE PROGRESSION DE SCROLL (posée en haut de page par main.js) --- */
.scrollBar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 100; transition: width .12s linear;
}
@media (prefers-reduced-motion: reduce) { .scrollBar { transition: none; } }

/* --- PARTICULES AMBIANTES (braises + plumes) dessinées sur canvas --- */
/* Canvas plein écran, non cliquable, au-dessus du contenu mais sous la nav. */
.fxCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 8;
}
@media (prefers-reduced-motion: reduce) { .fxCanvas { display: none; } }

/* --- NAVIGATION RAPIDE : points à droite de l'écran --- */
.dotNav {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}
.dotNavItem { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.dotNavDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  border: 1px solid rgba(var(--gold-rgb),.5);
  background: transparent;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.dotNavItem:hover .dotNavDot { border-color: var(--gold); transform: scale(1.25); }
.dotNavItem.is-active .dotNavDot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(var(--gold-rgb),.7);
}
.dotNavLabel {
  font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  transition: color .25s ease;
}
.dotNavItem:hover .dotNavLabel,
.dotNavItem.is-active .dotNavLabel { color: var(--gold); }
/* Sous 1600 px, les libellés toujours visibles chevauchaient la photo du hero :
   on n'affiche alors que celui de la section active ou survolée. */
@media (max-width: 1600px) {
  .dotNavLabel { opacity: 0; transform: translateX(6px); transition: color .25s ease, opacity .25s ease, transform .25s ease; }
  .dotNavItem:hover .dotNavLabel,
  .dotNavItem:focus-visible .dotNavLabel,
  .dotNavItem.is-active .dotNavLabel { opacity: 1; transform: none; }
}
@media (max-width: 940px) { .dotNav { display: none; } }

.cGold { color: var(--gold); }
.cCap { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; color: var(--muted); letter-spacing: .2em; margin-top: 10px; text-align: center; }
.cSk { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .26em; color: var(--muted); margin-top: 10px; }
.cH2s { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .3em; color: var(--muted); text-align: center; margin-top: 12px; }
.cSub { font-size: 15px; letter-spacing: .08em; color: var(--soft); }
.cAvIn { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; object-fit: cover; }
.cKick { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 12px; letter-spacing: .34em; color: var(--gold); }
.cBtn { display: inline-block; border: 1px solid var(--gold); color: var(--gold); padding: 18px 46px; font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 12px; letter-spacing: .26em; margin-top: 40px; background: none; cursor: pointer; }

/* --- COPIE DU PSEUDO DISCORD --- */
/* Les <button> réutilisent le style des liens (reset navigateur). */
button.gSoc, button.copyBtn { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; color: inherit; text-align: center; }
button.gSoc { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .18em; }
/* Bulle « COPIED! » affichée après un clic sur un élément data-copy. */
[data-copy] { position: relative; }
[data-copy][data-copied]::after {
  content: 'COPIED!';
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  background: var(--gold); color: var(--bg);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .18em;
  padding: 5px 10px; border-radius: 4px; white-space: nowrap; pointer-events: none;
  animation: copiedPop .18s ease;
}
/* Variante à message personnalisé (boutons coaching) : texte sur plusieurs lignes,
   limité à la largeur du bouton pour ne jamais déborder de l'écran. */
[data-copy][data-copied-msg][data-copied]::after {
  content: attr(data-copied-msg);
  width: 100%; white-space: normal; line-height: 1.5; text-align: center;
  color: #14110b;
}
@keyframes copiedPop {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.gNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px; /* Réduit à 16px en haut/bas pour affiner la barre */
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.gWord { font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: 24px; font-weight: 600; letter-spacing: .14em; }
.gNavL { display: flex; gap: 24px; font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .2em; color: var(--soft); flex-wrap: wrap; }
.gNavL a { position: relative; padding-bottom: 3px; transition: color .2s ease; }
.gNavL a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .28s ease;
}
.gNavL a:hover { color: var(--gold); opacity: 1; }
.gNavL a:hover::after { right: 0; }
.gLive { display: flex; align-items: center; gap: 9px; font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.gLive:hover { opacity: 1; text-shadow: 0 0 12px rgba(var(--gold-rgb),.55); }
.gDot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(var(--gold-rgb),.8); }
/* Anneau « live » qui se propage vers l'extérieur pour signaler la dispo. */
.gDot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(var(--gold-rgb), .6);
  animation: livePulse 2.2s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), .55); }
  70% { box-shadow: 0 0 0 8px rgba(var(--gold-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0); }
}
@media (prefers-reduced-motion: reduce) { .gDot::after { animation: none; } }

/* Portables (≈ 1280 px) : menu resserré pour tenir sur UNE ligne sur les deux pages,
   sinon la barre change de hauteur d'une page à l'autre. */
@media (max-width: 1500px) {
  .gNav { padding-left: 32px; padding-right: 32px; }
  .gNavL { gap: 16px; letter-spacing: .14em; }
  .gNavR { gap: 10px; }
  .gLive { letter-spacing: .14em; }
  .pageSwitch a { padding: 7px 11px; letter-spacing: .12em; }
}
@media (max-width: 1100px) {
  .gNav { padding-left: 24px; padding-right: 24px; }
  .gNavL { gap: 12px; letter-spacing: .08em; }
  .gWord { font-size: 21px; letter-spacing: .1em; }
}
/* Plus étroit : le badge « ouvert / réserver » (déjà couvert par le hero) laisse la place. */
@media (max-width: 1320px) and (min-width: 1001px) { .gLive { display: none; } }

/* Interrupteur de page : COACHING | JOUEUR (la page courante est pleine). */
.pageSwitch { display: flex; border: 1px solid rgba(var(--gold-rgb),.45); border-radius: 999px; overflow: hidden; }
.pageSwitch a {
  padding: 7px 14px;
  font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace;
  font-size: 10px; letter-spacing: .16em; color: var(--gold);
  transition: background .2s ease, color .2s ease;
}
.pageSwitch a:hover { background: rgba(var(--gold-rgb),.12); opacity: 1; }
.pageSwitch a.is-active { background: var(--gold); color: #14110b; }
.pageSwitch a:focus-visible { outline: 1px solid var(--gold); outline-offset: -3px; }

/* Groupe de droite de la nav : langues + thème + badge */
.gNavR { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.langSwitch { display: flex; gap: 4px; }
.langSwitch button {
  background: none; border: 1px solid transparent; border-radius: 4px;
  padding: 5px 8px; cursor: pointer;
  font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace;
  font-size: 10px; letter-spacing: .12em; color: var(--muted);
  transition: color .2s ease, border-color .2s ease;
}
.langSwitch button:hover { color: var(--gold); }
.langSwitch button.is-active { color: var(--gold); border-color: rgba(var(--gold-rgb),.45); }
.themeToggle {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--gold); font-size: 18px; display: flex; align-items: center;
  transition: transform .2s ease;
}
.themeToggle:hover { transform: rotate(15deg) scale(1.15); }

.gHero {
  position: relative;
  overflow: hidden;
  text-align: center;
  height: calc(100vh - 64px); /* Ajusté pour matcher la navbar fine */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gHeroBg {
  position: absolute; inset: 0; background-size: cover; background-position: center 22%; opacity: .6;
  animation: heroKenBurns 24s ease-in-out infinite alternate;
}
:root[data-theme="light"] .gHeroBg { opacity: .4; }
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .gHeroBg { animation: none; } }
.gHeroFade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-rgb),.25), rgba(var(--bg-rgb),.8) 58%, var(--bg) 94%), radial-gradient(ellipse 70% 60% at 50% 0%, rgba(var(--gold-rgb),.1), transparent); }

.gHeroIn .cSub, .gHeroIn span {
  display: block;
  margin-top: 15px !important; /* Force un espace propre sous Yanggodd */
}
.gDia { color: var(--gold); font-size: 9px; }
.gSep { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px auto; }
.gSepL { width: 90px; height: 1px; background: rgba(var(--gold-rgb),.35); }

/* Les stats se collent parfaitement tout en bas du Hero sans espace superflu */
.gStats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); width: 100%; position: relative; z-index: 3; }
.gSc { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.gSc.last { border-right: none; }
.gSv { font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: 27px; font-weight: 600; font-variant-numeric: lining-nums; }

.gSec { padding: 130px 24px 0; max-width: 1200px; margin: 0 auto; }
.gNum { font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-style: italic; font-size: 20px; color: var(--gold); text-align: center; }
.gH2 { font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: clamp(28px, 4.5vw, 44px); font-weight: 600; margin: 12px 0 0; text-align: center; }
.gBio { font-size: 16px; line-height: 1.9; color: var(--ink-bio); max-width: 680px; margin: 44px auto 0; text-align: center; }
.gQuote { font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-style: italic; font-size: 24px; color: var(--gold); text-align: center; margin: 48px auto 0; max-width: 640px; line-height: 1.4; }

.gSkills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 56px auto 0; max-width: 820px; }
.gSk { position: relative; overflow: hidden; background: var(--bg); padding: 28px 26px; transition: transform .25s ease; }
.gSk::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.gSk:hover { transform: translateY(-4px); }
.gSk:hover::before { transform: scaleX(1); }
.gSkN { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 10px; letter-spacing: .28em; color: var(--gold); }
.gSkT { font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: 21px; font-weight: 600; margin-top: 12px; }
.gSkD { color: var(--soft); font-size: 13px; line-height: 1.65; margin-top: 10px; }

/* « Pour qui » : 2 cartes au lieu de 3. */
.gSkills.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 640px; }
@media (min-width: 1024px) { .gSkills.two { grid-template-columns: repeat(2, 1fr); } }

/* --- FAQ : questions dépliables --- */
.faqList { max-width: 760px; margin: 52px auto 0; border-top: 1px solid var(--line); }
.faqItem { border-bottom: 1px solid var(--line); }
.faqItem summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 44px 22px 4px;
  font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: 22px; font-weight: 600; line-height: 1.25;
  transition: color .2s ease;
}
.faqItem summary::-webkit-details-marker { display: none; }
.faqItem summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 20px; color: var(--gold);
}
.faqItem[open] summary::after { content: '−'; }
.faqItem summary:hover { color: var(--gold-bright); }
.faqItem summary:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.faqItem p { margin: 0; padding: 0 44px 24px 4px; color: var(--soft); font-size: 14px; line-height: 1.8; }

/* --- PASSERELLE vers l'autre page (Joueur <-> Coaching) --- */
.gCta { max-width: 720px; margin: 120px auto 0; padding: 46px 24px; text-align: center; border: 1px solid var(--line-2); }
.gCtaT { font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin: 0; }
.gCta .cBtn { margin-top: 26px; padding: 15px 34px; }
.gCta .cBtn:hover { background: rgba(var(--gold-rgb),.12); opacity: 1; }

/* --- SWITCH MID | JUNGLE (tier list) : même look que l'interrupteur de page --- */
.roleSwitch { display: flex; justify-content: center; width: fit-content; margin: 40px auto 0; border: 1px solid rgba(var(--gold-rgb),.45); border-radius: 999px; overflow: hidden; }
.roleSwitch button {
  padding: 9px 26px; background: none; border: none; cursor: pointer;
  font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .2em; color: var(--gold);
  transition: background .2s ease, color .2s ease;
}
.roleSwitch button:hover { background: rgba(var(--gold-rgb),.12); }
.roleSwitch button.is-active { background: var(--gold); color: #14110b; }
.roleSwitch button:focus-visible { outline: 1px solid var(--gold); outline-offset: -3px; }
.roleSwitch + .tierList { margin-top: 28px; }

/* --- FORMULAIRE DE CONTACT (coaching / recrutement) --- */
.contactForm { max-width: 720px; margin: 44px auto 0; text-align: left; }
.fIntro { margin: 0 0 26px; text-align: center; color: var(--ink-bio); font-size: 15px; line-height: 1.7; }
.fGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.fField { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fField.full { grid-column: 1 / -1; }
.fField label { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 10px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; line-height: 1.5; }
.fField label b { color: var(--gold); font-weight: 400; }
.fField input, .fField select, .fField textarea {
  width: 100%; padding: 13px 14px; border-radius: 0;
  background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--ink);
  font: 14px/1.4 Helvetica, Arial, sans-serif; transition: border-color .2s ease;
}
.fField textarea { min-height: 110px; resize: vertical; }
.fField input::placeholder, .fField textarea::placeholder { color: var(--muted); opacity: .75; }
.fField input:focus, .fField select:focus, .fField textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.fField [aria-invalid="true"] { border-color: #d46a5c; box-shadow: 0 0 0 1px #d46a5c; }
.fHint { grid-column: 1 / -1; margin: 0; padding-left: 12px; border-left: 2px solid var(--gold); color: var(--gold); font-size: 13px; line-height: 1.6; }
.fHint[hidden] { display: none; }
.fActions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.fActions .cBtn { margin-top: 0; padding: 16px 38px; }
.cBtn:disabled { opacity: .55; cursor: wait; }
.cBtn[hidden] { display: none; }
.fNote { flex: 1; min-width: 220px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.fError { margin: 16px 0 0; color: #d46a5c; font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.formOr { margin-top: 48px; }
.formDone { padding: 42px 24px; text-align: center; border: 1px solid var(--line-2); }
.formDone:focus { outline: none; }
.formMsg {
  max-width: 540px; margin: 24px auto 0; padding: 16px; text-align: left;
  white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--ink-bio);
  font: 12.5px/1.75 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace;
}
.formBtns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.formBtns .cBtn { margin-top: 0; padding: 14px 28px; }
.fActions .cBtn.is-fill:hover, .formBtns .cBtn.is-fill:hover { background: var(--gold-bright); opacity: 1; }
:root[data-theme="light"] .fActions .cBtn.is-fill:hover, :root[data-theme="light"] .formBtns .cBtn.is-fill:hover { color: var(--bg); }
.formBtns .cBtn:not(.is-fill):hover { background: rgba(var(--gold-rgb),.12); opacity: 1; }
@media (max-width: 640px) { .fGrid { grid-template-columns: 1fr; } .fActions .cBtn { width: 100%; } }

/* --- PIED DE PAGE COMMUN : marque, pages, réseaux, mentions légales --- */
.siteFoot { margin-top: 130px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.sfGrid { display: grid; grid-template-columns: 1.3fr 1fr 1.7fr; gap: 56px; max-width: 1200px; margin: 0 auto; padding: 68px 24px 52px; }
.sfBrand .gWord { font-size: 28px; }
.sfTag { max-width: 300px; margin: 16px 0 0; color: var(--soft); font-size: 14px; line-height: 1.7; }
.sfRank { margin: 18px 0 0; font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .18em; color: var(--gold); }
.sfCol h3 { margin: 0 0 18px; font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 10px; font-weight: 400; letter-spacing: .28em; color: var(--muted); }
.sfCol > a { display: block; width: fit-content; padding: 6px 0; color: var(--soft); font-size: 14px; transition: color .2s ease, transform .2s ease; }
.sfCol > a:hover { color: var(--gold); opacity: 1; transform: translateX(3px); }
/* Les réseaux réutilisent .gSoc (rendu par main.js) : on les met en grille, alignés à gauche. */
.sfSocials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.sfSocials .gSoc { display: block; text-align: left; min-width: 0; }
.sfSocials .gSoc .cGold { justify-content: flex-start !important; }
.sfSocials .gSV { margin-top: 7px; overflow-wrap: anywhere; letter-spacing: .08em; }
.sfBottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 28px;
  max-width: 1200px; margin: 0 auto; padding: 22px 24px; border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 10px; letter-spacing: .2em; color: var(--muted);
}
.sfLegal { display: flex; gap: 10px 26px; flex-wrap: wrap; }
.sfBottom a { transition: color .2s ease; }
.sfBottom a:hover { color: var(--gold); opacity: 1; }
.sfRiot { max-width: 1200px; margin: 0 auto; padding: 0 24px 38px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.sfCol > a:focus-visible, .sfBottom a:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
@media (max-width: 860px) {
  .sfGrid { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
  .sfBrand { grid-column: 1 / -1; }
  .sfSocials { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sfGrid { grid-template-columns: 1fr; }
  .sfBottom { flex-direction: column; align-items: flex-start; }
}

/* --- PAGE MENTIONS LÉGALES --- */
.legalWrap { max-width: 760px; margin: 0 auto; padding: 96px 24px 0; }
.legalBack { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .18em; color: var(--gold); }
.legalSec { margin-top: 56px; scroll-margin-top: 24px; }
.legalSec h2 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: 27px; font-weight: 600; }
.legalSec p { margin: 0 0 14px; color: var(--soft); font-size: 14.5px; line-height: 1.85; }
.legalFacts { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 12px 24px; margin: 0 0 22px; }
.legalFacts dt { color: var(--muted); font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.legalFacts dd { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
/* Champ pas encore rempli dans data.js : bien visible pour ne pas être publié par oubli. */
.legalSec ul { margin: 0 0 14px; padding-left: 22px; color: var(--soft); font-size: 14.5px; line-height: 1.85; }
.legalSec li { margin-bottom: 6px; }
.legalSec li::marker { color: var(--gold); }
.legalSec a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legalSec a:hover { color: var(--gold-bright); opacity: 1; }
.legalTable { overflow-x: auto; margin: 0 0 14px; }
.legalTable table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.6; }
.legalTable th { text-align: left; padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--line-2); font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.legalTable td { padding: 12px; color: var(--ink-bio); border-bottom: 1px solid var(--line); vertical-align: top; }
.legalTable td:first-child { color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
@media (max-width: 640px) {
  .legalTable thead { display: none; }
  .legalTable tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legalTable td { display: block; padding: 3px 0; border: none; }
  .legalTable td::before { content: attr(data-label) ' : '; color: var(--muted); font-size: 11px; }
}
.todo { display: inline-block; padding: 2px 8px; border: 1px dashed #d46a5c; color: #d46a5c; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .14em; }
@media (max-width: 560px) { .legalFacts { grid-template-columns: 1fr; gap: 4px; } .legalFacts dd { margin-bottom: 12px; } }

/* --- CHAMPION POOL : tier list S / A / B / C / D --- */
.tierList { max-width: 620px; margin: 52px auto 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tierRow { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.tierRow:last-child { border-bottom: none; }
.tierLabel {
  flex: none; width: 62px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: 30px; font-weight: 700;
  color: #14110b;
}
.tierChamps { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; background: var(--bg-soft); }
.tierChamp {
  width: 50px; height: 50px; border-radius: 9px; overflow: hidden;
  border: 1px solid rgba(var(--gold-rgb),.22);
  transition: transform .2s ease, border-color .2s ease;
}
.tierChamp:hover { transform: translateY(-3px) scale(1.06); border-color: var(--gold); }
.tierImg { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--img-ph); transform: scale(1.2); }

/* Chips des tiers en dégradé doré : couleurs fixes, lisibles sur les deux thèmes */
.tier-S .tierLabel { background: #edcd8a; color: #14110b; }
.tier-A .tierLabel { background: #d3b06b; color: #14110b; }
.tier-B .tierLabel { background: #ab8b54; color: #14110b; }
.tier-C .tierLabel { background: #7d6841; color: #ece3cf; }
.tier-D .tierLabel { background: #4f4430; color: #ece3cf; }

/* --- CAREER : timeline éditoriale --- */
#career-list { position: relative; max-width: 720px; margin: 52px auto 0; }
#career-list::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 40px; width: 1px;
  background: linear-gradient(180deg, rgba(var(--gold-rgb),.55), rgba(var(--gold-rgb),.06));
}
.gCr { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 40px; padding: 4px 0 48px 42px; }
.gCr:last-child { padding-bottom: 4px; }
.gCrNode {
  position: absolute; left: -5px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--node-border); box-sizing: border-box;
  transition: transform .25s ease, border-color .25s ease;
}
.gCr:hover .gCrNode { border-color: var(--gold); transform: scale(1.25); }
.gCr.is-now .gCrNode {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb),.12), 0 0 14px rgba(var(--gold-rgb),.75);
  animation: gCrPulse 2.6s ease-in-out infinite;
}
@keyframes gCrPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--gold-rgb),.12), 0 0 14px rgba(var(--gold-rgb),.6); }
  50% { box-shadow: 0 0 0 7px rgba(var(--gold-rgb),.04), 0 0 18px rgba(var(--gold-rgb),.9); }
}
@media (prefers-reduced-motion: reduce) { .gCr.is-now .gCrNode { animation: none; } }
.gCrWhen { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .18em; color: var(--muted); padding-top: 3px; }
.gCr.is-now .gCrWhen { color: var(--gold); }
.gCrHead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.gOrg { font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: 27px; font-weight: 600; line-height: 1.05; margin: 0; transition: color .25s ease; }
.gCr:hover .gOrg { color: var(--gold-bright); }
.gRole { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 9.5px; letter-spacing: .22em; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; }
.gCr.is-now .gRole { color: var(--gold); border-color: rgba(var(--gold-rgb),.4); }
.gDet { color: var(--soft); font-size: 13.5px; line-height: 1.75; margin-top: 12px; max-width: 600px; }

.gHl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 860px; margin: 60px auto 0; }
.gFrame { aspect-ratio: 16/9; border: 1px solid var(--line-2); overflow: hidden; }
.gVideo { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--video-bg); }

/* --- COACHING : cartes d'offres (contenu dans data.js → coachingOffers) --- */
.coachIntro { margin-top: 36px; }
/* Flex + centrage : une rangée incomplète (ex. 3 + 2) reste centrée. */
.coachGrid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: 16px; max-width: 1180px; margin: 56px auto 0;
}
.coachCard {
  position: relative; display: flex; flex-direction: column;
  flex: 0 1 calc((100% - 4 * 16px) / 5); min-width: 0;
  padding: 34px 22px 24px;
  border: 1px solid var(--line-2); background: var(--bg);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.coachCard::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.coachCard:hover { transform: translateY(-4px); border-color: rgba(var(--gold-rgb),.45); }
.coachCard:hover::before { transform: scaleX(1); }
.coachCard.is-best {
  border-color: rgba(var(--gold-rgb),.6);
  background: linear-gradient(180deg, rgba(var(--gold-rgb),.07), transparent 45%), var(--bg);
  box-shadow: 0 14px 44px -22px rgba(var(--gold-rgb),.7);
}
/* Texte foncé fixe sur fond doré : lisible sur les deux thèmes (comme les tiers). */
.coachBadge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--gold); color: #14110b; white-space: nowrap;
  font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace;
  font-size: 9.5px; letter-spacing: .24em; padding: 5px 12px;
}
/* lining-nums : chiffres alignés (sinon Cormorant fait lire « 10h » comme « 1oh »). */
.coachName { font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: 34px; font-weight: 600; line-height: 1.1; margin: 0; font-variant-numeric: lining-nums; text-align: center; }
.coachDur { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; margin-top: 8px; text-align: center; }
/* Prix sur sa ligne, ancien prix + remise dessous : la ligne existe même sans
   remise pour que toutes les cartes restent alignées. */
.coachPrice {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.coachAmt { font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif; font-size: 44px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.coachWas { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 21px; }
.coachOld { color: var(--muted); font-size: 14px; }
.coachPct {
  font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 9.5px; letter-spacing: .16em;
  color: var(--gold); border: 1px solid rgba(var(--gold-rgb),.4); padding: 3px 8px; border-radius: 999px;
}
.coachFeat { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 9px; }
.coachFeat li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--ink-bio); }
.coachFeat i { flex: none; color: var(--gold); font-size: 16px; line-height: 1.1; }
/* Prestation non incluse : grisée, croix au lieu du check. */
.coachFeat li.is-off { color: var(--muted); opacity: .55; }
.coachFeat li.is-off i { color: var(--muted); }
/* Texte lu par les lecteurs d'écran seulement (« non inclus »). */
.srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.coachBtn {
  margin-top: auto; width: 100%; padding: 14px 10px; cursor: pointer;
  border: 1px solid var(--gold); background: none; color: var(--gold);
  font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .24em;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.coachBtn:hover { background: rgba(var(--gold-rgb),.12); }
.coachCard.is-best .coachBtn { background: var(--gold); color: #14110b; }
.coachCard.is-best .coachBtn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
:root[data-theme="light"] .coachCard.is-best .coachBtn:hover { color: var(--bg); }
.coachBtn:focus-visible, .dotNavItem:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.coachHow { margin: 34px auto 0; max-width: 720px; line-height: 1.8; }
.coachClosed { max-width: 520px; margin: 56px auto 0; padding: 46px 28px; text-align: center; border: 1px solid var(--line-2); }
.coachClosed .cBtn { margin-top: 26px; }
@media (max-width: 1180px) { .coachCard { flex-basis: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 760px) { .coachCard { flex-basis: 100%; max-width: 440px; } }

.gAvail { margin-top: 120px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 46px 24px; display: flex; justify-content: center; gap: 28px; align-items: center; font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; letter-spacing: .24em; font-size: 12px; background: var(--bg-deep); flex-wrap: wrap; }

.gFoot { padding: 110px 24px 0; text-align: center; }
.gSoc { font-family: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace; font-size: 11px; letter-spacing: .18em; }
.gSV { color: var(--muted); margin-top: 9px; }


/* Écran responsive pour les 4 gros blocs de stats du Hero */
@media (max-width: 768px) {
  .gStats { grid-template-columns: repeat(2, 1fr); }
  .gSc { border-bottom: 1px solid var(--line); padding: 25px 15px; }
  .gSc:nth-child(2) { border-right: none; }
}

/* Espace uniforme entre l'icône et le texte */
.gSoc .cGold i {
  margin-right: 6px;
}

/* Animation fluide sur les blocs réseaux */
.gSoc {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gSoc:hover {
  transform: translateY(-3px);
  opacity: 1;
}

@media (min-width: 1024px) {
  .gSkills {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive champion pool + career */
@media (max-width: 900px) {
  .gCr { grid-template-columns: 150px 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .gCr { grid-template-columns: 1fr; gap: 8px; padding-left: 30px; }
  .tierLabel { width: 48px; font-size: 24px; }
  .tierChamps { gap: 8px; padding: 10px 12px; }
  .tierChamp { width: 48px; height: 48px; }
}

/* Style et animation pour les boutons d'action principaux */
#discord-btn, #opgg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-width: 250px;
}

#discord-btn:hover, #opgg-btn:hover {
  background: rgba(var(--gold-rgb), 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--gold-rgb), 0.15);
  opacity: 1;
}

/* --- MISE EN PAGE HERO (2 COLONNES) --- */
.gHeroIn {
  position: relative;
  z-index: 2;
  padding: 20px 72px 0;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: row; /* Aligne texte à gauche, photo à droite */
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
}

.gHeroText {
  text-align: left;
  flex: 1;
}

/* --- ENTRÉE EN CASCADE DU HERO AU CHARGEMENT --- */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.gHeroText > * { opacity: 0; animation: heroIn .8s ease forwards; }
.gHeroText > *:nth-child(1) { animation-delay: .1s; }
.gHeroText > *:nth-child(2) { animation-delay: .22s; }
.gHeroText > *:nth-child(3) { animation-delay: .34s; }
.gHeroText > *:nth-child(4) { animation-delay: .46s; }
.gHeroText > *:nth-child(5) { animation-delay: .58s; }
.gHeroRight { opacity: 0; animation: heroIn 1s ease forwards; animation-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .gHeroText > *, .gHeroRight { opacity: 1; animation: none; }
}

.gHeroText > *:nth-child(6) { animation-delay: .7s; }
/* Boutons du hero de la page coaching. */
.gHeroCta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.gHeroCta .cBtn { margin-top: 0; padding: 15px 30px; transition: background .25s ease, color .25s ease; }
.gHeroCta .cBtn:hover { background: rgba(var(--gold-rgb),.12); opacity: 1; }
.cBtn.is-fill { background: var(--gold); color: #14110b; }
.gHeroCta .cBtn.is-fill:hover { background: var(--gold-bright); }
:root[data-theme="light"] .gHeroCta .cBtn.is-fill:hover { color: var(--bg); }

.gHeroText .gSep {
  justify-content: flex-start;
  margin: 25px 0 0 0;
}

.gHeroSlogan {
  font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--gold);
  margin-top: 24px;
  max-width: 460px;
}

.gName {
  font-family: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif;
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 600;
  /* line-height serré + un peu de marge basse : le clip-texte ne coupe plus
     le jambage du « g » (sinon le bas du glyphe sort de la boîte de fond). */
  line-height: 1.16;
  padding-bottom: .08em;
  margin: 12px 0 12px;
  letter-spacing: .02em;
  color: var(--ink); /* couleur pleine par défaut : le nom est TOUJOURS visible */
}
/* Reflet doré balayant — activé uniquement si le clip-texte est supporté,
   pour ne jamais rendre le nom invisible sur un navigateur non compatible. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gName {
    background: linear-gradient(100deg, var(--ink) 42%, var(--gold-bright) 50%, var(--ink) 58%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* IMPORTANT : on garde l'animation d'entrée heroIn (sinon le nom reste à
       opacity:0), à laquelle on ajoute le reflet shimmer. */
    animation: heroIn .8s ease .2s forwards, nameShimmer 7s linear .9s infinite;
  }
}
@keyframes nameShimmer {
  from { background-position: 130% center; }
  to { background-position: -130% center; }
}
@media (prefers-reduced-motion: reduce) {
  .gName {
    animation: none; background: none;
    -webkit-text-fill-color: var(--ink); color: var(--ink);
  }
}

/* --- ZONE PHOTO & ICONES (DROITE) --- */
.gHeroRight {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.gAvW {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(var(--gold-rgb),.6);
  border-radius: 50%;
  padding: 10px;
  margin: 0;
  animation: avatarPulse 3.4s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0); }
  50% { box-shadow: 0 0 24px 2px rgba(var(--gold-rgb), .35); }
}
@media (prefers-reduced-motion: reduce) { .gAvW { animation: none; } }

#hero-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

#hero-socials a,
#hero-socials button {
  font-size: 26px; /* Taille parfaite pour des icônes épurées */
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

#hero-socials a:hover,
#hero-socials button:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
  .gHeroCta { justify-content: center; }
  /* En colonne, la hauteur 100vh + space-between créait un grand vide entre
     le texte et la photo : on laisse le hero prendre sa hauteur naturelle. */
  .gHero { height: auto; }
  .gHeroIn {
    flex-direction: column; /* Tout se superpose proprement sur mobile */
    justify-content: center;
    text-align: center;
    padding: 48px 24px 56px;
    gap: 30px;
  }
  .gHeroText {
    text-align: center;
  }
  .gHeroText .gSep {
    justify-content: center;
  }
  .gHeroSlogan { margin-left: auto; margin-right: auto; }
  .gAvW {
    width: 180px; /* Légèrement réduit sur smartphone */
    height: 180px;
  }
}
