/* Fix [hidden] overridden by display:flex/grid in component CSS */
[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   Système éditorial — partagé entre page champion et sous-pages (counters…)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section couleurs par type ────────────────────────────────────────────── */
section[data-section="editorial"]        { --s-color: #f59e0b; --s-rgb: 245,158,11; }
section[data-section="builds-editorial"] { --s-color: #f59e0b; --s-rgb: 245,158,11; }
section[data-section="pick-conditions"]  { --s-color: #34d399; --s-rgb: 52,211,153; }
section[data-section="weakness"]         { --s-color: #ef4444; --s-rgb: 239,68,68; }
section[data-section="expert"]           { --s-color: #a78bfa; --s-rgb: 167,139,250; }
section[data-section="faq"]              { --s-color: #42b7ff; --s-rgb: 66,183,255; }
section[data-section="counter-intro"]    { --s-color: #ef4444; --s-rgb: 239,68,68; }
section[data-section="counter-archetypes"]{ --s-color: #a78bfa; --s-rgb: 167,139,250; }
section[data-section="counter-matchups"] { --s-color: #f59e0b; --s-rgb: 245,158,11; }
section[data-section="counter-mistakes"] { --s-color: #ef4444; --s-rgb: 239,68,68; }

/* ── chp-section-head (disponible sur toutes les sous-pages champion) ─────── */
.chp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 3px solid rgba(255,255,255,.1);
}
section[data-section] .chp-section-head {
  border-left-color: var(--s-color);
}
.chp-section-head h2 {
  font-family: 'Tytoon Mist', 'Tytoon Mist Fallback', "Orbitron", "Orbitron Fallback", "Barlow", "Barlow Fallback", sans-serif;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  font-weight: 400;
  color: #f0f4ff;
  letter-spacing: .06em;
  margin: 0;
  position: relative;
  isolation: isolate;
  width: fit-content;
}
section[data-section] .chp-section-head h2 {
  color: var(--s-color);
}

/* ── Brush stroke derrière les titres de section ──────────────────────────── */
section[data-section] .chp-section-head h2::before {
  content: '';
  position: absolute;
  inset: -5px -14px;
  z-index: -1;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  /* Default gold — editorial / builds */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 74' preserveAspectRatio='none'%3E%3Cpath fill='%23d4b171' fill-opacity='0.14' d='M5 31C3 21 6 12 16 9C55 3 130 8 210 6C290 4 370 9 445 6C482 5 518 6 544 10C568 13 585 18 592 24C598 29 598 35 596 40C598 45 596 52 588 56C568 62 532 61 492 64C415 68 330 63 248 65C168 67 94 63 50 66C30 67 12 64 5 57C1 52 2 43 5 38Z'/%3E%3Cpath fill='%23d4b171' fill-opacity='0.07' d='M0 35C1 23 9 13 22 9C65 1 148 6 232 4C316 2 400 7 476 4C512 3 546 4 568 8C586 11 597 16 600 23C602 29 600 36 598 42C600 48 598 56 589 61C562 69 520 67 470 70C386 74 298 69 212 71C135 73 62 69 28 67C10 65 -1 58 0 50Z'/%3E%3C/svg%3E");
}

/* Rouge — counters / weakness */
section[data-section="counters"] .chp-section-head h2::before,
section[data-section="weakness"] .chp-section-head h2::before,
section[data-section="counter-intro"] .chp-section-head h2::before,
section[data-section="counter-mistakes"] .chp-section-head h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 74' preserveAspectRatio='none'%3E%3Cpath fill='%23ef4444' fill-opacity='0.14' d='M5 31C3 21 6 12 16 9C55 3 130 8 210 6C290 4 370 9 445 6C482 5 518 6 544 10C568 13 585 18 592 24C598 29 598 35 596 40C598 45 596 52 588 56C568 62 532 61 492 64C415 68 330 63 248 65C168 67 94 63 50 66C30 67 12 64 5 57C1 52 2 43 5 38Z'/%3E%3Cpath fill='%23ef4444' fill-opacity='0.07' d='M0 35C1 23 9 13 22 9C65 1 148 6 232 4C316 2 400 7 476 4C512 3 546 4 568 8C586 11 597 16 600 23C602 29 600 36 598 42C600 48 598 56 589 61C562 69 520 67 470 70C386 74 298 69 212 71C135 73 62 69 28 67C10 65 -1 58 0 50Z'/%3E%3C/svg%3E");
}

/* Teal — synergies / pick-conditions */
section[data-section="synergies"] .chp-section-head h2::before,
section[data-section="pick-conditions"] .chp-section-head h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 74' preserveAspectRatio='none'%3E%3Cpath fill='%2334d399' fill-opacity='0.13' d='M5 31C3 21 6 12 16 9C55 3 130 8 210 6C290 4 370 9 445 6C482 5 518 6 544 10C568 13 585 18 592 24C598 29 598 35 596 40C598 45 596 52 588 56C568 62 532 61 492 64C415 68 330 63 248 65C168 67 94 63 50 66C30 67 12 64 5 57C1 52 2 43 5 38Z'/%3E%3Cpath fill='%2334d399' fill-opacity='0.06' d='M0 35C1 23 9 13 22 9C65 1 148 6 232 4C316 2 400 7 476 4C512 3 546 4 568 8C586 11 597 16 600 23C602 29 600 36 598 42C600 48 598 56 589 61C562 69 520 67 470 70C386 74 298 69 212 71C135 73 62 69 28 67C10 65 -1 58 0 50Z'/%3E%3C/svg%3E");
}

/* Cyan — tips / faq */
section[data-section="tips"] .chp-section-head h2::before,
section[data-section="faq"] .chp-section-head h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 74' preserveAspectRatio='none'%3E%3Cpath fill='%2342b7ff' fill-opacity='0.13' d='M5 31C3 21 6 12 16 9C55 3 130 8 210 6C290 4 370 9 445 6C482 5 518 6 544 10C568 13 585 18 592 24C598 29 598 35 596 40C598 45 596 52 588 56C568 62 532 61 492 64C415 68 330 63 248 65C168 67 94 63 50 66C30 67 12 64 5 57C1 52 2 43 5 38Z'/%3E%3Cpath fill='%2342b7ff' fill-opacity='0.06' d='M0 35C1 23 9 13 22 9C65 1 148 6 232 4C316 2 400 7 476 4C512 3 546 4 568 8C586 11 597 16 600 23C602 29 600 36 598 42C600 48 598 56 589 61C562 69 520 67 470 70C386 74 298 69 212 71C135 73 62 69 28 67C10 65 -1 58 0 50Z'/%3E%3C/svg%3E");
}

/* Violet — expert / gameplan / counter-archetypes */
section[data-section="expert"] .chp-section-head h2::before,
section[data-section="gameplan"] .chp-section-head h2::before,
section[data-section="counter-archetypes"] .chp-section-head h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 74' preserveAspectRatio='none'%3E%3Cpath fill='%23a78bfa' fill-opacity='0.14' d='M5 31C3 21 6 12 16 9C55 3 130 8 210 6C290 4 370 9 445 6C482 5 518 6 544 10C568 13 585 18 592 24C598 29 598 35 596 40C598 45 596 52 588 56C568 62 532 61 492 64C415 68 330 63 248 65C168 67 94 63 50 66C30 67 12 64 5 57C1 52 2 43 5 38Z'/%3E%3Cpath fill='%23a78bfa' fill-opacity='0.07' d='M0 35C1 23 9 13 22 9C65 1 148 6 232 4C316 2 400 7 476 4C512 3 546 4 568 8C586 11 597 16 600 23C602 29 600 36 598 42C600 48 598 56 589 61C562 69 520 67 470 70C386 74 298 69 212 71C135 73 62 69 28 67C10 65 -1 58 0 50Z'/%3E%3C/svg%3E");
}

/* ── champion-builds--editorial ───────────────────────────────────────────── */
.champion-builds--editorial {
  position: relative;
}
.champion-builds--editorial + .champion-builds--editorial {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* Élève les h3 dans les cards éditoriales */
.champion-builds--editorial .subsection-card h3 {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: 10px;
}

/* ── Variants de cards ────────────────────────────────────────────────────── */

/* Lead — accroche principale, pleine largeur */
.champion-builds--editorial .subsection-card[data-variant="lead"] {
  grid-column: 1 / -1;
  background: rgba(var(--s-rgb, 245,158,11), .06);
  border-color: rgba(var(--s-rgb, 245,158,11), .22);
  padding: 20px 22px;
}
.champion-builds--editorial .subsection-card[data-variant="lead"] h3 {
  color: var(--s-color, #f59e0b);
  font-size: .8rem;
}
.champion-builds--editorial .subsection-card[data-variant="lead"] p {
  font-size: .92rem;
  line-height: 1.72;
  color: rgba(225,235,255,.88);
}

/* Insight — analyse secondaire */
.champion-builds--editorial .subsection-card[data-variant="insight"] {
  border-top: 2px solid rgba(var(--s-rgb, 245,158,11), .28);
}

/* Pro — avantages */
.champion-builds--editorial .subsection-card[data-variant="pro"] {
  border-top: 2px solid rgba(52,211,153,.45);
  background: rgba(52,211,153,.03);
}
.champion-builds--editorial .subsection-card[data-variant="pro"] h3 {
  color: rgba(52,211,153,.88);
}
.champion-builds--editorial .subsection-card[data-variant="pro"] li::before {
  background: rgba(52,211,153,.65);
}

/* Con — à éviter */
.champion-builds--editorial .subsection-card[data-variant="con"] {
  border-top: 2px solid rgba(239,68,68,.45);
  background: rgba(239,68,68,.03);
}
.champion-builds--editorial .subsection-card[data-variant="con"] h3 {
  color: rgba(239,68,68,.88);
}
.champion-builds--editorial .subsection-card[data-variant="con"] li::before {
  background: rgba(239,68,68,.65);
}

/* Warning — faiblesse */
.champion-builds--editorial .subsection-card[data-variant="warning"] {
  border-top: 2px solid rgba(245,158,11,.45);
  background: rgba(245,158,11,.04);
}
.champion-builds--editorial .subsection-card[data-variant="warning"] h3 {
  color: rgba(245,158,11,.88);
}

/* Elo */
.champion-builds--editorial .subsection-card[data-variant="elo-low"] h3::before {
  content: '↓ ';
  color: rgba(248,113,113,.8);
}
.champion-builds--editorial .subsection-card[data-variant="elo-high"] h3::before {
  content: '↑ ';
  color: rgba(52,211,153,.8);
}

/* Expert */
.champion-builds--editorial .subsection-card[data-variant="expert"] {
  background: rgba(167,139,250,.04);
  border-color: rgba(167,139,250,.2);
}
.champion-builds--editorial .subsection-card[data-variant="expert"] h3 {
  color: rgba(167,139,250,.88);
}

/* Coach */
.champion-builds--editorial .subsection-card[data-variant="coach"] h3 {
  color: rgba(167,139,250,.65);
}

/* FAQ */
.champion-builds--editorial .subsection-card[data-variant="faq"] {
  border-top: 2px solid rgba(66,183,255,.3);
}
.champion-builds--editorial .subsection-card[data-variant="faq"] h3 {
  font-size: .88rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(200,225,255,.9);
  font-style: italic;
  padding-left: 22px;
  position: relative;
}
.champion-builds--editorial .subsection-card[data-variant="faq"] h3::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 1px;
  font-style: normal;
  font-size: .72rem;
  font-weight: 900;
  color: rgba(66,183,255,.75);
}
.champion-builds--editorial .subsection-card[data-variant="faq"] p {
  padding-left: 22px;
  border-left: 2px solid rgba(255,255,255,.08);
  color: rgba(180,200,240,.8);
  font-size: .87rem;
}

/* ── Listes dans les cards éditoriales ───────────────────────────────────── */
.champion-builds--editorial .subsection-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.champion-builds--editorial .subsection-card li {
  padding-left: 16px;
  position: relative;
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(210,225,248,.82);
}
.champion-builds--editorial .subsection-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s-color, rgba(255,255,255,.4));
  opacity: .65;
}

/* ══════════════════════════════════════════════════════════════════════════ */

/* ── Shared SSG page hero ── */
.ssg-page-hero {
  position: relative;
  padding: 2.4rem 1.5rem 2rem;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(143, 215, 255, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(119, 193, 255, 0.13), transparent 40%),
    radial-gradient(circle at bottom left, rgba(143, 215, 255, 0.07), transparent 40%),
    linear-gradient(180deg, rgba(10, 13, 29, 0.96), rgba(6, 8, 19, 0.98));
  overflow: hidden;
}
.ssg-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(143, 215, 255, 0), rgba(143, 215, 255, 0.06), rgba(232, 198, 123, 0));
  pointer-events: none;
}
.ssg-page-hero__eyebrow {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(143, 215, 255, 0.85);
}
.ssg-page-hero__title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 35%, #00c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ssg-page-hero__pitch {
  margin: 0;
  max-width: 64ch;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(200, 218, 255, 0.7);
}
.ssg-page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

:root {
  --fd-edge-dark: 0.86;
  --fd-mid-dark: 0.54;
  --fd-center-dark: 0.00;
  --fd-inner-stop: 29%;
  --fd-outer-stop: 71%;
  --fd-mosaic-opacity: 1.00;
  --fd-mosaic-brightness: 1.25;
  --fd-mosaic-saturation: 0.90;
  --fd-mosaic-contrast: 1.10;
  /* Design tokens partagés avec ssg-champion-page.css */
  --bg-0: #06070f;
  --bg-1: #0b0c1a;
  --ink-0: #fafbff;
  --ink-1: rgba(248,250,255,.86);
  --ink-2: rgba(220,228,250,.58);
  --ink-3: rgba(180,194,228,.36);
  --line: rgba(255,255,255,.08);
  --violet: #a78bfa;
  --violet-d: #5b21b6;
  --gold: #fbbf24;
  --gold-l: #fde68a;
  --crimson: #ef4444;
  --teal: #34d399;
}

/* ── Counters & Synergy — shared layout ── */
.panel--counters-layout { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.counters-col { display:flex; flex-direction:column; gap:14px; }
.panel--synergy-layout { display:flex; flex-direction:column; gap:14px; }

/* Bordered section block */
.counters-block {
  background: rgba(10,14,28,.7);
  border: 1px solid rgba(120,140,220,.18);
  border-radius: 14px;
  padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 12px;
}
/* Block accent border by tier — counters */
.counters-block[data-tier="strong"]  { border-color: rgba(52,211,153,.28); }
.counters-block[data-tier="extreme"] { border-color: rgba(239,68,68,.32); }
.counters-block[data-tier="major"]   { border-color: rgba(251,146,60,.28); }
/* Block accent border by tier — synergy */
.counters-block[data-tier="ideal"]   { border-color: rgba(241,208,138,.32); }
.counters-block[data-tier="ok"]      { border-color: rgba(120,140,220,.25); }

/* Section headers */
.counters-section-head {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  font-weight: 700; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
}
.counters-section-icon { width:15px; height:15px; flex-shrink:0; }
.counters-count {
  margin-left: auto; font-size: .7rem; font-weight: 600;
  background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px 8px;
}

/* Header colors by tier — counters */
.counters-section-head[data-tier="strong"] {
  background: linear-gradient(90deg, rgba(52,211,153,.12) 0%, transparent 75%);
  border-left: 3px solid #34d399; color: #6ee7b7;
}
.counters-section-head[data-tier="extreme"] {
  background: linear-gradient(90deg, rgba(239,68,68,.14) 0%, transparent 75%);
  border-left: 3px solid #ef4444; color: #fca5a5;
}
.counters-section-head[data-tier="major"] {
  background: linear-gradient(90deg, rgba(251,146,60,.12) 0%, transparent 75%);
  border-left: 3px solid #fb923c; color: #fdba74;
}
/* Header colors by tier — skill matchup */
.counters-section-head[data-tier="skill"] {
  background: linear-gradient(90deg, rgba(255,209,102,.12) 0%, transparent 75%);
  border-left: 3px solid #FFD166; color: #f9c025;
}
/* Header colors by tier — synergy */
.counters-section-head[data-tier="ideal"] {
  background: linear-gradient(90deg, rgba(241,208,138,.14) 0%, transparent 75%);
  border-left: 3px solid #f1d08a; color: #f1d08a;
}
.counters-section-head[data-tier="ok"] {
  background: linear-gradient(90deg, rgba(120,140,220,.12) 0%, transparent 75%);
  border-left: 3px solid #788cdc; color: #a8b4e8;
}

/* Tile borders & glow by tier */
.hub-card[data-tier="strong"]  .hub-tile { border-color:rgba(52,211,153,.4);   box-shadow:0 0 14px rgba(52,211,153,.15); }
.hub-card[data-tier="strong"]  .hub-tile:hover { border-color:rgba(52,211,153,.7);   box-shadow:0 0 22px rgba(52,211,153,.3); }
.hub-card[data-tier="extreme"] .hub-tile { border-color:rgba(239,68,68,.45);   box-shadow:0 0 14px rgba(239,68,68,.18); }
.hub-card[data-tier="extreme"] .hub-tile:hover { border-color:rgba(239,68,68,.75);   box-shadow:0 0 22px rgba(239,68,68,.32); }
.hub-card[data-tier="major"]   .hub-tile { border-color:rgba(251,146,60,.4);   box-shadow:0 0 14px rgba(251,146,60,.15); }
.hub-card[data-tier="major"]   .hub-tile:hover { border-color:rgba(251,146,60,.7);   box-shadow:0 0 22px rgba(251,146,60,.28); }
.hub-card[data-tier="ideal"]   .hub-tile { border-color:rgba(241,208,138,.4);  box-shadow:0 0 14px rgba(241,208,138,.15); }
.hub-card[data-tier="ideal"]   .hub-tile:hover { border-color:rgba(241,208,138,.7);  box-shadow:0 0 22px rgba(241,208,138,.28); }
.hub-card[data-tier="ok"]      .hub-tile { border-color:rgba(120,140,220,.35); box-shadow:0 0 12px rgba(120,140,220,.12); }
.hub-card[data-tier="ok"]      .hub-tile:hover { border-color:rgba(120,140,220,.6);  box-shadow:0 0 18px rgba(120,140,220,.24); }

/* Champion name color by tier */
.hub-card[data-tier="strong"]  .hub-name { color: #6ee7b7; }
.hub-card[data-tier="extreme"] .hub-name { color: #fca5a5; }
.hub-card[data-tier="major"]   .hub-name { color: #fdba74; }
.hub-card[data-tier="ideal"]   .hub-name { color: #f1d08a; }
.hub-card[data-tier="ok"]      .hub-name { color: #a8b4e8; }

/* ── Counters V1 minimal / mobile-first ── */
.panel--counters-v1 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nx-counter-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nx-counter-filter {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #cfcfcf;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nx-counter-filter[aria-current="true"] {
  border-color: rgba(241,208,138,.45);
  background: rgba(241,208,138,.12);
  color: #f1d08a;
}
.nx-counter-section summary { cursor: pointer; list-style: none; }
.nx-counter-section summary::-webkit-details-marker { display: none; }
.nx-counter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-counter-row {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.06), transparent 46%),
    linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
  color: #e6e6e6;
  border-radius: 12px;
  padding: 10px 11px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.nx-counter-row:hover {
  background: #1C2230;
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.nx-counter-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(255,255,255,.12);
}
.nx-counter-row[data-tier="hard"]::before { background: #f92e31; }
.nx-counter-row[data-tier="unfavorable"]::before { background: #FF9F1C; }
.nx-counter-row[data-tier="skillMatchups"]::before { background: #edb228; }
.nx-counter-row[data-tier="favorable"]::before { background: #15c25d; }

/* Background tint + text color by tier */
.nx-counter-row[data-tier="hard"] {
  background: linear-gradient(90deg, rgba(239,68,68,.12) 0%, transparent 70%),
    linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
  color: #fca5a5;
}
.nx-counter-row[data-tier="unfavorable"] {
  background: linear-gradient(90deg, rgba(251,146,60,.11) 0%, transparent 70%),
    linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
  color: #fdba74;
}
.nx-counter-row[data-tier="skillMatchups"] {
  background: linear-gradient(90deg, rgba(255,209,102,.10) 0%, transparent 70%),
    linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
  color: #ffe499;
}
.nx-counter-row[data-tier="favorable"] {
  background: linear-gradient(90deg, rgba(52,211,153,.10) 0%, transparent 70%),
    linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
  color: #6ee7b7;
}
/* Avatar border color by tier */
.nx-counter-row[data-tier="hard"] .nx-counter-avatar {
  border-color: rgba(255,77,79,.65);
  box-shadow: 0 0 12px rgba(255,77,79,.35), 0 8px 24px rgba(0,0,0,.28);
}
.nx-counter-row[data-tier="unfavorable"] .nx-counter-avatar {
  border-color: rgba(255,159,28,.65);
  box-shadow: 0 0 12px rgba(255,159,28,.3), 0 8px 24px rgba(0,0,0,.28);
}
.nx-counter-row[data-tier="skillMatchups"] .nx-counter-avatar {
  border-color: rgba(255,209,102,.55);
  box-shadow: 0 0 12px rgba(255,209,102,.25), 0 8px 24px rgba(0,0,0,.28);
}
.nx-counter-row[data-tier="favorable"] .nx-counter-avatar {
  border-color: rgba(46,204,113,.6);
  box-shadow: 0 0 12px rgba(46,204,113,.3), 0 8px 24px rgba(0,0,0,.28);
}
.nx-counter-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.nx-counter-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}
.nx-counter-headline {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.nx-counter-headline h3 {
  margin: 0;
  font: inherit;
  display: inline;
  min-width: 0;
}
.nx-counter-name {
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nx-counter-comment {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  font-size: .8rem;
  color: rgba(224,226,232,.84);
}
.nx-counter-priority {
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.nx-counter-priority > span {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  opacity: var(--nx-prio-opacity, .8);
}
.nx-counter-row .nx-counter-priority { color: #cfcfcf; }
.nx-counter-row[data-tier="hard"] .nx-counter-priority { color: #FF4D4F; }
.nx-counter-row[data-tier="unfavorable"] .nx-counter-priority { color: #FF9F1C; }
.nx-counter-row[data-tier="skillMatchups"] .nx-counter-priority { color: #FFD166; }
.nx-counter-row[data-tier="favorable"] .nx-counter-priority { color: #2ECC71; }
.nx-counter-row .nx-counter-type {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .9rem;
  margin-top: 2px;
}
.nx-counter-empty {
  color: rgba(255,255,255,.55);
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}
.nx-counter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Affordance « déplier » sous chaque matchup — volontairement discrète (le contenu
   détaillé Why/Lane impact/How to play est masqué par défaut, rien ne l'indiquait). */
.nx-counter-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: .72rem;
  line-height: 1.2;
  letter-spacing: .01em;
  color: rgba(230,230,230,.52);
}
.nx-counter-more::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform .18s ease;
}
.nx-counter-row:hover .nx-counter-more { color: rgba(230,230,230,.78); }
.nx-counter-fold[open] .nx-counter-more::after {
  transform: translateY(1px) rotate(-135deg);
}
@media (prefers-reduced-motion: reduce) {
  .nx-counter-more::after { transition: none; }
}

/* Accordéon matchup natif <details>/<summary> (pages counters) — pas de JS, pas de
   [hidden]/display:none sur le détail : Google indexe ce contenu comme visible.
   `.nx-counter-item` reste en flex pour les lignes statiques des pages synergies,
   d'où le `display:block` scopé : changer le display d'un <details> peut casser
   le masquage UA de son contenu sur les moteurs anciens. */
.nx-counter-fold {
  display: block;
}
.nx-counter-fold > .nx-counter-inline {
  margin-top: 8px;
}
summary.nx-counter-row {
  cursor: pointer;
  list-style: none;
}
summary.nx-counter-row::-webkit-details-marker { display: none; }
summary.nx-counter-row::marker { content: ''; }

.nx-counter-inline {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(12,16,26,.92);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Card matchup ouvert (page counters) — casse hors de sa colonne de grille pour
   utiliser toute la largeur : les 3 blocs Why/Impact/How to play passent en
   rangée au lieu de s'empiler en colonne (sinon la fenêtre descend énormément
   sur les groupes à beaucoup de matchups). */
details.nx-counter-fold[open] {
  grid-column: 1 / -1;
}
@media (min-width: 701px) {
  details.nx-counter-fold[open] {
    display: flex;
    align-items: flex-start;
    gap: 18px;
  }
  details.nx-counter-fold[open] > summary.nx-counter-card {
    flex: 0 0 220px;
  }
  details.nx-counter-fold[open] .nx-counter-inline {
    flex: 1 1 auto;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-self: stretch;
  }
}
.nx-counter-drawer[hidden] { display: none; }
.nx-counter-drawer {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.nx-counter-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.52);
}
.nx-counter-drawer-sheet {
  position: relative;
  width: min(760px, 100vw);
  max-height: 88vh;
  overflow: auto;
  background: radial-gradient(120% 140% at 20% 0%, rgba(76,201,240,.08), transparent 45%), #0F1117;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px 16px 0 0;
  padding: 14px;
}
.nx-counter-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.nx-counter-drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nx-counter-drawer-name { font-weight: 800; }
.nx-counter-drawer-badge {
  font-size: .66rem;
  letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 3px 8px;
}
.nx-counter-drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: #fff;
}
.nx-counter-drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #cfcfcf;
  font-size: .74rem;
}
.nx-counter-drawer-tag,
.nx-counter-drawer-meta > span,
.nx-counter-drawer-badge {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 3px 8px;
}
.nx-counter-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}
.nx-counter-detail-block {
  background: linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 10px;
}
.nx-counter-detail-block:nth-of-type(1) {
  background: linear-gradient(180deg, rgba(32, 40, 58, 0.9), rgba(16, 22, 34, 0.9));
  border-color: rgba(122, 166, 255, 0.26);
}
.nx-counter-detail-block:nth-of-type(2) {
  background: linear-gradient(180deg, rgba(45, 34, 58, 0.9), rgba(18, 20, 34, 0.9));
  border-color: rgba(196, 126, 255, 0.24);
}
.nx-counter-detail-block:nth-of-type(3) {
  background: linear-gradient(180deg, rgba(24, 48, 43, 0.9), rgba(14, 25, 23, 0.9));
  border-color: rgba(80, 204, 172, 0.24);
}
.nx-counter-detail-block h3 {
  margin: 0 0 6px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #f1d08a;
}
.nx-counter-detail-block p {
  margin: 0;
  color: #d6d8df;
  line-height: 1.45;
  font-size: .9rem;
}
/* Drawer désactivé (on utilise l'expand inline) */
.nx-counter-drawer { display: none !important; }
@media (max-width: 768px) {
  .nx-counter-row {
    grid-template-columns: 48px 1fr 20px;
    padding: 8px;
  }
  .nx-counter-avatar {
    width: 48px;
    height: 48px;
  }
  .nx-counter-comment {
    font-size: .76rem;
  }
}

/* ── Builds Coming Soon ── */
.panel--builds-soon {
  display: flex; align-items: center; justify-content: center;
  min-height: 340px; padding: 40px 24px;
}
.builds-soon-inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.builds-soon-icon {
  width: 72px; height: 72px;
  color: var(--nx-violet-2, #9a6bff);
}

/* ── 4-column counters grid ── */
.nx-counters-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}
.nx-counters-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-counters-col .counters-section-head {
  border-radius: 8px;
  margin-bottom: 4px;
}
@media (max-width: 1100px) {
  .nx-counters-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nx-counters-4col { grid-template-columns: 1fr; }
}

/* ── Counters — stacked H2 groups, champions in a proportioned card grid ── */
.nx-counter-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.nx-counter-group-head {
  position: relative;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 16px 52px;
  justify-content: center;
}
.nx-counter-group-head h2 {
  margin: 0;
  font: inherit;
  font-size: 1.1rem;
  letter-spacing: .08em;
}
.nx-counter-group-head .counters-count {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}
.nx-counter-group-intro {
  margin: 0 auto 18px;
  max-width: min(125ch, 100%);
  font-size: .95rem;
  line-height: 1.65;
  color: rgba(224,226,232,.82);
  text-align: center;
}
.nx-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
  justify-content: center;
  gap: 20px;
  align-items: start;
  border-radius: 18px;
  padding: 24px;
}
.nx-counter-grid[data-group="hard"] {
  background: radial-gradient(140% 100% at 50% 0%, rgba(255,77,79,.09), transparent 68%);
}
.nx-counter-grid[data-group="unfavorable"] {
  background: radial-gradient(140% 100% at 50% 0%, rgba(255,159,28,.08), transparent 68%);
}
.nx-counter-grid[data-group="skillMatchups"] {
  background: radial-gradient(140% 100% at 50% 0%, rgba(255,209,102,.07), transparent 68%);
}
.nx-counter-grid[data-group="favorable"] {
  background: radial-gradient(140% 100% at 50% 0%, rgba(46,204,113,.08), transparent 68%);
}
.nx-counter-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
  color: #e6e6e6;
  border-radius: 14px;
  padding: 20px 16px;
  position: relative;
  overflow: hidden;
}
summary.nx-counter-card {
  cursor: pointer;
  list-style: none;
}
summary.nx-counter-card::-webkit-details-marker { display: none; }
summary.nx-counter-card::marker { content: ''; }
.nx-counter-card:hover {
  border-color: rgba(255,255,255,.24);
  filter: brightness(1.12);
  transform: translateY(-2px);
}
.nx-counter-card[data-tier="hard"] {
  color: #fca5a5;
  border-color: rgba(255,77,79,.42);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(255,77,79,.32), transparent 68%),
    linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
}
.nx-counter-card[data-tier="unfavorable"] {
  color: #fdba74;
  border-color: rgba(255,159,28,.4);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(255,159,28,.28), transparent 68%),
    linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
}
.nx-counter-card[data-tier="skillMatchups"] {
  color: #ffe499;
  border-color: rgba(255,209,102,.38);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(255,209,102,.26), transparent 68%),
    linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
}
.nx-counter-card[data-tier="favorable"] {
  color: #6ee7b7;
  border-color: rgba(46,204,113,.42);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(46,204,113,.28), transparent 68%),
    linear-gradient(180deg, rgba(22,26,35,.95), rgba(16,20,30,.95));
}
.nx-counter-card[data-tier="hard"] .nx-counter-card-avatar {
  border-color: rgba(255,77,79,.65);
  box-shadow: 0 0 14px rgba(255,77,79,.35), 0 8px 24px rgba(0,0,0,.28);
}
.nx-counter-card[data-tier="unfavorable"] .nx-counter-card-avatar {
  border-color: rgba(255,159,28,.65);
  box-shadow: 0 0 14px rgba(255,159,28,.3), 0 8px 24px rgba(0,0,0,.28);
}
.nx-counter-card[data-tier="skillMatchups"] .nx-counter-card-avatar {
  border-color: rgba(255,209,102,.55);
  box-shadow: 0 0 14px rgba(255,209,102,.25), 0 8px 24px rgba(0,0,0,.28);
}
.nx-counter-card[data-tier="favorable"] .nx-counter-card-avatar {
  border-color: rgba(46,204,113,.6);
  box-shadow: 0 0 14px rgba(46,204,113,.3), 0 8px 24px rgba(0,0,0,.28);
}
.nx-counter-card-media {
  position: relative;
}
.nx-counter-card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  display: block;
}
.nx-counter-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.nx-counter-card-body h3 {
  margin: 0;
  font: inherit;
  min-width: 0;
  max-width: 100%;
}
.nx-counter-card-body .nx-counter-name {
  font-weight: 700;
  font-size: .92rem;
}
.nx-counter-card-comment {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  font-size: .78rem;
  color: rgba(224,226,232,.84);
}
.nx-counter-card .nx-counter-priority { width: 100%; color: #cfcfcf; }
.nx-counter-card[data-tier="hard"] .nx-counter-priority { color: #FF4D4F; }
.nx-counter-card[data-tier="unfavorable"] .nx-counter-priority { color: #FF9F1C; }
.nx-counter-card[data-tier="skillMatchups"] .nx-counter-priority { color: #FFD166; }
.nx-counter-card[data-tier="favorable"] .nx-counter-priority { color: #2ECC71; }
/* ── Matchups connus sans analyse rédigée ─────────────────────────────────
   Même verdict canonique que les cartes détaillées (ledger), mais pas de prose : rendus en
   tuiles nettement plus légères pour que la hiérarchie de lecture reste évidente sans avoir
   à l'expliquer au lecteur. */
.nx-counter-quick-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 0;
  padding: 14px 16px 4px;
  max-width: 1080px;
  border-top: 1px dashed rgba(255,255,255,.1);
}
/* Le libellé porte le séparateur quand il est présent — deux traits pointillés
   à 6px d'écart se liraient comme un défaut de rendu. */
.nx-counter-quick-label {
  margin: 14px auto 0;
  padding: 12px 16px 0;
  max-width: 1080px;
  border-top: 1px dashed rgba(255,255,255,.1);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(224,226,232,.5);
  text-align: center;
}
.nx-counter-quick-label + .nx-counter-quick-grid {
  margin-top: 0;
  padding-top: 10px;
  border-top: 0;
}
.nx-counter-quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  color: rgba(226,232,244,.72);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  transition: transform .18s, border-color .18s, background .18s, color .18s;
}
.nx-counter-quick:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  color: #f2f6ff;
}
.nx-counter-quick__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,.16);
  flex: none;
}
.nx-counter-quick[data-tier="hard"]          { border-color: rgba(255,77,79,.24); }
.nx-counter-quick[data-tier="hard"]:hover    { border-color: rgba(255,77,79,.55); }
.nx-counter-quick[data-tier="hard"] .nx-counter-quick__avatar { border-color: rgba(255,77,79,.45); }
.nx-counter-quick[data-tier="unfavorable"]       { border-color: rgba(255,159,28,.22); }
.nx-counter-quick[data-tier="unfavorable"]:hover { border-color: rgba(255,159,28,.52); }
.nx-counter-quick[data-tier="unfavorable"] .nx-counter-quick__avatar { border-color: rgba(255,159,28,.42); }
.nx-counter-quick[data-tier="skillMatchups"]       { border-color: rgba(255,209,102,.2); }
.nx-counter-quick[data-tier="skillMatchups"]:hover { border-color: rgba(255,209,102,.5); }
.nx-counter-quick[data-tier="skillMatchups"] .nx-counter-quick__avatar { border-color: rgba(255,209,102,.4); }
.nx-counter-quick[data-tier="favorable"]       { border-color: rgba(46,204,113,.22); }
.nx-counter-quick[data-tier="favorable"]:hover { border-color: rgba(46,204,113,.52); }
.nx-counter-quick[data-tier="favorable"] .nx-counter-quick__avatar { border-color: rgba(46,204,113,.42); }

/* ── En-tête + croix du détail : n'existent que dans l'overlay mobile ────── */
.nx-counter-inline__head { display: none; }
.nx-counter-inline__link {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-cyan, #42b7ff);
  text-decoration: none;
}
/* Pont counters → builds (2026-09-05) : la build de l'adversaire nommé sur la carte et dans le
   détail — /builds/ recevait 16 liens entrants contre 42 pour /counters/ (mesure EN). */
.nx-counter-inline__links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nx-counter-build-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: .72rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--accent-cyan, #42b7ff);
  text-decoration: none;
}
.nx-counter-build-link:hover, .nx-counter-inline__link:hover { text-decoration: underline; }
.nx-counter-inline__link:hover { text-decoration: underline; }

/* ── Mobile : vue d'ensemble d'abord, détail en plein écran ───────────────
   En colonne unique, un groupe de 18 matchups imposait un scroll interminable avant même de
   savoir QUI compose le groupe. La grille passe donc en tuiles (3–4 par ligne, sans commentaire)
   et le détail — qui n'a plus la place de se déplier in-place — s'ouvre en overlay plein écran.
   Le balisage ne change pas : c'est toujours le <details> natif, donc toujours indexable. */
@media (max-width: 700px) {
  .nx-counter-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
    padding: 14px 10px;
  }
  .nx-counter-card {
    padding: 10px 6px;
    gap: 7px;
    border-radius: 12px;
  }
  .nx-counter-card-avatar { width: 56px; height: 56px; border-radius: 14px; }
  .nx-counter-card-body { gap: 3px; }
  .nx-counter-card-body .nx-counter-name { font-size: .72rem; }
  /* La vue d'ensemble ne garde que l'identité : le reste est dans l'overlay. */
  .nx-counter-card .nx-counter-card-comment,
  .nx-counter-card .nx-counter-tags { display: none; }
  .nx-counter-card .nx-counter-priority { height: 3px; }
  /* Le libellé « Voir le détail » ne tient pas dans une tuile, mais le supprimer rendrait les
     cartes muettes : on garde le seul chevron, en pastille d'angle. */
  summary.nx-counter-card .nx-counter-more {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
    padding: 0;
    width: 18px;
    height: 18px;
    justify-content: center;
    gap: 0;
    font-size: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: rgba(240,246,255,.75);
  }
  summary.nx-counter-card .nx-counter-more::after { width: 5px; height: 5px; }

  /* Neutralise l'étalement pleine largeur du dépliage desktop. */
  details.nx-counter-fold[open] { grid-column: auto; }

  .nx-counter-fold[open] > .nx-counter-inline {
    /* top décalé sous le header (fixed, z-index:50000, h=88px mobile) — avec
       inset:0 le panneau démarrait à y=0 et le header passait au-dessus, masquant
       la croix de fermeture + l'avatar collés en haut du panneau. */
    position: fixed;
    top: calc(88px + env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 22000;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 18px 18px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(66,183,255,.1), transparent 62%),
      rgba(8, 12, 22, .985);
    gap: 16px;
  }
  .nx-counter-fold[open] > .nx-counter-inline[data-tier="hard"] {
    background: radial-gradient(120% 60% at 50% 0%, rgba(255,77,79,.16), transparent 62%), rgba(8,12,22,.985);
  }
  .nx-counter-fold[open] > .nx-counter-inline[data-tier="unfavorable"] {
    background: radial-gradient(120% 60% at 50% 0%, rgba(255,159,28,.15), transparent 62%), rgba(8,12,22,.985);
  }
  .nx-counter-fold[open] > .nx-counter-inline[data-tier="skillMatchups"] {
    background: radial-gradient(120% 60% at 50% 0%, rgba(255,209,102,.14), transparent 62%), rgba(8,12,22,.985);
  }
  .nx-counter-fold[open] > .nx-counter-inline[data-tier="favorable"] {
    background: radial-gradient(120% 60% at 50% 0%, rgba(46,204,113,.15), transparent 62%), rgba(8,12,22,.985);
  }

  .nx-counter-fold[open] .nx-counter-inline__head {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: -18px;
    margin: -18px -18px 0;
    padding: 14px 18px;
    background: rgba(8, 12, 22, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nx-counter-inline__avatar {
    width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
    border: 1.5px solid rgba(255,255,255,.2); flex: none;
  }
  .nx-counter-inline__name {
    font-family: 'Orbitron', 'Orbitron Fallback', sans-serif;
    font-size: .95rem; font-weight: 700; letter-spacing: .03em; color: #f4f8ff;
    flex: 1 1 auto; min-width: 0;
  }
  .nx-counter-close {
    flex: none;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: #e8eeff;
    cursor: pointer;
  }
  .nx-counter-close:active { background: rgba(255,255,255,.14); }

  .nx-counter-fold[open] .nx-counter-detail-block h3 { font-size: .8rem; }
  .nx-counter-fold[open] .nx-counter-detail-block p  { font-size: .88rem; line-height: 1.6; }

  .nx-counter-quick-label { padding: 10px 6px 0; font-size: .66rem; }
  .nx-counter-quick-grid { padding: 12px 6px 2px; gap: 6px; }
  .nx-counter-quick-label + .nx-counter-quick-grid { padding-top: 8px; }
  .nx-counter-quick { font-size: .72rem; padding: 5px 10px 5px 5px; }
  .nx-counter-quick__avatar { width: 26px; height: 26px; }
}
/* Hors overlay, la croix n'a pas lieu d'être — le clic sur la carte referme déjà le détail. */
@media (min-width: 701px) { .nx-counter-close { display: none; } }

/* Scroll de fond verrouillé pendant l'overlay (posé par le JS de la page counters). */
body.nx-counter-modal-open { overflow: hidden; }

/* ════════════════════════════════════════════════════════════
   HEADER NEXUS — bloc consolidé SSG
   Toutes les règles header sous un seul parent.
   ════════════════════════════════════════════════════════════ */
.header-nexus {
  --nx-nav-offset: 0px;
  --nx-cyan: #42b7ff;
  --nx-cyan-2: #7dd4ff;
  --nx-cyan-rgb: 66, 183, 255;
  --nx-gold: #d8b673;
  --nx-gold-2: #f0d79a;
  --nx-gold-rgb: 216, 182, 115;
  --nx-blue-rgb: 120, 140, 220;

  /* Positionnement */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0;
  width: 100%;
  z-index: 50000;
  pointer-events: auto !important;

  /* Layout flex : logo | nav contenu (cyan) | zone outils (or) */
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  box-sizing: border-box;

  /* Dimensions */
  height: 88px;
  overflow: visible;
  isolation: isolate;
  padding: 6px clamp(16px, 2.6vw, 30px);

  /* CSS custom properties */
  --nx-draft-size: clamp(40px, 4vw, 46px);

  /* Apparence : verre dépoli */
  background: linear-gradient(180deg, rgba(13, 18, 36, .78), rgba(8, 11, 22, .74));
  border-bottom: 1px solid rgba(var(--nx-blue-rgb), .18);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 18px 40px rgba(3, 5, 14, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: height 220ms ease, background 220ms ease, box-shadow 220ms ease;

  /* ── Tous les enfants cliquables ── */
  & * { pointer-events: auto !important; }

  /* ── Hairline lumineuse cyan→or ── */
  &::after {
    content: "";
    position: absolute;
    left: clamp(16px, 4vw, 34px);
    right: clamp(16px, 4vw, 34px);
    bottom: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(var(--nx-cyan-rgb), .55) 30%,
      rgba(var(--nx-gold-rgb), .5) 70%,
      transparent
    );
    opacity: .7;
    filter: blur(.3px);
    pointer-events: none;
    z-index: 1;
  }

  /* ── Fond mosaïque : retiré du nouveau design ── */
  & .fd-chars-layer,
  & .fd-mosaic {
    display: none !important;
  }

  /* ── Logo : flex item fixe à gauche ── */
  & > picture:first-of-type {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }
  & > picture:first-of-type:focus-within { outline: none; }

  & picture#navLogo {
    z-index: 5;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.22,.61,.36,1);
    pointer-events: auto !important;
    transform: translate(-24px, 9px);
  }
  & picture#navLogo:hover { transform: translate(-24px, 8px); }
  & picture#navLogo img {
    position: relative;
    z-index: 1;
    width: auto;
    height: 123px;
    max-width: none;
    display: block;
    pointer-events: auto;
  }
  & .navLogo-tap-target {
    position: absolute;
    width: 88px; height: 44px;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto !important;
    cursor: pointer;
    z-index: 6;
  }

  /* ── Nav : flex:1, deux zones (contenu cyan / outils or) ── */
  & #primaryNav.navsections {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: clamp(10px, 1.6vw, 18px);
    transform: none;
    z-index: 2;
  }
  & #primaryNav .nav-left,
  & #primaryNav .nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  & #primaryNav .nav-left {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
  & #primaryNav .nav-right {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  /* ── Tabsections (nav links — zone contenu, accent cyan) ── */
  & .tabsection {
    --nx-accent: var(--nx-cyan);
    --nx-accent-rgb: var(--nx-cyan-rgb);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    min-width: 0;
    color: rgba(236, 242, 255, .88);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    cursor: pointer;
    text-shadow: none;
    box-shadow: none;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    text-decoration: none;
  }
  & .tabsection:hover {
    color: #fff;
    background: rgba(var(--nx-accent-rgb), .10);
    border-color: rgba(var(--nx-accent-rgb), .32);
    transform: translateY(-1px);
    text-shadow: none;
    box-shadow: none;
  }
  & .tabsection[hidden] {
    display: inline-flex !important;
    visibility: hidden !important;
  }
  & #navPremium { display: none !important; }
  & .tabsection:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--nx-accent-rgb), .5);
    background: rgba(var(--nx-accent-rgb), .10);
  }
  & .tabsection--draft {
    --nx-accent: var(--nx-gold);
    --nx-accent-rgb: var(--nx-gold-rgb);
    color: var(--nx-gold-2);
    background: linear-gradient(180deg, rgba(40, 32, 16, .9), rgba(20, 16, 9, .92));
    border: 1px solid rgba(var(--nx-gold-rgb), .5);
    box-shadow: 0 8px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
    font-weight: 800;
    position: relative;
    overflow: hidden;
    &::before {
      content: "";
      position: absolute; inset: 0;
      background: linear-gradient(120deg, transparent 20%, rgba(255,235,190,.16) 50%, transparent 80%);
      transform: translateX(-120%);
      transition: transform .6s cubic-bezier(.22,.61,.36,1);
    }
    &:hover {
      border-color: rgba(var(--nx-gold-rgb), .85);
      color: #fff6e2;
      transform: translateY(-1px);
      box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 0 22px rgba(var(--nx-gold-rgb), .28);
      &::before { transform: translateX(120%); }
    }
  }
  & .tabsection[aria-current="page"] {
    color: #fff;
  }
  & .tabsection[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--nx-accent), transparent);
    box-shadow: 0 0 10px rgba(var(--nx-accent-rgb), .7);
    opacity: .95;
  }

  /* ── Liens génériques ── */
  & a {
    color: #aaa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
  }
  & a:hover,
  & a:focus-visible {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 180, 255, 0.7);
    outline: none;
  }

  /* ── Recherche déployable desktop (zone outils) ── */
  & .nav-btn--search {
    --nx-accent-rgb: var(--nx-cyan-rgb);
  }

  /* ── Draft button (mobile, ligneSousHeader) ── */
  & #btnOpenDraft,
  & #btnOpenDraft.btn-draft {
    width: var(--nx-draft-size);
    height: var(--nx-draft-size);
    padding: 0; margin: 0;
    transform: none;
    border-radius: 999px;
    border: 1px solid rgba(var(--nx-gold-rgb), 0.5);
    background-color: #0f1324;
    background-image: url("/assets/images/Button Draft.webp");
    background-size: 300% auto;
    background-position: 50% 48%;
    background-repeat: no-repeat;
    box-shadow: 0 12px 26px rgba(4, 6, 16, 0.7), 0 0 16px rgba(var(--nx-gold-rgb), 0.3), inset 0 0 0 1px rgba(var(--nx-gold-rgb), 0.6);
    color: transparent; font-size: 0;
    cursor: pointer;
    position: relative; overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }
  & #btnOpenDraft::before,
  & #btnOpenDraft.btn-draft::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: 999px;
    pointer-events: none; opacity: 0;
    transition: opacity 160ms ease;
    background: radial-gradient(circle at 50% 50%, rgba(var(--nx-cyan-rgb),0.22) 0%, rgba(var(--nx-gold-rgb),0.14) 32%, rgba(0,0,0,0) 70%);
    mix-blend-mode: screen;
  }
  & #btnOpenDraft:hover,
  & #btnOpenDraft.btn-draft:hover {
    transform: translateY(-1px) scale(1.01);
    border-color: rgba(var(--nx-gold-rgb), 0.85);
    box-shadow: 0 12px 24px rgba(4,6,16,0.68), 0 0 18px rgba(var(--nx-gold-rgb),0.3);
  }
  & #btnOpenDraft:hover::before,
  & #btnOpenDraft.btn-draft:hover::before { opacity: 1; }
  & #btnOpenDraft:active,
  & #btnOpenDraft.btn-draft:active { transform: translateY(0px) scale(0.99); }
  & #btnOpenDraft:focus-visible { outline: 2px solid var(--nx-cyan); outline-offset: 3px; }

  /* ── Login / User button ── */
  & #btnLogin,
  & #btnLogin.btn-login {
    min-height: 40px;
    width: 40px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 11px;
    border: 1px solid rgba(var(--nx-gold-rgb), 0.4);
    background: rgba(10, 16, 32, 0.65);
    color: #eaf2ff; cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  }
  & #btnLogin:hover { background: rgba(10, 16, 32, 0.85); border-color: rgba(var(--nx-gold-rgb), 0.7); }
  & #btnLogin:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(var(--nx-gold-rgb), .5); }
  & #btnLogin[data-nx-logged] {
    width: auto; min-width: unset;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.2px; white-space: nowrap;
  }
  & #btnLogin[data-nx-logged]::before { display: none; }

  /* ── Nav toggle (burger → croix) ── */
  & .nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 46px; height: 46px;
    flex: 0 0 auto;
    border-radius: 13px;
    border: 1px solid rgba(var(--nx-blue-rgb), 0.4);
    background: linear-gradient(180deg, rgba(14, 21, 42, 0.92), rgba(8, 12, 24, 0.96));
    color: rgba(236, 242, 255, 0.94);
    box-shadow: 0 10px 22px rgba(2, 6, 18, 0.34);
    cursor: pointer;
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      background-color 180ms ease,
      box-shadow 180ms ease,
      color 180ms ease;
  }
  & .nav-toggle__icon {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 180ms ease;
  }
  & .nav-toggle__icon span {
    display: block;
    width: 22px; height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 340ms cubic-bezier(.22,.61,.36,1), opacity 200ms ease, width 340ms ease;
  }

  /* ── LigneSousHeader (recherche + draft inline, mobile uniquement) ── */
  & > .ligneSousHeader {
    pointer-events: auto !important;
    transition: opacity 180ms ease, visibility 180ms ease;
    display: none;
    align-items: center;
    column-gap: 12px;
    position: relative;
    z-index: 10;

    & .slotGauche {
      justify-self: end;
      display: flex; align-items: center;
      gap: 12px; min-width: 0;
    }
    & .slotCentre {
      justify-self: center;
      display: flex; align-items: center; justify-content: center;
    }
    & .slotDroite {
      justify-self: start;
      display: flex; align-items: center;
      gap: 12px; min-width: 0;
    }

    /* Boutons ronds search / user */
    & .btnSousHeader,
    & .btnRecherche,
    & .btnUser {
      background: #0a1020 !important;
      border-radius: 50% !important;
      border: 2px solid rgba(120, 140, 220, 0.5) !important;
      width: 55px !important; height: 55px !important;
      margin: 0 !important;
      display: inline-flex !important;
      align-items: center; justify-content: center;
      cursor: pointer;
      text-decoration: none;
    }
    & .btnSousHeader {
      width: 34px; height: 34px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.22);
      background: rgba(10,16,32,0.55);
      box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(0,0,0,0.25);
      padding: 0; cursor: pointer;
    }
    & .btnSousHeader:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.45); }

    /* Icône loupe */
    & .btnRecherche::before {
      content: "";
      width: 18px; height: 18px; display: block;
      background: rgba(234,242,255,0.92);
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 4a6 6 0 1 1 0 12a6 6 0 0 1 0-12m0-2a8 8 0 1 0 4.9 14.3l4.4 4.4l1.4-1.4l-4.4-4.4A8 8 0 0 0 10 2z'/%3E%3C/svg%3E") center/contain no-repeat;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 4a6 6 0 1 1 0 12a6 6 0 0 1 0-12m0-2a8 8 0 1 0 4.9 14.3l4.4 4.4l1.4-1.4l-4.4-4.4A8 8 0 0 0 10 2z'/%3E%3C/svg%3E") center/contain no-repeat;
    }

    /* Icône user */
    & .btnUser::before {
      content: "";
      width: 18px; height: 18px; display: block;
      background: rgba(234,242,255,0.75);
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.33 0-8 2.67-8 4v2h16v-2c0-1.33-2.67-4-8-4z'/%3E%3C/svg%3E") center/contain no-repeat;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.33 0-8 2.67-8 4v2h16v-2c0-1.33-2.67-4-8-4z'/%3E%3C/svg%3E") center/contain no-repeat;
    }
  }

  /* ── Media queries ── */
  @media (min-width: 901px) {
    & .nav-left::after {
      content: "";
      position: absolute;
      right: calc(-0.5 * clamp(16px, 3vw, 32px));
      top: 18%; bottom: 18%;
      width: 1px;
      background: linear-gradient(180deg, rgba(var(--nx-cyan-rgb),0), rgba(var(--nx-cyan-rgb),0.28), rgba(var(--nx-cyan-rgb),0));
      opacity: 0.6;
      pointer-events: none;
    }
  }
  @media (max-width: 900px) {
    height: 88px;
    min-height: calc(88px + env(safe-area-inset-top));
    height: calc(88px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0;
    gap: 10px;
    overflow: visible;

    &::after {
      left: 14px;
      right: 14px;
      background: linear-gradient(90deg, transparent, rgba(var(--nx-cyan-rgb), 0.78), transparent);
      box-shadow: 0 0 12px rgba(var(--nx-cyan-rgb), 0.22);
    }

    & picture#navLogo { order: 1; transform: translate(-45px, 9px); }
    & picture#navLogo img {
      width: auto;
      height: 111px;
      max-width: none;
      margin: 0;
      display: block;
    }

    & > .ligneSousHeader {
      order: 2;
      display: flex;
      flex: 1 1 auto;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin: 0;
      padding: 0;
      min-width: 0;
      position: relative;
    }

    & > .ligneSousHeader .slotGauche {
      min-width: 0;
      flex: 1 1 auto;
      justify-content: flex-end;
    }

    & > .ligneSousHeader .slotDroite {
      display: none !important;
    }

    & > .ligneSousHeader .slotCentre {
      flex: 0 0 auto;
    }

    & > .ligneSousHeader .btnSousHeader,
    & > .ligneSousHeader .btnRecherche,
    & > .ligneSousHeader .btnUser {
      width: 40px !important;
      height: 40px !important;
      border-width: 1px !important;
      border-color: rgba(var(--nx-blue-rgb), 0.42) !important;
      background: linear-gradient(180deg, rgba(14, 21, 42, 0.92), rgba(8, 12, 24, 0.96)) !important;
      box-shadow: 0 10px 24px rgba(2, 6, 18, 0.32);
    }

    & > .ligneSousHeader .slotGauche #championSearch {
      /* Élargi de 175px fixe → fluide (2026-08-14) : 188px à 360px, 218px à 390px.
         Le champ est pris en étau entre le logo (qui déborde sous lui à gauche) et le
         burger à droite. `slotGauche` ayant `flex-shrink: 0`, tout élargissement pousse
         son bord droit vers le burger : la borne `100vw - 172px` est calibrée pour
         garder ~14px de dégagement avant le burger sur toute la matrice mobile
         (mesuré à 360/375/390/428). Ne pas l'augmenter sans re-mesurer — à
         `100vw - 148px` le champ recouvrait le burger de 10px à 360px.
         `translateX(-48px)` est laissé intact, c'est lui qui cale le champ.
         Le panneau de résultats est découplé et bien plus large (jusqu'à 360px) —
         voir positionOverlay() dans ssgHeaderNav.js. */
      width: clamp(175px, calc(100vw - 172px), 220px);
      max-width: none;
      flex-shrink: 0;
      height: 38px !important;
      border-radius: 11px;
      border: 1px solid rgba(var(--nx-gold-rgb), 0.45);
      background: rgba(10, 16, 32, 0.72);
      color: rgba(234, 242, 255, 0.95);
      padding: 0 10px 0 32px;
      font-size: 16px;
      box-sizing: border-box;
      outline: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(216,182,115,0.85)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: 10px 50%;
      background-size: 16px;
      transform: translateX(-48px) !important;
      margin: 0 !important;
    }
    & > .ligneSousHeader .slotGauche { flex-shrink: 0; }

    & > .ligneSousHeader .slotGauche #championSearch::placeholder {
      color: rgba(234, 242, 255, 0.45);
    }

    & > .ligneSousHeader .slotGauche #championSearch:focus-visible {
      border-color: rgba(var(--nx-cyan-rgb), 0.6);
      box-shadow: 0 0 0 2px rgba(var(--nx-cyan-rgb), 0.15), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    }

    & .nav-toggle {
      display: grid;
      place-items: center;
      order: 3;
      margin: 0;
      position: relative;
      z-index: 95;
    }

    &.is-open .nav-toggle,
    & .nav-toggle[aria-expanded="true"] {
      color: var(--nx-cyan-2);
      border-color: rgba(var(--nx-cyan-rgb), 0.55);
      box-shadow: 0 0 0 1px rgba(var(--nx-cyan-rgb), 0.18), 0 0 18px rgba(var(--nx-cyan-rgb), 0.18);
    }

    & .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
      transform: translateY(6.5px) rotate(45deg);
    }

    & .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) {
      opacity: 0;
      width: 0;
    }

    & .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
      transform: translateY(-6.5px) rotate(-45deg);
    }

    /* ── Drawer immersif depuis la droite — démarre SOUS le header pour que
       le burger (devenu croix) reste visible et cliquable au-dessus ── */
    & #primaryNav.navsections {
      position: fixed;
      top: calc(88px + env(safe-area-inset-top));
      right: 0;
      bottom: auto;
      left: auto;
      height: calc(100dvh - 88px - env(safe-area-inset-top));
      width: min(86%, 360px);
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
      transform: translateX(105%);
      /* padding-bottom généreux : la pub sticky Journey (.adhesion_wrapper, h=90px,
         cf. .claude/rules/monetization-journey.md) recouvre le bas de l'écran — sans
         cette marge, les derniers boutons (Mon compte, Contact) ne sont jamais scrollables
         au-dessus d'elle. */
      padding: 16px 16px calc(100px + env(safe-area-inset-bottom));
      margin: 0;
      border-radius: 0;
      border: 0;
      border-left: 1px solid rgba(var(--nx-cyan-rgb), 0.2);
      background:
        radial-gradient(120% 60% at 100% 0%, rgba(var(--nx-cyan-rgb), 0.1), transparent 50%),
        linear-gradient(180deg, rgba(13, 18, 38, 0.99), rgba(7, 10, 22, 0.99));
      box-shadow: -30px 0 60px rgba(2, 5, 16, 0.6);
      opacity: 1;
      visibility: visible;
      pointer-events: none;
      max-height: none;
      overflow-x: hidden;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      transition: transform .4s cubic-bezier(.22,.61,.36,1);
      z-index: 80;
    }

    & #primaryNav.navsections.is-open {
      pointer-events: auto;
      transform: translateX(0);
    }

    /* Scrim derrière le drawer — sous le header, qui reste lisible/cliquable */
    &.is-open::before {
      content: "";
      position: fixed;
      top: calc(88px + env(safe-area-inset-top));
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 70;
      background: rgba(3, 5, 12, .55);
      backdrop-filter: blur(3px);
    }

    & #primaryNav .nav-left,
    & #primaryNav .nav-right {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      flex: 1 1 auto;
      margin-left: 0;
      width: 100%;
    }

    & .nav-mobile-section {
      display: grid;
      gap: 5px;
      padding: 7px;
      border: 1px solid rgba(120, 140, 220, 0.14);
      border-radius: 14px;
      background:
        linear-gradient(180deg, rgba(18, 24, 42, 0.82), rgba(10, 14, 28, 0.78)),
        radial-gradient(circle at top left, rgba(66, 183, 255, 0.08), transparent 52%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 22px rgba(0,0,0,0.18);
    }

    & .nav-mobile-heading {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 20px;
      padding: 0 4px 2px;
      color: rgba(212, 177, 113, 0.82);
      font-size: 0.64rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    & .nav-mobile-heading::before {
      content: "";
      width: 18px;
      height: 1px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(212, 177, 113, 0.9), rgba(66, 183, 255, 0.28));
      box-shadow: 0 0 10px rgba(212, 177, 113, 0.18);
    }

    & .nav-mobile-links {
      display: grid;
      grid-template-columns: 1fr;
      gap: 6px;
    }

    & #primaryNav .nav-actions-sep,
    & #primaryNav .nav-right .nav-btn--search,
    & #primaryNav .nav-right .nav-btn--user {
      display: none !important;
    }

    & #primaryNav .tabsection {
      width: 100%;
      min-width: 0;
      height: auto;
      min-height: 38px;
      padding: 0 14px;
      justify-content: flex-start;
      border-radius: 11px;
      font-size: 0.82rem;
      letter-spacing: 0.02em;
      background: rgba(255, 255, 255, .015);
      border: 1px solid rgba(255, 255, 255, .08);
      opacity: 0;
      transform: translateX(14px);
      transition:
        opacity 220ms ease,
        transform 220ms ease,
        border-color 160ms ease,
        background-color 160ms ease;
    }

    & #primaryNav.navsections.is-open .tabsection {
      opacity: 1;
      transform: translateX(0);
    }

    & #primaryNav .nav-btn--lang {
      width: 100%;
      min-width: 0;
      min-height: 36px;
      padding: 0;
      border-radius: 12px;
      font-size: 0.72rem;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      box-shadow: none;
    }

    & #primaryNav.navsections .tabsection:nth-child(1) { transition-delay: 0ms; }
    & #primaryNav.navsections .tabsection:nth-child(2) { transition-delay: 25ms; }
    & #primaryNav.navsections .tabsection:nth-child(3) { transition-delay: 50ms; }
    & #primaryNav.navsections .tabsection:nth-child(4) { transition-delay: 75ms; }
    & #primaryNav.navsections .tabsection:nth-child(5) { transition-delay: 100ms; }
    & #primaryNav.navsections .tabsection:nth-child(6) { transition-delay: 125ms; }
    & #primaryNav.navsections .tabsection:nth-child(7) { transition-delay: 150ms; }
    & #primaryNav.navsections .tabsection:nth-child(8) { transition-delay: 175ms; }

    & #primaryNav .tabsection--mobile {
      display: inline-flex !important;
      width: 100%;
    }

    & #primaryNav .nav-account-trigger {
      appearance: none;
      -webkit-appearance: none;
      display: inline-flex !important;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
      min-width: 0;
      min-height: 42px;
      margin: 0;
      padding: 0 14px;
      gap: 10px;
      border: 1px solid rgba(203, 168, 92, 0.42);
      border-radius: 13px;
      background:
        radial-gradient(circle at 12% 50%, rgba(212, 177, 113, 0.18), transparent 22%),
        linear-gradient(135deg, rgba(28, 22, 14, 0.96), rgba(18, 24, 44, 0.96) 48%, rgba(7, 11, 24, 0.94));
      box-shadow:
        0 14px 30px rgba(0,0,0,0.46),
        0 0 0 1px rgba(145, 215, 255, 0.16),
        0 0 18px rgba(212, 177, 113, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.16),
        inset 0 0 0 1px rgba(5, 10, 24, 0.42);
      color: #f7f0dd;
      font-size: 0.84rem;
      font-weight: 800;
      letter-spacing: 0.03em;
      text-transform: none;
      text-align: left;
      text-decoration: none;
      text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
      position: relative;
      overflow: hidden;
      opacity: 0;
      transform: translateX(14px);
      transition:
        opacity 220ms ease,
        transform 220ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
    }

    & .nav-account-trigger::before {
      content: "";
      flex: 0 0 18px;
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0) 36%),
        linear-gradient(180deg, rgba(214, 183, 116, 0.95), rgba(127, 182, 255, 0.95));
      box-shadow:
        0 0 0 1px rgba(255,255,255,0.12),
        0 0 14px rgba(212, 177, 113, 0.28);
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.33 0-8 2.67-8 4v2h16v-2c0-1.33-2.67-4-8-4z'/%3E%3C/svg%3E") center / contain no-repeat;
              mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.33 0-8 2.67-8 4v2h16v-2c0-1.33-2.67-4-8-4z'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    & .nav-account-trigger::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.12) 18%, transparent 36%);
      opacity: 0.7;
      pointer-events: none;
    }

    & #primaryNav.navsections.is-open .nav-account-trigger {
      opacity: 1;
      transform: translateX(0);
    }

    & .nav-account-trigger:hover {
      color: #fff8e8;
      border-color: rgba(212, 177, 113, 0.72);
      background:
        radial-gradient(circle at 12% 50%, rgba(212, 177, 113, 0.24), transparent 24%),
        linear-gradient(135deg, rgba(35, 26, 16, 0.98), rgba(22, 30, 56, 0.98) 48%, rgba(10, 14, 28, 0.96));
      text-shadow: 0 0 14px rgba(212, 177, 113, 0.34);
      box-shadow:
        0 18px 34px rgba(0,0,0,0.52),
        0 0 0 1px rgba(212, 177, 113, 0.32),
        0 0 22px rgba(212, 177, 113, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.18);
    }

    & .nav-account-trigger:focus-visible {
      outline: none;
      box-shadow:
        0 0 0 3px rgba(0, 200, 255, 0.22),
        0 0 20px rgba(0, 200, 255, 0.18),
        0 0 0 1px rgba(132, 223, 255, 0.45);
    }

    & .tabsection--draft {
      color: #f3ecdc;
      border-color: rgba(203, 168, 92, 0.62);
      background:
        linear-gradient(180deg, rgba(30, 24, 14, 0.94), rgba(14, 12, 8, 0.94)),
        radial-gradient(circle at left center, rgba(212, 177, 113, 0.16), transparent 45%);
      box-shadow: inset 0 0 0 1px rgba(203, 168, 92, 0.24);
    }

    /* Dropdown mobile : accordion inline */
    & .nav-meta-group {
      width: 100%;
      display: flex;
      flex-direction: column;
    }

    & .tabsection--with-dropdown {
      width: 100%;
    }

    & .nav-dropdown {
      position: static;
      transform: none;
      opacity: 1;
      visibility: visible;
      background: rgba(0, 200, 255, 0.04);
      border: 1px solid rgba(66, 183, 255, 0.15);
      box-shadow: none;
      backdrop-filter: none;
      display: none;
      padding: 4px;
      margin-top: 4px;
      border-radius: 12px;
      width: 100%;
    }

    & .nav-meta-group.is-open .nav-dropdown {
      display: block;
    }

    & .nav-dropdown-item {
      min-height: 38px;
      padding: 7px 10px !important;
      font-size: 0.8rem !important;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
    }

    & .nav-dropdown-item small {
      font-size: 0.66rem !important;
    }

    & .nav-dropdown-head {
      font-size: 0.56rem;
      padding: 6px 10px 4px;
    }
  }

  @media (min-width: 901px) {
    & .nav-mobile-section {
      display: contents;
    }

    & .nav-mobile-heading {
      display: none !important;
    }

    & .nav-mobile-links {
      display: contents;
    }

    & > .ligneSousHeader .slotGauche {
      display: none !important;
    }

    & .tabsection--mobile {
      display: none !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    & .nav-toggle,
    & .nav-toggle__icon,
    & .nav-toggle__icon span,
    & #primaryNav.navsections,
    & .tabsection {
      transition: none !important;
    }

    & .tabsection {
      opacity: 1;
      transform: none;
    }
    /* Pas de « #primaryNav { transform: none } » ici : le tiroir fermé est à translate(105%) ;
       le remettre à none l'affichait ouvert en permanence sous mouvement réduit (2026-05-16 → 2026-10-15). */
  }

  /* ── Dropdown Meta ── */
  & .nav-meta-group {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  & .nav-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    flex-shrink: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 160ms ease;
    vertical-align: middle;
  }

  & .nav-meta-group:hover .nav-chevron,
  & .nav-meta-group.is-open .nav-chevron {
    transform: rotate(180deg);
  }

  & .nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 250px;
    background: linear-gradient(180deg, rgba(16, 22, 44, 0.98) 0%, rgba(8, 11, 24, 0.99) 100%);
    border: 1px solid rgba(var(--nx-cyan-rgb), 0.22);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top left;
    transition: opacity 200ms ease, visibility 200ms ease, transform 240ms cubic-bezier(.22,.61,.36,1);
    z-index: 200;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 50px rgba(2,5,16,.66), 0 0 0 1px rgba(var(--nx-cyan-rgb),.08);
  }

  & .nav-meta-group:hover .nav-dropdown,
  & .nav-meta-group.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  & .nav-dropdown-head {
    font-family: var(--ff-display, 'Orbitron', 'Orbitron Fallback', sans-serif);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(170, 185, 222, .4);
    padding: 8px 12px 6px;
  }

  & .nav-dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 9px 12px;
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    line-height: 1.25;
    border-radius: 10px;
    text-decoration: none;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
  }

  & .nav-dropdown-item small {
    font-size: .72rem !important;
    font-weight: 500 !important;
    color: rgba(170, 185, 222, .55);
    margin-top: 2px;
  }

  & .nav-dropdown-item:hover,
  & .nav-dropdown-item:focus-visible {
    background: rgba(var(--nx-cyan-rgb), 0.12);
    color: #fff !important;
    transform: translateX(2px);
  }

  /* ── Compact scrolled ── */
  &.scrolled {
    height: 72px;
    background: linear-gradient(180deg, rgba(10, 14, 28, .92), rgba(7, 10, 20, .9));
    box-shadow: 0 14px 30px rgba(3, 5, 14, .62);
  }
  @media (max-width: 900px) {
    &.scrolled { height: calc(72px + env(safe-area-inset-top)); }
  }
}

@media (max-width: 900px) {
  .ssg-breadcrumb {
    margin-top: calc(94px + env(safe-area-inset-top)) !important;
  }

  body.ssg-nav-open {
    overflow: hidden;
  }

  /* Cacher le groupe desktop (MVP+User) sur mobile — les boutons mobile les remplacent */
  .header-nexus #primaryNav .nav-right .nav-user-group {
    display: none !important;
  }

  /* Bouton MVP dans le burger menu */
  .header-nexus #primaryNav .tabsection--mvp {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: auto !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(240,192,64,.16), rgba(212,175,95,.08)) !important;
    border: 1px solid rgba(240,192,64,.4) !important;
    color: rgba(255, 224, 140, .95) !important;
    font-size: 0.8rem !important;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(240,192,64,.08), inset 0 1px 0 rgba(255,255,255,.06);
  }
  .header-nexus #primaryNav .tabsection--mvp:hover {
    border-color: rgba(240,192,64,.65) !important;
    background: linear-gradient(135deg, rgba(240,192,64,.22), rgba(212,175,95,.12)) !important;
    color: #fff0cc !important;
  }
  .header-nexus #primaryNav .tabsection--mvp.is-vip {
    background: linear-gradient(135deg, rgba(240,192,64,.24), rgba(212,175,95,.13)) !important;
    border-color: rgba(240,192,64,.55) !important;
    pointer-events: none;
    cursor: default;
  }
}

/* Éléments positionnés (hors header) */
#viewport, #hubPanel, .carrousel, .listechampions,
.mobile-hub-sheet, .mobile-hub-backdrop, #sceneWrapper {
  position: relative;
}

/* Masquer les éléments SPA injectés dynamiquement sur les pages SSG */
.hud-parametres { display: none !important; }

/* ── Nav actions ── */

/* Desktop : boutons dans nav-right, séparés par un trait */
.header-nexus .nav-actions-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(120, 140, 220, 0.3);
  margin: 0 4px;
  vertical-align: middle;
}

.header-nexus .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(120, 140, 220, 0.3);
  background: rgba(10, 14, 28, 0.85);
  color: rgba(236, 242, 255, 0.6);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  flex-shrink: 0;
}

/* ── Search — cyan ───────────────────────────────────────────────────────── */
.header-nexus .nav-btn--search {
  color: #42b7ff;
  border-color: rgba(66, 183, 255, 0.3);
}
.header-nexus .nav-btn--search:hover {
  border-color: rgba(66, 183, 255, 0.65);
  box-shadow: 0 0 14px rgba(66, 183, 255, 0.2);
  color: #7dd4ff;
}
.header-nexus .nav-btn--search::before {
  content: "";
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 4a6 6 0 1 1 0 12 6 6 0 0 1 0-12m0-2a8 8 0 1 0 4.9 14.3l4.4 4.4 1.4-1.4-4.4-4.4A8 8 0 0 0 10 2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 4a6 6 0 1 1 0 12 6 6 0 0 1 0-12m0-2a8 8 0 1 0 4.9 14.3l4.4 4.4 1.4-1.4-4.4-4.4A8 8 0 0 0 10 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Draft — violet (crosshair = cibler ses picks/bans) ─────────────────── */
.header-nexus .nav-btn--draft {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}
.header-nexus .nav-btn--draft:hover {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.2);
  color: #c4b0ff;
}
.header-nexus .nav-btn--draft::before {
  content: "";
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='black'/%3E%3Cpath fill='black' d='M13 4.07V2h-2v2.07C7.38 4.53 4.53 7.38 4.07 11H2v2h2.07C4.53 16.62 7.38 19.47 11 19.93V22h2v-2.07c3.62-.46 6.47-3.31 6.93-6.93H22v-2h-2.07C19.47 7.38 16.62 4.53 13 4.07zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='black'/%3E%3Cpath fill='black' d='M13 4.07V2h-2v2.07C7.38 4.53 4.53 7.38 4.07 11H2v2h2.07C4.53 16.62 7.38 19.47 11 19.93V22h2v-2.07c3.62-.46 6.47-3.31 6.93-6.93H22v-2h-2.07C19.47 7.38 16.62 4.53 13 4.07zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── User — neutre/doré ──────────────────────────────────────────────────── */
.header-nexus .nav-btn--user {
  color: rgba(200, 210, 255, 0.55);
  border-color: rgba(120, 140, 220, 0.25);
}
.header-nexus .nav-btn--user:hover {
  border-color: rgba(200, 210, 255, 0.45);
  color: rgba(200, 210, 255, 0.9);
}
.header-nexus .nav-btn--user::before {
  content: "";
  width: 17px; height: 17px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.33 0-8 2.67-8 4v2h16v-2c0-1.33-2.67-4-8-4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.33 0-8 2.67-8 4v2h16v-2c0-1.33-2.67-4-8-4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Lang switcher — texte, pas d'icône ─────────────────────────────────── */
.header-nexus .nav-btn--lang {
  width: auto;
  min-width: 38px;
  padding: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(200, 210, 255, 0.55);
  border-color: rgba(120, 140, 220, 0.2);
}
.header-nexus .nav-btn--lang:hover {
  color: rgba(200, 210, 255, 0.9);
  border-color: rgba(200, 210, 255, 0.35);
}
.header-nexus .nav-btn--lang::before { display: none; }

/* ── Séparateur gauche (entre Draft et Champions) ───────────────────────── */
.header-nexus .nav-actions-sep--left {
  margin: 0 6px;
}

/* ── Icônes SVG dans les liens texte de la nav ──────────────────────────── */
.header-nexus .nav-text-icon {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -2px;
  flex-shrink: 0;
  opacity: .55;
  transition: opacity .15s;
}
.header-nexus .tabsection:hover .nav-text-icon,
.header-nexus .tabsection[aria-current="page"] .nav-text-icon { opacity: 1; }

/* Neon pulse animation for logged-in user avatar */
@keyframes nx-neon-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(212,175,95,.45), 0 0 0 2px rgba(212,175,95,.18);
  }
  50% {
    box-shadow: 0 0 18px rgba(212,175,95,.8), 0 0 0 3px rgba(212,175,95,.35), 0 0 32px rgba(212,175,95,.18);
  }
}
@keyframes nx-tip-appear {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* User logged in — avatar initiales */
.header-nexus .nav-btn.nav-btn--user[data-nx-logged="1"]::before {
  display: none !important;
}
.header-nexus .nav-btn.nav-btn--user[data-nx-logged="1"] {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--color-cyan, #00c8ff) !important;
  color: #000 !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  justify-content: center !important;
  gap: 0 !important;
  border: 2px solid rgba(212, 175, 95, 0.7) !important;
  animation: nx-neon-pulse 2.2s ease-in-out infinite !important;
}

/* Dashboard tip badge below the user button */
.header-nexus .nav-user-group .nx-dash-tip {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: rgba(212, 175, 95, 0.8);
  letter-spacing: .03em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  animation: nx-tip-appear .4s ease forwards;
  opacity: 0;
}


/* User logged in — avatar champion image */
.header-nexus .nav-btn.nav-btn--user[data-nx-logged="1"]:has(img) {
  overflow: hidden !important;
  background: transparent !important;
}
.header-nexus .nav-btn.nav-btn--user[data-nx-logged="1"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ── Groupe MVP + User (desktop) ─────────────────────────────────────────── */
.header-nexus .nav-user-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 2px;
}

/* ── Bouton MVP — dans le groupe desktop ─────────────────────────────────── */
.header-nexus .nav-btn--mvp {
  width: auto;
  min-width: unset;
  height: 16px;
  padding: 0 7px;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  color: rgba(240, 192, 64, 0.85);
  border-color: rgba(240, 192, 64, 0.28);
  background: rgba(240, 192, 64, 0.06);
  border-radius: 4px;
}
.header-nexus .nav-btn--mvp:hover {
  color: rgba(240, 192, 64, 1);
  border-color: rgba(240, 192, 64, 0.52);
  background: rgba(240, 192, 64, 0.11);
}
.header-nexus .nav-btn--mvp::before { display: none; }
.header-nexus .nav-btn--mvp.is-vip {
  background: rgba(240, 192, 64, 0.14);
  border-color: rgba(240, 192, 64, 0.55);
  color: rgba(240, 192, 64, 1);
  box-shadow: 0 0 10px rgba(240, 192, 64, 0.35), 0 0 22px rgba(240, 192, 64, 0.12);
  text-shadow: 0 0 8px rgba(240, 192, 64, 0.5);
  cursor: default;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   CHAMPION SEARCH OVERLAY
   ════════════════════════════════════════════════════════════ */
.nx-csearch {
  position: fixed;
  z-index: 999999;
  width: min(440px, calc(100vw - 16px));
  left: 50%;
  transform: translateX(-50%);
}

/* Largeur de repli avant que setupInlineSearch n'ait mesuré l'input (mode inline, le
   JS écrit alors overlay.style.width). Doit rester assez large pour le toggle de
   portée : sous ~300px les deux libellés se chevauchent. */
@media (max-width: 900px) {
  .nx-csearch {
    width: min(340px, calc(100vw - 16px));
  }
}

/* ── Toggle de portée (Champions / Guides · Items · Hubs) ── */
.nx-csearch__modes {
  display: flex;
  gap: 4px;
  padding: 3px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(120, 140, 220, .22);
}

/* ⚠️ `.draft-analyzer-shell button` et consorts remettent à plat tout bouton non
   préfixé — ces règles sont volontairement portées par la classe, pas par `button`. */
.nx-csearch__mode {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(200, 214, 245, .72);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nx-csearch__mode:hover {
  color: rgba(230, 240, 255, .95);
}
.nx-csearch__mode.is-active {
  background: rgba(66, 130, 255, .22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(66, 183, 255, .45);
}
.nx-csearch__mode:focus-visible {
  outline: 2px solid rgba(66, 183, 255, .7);
  outline-offset: 1px;
}

.nx-csearch__box {
  background: linear-gradient(180deg, rgba(11,17,36,.97), rgba(6,10,22,.99));
  border: 1px solid rgba(100,130,220,.45);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
}

.nx-csearch__input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(120,140,220,.3);
  border-radius: 8px;
  color: #ecf2ff;
  font-size: .9rem;
  padding: 8px 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.nx-csearch__input:focus {
  border-color: rgba(66,183,255,.6);
}

.nx-csearch__results {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
}

.nx-csearch__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(220,230,255,.9);
  font-size: .875rem;
  transition: background .12s;
}
.nx-csearch__item:hover {
  background: rgba(66,130,255,.15);
  color: #fff;
}
.nx-csearch__item img {
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}

/* Guides et hubs n'ont pas d'image propre. Un carré vide se lisait comme une
   image cassée : on met à la place le glyphe du type (ou celui du hub, identique
   à son icône de nav), teinté comme le badge correspondant. Mêmes dimensions que
   les vignettes champion/item, donc libellés toujours alignés. */
.nx-csearch__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(120, 140, 220, .18);
  color: rgba(196, 212, 245, .85);
}
.nx-csearch__icon svg {
  width: 17px;
  height: 17px;
  display: block;
}
.nx-csearch__icon--guide {
  background: rgba(66, 183, 255, .12);
  border-color: rgba(66, 183, 255, .3);
  color: #9fd8ff;
}
.nx-csearch__icon--item {
  background: rgba(240, 192, 64, .1);
  border-color: rgba(240, 192, 64, .3);
  color: #edcd86;
}
.nx-csearch__icon--page {
  background: rgba(150, 160, 200, .1);
  border-color: rgba(150, 160, 200, .26);
  color: #c3cbe4;
}

.nx-csearch__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-csearch__badge {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(120, 140, 220, .28);
  color: rgba(196, 212, 245, .85);
}
.nx-csearch__badge--guide {
  background: rgba(66, 183, 255, .16);
  border-color: rgba(66, 183, 255, .4);
  color: #9fd8ff;
}
.nx-csearch__badge--item {
  background: rgba(240, 192, 64, .14);
  border-color: rgba(240, 192, 64, .38);
  color: #edcd86;
}
.nx-csearch__badge--page {
  background: rgba(150, 160, 200, .14);
  border-color: rgba(150, 160, 200, .32);
  color: #c3cbe4;
}

/* ════════════════════════════════════════════════════════════
   SSG COUNTER PAGES — styles déportés depuis generate-counters
   ════════════════════════════════════════════════════════════ */

/* ── Body / layout ── */
html, body { overflow: unset !important; height: auto !important; }
body { min-height: 100vh; }
.ssg-page-wrap { width: 100%; padding: 0 32px 64px; box-sizing: border-box; }
/* Mobile : les 32px de chaque côté coûtaient 64px de largeur utile sur un écran de
   390px (16%) — la grille de vignettes tombait à 3 colonnes et les sections se
   compressaient. Le gouttière descend à 14px (10px sous 480px), les cartes internes
   gardent leur propre padding : rien ne colle au bord. */
@media (max-width: 900px) { .ssg-page-wrap { padding: 0 14px 48px; } }
@media (max-width: 480px) { .ssg-page-wrap { padding: 0 10px 40px; } }
.ssg-page-wrap, .ssg-breadcrumb, .nx-footer { position: relative; z-index: 1; }
.ssg-breadcrumb { margin-top: 130px !important; }
/* Mobile : nx-ticker passe sous le header (top: ~94px + 28px de hauteur) — 110px ne suffit plus, écrase le fil d'Ariane */
@media (max-width: 900px) {
  .ssg-breadcrumb { margin-top: 130px !important; }
}

/* ── Champion hero ── */
.champ-hero {
  position: relative; overflow: hidden;
  height: clamp(300px, 36vw, 440px);
  border-radius: 20px; margin: 4px 0 28px;
  background-color: #0d1428;
}
.champ-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  filter: saturate(1.1);
  transition: transform 6s ease;
  transform: translateZ(0);
}
.champ-hero__icon-wrap {
  position: relative;
  width: 110px;
  height: 175px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
  transition: box-shadow 0.4s ease;
}
.champ-hero__icon-wrap:has(.nx-vid-ready) {
  box-shadow:
    0 0 0 1px rgba(212,175,55,.55),
    0 0 18px rgba(212,175,55,.22),
    0 6px 24px rgba(0,0,0,.55);
}
.champ-hero__icon-wrap::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  background: linear-gradient(to bottom, rgba(255,220,100,.12) 0%, transparent 38%);
  border: 1px solid rgba(212,175,55,.35);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.champ-hero__icon-wrap:has(.nx-vid-ready)::after {
  opacity: 1;
}
.champ-hero__icon-wrap .champ-hero__icon {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 0;
}
.champ-hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.champ-hero__video-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.champ-hero__icon-wrap:has(.nx-vid-ready) .champ-hero__video-poster { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .champ-hero__video { display: none; } }
html.perf-lite .champ-hero__video { display: none; }
html.nx-video-off .champ-hero__video { display: none; }
html.nx-video-off .champ-hero__video-poster { opacity: 1 !important; }

/* Colonne vidéo : poster au-dessus, bouton en dessous */
.champ-hero__video-col {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
/* Bouton désactivation vidéo */
.nx-vid-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .65rem; font-weight: 600;
  color: rgba(220,235,225,.5);
  background: rgba(4,6,18,.5); border: 1px solid rgba(220,235,225,.12);
  border-radius: 6px; padding: 3px 7px;
  cursor: pointer; white-space: nowrap;
  transition: color .2s, border-color .2s;
  position: relative; width: 100%;
}
.nx-vid-toggle:hover { color: rgba(220,235,225,.85); border-color: rgba(220,235,225,.3); }
.champ-hero__icon-wrap:has(.nx-vid-ready) ~ .nx-vid-toggle { color: rgba(80,220,120,.8); border-color: rgba(80,220,120,.3); }
html.nx-video-off .nx-vid-toggle,
.nx-vid-toggle[aria-pressed="false"] { color: rgba(220,80,80,.85) !important; border-color: rgba(220,80,80,.4) !important; }
.nx-vid-tooltip-portal {
  position: fixed;
  width: 210px;
  background: rgba(4,6,18,.97);
  border: 1px solid rgba(220,235,225,.15); border-radius: 8px;
  padding: 10px 12px; font-size: .67rem; line-height: 1.6;
  color: rgba(220,235,225,.8); font-weight: 400;
  pointer-events: none; z-index: 9999;
  text-align: left; white-space: normal;
  opacity: 0; transition: opacity .15s ease;
}
.nx-vid-tooltip-portal.is-visible { opacity: 1; }
.nx-vid-tooltip-portal strong { color: #fff; display: block; margin-bottom: 4px; }
.nx-vid-tooltip-portal em { color: rgba(212,175,55,.8); font-style: normal; }
.nx-vid-toggle__tooltip { display: none; }
.champ-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(4,6,18,.16) 0%, rgba(4,6,18,.02) 24%, rgba(4,6,18,.26) 52%, rgba(4,6,18,.97) 100%),
    radial-gradient(circle at center, rgba(4, 6, 18, .08), rgba(4, 6, 18, .44) 72%);
}
.champ-hero__content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: flex-end; gap: 20px; padding: 24px 28px;
  max-width: min(440px, calc(100% - 36px));
}
.champ-hero__icon {
  width: 96px; height: 96px; border-radius: 16px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 32px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
  margin-bottom: 4px;
}
.champ-hero__info { flex: 1; min-width: 0; padding-bottom: 4px; }

/* cover__data remplace champ-hero__content sur les sous-pages */
.chp-hero .champ-hero__content { display: none; }
.chp-hero.champ-hero { height: clamp(140px, 18vw, 190px); margin-bottom: 16px; }
.chp-hero .champ-hero__lede-wrap { top: 50%; transform: translateY(-50%); }

/* ── Layout horizontal commun à toutes les pages champion ────────────────── */
/* Content élargi pour accueillir [name/meta] | [stats-bar] côte à côte      */
.chp-hero .champ-hero__content {
  align-items: center;
  padding-bottom: 20px;
  max-width: min(900px, calc(100% - 40px));
}
.chp-hero .champ-hero__info {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0;
}
.chp-hero .champ-hero__name,
.chp-hero .champ-hero__meta {
  grid-column: 1;
}
.chp-hero .chp-stats-bar {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  border-left: 1px solid rgba(255,255,255,.10);
  padding-left: 20px;
}
.champ-hero__name {
  font-family: 'Tytoon Mist', 'Tytoon Mist Fallback', 'Orbitron', 'Orbitron Fallback', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 400; color: #fff; margin: 0 0 8px; line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,.8);
  letter-spacing: .06em;
}
.champ-hero__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.champ-hero__class { font-size: .8rem; color: rgba(200,210,240,.75); }
.champ-hero__lede-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(12px, 2vw, 22px);
  z-index: 2;
  width: min(980px, calc(100% - 80px));
  margin: 0 auto;
  transform: none;
  display: flex;
  justify-content: center;
  text-align: center;
}
.champ-hero__lede-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* Flou resserré au contenu réel du lede-stack (pas du wrap pleine largeur) */
.champ-hero__lede-wrap::before {
  display: none;
}
.champ-hero__lede-stack::before {
  content: "";
  position: absolute;
  inset: -20px -28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at center, rgba(4, 9, 22, .52), rgba(4, 9, 22, .18) 58%, rgba(4, 9, 22, 0) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: -1;
}
.champ-hero__lede-label {
  position: relative;
  margin: 0;
  font-family: 'Orbitron', 'Orbitron Fallback', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(235, 245, 255, .98);
  text-shadow:
    0 3px 18px rgba(0, 0, 0, .84),
    0 0 38px rgba(66, 183, 255, .18);
}
.champ-hero__lede,
.champ-hero__lede p {
  position: relative;
  margin: 0;
  max-width: 78ch;
  font-size: clamp(1rem, 1.28vw, 1.18rem);
  line-height: 1.72;
  color: rgba(239,244,255,.94);
  text-shadow:
    0 2px 16px rgba(0, 0, 0, .84),
    0 0 30px rgba(0, 0, 0, .28);
}
.champ-hero__lede strong,
.champ-hero__lede p strong {
  color: #fff;
  font-weight: 700;
}

/* ── Section nav tabs ── */
.nx-section-nav {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 28px 0 32px;
  padding: 16px;
  border: 1px solid rgba(66,183,255,.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14, 20, 40, .96), rgba(7, 11, 24, .98)),
    radial-gradient(circle at top left, rgba(66,183,255,.12), transparent 45%);
  box-shadow:
    0 14px 34px rgba(2, 6, 18, .45),
    inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.nx-section-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(66,183,255,.08), transparent 35%, rgba(212,177,113,.06));
  opacity: .9;
}
/* Boutons « glass + neon » : fond sombre translucide, bordure lumineuse, glow au survol.
   Les deux barres de navigation d'une fiche champion partagent la mécanique mais PAS la teinte —
   `.nx-section-nav` change de page (cyan), `.nx-role-switcher` change le contenu de la page en
   cours (or). Deux actions de nature différente ne doivent pas se ressembler. */
.nx-section-nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 13px 24px;
  border-radius: 14px;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid rgba(90,180,255,.25);
  color: rgba(236,244,255,.88);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s, color .25s, background .25s, box-shadow .25s;
}
.nx-section-nav a:hover {
  transform: translateY(-2px);
  border-color: #4da8ff;
  color: #f7fbff;
  box-shadow: 0 0 30px rgba(77,168,255,.25);
}
.nx-section-nav a.active,
.nx-section-nav a[aria-current="page"] {
  border-color: rgba(77,168,255,.72);
  background:
    linear-gradient(180deg, rgba(77,168,255,.22), rgba(12,22,48,.55));
  color: #ffffff;
  box-shadow:
    0 0 26px rgba(77,168,255,.28),
    inset 0 1px 0 rgba(255,255,255,.16);
}
.nx-section-nav a:focus-visible,
.nx-role-tab:focus-visible {
  outline: 2px solid #4da8ff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .nx-section-nav a,
  .nx-role-tab { transition: none; }
  .nx-section-nav a:hover,
  .nx-role-tab:hover { transform: none; }
}

/* ── Section title ── */
.nx-section-title {
  font-family: 'Orbitron', 'Orbitron Fallback', sans-serif; font-size: 1rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-cyan); margin: 0 0 18px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(66,183,255,.2);
}

/* ── Role tabs ── */
.nx-role-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.nx-role-tabs .role-tab {
  appearance: none;
  border: 1px solid #3a446a; background: #12182b;
  color: #e0cf9b; padding: 6px 14px; border-radius: 999px;
  font-size: .8rem; cursor: pointer; transition: background .15s, color .15s;
}
.nx-role-tabs .role-tab[aria-current="true"] { background: #e0cf9b; color: #0a162f; font-weight: 700; }

/* ── Counter link + tags ── */
.nx-counter-name { color: var(--text-strong); font-weight: 700; text-decoration: none; }
.nx-counter-name:hover { color: var(--accent-cyan); text-decoration: underline; }
.nx-counter-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.nx-counter-tag {
  font-size: .65rem; padding: 1px 6px; border-radius: 4px;
  background: rgba(255,255,255,.07); color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.1);
}

/* ── SEO intro ── */
.ssg-counter-intro {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-muted);
  background: rgba(120, 140, 220, .05);
  border-left: 3px solid rgba(120, 140, 220, .3);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 8px 0 28px;
}
.ssg-counter-intro strong { color: var(--text-strong); font-weight: 700; }
.ssg-counter-intro .intro-weak {
  color: #fca5a5;
  font-style: italic;
  font-weight: 600;
  background: rgba(239, 68, 68, .08);
  padding: 1px 5px;
  border-radius: 4px;
}
.ssg-counter-intro .intro-strong {
  color: #6ee7b7;
  font-style: italic;
  font-weight: 600;
  background: rgba(52, 211, 153, .08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Back link ── */
.back-profile {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1); color: var(--text-muted);
  text-decoration: none; font-size: .78rem; font-weight: 600;
  transition: border-color .15s, color .15s; margin-bottom: 4px;
}
.back-profile:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ── Footer ── */
.nx-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(120,140,220,.15);
  background: linear-gradient(180deg, rgba(8,10,20,.0), rgba(6,8,18,.96));
  padding: 48px 0 24px;
}
.nx-footer__inner { max-width: 90%; margin: 0 auto; padding: 0 32px; }
.nx-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.nx-footer__brand img { height: clamp(60px, 7vw, 100px); width: auto; margin-bottom: 12px; }
.nx-footer__brand p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; max-width: 260px; }
.nx-footer__col h4 {
  font-family: 'Orbitron', 'Orbitron Fallback', sans-serif; font-size: .72rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-gold); margin: 0 0 14px;
}
.nx-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nx-footer__col a { font-size: .83rem; color: var(--text-muted); text-decoration: none; transition: color .15s; }
.nx-footer__col a:hover { color: var(--text-strong); }
.nx-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .78rem; color: var(--text-muted);
}
.nx-footer__bottom a { color: var(--text-muted); text-decoration: none; }
.nx-footer__bottom a:hover { color: var(--text-strong); }
.home-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(8,10,20,.0), rgba(6,8,18,.96));
  padding: 40px var(--home-px, clamp(20px, 4vw, 48px)) 24px;
}
.home-footer__inner {
  max-width: var(--home-max-w, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(120px, auto));
  gap: 40px 32px;
  align-items: start;
}
.home-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.home-footer__logo {
  display: block;
  height: clamp(28px, 6vw, 120px);
  width: auto;
}
.home-footer__brand-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  max-width: 280px;
  line-height: 1.6;
}
.home-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-footer__col--explore,
.home-footer__col--tools,
.home-footer__col--info,
.home-footer__col--social {
  position: relative;
  padding: 12px 14px 14px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
}
.home-footer__col--explore::before,
.home-footer__col--tools::before,
.home-footer__col--info::before,
.home-footer__col--social::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 14px;
  right: 14px;
  height: 1px;
  border-radius: 999px;
}
.home-footer__col--explore::before { background: linear-gradient(90deg, rgba(66,183,255,.9), rgba(66,183,255,0)); }
.home-footer__col--tools::before { background: linear-gradient(90deg, rgba(245,158,11,.88), rgba(245,158,11,0)); }
.home-footer__col--info::before { background: linear-gradient(90deg, rgba(255,255,255,.42), rgba(255,255,255,0)); }
.home-footer__col--social::before { background: linear-gradient(90deg, rgba(244,114,182,.85), rgba(168,85,247,0)); }
.home-footer__col--social {
  gap: 14px;
}
.home-footer__col-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.home-footer__link {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color 120ms ease;
}
.home-footer__link:hover {
  color: rgba(255,255,255,.8);
}
.home-footer__social-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.home-footer__social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.home-footer__social-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.24);
}
.home-footer__col--explore .home-footer__col-title { color: rgba(66,183,255,.78); }
.home-footer__col--tools .home-footer__col-title { color: rgba(245,158,11,.82); }
.home-footer__col--info .home-footer__col-title { color: rgba(255,255,255,.52); }
.home-footer__col--social .home-footer__col-title { color: rgba(236,72,153,.78); }
.home-footer__col--explore .home-footer__link:hover { color: rgba(123,211,255,.96); }
.home-footer__col--tools .home-footer__link:hover { color: rgba(253,186,116,.98); }
.home-footer__col--info .home-footer__link:hover { color: rgba(255,255,255,.92); }

/* ── Contact — CTA mis en avant (remplace le bouton retiré du header, 2026-08-13) ── */
.home-footer__link[href$="/contact/"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 14px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 95, 0.4);
  background: rgba(212, 175, 95, 0.08);
  color: rgba(212, 175, 95, 0.92);
  font-weight: 700;
}
.home-footer__link[href$="/contact/"]:hover {
  border-color: rgba(212, 175, 95, 0.75);
  background: rgba(212, 175, 95, 0.14);
  color: rgba(230, 200, 130, 1);
  box-shadow: 0 0 14px rgba(212, 175, 95, 0.18);
}

.footer-social-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition:
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #ffffff;
  transform: translateX(3px);
}
.footer-social-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  display: inline-block;
  background-color: rgba(255,255,255,.92);
  -webkit-mask-image: var(--social-icon);
  mask-image: var(--social-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: 0.78;
  filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  transition:
    background-color 180ms ease,
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}
.footer-social-link--facebook .footer-social-icon {
  background-color: #1877F2;
}
.footer-social-link--x .footer-social-icon {
  background-color: #FFFFFF;
}
.footer-social-link--instagram .footer-social-icon {
  background-color: #E4405F;
}
.footer-social-link--tiktok .footer-social-icon {
  background-color: #FFFFFF;
  filter: drop-shadow(-1px 0 0 rgba(37, 244, 238, .72)) drop-shadow(1px 0 0 rgba(254, 44, 85, .72));
}
.footer-social-link--youtube .footer-social-icon {
  background-color: #FF0000;
}
.footer-social-link:hover .footer-social-icon,
.footer-social-link:focus-visible .footer-social-icon {
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.22));
}
.footer-social-link--facebook:hover .footer-social-icon,
.footer-social-link--facebook:focus-visible .footer-social-icon {
  filter: drop-shadow(0 0 8px rgba(24, 119, 242, .38));
}
.footer-social-link--instagram:hover .footer-social-icon,
.footer-social-link--instagram:focus-visible .footer-social-icon {
  filter: drop-shadow(0 0 8px rgba(228, 64, 95, .34));
}
.footer-social-link--youtube:hover .footer-social-icon,
.footer-social-link--youtube:focus-visible .footer-social-icon {
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, .32));
}
.footer-social-link--tiktok:hover .footer-social-icon,
.footer-social-link--tiktok:focus-visible .footer-social-icon {
  filter:
    drop-shadow(-1px 0 0 rgba(37, 244, 238, .92))
    drop-shadow(1px 0 0 rgba(254, 44, 85, .92))
    drop-shadow(0 0 8px rgba(255,255,255,.18));
}
.home-footer__bottom {
  max-width: var(--home-max-w, 1280px);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .72rem;
  color: rgba(255,255,255,.2);
}
.home-footer__note {
  max-width: var(--home-max-w, 1280px);
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.04);
  font-size: .68rem;
  line-height: 1.6;
  color: rgba(255,255,255,.22);
}
.nx-affiliate-block {
  margin: 64px auto 0;
  padding: 0 var(--home-px, clamp(20px, 4vw, 48px));
}
.nx-inline-affiliate {
  margin: 34px auto;
  padding: 0 var(--home-px, clamp(20px, 4vw, 48px));
  display: none !important;
}
.nx-inline-affiliate__shell {
  position: relative;
  width: min(100%, 820px);
  margin: 0 auto;
}
.nx-inline-affiliate__shell::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 32px;
  background:
    radial-gradient(circle at 24% 42%, rgba(75, 190, 255, 0.22), transparent 34%),
    radial-gradient(circle at 66% 44%, rgba(255, 106, 196, 0.18), transparent 30%),
    radial-gradient(circle at 48% 74%, rgba(255, 200, 88, 0.18), transparent 34%);
  filter: blur(20px);
  opacity: 0.34;
  transform: scale(0.97);
  animation: nx-inline-affiliate-glow 10.5s ease-in-out infinite;
  pointer-events: none;
}
.nx-inline-affiliate__link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(7,11,22,.96);
  box-shadow: 0 18px 48px rgba(0,0,0,.4);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.nx-inline-affiliate__link:hover,
.nx-inline-affiliate__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(0,0,0,.48);
}
.nx-inline-affiliate__image {
  display: block;
  width: 100%;
  height: auto;
}
.nx-inline-affiliate__disclosure {
  margin: 10px 6px 0;
  font-size: .78rem;
  line-height: 1.55;
  color: rgba(255,255,255,.68);
  text-align: center;
}
@keyframes nx-inline-affiliate-glow {
  0%, 100% {
    opacity: 0.28;
    transform: scale(0.965);
  }
  20% {
    opacity: 0.34;
    transform: scale(0.985);
  }
  26% {
    opacity: 0.52;
    transform: scale(1.02);
  }
  34% {
    opacity: 0.3;
    transform: scale(0.97);
  }
  70% {
    opacity: 0.32;
    transform: scale(0.98);
  }
  78% {
    opacity: 0.48;
    transform: scale(1.015);
  }
  86% {
    opacity: 0.28;
    transform: scale(0.96);
  }
}
.nx-affiliate-block__inner {
  max-width: var(--home-max-w, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, .9fr);
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(245,158,11,.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(66,183,255,.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  box-shadow: 0 20px 56px rgba(0,0,0,.24);
}
.nx-affiliate-block__copy {
  display: grid;
  gap: 10px;
}
.nx-affiliate-block__eyebrow {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245,158,11,.9);
}
.nx-affiliate-block__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.1;
  color: rgba(255,255,255,.96);
}
.nx-affiliate-block__body {
  margin: 0;
  font-size: .96rem;
  line-height: 1.7;
  color: rgba(255,255,255,.74);
  max-width: 62ch;
}
.nx-affiliate-block__note {
  margin: 0;
  font-size: .77rem;
  line-height: 1.6;
  color: rgba(255,255,255,.42);
}
.nx-affiliate-block__action {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7,11,22,.9), rgba(8,10,18,.72));
}
.nx-affiliate-block__product {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255,255,255,.88);
}
.nx-affiliate-block__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #0a0f1b;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 10px 24px rgba(249,115,22,.22);
}
.nx-affiliate-block__cta:hover,
.nx-affiliate-block__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(249,115,22,.3);
}
/* ── Stats bar (toutes sous-pages champion) ──────────────────────────────── */
.chp-stats-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.csb-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.csb-label {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
}

.csb-value {
  font-size: .88rem;
  font-weight: 800;
}

.csb-stat--win  .csb-value { color: #4ade80; }
.csb-stat--pick .csb-value { color: #42b7ff; }
.csb-stat--ban  .csb-value { color: #f87171; }

.csb-rank {
  font-size: .55rem;
  font-weight: 700;
  color: rgba(255,255,255,.3);
}

.csb-delta {
  font-size: .55rem;
  font-weight: 700;
}
.csb-delta--up   { color: #4ade80; }
.csb-delta--down { color: #f87171; }

/* ── Badge source + date ─────────────────────────────────────────────────── */
.csb-source {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,.08);
  cursor: default;
}

.csb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.csb-dot--fresh { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.5); }
.csb-dot--warn  { background: #f59e0b; }
.csb-dot--stale { background: #f87171; }

.csb-date {
  font-size: .62rem;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
}

/* Label "Tencent" visible */
.csb-source-label {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.38);
}

/* Tooltip CSS-only — s'ouvre vers le bas pour éviter le clip overflow:hidden du hero */
.csb-tooltip {
  pointer-events: none;
  opacity: 0;
  position: fixed;
  background: rgba(10,14,30,.97);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .68rem;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  z-index: 9999;
  transition: opacity .15s;
  /* position calculée via JS au hover */
  top: 0; left: 0;
}

.csb-source:hover .csb-tooltip { opacity: 1; }

.nx-footer__stats-note {
  margin-top: 16px;
  font-size: .68rem;
  color: rgba(255,255,255,.22);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,.04);
  padding-top: 12px;
}

/* ── Stats legend (partagée home / tierlist / meta) ─────────────────────── */
.stats-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.stats-legend__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
}

.stats-legend__item::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stats-legend__item--win::before  { background: #4ade80; }
.stats-legend__item--pick::before { background: #a78bfa; }
.stats-legend__item--ban::before  { background: #f87171; }

/* ── Info bubble ? (partagé toutes pages champion + home) ─────────────────── */
.chp-info-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  font-size: .55rem;
  font-weight: 800;
  cursor: default;
  flex-shrink: 0;
  user-select: none;
  transition: background .15s, color .15s;
}
.chp-info-btn:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
}

.chp-info-tip {
  pointer-events: none;
  opacity: 0;
  position: fixed;
  top: 0; left: 0;
  background: rgba(8,12,28,.97);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .67rem;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  white-space: normal;
  max-width: min(260px, calc(100vw - 32px));
  z-index: 9999;
  transition: opacity .15s;
}
.chp-info-tip strong { color: #fff; font-weight: 700; }
.chp-info-tip .tip-win  { color: #4ade80; }
.chp-info-tip .tip-pick { color: #a78bfa; }
.chp-info-tip .tip-ban  { color: #f87171; }
.chp-info-btn:hover .chp-info-tip,
.chp-info-btn.tip-open .chp-info-tip { opacity: 1; }

/* Laptop 769px–1800px : typo légèrement réduite pour tenir dans le hero */
@media (min-width: 769px) and (max-width: 1800px) {
  .champ-hero__lede-label {
    font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  }
  .champ-hero__lede,
  .champ-hero__lede p {
    font-size: clamp(0.88rem, 1.08vw, 0.98rem);
    line-height: 1.62;
  }
}

@media (max-width: 640px) {
  /* Reset grille 2 colonnes sous-pages → empilement vertical */
  .chp-hero .champ-hero__info {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .chp-hero .champ-hero__name,
  .chp-hero .champ-hero__meta {
    grid-column: 1; grid-row: auto;
  }
  .chp-hero .chp-stats-bar {
    grid-column: 1; grid-row: auto;
    border-left: none; padding-left: 0;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 8px; margin-top: 8px;
  }

  .champ-hero {
    height: 540px;
  }
  .chp-hero.champ-hero { height: 150px; }
  .nx-footer__grid { grid-template-columns: 1fr 1fr; }
  .nx-footer__brand { grid-column: 1 / -1; }
  .home-footer__inner { grid-template-columns: 1fr; }
  .home-footer__social-grid { grid-template-columns: 1fr; }
  .home-footer__col--explore,
  .home-footer__col--tools,
  .home-footer__col--info,
  .home-footer__col--social { padding: 12px; }
  .nx-inline-affiliate {
    margin: 28px auto;
    padding: 0 16px;
  }
  .nx-inline-affiliate__shell {
    width: 100%;
  }
  .nx-affiliate-block__inner {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
  .nx-affiliate-block__action {
    width: 100%;
  }
  .champ-hero__content {
    max-width: calc(100% - 28px);
    padding: 16px 14px;
    gap: 12px;
    bottom: 14px;
  }
  .champ-hero__icon { width: 72px; height: 72px; }
  .champ-hero__lede-wrap {
    top: 84px;
    left: 14px;
    right: 14px;
    width: auto;
  }
  .champ-hero__lede-stack::before {
    inset: -10px -10px;
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(4, 9, 22, .16), rgba(4, 9, 22, .56)),
      radial-gradient(circle at center, rgba(4, 9, 22, .42), rgba(4, 9, 22, 0) 100%);
  }
  .champ-hero__lede-stack {
    gap: 10px;
  }
  .champ-hero__lede-label {
    font-size: .96rem;
    letter-spacing: .12em;
  }
  .champ-hero__lede,
  .champ-hero__lede p {
    max-width: none;
    font-size: .82rem;
    line-height: 1.48;
  }
  .nx-section-nav {
    margin: 20px 0 26px;
    padding: 12px;
    gap: 8px;
  }
  .nx-section-nav a {
    flex: 1 1 110px;
    padding: 12px 14px;
    font-size: .84rem;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .home-footer__inner { grid-template-columns: 1fr 1fr; }
  .home-footer__brand { display: none; }
  .home-footer__social-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .champ-hero {
    height: 560px;
  }
  .chp-hero.champ-hero { height: 140px; }
  .champ-hero__lede-wrap {
    top: 78px;
    left: 12px;
    right: 12px;
  }
  .champ-hero__lede-label {
    font-size: .84rem;
  }
  .champ-hero__lede,
  .champ-hero__lede p {
    font-size: .78rem;
    line-height: 1.42;
  }
}

/* ── Related champions — maillage interne par rôle, indépendant de la méta ── */
.chp-related {
  max-width: 860px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

.chp-related__t {
  font-family: 'Barlow', 'Barlow Fallback', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(248, 229, 191, 0.92);
  margin: 0 0 1rem;
}

.chp-related__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chp-related__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  border: 1px solid rgba(212, 177, 113, 0.2);
  border-radius: 8px;
  background: rgba(212, 177, 113, 0.04);
  text-decoration: none;
  color: rgba(212, 177, 113, 0.85);
  font-family: 'Barlow', 'Barlow Fallback', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.chp-related__item img {
  border-radius: 50%;
  display: block;
}

.chp-related__item:hover {
  color: #f8e5bf;
  border-color: rgba(212, 177, 113, 0.45);
  background: rgba(212, 177, 113, 0.1);
}

/* ── Hub backlinks — maillage interne vers les hubs ──────────────────────── */
.chp-hub-backlinks {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
}

.chp-hub-backlinks__link {
  font-family: 'Barlow', 'Barlow Fallback', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(212, 177, 113, 0.75);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(212, 177, 113, 0.2);
  border-radius: 6px;
  background: rgba(212, 177, 113, 0.04);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.chp-hub-backlinks__link:hover {
  color: #f8e5bf;
  border-color: rgba(212, 177, 113, 0.45);
  background: rgba(212, 177, 113, 0.1);
}

/* ── Cover data card (profile card in sub-pages) ────────────────────────── */
.ssg-page-wrap .cover__data {
  margin: 0 0 22px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(11,12,26,.55), rgba(6,7,15,.85));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  display: grid;
  grid-template-columns: clamp(140px, 44vw, 176px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.ssg-page-wrap .cover__data::before {
  content: "PROFIL";
  position: absolute;
  top: -8px; left: 14px;
  padding: 2px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: .5rem; font-weight: 500;
  letter-spacing: .24em;
  color: var(--violet);
  background: var(--bg-0);
  border: 1px solid rgba(167,139,250,.35);
}
.ssg-page-wrap .cover__data__icon {
  width: clamp(140px, 44vw, 176px);
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0;
}
.ssg-page-wrap .cover__data__media {
  position: relative;
  width: clamp(140px, 44vw, 176px);
  height: clamp(224px, 70vw, 280px);
  overflow: hidden;
  background: #0d1428;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
  transition: box-shadow 0.4s ease;
}
.ssg-page-wrap .cover__data__icon img,
.ssg-page-wrap .cover__data__video {
  width: 100%; height: 100%; display: block;
  background: transparent;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}
.ssg-page-wrap .cover__data__media::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  background: linear-gradient(to bottom, rgba(255,220,100,.12) 0%, transparent 38%);
  border: 1px solid rgba(212,175,55,.35);
  pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity 0.4s ease;
}
.ssg-page-wrap .cover__data__media:has(.nx-vid-ready) {
  box-shadow:
    0 0 0 1px rgba(212,175,55,.55),
    0 0 18px rgba(212,175,55,.22),
    0 6px 24px rgba(0,0,0,.55);
}
.ssg-page-wrap .cover__data__media:has(.nx-vid-ready)::after { opacity: 1; }
.ssg-page-wrap .cover__data__main {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.ssg-page-wrap .cover__data__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cd-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: .54rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-1);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
}
.cd-chip--role {
  color: var(--violet);
  border-color: rgba(167,139,250,.4);
  background: rgba(167,139,250,.08);
}
.cd-chip--tier {
  color: var(--gold-l);
  border-color: rgba(251,191,36,.4);
  background: rgba(251,191,36,.08);
  font-weight: 700;
}
.ssg-page-wrap .cover__data__rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.cd-rate {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 6px;
}
.cd-rate__l {
  font-family: "JetBrains Mono", monospace;
  font-size: .5rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
}
.cd-rate__bar {
  position: relative; height: 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px),
    rgba(255,255,255,.08);
  background-size: calc(100% / var(--segments, 4)) 100%, auto;
  background-position: right top, 0 0;
}
.cd-rate__bar::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--violet-d), var(--violet));
  box-shadow: 0 0 8px rgba(167,139,250,.6);
}
/* chp-stats-bar intégré dans cover__data (grille : span full width) */
.ssg-page-wrap .cover__data .chp-stats-bar {
  grid-column: 1 / -1;
  margin-top: 2px;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .ssg-page-wrap .cover__data__video { display: none !important; }
}
html.nx-video-off .ssg-page-wrap .cover__data__video { display: none !important; }
@media (min-width: 900px) {
  .ssg-page-wrap .cover__data {
    grid-template-columns: 176px minmax(0, 1fr);
  }
  .ssg-page-wrap .cover__data__icon { width: 176px; grid-row: 1 / span 2; align-self: start; }
  .ssg-page-wrap .cover__data__media { width: 176px; height: 280px; }
  .ssg-page-wrap .cover__data__main { grid-column: 2; }
  .ssg-page-wrap .cover__data__rates { grid-template-columns: repeat(4, 1fr); }
  .ssg-page-wrap .cd-rate { grid-template-columns: 36px 1fr; }
  .ssg-page-wrap .cover__data .chp-stats-bar { grid-column: 2; margin-top: 6px; padding-top: 8px; }
}

/* ── Role switcher ───────────────────────────────────────────────────────────
   Même famille glass+neon que `.nx-section-nav`, teinte or pour marquer qu'il change le contenu
   affiché et non la page. Marges généreuses des deux côtés : collé à la section suivante, il se
   lisait comme le titre de celle-ci plutôt que comme un contrôle. */
.nx-role-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 22px 28px;
  padding: 12px 16px;
  border: 1px solid rgba(224,207,155,.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    linear-gradient(180deg, rgba(24,19,8,.55), rgba(10,8,4,.62));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(2,6,18,.42), inset 0 1px 0 rgba(255,255,255,.05);
}
.nx-role-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid rgba(224,207,155,.25);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  color: rgba(240,229,197,.82);
  cursor: pointer;
  transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.nx-role-tab__icon {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: .68;
  filter: brightness(0) invert(1);
  transition: opacity .25s;
}
.nx-role-tab:hover {
  transform: translateY(-2px);
  border-color: #e0cf9b;
  color: #fdf6e3;
  box-shadow: 0 0 30px rgba(224,207,155,.22);
}
.nx-role-tab:hover .nx-role-tab__icon { opacity: .95; }
.nx-role-tab--active,
.nx-role-tab[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(224,207,155,.24), rgba(40,31,12,.55));
  border-color: rgba(224,207,155,.7);
  color: #fff8e6;
  box-shadow: 0 0 26px rgba(224,207,155,.26), inset 0 1px 0 rgba(255,255,255,.16);
}
.nx-role-tab--active .nx-role-tab__icon,
.nx-role-tab[aria-selected="true"] .nx-role-tab__icon { opacity: 1; }
.nx-role-tab:focus-visible { outline-color: #e0cf9b; }

/* Sur la page counters le switcher vit dans `.ssg-page-wrap` (déjà en gouttière) : pas de marge
   latérale à ajouter, seulement le rythme vertical. */
.nx-role-switcher--counters { margin: 22px 0 26px; }

@media (max-width: 600px) {
  .nx-role-switcher { margin: 20px 10px 22px; padding: 10px 12px; gap: 8px; }
  .nx-role-switcher--counters { margin: 18px 0 20px; }
  .nx-role-tab { padding: 10px 16px; font-size: .8rem; }
}

/* ── Combos Lab section ──────────────────────────────────────────────────── */
section[data-section="combos"] { --s-color: #22d3ee; --s-rgb: 34,211,238; }

.comboslab { padding: 40px 22px 48px; }

.comboslab__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.comboslab h2 small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

/* Combo cards */
.comboslab__combos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clab-card {
  background: rgba(34,211,238,.04);
  border: 1px solid rgba(34,211,238,.14);
  border-radius: 12px;
  padding: 18px 20px 16px;
  transition: border-color .2s;
}
.clab-card:hover { border-color: rgba(34,211,238,.28); }

.clab-card__label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 14px;
  opacity: 1;
}

/* Chain */
.clab-chain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 2px;
  margin-bottom: 14px;
  padding: 12px 0 4px;
}

.clab-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}

.clab-step__num {
  font-size: .6rem;
  font-weight: 700;
  color: rgba(34,211,238,.6);
  letter-spacing: .04em;
  line-height: 1;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.clab-step__img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.15);
  object-fit: cover;
  display: block;
  transition: border-color .15s;
}
.clab-card:hover .clab-step__img { border-color: rgba(34,211,238,.35); }

.clab-step__key {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
}

/* AA badge */
.clab-step--aa .clab-step__aa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(203,213,225,.08);
  border-radius: 10px;
  border: 2px solid rgba(203,213,225,.22);
  color: #cbd5e1;
}

.clab-step--text .clab-step__txt {
  font-size: .8rem;
  color: rgba(255,255,255,1);
  max-width: 68px;
  text-align: center;
  padding: 8px 6px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  line-height: 1.35;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Arrow SVG */
.clab-arrow {
  display: flex;
  align-items: center;
  color: rgba(34,211,238,.45);
  flex-shrink: 0;
  margin: 0 2px;
  margin-top: -14px; /* align with icons, not with num badges */
}

.clab-card__desc {
  font-size: 1rem;
  color: rgba(225,235,255,1);
  line-height: 1.6;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 10px;
}

/* Lot F Duel × Nexus v2 (2026-10-17) : difficulté par combo (nombre de temps) et « ce qui l'interrompt »
   (CC dur des adversaires les plus joués, lu dans les cartes de duel). Aucune animation : le cliquet
   audit-motion-perf ne bouge pas. */
.clab-card__lvl {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(225,235,255,.72);
}
.clab-card__lvl[data-lvl="2"] { border-color: rgba(251,191,36,.45); color: #fbbf24; }
.clab-card__lvl[data-lvl="3"] { border-color: rgba(251,113,133,.5); color: #fb7185; }
.comboslab__stop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(251,113,133,.06);
  border: 1px solid rgba(251,113,133,.22);
  font-size: .92rem;
  line-height: 1.4;
  color: rgba(225,235,255,.92);
}
.comboslab__stop__k {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fb7185;
}
.clab-stop { display: inline-flex; align-items: center; gap: 6px; }
.clab-stop img { width: 22px; height: 22px; border-radius: 5px; }
.clab-stop__k { font-weight: 700; color: #fbbf24; }
.clab-stop small { color: rgba(225,235,255,.6); font-size: .82em; }

/* Meta grid */
.comboslab__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.clab-tips,
.clab-errors,
.clab-interactions {
  background: rgba(255,255,255,.02);
  border-radius: 10px;
  padding: 16px;
  border-top: 2px solid;
}
.clab-tips        { border-color: rgba(74,183,255,.35); }
.clab-errors      { border-color: rgba(248,113,113,.35); }
.clab-interactions{ border-color: rgba(167,139,250,.35); }

.clab-sub__t {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.clab-tips .clab-sub__t        { color: #4ab7ff; }
.clab-errors .clab-sub__t      { color: #f87171; }
.clab-interactions .clab-sub__t{ color: #a78bfa; }

.clab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.clab-list__item {
  font-size: .95rem;
  color: rgba(225,235,255,1);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.clab-list__item::before {
  content: '•';
  position: absolute;
  left: 0;
  font-weight: 800;
}
.clab-list__item--tip::before  { color: #4ab7ff; }
.clab-list__item--error::before{ color: #f87171; }
.clab-list__item--info::before { color: #a78bfa; }

/* CTA de sortie — point d'entrée vers la sous-page « Mechanics & Tips ».
   Ajouté le 2026-08-22 : le Comboslab est un extrait (5 combos max, 3 colonnes de
   tips), la sous-page porte la matière complète, et rien ne l'annonçait en fin de
   section. Retiré à l'injection sur /tips/ elle-même (cf. injectIntoTipsPage). */
.comboslab__cta {
  display: block;
  max-width: 860px;
  margin: 26px auto 0;
  padding: 18px 20px;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(120deg, rgba(74,183,255,.07), rgba(167,139,250,.05));
  border: 1px solid rgba(74,183,255,.24);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.comboslab__cta:hover {
  border-color: rgba(74,183,255,.55);
  background: linear-gradient(120deg, rgba(74,183,255,.12), rgba(167,139,250,.08));
  transform: translateY(-2px);
}
.comboslab__cta__k {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #4ab7ff;
  margin-bottom: 7px;
}
.comboslab__cta__t {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: rgba(240,246,255,1);
  line-height: 1.3;
}
.comboslab__cta__p {
  display: block;
  margin-top: 5px;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(198,210,235,.9);
}
.comboslab__cta__go {
  display: inline-block;
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a78bfa;
}
.comboslab__cta__go::after { content: " →"; }

@media (max-width: 860px) {
  .comboslab__meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .comboslab { padding: 28px 14px 36px; }
  .clab-step__img,
  .clab-step--aa .clab-step__aa-icon { width: 36px; height: 36px; }
  .comboslab__meta { grid-template-columns: 1fr; }
  .comboslab__cta { padding: 16px; }
  .comboslab__cta__t { font-size: .96rem; }
}

/* ── Build teaser (§03 — build engine du patch courant) ───────────────────────
   Injecté par scripts/generate-champion-build-teaser.mjs. Reprend le vocabulaire
   typographique du mur des matchups (.wall__hr__t / .wall__cell / .wall__cta dans
   ssg-champion-page.css) en teinte or : le mur parle de champions, ce bloc parle
   d'objets. Le <style> inline que le générateur dupliquait dans chaque fiche a été
   remplacé par ces règles (les 8 locales chargent bien cette feuille). */
.build-teaser {
  padding: 46px 22px 8px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.build-teaser::before {
  content: "";
  position: absolute; inset: 0 0 auto;
  height: 220px;
  background: radial-gradient(ellipse at 50% 0%, rgba(251,191,36,.10), transparent 60%);
  pointer-events: none;
}
.build-teaser__hr { margin-bottom: 20px; position: relative; }
.build-teaser__t {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(19px, 2.4vw, 26px);
  letter-spacing: -.024em;
  line-height: 1.2;
  color: var(--ink-0, #fafbff);
}
.build-teaser__t small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: .56rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold, #fbbf24);
  margin-bottom: 6px;
}

/* auto-fit plutôt qu'un nombre de colonnes fixe : le build sort 3 à 6 pièces selon le
   champion (5 items + bottes au maximum), une grille figée laisserait des trous. */
.bt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line, rgba(255,255,255,.08));
  border: 1px solid var(--line, rgba(255,255,255,.08));
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.bt-cell {
  background: var(--bg-1, #0b0c1a);
  border-top: 2px solid var(--gold, #fbbf24);
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.bt-cell--boots { border-top-color: var(--sky, #38bdf8); }
.bt-cell__cat {
  font-family: "JetBrains Mono", monospace;
  font-size: .5rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold, #fbbf24);
}
.bt-cell--boots .bt-cell__cat { color: var(--sky, #38bdf8); }
.bt-cell__img {
  width: 56px; height: 56px;
  border-radius: 10px;
  border: 1px solid var(--line, rgba(255,255,255,.08));
  background: rgba(255,255,255,.02);
  transition: transform .35s var(--ease, cubic-bezier(.22,1,.36,1));
}
.bt-cell:hover .bt-cell__img { transform: scale(1.07); }
.bt-cell__n {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: .82rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink-0, #fafbff);
}

.bt-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line, rgba(255,255,255,.08));
  background: var(--bg-1, #0b0c1a);
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold, #fbbf24);
  text-decoration: none;
  transition: background .2s;
  position: relative;
}
.bt-cta:hover { background: rgba(255,255,255,.04); }
.bt-cta::after { content: "→"; transition: transform .2s; }
.bt-cta:hover::after { transform: translateX(4px); }

@media (max-width: 640px) {
  .build-teaser { padding: 34px 14px 8px; }
  .bt-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .bt-cell { padding: 12px 8px 14px; gap: 8px; }
  .bt-cell__img { width: 46px; height: 46px; }
  .bt-cell__n { font-size: .74rem; }
  .bt-cta { letter-spacing: .14em; padding: 13px 10px; }
}

/* ── Trend block (§ win rate history) ─────────────────────────────────────── */
.trend-block { padding: 28px 14px 8px; max-width: 1100px; margin: 0 auto; }
.trend-block__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 20px 24px; }
.trend-block__stats { display: flex; gap: 28px; flex-wrap: wrap; }
.trend-block__stat { display: flex; flex-direction: column; gap: 4px; }
.trend-block__stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.4); }
.trend-block__stat-val { font-size: 20px; font-weight: 700; color: #fff; }
.trend-block__delta { font-size: 13px; font-weight: 600; margin-left: 6px; }
.trend-block__delta--up { color: #4ade80; }
.trend-block__delta--down { color: #f87171; }
/* Le graphe occupe toute la largeur depuis qu'il porte des axes et des repères de patch
   (2026-08-21) : coincé dans la gouttière restante à côté des chiffres, les étiquettes de
   patch se chevauchaient. `height:auto` — le viewBox n'est plus étiré, il porte du texte. */
.trend-block__spark { flex-basis: 100%; min-width: 0; position: relative; }
.trend-block__spark svg { width: 100%; height: auto; display: block; overflow: visible; }
.trend-block__tip {
  position: absolute; top: 6px; left: 0;
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 9px;
  background: rgba(11,12,26,.94);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  font-size: 12px; line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.trend-block__tip[hidden] { display: none; }
.trend-block__tip b { color: rgba(255,255,255,.55); font-weight: 500; }
.trend-block__tip span { color: #fff; font-weight: 700; }
.tb-chart { touch-action: pan-y; }
.trend-block__text { flex-basis: 100%; color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.55; margin: 0; }
.trend-block__text a { color: var(--accent-cyan, #42b7ff); text-decoration: none; }
.trend-block__text a:hover { text-decoration: underline; }
.trend-block__text strong { color: #fff; }
@media (max-width: 640px) {
  .trend-block__inner { padding: 16px 18px; }
  .trend-block__stats { gap: 18px; }
}

/* ── Statslab (§ stats par niveau 1-15, données wiki) ─────────────────────── */
.statslab { padding: 34px 22px 8px; max-width: 1100px; margin: 0 auto; }
.statslab__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.statslab__title { margin: 0; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.2; color: #fff; }
.statslab__title small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-cyan, #42b7ff); margin-bottom: 8px; font-weight: 700; }
.statslab__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.statslab__chip { font-size: 12px; color: rgba(255,255,255,.55); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.statslab__chip b { color: #fff; font-weight: 700; margin-left: 4px; }
/* ── Statslab : section encadrée + tableau stylisé (accent adaptatif champion) ── */
.statslab { --sl-accent: var(--nx-accent, var(--accent-cyan, #42b7ff)); --sl-rgb: var(--nx-accent-rgb, 66, 183, 255); }
.statslab__fold {
  position: relative;
  border: 1px solid rgba(var(--sl-rgb), .28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(var(--sl-rgb), .06) 0%, rgba(var(--sl-rgb), .015) 120px, rgba(255,255,255,.015) 100%);
  box-shadow: 0 18px 46px -22px rgba(var(--sl-rgb), .5), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.statslab__fold::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(var(--sl-rgb), .9), transparent);
}
.statslab__summary {
  list-style: none; cursor: pointer; padding: 15px 20px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sl-accent);
  display: flex; align-items: center; gap: 11px; user-select: none;
  background: rgba(var(--sl-rgb), .05);
  border-bottom: 1px solid rgba(var(--sl-rgb), .18);
}
.statslab__summary::-webkit-details-marker { display: none; }
.statslab__summary::before {
  content: ''; flex: none; width: 9px; height: 9px; border-radius: 2px;
  background: var(--sl-accent); box-shadow: 0 0 10px rgba(var(--sl-rgb), .8);
  transition: transform .2s ease;
}
.statslab__fold[open] .statslab__summary::before { transform: rotate(45deg); }
.statslab__summary:hover { background: rgba(var(--sl-rgb), .1); }
.statslab__controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 20px; }
.statslab__lvlpick { display: flex; align-items: center; gap: 11px; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.55); font-weight: 800; }
.statslab__slider { accent-color: var(--sl-accent); width: clamp(150px, 32vw, 260px); cursor: pointer; }
.statslab__slider:disabled { opacity: .35; cursor: not-allowed; }
.statslab__lvlnum {
  min-width: 30px; text-align: center; color: #fff; font-size: 14px; font-weight: 800;
  font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 8px;
  background: rgba(var(--sl-rgb), .16); border: 1px solid rgba(var(--sl-rgb), .32);
}
.statslab__all { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); color: rgba(255,255,255,.72); border-radius: 999px; padding: 7px 16px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: all .18s ease; }
.statslab__all:hover { color: #fff; border-color: rgba(var(--sl-rgb), .5); background: rgba(var(--sl-rgb), .08); }
.statslab__all[aria-pressed="true"] { background: rgba(var(--sl-rgb), .18); border-color: var(--sl-accent); color: #fff; box-shadow: 0 0 14px -4px rgba(var(--sl-rgb), .7); }

.statslab__scroll { overflow-x: auto; border-top: 1px solid rgba(var(--sl-rgb), .14); }
.statslab__table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 540px; }
.statslab__table thead th {
  position: sticky; top: 0; z-index: 1; text-align: right; padding: 12px 16px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
  color: var(--sl-accent);
  background: linear-gradient(180deg, rgba(var(--sl-rgb), .16), rgba(var(--sl-rgb), .08));
  border-bottom: 2px solid rgba(var(--sl-rgb), .38); white-space: nowrap;
}
.statslab__table thead th:first-child { text-align: left; }
.statslab__table tbody th,
.statslab__table tbody td { padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,.055); color: rgba(232,240,255,.92); text-align: right; font-variant-numeric: tabular-nums; }
.statslab__table tbody th {
  text-align: center; font-weight: 800; color: rgba(255,255,255,.7);
  background: rgba(var(--sl-rgb), .05); border-right: 1px solid rgba(var(--sl-rgb), .12);
}
.statslab__table tbody tr:nth-child(even) td { background: rgba(255,255,255,.022); }
.statslab__table tbody tr:hover td,
.statslab__table tbody tr:hover th { background: rgba(var(--sl-rgb), .1); color: #fff; }
.statslab__table tbody tr:last-child th,
.statslab__table tbody tr:last-child td { border-bottom: none; }
.statslab__row--spike th,
.statslab__row--spike td { background: rgba(var(--sl-rgb), .12); color: #fff; font-weight: 700; }
.statslab__row--spike th {
  color: var(--sl-accent); box-shadow: inset 3px 0 0 var(--sl-accent);
}

.statslab__source { padding: 12px 20px 15px; margin: 0; font-size: 11.5px; color: rgba(255,255,255,.38); }
.statslab__source a { color: rgba(255,255,255,.55); text-decoration: none; }
.statslab__source a:hover { color: var(--sl-accent); text-decoration: underline; }

.statslab__table.is-single tbody tr { display: none; }
.statslab__table.is-single tbody tr.is-active { display: table-row; }
.statslab__table.is-single tbody tr.is-active td,
.statslab__table.is-single tbody tr.is-active th { border-bottom: none; }
@media (max-width: 600px) {
  .statslab { padding: 28px 14px 4px; }
  .statslab__table { font-size: 12.5px; }
  .statslab__table thead th, .statslab__table tbody th, .statslab__table tbody td { padding: 8px 11px; }
  .statslab__controls { gap: 12px; padding: 12px 14px; }
  .statslab__summary { padding: 13px 14px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Historique d'équilibrage (render-champion-page-v5.mjs, renderBalanceHistory)
   Frise du plus récent au plus ancien. Hiérarchie : version (blanc, gras) →
   pastille de type (couleur du type) → résumé → lignes de stats (atténuées,
   nouvelle valeur en clair). Une seule variable par type, --bh-rgb, portée
   par [data-type] : puce, filet, bordure, pastille et flèche en dérivent.
   ────────────────────────────────────────────────────────────────────────── */
.balhist [data-type="buff"] { --bh-rgb: 74, 222, 128; }
.balhist [data-type="nerf"] { --bh-rgb: 248, 113, 113; }
.balhist [data-type="adjust"] { --bh-rgb: 251, 191, 36; }
.balhist [data-type="new"] { --bh-rgb: var(--sl-rgb); }
.balhist__counts { display: flex; gap: 8px; flex-wrap: wrap; }
.balhist__count { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--bh-rgb)); background: rgba(var(--bh-rgb), .08); border: 1px solid rgba(var(--bh-rgb), .3); border-radius: 999px; padding: 5px 12px; }
.balhist__count b { color: #fff; font-size: 12.5px; letter-spacing: 0; }
.balhist__list { list-style: none; margin: 0; padding: 20px 20px 4px; border-top: 1px solid rgba(var(--sl-rgb), .14); }
.balhist__item { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 6px 18px; padding: 0 0 18px 24px; }
.balhist__item::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: -6px; width: 2px; background: linear-gradient(rgba(var(--bh-rgb), .5), rgba(255,255,255,.06)); }
.balhist__item:last-child::before { display: none; }
.balhist__item::after { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: rgb(var(--bh-rgb)); box-shadow: 0 0 0 3px rgba(var(--bh-rgb), .16), 0 0 14px rgba(var(--bh-rgb), .5); }
.balhist__ver { display: block; font-size: 18px; font-weight: 800; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.balhist__date { display: block; margin-top: 4px; font-size: 11.5px; color: rgba(255,255,255,.45); }
.balhist__card { min-width: 0; background: rgba(255,255,255,.022); border: 1px solid rgba(255,255,255,.07); border-left: 3px solid rgba(var(--bh-rgb), .75); border-radius: 10px; padding: 11px 15px 12px; }
.balhist__item--latest .balhist__card { background: rgba(var(--bh-rgb), .06); border-color: rgba(var(--bh-rgb), .28); border-left-color: rgb(var(--bh-rgb)); box-shadow: 0 8px 28px -18px rgba(var(--bh-rgb), .8); }
.balhist__top { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.balhist__tag { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: rgb(var(--bh-rgb)); background: rgba(var(--bh-rgb), .12); border: 1px solid rgba(var(--bh-rgb), .35); border-radius: 6px; padding: 3px 9px; }
.balhist__fx { font-size: 12.5px; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.balhist__fx b { font-weight: 700; }
.balhist__fx--up b { color: #4ade80; }
.balhist__fx--down b { color: #f87171; }
.balhist__sum { margin: 9px 0 0; font-size: 14px; line-height: 1.55; color: rgba(232,240,255,.9); }
.balhist__changes { list-style: none; display: grid; gap: 5px; margin: 10px 0 0; padding: 9px 0 0; border-top: 1px dashed rgba(255,255,255,.09); font-size: 12.5px; line-height: 1.5; color: rgba(232,240,255,.6); overflow-wrap: anywhere; }
.balhist__changes li { position: relative; padding-left: 13px; }
.balhist__changes li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: rgba(var(--bh-rgb), .65); }
.balhist__spell { color: rgba(232,240,255,.85); font-weight: 700; }
.balhist__old { color: rgba(232,240,255,.42); }
.balhist__arrow { margin: 0 5px; color: rgb(var(--bh-rgb)); font-weight: 800; }
.balhist__new { color: #fff; font-weight: 600; }
@media (max-width: 600px) {
  .balhist__list { padding: 16px 14px 2px; }
  .balhist__item { grid-template-columns: minmax(0, 1fr); gap: 7px; padding-left: 22px; }
  .balhist__meta { display: flex; align-items: baseline; gap: 10px; }
  .balhist__ver { font-size: 16.5px; }
  .balhist__date { margin-top: 0; }
  .balhist__card { padding: 10px 12px 11px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Coffre quotidien — bouton nav distinctif
   Réutilise la forme et le reflet de .tabsection--draft, mais en violet : le
   doré est déjà pris par Draft Tool ET VIP, et trois CTA identiques côte à côte
   ne se distinguent plus. Le violet reprend la teinte du Core de la vidéo.
   Règles PLATES (pas de nesting) et placées en fin de fichier : même
   spécificité que .tabsection--draft, donc c'est l'ordre qui tranche —
   et le nesting @media est ignoré par Safari < 17.2 (cf. frontend-nav-css).
   ────────────────────────────────────────────────────────────────────────── */
.header-nexus .tabsection--lootbox {
  --nx-accent: #a78bfa;
  --nx-accent-rgb: 167, 139, 250;
  color: #e2d8ff;
  background: linear-gradient(180deg, rgba(40, 27, 64, .92), rgba(19, 13, 32, .94));
  border-color: rgba(167, 139, 250, .55);
  box-shadow: 0 8px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
}
.header-nexus .tabsection--lootbox::before {
  background: linear-gradient(120deg, transparent 20%, rgba(224, 208, 255, .20) 50%, transparent 80%);
}
.header-nexus .tabsection--lootbox:hover {
  border-color: rgba(167, 139, 250, .9);
  box-shadow: 0 10px 26px rgba(80, 40, 160, .35), inset 0 1px 0 rgba(255,255,255,.12);
}

/* Combos joués (lot C du plan mouvement, 2026-10-15) — clab-play.js. L'état de départ (.nx-m-pre, étapes à .3,
   flèches non tracées via le kit de ssg-pages.css) et le bouton « Rejouer » ne sont posés QUE par le script :
   sans JS, sous mouvement réduit ou html.perf-lite, le combo est complet et le bouton n'existe pas. */
.clab-card { position: relative; }
.clab-chain.nx-m-pre > .clab-step { opacity: .3; }
.clab-replay {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 28px; padding: 0 .65rem; border-radius: 999px;
  border: 1px solid rgba(34,211,238,.35); background: rgba(34,211,238,.08);
  color: #a5f3fc; font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .02em; cursor: pointer;
}
.clab-replay:hover { background: rgba(34,211,238,.16); border-color: rgba(34,211,238,.6); }
.clab-replay:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
.clab-replay span { font-size: .62rem; }
.clab-card:has(> .clab-replay) .clab-card__label { padding-right: 6.5rem; }
