/* ==========================================================================
   FECABI — Institutional redesign
   Dark · precise · green cloth · gold prestige
   #050505 · #1a7a4c · #e8c872
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --bg-card: #0e0e0e;
  --bg-glass: rgba(14, 14, 14, 0.72);
  --border: #1a1a1a;
  --border-mid: #262626;
  --border-gold: rgba(232, 200, 114, 0.28);
  --text: #f4f4f4;
  --text-muted: #9a9a9a;
  --text-dim: #5c5c5c;
  --green: #1a7a4c;
  --green-hover: #21965d;
  --green-soft: rgba(26, 122, 76, 0.16);
  --gold: #e8c872;
  --gold-soft: rgba(232, 200, 114, 0.1);
  --red: #e74c3c;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(232, 200, 114, 0.12), 0 20px 50px rgba(0, 0, 0, 0.5);
  --max: 1180px;
  --header-h: 68px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --chat-z: 200;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--ease); }
a:hover { color: #f0d78a; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem;
}
main { flex: 1; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
/* Row 1 — utility topbar (always above sticky header content) */
.topbar {
  background: #070707;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  color: #b5b5b5;
  padding: 0.42rem 0;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: grid;
  gap: 0.3rem;
  align-items: center;
}
.topbar-legal { color: #c0c0c0; }
.topbar-motto {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.64rem;
  justify-content: flex-start;
}
.motto-perf { color: #2d9b62; }
.motto-trans { color: #e85a4c; }
.motto-resp { color: #f0d48a; }
.motto-sep { color: #8a8a8a; font-weight: 400; }
.topbar-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.85rem;
}
.topbar-contacts a {
  color: #c8c8c8;
  font-size: 0.72rem;
}
.topbar-contacts a:hover { color: var(--gold); }

@media (min-width: 900px) {
  .topbar .container {
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
  }
  .topbar-motto { justify-content: center; }
  .topbar-contacts { justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   Header shell
   R1 topbar · R2 search/membres · R3 menus · R4 stage
   Large logo rail spans R2–R4 on the left (fills space below brand)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.98);
  border-bottom-color: rgba(232, 200, 114, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* Desktop shell: logo | stack */
.header-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 0 1.15rem;
  min-height: 0;
}
.header-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  padding-left: 1.1rem;
}

/* Large logo rail + white FECABI word (logo file has black text — we crop & re-render white) */
.logo-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 0.35rem;
  width: 118px;
  padding: 0.4rem 0.1rem 0.5rem;
  flex-shrink: 0;
  color: #fff;
  transition: width 0.28s ease;
}
.logo-rail:hover { color: #fff; }
.logo-rail-mark {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-height: 112px;
  overflow: hidden;
  border-radius: 12px;
}
.logo-rail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%; /* emblem only — hide baked black FECABI text */
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}
.logo-rail-word {
  display: block;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.site-header.has-stage .logo-rail {
  width: 124px;
}
.site-header.has-stage .logo-rail-mark {
  max-height: 120px;
}
.site-header.is-scrolled .logo-rail {
  width: 92px;
  gap: 0.25rem;
  padding-top: 0.25rem;
  padding-bottom: 0.3rem;
}
.site-header.is-scrolled .logo-rail-mark {
  max-height: 78px;
}
.site-header.is-scrolled .logo-rail-word {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

/* Row 2: Search · Membres */
.brand-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.brand-row-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start; /* top-align search bar with Espace Membres button */
  gap: 0.75rem 1rem;
  min-height: 56px;
  padding: 0.4rem 0;
}
.site-header.is-scrolled .brand-row-inner {
  min-height: 48px;
  padding: 0.28rem 0;
}

.search-full {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
}
.search-field {
  width: 100%;
  padding: 0.58rem 1rem 0.58rem 2.45rem;
  background: #121212;
  border: 1px solid rgba(160, 160, 160, 0.45);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.search-field::placeholder { color: #8a8a8a; }
.search-field:hover {
  border-color: rgba(190, 190, 190, 0.55);
}
.search-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(232, 200, 114, 0.2);
  background: #141414;
}
.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9a9a9a;
  pointer-events: none;
  z-index: 1;
}
.search-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 130;
  background: #0c0c0c;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  max-height: 280px;
  overflow-y: auto;
}
.search-results.is-visible { display: flex; flex-direction: column; gap: 0.1rem; }
.search-results a,
.search-results .search-empty {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-muted);
}
.search-results a:hover {
  background: var(--gold-soft);
  color: var(--gold);
}
.search-results .search-empty {
  color: var(--text-dim);
  font-style: italic;
}

.btn-members {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  background: var(--green);
  color: #fff !important;
  border: 1px solid var(--gold);
  border-radius: 999px;
  transition: background var(--ease), transform 0.15s ease;
  flex-shrink: 0;
}
.btn-members:hover {
  background: var(--green-hover);
  color: #fff !important;
}
.btn-members:active { transform: scale(0.98); }
.btn-members-desktop { justify-self: end; }
.btn-members-drawer {
  display: none;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

/* Session ONLY under Espace Membres (desktop cluster) */
.members-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  flex-shrink: 0;
  justify-self: end;
}
.session-line {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  line-height: 1.2;
  max-width: 13.5rem; /* FR|EN + @handle + [→ */
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: nowrap; /* no second row under Espace Membres */
  overflow: hidden;
}
/* Drawer session only on mobile; never under the permanent menu on desktop */
@media (min-width: 1100px) {
  .session-line-drawer {
    display: none !important;
  }
}
.session-status {
  color: #9a9a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 6.5rem; /* @F.Lastname */
  min-width: 0;
  flex: 0 1 auto;
}
.session-line .lang-toggle {
  flex-shrink: 0; /* FR|EN never crushed / never wrap */
}
/* Logout [→ under Espace Membres — gold when logged in, muted when out */
.session-logout {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.05rem 0.12rem;
  border: none;
  background: transparent;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #4a4a4a; /* disabled / logged out */
  cursor: default;
  opacity: 0.45;
  transition: color 0.15s ease, opacity 0.15s ease, transform 0.12s ease;
}
.session-logout.is-active:not(:disabled) {
  color: var(--gold, #e8c872); /* CSE gold when logged in */
  opacity: 1;
  cursor: pointer;
}
.session-logout.is-active:not(:disabled):hover {
  color: #f0d78a;
  transform: translateX(1px);
}
.session-logout:disabled {
  pointer-events: none;
}
.session-logout__glyph {
  display: inline-block;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.lang-btn {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7a7a7a;
  padding: 0.1rem 0.15rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.lang-btn.is-active {
  color: var(--gold);
}
.lang-btn:hover { color: #fff; }
.lang-sep {
  color: #4a4a4a;
  font-size: 0.6rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  background: var(--bg-card);
  justify-self: end;
}

/* Row 3: Permanent institutional menus */
.nav-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-row-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0.2rem 0;
}
.site-header.is-scrolled .nav-row-inner {
  min-height: 38px;
  padding: 0.1rem 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav drawer / desktop bar */
.site-nav {
  width: 100%;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  list-style: none;
}
.nav-list > li { position: relative; }

.nav-link,
.nav-parent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  padding: 0.78rem 0.85rem;
  min-height: 48px;
  color: #8a8a8a;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover,
.nav-parent:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.nav-link[aria-current="page"] {
  color: #f0d78a;
  font-weight: 600;
}
.nav-parent .chev {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.7;
  flex-shrink: 0;
}
.has-sub.is-open > .nav-parent .chev {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.subnav {
  display: none;
  list-style: none;
  padding: 0.15rem 0 0.35rem 0.65rem;
  margin: 0;
  border-left: 1px solid rgba(232, 200, 114, 0.25);
  margin-left: 0.85rem;
}
.has-sub.is-open > .subnav { display: block; }
.subnav a {
  display: flex;
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
  color: #e6e6e6;
  border-radius: var(--radius-sm);
  min-height: 44px;
  align-items: center;
  font-weight: 500;
}
.subnav a:hover {
  color: #050505;
  background: var(--gold);
}
.subnav a.soon {
  color: #a8a8a8;
  font-style: normal;
  pointer-events: none;
}
.subnav .soon-label {
  font-size: 0.65rem;
  color: #8a8a8a;
  margin-left: 0.4rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Desktop: full 4-row architecture */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .btn-members-drawer { display: none !important; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.05rem 0.05rem;
  }
  .nav-link,
  .nav-parent {
    width: auto;
    min-height: 0;
    padding: 0.4rem 0.38rem 0.48rem;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    justify-content: center;
  }
  .nav-link { position: relative; }
  .nav-link::after,
  .nav-parent::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.12rem;
    height: 1.5px;
    background: var(--gold);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(232, 200, 114, 0.4);
  }
  .nav-link:hover,
  .nav-parent:hover {
    background: transparent;
    color: #fff;
  }
  .nav-link:hover::after,
  .nav-parent:hover::after,
  .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
  }
  .nav-parent .chev {
    width: 6px;
    height: 6px;
    margin-left: 0.15rem;
  }
  /* Hover + open state: no gap so pointer can reach submenu */
  .has-sub:hover > .subnav,
  .has-sub:focus-within > .subnav,
  .has-sub.is-open > .subnav {
    display: block;
  }
  .subnav {
    position: absolute;
    top: 100%;
    left: 0;
    transform: none;
    min-width: 230px;
    padding: 0.5rem;
    margin: 0;
    border: 1px solid rgba(170, 170, 170, 0.35);
    border-radius: 10px;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 16px 40px rgba(0, 0, 0, 0.5);
    z-index: 140;
    /* Invisible bridge above panel so hover is not lost */
    padding-top: 0.55rem;
  }
  .subnav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 12px;
  }
  .subnav a {
    min-height: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    color: #f2f2f2;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
  }
  .subnav a:hover {
    color: #050505;
    background: var(--gold);
  }
  .subnav a.soon {
    color: #b8b8b8;
    pointer-events: none;
  }
  .subnav .soon-label {
    color: #8e8e8e;
  }

  /* Nested parents (Ligues spécialisées, Règles de jeu, …): same row as sibling links */
  .subnav > .has-sub-nested {
    position: relative;
  }
  .subnav > li > .subnav-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 0;
    padding: 0.55rem 0.75rem;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: #f2f2f2;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: inherit;
    text-transform: none;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
  }
  .subnav > li > .subnav-parent:hover {
    color: #050505;
    background: var(--gold);
  }
  .subnav .chev-end {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    /* Point right — flyout opens to the side */
    transform: rotate(-45deg);
    margin: 0;
    flex-shrink: 0;
    opacity: 0.85;
  }
  /* Sub-sub panel: open to the RIGHT of the parent row (not below) */
  .subnav.subnav-nested,
  .subnav .subnav-nested {
    position: absolute;
    top: 0;
    left: 100%;
    right: auto;
    transform: none;
    min-width: 200px;
    padding: 0.45rem 0.4rem;
    margin: 0;
    border: 1px solid rgba(170, 170, 170, 0.35);
    border-left: 1px solid rgba(170, 170, 170, 0.35);
    border-radius: 10px;
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 16px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 160;
    /* kill mobile accordion indent if any leak through */
    margin-left: 0;
  }
  /* Hover bridge on the LEFT so pointer can travel parent → side flyout */
  .subnav.subnav-nested::before,
  .subnav .subnav-nested::before {
    content: "";
    position: absolute;
    top: 0;
    right: auto;
    bottom: 0;
    left: -14px;
    width: 14px;
    height: auto;
  }
  .subnav > .has-sub-nested:hover > .subnav-nested,
  .subnav > .has-sub-nested:focus-within > .subnav-nested,
  .subnav > .has-sub-nested.is-open > .subnav-nested {
    display: block;
  }
  .subnav-nested a {
    min-height: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #f2f2f2;
  }
  .subnav-nested a:hover {
    color: #050505;
    background: var(--gold);
  }

  /* Federation dropdown — denser uppercase rows; nested still fly out right */
  .subnav-federation {
    min-width: 300px;
    max-width: min(360px, 92vw);
    padding: 0.2rem 0;
  }
  .subnav-federation > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .subnav-federation > li:last-child {
    border-bottom: none;
  }
  .subnav-federation > li > a,
  .subnav-federation > li > .subnav-parent {
    min-height: 0;
    padding: 0.72rem 1rem;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f0f0f0;
    border-radius: 0;
  }
  .subnav-federation > li > a:hover,
  .subnav-federation > li > .subnav-parent:hover {
    color: #050505;
    background: var(--gold);
  }
  .subnav-federation .subnav-nested {
    min-width: 220px;
    padding: 0.35rem 0;
  }
  .subnav-federation .subnav-nested a {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 550;
    letter-spacing: 0.02em;
    text-transform: none;
  }
}

/* Nested accordion on mobile drawer (all menus with sub-sections) */
@media (max-width: 1099px) {
  .subnav > li > .subnav-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 0.75rem;
    margin: 0;
    background: transparent;
    border: none;
    color: #e6e6e6;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    min-height: 44px;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
  }
  .subnav .chev-end {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin: 0;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .has-sub-nested.is-open > .subnav-parent .chev-end {
    transform: rotate(-135deg);
  }
  .subnav.subnav-nested,
  .subnav .subnav-nested {
    display: none;
    position: static;
    list-style: none;
    padding: 0.1rem 0 0.25rem 0.55rem;
    margin: 0 0 0 0.65rem;
    border: none;
    border-left: 1px solid rgba(232, 200, 114, 0.25);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    min-width: 0;
  }
  .has-sub-nested.is-open > .subnav-nested {
    display: block;
  }
}

/* Mobile / tablet: compact logo + drawer */
@media (max-width: 1099px) {
  .header-shell {
    grid-template-columns: auto 1fr;
    gap: 0 0.65rem;
    align-items: start;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
  .header-stack {
    border-left: none;
    padding-left: 0;
  }
  .logo-rail {
    width: 56px;
    padding: 0.15rem 0;
    gap: 0.2rem;
  }
  .logo-rail-mark {
    max-height: 44px;
    border-radius: 8px;
  }
  .logo-rail-word {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: #ffffff;
  }
  .brand-row-inner {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 0.55rem;
    min-height: 48px;
    padding: 0.2rem 0;
  }
  .search-field {
    padding: 0.48rem 0.75rem 0.48rem 2.15rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
  }
  .btn-members-desktop { display: none; }
  .members-cluster .session-line {
    /* keep lang available on mobile near brand row if cluster visible; else drawer only */
  }
  .btn-members-drawer { display: inline-flex; }
  .nav-toggle { display: flex; }
  .brand-row-inner {
    grid-template-columns: 1fr auto;
  }
  /* Desktop cluster hidden on mobile; session only under drawer CTA */
  .members-cluster { display: none; }
  .site-nav .session-line-drawer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 100%;
    margin-top: 0.45rem;
    font-size: 0.72rem;
    overflow: hidden;
  }
  .site-nav .session-line-drawer .session-status {
    max-width: 10rem;
  }

  .nav-row {
    border-bottom: none;
    background: transparent;
  }
  .nav-row-inner {
    min-height: 0;
    padding: 0;
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(232, 200, 114, 0.25);
    padding: 0.65rem 1.15rem 1.15rem;
    box-shadow: var(--shadow);
    max-height: min(75vh, 640px);
    overflow-y: auto;
    z-index: 110;
  }
  .site-nav.is-open { display: block; }
  .site-nav .subnav {
    background: rgba(32, 32, 32, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    border: 1px solid rgba(160, 160, 160, 0.3);
    margin: 0.25rem 0 0.35rem 0.5rem;
    padding: 0.35rem;
  }
  .site-nav .subnav a { color: #f0f0f0; }

  .stage-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}
@media (max-width: 520px) {
  .logo-rail-word { display: none; }
  .search-field { font-size: 0.75rem; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 650;
  border-radius: var(--radius-sm);
  transition: background var(--ease), border-color var(--ease), transform 0.15s ease, box-shadow var(--ease);
  text-align: center;
  line-height: 1.3;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 20px rgba(26, 122, 76, 0.35);
}
.btn-primary:hover {
  background: var(--green-hover);
  color: #fff;
  box-shadow: 0 6px 28px rgba(26, 122, 76, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(232, 200, 114, 0.55);
}
.btn-outline:hover {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--gold);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}
.btn-lg { padding: 0.9rem 1.55rem; font-size: 0.95rem; }
.btn-sm { padding: 0.48rem 0.9rem; font-size: 0.8rem; }

/* --------------------------------------------------------------------------
   Stage nav — Row 4 (Accueil only) — sits right of logo rail
   -------------------------------------------------------------------------- */
.stage-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
}
.stage-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0 0.6rem;
  scroll-snap-type: x proximity;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
@media (min-width: 900px) {
  .stage-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }
}
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.42rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #7a7a7a;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.stage-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.stage-tab.is-active {
  color: #050505;
  background: var(--gold);
  border-color: rgba(232, 200, 114, 0.9);
  box-shadow: 0 0 18px rgba(232, 200, 114, 0.25);
  font-weight: 700;
}
.site-header.is-scrolled .stage-tabs {
  padding: 0.4rem 0 0.5rem;
}
.site-header.is-scrolled .stage-tab {
  padding: 0.38rem 0.8rem;
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   Hero Stage — left copy ~28% · right carousel ~72%
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: center;
  padding: 2.25rem 0 2.75rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(26, 122, 76, 0.28), transparent 58%),
    radial-gradient(ellipse 35% 40% at 12% 70%, rgba(232, 200, 114, 0.08), transparent 55%),
    linear-gradient(165deg, #0a0a0a 0%, var(--bg) 55%, #060606 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(118deg, transparent 46%, rgba(232, 200, 114, 0.05) 47%, transparent 48.5%),
    linear-gradient(62deg, transparent 58%, rgba(26, 122, 76, 0.06) 59%, transparent 60%),
    repeating-linear-gradient(90deg, transparent, transparent 96px, rgba(255, 255, 255, 0.012) 96px, rgba(255, 255, 255, 0.012) 97px);
  mask-image: linear-gradient(180deg, #000 25%, transparent 92%);
}
.hero-stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem 1.1rem;
  align-items: center;
  width: 100%;
}
@media (min-width: 900px) {
  .hero-stage-grid {
    grid-template-columns: minmax(220px, 0.32fr) auto minmax(0, 0.68fr);
    gap: 1.25rem 0.85rem;
  }
  .hero-stage-grid:not(.has-period) {
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  }
  .hero-stage-grid:not(.has-period) .period-filter {
    display: none;
  }
}

/* Left intro: stable grid [controls] [text] — chevrons never move */
.stage-copy {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  display: grid;
  grid-template-rows: 48px minmax(0, auto);
  grid-template-areas:
    "controls"
    "body";
  align-content: start;
  row-gap: 0.85rem;
  transition: opacity 0.28s ease;
  min-height: 0;
}
.subject-nav {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  margin: 0;
  flex-shrink: 0;
  width: 100%;
  max-width: 20rem;
  box-sizing: border-box;
}
.stage-copy-body {
  grid-area: body;
  min-height: 8.5rem; /* keeps body growth below controls without shifting strip */
}
.stage-empty {
  grid-area: body;
}
.subject-chev {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 114, 0.45);
  background: rgba(14, 14, 14, 0.85);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.subject-chev svg {
  width: 18px;
  height: 18px;
}
.subject-chev:hover {
  background: rgba(26, 122, 76, 0.35);
  border-color: var(--gold);
}
.subject-chev:active { transform: scale(0.96); }
.subject-chev:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.subject-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1;
  min-height: 12px;
}
.subject-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.subject-dot.is-active {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 200, 114, 0.5);
  transform: scale(1.15);
}
.subject-dot:hover { background: rgba(232, 200, 114, 0.7); }
.stage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.stage-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.stage-copy h1 {
  font-size: clamp(1.65rem, 3.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.stage-copy h1 .accent {
  color: var(--gold);
  text-shadow: 0 0 32px rgba(232, 200, 114, 0.25);
}
.stage-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 34ch;
}
.stage-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: italic;
  padding-top: 0.15rem;
}
.stage-copy.is-empty .stage-copy-body { visibility: hidden; height: 0; overflow: hidden; min-height: 0; }
.stage-copy.is-empty .subject-nav { opacity: 0.4; }

/* Period chips: vertical stack between subject column and carousel */
.period-filter {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  align-self: center;
  z-index: 2;
}
.period-filter[hidden] { display: none !important; }
.period-filter-inner {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.3rem;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.period-chip {
  padding: 0.28rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6a6a6a;
  background: rgba(12, 12, 12, 0.45);
  border: 1px solid rgba(120, 120, 120, 0.28);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  text-align: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.period-chip:hover {
  color: #c4c4c4;
  border-color: rgba(232, 200, 114, 0.28);
}
.period-chip.is-active {
  color: #d4ecd9;
  background: rgba(26, 122, 76, 0.2);
  border-color: rgba(26, 122, 76, 0.5);
}
@media (max-width: 899px) {
  .period-filter-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0.15rem 0 0.25rem;
  }
  .period-chip {
    padding: 0.2rem 0.48rem;
    font-size: 0.58rem;
  }
}

/* Carousel */
.stage-carousel {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(232, 200, 114, 0.22);
  background: #0a0a0a;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(26, 122, 76, 0.12);
  aspect-ratio: 16 / 10;
  max-height: min(58vh, 520px);
}
.stage-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.stage-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.stage-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  min-width: 100%;
}
.stage-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.stage-slide--contain {
  background: #070a08;
}
.stage-slide--contain img {
  object-fit: contain;
  object-position: center;
}
a.stage-slide-hit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.stage-slide-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(26, 122, 76, 0.35), transparent 55%),
    linear-gradient(160deg, #121212 0%, #0a0a0a 100%);
}
.stage-slide-card.theme-gold {
  background:
    radial-gradient(ellipse 70% 50% at 30% 30%, rgba(232, 200, 114, 0.18), transparent 55%),
    linear-gradient(160deg, #141210 0%, #0a0a0a 100%);
}
.stage-slide-card.theme-age {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(231, 76, 60, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(26, 122, 76, 0.2), transparent 50%),
    linear-gradient(160deg, #101010 0%, #080808 100%);
}
.stage-slide-label {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.stage-slide-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 750;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}
.stage-slide-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 36ch;
  line-height: 1.45;
}
.stage-slide-cta {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  align-self: flex-start;
  pointer-events: auto;
}
.stage-slide-cta:hover { color: #fff; background: var(--green-hover); }
.stage-slide-scrim .stage-slide-cta { margin-top: 0.65rem; }
.stage-slide-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(232, 200, 114, 0.1), transparent 65%),
    linear-gradient(160deg, #0e0e0e 0%, #080808 100%);
}
.stage-slide-logo-wrap img {
  width: auto;
  max-width: min(78%, 420px);
  max-height: min(58%, 220px);
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  /* Soft lift without a white plate */
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}
.stage-slide-logo-wrap::after {
  content: "Venue Partner · Pool Nuts";
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
html[lang="fr"] .stage-slide-logo-wrap::after {
  content: "Partenaire de lieu · Pool Nuts";
}
.stage-slide-scrim {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.35rem 1.25rem;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.92) 0%, transparent 100%);
  pointer-events: none;
}
.stage-slide-scrim .stage-slide-cta {
  pointer-events: auto;
}
.stage-slide-scrim .stage-slide-title {
  font-size: 1.05rem;
  margin: 0;
}
.stage-slide-scrim .stage-slide-label {
  margin-bottom: 0.25rem;
}

.stage-chev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 114, 0.35);
  background: rgba(8, 8, 8, 0.75);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.stage-chev:hover {
  background: rgba(26, 122, 76, 0.35);
  border-color: var(--gold);
}
.stage-chev:active { transform: translateY(-50%) scale(0.96); }
.stage-chev svg { width: 20px; height: 20px; }
.stage-prev { left: 0.65rem; }
.stage-next { right: 0.65rem; }

.stage-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  background: rgba(5, 5, 5, 0.55);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}
.stage-dot.is-active {
  background: var(--gold);
  width: 18px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(232, 200, 114, 0.45);
}
.stage-dot:hover { background: rgba(232, 200, 114, 0.7); }

@media (min-width: 900px) {
  .hero-stage-grid {
    min-height: min(62vh, 520px);
  }
  .stage-carousel {
    aspect-ratio: 16 / 9.5;
  }
}

@media (max-width: 899px) {
  .hero-stage {
    min-height: 0;
    padding: 1.5rem 0 2rem;
  }
  .stage-carousel {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
  .stage-chev {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-track { transition: none; }
  .stage-kicker::before { animation: none; }
}

/* --------------------------------------------------------------------------
   Sections — visual band ↔ content band rhythm
   -------------------------------------------------------------------------- */
.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section:nth-child(even) {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(26, 122, 76, 0.06), transparent 50%),
    #070707;
}
.section:nth-child(odd) {
  background: var(--bg);
}
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}
.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}
.section-link {
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Featured CDC — magazine
   -------------------------------------------------------------------------- */
.featured-card {
  display: grid;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.featured-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 480px;
  background: #0a0a0a;
  overflow: hidden;
}
.featured-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.featured-poster--contain {
  max-height: min(72vh, 720px);
}
.featured-poster--contain img {
  object-fit: contain;
  object-position: center;
}
.featured-poster--contain::after {
  display: none;
}
.featured-lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.featured-card:hover .featured-poster img {
  transform: scale(1.03);
}
.featured-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.35) 0%, transparent 40%);
  pointer-events: none;
}
.featured-body {
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background:
    linear-gradient(165deg, rgba(26, 122, 76, 0.08) 0%, transparent 45%),
    var(--bg-card);
}
.featured-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  background: var(--gold-soft);
}
.featured-body h3 {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.facts-glass {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  background: rgba(8, 8, 8, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.facts-glass li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 0.2rem 0;
}
.facts-glass li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(26, 122, 76, 0.6);
}
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 800px) {
  .featured-card {
    grid-template-columns: minmax(280px, 0.9fr) 1.15fr;
  }
  .featured-poster {
    aspect-ratio: auto;
    max-height: none;
    min-height: 420px;
    border-right: 1px solid var(--border);
  }
  .featured-poster::after { display: none; }
  .featured-body {
    padding: 2rem 2rem 2rem 1.75rem;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   News cards
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.card:hover {
  border-color: rgba(232, 200, 114, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 200, 114, 0.08);
  transform: translateY(-2px);
}
.card-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, rgba(26, 122, 76, 0.25), #0a0a0a 60%),
    #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-body {
  padding: 1.35rem 1.3rem 1.45rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  padding: 0.22rem 0.55rem;
  background: var(--gold-soft);
  border: 1px solid rgba(232, 200, 114, 0.2);
  border-radius: 999px;
}
.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}
.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.55;
}
.card-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.card-link {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--green);
}
.card-link:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Champions podium
   -------------------------------------------------------------------------- */
.champions-podium {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .champions-podium {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
  .champion-tile:nth-child(1) { order: 2; transform: translateY(-8px); }
  .champion-tile:nth-child(2) { order: 1; }
  .champion-tile:nth-child(3) { order: 3; }
  .champion-tile.is-gold {
    border-color: rgba(232, 200, 114, 0.4);
    background:
      linear-gradient(180deg, rgba(232, 200, 114, 0.1) 0%, transparent 50%),
      var(--bg-card);
  }
}
.champion-tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 1.6rem 1.15rem 1.4rem;
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease);
  overflow: hidden;
}
.champion-tile:hover {
  border-color: rgba(232, 200, 114, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.champion-rank {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.champion-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(232, 200, 114, 0.2), transparent 50%),
    linear-gradient(145deg, #143d28, #0a0a0a);
  border: 1.5px solid rgba(232, 200, 114, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.champion-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.champion-name .aka {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.champion-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.champions-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Digital teaser
   -------------------------------------------------------------------------- */
.teaser {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1.5rem;
  box-shadow: var(--shadow-glow);
}
.teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(26, 122, 76, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 80%, rgba(232, 200, 114, 0.06), transparent 50%);
  pointer-events: none;
}
.teaser > * { position: relative; }
.teaser-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.teaser h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 750;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.teaser p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 52ch;
  line-height: 1.6;
}
.teaser-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
}
.teaser-powered strong { font-weight: 700; }
@media (min-width: 720px) {
  .teaser {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 2.5rem 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Page hero (inner)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 90% at 100% 0%, rgba(26, 122, 76, 0.16), transparent 55%),
    radial-gradient(ellipse 30% 50% at 0% 100%, rgba(232, 200, 114, 0.05), transparent 50%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.breadcrumb {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.35rem; color: var(--text-dim); }
.page-hero h1 {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.55rem;
  line-height: 1.15;
}
.page-hero .lead {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 48ch;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   CDC page
   -------------------------------------------------------------------------- */
.cdc-hero-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.cdc-hero-poster {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  background: #0a0a0a;
  max-width: 300px;
  box-shadow: var(--shadow-glow);
}
.cdc-hero-poster img {
  width: 100%;
  height: auto;
  display: block;
}
.cdc-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin-top: 1.35rem;
  padding: 0.95rem 1.1rem;
  background: rgba(14, 14, 14, 0.8);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}
.cdc-partners img {
  height: 40px;
  width: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.cdc-partners strong {
  color: var(--text);
  font-weight: 650;
}
.entry-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}
.entry-pill {
  background: rgba(8, 8, 8, 0.7);
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.entry-pill strong { color: var(--gold); }

@media (min-width: 720px) {
  .cdc-hero-layout {
    grid-template-columns: 240px 1fr;
    gap: 2.25rem;
  }
}
.cdc-grid {
  display: grid;
  gap: 1.35rem;
  padding: 2.25rem 0 3rem;
}
@media (min-width: 860px) {
  .cdc-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.cdc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.cdc-panel h2 {
  font-size: 0.95rem;
  font-weight: 750;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.cdc-facts { display: grid; gap: 0; }
.cdc-fact {
  display: grid;
  grid-template-columns: minmax(100px, 36%) 1fr;
  gap: 0.5rem 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.cdc-fact:last-child { border-bottom: none; }
.cdc-fact dt {
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
  padding-top: 0.15rem;
}
.cdc-fact dd { font-weight: 550; line-height: 1.4; }
.prize-list { display: grid; gap: 0.5rem; }
.prize-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: rgba(8, 8, 8, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.prize-row .rank { font-weight: 600; color: var(--text-muted); }
.prize-row .amount {
  font-weight: 750;
  color: var(--gold);
  white-space: nowrap;
}
.prize-row:first-child {
  border-color: rgba(232, 200, 114, 0.4);
  background: var(--gold-soft);
}
.prize-row:first-child .rank { color: var(--gold); }
.format-steps { display: grid; gap: 0.6rem; }
.format-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.format-step .num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid var(--green);
  color: #7dcea0;
  font-size: 0.72rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
}
.format-step strong { color: var(--text); font-weight: 650; }
.cdc-cta-box {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cdc-cta-box .note {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.mt-2 { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Fédération — hub + content pages (60/40 layout)
   -------------------------------------------------------------------------- */
.fed-content {
  padding: 2.25rem 0 3.25rem;
  display: grid;
  gap: 1.15rem;
  max-width: 720px;
}
.fed-block {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  transition: border-color var(--ease);
}
.fed-block:hover { border-color: rgba(232, 200, 114, 0.25); }
.fed-block h2 {
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fed-block p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  line-height: 1.55;
}
.fed-block p:last-child { margin-bottom: 0; }
.affil-list { display: grid; gap: 0.65rem; margin-top: 0.5rem; }
.affil-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem;
  background: rgba(8, 8, 8, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.affil-badge {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  border: 1px solid rgba(26, 122, 76, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #7dcea0;
  letter-spacing: 0.02em;
}
.affil-item h3 {
  font-size: 0.92rem;
  font-weight: 650;
  margin-bottom: 0.15rem;
}
.affil-item p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

/* Hub cards */
.fed-hub {
  padding: 2.25rem 0 3.25rem;
}
.fed-hub-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .fed-hub-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .fed-hub-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.fed-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  transition: border-color var(--ease), transform 0.15s ease;
  color: inherit;
  min-height: 100%;
}
.fed-hub-card:hover {
  border-color: rgba(232, 200, 114, 0.4);
  color: inherit;
  transform: translateY(-1px);
}
.fed-hub-card .fed-tag {
  margin-bottom: 0.1rem;
}
.fed-hub-card h2 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.fed-hub-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}
.fed-hub-card .fed-hub-arrow {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 650;
  margin-top: 0.35rem;
}

/* Content page shell */
.fed-page {
  padding: 2rem 0 3.25rem;
}

/* Legal / privacy policy document */
.legal-doc__head {
  margin-bottom: 1.5rem;
  max-width: 48rem;
}
.legal-doc__head h1 {
  font-size: clamp(1.45rem, 3.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.55rem;
  color: #f5f5f5;
}
.legal-doc__updated {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gold, #e8c872);
  font-weight: 650;
}
.legal-doc__body {
  max-width: 48rem;
  color: #c8c8c8;
  font-size: 0.95rem;
  line-height: 1.65;
}
.legal-doc__intro {
  margin-bottom: 1.25rem;
}
.legal-doc__intro p {
  margin: 0 0 0.85rem;
  color: #d0d0d0;
}
.legal-doc__body a {
  color: var(--gold, #e8c872);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc__body a:hover {
  color: #fff;
}
/* Gold-lined section panels */
.legal-panel {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem 1.05rem;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid var(--gold, #e8c872);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  scroll-margin-top: 5rem;
}
.legal-panel__title {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--gold, #e8c872);
  line-height: 1.25;
}
.legal-panel__content p {
  margin: 0 0 0.75rem;
  color: #d4d4d4;
}
.legal-panel__content p:last-child {
  margin-bottom: 0;
}
.legal-panel__content ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  color: #d4d4d4;
}
.legal-panel__content li {
  margin: 0 0 0.4rem;
}
.legal-panel__content li:last-child {
  margin-bottom: 0;
}
#suppression.legal-panel {
  border-width: 1.5px;
  box-shadow: 0 0 0 1px rgba(232, 200, 114, 0.2), 0 4px 18px rgba(0, 0, 0, 0.35);
}
.fed-split {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 860px) {
  .fed-split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.25rem;
  }
}
.fed-split-text { min-width: 0; }
.fed-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}
.fed-split-text h1 {
  font-size: clamp(1.45rem, 3.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.fed-split-text > .lead,
.fed-page .lead {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 1.15rem;
  max-width: 52ch;
}
.fed-bullets {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
  padding: 0;
}
.fed-bullets li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 1.85rem;
  background: rgba(8, 8, 8, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.fed-bullets li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.fed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}
.fed-note {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 1rem;
}

/* Gold visual frame (right column) */
.fed-split-visual { min-width: 0; }
.fed-visual-frame {
  margin: 0;
  border: 1px solid rgba(232, 200, 114, 0.55);
  border-radius: var(--radius);
  background: #0a0a0a;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(232, 200, 114, 0.08), var(--shadow);
}
.fed-visual-media {
  aspect-ratio: 4 / 5;
  max-height: 420px;
  background:
    linear-gradient(160deg, rgba(26, 122, 76, 0.12), transparent 55%),
    #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fed-visual-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fed-visual-media.is-empty {
  min-height: 220px;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(232, 200, 114, 0.18);
}
.fed-visual-frame figcaption {
  padding: 0.75rem 0.95rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  border-top: 1px solid rgba(232, 200, 114, 0.22);
  background: rgba(8, 8, 8, 0.85);
}

/* Full-width band below split */
.fed-band {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
}
.fed-band h2 {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Timeline */
.fed-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0;
  align-items: stretch;
  justify-content: space-between;
}
.fed-timeline-item {
  flex: 1 1 120px;
  min-width: 100px;
  text-align: center;
  padding: 0.65rem 0.5rem;
  position: relative;
}
.fed-timeline-item::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--gold);
  margin: 0 auto 0.55rem;
}
.fed-timeline-year {
  display: block;
  font-weight: 800;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.fed-timeline-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Historique — year timeline + carousel
   -------------------------------------------------------------------------- */
/* Breadcrumb — standard sitewide under menu row (header stack) */
.header-crumb-row,
.hist-crumb-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.28rem 0 0.38rem;
  min-height: 0;
}
.header-breadcrumb.breadcrumb,
.hist-breadcrumb.breadcrumb {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dim);
}
.header-breadcrumb a,
.hist-breadcrumb a {
  color: var(--text-muted);
}
.header-breadcrumb a:hover,
.hist-breadcrumb a:hover {
  color: var(--gold);
}
.header-breadcrumb .crumb-sep,
.hist-breadcrumb .crumb-sep {
  margin: 0 0.3rem;
  color: var(--text-dim);
}
.header-breadcrumb .crumb-current,
.hist-breadcrumb .crumb-current {
  color: var(--text-muted);
  font-weight: 550;
}
.site-header.is-scrolled .header-crumb-row,
.site-header.is-scrolled .hist-crumb-row {
  padding: 0.18rem 0 0.28rem;
}

/* Year strip raised — no full page-hero block */
.hist-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.hist-year-strip {
  position: relative;
  padding: 0.55rem 0 0.4rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 120% at 0% 0%, rgba(26, 122, 76, 0.12), transparent 55%),
    var(--bg);
}
.hist-year-strip .container { position: relative; }
.hist-year-bar {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.05rem 0 0.35rem;
  margin: 0 -0.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 200, 114, 0.35) transparent;
}
.hist-year-bar::-webkit-scrollbar { height: 4px; }
.hist-year-bar::-webkit-scrollbar-thumb {
  background: rgba(232, 200, 114, 0.35);
  border-radius: 4px;
}
.hist-year-chip {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-width: 3.15rem;
  padding: 0.42rem 0.48rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  background: rgba(10, 10, 10, 0.85);
  color: var(--text);
  text-align: center;
  transition: border-color var(--ease), background var(--ease), color var(--ease), opacity var(--ease);
  font-family: inherit;
  line-height: 1.15;
}
button.hist-year-chip {
  cursor: pointer;
}
button.hist-year-chip:hover {
  border-color: rgba(232, 200, 114, 0.55);
  color: var(--gold);
}
.hist-year-chip-num {
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.hist-year-chip-note {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  max-width: 4.5rem;
  line-height: 1.2;
}
.hist-year-chip.is-active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(232, 200, 114, 0.2);
}
.hist-year-chip.is-inactive {
  opacity: 0.38;
  color: var(--text-dim);
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}
.hist-year-chip.is-future {
  opacity: 0.55;
  color: var(--text-dim);
  border-style: dashed;
  border-color: var(--border-mid);
  cursor: default;
  pointer-events: none;
  min-width: 5.2rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}
.hist-year-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
/* Content row: tighter top so carousel fits without page scroll */
.hist-year-page.fed-page {
  padding: 0.95rem 0 1.5rem;
}
.hist-year-page #hist-highlight {
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  margin-bottom: 0.55rem;
}
.hist-year-page .lead {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}
.hist-year-page .fed-tag {
  margin-bottom: 0.4rem;
}
/* Carousel wider: left column shrinks, right expands leftward */
@media (min-width: 860px) {
  .hist-year-page .hist-split.fed-split {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 1.35rem;
    align-items: stretch;
  }
}
@media (min-width: 1100px) {
  .hist-year-page .hist-split.fed-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem;
  }
}
.hist-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
}
.hist-meta-row {
  display: grid;
  grid-template-columns: minmax(88px, 28%) 1fr;
  gap: 0.4rem 0.75rem;
  padding: 0.55rem 0.7rem;
  background: rgba(8, 8, 8, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.4;
}
.hist-meta-k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 0.12rem;
}
.hist-meta-v { color: var(--text-muted); }

/* Carousel — larger panel, full view above the fold when possible */
.hist-split-visual {
  min-width: 0;
  display: flex;
}
.hist-carousel {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: min(52vh, 480px);
  max-height: none;
  overflow: hidden;
}
.hist-carousel-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: min(38vh, 360px);
  background:
    linear-gradient(160deg, rgba(26, 122, 76, 0.1), transparent 55%),
    #0a0a0a;
}
.hist-carousel-track {
  position: relative;
  min-height: 100%;
  height: 100%;
}
.hist-slide {
  display: none;
  padding: 1.2rem 1.25rem 1.1rem;
  animation: hist-fade 0.28s ease;
  height: 100%;
  box-sizing: border-box;
}
.hist-slide.is-active { display: block; }
@keyframes hist-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.hist-slide-tag {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.hist-slide-title {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.hist-slide-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.hist-slide-sub {
  font-size: 0.84rem;
  color: var(--text-dim);
}
.hist-slide-dl {
  display: grid;
  gap: 0.45rem 0.75rem;
  margin: 0;
}
.hist-slide-dl dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hist-slide-dl dd {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  line-height: 1.4;
}
.hist-slide-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
  padding: 0;
}
.hist-slide-list li {
  position: relative;
  padding: 0.4rem 0.55rem 0.4rem 1.35rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.hist-slide-list li::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.hist-slide-cta { margin-top: 0.9rem; }
.hist-slide-img-wrap {
  margin-top: 0.35rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  background: #080808;
  min-height: 160px;
}
.hist-slide-img-wrap img {
  width: 100%;
  height: auto;
  max-height: min(42vh, 380px);
  object-fit: contain;
  background: #080808;
}
.hist-slide-img-wrap.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}
.hist-slide-img-wrap.is-empty::after {
  content: "Image d’agrément à publier";
}
.hist-slide-caption {
  padding: 0.55rem 0.7rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin: 0;
}
.hist-carousel-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid rgba(232, 200, 114, 0.22);
  background: rgba(8, 8, 8, 0.9);
}
.hist-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: rgba(14, 14, 14, 0.9);
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--ease), background var(--ease);
}
.hist-nav-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.hist-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.hist-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  flex: 1;
}
.hist-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 114, 0.45);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hist-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
}
.hist-carousel-label {
  padding: 0.45rem 0.85rem 0.65rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  border-top: 1px solid var(--border);
  margin: 0;
  text-align: center;
}
.hist-carousel.is-empty .hist-carousel-chrome { opacity: 0.5; }

@media (max-width: 859px) {
  .hist-year-page .fed-split-text { order: 1; }
  .hist-year-page .fed-split-visual { order: 2; }
  .hist-year-page .fed-split {
    display: flex;
    flex-direction: column;
  }
  .hist-carousel {
    min-height: 300px;
  }
  .hist-carousel-viewport {
    min-height: 220px;
  }
}

/* Mobile header: crumb always visible under search/nav cluster */
@media (max-width: 1099px) {
  .header-crumb-row,
  .hist-crumb-row {
    padding: 0.2rem 0 0.3rem;
  }
}

/* --------------------------------------------------------------------------
   Bureau Exécutif — org-chart chips + profile
   -------------------------------------------------------------------------- */
.bureau-page.fed-page {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}
.bureau-page-head {
  margin-bottom: 1.15rem;
  max-width: 52ch;
}
.bureau-page-head h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.45rem;
}
.bureau-page-head .lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.bureau-layout {
  display: grid;
  gap: 1.35rem;
  align-items: stretch; /* equal card tops */
}
@media (min-width: 900px) {
  .bureau-layout {
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.15fr);
    gap: 1.75rem;
    align-items: start;
  }
}
.bureau-chart-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 1rem 0.85rem 1.15rem;
  /* Independent scroll so CAC / CAC-A stay reachable without page scroll */
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: sticky;
  top: 0.75rem;
}
.bureau-chart-label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem 0.25rem;
  flex-shrink: 0;
}
.bureau-chart {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 0.25rem;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 200, 114, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
}
.bureau-chart::-webkit-scrollbar { width: 5px; }
.bureau-chart::-webkit-scrollbar-thumb {
  background: rgba(232, 200, 114, 0.35);
  border-radius: 4px;
}
.bureau-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
}
.bureau-row--pres {
  margin-bottom: 0.2rem;
  justify-content: center;
}
/* VPs: three equal columns, ≥ head size, only President is larger */
.bureau-row--vp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
}
/* Pair (SG-A1/A2): two equal adj chips */
.bureau-row--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
}
/* Solo head: centered; solo adj (CDF-A, CAC-A): left-aligned */
.bureau-row--solo {
  display: flex;
  justify-content: center;
  width: 100%;
}
.bureau-row--cdfa.bureau-row--solo,
.bureau-row--caca.bureau-row--solo {
  justify-content: flex-start;
}

/* Base chip */
.bureau-chip {
  min-width: 0;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green);
  background: rgba(14, 14, 14, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.15;
  padding: 0.45rem 0.5rem;
}
.bureau-chip-code {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.15;
}
.bureau-chip-title {
  font-weight: 650;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.2;
  max-width: 100%;
  padding: 0 0.15rem;
}

/* —— Size tiers (height locked so adj never taller than head) —— */
/* President: double prior width band */
.bureau-chip--pres {
  width: min(100%, 18rem);
  min-height: 56px;
  height: 56px;
  padding: 0.55rem 1.25rem;
  flex: 0 0 auto;
}
.bureau-chip--pres .bureau-chip-code {
  font-size: 1rem;
}
.bureau-chip--pres .bureau-chip-title {
  font-size: 0.78rem;
}

/* VP: full third of row; not smaller than heads */
.bureau-chip--vp {
  width: 100%;
  min-height: 52px;
  height: 52px;
  padding: 0.4rem 0.35rem;
}
.bureau-chip--vp .bureau-chip-code {
  font-size: 0.84rem;
}
.bureau-chip--vp .bureau-chip-title {
  font-size: 0.68rem;
}

/* Head (SG, CDF, CAC): centered solo, ~half chart width, fixed height */
.bureau-chip--head {
  width: min(100%, 11.5rem);
  min-height: 52px;
  height: 52px;
  flex: 0 0 auto;
  padding: 0.4rem 0.65rem;
}
.bureau-chip--head .bureau-chip-code {
  font-size: 0.88rem;
}
.bureau-chip--head .bureau-chip-title {
  font-size: 0.7rem;
}

/* Adjoint: uniform, smaller than head (never taller) */
.bureau-chip--adj {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0.3rem 0.4rem;
}
.bureau-row--solo .bureau-chip--adj {
  width: min(100%, 9.5rem);
  flex: 0 0 auto;
}
.bureau-chip--adj .bureau-chip-code {
  font-size: 0.76rem;
}
.bureau-chip--adj .bureau-chip-title {
  font-size: 0.62rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bureau-chip:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(232, 200, 114, 0.25), 0 0 18px rgba(232, 200, 114, 0.18);
  color: #fff;
}
.bureau-chip:hover .bureau-chip-code {
  color: var(--gold);
}
.bureau-chip.is-active {
  background: var(--green);
  border-color: var(--gold);
  box-shadow:
    0 0 0 2px rgba(232, 200, 114, 0.55),
    0 0 20px rgba(26, 122, 76, 0.45);
}
.bureau-chip.is-active .bureau-chip-code,
.bureau-chip.is-active .bureau-chip-title {
  color: #fff;
}
/* Vacant: grey lining so the slot is visibly “there” before tap */
.bureau-chip.is-vacant {
  border-style: dashed;
  border-color: #6a6a6a;
  background: rgba(28, 28, 28, 0.75);
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(120, 120, 120, 0.2);
}
.bureau-chip.is-vacant .bureau-chip-code {
  color: #b0b0b0;
}
.bureau-chip.is-vacant .bureau-chip-title {
  color: #8a8a8a;
}
.bureau-chip.is-vacant:hover {
  border-color: #9a9a9a;
  box-shadow: 0 0 0 1px rgba(154, 154, 154, 0.25), 0 0 14px rgba(100, 100, 100, 0.2);
}
.bureau-chip.is-vacant:hover .bureau-chip-code {
  color: #d0d0d0;
}
.bureau-chip.is-vacant.is-active {
  opacity: 1;
  background: rgba(50, 50, 50, 0.9);
  border-color: #a8a8a8;
  border-style: dashed;
  box-shadow: 0 0 0 2px rgba(160, 160, 160, 0.35);
}
.bureau-chip.is-vacant.is-active .bureau-chip-code {
  color: #e0e0e0;
}
.bureau-chip.is-vacant.is-active .bureau-chip-title {
  color: #c0c0c0;
}

/* Profile panel — top edge aligned with organigram card */
.bureau-panel-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (min-width: 900px) {
  .bureau-panel-wrap {
    /* Match sticky chart top so photo card lines up with organigram */
    position: sticky;
    top: 0.75rem;
    align-self: start;
  }
}
.bureau-panel {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Carousel fills the card; no dead air above the portrait */
.bureau-panel-carousel.fed-mission-carousel {
  flex: 1;
  min-height: 0;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bureau-panel-carousel .fed-mission-toolbar {
  padding: 0.28rem 0.45rem;
  border-bottom: 1px solid rgba(232, 200, 114, 0.18);
  background: rgba(8, 8, 8, 0.55);
}
.bureau-panel-carousel .fed-mission-viewport,
.bureau-panel-carousel .bureau-panel-track-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.bureau-panel-carousel .bureau-panel-track {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.bureau-panel-carousel .bureau-slide {
  flex: 1;
  min-height: 0;
  display: none;
}
.bureau-panel-carousel .bureau-slide.is-active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.bureau-profile {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.75rem 0.85rem 0.95rem;
  display: grid;
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .bureau-profile.is-filled {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    align-items: stretch; /* photo top aligns with text column */
  }
}
.bureau-profile-photo {
  margin: 0;
  overflow: hidden;
  min-height: 0;
  align-self: stretch;
  display: flex;
}
.bureau-profile-photo-inner {
  aspect-ratio: 3 / 4;
  max-height: min(48vh, 380px);
  width: 100%;
  background: #0a0a0a;
  overflow: hidden;
  border-radius: var(--radius-sm);
  flex: 1;
}
.bureau-profile-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bureau-profile-role {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
.bureau-profile-name {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.bureau-profile-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.bureau-profile-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0 0 1rem;
}
.bureau-profile.is-vacant {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
}
.bureau-profile.is-vacant .bureau-profile-role {
  margin-bottom: 1rem;
}
.bureau-vacant-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border: 1px dashed rgba(232, 200, 114, 0.35);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.5);
  margin-bottom: 1rem;
}
.bureau-vacant-label {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 0.55rem;
}
.bureau-vacant-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 28ch;
  line-height: 1.4;
}
.bureau-profile.is-vacant .fed-actions {
  justify-content: center;
}
.bureau-profile.is-vacant .bureau-profile-note {
  text-align: center;
}

@media (max-width: 899px) {
  .bureau-chart-wrap {
    max-height: min(58vh, 480px);
    position: static;
  }
  .bureau-chip--pres {
    width: min(100%, 16rem);
    min-height: 52px;
    height: 52px;
  }
  .bureau-chip--vp,
  .bureau-chip--head {
    min-height: 48px;
    height: 48px;
  }
  .bureau-chip--adj {
    min-height: 42px;
    height: 42px;
  }
  .bureau-chip--head {
    width: min(100%, 10rem);
  }
  .bureau-row--solo .bureau-chip--adj {
    width: min(100%, 8.5rem);
  }
}

/* Mission carousel (AG, CA, Directions, Bureau panel) */
.fed-mission-host {
  min-height: 320px;
  overflow: hidden;
}
.fed-mission-carousel,
.bureau-panel-carousel {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  position: relative;
}
/* Top toolbar: white chevrons only + dots (no boxes, no text labels) */
.fed-mission-toolbar {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid rgba(232, 200, 114, 0.22);
  background: rgba(8, 8, 8, 0.92);
  flex-shrink: 0;
  z-index: 3;
}
.fed-mission-toolbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.fed-mission-chev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color var(--ease), opacity var(--ease), transform 0.12s ease;
}
.fed-mission-chev-btn:hover:not(:disabled) {
  color: #ffffff;
  opacity: 1;
  transform: scale(1.12);
  background: transparent;
  border: none;
}
.fed-mission-chev-btn:disabled,
.fed-mission-chev-btn[hidden] {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
}
/* legacy class names — keep transparent white chevron look */
.fed-mission-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 300;
  cursor: pointer;
}
.fed-mission-chev {
  color: #ffffff;
  font-size: 1.75rem;
}
.fed-mission-nav-label {
  display: none !important;
}
.fed-mission-viewport,
.bureau-panel-track-wrap {
  flex: 1;
  min-width: 0;
  min-height: 260px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(26, 122, 76, 0.1), transparent 55%),
    #0a0a0a;
}
.fed-mission-track,
.bureau-panel-track {
  position: relative;
  min-height: 260px;
  height: 100%;
}
.fed-mission-slide-wrap,
.bureau-slide {
  display: none;
  padding: 0;
  animation: hist-fade 0.28s ease;
}
.fed-mission-slide-wrap.is-active,
.bureau-slide.is-active {
  display: block;
}
.fed-mission-slide {
  padding: 1.35rem 1.2rem 1.2rem;
  text-align: center;
  background: #0a0a0a;
  min-height: 280px;
}
.fed-mission-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.fed-mission-logo-wrap img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.fed-mission-tag {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.45rem;
}
.fed-mission-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.fed-mission-list li {
  color: #f0f0f0;
}
/* Hub logo cards (Directions / Commissions) */
.fed-mission-card-grid {
  margin-top: 0.25rem;
}
.fed-mission-card {
  background: #0a0a0a;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1.05rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: border-color var(--ease);
}
.fed-mission-card:hover {
  border-color: rgba(232, 200, 114, 0.4);
}
.fed-mission-card .fed-mission-logo-wrap img {
  width: 64px;
  height: 64px;
}
.fed-mission-card h2 {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--gold);
  margin: 0.15rem 0 0.25rem;
  line-height: 1.25;
}
.fed-mission-card > p:not(.fed-mission-tag):not(.fed-mission-footer) {
  font-size: 0.84rem;
  color: #e8e8e8;
  line-height: 1.45;
  margin: 0;
  max-width: 28ch;
}
.fed-mission-card .fed-mission-footer {
  margin-top: 0.55rem;
}
.fed-mission-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin: 0 auto;
  padding: 0;
  max-width: 36ch;
  text-align: left;
}
.fed-mission-list li {
  position: relative;
  padding: 0.45rem 0.6rem 0.45rem 1.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.fed-mission-list li::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.8rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.fed-mission-footer {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.fed-mission-chrome {
  display: none; /* legacy; toolbar is top now */
}
.fed-mission-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}
.fed-mission-label {
  display: none; /* counter/labels removed — chevrons only */
}
/* Profile slide: flush with card, toolbar only above */
.bureau-slide.is-profile {
  padding: 0;
  flex: 1;
  min-height: 0;
}
.bureau-slide.is-profile .bureau-profile {
  border: none;
  background: transparent;
  padding: 0.65rem 0.75rem 0.85rem;
}
.bureau-panel-carousel .bureau-slide.is-mission {
  min-height: 260px;
}
.bureau-panel-carousel .fed-mission-viewport {
  min-height: min(48vh, 400px);
}
@media (max-width: 720px) {
  .fed-mission-toolbar {
    grid-template-columns: 2.25rem 1fr 2.25rem;
    padding: 0.3rem 0.2rem;
  }
  .fed-mission-chev-btn {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.55rem;
  }
}

/* Federation image zoom hint + lightbox */
.fed-zoom-hint {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.fed-zoomable,
.fed-visual-frame img,
.hist-slide-img-wrap img {
  cursor: zoom-in;
}
.fed-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.fed-lightbox[hidden] {
  display: none !important;
}
body.fed-lightbox-open {
  overflow: hidden;
}
.fed-lightbox-img {
  max-width: min(96vw, 1200px);
  max-height: min(88vh, 960px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(232, 200, 114, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  cursor: default;
  background: #0a0a0a;
}
.fed-lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 114, 0.45);
  background: rgba(12, 12, 12, 0.9);
  color: #e8c872;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fed-lightbox-close:hover {
  background: var(--gold);
  color: #050505;
}
.fed-lightbox-hint {
  margin: 0;
  font-size: 0.72rem;
  color: #8a8a8a;
}

/* AGE spotlight */
.fed-spotlight {
  margin: 1.25rem 0 1.35rem;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 200, 114, 0.55);
  background:
    linear-gradient(135deg, rgba(26, 122, 76, 0.18), rgba(8, 8, 8, 0.9) 55%),
    var(--bg-card);
  box-shadow: 0 0 0 1px rgba(232, 200, 114, 0.08), 0 12px 36px rgba(0, 0, 0, 0.35);
}
.fed-spotlight-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.fed-spotlight .fed-bullets { margin-bottom: 0; }
.fed-spotlight .fed-bullets li {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(232, 200, 114, 0.18);
}

/* Exec photo grid */
.fed-exec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .fed-exec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .fed-exec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fed-exec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease);
}
.fed-exec-card:hover { border-color: rgba(232, 200, 114, 0.35); }
.fed-exec-photo {
  aspect-ratio: 1;
  background: #0a0a0a;
  overflow: hidden;
}
.fed-exec-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fed-exec-meta {
  padding: 0.7rem 0.75rem 0.8rem;
}
.fed-exec-meta strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.fed-exec-meta span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Textes list */
.fed-docs {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.fed-doc {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.95rem 1rem;
  background: rgba(8, 8, 8, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.fed-doc h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.fed-doc p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  max-width: 48ch;
}
.fed-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.fed-doc-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  white-space: nowrap;
}

/* Contacts inline */
.fed-contacts {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
}
.fed-contacts a {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Coming soon
   -------------------------------------------------------------------------- */
.coming-soon {
  padding: 4.5rem 0 5.5rem;
  text-align: center;
}
.coming-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(232, 200, 114, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gold);
}
.coming-soon h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin-bottom: 0.7rem;
  font-weight: 750;
}
.coming-soon p {
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #070707;
  border-top: 1px solid var(--border);
  padding: 1.85rem 0 1.6rem;
  margin-top: auto;
}
.footer-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}
.footer-name {
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--text);
}
.footer-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 42ch;
}
.footer-powered {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}
.footer-powered .yeloball,
.footer-powered .engine,
.teaser-powered .yeloball,
.teaser-powered .engine {
  color: var(--gold);
  font-weight: 650;
}
.footer-powered .cue,
.teaser-powered .cue {
  color: #fff;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   YeloBall Chat (YB) — mid-right, glass panel
   -------------------------------------------------------------------------- */
.yb-root {
  position: fixed;
  top: 50%;
  right: 1rem;
  bottom: auto;
  transform: translateY(-50%);
  z-index: var(--chat-z);
  font-family: var(--font);
}
.yb-launcher {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8c872;
  border: 2.5px solid #1a7a4c;
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(232, 200, 114, 0.35), 0 0 0 0 rgba(26, 122, 76, 0.25);
  animation: yb-pulse 4.5s ease-in-out infinite;
  transition: box-shadow var(--ease), filter 0.2s ease, background 0.2s ease;
  will-change: transform;
}
.yb-launcher:hover {
  background: #f0d78a;
  filter: brightness(1.05);
}
.yb-launcher[aria-expanded="true"] {
  animation: none;
  box-shadow: 0 8px 28px rgba(232, 200, 114, 0.4);
}
.yb-launcher.is-bouncing {
  animation: yb-bounce-cycle 1.65s cubic-bezier(0.34, 1.4, 0.64, 1) 1;
}
.yb-launcher .yb-mono {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #050505;
  text-shadow: none;
}
@keyframes yb-pulse {
  0%, 70%, 100% {
    box-shadow: 0 8px 28px rgba(232, 200, 114, 0.35), 0 0 0 0 rgba(26, 122, 76, 0);
  }
  85% {
    box-shadow: 0 8px 28px rgba(232, 200, 114, 0.4), 0 0 0 10px rgba(26, 122, 76, 0.22);
  }
}
/* Drop + bounce attention cycle (periodic, not constant) */
@keyframes yb-bounce-cycle {
  0%   { transform: translateY(0); }
  18%  { transform: translateY(42px); }
  32%  { transform: translateY(-10px); }
  44%  { transform: translateY(18px); }
  56%  { transform: translateY(-6px); }
  68%  { transform: translateY(8px); }
  80%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.yb-panel {
  display: none;
  position: absolute;
  bottom: auto;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%);
  width: min(360px, calc(100vw - 5rem));
  max-height: min(560px, calc(100vh - 4rem));
  background: rgba(14, 14, 14, 0.78);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(160, 160, 160, 0.4);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  flex-direction: column;
}
.yb-panel.is-open {
  display: flex;
}
.yb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(26, 122, 76, 0.16), transparent);
  border-bottom: 1px solid rgba(140, 140, 140, 0.28);
}
.yb-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.yb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8c872;
  border: 2px solid #1a7a4c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.yb-avatar span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #050505;
}
.yb-header-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.yb-header-title span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  margin-top: 0.1rem;
}
.yb-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}
.yb-close:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}
.yb-body {
  padding: 0.9rem 1rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 200px;
  max-height: 280px;
}
.yb-msg {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
}
.yb-msg.bot {
  align-self: flex-start;
  background: rgba(22, 22, 22, 0.85);
  border: 1px solid rgba(140, 140, 140, 0.28);
  color: #cfcfcf;
  border-bottom-left-radius: 4px;
}
.yb-msg.bot a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.yb-msg.user {
  align-self: flex-end;
  background: var(--green-soft);
  border: 1px solid rgba(26, 122, 76, 0.35);
  color: var(--text);
  border-bottom-right-radius: 4px;
}
.yb-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.6);
}
.yb-quick button {
  padding: 0.42rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(232, 200, 114, 0.4);
  border-radius: 999px;
  background: var(--gold-soft);
  transition: background var(--ease), border-color var(--ease);
  font-family: inherit;
  cursor: pointer;
}
.yb-quick button:hover {
  background: rgba(232, 200, 114, 0.2);
  border-color: var(--gold);
  color: #f0d78a;
}
.yb-compose {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(140, 140, 140, 0.3);
  background: rgba(10, 10, 10, 0.45);
}
.yb-input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(8, 8, 8, 0.7);
  border: 1px solid rgba(150, 150, 150, 0.4);
  border-radius: 999px;
  outline: none;
}
.yb-input::placeholder { color: #7a7a7a; }
.yb-input:focus {
  border-color: rgba(232, 200, 114, 0.55);
  box-shadow: 0 0 0 2px rgba(232, 200, 114, 0.12);
}
.yb-send {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(26, 122, 76, 0.65);
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.2s ease;
}
.yb-send:hover { background: var(--green-hover); }
.yb-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(140, 140, 140, 0.22);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.03em;
}
.yb-footer span { color: var(--gold); font-weight: 600; }

@media (max-width: 640px) {
  .yb-root {
    top: auto;
    bottom: 1rem;
    right: 0.85rem;
    transform: none;
  }
  .yb-panel {
    top: auto;
    bottom: calc(100% + 10px);
    right: 0;
    transform: none;
    width: min(340px, calc(100vw - 1.5rem));
  }
  .yb-launcher {
    width: 52px;
    height: 52px;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
