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

/* ── 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-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;
  -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;
}
.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;
}
.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 h4 {
  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; }
}

/* ════════════════════════════════════════════════════════════
   HEADER NEXUS — bloc consolidé SSG
   Toutes les règles header sous un seul parent.
   ════════════════════════════════════════════════════════════ */
.header-nexus {
  --nx-nav-offset: -95px;

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

  /* Layout grid */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 2px;
  align-items: center;
  box-sizing: border-box;

  /* Dimensions */
  height: auto;
  overflow: visible;
  isolation: isolate;
  padding-top: 60px;

  /* CSS custom properties */
  --nx-draft-size: clamp(56px, 8vw, 72px);
  --nx-rail-mask-pad: 2px;
  --nx-rail-gap: calc(var(--nx-draft-size) + 4px);
  --nx-rail-gap-inner: var(--nx-draft-size);

  /* Apparence */
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(4, 6, 16, .6);

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

  /* ── Ligne décorative ── */
  &::after {
    content: "";
    position: absolute;
    left: clamp(16px, 4vw, 34px);
    right: clamp(16px, 4vw, 34px);
    bottom: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(120, 140, 220, 0) 0%,
      rgba(120, 140, 220, 0.85) 12%,
      rgba(120, 140, 220, 0.85) calc(50% - var(--nx-rail-gap) / 2),
      rgba(120, 140, 220, 0) calc(50% - var(--nx-rail-gap) / 2),
      rgba(120, 140, 220, 0) calc(50% + var(--nx-rail-gap) / 2),
      rgba(120, 140, 220, 0.85) calc(50% + var(--nx-rail-gap) / 2),
      rgba(120, 140, 220, 0.85) 88%,
      rgba(120, 140, 220, 0) 100%
    );
    box-shadow: 0 0 12px rgba(130, 90, 255, 0.4);
    pointer-events: none;
    z-index: 1;
  }

  /* ── Fond : mosaïque ── */
  & .fd-mosaic {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    mix-blend-mode: screen;
  }
  & #fd-header-bg-mask { opacity: 0.1; }

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

  /* ── Logo : grid-column:2 explicite, superposé sur navsections ── */
  & picture#navLogo {
    grid-column: 2;
    grid-row: 1;
    z-index: 2;

    align-self: center;
    justify-self: center;
    transform: translateY(-96px);
    cursor: pointer;
    pointer-events: auto !important;
  }
  & picture#navLogo img {
    position: relative;
    z-index: 1;
    width: clamp(180px, 20vw, 360px);
    height: auto;
    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: 2;
  }

  /* ── Nav : miroir SPA — navsections s'étale sur 1/-1 row 1, logo en grid-col:2 par-dessus ── */
  & #primaryNav.navsections {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr clamp(180px, 20vw, 360px) 1fr;
    align-items: center;
    transform: translateY(var(--nx-nav-offset));
    z-index: 1;
    pointer-events: none; /* passe les clics vers le logo derrière */
  }
  & #primaryNav .nav-left,
  & #primaryNav .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
  }
  & #primaryNav .nav-left {
    grid-column: 1;
    justify-content: flex-end;
    justify-self: stretch;
  }
  & #primaryNav .nav-right {
    grid-column: 3;
    justify-content: flex-start;
    justify-self: stretch;
  }

  /* ── Tabsections (nav links) ── */
  & .tabsection {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(20px, 2.4vh, 36px);
    padding: clamp(4px, 1.2vh, 8px) clamp(8px, 2vw, 14px);
    min-width: clamp(72px, 18vw, 88px);
    color: rgba(255,255,255,0.90);
    background: rgba(6, 9, 22, 0.68);
    border: 1px solid rgba(0, 200, 255, 0.28);
    border-radius: 10px;
    font-size: clamp(0.68rem, 0.6rem + 0.4vw, 0.95rem);
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform 160ms ease, color 160ms ease, background 160ms ease, opacity 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    text-decoration: none;
  }
  & .tabsection:hover {
    color: #fff;
    background: rgba(0, 200, 255, 0.14);
    border-color: rgba(0, 200, 255, 0.55);
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.65);
    box-shadow: 0 4px 16px rgba(0,0,0,0.50), 0 0 12px rgba(0, 200, 255, 0.18);
  }
  & .tabsection[hidden] {
    display: inline-flex !important;
    visibility: hidden !important;
  }
  & .tabsection:focus-visible {
    outline: none;
    box-shadow: var(--nc-focus);
    background: rgba(0, 200, 255, 0.10);
    text-shadow: 0 0 8px rgba(0, 180, 255, 0.7);
  }
  & .tabsection[aria-current="page"] {
    color: #f3ecdc;
    border-color: rgba(203, 168, 92, 0.65);
    background: rgba(18, 20, 36, 0.78);
    box-shadow: inset 0 0 0 1px rgba(203, 168, 92, 0.45);
  }
  & .tabsection[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px; bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0,200,255,0), var(--nc-accent), rgba(0,200,255,0));
    opacity: 0.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;
  }

  /* ── Barre de recherche (SPA) ── */
  & #barreRecherche {
    flex: 1 1 360px;
    min-width: 220px;
    max-width: 520px;
    margin: 0 clamp(6px, 1.6vw, 16px);
  }
  & #championSearch {
    width: 100%;
    min-width: 0;
    height: clamp(36px, 3.4vh, 38px);
    padding: 0 12px 0 36px;
    font-size: clamp(0.85rem, 0.82rem + 0.2vw, 0.95rem);
    border-radius: 10px;
    border: 1px solid rgba(191, 174, 129, 0.55);
    background: rgba(16, 24, 44, 0.72);
    color: #ffffff;
    margin: 0;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.20);
    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(191,174,129,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: 12px 50%;
    background-size: 16px 16px;
  }
  & #championSearch:focus { outline: none; }
  & #championSearch:focus-visible {
    box-shadow: var(--nc-focus), inset 0 0 0 1px rgba(0,0,0,0.20);
    border-color: rgba(0, 200, 255, 0.55);
  }

  /* ── Draft button ── */
  & #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(120, 140, 220, 0.6);
    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(130, 90, 255, 0.35), inset 0 0 0 1px rgba(203, 168, 92, 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(120,160,255,0.22) 0%, rgba(130,90,255,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(120, 160, 255, 0.65);
    box-shadow: 0 12px 24px rgba(4,6,16,0.68), 0 0 14px rgba(120,160,255,0.22), 0 0 18px rgba(130,90,255,0.20), inset 0 0 0 1px rgba(120,160,255,0.35);
  }
  & #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-focus); outline-offset: 3px; }

  /* ── Login / User button ── */
  & #btnLogin,
  & #btnLogin.btn-login {
    min-height: clamp(36px, 3.4vh, 38px);
    width: clamp(36px, 3.4vh, 38px);
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(191, 174, 129, 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(191, 174, 129, 0.7); }
  & #btnLogin:focus-visible { outline: none; box-shadow: var(--nc-focus); }
  & #btnLogin[data-nx-logged] {
    width: auto; min-width: unset;
    height: clamp(36px, 3.4vh, 38px);
    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 (hamburger) ── */
  & .nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 10px;
  }
  & .nav-toggle__icon {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
  }
  & .nav-toggle__icon span {
    display: block;
    width: 22px; height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* ── LigneSousHeader ── */
  & > .ligneSousHeader {
    grid-column: 1 / -1;
    grid-row: 2;
    pointer-events: auto !important;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 30px;
    padding: 0 24px;
    margin-top: -70px;
    position: relative;
    z-index: 10;


    & .slotGauche {
      justify-self: end;
      display: flex; align-items: center;
      gap: 12px; min-width: 0;
      transform: translateY(-57px);
    }
    & .slotCentre {
      justify-self: center;
      display: flex; align-items: center; justify-content: center;
      transform: translateY(-57px) !important;
    }
    & .slotDroite {
      justify-self: start;
      display: flex; align-items: center;
      gap: 12px; min-width: 0;
      transform: translateY(-57px);
    }

    /* 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(0,200,255,0), rgba(0,200,255,0.28), rgba(0,200,255,0));
      opacity: 0.6;
      pointer-events: none;
    }
  }
  @media (max-width: 768px) {
    &, &.scrolled { background-position: 0% 0%; }
    & > picture:first-of-type { -webkit-tap-highlight-color: transparent; }
    & > picture:first-of-type:focus-within { box-shadow: none; }
  }
  @media (max-width: 900px) {
    & .fd-mosaic {
      mix-blend-mode: normal;
      position: absolute; top: 65%; left: 50%;
      height: 88px; width: 100%;
      transform: translate(-50%, -50%);
      opacity: 1;
    }
    & .tabsection { font-size: 10px; }
    & > .ligneSousHeader {
      transform: translateY(11px);
      column-gap: 20px !important;
      padding: 0 10px !important;
    }
  }
}

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

/* ════════════════════════════════════════════════════════════
   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; }
.ssg-page-wrap, .ssg-breadcrumb, .nx-footer { position: relative; z-index: 1; }

/* ── Champion hero ── */
.champ-hero {
  position: relative; overflow: hidden;
  height: clamp(300px, 36vw, 440px);
  border-radius: 20px; margin: 12px 0 28px;
}
.champ-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 18%;
  filter: brightness(.62) saturate(1.1);
  transform: scale(1.03);
  transition: transform 6s ease;
  background-color: #0d1428;
}
.champ-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(4,6,18,.15) 0%, transparent 30%, rgba(4,6,18,.55) 60%, rgba(4,6,18,.97) 100%);
}
.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;
}
.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; }
.champ-hero__name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800; color: #fff; margin: 0 0 8px; line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,.8);
}
.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__section-label {
  margin-left: auto; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-cyan);
  background: rgba(66,183,255,.1); border: 1px solid rgba(66,183,255,.3);
  padding: 4px 12px; border-radius: 999px;
}

/* ── Section nav tabs ── */
.nx-section-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.nx-section-nav a {
  padding: 7px 16px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.12); color: var(--text-muted);
  text-decoration: none; transition: border-color .15s, color .15s, background .15s;
}
.nx-section-nav a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.nx-section-nav a.active {
  border-color: rgba(66,183,255,.5); background: rgba(66,183,255,.1); color: var(--accent-cyan);
}

/* ── Section title ── */
.nx-section-title {
  font-family: 'Orbitron', 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', 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); }

@media (max-width: 640px) {
  .nx-footer__grid { grid-template-columns: 1fr 1fr; }
  .nx-footer__brand { grid-column: 1 / -1; }
  .champ-hero__content { padding: 16px; gap: 12px; }
  .champ-hero__icon { width: 72px; height: 72px; }
}
