/* =====================================================================
   GRIDSTOP — expérience immersive (accueil, showroom, interactions communes)
   Chargée en dernier. Polices auto-hébergées (OFL). Mouvement réduit respecté.
   ===================================================================== */
@font-face { font-family: "GS Display"; src: url("/assets/fonts/interdisplay-blackitalic.woff") format("woff"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "GS Display"; src: url("/assets/fonts/interdisplay-extrabolditalic.woff") format("woff"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "GS Display"; src: url("/assets/fonts/interdisplay-black.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "GS Display"; src: url("/assets/fonts/interdisplay-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "GS Timing"; src: url("/assets/fonts/liberationmono-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --gx-bg: #07080b; --gx-bg2: #0e1117; --gx-panel: rgba(255, 255, 255, .04);
  --gx-ink: #f3f2ef; --gx-ink2: #bcc2ca; --gx-ink3: #8f97a2; --gx-line: rgba(255, 255, 255, .1);
  --gx-red: #e10600; --gx-red-ink: #ff4d4f;
  --gx-display: "GS Display", "Inter", system-ui, sans-serif;
  --gx-timing: "GS Timing", ui-monospace, monospace;
  --gx-ease: cubic-bezier(.22, .9, .24, 1);
  --gx-head: 88px;
}

/* ---------- Boutons ---------- */
.gs-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 2px; font: 700 .9rem/1 var(--gx-display); letter-spacing: .01em; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .35s var(--gx-ease), background-color .25s, color .25s, border-color .25s; }
.gs-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px circle at var(--mx, 50%) 50%, rgba(255, 255, 255, .28), transparent 70%); opacity: 0; transition: opacity .25s; }
.gs-btn:hover::before { opacity: 1; }
.gs-btn--primary { background: var(--gx-red); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-right: 32px; }
.gs-btn--primary:hover { background: #ff1a10; }
.gs-btn--ghost { background: transparent; color: var(--gx-ink); border-color: rgba(255, 255, 255, .28); }
.gs-btn--ghost:hover { border-color: var(--gx-ink); background: rgba(255, 255, 255, .06); }
.gs-btn:focus-visible { outline: 2px solid #f4d06f; outline-offset: 3px; }
.gs-btn[hidden] { display: none; }

/* ---------- Révélations (seulement avec JS) ---------- */
.gx-js [data-reveal]:not([data-reveal="wipe"]) { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--gx-ease) var(--gx-delay, 0ms), transform .9s var(--gx-ease) var(--gx-delay, 0ms); }
.gx-js [data-reveal].is-in { opacity: 1; transform: none; }
.gx-js [data-reveal="wipe"] { position: relative; clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--gx-ease) .1s; }
.gx-js [data-reveal="wipe"]::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--gx-red); transform-origin: right; transform: scaleX(1); transition: transform .7s var(--gx-ease) .55s; }
.gx-js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }
.gx-js [data-reveal="wipe"].is-in::after { transform: scaleX(0); }

/* ---------- Navigation : trait coulissant ---------- */
#navLinks { position: relative; }
.gx-nav-ink { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gx-red); opacity: 0; pointer-events: none; transition: transform .35s var(--gx-ease), width .35s var(--gx-ease), opacity .2s; }
.nav-links a { transition: color .2s; }
@media (pointer: fine) { .gx-js .nav-links a.active::after, .gx-js .nav-links a[aria-current="page"]::after { opacity: 0; } }

/* ---------- Tableaux : ligne la plus proche ---------- */
.gx-row-ink { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(225, 6, 0, .16), rgba(255, 255, 255, .04) 60%); border-left: 2px solid var(--gx-red); opacity: 0; transition: transform .14s var(--gx-ease), height .14s, width .14s, opacity .12s; }
.gx-row-ink.is-on { opacity: 1; }
.standings-table, .results-table { position: relative; z-index: 1; }
.standings-table tbody tr, .results-table tbody tr { transition: color .15s; }
.standings-table tbody tr:hover, .results-table tbody tr:hover { background: transparent; }
.standings-table tbody tr.is-near td, .results-table tbody tr.is-near td { color: #fff; }

/* ---------- Cartes : halo au pointeur ---------- */
.news-card, .news-lead, .news-brief, .driver-card, .team-card, .calendar-item, .tech-card, .hero-card { position: relative; }
.news-card::after, .news-lead::after, .driver-card::after, .team-card::after, .calendar-item::after, .tech-card::after, .sr-list button::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .07), transparent 70%); opacity: 0; transition: opacity .3s; }
.news-card:hover::after, .news-lead:hover::after, .driver-card:hover::after, .team-card:hover::after, .calendar-item:hover::after, .tech-card:hover::after, .sr-list button:hover::after { opacity: 1; }
.news-card .news-card-image, .news-lead .news-card-image { transition: transform .8s var(--gx-ease), filter .5s; }
.news-card:hover .news-card-image, .news-lead:hover .news-card-image { transform: scale(1.04); }
.driver-card, .team-card { transition: transform .45s var(--gx-ease), border-color .3s; }
.driver-card:hover, .team-card:hover { transform: translateY(-4px); }

/* =====================================================================
   ACCUEIL
   ===================================================================== */
.page-home { background: var(--gx-bg); color: var(--gx-ink); }
.hx-hero { position: relative; background: var(--gx-bg); color: var(--gx-ink); overflow: clip; }
.hx-sticky { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: calc(100svh - var(--gx-head)); padding: 32px 56px 40px; overflow: hidden; }
.hx-backdrop { position: absolute; inset: 0; z-index: 0; }
.hx-glow { position: absolute; inset: 0; background: radial-gradient(60% 55% at 55% 52%, rgba(120, 140, 170, .22), transparent 70%), radial-gradient(40% 30% at 50% 88%, rgba(225, 6, 0, .14), transparent 70%); }
.hx-grid { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 80px 80px; transform: perspective(600px) rotateX(62deg); transform-origin: 50% 100%; mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); }
.hx-word { position: absolute; z-index: 1; margin: 0; font: 900 italic clamp(6rem, 21vw, 22rem)/.78 var(--gx-display); letter-spacing: -.06em; pointer-events: none; user-select: none; }
.hx-word--a { top: 3%; left: 2%; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .26); }
.hx-word--b { right: 1%; bottom: 6%; color: rgba(225, 6, 0, .9); }
.hx-stage { position: absolute; inset: 6% 2% 10% 8%; z-index: 2; margin: 0; will-change: transform; }
.hx-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)); transition: opacity .9s var(--gx-ease); -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 52%, #000 50%, transparent 74%); mask-image: radial-gradient(ellipse 60% 62% at 50% 52%, #000 50%, transparent 74%); }
.hx-3d { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--gx-ease); }
.hx-3d .car-canvas { display: block; width: 100%; height: 100%; }
.hx-stage.is-live .hx-3d { opacity: 1; }
.hx-stage.is-live .hx-poster { opacity: 0; }
.hx-credit { position: absolute; right: 0; top: -6px; max-width: 46ch; text-align: right; font-size: .7rem; line-height: 1.4; color: var(--gx-ink3); }
.hx-credit a { color: var(--gx-ink2); }
.hx-copy { position: relative; z-index: 3; grid-column: 1; grid-row: 2; max-width: 560px; }
.hx-kicker { margin: 0 0 12px; font: 800 italic .8rem/1 var(--gx-display); letter-spacing: .14em; color: var(--gx-red-ink); text-transform: uppercase; }
.hx-title { margin: 0; font: 900 italic clamp(2.4rem, 4.2vw, 4.2rem)/.95 var(--gx-display); letter-spacing: -.035em; text-wrap: balance; color: #fff; }
.hx-dek { margin: 18px 0 0; max-width: 44ch; color: var(--gx-ink2); font-size: 1.05rem; line-height: 1.55; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hx-status { margin: 10px 0 0; font-size: .85rem; color: var(--gx-ink3); min-height: 1.2em; }
.hx-chapters { position: absolute; z-index: 3; right: 56px; top: 50%; width: min(380px, 32vw); margin: 0; padding: 0; list-style: none; transform: translateY(-50%); }
.hx-chapter { padding: 22px 24px 20px; border-left: 3px solid var(--gx-red); background: linear-gradient(90deg, rgba(10, 12, 16, .82), rgba(10, 12, 16, .35)); backdrop-filter: blur(6px); }
.hx-fig { display: block; font: 900 italic clamp(3.4rem, 6vw, 6rem)/.9 var(--gx-display); letter-spacing: -.04em; color: #fff; }
.hx-fig small { margin-left: 8px; font-size: .32em; letter-spacing: 0; color: var(--gx-red-ink); }
.hx-label { display: block; margin-top: 10px; color: var(--gx-ink2); line-height: 1.5; }
.hx-art { display: block; margin-top: 8px; font: 700 .78rem var(--gx-timing); color: var(--gx-ink3); }
.hx-cue { position: absolute; z-index: 3; left: 50%; bottom: 16px; margin: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 .7rem var(--gx-display); letter-spacing: .2em; text-transform: uppercase; color: var(--gx-ink3); }
.hx-cue span { width: 1px; height: 36px; background: linear-gradient(var(--gx-red), transparent); animation: hxCue 1.8s var(--gx-ease) infinite; }
@keyframes hxCue { 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; } }

/* Bureau avec mouvement : section haute, bloc collant, chapitres pilotés par le scroll. */
.hx-motion .hx-hero { height: 420vh; }
.hx-motion .hx-sticky { position: sticky; top: var(--gx-head); height: calc(100svh - var(--gx-head)); min-height: 0; }
.hx-motion .hx-chapter { position: absolute; inset: 0 0 auto 0; visibility: hidden; }
/* Statique (mobile, mouvement réduit, sans GSAP) : chapitres lisibles en liste. */
.hx-static .hx-chapters, html:not(.hx-motion) .hx-chapters { position: relative; right: auto; top: auto; width: auto; transform: none; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
html:not(.hx-motion) .hx-cue { display: none; }
html:not(.hx-motion) .hx-sticky { grid-template-rows: auto auto auto; }
html:not(.hx-motion) .hx-stage { position: relative; inset: auto; grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; }
html:not(.hx-motion) .hx-copy { grid-row: 2; margin-top: 36px; }

/* Sections de l'accueil */
.page-home .gx-section, .page-home .section { background: var(--gx-bg); color: var(--gx-ink); }
.page-home .section-alt { background: var(--gx-bg2); }
.gx-section { padding: 96px 0 24px; }
.gx-h2, .page-home .section-header h2, .page-showroom .gx-h2 { font: 900 italic clamp(2rem, 4vw, 3.4rem)/1 var(--gx-display) !important; letter-spacing: -.035em; text-transform: none; color: #fff; }
.page-home .section-header { align-items: end; border-bottom: 1px solid var(--gx-line); padding-bottom: 14px; margin-bottom: 22px; }
.page-home .see-all { font: 800 italic .85rem var(--gx-display); color: var(--gx-red-ink); text-decoration: none; }
.page-home .see-all:hover { color: #fff; }
.gx-timing .gx-h2 { margin-bottom: 28px; }
.gx-tower { background: transparent !important; border: 0 !important; padding: 0 !important; }
.gx-tower .stats-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 1px; background: var(--gx-line); border: 1px solid var(--gx-line); }
.gx-tower .stat-item { padding: 28px 26px !important; border: 0 !important; background: var(--gx-bg); transition: background-color .3s; }
.gx-tower .stat-item:hover { background: #0d1016; }
.gx-tower .stat-label { font: 800 italic .78rem var(--gx-display) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--gx-ink3) !important; }
.gx-tower .stat-value { display: block; margin-top: 10px; font: 900 italic clamp(1.4rem, 2.2vw, 2.1rem)/1.05 var(--gx-display) !important; color: #fff !important; letter-spacing: -.02em; }
.gx-tower .stat-sub { display: block; margin-top: 8px; color: var(--gx-ink3) !important; }
.gx-tower .countdown-mini { margin-top: 18px; display: flex; gap: 14px; font-family: var(--gx-timing) !important; }
.gx-tower .countdown-unit b { font: 700 clamp(1.6rem, 2.6vw, 2.4rem)/1 var(--gx-timing); color: var(--gx-red-ink); }
.gx-tower .countdown-unit i { font-style: normal; font-size: .75rem; margin-left: 2px; color: var(--gx-ink3); }
.page-home .live-news-section .news-grid { gap: 28px; }
.page-home .news-lead, .page-home .news-brief { color: var(--gx-ink); }
.page-home .standings-table th { color: var(--gx-ink3); }
.page-home .standings-table td { color: var(--gx-ink2); }
.page-home .home-desk { padding-top: 96px; padding-bottom: 24px; }

.gx-teaser { position: relative; min-height: 78svh; margin-top: 96px; display: flex; align-items: center; overflow: hidden; background: var(--gx-bg); color: var(--gx-ink); }
.gx-teaser-media { position: absolute; inset: 0; }
.gx-teaser-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.08); transition: transform 1.6s var(--gx-ease); }
.gx-teaser:hover .gx-teaser-media img { transform: scale(1.12); }
.gx-teaser-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 8, 11, .96) 0%, rgba(7, 8, 11, .7) 38%, transparent 70%); }
.gx-teaser-copy { position: relative; z-index: 1; max-width: 1280px; }
.gx-teaser-copy p:not(.hx-kicker) { max-width: 40ch; margin: 16px 0 26px; color: var(--gx-ink2); font-size: 1.05rem; }
.page-home .community-invite { border-top: 1px solid var(--gx-line); border-bottom: 1px solid var(--gx-line); padding: 40px 0; color: var(--gx-ink); }
.page-home .community-invite h2 { font: 900 italic clamp(1.6rem, 3vw, 2.4rem)/1.05 var(--gx-display); color: #fff; }
.page-home .edition-kicker { color: var(--gx-red-ink); }

/* =====================================================================
   SHOWROOM
   ===================================================================== */
.page-showroom { background: var(--gx-bg); color: var(--gx-ink); }
.sr { position: relative; padding: 40px 0 80px; background: radial-gradient(70% 50% at 50% 30%, #161b24, var(--gx-bg) 70%); }
.sr-head { position: relative; z-index: 2; pointer-events: none; max-width: 1320px; margin: 0 auto; padding: 0 48px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; }
.sr-title { margin: 0; font: 900 italic clamp(3.4rem, 9vw, 9rem)/.84 var(--gx-display); letter-spacing: -.05em; color: #fff; }
.sr-dek { max-width: 44ch; margin: 0 0 10px; color: var(--gx-ink2); line-height: 1.55; }
.sr-stage { position: relative; height: clamp(420px, calc(100svh - var(--gx-head) - 200px), 860px); margin: -150px auto 0; max-width: 1600px; outline: none; }
.sr-stage:focus-visible { box-shadow: inset 0 0 0 2px #f4d06f; }
.sr-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .9s var(--gx-ease); -webkit-mask-image: radial-gradient(ellipse 70% 72% at 50% 50%, #000 58%, transparent 82%); mask-image: radial-gradient(ellipse 70% 72% at 50% 50%, #000 58%, transparent 82%); }
.sr-3d { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--gx-ease); }
.sr-3d .car-canvas { width: 100%; height: 100%; display: block; }
.sr-stage.is-live .sr-3d { opacity: 1; }
.sr-stage.is-live .sr-poster { opacity: 0; }
/* (barre indéterminée remplacée par la jauge .gx-load) */
@keyframes srLoad { to { background-position: -200% 0; } }
.sr-hotspots { position: absolute; inset: 0; pointer-events: none; }
.sr-pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; margin: -16px 0 0 -16px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; pointer-events: auto; transition: opacity .25s; }
.sr-pin span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gx-red); font: 700 .8rem var(--gx-timing); box-shadow: 0 0 0 0 rgba(225, 6, 0, .6); animation: srPulse 2.4s ease-out infinite; }
.sr-pin em { font: 800 italic .78rem var(--gx-display); white-space: nowrap; padding: 6px 10px; background: rgba(7, 8, 11, .82); border: 1px solid var(--gx-line); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--gx-ease); }
.sr-pin:hover em, .sr-pin:focus-visible em, .sr-pin[aria-pressed="true"] em { opacity: 1; transform: none; }
.sr-pin[aria-pressed="true"] span { background: #fff; color: var(--gx-red); }
.sr-pin.is-hidden { opacity: 0; pointer-events: none; }
@keyframes srPulse { 0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, .55); } 70% { box-shadow: 0 0 0 14px rgba(225, 6, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); } }
.sr-start { position: absolute; inset: auto 0 12% 0; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--gx-ink2); font-size: .9rem; }
.sr-start[hidden] { display: none; }
.sr-status { position: absolute; left: 50%; bottom: 6%; margin: 0; transform: translateX(-50%); color: var(--gx-ink2); font-size: .9rem; text-align: center; }
.sr-hint { position: absolute; left: 50%; bottom: 22px; margin: 0; transform: translateX(-50%); font-size: .78rem; color: var(--gx-ink3); white-space: nowrap; }
.sr-dock { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; max-width: 1100px; margin: -10px auto 0; padding: 10px 14px; background: rgba(14, 17, 23, .78); border: 1px solid var(--gx-line); backdrop-filter: blur(10px); }
.sr-dock[hidden] { display: none; }
.sr-views, .sr-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-dock button { min-height: 44px; min-width: 44px; padding: 0 16px; border: 1px solid transparent; background: transparent; color: var(--gx-ink2); font: 700 .86rem var(--gx-display); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.sr-dock button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sr-dock button[aria-pressed="true"] { color: #fff; border-color: var(--gx-red); background: rgba(225, 6, 0, .14); }
.sr-panel { position: absolute; z-index: 3; right: 48px; top: 170px; width: min(340px, 30vw); padding: 22px 24px; background: rgba(10, 12, 16, .9); border-left: 3px solid var(--gx-red); backdrop-filter: blur(8px); animation: srPanel .45s var(--gx-ease); }
.sr-panel[hidden] { display: none; }
.sr-dock + .sr-panel { position: relative; right: auto; top: auto; width: auto; max-width: 720px; margin: 14px auto 0; }
@keyframes srPanel { from { opacity: 0; transform: translateX(20px); } }
.sr-panel-art { margin: 0; font: 700 .78rem var(--gx-timing); color: var(--gx-red-ink); }
.sr-panel-title { margin: 8px 0 10px; font: 900 italic 1.6rem/1.05 var(--gx-display); color: #fff; }
.sr-panel p:not(.sr-panel-art) { margin: 0; color: var(--gx-ink2); line-height: 1.55; }
.sr-panel-close { margin-top: 16px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--gx-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sr-facts { max-width: 1320px; margin: 72px auto 0; padding: 0 48px; }
.sr-facts-note { margin: 12px 0 24px; color: var(--gx-ink3); }
.sr-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--gx-line); border: 1px solid var(--gx-line); }
.sr-list button { position: relative; display: grid; align-content: start; gap: 8px; width: 100%; height: 100%; min-height: 200px; padding: 22px 20px; border: 0; background: var(--gx-bg); color: var(--gx-ink2); text-align: left; font: inherit; cursor: pointer; transition: background-color .3s; }
.sr-list button:hover { background: #0e1117; }
.sr-list .sr-n { font: 700 .8rem var(--gx-timing); color: var(--gx-red-ink); }
.sr-list strong { font: 900 italic 1.25rem/1.1 var(--gx-display); color: #fff; }
.sr-list em { margin-top: auto; font: 700 .76rem var(--gx-timing); font-style: normal; color: var(--gx-ink3); }
.sr-credit { max-width: 1320px; margin: 40px auto 0; padding: 0 48px; font-size: .78rem; color: var(--gx-ink3); line-height: 1.6; }
.sr-credit a { color: var(--gx-ink2); }

/* =====================================================================
   MOBILE — composition pensée à part
   ===================================================================== */
@media (max-width: 899px) {
  :root { --gx-head: 72px; }
  .hx-sticky { display: block; padding: 20px 20px 36px; min-height: 0; }
  .hx-word { font-size: 31vw; }
  .hx-word--a { top: 10px; left: 10px; }
  .hx-word--b { right: 8px; bottom: auto; top: 30vw; }
  html:not(.hx-motion) .hx-stage { margin-top: 18vw; aspect-ratio: 4 / 3; }
  .hx-credit { top: auto; bottom: -30px; left: 0; right: 0; max-width: none; text-align: left; }
  html:not(.hx-motion) .hx-copy { margin-top: 48px; }
  .hx-title { font-size: clamp(2.1rem, 9.6vw, 3rem); }
  .hx-actions .gs-btn { flex: 1 1 100%; }
  /* Chapitres : carrousel horizontal au pouce */
  .hx-static .hx-chapters, html:not(.hx-motion) .hx-chapters { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 28px -20px 0; padding: 0 20px 6px; }
  html:not(.hx-motion) .hx-chapter { flex: 0 0 78%; scroll-snap-align: start; }
  .hx-fig { font-size: 3.4rem; }
  .gx-section { padding-top: 64px; }
  .gx-tower .stats-grid { grid-template-columns: 1fr 1fr; }
  .gx-tower .gx-tower-main { grid-column: 1 / -1; }
  .gx-tower .stat-item { padding: 20px 16px !important; }
  .gx-teaser { min-height: 0; padding: 0 0 48px; flex-direction: column; align-items: stretch; }
  .gx-teaser-media { position: relative; height: 54vw; }
  .gx-teaser-media::after { background: linear-gradient(0deg, var(--gx-bg) 0%, transparent 60%); }
  .sr-head { padding: 0 20px; }
  .sr-title { font-size: 17vw; }
  .sr-dek { font-size: .95rem; }
  .sr-stage { height: 62svh; min-height: 320px; margin-top: 8px; }
  .sr-dock { margin: 0 12px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 6px; }
  .sr-views, .sr-tools { flex-wrap: nowrap; }
  .sr-dock button { white-space: nowrap; padding: 0 12px; }
  .sr-panel { position: relative; right: auto; top: auto; width: auto; margin: 14px 12px 0; padding: 16px 18px; }
  .sr-hint { display: none; }
  .sr-pin em { display: none; }
  .sr-facts { padding: 0 20px; margin-top: 48px; }
  .sr-list { grid-template-columns: 1fr; }
  .sr-list button { min-height: 0; }
  .sr-credit { padding: 0 20px; }
}
@media (max-width: 360px) {
  .hx-sticky { padding: 16px 14px 28px; }
  .hx-title { font-size: 2rem; }
}

/* Mouvement réduit : aucune animation décorative. */
@media (prefers-reduced-motion: reduce) {
  .gx-js [data-reveal], .gx-js [data-reveal="wipe"] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .gx-js [data-reveal="wipe"]::after { display: none; }
  .hx-cue span, .sr-pin span, .sr-stage.is-loading::after { animation: none; }
  .gs-btn, .driver-card, .team-card, .news-card .news-card-image, .gx-teaser-media img { transition: none; }
}

/* =====================================================================
   DÉCLINAISON — pages intérieures (même grammaire que l'accueil)
   ===================================================================== */
.gx-hero { padding: 72px 0 56px; background: radial-gradient(120% 140% at 85% 0%, rgba(225, 6, 0, .22), transparent 55%), linear-gradient(180deg, #0b0d12, #07080b); border-bottom: 1px solid var(--gx-line); isolation: isolate; }
.gx-hero::before { content: ""; display: block; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); opacity: 1; }
.gx-hero::after { content: var(--gx-ghost, ""); display: block; position: absolute; z-index: -1; right: -2vw; bottom: -.18em; left: auto; top: auto; width: auto; height: auto; background: none; font: 900 italic clamp(6rem, 17vw, 16rem)/.8 var(--gx-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09); white-space: nowrap; pointer-events: none; }
.gx-hero h1 { font: 900 italic clamp(2.6rem, 1.6rem + 4.2vw, 5.4rem)/.9 var(--gx-display); letter-spacing: -.045em; margin-bottom: 16px; }
.gx-hero h1::before { content: ""; display: block; width: 56px; height: 4px; margin-bottom: 22px; background: var(--gx-red); transform: skewX(-24deg); }
.gx-hero p { color: var(--gx-ink2); }
.gx-js .gx-hero h1 { animation: gxWipe .9s var(--gx-ease) both; }
.gx-js .gx-hero p, .gx-js .gx-hero .data-source, .gx-js .gx-hero [data-datasource] { animation: gxRise .8s .18s var(--gx-ease) both; }
@keyframes gxWipe { from { clip-path: inset(0 100% 0 0); transform: translateX(-24px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes gxRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Filtres / onglets : coin coupé, encre rouge */
.filter-btn { position: relative; border-radius: 0 !important; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); font-family: var(--gx-display); font-style: italic; font-weight: 800; letter-spacing: .02em; transition: background-color .25s var(--gx-ease), color .25s, transform .25s var(--gx-ease); }
.filter-btn.active { box-shadow: none; }
@media (pointer: fine) { .filter-btn:not(.active):hover { transform: translateY(-2px); } }

/* Cartes pilotes / écuries : filet rouge au survol (le ::after porte déjà le halo) */
.driver-card:hover, .team-card:hover, .driver-card:focus-within, .team-card:focus-within { box-shadow: inset 0 -3px 0 var(--gx-red), 0 18px 44px rgba(0, 0, 0, .35); }
.driver-card-number { font-family: var(--gx-display); font-style: italic; font-weight: 900; }

/* Calendrier : ligne qui glisse et s'encre */
@media (pointer: fine) { .calendar-item { transition: background-color .3s, transform .35s var(--gx-ease), border-color .3s; } .calendar-item:hover { transform: translateX(6px); border-left-color: var(--gx-red); } }
.calendar-round { font-family: var(--gx-timing); }

/* Tableaux : en-têtes chrono */
.standings-table th, .results-table th { font-family: var(--gx-timing); letter-spacing: .08em; }

@media (max-width: 899px) {
  .gx-hero { padding: 48px 0 36px; }
  .gx-hero::after { font-size: 34vw; right: -6vw; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-js .gx-hero h1, .gx-js .gx-hero p, .gx-js .gx-hero .data-source, .gx-js .gx-hero [data-datasource] { animation: none; }
  .calendar-item, .driver-card, .team-card, .filter-btn { transition: none !important; }
  .calendar-item:hover, .filter-btn:not(.active):hover { transform: none; }
}

/* Zones immersives toujours sombres (comme le pied de page) : en thème clair,
   l'accueil, le showroom et les en-têtes de page gardent leurs jetons sombres. */
.page-home, .page-showroom, .gx-hero {
  --bg-primary: #0b0d10; --bg-secondary: #12161a; --bg-card: #12161a; --bg-card-hover: #1a1f24;
  --text-primary: #f3f1ed; --text-secondary: #c3c9cf; --text-muted: #aab1b9;
  --border: #303841; --border-light: #252d35; --table-stripe: rgba(255, 255, 255, .022);
  --red-ink: #ffb4b4; --shadow: rgba(0, 0, 0, .45); --shadow-lg: rgba(0, 0, 0, .65);
  color-scheme: dark; color: var(--text-primary);
}
.page-home, .page-showroom { background: var(--gx-bg); }
.gx-hero h1 { color: #fff; }

/* Accueil statique sur grand écran (mouvement réduit, sans JS, pas de WebGL) :
   la voiture à droite, le titre à gauche, tout dans le premier écran. */
@media (min-width: 900px) {
  html:not(.hx-motion) .hx-sticky { grid-template-rows: 1fr auto; min-height: calc(100svh - var(--gx-head)); }
  html:not(.hx-motion) .hx-stage { grid-column: 1 / -1; grid-row: 1 / span 2; aspect-ratio: auto; height: calc(100svh - var(--gx-head) - 140px); min-height: 440px; margin-left: 34%; }
  html:not(.hx-motion) .hx-copy { grid-row: 2; align-self: end; margin-top: 0; }
  html:not(.hx-motion) .hx-chapters { grid-row: 3; }
  html:not(.hx-motion) .hx-word--b { bottom: auto; top: calc(100svh - var(--gx-head) - 34vh); opacity: .55; }
}

/* Jauge de chargement 3D */
.gx-load { position: absolute; z-index: 4; left: 50%; bottom: 14%; width: min(240px, 50%); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; transition: opacity .5s var(--gx-ease); }
.gx-load.is-done { opacity: 0; }
.gx-load-track { position: relative; width: 100%; height: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.gx-load-bar { position: absolute; inset: 0; background: var(--gx-red); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .18s linear; box-shadow: 0 0 12px rgba(225, 6, 0, .8); }
.gx-load-pct { font: 700 .74rem var(--gx-timing); letter-spacing: .12em; color: var(--gx-ink2); }

/* Rail « secteurs » du hero (bureau, mouvement autorisé) */
.hx-rail { position: absolute; z-index: 4; right: 22px; top: 50%; display: grid; gap: 10px; transform: translateY(-50%); }
.hx-sector { display: grid; grid-template-columns: 3px auto; align-items: center; gap: 10px; }
.hx-sector i { position: relative; width: 3px; height: 54px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hx-sector i::after { content: ""; position: absolute; inset: 0; background: #f4d06f; transform-origin: top; transform: scaleY(var(--f, 0)); }
.hx-sector b { font: 700 .7rem var(--gx-timing); letter-spacing: .1em; color: var(--gx-ink3); transition: color .3s; }
.hx-sector.is-on b { color: #f4d06f; }
.hx-sector.is-done i::after { background: #b46bff; }
.hx-sector.is-done b { color: #c99bff; }

/* Classements : barre de points / leader, colonne podiums masquée si la source ne la donne pas */
.standings-table td.gx-bar { position: relative; }
.standings-table td.gx-bar::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; background: linear-gradient(90deg, var(--tc, var(--gx-red)), rgba(225, 6, 0, .25)); transform-origin: left; transform: scaleX(var(--gx-bar, 0)); transition: transform .9s var(--gx-ease); opacity: .85; }
.gx-no-podiums th:nth-child(4), .gx-no-podiums td:nth-child(4) { display: none; }
@media (prefers-reduced-motion: reduce) { .standings-table td.gx-bar::after { transition: none; } }

/* Illustrations : la boîte de l'image épouse exactement l'image (unités de conteneur),
   pour que le fondu des bords tombe sur l'image et non sur la scène. */
.hx-stage, .sr-stage { container-type: size; }
.hx-poster, .sr-poster { inset: 0; margin: auto; width: min(100cqw, 150cqh); height: min(100cqh, 66.667cqw);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 98%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 98%); }

/* Showroom : cotes 3D et vue technique */
.sr-measure { position: absolute; left: 0; top: 0; margin: -34px 0 0; padding: 5px 10px; font: 700 .72rem var(--gx-timing); letter-spacing: .06em; color: #fff; white-space: nowrap; background: rgba(225, 6, 0, .92); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); translate: -50% 0; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sr-measure.is-on { opacity: 1; }
.sr-stage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--gx-ease); background: radial-gradient(60% 55% at 50% 58%, rgba(30, 140, 255, .22), transparent 70%), linear-gradient(rgba(42, 168, 255, .06) 1px, transparent 1px) 0 0 / 100% 4px; }
.sr-stage.is-scan::before { opacity: 1; }
.sr-stage.is-scan .sr-measure { background: rgba(10, 120, 220, .92); }
.sr-stage.is-scan-in::after { content: ""; position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: 18%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(80, 190, 255, .35), rgba(255, 255, 255, .7) 52%, transparent 54%); animation: srScanIn .9s var(--gx-ease) forwards; }
@keyframes srScanIn { from { transform: translateX(-30%); opacity: 1; } 85% { opacity: 1; } to { transform: translateX(560%); opacity: 0; } }
.sr-scan-btn span { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #2aa8ff; box-shadow: 0 0 0 0 rgba(42, 168, 255, .6); vertical-align: 1px; }
.sr-scan-btn[aria-pressed="true"] { border-color: #2aa8ff !important; background: rgba(42, 168, 255, .14) !important; }
.sr-scan-btn[aria-pressed="true"] span { animation: srScanDot 1.4s ease-out infinite; }
@keyframes srScanDot { to { box-shadow: 0 0 0 8px rgba(42, 168, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .sr-scan-btn[aria-pressed="true"] span { animation: none; } .sr-measure { transition: none; } }

/* Départ « feux rouges » */
.hx-lights { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 28px; background: radial-gradient(70% 60% at 50% 45%, #0d0f14, #040506 80%); cursor: pointer; transition: opacity .55s var(--gx-ease), visibility .55s; }
.hx-lights.is-out { opacity: 0; visibility: hidden; }
.hx-gantry { transition: transform .55s var(--gx-ease), filter .55s; }
.hx-lights.is-out .hx-gantry { transform: scale(1.12); filter: blur(6px); }
.hx-gantry { display: flex; gap: clamp(10px, 2vw, 22px); padding: 18px clamp(16px, 3vw, 30px); background: linear-gradient(#16181d, #0b0c10); border: 1px solid #23262d; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.hx-pod { display: grid; gap: 12px; padding: 12px; background: #050506; border-radius: 30px; }
.hx-pod i { width: clamp(30px, 4.2vw, 54px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2a0b0d, #120506 70%); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8); transition: background .06s, box-shadow .06s; }
.hx-pod.is-on i { background: radial-gradient(circle at 40% 35%, #ff8a80, #ff1a1a 40%, #b30000 75%); box-shadow: 0 0 22px 6px rgba(255, 26, 26, .55), 0 0 60px 12px rgba(255, 0, 0, .25); }
.hx-lights-cap { margin: 0; font: 700 .72rem var(--gx-timing); letter-spacing: .14em; text-transform: uppercase; color: var(--gx-ink3); }

/* Traînées de vitesse (accueil, bureau) */
.hx-streaks { position: absolute; inset: 10% -10%; background-repeat: repeat; background-size: 1600px 800px; background-position: var(--sx, 0px) 0; opacity: calc(var(--sv, 0) * .9); mix-blend-mode: screen; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); pointer-events: none; }

/* Cartes : inclinaison au pointeur */
.gx-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)) !important; transition: transform .5s var(--gx-ease) !important; will-change: transform; }
.gx-tilt.is-tilting { transition: transform .12s linear !important; }

/* Transitions entre pages (navigateurs compatibles, mouvement autorisé) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: gx-header; }
  ::view-transition-old(root) { animation: gxVtOut .32s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: gxVtIn .62s cubic-bezier(.22, .9, .24, 1) both; }
  ::view-transition-group(gx-header) { animation: none; }
}
@keyframes gxVtOut { to { opacity: .2; transform: translateX(-2%) scale(.985); filter: brightness(.6); } }
@keyframes gxVtIn { from { clip-path: polygon(108% 0, 118% 0, 108% 100%, 98% 100%); } to { clip-path: polygon(-20% 0, 118% 0, 108% 100%, -30% 100%); } }
@media (max-width: 899px) { .sr-measure { font-size: .62rem; padding: 4px 8px; } }

/* Voile des feux avant l'exécution du module (première visite) ; se retire seul si le script ne vient pas. */
html.hx-lights-pending .hx-sticky::after { content: ""; position: absolute; inset: 0; z-index: 19; background: radial-gradient(70% 60% at 50% 45%, #0d0f14, #040506 80%); animation: hxCoverSafety .4s 5s forwards; }
@keyframes hxCoverSafety { to { opacity: 0; visibility: hidden; } }

/* Showroom : gommes (bande de flanc) et piste mouillée */
.sr-tyres { position: absolute; z-index: 3; left: 28px; bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; max-width: 380px; }
.sr-tyres-title { flex-basis: 100%; }
.sr-tyres[hidden] { display: none; }
.sr-tyres-title { margin: 0 0 4px; font: 700 .66rem var(--gx-timing); letter-spacing: .16em; text-transform: uppercase; color: var(--gx-ink3); }
.sr-tyres button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.sr-tyres button span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 900 .7rem var(--gx-display); color: #fff; background: radial-gradient(circle, #2b2f34 0 30%, #0c0c0d 31% 47%, var(--c) 48% 57%, #151517 58% 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .35s var(--gx-ease), box-shadow .35s var(--gx-ease); }
.sr-tyres button[aria-pressed="true"] span { transform: scale(1.1); box-shadow: 0 0 0 2px var(--c), 0 0 22px -2px var(--c); }
.sr-tyres button em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sr-tyres-title b { color: #fff; font-weight: 700; }
.sr-tyres button:focus-visible { outline: none; }
.sr-tyres button:focus-visible span { outline: 2px solid #f4d06f; outline-offset: 3px; }
.sr-stage { transition: background-color .8s var(--gx-ease); }
.sr-stage.is-wet { background: radial-gradient(70% 60% at 50% 60%, rgba(70, 110, 170, .16), transparent 75%); }
@media (max-width: 899px) {
  .sr-tyres { left: 8px; top: 8px; bottom: auto; gap: 0 2px; max-width: none; flex-wrap: nowrap; }
  .sr-tyres-title { display: none; }
  .sr-tyres button { min-width: 44px; justify-content: center; }
  .sr-tyres button span { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .sr-tyres button span, .sr-stage { transition: none; } }
.gx-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* =====================================================================
   FICHES pilote / écurie / Grand Prix
   ===================================================================== */
.gx-ent-host { padding: 0 !important; max-width: none !important; width: 100%; }
.page-driver, .page-team, .page-race { background: var(--gx-bg); color: var(--gx-ink); --text-primary: #f3f1ed; --text-secondary: #c3c9cf; --text-muted: #aab1b9; --border: #303841; }
.gx-ent-hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 56px; border-bottom: 1px solid var(--gx-line);
  background: radial-gradient(90% 140% at 88% 0%, color-mix(in srgb, var(--tc, var(--gx-red)) 34%, transparent), transparent 60%), linear-gradient(180deg, #0b0d12, #07080b); }
.gx-ent-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.gx-ent-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--tc, var(--gx-red)), transparent 70%); }
.gx-ent-ghost { position: absolute; z-index: -1; right: -1vw; bottom: -.16em; font: 900 italic clamp(7rem, 20vw, 19rem)/.8 var(--gx-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--tc, #fff) 45%, rgba(255, 255, 255, .1)); white-space: nowrap; text-transform: uppercase; pointer-events: none; }
.gx-ent-crumbs { color: var(--gx-ink3); }
.gx-ent-crumbs a { color: var(--gx-ink2); text-decoration: none; }
.gx-ent-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gx-ent-kicker { margin: 18px 0 10px; font: 800 italic .78rem var(--gx-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gx-red-ink); }
.gx-ent-kicker a { color: inherit; }
.gx-ent-title { margin: 0; font: 900 italic clamp(2.6rem, 1.4rem + 5vw, 6rem)/.9 var(--gx-display); letter-spacing: -.045em; color: #fff; }
.gx-ent-title strong { color: var(--tc, #fff); }
.gx-ent-sub { margin: 16px 0 0; color: var(--gx-ink2); font-size: 1.02rem; }
.gx-js .gx-ent-title { animation: gxWipe .9s var(--gx-ease) both; }
.gx-js .gx-ent-kicker, .gx-js .gx-ent-sub { animation: gxRise .8s .15s var(--gx-ease) both; }
.gx-ent-body { padding-block: 36px 72px; }
.gx-ent-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 40px; border: 1px solid var(--gx-line); }
.gx-ent-stats > div { padding: 18px 20px; border-right: 1px solid var(--gx-line); }
.gx-ent-stats > div:last-child { border-right: 0; }
.gx-ent-stats dt { font: 800 italic .7rem var(--gx-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gx-ink3); }
.gx-ent-stats dd { margin: 8px 0 0; font: 900 italic clamp(1.8rem, 3vw, 2.6rem)/1 var(--gx-display); color: #fff; font-variant-numeric: tabular-nums; }
.gx-ent-block { margin: 0 0 44px; }
.gx-ent-h2 { margin: 0 0 18px; font: 900 italic clamp(1.5rem, 2.4vw, 2.2rem)/1 var(--gx-display); letter-spacing: -.03em; color: #fff; }
.gx-ent-note { margin: 12px 0 0; font-size: .8rem; color: var(--gx-ink3); }
.gx-ent-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 8px 0 0; }
.gx-ent-actions .gx-ent-link, .gx-ent-pager a { font: 800 italic .9rem var(--gx-display); color: var(--gx-red-ink); text-decoration: none; }
.gx-ent-actions .gx-ent-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Liens d'entité dans les tableaux : discrets, soulignés au survol */
.gx-ent-link { color: inherit; text-decoration: none; }
.standings-table .gx-ent-link:hover, .standings-table .gx-ent-link:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: var(--tc, var(--gx-red)); text-underline-offset: 4px; }
.gx-code { display: inline-block; min-width: 3.2em; margin-right: 10px; font: 900 italic .95rem var(--gx-display); letter-spacing: .02em; color: #fff; }
.page-home .standings-table .gx-full { color: var(--gx-ink2); font-size: .86rem; }

/* Graphique de saison */
.gx-chart-legend { display: flex; gap: 16px; margin: -6px 0 14px; font: 800 italic .8rem var(--gx-display); }
.gx-chart-legend span::before { content: ""; display: inline-block; width: 18px; height: 4px; margin-right: 8px; vertical-align: middle; background: var(--tc, var(--gx-red)); }
.gx-chart-legend .s1::before { background: color-mix(in srgb, var(--tc, #fff) 45%, #ffffff); }
.gx-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(22px, 1fr); gap: 6px; height: 220px; margin: 0; padding: 0 0 26px; list-style: none; border-bottom: 1px solid var(--gx-line); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 44px); overflow-x: auto; }
.gx-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 22px; }
.gx-bars { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.gx-cbar { position: relative; flex: 1; height: calc(var(--h, 0) * 100%); background: linear-gradient(180deg, var(--tc, var(--gx-red)), color-mix(in srgb, var(--tc, var(--gx-red)) 35%, transparent)); transform-origin: bottom; }
.gx-cbar.s1 { background: linear-gradient(180deg, color-mix(in srgb, var(--tc, #fff) 45%, #ffffff), rgba(255, 255, 255, .12)); }
.gx-cbar b { position: absolute; left: 50%; bottom: 100%; margin-bottom: 3px; transform: translateX(-50%); font: 700 .62rem var(--gx-timing); color: var(--gx-ink2); }
.is-duo .gx-cbar b { display: none; }
.gx-cbar.m1 { box-shadow: inset 0 3px 0 #ffce4d; } .gx-cbar.m2 { box-shadow: inset 0 3px 0 #c9d1d9; } .gx-cbar.m3 { box-shadow: inset 0 3px 0 #d08a4a; }
.gx-cbar.is-empty { height: 6px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .18) 0 3px, transparent 3px 6px); }
.gx-col-r { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font: 700 .6rem var(--gx-timing); color: var(--gx-ink3); }
.gx-js .gx-chart[data-reveal] .gx-cbar { transform: scaleY(0); transition: transform .8s var(--gx-ease) calc(var(--i, 0) * 25ms); }
.gx-js .gx-chart[data-reveal].is-in .gx-cbar, .gx-js .gx-chart[data-reveal].is-visible .gx-cbar { transform: none; }

/* Pilotes d'une écurie */
.gx-ent-drivers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.gx-ent-driver { position: relative; display: grid; gap: 6px; padding: 22px 24px 26px; overflow: hidden; color: #fff; text-decoration: none; border: 1px solid var(--gx-line); background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 16%, transparent), rgba(255, 255, 255, .02)); transition: border-color .3s, transform .4s var(--gx-ease); }
.gx-ent-driver:hover, .gx-ent-driver:focus-visible { border-color: var(--tc); }
.gx-ent-num { position: absolute; right: 14px; top: -6px; font: 900 italic 5.4rem/1 var(--gx-display); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--tc) 60%, transparent); }
.gx-ent-name { font: 800 italic 1.35rem/1.1 var(--gx-display); }
.gx-ent-name strong { color: var(--tc); }
.gx-ent-meta { font-size: .85rem; color: var(--gx-ink2); }
.gx-ent-meter { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--w, 0) * 100%); background: var(--tc); }

/* Grand Prix : compte à rebours, programme, podium, navigation */
.gx-race-cd { margin: 0 0 40px; padding: 22px 26px; border: 1px solid var(--gx-line); border-left: 4px solid var(--gx-red); background: rgba(225, 6, 0, .06); }
.gx-race-cd .gx-ent-kicker { margin-top: 0; }
.gx-race-cd-digits { display: flex !important; gap: 18px; font-family: var(--gx-timing) !important; }
.gx-race-cd-digits .countdown-unit b { font: 700 clamp(2rem, 4.6vw, 3.6rem)/1 var(--gx-timing); color: #fff; }
.gx-race-cd-digits .countdown-unit i { font-style: normal; margin-left: 3px; color: var(--gx-ink3); }
.gx-sched { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--gx-line); }
.gx-sched li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--gx-line); }
.gx-sched-name { font: 800 italic 1rem var(--gx-display); }
.gx-sched time { font: 700 .9rem var(--gx-timing); color: var(--gx-ink2); }
.gx-sched li.is-past { opacity: .55; }
.gx-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gx-podium li { position: relative; display: grid; gap: 4px; align-content: start; padding: 18px 18px 0; border-top: 3px solid var(--tc); background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 14%, transparent), transparent); }
.gx-podium-pos { font: 900 italic 2.4rem/1 var(--gx-display); color: #fff; }
.gx-podium li.p1 .gx-podium-pos { color: #ffce4d; } .gx-podium li.p2 .gx-podium-pos { color: #c9d1d9; } .gx-podium li.p3 .gx-podium-pos { color: #d08a4a; }
.gx-podium-name { font: 800 italic 1.15rem/1.1 var(--gx-display); }
.gx-podium-name strong { color: var(--tc); }
.gx-podium-team, .gx-podium-time { font-size: .82rem; color: var(--gx-ink2); }
.gx-podium-time { font-family: var(--gx-timing); }
.gx-podium-step { display: block; margin: 14px -18px 0; height: 60px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border-top: 1px solid var(--gx-line); }
.gx-podium li.p1 .gx-podium-step { height: 110px; } .gx-podium li.p2 .gx-podium-step { height: 80px; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.gx-chips span { padding: 8px 12px; font: 700 .78rem var(--gx-timing); border: 1px solid var(--gx-line); color: var(--gx-ink2); }
.gx-ent-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.gx-ent-pager a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--gx-line); color: #fff; transition: border-color .3s, background-color .3s; }
.gx-ent-pager a[rel="next"] { text-align: right; }
.gx-ent-pager a:hover { border-color: var(--gx-red); background: rgba(225, 6, 0, .06); }
.gx-ent-pager small { font: 700 .72rem var(--gx-timing); letter-spacing: .08em; color: var(--gx-ink3); }

/* Accueil : saison en segments */
.gx-season { display: grid; grid-template-columns: repeat(var(--n, 23), minmax(0, 1fr)); gap: 3px; width: 100%; align-self: stretch; margin-top: 16px; }
.gx-seg { display: block; height: 10px; background: rgba(255, 255, 255, .1); transform-origin: bottom; }
.gx-seg.is-done { background: var(--gx-red); }
.gx-seg.is-gap { background: repeating-linear-gradient(45deg, rgba(225, 6, 0, .7) 0 2px, transparent 2px 4px); }
.gx-seg.is-next { background: #f4d06f; animation: gxSegPulse 1.4s ease-in-out infinite; }
@keyframes gxSegPulse { 50% { opacity: .35; } }
.gx-js .gx-season .gx-seg { animation: gxSegIn .5s var(--gx-ease) calc(var(--i, 0) * 30ms) both; }
.gx-js .gx-season .gx-seg.is-next { animation: gxSegIn .5s var(--gx-ease) calc(var(--i, 0) * 30ms) both, gxSegPulse 1.4s ease-in-out 1.2s infinite; }
@keyframes gxSegIn { from { transform: scaleY(0); opacity: 0; } }

@media (max-width: 899px) {
  .gx-ent-hero { padding: 40px 0 36px; }
  .gx-ent-ghost { font-size: 38vw; right: -8vw; }
  .gx-ent-stats { grid-template-columns: 1fr 1fr; }
  .gx-ent-stats > div { border-bottom: 1px solid var(--gx-line); }
  .gx-chart { height: 170px; grid-auto-columns: 18px; }
  .gx-podium { grid-template-columns: 1fr; }
  .gx-podium li { order: 0; }
  .gx-podium li.p1 { order: -1; }
  .gx-podium-step { display: none; }
  .gx-ent-pager { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-js .gx-ent-title, .gx-js .gx-ent-kicker, .gx-js .gx-ent-sub { animation: none; }
  .gx-js .gx-chart[data-reveal] .gx-cbar { transform: none; transition: none; }
  .gx-seg, .gx-js .gx-season .gx-seg, .gx-js .gx-season .gx-seg.is-next { animation: none; }
}
