/* =========================================================
   Stéphane Tribaudini — feuille de style
   Palette tirée du logo : orange #ff4a00 / bleu #0a7fc4
   ========================================================= */
:root {
  --bg: #08090b;
  --bg-2: #0f1114;
  --bg-3: #16191d;
  --ink: #f1efe9;
  --ink-2: #a9a8a3;
  --ink-3: #6b6c6f;
  --line: rgba(241, 239, 233, .12);
  --orange: #ff4a00;
  --orange-2: #ff7a3d;
  --blue: #0a7fc4;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--orange); color: #000; padding: 8px 14px; }

/* Grain discret par-dessus tout */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 150; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typo de section ---------- */
.eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 600;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-title {
  font-weight: 850; font-stretch: 112%; font-style: italic; text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: .92; letter-spacing: -.02em;
}
.section-lead { color: var(--ink-2); max-width: 46ch; margin-top: 24px; font-size: 1.1rem; }

/* ---------- Boutons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border: 0; cursor: pointer;
  font: 700 .82rem/1 var(--display); font-stretch: 110%; letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform .4s var(--ease), background .3s, color .3s;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--orange); color: #0a0a0a; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateX(-101%) skewX(-20deg); transform-origin: left; transition: transform .5s var(--ease);
}
.btn-primary:hover::after { transform: translateX(0) skewX(0); }
.btn > * , .btn { isolation: isolate; }
.btn-primary { z-index: 0; }
.btn-primary::after { z-index: -1; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(241, 239, 233, .08); }
.btn:active { transform: scale(.97); }
.link-arrow { font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.link-arrow::after { content: "→"; color: var(--orange); transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Feux de départ ---------- */
.lights { display: none; }
html.intro .lights {
  animation: lights-failsafe .4s 5s forwards;
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 28px;
}
.lights-row { display: flex; gap: clamp(10px, 2.4vw, 22px); }
.lights-row span {
  width: clamp(34px, 7vw, 64px); aspect-ratio: 1; border-radius: 50%;
  background: #1c1416; box-shadow: inset 0 0 0 3px #26292e;
  transition: background .08s, box-shadow .08s;
}
.lights-row span.on { background: #ff1d1d; box-shadow: 0 0 40px 6px rgba(255, 29, 29, .55), inset 0 0 0 3px #ff5a5a; }
.lights-label { font-family: var(--mono); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.lights.done { pointer-events: none; }
@keyframes lights-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px; padding: 18px var(--pad);
  transition: background .4s, padding .4s var(--ease), transform .5s var(--ease);
}
.nav.scrolled { background: rgba(8, 9, 11, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links > a, .nav-drop-btn {
  font: 600 .8rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: none; border: 0; padding: 8px 0; cursor: pointer; position: relative;
}
.nav-links > a::after, .nav-drop-btn::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--orange);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links > a:hover::after, .nav-drop:hover .nav-drop-btn::after, .nav-drop-btn[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 200px; padding: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .3s var(--ease);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop-btn[aria-expanded="true"] + .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { display: block; padding: 10px 12px; font-weight: 700; font-style: italic; text-transform: uppercase; font-stretch: 110%; }
.nav-drop-menu a:hover { background: var(--bg-3); color: var(--orange); }

.live-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  font: 700 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid rgba(255, 74, 0, .5); color: var(--ink); transition: background .3s;
}
.live-pill:hover { background: rgba(255, 74, 0, .14); }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); position: relative; }
.live-pill i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Ouverture ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: 120px var(--pad) clamp(40px, 7vh, 80px); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 70% 40%, transparent 0%, rgba(8, 9, 11, .6) 60%, var(--bg) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
}
.hero-portrait {
  position: absolute; z-index: -1; right: var(--pad); top: 11vh; width: min(52vw, 760px); aspect-ratio: 16 / 9;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); overflow: hidden;
}
.hero-portrait img { width: 100%; height: 115%; object-fit: cover; object-position: 60% 50%; filter: saturate(1.05) contrast(1.05); }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 11, .55), transparent 40%); }
.hero-text { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero-kicker { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--ink-2); font-weight: 600; letter-spacing: .04em; margin-bottom: 18px; }
.hero-kicker .mono { color: var(--orange); }
.hero-title {
  font-weight: 900; font-style: italic; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(2.2rem, 11vw, 11.5rem); line-height: .84; letter-spacing: -.035em;
}
.hero-title .line { display: block; overflow: hidden; padding: .14em .06em .04em 0; margin-top: -.14em; }
.hero-title .word { display: inline-block; }
.hero-title .outline .word { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero-sub { margin-top: 28px; max-width: 40ch; color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-scroll { position: absolute; right: var(--pad); bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink-3); }
.hero-scroll .mono { writing-mode: vertical-rl; }
.hero-scroll i { width: 1px; height: 60px; background: linear-gradient(var(--orange), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Bandeau ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker-track { display: flex; width: max-content; gap: 36px; align-items: center; padding: 22px 0; animation: tick 30s linear infinite; }
.ticker-track span { font-weight: 850; font-style: italic; font-stretch: 120%; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.4rem); white-space: nowrap; }
.ticker-track span:nth-of-type(2n) { color: transparent; -webkit-text-stroke: 1px var(--ink-2); }
.ticker-track b { color: var(--orange); font-size: 1.6rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Chiffres ---------- */
.stats { padding: clamp(80px, 14vh, 160px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: clamp(16px, 3vw, 40px); }
.stat:last-child { border-right: 0; }
.stat-num {
  font-weight: 900; font-stretch: 125%; font-style: italic; line-height: .9; letter-spacing: -.04em;
  font-size: clamp(4rem, 12vw, 10rem); font-variant-numeric: tabular-nums;
}
.stat-num sup { color: var(--orange); font-size: .45em; vertical-align: top; margin-left: 4px; }
.stat-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--ink-2); margin-top: 14px; }

/* ---------- Saison ---------- */
.season { padding-bottom: clamp(80px, 14vh, 160px); overflow: hidden; }
.season-head { margin-bottom: 56px; }
.season-rail { display: flex; gap: 16px; padding: 0 var(--pad); width: max-content; }
.champ {
  position: relative; flex: 0 0 auto; width: clamp(260px, 30vw, 400px); aspect-ratio: 4 / 5;
  padding: 28px; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.champ::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(255, 74, 0, .22));
  opacity: 0; transition: opacity .5s;
}
.champ:hover { border-color: rgba(255, 74, 0, .6); transform: translateY(-6px); }
.champ:hover::before { opacity: 1; }
.champ > * { position: relative; }
.champ-num { position: absolute; top: 18px; left: 22px; font: 900 italic clamp(5rem, 9vw, 8rem)/1 var(--display) !important; font-stretch: 125% !important; letter-spacing: -.04em !important; color: transparent; -webkit-text-stroke: 1px rgba(241, 239, 233, .22); transition: -webkit-text-stroke-color .4s; }
.champ:hover .champ-num { -webkit-text-stroke-color: var(--orange); }
.champ h3 { font-weight: 900; font-style: italic; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 3rem); line-height: .95; letter-spacing: -.02em; }
.champ p { color: var(--ink-2); margin-top: 10px; }
.champ-go { position: absolute; top: 22px; right: 26px; font-size: 1.6rem; color: var(--orange); transition: transform .4s var(--ease); }
.champ:hover .champ-go { transform: translateX(6px) rotate(-45deg); }
.champ-hot { background: var(--orange); color: #0a0a0a; border-color: var(--orange); }
.champ-hot p, .champ-hot .champ-go { color: #0a0a0a; }
.champ-hot .champ-num, .champ-hot:hover .champ-num { -webkit-text-stroke-color: rgba(0, 0, 0, .35); }
.champ-hot::before { background: linear-gradient(160deg, transparent 40%, rgba(0, 0, 0, .18)); }

/* ---------- Prochaine course ---------- */
.next { padding: clamp(80px, 14vh, 160px) 0; background: var(--bg-2); border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.next::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -20vw; background: radial-gradient(closest-side, rgba(10, 127, 196, .18), transparent); pointer-events: none; }
.next-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.next-meta { display: grid; gap: 10px; margin: 28px 0 36px; color: var(--ink-2); font-size: .85rem; }
.next-meta li { display: flex; gap: 12px; align-items: center; }
.next-meta li::before { content: ""; width: 8px; height: 8px; background: var(--orange); transform: skewX(-20deg); }
.track-svg { width: 100%; height: auto; overflow: visible; }
.track-base { fill: none; stroke: rgba(241, 239, 233, .12); stroke-width: 14; stroke-linejoin: round; }
.track-lap { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(255, 74, 0, .7)); }
.track-car { fill: var(--ink); filter: drop-shadow(0 0 10px #fff); }
.track-sector { display: flex; justify-content: space-between; margin-top: 18px; color: var(--ink-3); }
.track-sector span.lit { color: #b56cff; }

/* ---------- Actualités ---------- */
.news { padding: clamp(80px, 14vh, 160px) 0; }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-cover { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.35); }
.post-card:hover .post-cover img { transform: scale(1.06); filter: none; }
.post-date { color: var(--orange); margin-top: 6px; }
.post-card h3 { font-weight: 800; font-stretch: 108%; font-size: 1.45rem; line-height: 1.12; text-transform: uppercase; font-style: italic; letter-spacing: -.01em; transition: color .3s; }
.post-card:hover h3 { color: var(--orange); }
.post-card p { color: var(--ink-2); font-size: .98rem; }

/* ---------- Réseaux ---------- */
.social { padding: clamp(80px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
.social-list { margin-top: 48px; border-top: 1px solid var(--line); }
.social-list a {
  position: relative; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 16px;
  padding: 28px 0; border-bottom: 1px solid var(--line); overflow: hidden;
  font-weight: 900; font-style: italic; font-stretch: 120%; text-transform: uppercase; font-size: clamp(1.8rem, 5vw, 4rem); line-height: 1;
  transition: color .4s, padding .5s var(--ease);
}
.social-list a::before { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.social-list a { isolation: isolate; }
.social-list a:hover { color: #0a0a0a; padding-left: 20px; }
.social-list a:hover::before { transform: scaleY(1); }
.social-list .mono { color: var(--ink-3); font-style: normal; }
.social-list a:hover .mono, .social-list a:hover em { color: #0a0a0a; }
.social-list em { font: 400 .8rem var(--mono); letter-spacing: .1em; color: var(--ink-2); padding-right: 20px; }

/* ---------- Partenaires ---------- */
.partners { padding: clamp(60px, 10vh, 120px) 0; background: var(--ink); color: #0a0a0a; }
.partners .eyebrow { color: var(--orange); }
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(0, 0, 0, .14); }
.partner { padding: 36px 24px; border-right: 1px solid rgba(0, 0, 0, .14); display: flex; flex-direction: column; gap: 18px; }
.partner:last-child { border-right: 0; }
.partner img { height: 64px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s, transform .5s var(--ease); }
.partner:hover img { filter: none; opacity: 1; transform: translateY(-3px); }
.partner p { font-size: .9rem; color: #44454a; }

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 14vh, 160px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.contact-direct { margin-top: 36px; display: grid; gap: 10px; }
.contact-direct a { font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-stretch: 110%; border-bottom: 2px solid var(--line); transition: border-color .3s, color .3s; }
.contact-direct a:hover { border-color: var(--orange); color: var(--orange); }
.form { display: grid; gap: 22px; align-content: start; }
.form label { display: grid; gap: 8px; }
.form label span { font: 600 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.form input, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink);
  font: 500 1.1rem var(--display); padding: 10px 0; border-radius: 0; resize: vertical; transition: border-color .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form .btn { justify-self: start; margin-top: 10px; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 40px; overflow: hidden; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--ink-3); font-size: .85rem; }
.footer-grid img { height: 40px; width: auto; }
.footer-grid a:hover { color: var(--orange); }
.footer-big {
  font-weight: 900; font-style: italic; font-stretch: 125%; line-height: .8; letter-spacing: -.05em;
  font-size: 12.4vw; text-align: center; margin-top: 40px; margin-bottom: -1.6vw;
  color: transparent; -webkit-text-stroke: 1px rgba(241, 239, 233, .14); white-space: nowrap;
}

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- Tablette / mobile ---------- */
@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 0 var(--pad); margin: 0;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; z-index: -1; }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav-links > a, .nav-drop-btn { font-size: 2rem; font-weight: 900; font-style: italic; font-stretch: 120%; }
  .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 6px 0 0 4px; }
  .nav-drop-menu a { padding: 6px 0; color: var(--ink-2); }
  .nav { gap: 6px; }
  .nav.open, .nav.open.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); border-color: transparent; }
  .burger { display: block; margin-left: auto; }
  .live-pill { order: 0; margin-left: auto; padding: 8px 12px; }
  .burger { margin-left: 8px; }
  .hero { align-items: end; }
  .hero-portrait { position: relative; right: auto; top: auto; width: 100%; margin-bottom: 32px; order: -1; }
  .hero { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 96px; }
  .hero-scroll { display: none; }
  .next-grid, .contact-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; gap: 48px; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .partner:nth-child(2) { border-right: 0; }
  .partner:nth-child(-n+2) { border-bottom: 1px solid rgba(0, 0, 0, .14); }
  .season-rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .season-rail::-webkit-scrollbar { display: none; }
  .champ { scroll-snap-align: start; width: 78vw; aspect-ratio: 4 / 4.4; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-logo img { height: 28px; }
  .live-pill { font-size: .66rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .social-list a { grid-template-columns: 44px 1fr; }
  .social-list em { display: none; }
  .partner { padding: 24px 12px; }
  .partner img { height: 40px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .hero-title .outline .word { -webkit-text-stroke-width: 1.5px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .lights { display: none; }
  .ticker-track { animation: none; }
}

/* =========================================================
   Pages intérieures
   ========================================================= */

/* ---------- Menu : page en cours ---------- */
.nav-links > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-drop-menu a[aria-current="page"] { color: var(--orange); }

/* ---------- Cartes saison : photo de fond ---------- */
.champ-bg { position: absolute !important; inset: 0; z-index: 0; overflow: hidden; }
.champ-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(1) contrast(1.1); transform: scale(1.08); transition: opacity .6s, filter .6s, transform 1.2s var(--ease); }
.champ-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-2) 8%, transparent 70%); }
.champ:hover .champ-bg img { opacity: .55; filter: none; transform: scale(1); }
.champ-hot .champ-bg img { opacity: .18; mix-blend-mode: multiply; }
.champ-hot .champ-bg::after { background: linear-gradient(to top, var(--orange) 10%, transparent 70%); }
.champ-hot:hover .champ-bg img { opacity: .4; }

/* ---------- Circuits (toutes pages) ---------- */
.track-svg .track-base { stroke-width: 18; }
.track-svg .track-lap { stroke-width: 7; }

/* ---------- En-tête de page générique ---------- */
.phero { position: relative; padding: clamp(140px, 22vh, 220px) 0 clamp(60px, 10vh, 110px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.phero-bg { position: absolute; inset: 0; z-index: -1; }
.phero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.phero-title {
  font-weight: 900; font-style: italic; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 8.5rem); line-height: .86; letter-spacing: -.035em;
}
.phero-title .line { display: block; overflow: hidden; padding: .14em .06em .04em 0; margin-top: -.14em; }
.phero-title .word { display: inline-block; }
.phero-title .outline .word { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.phero-intro { margin-top: 32px; max-width: 48ch; color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.2rem); }

/* ---------- À propos ---------- */
.about-hero { padding: clamp(130px, 20vh, 200px) 0 clamp(60px, 10vh, 120px); overflow: hidden; }
.about-hero .phero-title { font-size: clamp(2.4rem, 5.3vw, 5.4rem); }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.about-quote { margin: 40px 0 0; padding-left: 24px; border-left: 3px solid var(--orange); }
.about-quote p { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.45; font-weight: 500; max-width: 34ch; }
.about-sign { margin-top: 18px; padding-left: 27px; color: var(--ink-3); }
.about-portrait { position: relative; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); aspect-ratio: 1 / 1.05; overflow: hidden; }
.about-portrait img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%; }
.stats-4 { padding: 0 0 clamp(80px, 12vh, 140px); }
.stats-4 .stats-grid { grid-template-columns: repeat(4, 1fr); }
.stats-4 .stat-num { font-size: clamp(3rem, 7vw, 6.4rem); }
.about-photo { padding-bottom: clamp(80px, 12vh, 140px); }
.about-photo-frame { overflow: hidden; aspect-ratio: 16 / 8; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%); }
.about-photo-frame img { width: 100%; height: 120%; object-fit: cover; }

.palmares { padding-bottom: clamp(60px, 10vh, 120px); }
.palma-list { list-style: none; margin: 56px 0 0; padding: 0; }
.palma {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--pad); border-top: 1px solid var(--line); overflow: hidden;
}
.palma-alt { grid-template-columns: 1fr 1.3fr; }
.palma-alt .palma-car { order: 2; }
.palma-year {
  position: absolute; z-index: -1; top: 50%; transform: translateY(-50%); right: var(--pad);
  font-weight: 900; font-style: italic; font-stretch: 125%; font-size: clamp(6rem, 18vw, 16rem); line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(241, 239, 233, .1); pointer-events: none;
}
.palma-alt .palma-year { right: auto; left: var(--pad); }
.palma { isolation: isolate; }
.palma-car img { width: 100%; max-height: 340px; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .6)); }
.palma-when { color: var(--orange); }
.palma-text h3 { font-weight: 900; font-style: italic; font-stretch: 120%; text-transform: uppercase; font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: .95; margin-top: 10px; }
.palma-title { font-size: 1.15rem; font-weight: 700; margin-top: 12px; }
.palma-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: var(--ink-2); }
.palma-meta li { border: 1px solid var(--line); padding: 6px 10px; }
.palma:first-child .palma-title { color: var(--orange); }

.cta-band { background: var(--orange); color: #0a0a0a; padding: clamp(60px, 10vh, 110px) 0; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #0a0a0a; color: var(--ink); }
.cta-band .btn-primary::after { background: var(--ink); }
.cta-band .btn-primary:hover { color: #0a0a0a; }
.cta-band .btn-ghost { color: #0a0a0a; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.cta-band .btn-ghost:hover { background: rgba(0, 0, 0, .08); }

/* ---------- Pages championnat ---------- */
.champ-hero { padding: clamp(130px, 20vh, 200px) 0 clamp(50px, 8vh, 90px); overflow: hidden; position: relative; }
.champ-hero::before { content: ""; position: absolute; width: 70vw; height: 70vw; left: 50%; top: 10%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 74, 0, .14), transparent); pointer-events: none; z-index: -1; }
.champ-hero { isolation: isolate; }
.champ-badge { display: inline-block; margin-top: 24px; background: var(--orange); color: #0a0a0a; padding: 10px 14px; font-weight: 600; }
.champ-visual { max-width: 1500px; margin: clamp(-50px, -3.5vw, -10px) auto 0; padding: 0 var(--pad); position: relative; z-index: -1; }
.champ-visual.is-cutout img { width: 100%; max-height: 62vh; object-fit: contain; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .7)); }
.champ-visual.is-photo { margin-top: 40px; z-index: 0; }
.champ-visual.is-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(30px, 5vh, 60px); }
.specs li { padding: 26px 20px 0 0; border-right: 1px solid var(--line); }
.specs li + li { padding-left: clamp(14px, 2vw, 28px); }
.specs li:last-child { border-right: 0; }
.spec-num { font-weight: 900; font-style: italic; font-stretch: 125%; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: .95; font-variant-numeric: tabular-nums; }
.spec-text { font-weight: 800; font-stretch: 110%; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.15; min-height: 2.3em; display: flex; align-items: flex-end; }
.spec-label { color: var(--ink-2); margin-top: 12px; }

.title-band { background: var(--orange); color: #0a0a0a; padding: clamp(50px, 8vh, 90px) 0; }
.title-band .eyebrow { color: #0a0a0a; }
.title-band-text { font-weight: 850; font-style: italic; font-stretch: 112%; font-size: clamp(1.5rem, 3.2vw, 2.8rem); line-height: 1.08; max-width: 30ch; text-transform: uppercase; letter-spacing: -.01em; }

.champ-about { padding: clamp(80px, 12vh, 140px) 0; border-bottom: 1px solid var(--line); }
.champ-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.champ-lead { font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.4; font-weight: 500; }
.champ-mates { margin-top: 24px; color: var(--orange); line-height: 1.6; }
.champ-text { color: var(--ink-2); font-size: 1.05rem; }

.results { padding: clamp(80px, 12vh, 140px) 0; }
.results-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 56px; }
.results-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; display: inline-block; }
.legend .pos-win { background: var(--orange); }
.legend .pos-podium { box-shadow: inset 0 0 0 2px var(--orange); }
.legend .pos-dnf { background: var(--ink-3); }
.race-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.race { position: relative; background: var(--bg-2); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; transition: border-color .4s, transform .5s var(--ease); }
.race:hover { border-color: rgba(255, 74, 0, .5); transform: translateY(-4px); }
.race-win::before { content: "Victoire"; position: absolute; top: 0; right: 0; background: var(--orange); color: #0a0a0a; font: 600 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; }
.race-track { aspect-ratio: 16 / 9; display: grid; place-items: center; margin-bottom: 18px; }
.race-track svg { width: 92%; max-height: 100%; }
.race-round { color: var(--ink-3); }
.race h3 { font-weight: 900; font-style: italic; font-stretch: 118%; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin-top: 8px; }
.race-date { color: var(--ink-2); margin-top: 6px; font-size: .95rem; }
.race-res { margin-top: auto; padding-top: 20px; display: grid; gap: 0; }
.race-res li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.pos { font: 600 .95rem var(--mono); color: var(--ink); min-width: 56px; text-align: center; padding: 4px 8px; }
.pos-win { background: var(--orange); color: #0a0a0a; }
.pos-podium { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange); }
.pos-dnf { color: var(--ink-3); text-decoration: line-through; font-size: .78rem; text-transform: uppercase; }
.pos-none { color: var(--ink-3); }

.champ-photo { padding-bottom: clamp(80px, 12vh, 140px); }
.champ-photo-frame { overflow: hidden; aspect-ratio: 16 / 7; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
.champ-photo-frame img { width: 100%; height: 125%; object-fit: cover; }
.champ-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.champ-nav a {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(36px, 6vh, 64px) var(--pad);
  font-weight: 900; font-style: italic; font-stretch: 120%; text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 3.4rem); line-height: 1;
  transition: background .4s, color .4s;
}
.champ-nav a .mono { font-style: normal; color: var(--ink-3); font-weight: 600; }
.champ-nav-next { text-align: right; align-items: flex-end; border-left: 1px solid var(--line); }
.champ-nav a:hover { background: var(--orange); color: #0a0a0a; }
.champ-nav a:hover .mono { color: #0a0a0a; }

/* ---------- Liste des actualités ---------- */
.news-page { padding-top: clamp(60px, 10vh, 100px); }
.news-grid-all { row-gap: 64px; }
.news-grid-all .post-card:first-child { grid-column: span 2; }
.news-grid-all .post-card:first-child .post-cover { aspect-ratio: 16 / 9.4; }
.news-grid-all .post-card:first-child h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.cms-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 64px; font-family: var(--mono); }
.cms-pagination a, .cms-pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); padding: 0 12px; }
.cms-pagination a:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Article ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.post-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; padding: 140px 0 clamp(40px, 8vh, 80px); overflow: hidden; isolation: isolate; }
.post-hero-img { position: absolute; inset: 0; z-index: -1; }
.post-hero-img img { width: 100%; height: 115%; object-fit: cover; }
.post-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(8, 9, 11, .55) 50%, rgba(8, 9, 11, .3)); }
.post-back { display: inline-block; color: var(--ink-2); margin-bottom: 28px; transition: color .3s; }
.post-back:hover { color: var(--orange); }
.post-hero .post-date { color: var(--orange); margin: 0 0 16px; }
.post-title { font-weight: 900; font-style: italic; font-stretch: 115%; text-transform: uppercase; font-size: clamp(2rem, 5.4vw, 4.8rem); line-height: .95; letter-spacing: -.02em; max-width: 20ch; }
.post-excerpt { margin-top: 24px; max-width: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); }
.post-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: clamp(32px, 6vw, 96px); padding-top: clamp(50px, 8vh, 90px); padding-bottom: clamp(60px, 10vh, 120px); }
.post-body { max-width: 70ch; font-size: 1.1rem; line-height: 1.75; color: #d9d7d1; }
.post-body > * + * { margin-top: 1.2em; }
.post-body h3 { font-weight: 850; font-style: italic; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.1; color: var(--ink); margin-top: 2em; display: flex; gap: 12px; align-items: baseline; }
.post-body h3::before { content: ""; flex: 0 0 18px; height: 3px; background: var(--orange); transform: translateY(-.3em); }
.post-body p:first-child strong:only-child, .post-body p:first-child > strong { color: var(--ink); font-weight: 600; }
.post-body strong { color: var(--ink); }
.post-body figure { margin: 2.2em 0; }
.post-body figure img, .post-body img { width: 100%; height: auto; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.post-body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.post-share { position: sticky; top: 110px; align-self: start; }
.post-share .mono { color: var(--ink-3); margin-bottom: 14px; }
.post-share ul { display: grid; gap: 8px; }
.post-share a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; transition: color .3s, padding .4s var(--ease); }
.post-share a:hover { color: var(--orange); padding-left: 8px; }
.more-news { border-top: 1px solid var(--line); }

/* ---------- Contact ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-msg { padding: 14px 16px; font-weight: 600; }
.form-ok { background: rgba(255, 74, 0, .12); border-left: 3px solid var(--orange); }
.form-err { background: rgba(255, 255, 255, .06); border-left: 3px solid var(--ink-3); }
.contact-page { padding-top: clamp(60px, 10vh, 100px); }
.contact-page .contact-direct { margin-top: 0; gap: 28px; }
.contact-page .contact-direct li { display: grid; gap: 6px; }
.contact-page .contact-direct .mono { color: var(--ink-3); }
.contact-page .contact-direct a { font-size: clamp(1.4rem, 2.8vw, 2.2rem); justify-self: start; }

/* ---------- En direct ---------- */
.live { padding: clamp(130px, 20vh, 200px) 0 clamp(80px, 12vh, 140px); }
.live .eyebrow::before { display: none; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff1d1d; box-shadow: 0 0 0 0 rgba(255, 29, 29, .6); animation: pulse-red 1.6s infinite; display: inline-block; }
@keyframes pulse-red { 70% { box-shadow: 0 0 0 12px rgba(255, 29, 29, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 29, 29, 0); } }
.live-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 24px; margin-top: 48px; }
.live-video { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); border: 1px solid var(--line); }
.live-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-side { background: var(--bg-2); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.live-side p { color: var(--ink-2); }
.live-side .live-side-h { color: var(--orange); margin-top: 8px; }
.live-side .live-side-h ~ .live-side-h { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); align-self: stretch; }

/* ---------- Pied de page (colonnes) ---------- */
.footer { padding-top: clamp(60px, 10vh, 100px); }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { color: var(--ink-2); margin-top: 18px; max-width: 30ch; font-size: .95rem; }
.footer-h { color: var(--ink-3); margin-bottom: 16px; }
.footer-list { display: grid; gap: 10px; }
.footer-list a { font-weight: 600; transition: color .3s; }
.footer-list a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- Responsive des pages intérieures ---------- */
@media (max-width: 980px) {
  .about-hero-grid, .champ-about-grid, .live-grid, .post-wrap { grid-template-columns: 1fr; }
  .about-portrait { max-width: 520px; }
  .stats-4 .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-4 .stat:nth-child(2) { border-right: 0; }
  .stats-4 .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .stats-4 .stat:nth-child(3) { padding-left: 0; }
  .palma, .palma-alt { grid-template-columns: 1fr; }
  .palma-alt .palma-car { order: 0; }
  .palma-year, .palma-alt .palma-year { top: 30px; transform: none; right: var(--pad); left: auto; font-size: 30vw; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs li:nth-child(2) { border-right: 0; }
  .specs li:nth-child(3) { padding-left: 0; }
  .specs li:nth-child(-n+2) { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .results-head { grid-template-columns: 1fr; }
  .news-grid-all .post-card:first-child { grid-column: auto; }
  .post-share { position: static; }
  .post-share ul { display: flex; gap: 20px; }
  .post-share a { border: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .champ-bg img { opacity: .4; }
  .champ-visual { margin-top: 20px; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .stats-4 .stats-grid { grid-template-columns: 1fr; }
  .stats-4 .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 24px 0 !important; }
  .champ-nav { grid-template-columns: 1fr; }
  .champ-nav-next { border-left: 0; border-top: 1px solid var(--line); }
  .phero-title .outline .word { -webkit-text-stroke-width: 1.5px; }
  .champ-photo-frame, .about-photo-frame { aspect-ratio: 4 / 3; }
  .post-hero { min-height: 78svh; }
}

/* Aperçu local : on cache les jetons bruts pendant le chargement */
.is-loading .post-hero-text > *:not(.post-back), .is-loading .post-body, .is-loading .post-hero-img { opacity: 0; }

/* ---------- Compte à rebours ---------- */
.countdown { margin: 0 0 32px; }
.countdown-label { color: var(--ink-2); margin-bottom: 12px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 440px; }
.countdown-grid li { background: var(--bg); border: 1px solid var(--line); padding: 14px 10px 12px; display: grid; gap: 6px; justify-items: start; position: relative; overflow: hidden; }
.countdown-grid li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); }
.countdown-grid span { font-weight: 900; font-style: italic; font-stretch: 120%; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-grid small { color: var(--ink-3); font-size: .66rem; }
.countdown-grid span.flip { animation: cd-flip .45s var(--ease); }
@keyframes cd-flip { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.countdown-grid li:last-child span { color: var(--orange); }
.countdown-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.countdown-done { margin-top: 14px; font-weight: 700; color: var(--orange); }
.countdown.is-done .countdown-grid { opacity: .35; }

/* ---------- Vidéo au clic ---------- */
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; color: var(--ink); display: grid; place-items: center; overflow: hidden; }
.yt-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .4s, transform 1s var(--ease); }
.yt-facade:hover img { opacity: .75; transform: scale(1.03); }
.yt-play { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 74, 0, .5); animation: pulse-or 2s infinite; }
.yt-play::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 22px solid #0a0a0a; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
@keyframes pulse-or { 70% { box-shadow: 0 0 0 22px rgba(255, 74, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 74, 0, 0); } }
.yt-note { position: absolute; left: 16px; bottom: 14px; color: var(--ink-2); font-size: .68rem; }

/* ---------- Pages légales ---------- */
.legal { padding: clamp(60px, 10vh, 110px) 0 clamp(80px, 12vh, 140px); }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.legal-date { color: var(--ink-3); position: sticky; top: 110px; align-self: start; }
.legal-body { max-width: 72ch; }
.legal-block + .legal-block { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal-block h2 { font-weight: 850; font-style: italic; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.1; margin-bottom: 18px; }
.legal-block p, .legal-block li { color: #d9d7d1; line-height: 1.7; }
.legal-block p + p { margin-top: 12px; }
.legal-block ul { display: grid; gap: 6px; margin-top: 8px; }
.legal-block ul li { padding-left: 18px; position: relative; }
.legal-block ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--orange); }
.legal-block a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.legal-block strong { color: var(--ink); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a:hover { color: var(--orange); }

/* ---------- ELMS : rappel 2025 ---------- */
.results-past { border-top: 1px solid var(--line); }
.past-text { max-width: 70ch; margin: -24px 0 40px; }
.race-mini h3 { font-size: 1.25rem; }
.race-mini .race-track { aspect-ratio: 16 / 8; }

@media (max-width: 980px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-date { position: static; }
}
@media (max-width: 600px) {
  .countdown-grid { gap: 6px; }
  .countdown-grid li { padding: 12px 8px 10px; }
  .footer-bottom { flex-direction: column; }
}
.page-politique-de-confidentialite .phero-title { font-size: clamp(1.5rem, 6.2vw, 6rem); }
.results-past .race-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.race h3 { overflow-wrap: anywhere; }
.legal-block ul + p { margin-top: 14px; }
@media (max-width: 600px) { .section-title { font-size: clamp(1.9rem, 9vw, 2.4rem); } }
