/* ==========================================================================
   Tour de France 2026 · style
   DH Les Sports+ · Cyclisme
   Marque : #e2001a (rouge DH) · noir charbon #101014 · papier #f6f5f2
   Types d'etape : clm #ffcc00 · plaine #1b9e57 · accidentee #5f6b80 · montagne #e2001a
   Zero caractere em-dash dans tout le fichier.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Polices auto-hébergées (aucun CDN Google)
   Oswald · titres / Average Sans · texte / Inconsolata · labels, data
   -------------------------------------------------------------------------- */
@font-face { font-family:'Oswald'; font-style:normal; font-weight:500;
  font-display:swap; src:url('fonts/oswald-latin-500-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:500;
  font-display:swap; src:url('fonts/oswald-latin-ext-500-normal.woff2') format('woff2'); unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:600;
  font-display:swap; src:url('fonts/oswald-latin-600-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:600;
  font-display:swap; src:url('fonts/oswald-latin-ext-600-normal.woff2') format('woff2'); unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:700;
  font-display:swap; src:url('fonts/oswald-latin-700-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:700;
  font-display:swap; src:url('fonts/oswald-latin-ext-700-normal.woff2') format('woff2'); unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family:'Average Sans'; font-style:normal; font-weight:400;
  font-display:swap; src:url('fonts/average-sans-latin-400-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family:'Average Sans'; font-style:normal; font-weight:400;
  font-display:swap; src:url('fonts/average-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family:'Inconsolata'; font-style:normal; font-weight:400;
  font-display:swap; src:url('fonts/inconsolata-latin-400-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family:'Inconsolata'; font-style:normal; font-weight:400;
  font-display:swap; src:url('fonts/inconsolata-latin-ext-400-normal.woff2') format('woff2'); unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Inconsolata'; font-style:normal; font-weight:700;
  font-display:swap; src:url('fonts/inconsolata-latin-700-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family:'Inconsolata'; font-style:normal; font-weight:700;
  font-display:swap; src:url('fonts/inconsolata-latin-ext-700-normal.woff2') format('woff2'); unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; }

/* --------------------------------------------------------------------------
   Jetons de thème
   -------------------------------------------------------------------------- */
:root {
  --ink: #101014;            /* sombre fixe : topbar, hero, footer */
  --red: #e2001a;            /* marque DH + montagne */
  --red-deep: #b30015;
  --jaune: #ffcc00;          /* contre-la-montre */
  --jaune-deep: #e0a900;
  --vert: #1b9e57;           /* plaine */
  --ardoise: #5f6b80;        /* accidentée */
  --pois: #e2001a;

  --display: 'Oswald', 'Helvetica Neue', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Average Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Inconsolata', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --top: 58px;
  --maxw: 1320px;
  --rail-w: 64px;

  /* clair (défaut) */
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efeeea;
  --text: #101014;
  --muted: #5b5b60;
  --line: #e0dfda;
  --shadow: rgba(16,16,20,.12);
}

html[data-theme="dark"] {
  --bg: #121215;
  --surface: #1c1c21;
  --surface-2: #17171b;
  --text: #f2f1ed;
  --muted: #a3a3aa;
  --line: #2c2c33;
  --shadow: rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap;
  padding: 0 clamp(14px, 3vw, 34px);
  background: var(--ink); color: #fff;
  border-bottom: 3px solid var(--red);
}
.topbar-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
/* Logo DH Les Sports+ : version blanche fournie, aucun filtre necessaire */
.topbar-brand img { height: 26px; width: auto; display: block; }
.brand-sep { opacity: .5; }
.brand-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); filter: brightness(1.6); }

.topbar-nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: nowrap; }
.topbar-nav a {
  font-family: var(--mono); text-decoration: none; font-size: 13px; letter-spacing: .04em;
  color: #d5d4d8; padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.topbar-nav a:hover { color: #fff; border-bottom-color: var(--red); }

.topbar-sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); }

.topbar-tools { display: inline-flex; align-items: center; gap: 14px; }
.dateday, .clock { font-family: var(--mono); font-size: 13px; color: #d5d4d8; }
.clock { font-weight: 700; color: #fff; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--jaune);
  transition: border-color .2s ease, transform .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--red); transform: rotate(18deg); }
.theme-toggle .ico { width: 17px; height: 17px; }
.theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle { color: #fff; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: inline-block; }

/* Icones SVG inline */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }


/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--top));
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  text-align: center;
}
.hero-media { position: absolute; inset: 0; pointer-events: none; }
.hero-photo {
  position: absolute; inset: 0;
  background: url('img/hero.jpg') center 30% / cover no-repeat;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(16,16,20,.72) 0%, rgba(16,16,20,.55) 45%, rgba(16,16,20,.88) 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: .1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 8.333% 120px; /* grille 12 colonnes, clin d'oeil Muller-Brockmann */
}
.hero-ribbon {
  position: absolute; left: -12%; width: 124%; height: 130px;
  background: var(--jaune); transform: rotate(-7deg);
  box-shadow: 0 18px 60px rgba(255,204,0,.3);
}
.hero-ribbon--1 { top: 12%; opacity: .9; }

.hero-inner { position: relative; z-index: 2; max-width: 1040px; padding: clamp(56px, 9vh, 110px) 22px; }

.hero-eyebrow {
  margin: 0 0 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--jaune);
}
.hero-title { margin: 0 0 18px; line-height: .92; text-transform: uppercase; font-family: var(--display); }
.hero-title-top {
  display: block; font-weight: 700; letter-spacing: .01em;
  font-size: clamp(44px, 9.5vw, 122px);
  color: #fff; text-shadow: 6px 6px 0 var(--red);
}
.hero-title-year {
  display: block; font-weight: 700;
  font-size: clamp(70px, 15vw, 210px);
  color: transparent; -webkit-text-stroke: 3px #fff; letter-spacing: .04em;
}
.hero-lede { margin: 0 auto 12px; max-width: 640px; font-size: clamp(16px, 2vw, 19px); color: #e8e7e3; }
.hero-lede--seo { font-size: 14px; color: #b9b8bd; max-width: 760px; }

.hero-stats { list-style: none; margin: 26px 0 30px; padding: 0; display: flex; gap: clamp(18px, 4vw, 54px); justify-content: center; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 44px); color: var(--jaune); line-height: 1; }
.stat-lab { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #b9b8bd; margin-top: 6px; }

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--red); color: #fff; border: 2px solid var(--red);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.hero-cta:hover { transform: translateY(-3px); background: var(--red-deep); border-color: var(--red-deep); }
.hero-cta--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero-cta--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero-scrollcue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scrollcue span {
  display: block; width: 2px; height: 44px; background: rgba(255,255,255,.5);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --------------------------------------------------------------------------
   Section etapes · stacked cards
   -------------------------------------------------------------------------- */
.etapes { padding: clamp(60px, 9vh, 110px) 0 0; }
.etapes-head { max-width: 860px; margin: 0 auto; padding: 0 22px; text-align: center; }
.etapes-eyebrow, .favoris-eyebrow, .classement-eyebrow, .equipes-eyebrow, .maillots-eyebrow, .pratique-eyebrow {
  margin: 0 0 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--red);
}
.etapes-head h2, .favoris-head h2, .classement-head h2, .equipes-head h2, .articles-head h2, .maillots-head h2, .pratique-head h2 {
  margin: 0 0 14px; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 4.4vw, 46px); line-height: 1.05; letter-spacing: .01em;
}
.etapes-sub { margin: 0 auto 8px; max-width: 720px; color: var(--muted); font-size: 16px; }
.etapes-hint { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 991px) { .etapes-hint { display: none; } }

/* Zone d'empilement : cartes a gauche, rail a droite */
.stack-zone {
  position: relative;
  max-width: var(--maxw);
  margin: clamp(30px, 5vh, 60px) auto 0;
  padding: 0 clamp(14px, 2.5vw, 30px);
  display: grid;
  grid-template-columns: 1fr var(--rail-w);
  gap: 0 18px;
}
.stack-wrap { grid-column: 1; min-width: 0; }

/* Chaque slot fait la place de defilement d'une carte */
.stage-slot { position: relative; }
.stage-slot + .stage-slot { margin-top: 4vh; }

.stage-card {
  position: sticky;
  top: calc(var(--top) + 18px);
  min-height: calc(100vh - var(--top) - 44px);
  display: flex; flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 24px 70px var(--shadow);
  transform-origin: top center;
  will-change: transform, filter;
}

/* Couleur pleine par type d'etape */
.stage-card[data-type="montagne"]   { background: var(--red);     --card-ink: #ffffff; --card-soft: rgba(255,255,255,.16); --card-mut: rgba(255,255,255,.78); }
.stage-card[data-type="plaine"]     { background: var(--vert);    --card-ink: #ffffff; --card-soft: rgba(255,255,255,.16); --card-mut: rgba(255,255,255,.8); }
.stage-card[data-type="accidentee"] { background: var(--ardoise); --card-ink: #ffffff; --card-soft: rgba(255,255,255,.15); --card-mut: rgba(255,255,255,.8); }
.stage-card[data-type="clm"]        { background: var(--jaune);   --card-ink: #101014; --card-soft: rgba(16,16,20,.1);    --card-mut: rgba(16,16,20,.68); color: var(--ink); }

/* Filigrane : enorme numero d'etape en fond */
.stage-watermark {
  position: absolute; right: -0.06em; bottom: -0.22em; z-index: 0;
  font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(200px, 34vw, 480px);
  color: transparent; -webkit-text-stroke: 2px var(--card-soft);
  pointer-events: none; user-select: none;
}

.stage-top {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: clamp(18px, 2.6vw, 30px) clamp(18px, 3vw, 36px) 0;
}
.stage-id { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.stage-num {
  font-family: var(--display); font-weight: 700; line-height: .85;
  font-size: clamp(54px, 7vw, 104px); letter-spacing: -.01em;
}
.stage-titles { min-width: 0; }
.stage-jour { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--card-mut); }
.stage-villes {
  margin: 2px 0 0; font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 34px); line-height: 1.05;
}
.stage-villes .fleche { opacity: .6; padding: 0 .18em; }
.stage-badge {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--card-soft);
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.stage-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stage-badge .sommet { font-size: 11px; opacity: .85; }

.stage-body {
  position: relative; z-index: 1; flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(14px, 2.4vw, 30px);
  padding: clamp(14px, 2vw, 24px) clamp(18px, 3vw, 36px) clamp(18px, 2.6vw, 30px);
}

/* Colonne infos */
.stage-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.stage-metrics { display: flex; gap: clamp(12px, 1.6vw, 26px); flex-wrap: wrap; }
.metric { display: flex; flex-direction: column; }
.metric b { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 34px); line-height: 1; }
.metric span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--card-mut); margin-top: 4px; }

.stage-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: -2px 0 0; padding: 0; list-style: none; }
.stage-tags li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px; background: var(--card-soft);
}

.stage-cols { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.stage-cols-title, .stage-avis-title {
  margin: 4px 0 2px; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--card-mut);
}
.stage-cols li { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; line-height: 1.35; }
.col-cat {
  flex: none; min-width: 28px; text-align: center;
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  padding: 2px 5px; border-radius: 4px; background: var(--card-soft);
}
.col-cat--hc { background: var(--card-ink); color: var(--ink); }
.stage-card[data-type="clm"] .col-cat--hc { background: var(--ink); color: #fff; }
.col-nom { min-width: 0; }
.col-pente { margin-left: auto; flex: none; font-family: var(--mono); font-size: 12px; color: var(--card-mut); white-space: nowrap; }

.stage-avis { margin: 0; font-size: clamp(13.5px, 1.15vw, 15.5px); line-height: 1.5; }
.stage-avis::before { content: '\201C'; font-family: var(--display); font-weight: 700; font-size: 1.5em; line-height: 0; vertical-align: -0.32em; margin-right: 4px; opacity: .7; }
.stage-avis-sign { margin: 2px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--card-mut); }

.stage-anecdote {
  margin: 0; padding: 10px 14px; border-left: 3px solid var(--card-ink);
  background: var(--card-soft); border-radius: 0 10px 10px 0;
  font-size: 13px; line-height: 1.45;
}
.stage-anecdote b { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; display: block; margin-bottom: 3px; color: var(--card-mut); }

/* Colonne carte + profil */
.stage-visu { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.stage-map {
  flex: 1 1 58%; min-height: 180px; position: relative;
  background: var(--card-soft); border-radius: 16px; overflow: hidden;
}
.stage-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-caption {
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--card-mut);
}
.stage-profile {
  flex: 1 1 42%; min-height: 130px; position: relative;
  background: var(--card-soft); border-radius: 16px; overflow: hidden;
}
.stage-profile svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.profil-tip {
  position: absolute; top: 8px; left: 12px; pointer-events: none;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  opacity: 0; transition: opacity .15s ease;
}
.stage-profile:hover .profil-tip, .stage-profile.is-touched .profil-tip { opacity: 1; }

/* Carte de repos glissee entre deux etapes */
.rest-card {
  position: relative; z-index: 1;
  max-width: 560px; margin: 4vh auto 0;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-radius: 999px;
  background: var(--surface); border: 1px dashed var(--line);
  color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
}
.rest-card .ico { width: 18px; height: 18px; flex: none; color: var(--red); }

/* Rail des etapes */
.stage-rail {
  grid-column: 2;
  position: sticky; top: calc(var(--top) + 6vh);
  align-self: start;
  height: calc(100vh - var(--top) - 12vh);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 6px 0;
}
.rail-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--line); transform: translateX(-50%); z-index: 0; }
.rail-dot {
  position: relative; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface); color: var(--muted);
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.rail-dot:hover { transform: scale(1.2); border-color: var(--red); color: var(--red); }
.rail-dot.is-active { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.24); }
.rail-dot--clm.is-active { background: var(--jaune); border-color: var(--jaune); color: var(--ink); }
.rail-dot--plaine.is-active { background: var(--vert); border-color: var(--vert); }
.rail-dot--accidentee.is-active { background: var(--ardoise); border-color: var(--ardoise); }

@media (max-width: 991px) {
  .stack-zone { grid-template-columns: 1fr; }
  .stage-rail { display: none; }
  .stage-card { position: relative; top: auto; min-height: 0; }
  .stage-slot { min-height: 0 !important; }
  .stage-slot + .stage-slot { margin-top: 18px; }
  .stage-body { grid-template-columns: 1fr; }
  .stage-map { min-height: 220px; }
  .stage-profile { min-height: 150px; }
  .stage-watermark { font-size: 180px; }
}

/* --------------------------------------------------------------------------
   Favoris · cover flow
   -------------------------------------------------------------------------- */
.favoris { padding: clamp(70px, 10vh, 130px) 0; background: var(--ink); color: #fff; overflow: hidden; }
.favoris-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.favoris-head { text-align: center; max-width: 820px; margin: 0 auto clamp(26px, 5vh, 50px); }
.favoris-sub { margin: 0 auto; color: #b9b8bd; font-size: 16px; max-width: 720px; }

.coverflow { position: relative; outline: none; }
.coverflow-stage {
  position: relative; height: clamp(460px, 60vh, 580px);
  perspective: 1400px; perspective-origin: 50% 45%;
}
.cf-card {
  position: absolute; top: 0; left: 50%;
  width: clamp(250px, 26vw, 320px); height: 100%;
  margin-left: calc(clamp(250px, 26vw, 320px) / -2);
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #232329 0%, #141418 100%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  transition: transform .5s cubic-bezier(.22,.8,.26,1), opacity .5s ease, filter .5s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.cf-card.is-center { cursor: default; }
.cf-card::after { /* reflet, clin d'oeil Cover Flow */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(255,255,255,.14) 0%, transparent 34%);
  pointer-events: none;
}
.cf-band { height: 7px; flex: none; }
.cf-card--jaune .cf-band { background: var(--jaune); }
.cf-card--vert  .cf-band { background: var(--vert); }
.cf-card--pois  .cf-band { background: repeating-linear-gradient(45deg, #fff 0 8px, var(--red) 8px 16px); }
.cf-card--blanc .cf-band { background: #fff; }
.cf-card--noir  .cf-band { background: var(--red); }

.cf-head { padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cf-flag { font-size: 26px; line-height: 1; }
.cf-statut { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--jaune); text-align: right; }
.cf-portrait {
  margin: 12px 20px 0; height: 105px; border-radius: 12px;
  background: radial-gradient(circle at 50% 20%, rgba(226,0,26,.45), transparent 65%), #1a1a1f;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 52px; color: rgba(255,255,255,.2);
  background-size: cover; background-position: center 22%;
}
.cf-nom { margin: 14px 20px 2px; font-family: var(--display); font-weight: 700; font-size: 25px; text-transform: uppercase; line-height: 1.02; }
.cf-equipe { margin: 0 20px; font-family: var(--mono); font-size: 11.5px; color: #a3a3aa; letter-spacing: .04em; }
.cf-stats { list-style: none; margin: 14px 20px 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 6px; }
.cf-stats li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.cf-stats .l { color: #a3a3aa; }
.cf-stats .v { font-family: var(--mono); font-weight: 700; }
.cf-atout { margin: 11px 20px 16px; font-size: 12px; line-height: 1.45; color: #cfcfd4; }

.coverflow-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 26px; }
.cf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 2px solid rgba(255,255,255,.3); color: #fff;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cf-btn:hover { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.cf-dots { display: flex; gap: 9px; }
.cf-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.25); transition: background .2s ease, transform .2s ease; }
.cf-dot.is-active { background: var(--red); transform: scale(1.35); }

@media (max-width: 767px) {
  .coverflow-stage { height: 500px; perspective: 900px; }
  .cf-card { width: 272px; margin-left: -136px; }
}

/* --------------------------------------------------------------------------
   Classement 2025
   -------------------------------------------------------------------------- */
.classement { padding: clamp(70px, 10vh, 130px) 0; }
.classement-inner { max-width: 900px; margin: 0 auto; padding: 0 22px; }
.classement-head { text-align: center; margin-bottom: clamp(24px, 4vh, 42px); }
.classement-sub { margin: 0 auto; color: var(--muted); max-width: 680px; font-size: 16px; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin: 0 auto 34px; max-width: 640px; }
.podium-step { text-align: center; }
.podium-name { font-family: var(--display); font-weight: 700; font-size: clamp(15px, 2vw, 20px); text-transform: uppercase; line-height: 1.1; }
.podium-time { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.podium-block {
  margin-top: 10px; border-radius: 10px 10px 0 0;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 3px solid var(--red);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 8px;
  font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--muted);
}
.podium-step--1 .podium-block { height: 110px; background: var(--jaune); border-color: var(--jaune-deep); color: var(--ink); }
.podium-step--2 .podium-block { height: 78px; }
.podium-step--3 .podium-block { height: 58px; }
.podium-flag { font-size: 22px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.tab-btn {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab-btn:hover { border-color: var(--red); color: var(--red); }
.tab-btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.standings-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.standings { width: 100%; border-collapse: collapse; }
.standings tr { border-bottom: 1px solid var(--line); }
.standings tr:last-child { border-bottom: 0; }
.standings tr.is-hidden { display: none; }
.standings td { padding: 13px 16px; font-size: 14.5px; vertical-align: middle; }
.standings .td-rank { width: 46px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--red); text-align: center; }
.standings tr:first-child .td-rank { color: var(--jaune-deep); }
.standings .td-flag { width: 34px; font-size: 18px; }
.standings .td-name b { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.standings .td-name span { display: block; font-size: 12px; color: var(--muted); }
.standings .td-val { text-align: right; font-family: var(--mono); font-weight: 700; font-size: 14px; white-space: nowrap; }

.standings-more { text-align: center; margin-top: 18px; }
.more-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  padding: 12px 26px; border-radius: 999px;
  background: var(--red); border: 2px solid var(--red); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.more-btn:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); }
.more-btn.ghost { background: transparent; color: var(--red); }
.more-btn.ghost:hover { background: var(--red); color: #fff; }

/* --------------------------------------------------------------------------
   Equipes · cartes iD
   -------------------------------------------------------------------------- */
.equipes { padding: clamp(70px, 10vh, 130px) 0; background: var(--surface-2); }
.equipes-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.equipes-head { text-align: center; max-width: 860px; margin: 0 auto clamp(26px, 5vh, 48px); }
.equipes-sub { margin: 0 auto; color: var(--muted); font-size: 16px; }

.equipes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.team-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 30px var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px var(--shadow); }
.team-card--belge { border-top: 4px solid var(--red); }
.team-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px dashed var(--line);
}
.team-maillot {
  flex: none; width: 44px; height: 52px; border-radius: 8px;
  background: var(--surface-2) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.team-names { min-width: 0; flex: 1; }
.team-nom { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; line-height: 1.06; }
.team-meta { margin: 3px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.team-stars { color: var(--jaune-deep); letter-spacing: 2px; font-size: 11px; }
.team-belge-pill {
  flex: none; align-self: flex-start;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em;
  padding: 4px 9px; border-radius: 999px; background: var(--red); color: #fff;
}
.team-note { margin: 0; padding: 10px 18px 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.team-riders { list-style: none; margin: 10px 0 0; padding: 8px 18px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.team-riders li { font-size: 12.5px; line-height: 1.35; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.team-riders li.is-leader b { color: var(--red); }
.team-riders li b { font-weight: 700; font-family: inherit; }
.team-riders .b-flag { flex: none; font-size: 11px; }
.team-riders li.is-belge { font-weight: 700; }
.belge-pill {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 2px 9px 2px 6px; border-radius: 12px;
  background: rgba(226,0,26,.09); border: 1px solid rgba(226,0,26,.35);
  font-size: 12px; line-height: 1.3; white-space: normal;
}
html[data-theme="dark"] .belge-pill { background: rgba(226,0,26,.16); border-color: rgba(226,0,26,.5); }

@media (max-width: 480px) { .team-riders { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Articles DH
   -------------------------------------------------------------------------- */
.articles { padding: clamp(70px, 10vh, 130px) 0; }
.articles-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.articles-head { text-align: center; max-width: 900px; margin: 0 auto clamp(24px, 4vh, 42px); }
.articles-head p { color: var(--muted); margin: 0; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
.article-card {
  display: flex; flex-direction: column; text-decoration: none;
  border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.article-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px var(--shadow); }
.article-img { aspect-ratio: 16/9; background: var(--surface-2) center/cover no-repeat; }
.article-body { padding: 16px 18px 20px; }
.article-kicker { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.article-title { margin: 8px 0 0; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.22; }
.articles-more { text-align: center; margin-top: 30px; }

/* --------------------------------------------------------------------------
   Maillots + records belges
   -------------------------------------------------------------------------- */
.maillots { padding: clamp(70px, 10vh, 130px) 0; background: var(--ink); color: #fff; }
.maillots-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.maillots-head { text-align: center; max-width: 820px; margin: 0 auto clamp(26px, 5vh, 50px); }
.maillots-sub { margin: 0 auto; color: #b9b8bd; font-size: 16px; }

.maillots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.maillot-card {
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,.1); background: #17171c;
}
.maillot-visu {
  height: 110px; display: flex; align-items: center; justify-content: center; position: relative;
}
.maillot-visu .ico-shirt { width: 54px; height: 54px; }
.maillot-card--jaune .maillot-visu { background: var(--jaune); color: rgba(16,16,20,.85); }
.maillot-card--vert  .maillot-visu { background: var(--vert); color: rgba(255,255,255,.92); }
.maillot-card--pois  .maillot-visu { background: #fff; color: var(--red);
  background-image: radial-gradient(var(--red) 12%, transparent 13%);
  background-size: 34px 34px; background-position: 0 0; }
.maillot-card--pois .maillot-visu .ico-shirt { background: #fff; border-radius: 14px; padding: 4px 8px; box-sizing: content-box; }
.maillot-card--blanc .maillot-visu { background: #f1f1f3; color: rgba(16,16,20,.7); }
.maillot-depuis {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .1em;
  padding: 3px 9px; border-radius: 999px; background: rgba(16,16,20,.8); color: #fff;
}
.maillot-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.maillot-nom { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; line-height: 1; }
.maillot-sub { margin: -8px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a3a3aa; }
.maillot-origine { margin: 0; font-size: 13.5px; line-height: 1.5; color: #cfcfd4; }
.maillot-chiffres { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 8px; }
.maillot-chiffres li { display: flex; align-items: baseline; gap: 12px; font-size: 13px; line-height: 1.35; color: #cfcfd4; }
.maillot-chiffres b { flex: none; min-width: 52px; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; color: #fff; text-align: right; }
.maillot-card--jaune .maillot-chiffres b { color: var(--jaune); }
.maillot-card--vert  .maillot-chiffres b { color: var(--vert); filter: brightness(1.35); }
.maillot-card--pois  .maillot-chiffres b { color: var(--red); filter: brightness(1.4); }
.maillot-belge { margin: auto 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(226,0,26,.14); border-left: 3px solid var(--red); font-size: 12.5px; line-height: 1.45; color: #e8e7e3; }

/* Encart Van Impe 50 ans */
.vanimpe {
  margin-top: 22px; border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: 170px 1fr;
  background: var(--red); color: #fff;
}
.vanimpe-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: rgba(0,0,0,.18);
  font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1;
}
.vanimpe-badge span:last-child { color: var(--jaune); }
.vanimpe-body { padding: 22px 26px; }
.vanimpe-body h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 27px); text-transform: uppercase; line-height: 1.08; }
.vanimpe-body p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.92); max-width: 900px; }
@media (max-width: 640px) { .vanimpe { grid-template-columns: 1fr; } .vanimpe-badge { flex-direction: row; gap: 12px; padding: 12px; font-size: 30px; } }

/* Bandeau chiffres belges */
.belges-band { margin-top: 22px; padding: 24px 26px; border-radius: 18px; background: #17171c; border: 1px solid rgba(255,255,255,.1); }
.belges-title { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #a3a3aa; text-align: center; }
.belges-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.belges-stats li { text-align: center; }
.belges-stats b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--jaune); }
.belges-stats span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: #cfcfd4; }

/* --------------------------------------------------------------------------
   Pratique
   -------------------------------------------------------------------------- */
.pratique { padding: clamp(60px, 9vh, 110px) 0; }
.pratique-inner { max-width: 820px; margin: 0 auto; padding: 0 22px; text-align: center; }
.pratique-body p { margin: 0 auto; max-width: 720px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.pratique-body strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.foot { padding: 40px 22px 90px; background: var(--ink); color: #b9b8bd; text-align: center; border-top: 3px solid var(--red); }
.foot p { margin: 0 0 8px; font-size: 13px; }
.foot-logo { height: 30px; width: auto; display: block; margin: 0 auto 14px; }
.foot-credit { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.foot-note { max-width: 680px; margin-left: auto !important; margin-right: auto !important; }
.foot-author a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--red); }
.foot-author a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Curseur personnalisé (rouge)
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  body, a, button, .rail-dot, .cf-card, .tab-btn, .cf-dot, .theme-toggle, .more-btn { cursor: none; }
}
.cursor-dot {
  position: fixed; z-index: 9999; top: 0; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); opacity: .85; pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .15s ease, height .15s ease, opacity .2s ease;
}
.cursor-dot.is-grow { width: 34px; height: 34px; opacity: .55; }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* --------------------------------------------------------------------------
   Tab bar mobile
   -------------------------------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: none;
  background: var(--ink); border-top: 2px solid var(--red);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: #9a99a0;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase;
}
.tabbar a .ico { width: 17px; height: 17px; }
.tabbar a.is-active { color: var(--red); filter: brightness(1.5); }
@media (max-width: 991px) { .tabbar { display: flex; } .foot { padding-bottom: 120px; } }

/* --------------------------------------------------------------------------
   Reveal au scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stage-card { transition: none !important; }
  .cf-card { transition: none; }
  .hero-scrollcue { display: none; }
  * { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Responsive divers
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) { .topbar-nav { display: none; } .topbar-sep { display: none; } }
@media (max-width: 640px) {
  .dateday { display: none; }
  .hero-title-top { text-shadow: 3px 3px 0 var(--red); }
  .stage-top { flex-direction: column; }
  .stage-badge { align-self: flex-start; }
  .col-pente { display: none; }
}
