/* RallyGT Timing — feuille de style publique */
:root {
  --navy: #0c0e3a;
  --navy-2: #171a5c;
  --blue: #1e6fe8;
  --blue-2: #0fb5ff;
  --link: #1e6fe8;
  --red: #e3262f;
  --ink: #141632;
  --ink-2: #4a4e6d;
  --muted: #7a7f9a;
  --line: #e3e6f0;
  --bg: #f3f5fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 14, 58, .05), 0 4px 18px rgba(12, 14, 58, .06);
  --field: #fbfcff;
  --soft: #f1f4fb;
  color-scheme: light;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: flex; align-items: baseline; gap: 8px; color: #fff; text-decoration: none !important; flex-shrink: 0; }
.brand img { max-height: 46px; width: auto; }
.brand-mark { font-weight: 800; font-size: 26px; letter-spacing: -.5px; font-style: italic; }
.brand-mark b { color: var(--red); font-weight: 800; }
.brand-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 3px; color: #aab0e0; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: #e4e6ff; font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.nav a[aria-current] { color: #fff; background: rgba(30,111,232,.35); }
.nav-home { display: inline-flex; align-items: center; gap: 6px; }
.nav-home svg { flex-shrink: 0; margin-top: -2px; }
.nav-search input { width: 150px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; margin-left: 8px; transition: width .2s; }
.nav-search input::placeholder { color: #aab0e0; }
.nav-search input:focus { width: 200px; outline: none; border-color: var(--blue-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }
/* bouton mode clair / sombre : soleil en mode sombre, lune en mode clair */
.theme-toggle { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; margin-left: -12px; padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 50%;
  background: rgba(255,255,255,.08); color: #e4e6ff; cursor: pointer; transition: background .15s, color .15s; }
.theme-toggle:hover { background: rgba(255,255,255,.16); color: #fff; }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ico-sun, [data-theme="dark"] .theme-toggle .ico-moon { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; color: #ffd60a; }

/* ---------- Bandeau de présentation (sous le menu) ---------- */
.site-intro { position: relative; overflow: hidden; background: #fff linear-gradient(90deg, transparent 55%, #eef3ff 100%); }
/* liseré damier sous le bandeau */
.site-intro::after { content: ""; display: block; height: 10px; background: repeating-conic-gradient(var(--navy) 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.si-in { display: flex; align-items: center; gap: 26px; padding-top: 20px; padding-bottom: 20px; }
/* accroche dans un bloc bleu nuit en biais, comme le logo, qui part du bord de l'écran */
.si-lead { position: relative; z-index: 0; flex-shrink: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  margin: 0; padding: 0 40px 0 0; color: rgba(255,255,255,.85); font-size: 17px; font-weight: 600; line-height: 1.2; }
.si-lead::before { content: ""; position: absolute; z-index: -1; top: -20px; bottom: -20px; right: 0; left: -100vw; background: linear-gradient(100deg, var(--navy) 70%, var(--navy-2)); transform: skewX(-14deg); transform-origin: bottom right; }
.si-lead::after { content: ""; position: absolute; z-index: -1; top: -20px; bottom: -20px; right: -16px; width: 8px; background: var(--red); transform: skewX(-14deg); transform-origin: bottom right; }
.si-lead strong { display: block; color: #fff; font-size: 28px; font-weight: 800; font-style: italic; letter-spacing: -.5px; }
.si-lead strong b { color: var(--red); }
/* tuiles colorées */
.si-list { flex: 1; display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.si-list li { position: relative; overflow: hidden; flex: 1; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 14px;
  color: #fff; background: linear-gradient(120deg, #1557c9 0%, var(--blue) 50%, #2aa6ff 100%); box-shadow: 0 8px 22px rgba(30,111,232,.28); }
.si-list li:nth-child(2) { background: linear-gradient(120deg, #a5121a 0%, var(--red) 50%, #ff5a4f 100%); box-shadow: 0 8px 22px rgba(227,38,47,.28); }
.si-list li:nth-child(n+3) { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); box-shadow: 0 8px 22px rgba(12,14,58,.25); }
.si-list li::after { content: ""; position: absolute; top: 0; bottom: 0; right: -30px; width: 160px; background: repeating-linear-gradient(115deg, rgba(255,255,255,.12) 0 10px, transparent 10px 26px); transform: skewX(-20deg); pointer-events: none; }
.si-ico { position: relative; z-index: 1; flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.55); color: #fff; }
.si-ico svg { width: 26px; height: 26px; }
.si-txt { position: relative; z-index: 1; display: block; font-size: 17px; font-weight: 700; line-height: 1.3; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.si-txt::first-letter { text-transform: uppercase; }

/* ---------- Lien privilégié pk22 (couleurs de pk22.org : noir, rouge #e30613) ---------- */
.pk-banner { --pk-red: #e30613; display: block; color: #f2f2f2; text-decoration: none !important;
  background: linear-gradient(100deg, #0d0d0d 0%, #0d0d0d 55%, #2a0407 100%); border-bottom: 3px solid var(--pk-red); }
.pk-in { display: flex; align-items: center; gap: 22px; padding-top: 16px; padding-bottom: 16px; }
.pk-logo { flex-shrink: 0; padding: 6px 14px 8px; border: 2px solid var(--pk-red); border-radius: 10px; color: #fff; font-size: 32px; font-weight: 800; font-style: italic; line-height: 1; letter-spacing: -1px; }
.pk-logo b { color: var(--pk-red); }
.pk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-title { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .2px; line-height: 1.25; }
.pk-desc { color: #cfcfcf; font-size: 16px; line-height: 1.4; }
.pk-cta { flex-shrink: 0; white-space: nowrap; display: flex; flex-direction: column; align-items: center; padding: 10px 24px; border-radius: 8px; background: var(--pk-red); color: #fff;
  font-size: 17px; font-weight: 800; line-height: 1.3; box-shadow: 0 6px 18px rgba(227,6,19,.35); transition: transform .2s, background .2s; }
.pk-cta small { font-size: 12.5px; font-weight: 600; opacity: .85; }
.pk-banner:hover .pk-cta { transform: translateY(-2px); background: #ff1f2d; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 55%, #1d3fa8 100%); color: #fff; padding: 44px 0 70px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 520px; height: 260px; background: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 14px, transparent 14px 40px); transform: skewX(-20deg); }
.hero-kicker { margin: 0 0 6px; text-transform: uppercase; letter-spacing: 3px; font-size: 12.5px; font-weight: 600; color: #9fb3ff; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin: 0; letter-spacing: -1px; }
.hero h1 span { color: var(--blue-2); }
.hero + .layout { margin-top: -40px; position: relative; }

/* ---------- Mise en page ---------- */
.layout { padding-top: 28px; padding-bottom: 56px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 20px; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px; }
.hero + .layout .page-title { color: #fff; }
.section-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.section-title small { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
.lead { color: var(--ink-2); font-size: 16px; margin-top: -6px; }
.empty { text-align: center; color: var(--ink-2); padding: 36px 24px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs span { margin: 0 6px; }

/* ---------- Boutons, puces, étiquettes ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: 600 14.5px var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, transform .1s; }
.btn:hover { background: #155bd0; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }
.btn-ghost:hover { background: rgba(30,111,232,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --c: var(--blue); display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; font: 500 13.5px var(--font); cursor: pointer; text-decoration: none !important; }
.chip small { color: var(--muted); font-size: 12px; }
.chip:hover { border-color: var(--c); }
.chip.is-on { background: var(--c); border-color: var(--c); color: #fff; }
.chip.is-on small { color: rgba(255,255,255,.8); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; padding: 2px 9px; border-radius: 6px; background: #eef1f8; color: var(--ink-2); }
.tag-disc { background: var(--c, var(--blue)); color: #fff; }
.tag-vhc { background: #fff4e0; color: #a35a00; }
/* Couleurs des manches, reprises de l'ancienne fiche : moderne rouge, VHC vert, VHRS rose */
.tag-round-moderne { background: #ffe6e7; color: #c4141d; }
.tag-round-vhc { background: #e2f6ea; color: #127a3a; }
.tag-round-vhrs { background: #fde7f3; color: #b0307a; }
.tag-round-autre { background: #eef1f8; color: var(--ink-2); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.pill-live { background: #ffe1e3; color: #c4141d; animation: pulse 1.6s infinite; }
.pill-next { background: #e0ecff; color: #1450b8; }
.pill-past { background: #eceef4; color: var(--muted); }
.pill-cancel { background: #2b2d42; color: #fff; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- Agenda ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.hero + .layout .toolbar { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; }
.season-select { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.season-select select { font: 600 15px var(--font); padding: 6px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; }
.month { margin-bottom: 8px; }
.month-title { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-weight: 700; margin: 22px 4px 10px; }
.month:first-child .month-title { margin-top: 0; }
.ev { --c: var(--blue); display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px 14px 14px; margin-bottom: 10px; border-left: 5px solid var(--c); transition: transform .12s, box-shadow .12s; }
.ev:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(12,14,58,.06), 0 10px 28px rgba(12,14,58,.1); }
.ev-date { text-align: center; background: #f4f6fb; border-radius: 10px; padding: 8px 4px; line-height: 1.1; }
.ev-days { display: block; font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.ev-month { display: block; font-size: 11.5px; font-weight: 700; color: var(--c); letter-spacing: 1px; margin-top: 3px; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.ev-title { font-size: 17px; font-weight: 600; margin: 0; }
.ev-title a { color: var(--ink); }
.ev-title a::after { content: ""; position: absolute; inset: 0; }
.ev-body { position: relative; }
.ev-meta { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.ev-actions { display: flex; gap: 8px; align-items: center; position: relative; z-index: 1; }
.act { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 9px; background: var(--soft); color: var(--ink-2); text-decoration: none !important; white-space: nowrap; }
.act svg { width: 17px; height: 17px; }
.act:hover { background: #e3e9f8; color: var(--ink); }
.act-live { background: #fff0f0; color: #c4141d; }
.act-live:hover { background: #ffe1e3; color: #a00f17; }
.act-open { background: var(--blue); color: #fff; }
.act-open:hover { background: #155bd0; color: #fff; }
.ev-past { opacity: .78; }
.ev-past .ev-date { background: #eef0f5; }
.ev-past:hover { opacity: 1; }
.ev-cancelled .ev-title a { text-decoration: line-through; color: var(--muted); }
.ev-next { box-shadow: 0 0 0 2px var(--blue), 0 10px 30px rgba(30,111,232,.18); }
.ev.is-hidden, .month.is-hidden { display: none; }
/* ---------- Fiche épreuve ---------- */
.fiche-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; border-top: 6px solid var(--c); }
.fiche-head:not(:has(.fiche-poster)) { grid-template-columns: 1fr; }
.fiche-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.8px; margin: 10px 0 4px; }
.fiche-title span { color: var(--c); }
.fiche-date { font-size: 17px; font-weight: 500; color: var(--ink-2); margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 24px; margin: 0 0 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.fiche-poster img { border-radius: 10px; box-shadow: var(--shadow); }
.live-box { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-live { background: #d7191f; }
.btn-live:hover { background: #b5121a; }
.btn-live-off { background: #f1f3f8; color: var(--muted); cursor: default; }
.btn-live-off:hover { background: #f1f3f8; }
.btn-live .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.live-box { align-items: center; }
.live-box-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.rounds { width: 100%; border-collapse: collapse; }
.rounds thead th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.rounds tbody th, .rounds td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-weight: 500; }
.rounds tbody tr:last-child > * { border-bottom: 0; }
.rounds .tag { font-size: 12px; padding: 4px 10px; }
.rounds td a:not(.btn) { font-weight: 600; }
.rounds td a[target]:not(.btn)::after { content: " ↗"; font-size: 12px; color: var(--muted); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 20px; }
.link-card-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.link-card-title svg { width: 22px; height: 22px; color: var(--c); flex-shrink: 0; }
.link-card ul { list-style: none; margin: 0; padding: 0; }
.link-card li + li { border-top: 1px solid var(--line); }
.link-card li a { display: block; padding: 7px 0; font-weight: 500; }
.link-card li a[target]::after { content: " ↗"; font-size: 12px; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.pager a { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; color: var(--ink); font-weight: 600; }
.pager a small { display: block; color: var(--muted); font-weight: 500; }
.pager-next { text-align: right; grid-column: 2; }

/* ---------- Recherche ---------- */
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.filter-bar input { flex: 1; font: inherit; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.filter-bar input:focus { outline: none; border-color: var(--blue); }

/* ---------- Archives ---------- */
.arch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.arch-card { --c: var(--blue); position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border-top: 6px solid var(--c); color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
a.arch-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(12,14,58,.06), 0 16px 40px rgba(12,14,58,.12); }
.arch-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c) 12%, var(--card)); color: var(--c); margin-bottom: 8px; }
.arch-icon svg { width: 28px; height: 28px; }
.arch-kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--c); }
.arch-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.arch-desc { color: var(--ink-2); flex: 1; margin-bottom: 12px; }
.arch-card .btn { background: var(--c); }
.arch-host { color: var(--muted); font-size: 12.5px; }
.arch-soon { background: repeating-linear-gradient(135deg, #fff 0 14px, #f7f8fc 14px 28px); }
.arch-soon .arch-kicker { color: #a35a00; }
.btn-soon, .btn-soon:hover { background: #eef1f8 !important; color: var(--muted); cursor: default; }

/* ---------- Contenus libres ---------- */
.prose p { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; }
.rich-links { list-style: none; margin: 0; padding: 0; }
.rich-links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rich-links li:last-child { border: 0; }
.rich-links a { font-weight: 600; }
.rich-links p { margin: 2px 0 0; font-size: 13.5px; }
.callout { background: #f4f7ff; border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); margin-top: 14px; }
.callout p { margin: 0 0 .5em; }
.callout p:last-child { margin: 0; }

/* ---------- Bannière RallyGT Simracing (couleurs du site rallygt-simracing.fr : marine, jaune, bleu) ---------- */
.sim-banner { --sim-navy: #0b1d45; --sim-navy-2: #12306e; --sim-yellow: #ffd60a; --sim-blue: #3d8bff;
  position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none !important; isolation: isolate;
  background: linear-gradient(100deg, var(--sim-navy) 0%, var(--sim-navy) 45%, var(--sim-navy-2) 100%);
  border-top: 3px solid var(--sim-yellow); border-bottom: 3px solid var(--sim-yellow); }
.sim-bg, .sim-bg > * { position: absolute; inset: 0; pointer-events: none; }
.sim-bg { z-index: -1; }
.sim-stripes { background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 14px, transparent 14px 40px); background-size: 200% 100%; animation: sim-stripes 7s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 70%); mask-image: linear-gradient(90deg, transparent 20%, #000 70%); }
/* liserés bleu / jaune / rouge en biais, après le texte et calés sur le bord droit du contenu */
/* le pied du liseré rouge tombe exactement sur le bord droit du cadre (celui de l'agenda), le haut part en biais */
.sim-flag { flex-shrink: 0; align-self: stretch; display: flex; gap: 6px; margin: -14px 0 -14px 28px; }
.sim-flag i { width: 10px; transform: skewX(-22deg); transform-origin: bottom; }
.sim-flag i:nth-child(1) { background: var(--sim-blue); }
.sim-flag i:nth-child(2) { background: var(--sim-yellow); }
.sim-flag i:nth-child(3) { background: #e3262f; }
.sim-sweep { background: linear-gradient(100deg, transparent 38%, rgba(255,214,10,.10) 50%, transparent 62%); transform: translateX(-100%); animation: sim-sweep 6s ease-in-out infinite; }
.sim-in { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.sim-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 4px; }
.sim-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #fff; border: 1.5px solid var(--sim-yellow); border-radius: 999px; padding: 2px 11px 2px 9px; }
.sim-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sim-yellow); animation: sim-pulse 1.8s ease-in-out infinite; }
.sim-title { font-size: clamp(20px, 2.5vw, 26px); font-weight: 800; text-transform: uppercase; letter-spacing: .3px; line-height: 1.1; }
.sim-t1 { color: var(--sim-blue); }
.sim-t2 { color: var(--sim-yellow); }
.sim-desc { color: rgba(255,255,255,.82); font-size: 13.5px; }
.sim-cta { flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: center; background: var(--sim-yellow); color: var(--sim-navy); font-weight: 800; font-size: 17px; padding: 10px 24px; border-radius: 8px; transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.sim-cta small { font-weight: 600; font-size: 13px; color: rgba(11,29,69,.7); }
.sim-banner:hover .sim-cta { transform: translateY(-2px); background: #ffe14d; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
@keyframes sim-stripes { to { background-position: -86px 0; } }
@keyframes sim-sweep { 60%, 100% { transform: translateX(100%); } }
@keyframes sim-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .sim-stripes, .sim-sweep, .sim-dot { animation: none; }
}


/* ---------- Pied de page ---------- */
/* ---------- Formulaire de contact (pied de page, #contact) ---------- */
.contact { scroll-margin-top: 70px; background: linear-gradient(180deg, #e9edf8 0%, var(--bg) 100%); padding: 48px 0 56px; }
.contact-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.contact-kicker { margin: 0 0 6px; color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.contact-intro h2 { margin: 0 0 12px; color: var(--navy); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.contact-text { margin: 0 0 18px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.contact-points { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 15.5px; font-weight: 600; }
.contact-points svg { flex-shrink: 0; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-social { margin: 0; color: var(--muted); font-size: 14.5px; }
.contact-social a { display: inline-block; margin: 4px 0 0 6px; padding: 4px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 600; font-size: 13.5px; }
.contact-form { position: relative; padding: 26px 28px 22px; border-radius: var(--radius); background: var(--card); box-shadow: 0 2px 4px rgba(12,14,58,.05), 0 14px 40px rgba(12,14,58,.12); border-top: 4px solid var(--red); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-field > span { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.cf-field b, .cf-note b { color: var(--red); }
.cf-field small { color: var(--muted); font-weight: 500; }
.cf-wide { grid-column: 1 / -1; }
.cf-field input, .cf-field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--field);
  color: var(--ink); font: 400 16px/1.45 var(--font); transition: border-color .15s, box-shadow .15s, background .15s; }
.cf-field textarea { resize: vertical; min-height: 140px; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30,111,232,.14); }
.cf-field [aria-invalid="true"] { border-color: var(--red); background: #fff7f7; }
.cf-err { color: #b3121b; font-size: 13.5px; font-weight: 600; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.cf-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.cf-submit { flex-shrink: 0; padding: 13px 26px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: 700 16px var(--font); cursor: pointer;
  box-shadow: 0 8px 20px rgba(227,38,47,.3); transition: transform .15s, background .15s; }
.cf-submit:hover { background: #c81d25; transform: translateY(-1px); }
.cf-submit:disabled { opacity: .75; cursor: progress; transform: none; }
.cf-status { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.cf-status:empty { display: none; }
.cf-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.cf-alert-ok { background: #e3f7ea; color: #11632f; border-left: 4px solid #1f9d55; }
.cf-alert-error { background: #ffe9ea; color: #a3121a; border-left: 4px solid var(--red); }
/* champ piège : hors de l'écran (pas display:none, que certains robots repèrent) */
.cf-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.footer { background: var(--navy); color: #c6c9ec; font-size: 13.5px; padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.footer h3 { color: #fff; font-size: 14.5px; margin-bottom: 10px; }
.footer h3 a { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 2px 0; }
.footer a { color: #c6c9ec; }
.footer a:hover { color: #fff; }
.footer li span { color: #8c90bd; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .contact-in { grid-template-columns: 1fr; gap: 24px; }
  .nav-toggle { display: block; }
  .si-in { flex-direction: column; align-items: stretch; gap: 16px; }
  .si-lead { align-self: flex-start; display: block; padding: 4px 40px 12px 0; font-size: 17px; }
  .si-lead::before, .si-lead::after { bottom: 0; }
  .si-lead strong { display: inline; font-size: 24px; }
  .si-list li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .si-txt { font-size: 16px; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 10px 16px 18px; box-shadow: 0 12px 24px rgba(0,0,0,.3); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .nav-search input, .nav-search input:focus { width: 100%; margin: 8px 0 0; }
  .topbar-in { position: relative; }
  /* mobile : bouton thème à gauche du menu hamburger */
  .theme-toggle { margin-left: auto; }
  .nav-toggle { order: 1; margin-left: -12px; }
}
@media (max-width: 640px) {
  .contact { padding: 34px 0 40px; }
  .contact-form { padding: 20px 16px 18px; }
  .cf-grid { grid-template-columns: 1fr; gap: 14px; }
  .cf-foot { flex-direction: column-reverse; align-items: stretch; }
  .cf-submit { width: 100%; }
  .wrap { padding: 0 16px; }
  .si-in { padding-top: 16px; padding-bottom: 18px; gap: 14px; }
  .si-lead::before, .si-lead::after { top: -16px; }
  .si-lead { white-space: nowrap; font-size: 15px; padding-right: 30px; }
  .si-lead strong { font-size: 19px; }
  .si-list { flex-direction: column; gap: 10px; }
  .si-list li { flex-direction: row; align-items: center; padding: 12px 16px 12px 12px; gap: 14px; }
  .si-ico { width: 46px; height: 46px; }
  .si-ico svg { width: 24px; height: 24px; }
  .si-txt { font-size: 16px; }
  .pk-in { flex-wrap: wrap; gap: 10px 14px; padding-top: 14px; padding-bottom: 14px; }
  .pk-logo { font-size: 24px; padding: 5px 10px 6px; }
  .pk-title { font-size: 17px; }
  .pk-desc { font-size: 14.5px; }
  .pk-cta { flex-basis: 100%; flex-direction: row; justify-content: center; gap: 6px; padding: 10px 16px; font-size: 16px; }
  .pk-cta small { display: none; }
  .hero { padding: 30px 0 60px; }
  .card { padding: 18px; }
  .ev { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .ev-days { font-size: 17px; }
  .ev-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .ev-actions .act-open { margin-left: auto; }
  .fiche-head { grid-template-columns: 1fr; }
  /* mobile : titre et bouton compact sur une ligne, bandes du coin réduites */
  .sim-in { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .sim-desc, .sim-cta small { display: none; }
  .sim-title { font-size: 17px; }
  .sim-cta { padding: 8px 12px; font-size: 14.5px; }
  .sim-flag { gap: 3px; margin: -10px 0 -10px 10px; }
  .sim-flag i { width: 5px; }
  /* Tableau des manches → une carte par manche */
  .rounds thead { display: none; }
  .rounds, .rounds tbody, .rounds tr, .rounds tbody th, .rounds td { display: block; }
  .rounds tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rounds tr:last-child { border-bottom: 0; }
  .rounds tbody th, .rounds td { border: 0 !important; padding: 4px 0; }
  .rounds td { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .rounds td::before { content: attr(data-label); font-size: 13px; color: var(--muted); }
  .fiche-poster { max-width: 260px; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: 1; }
  .file { flex-wrap: wrap; }
  .file .btn { margin-left: 60px; }
}

/* ---------- Mode sombre ----------
   Activé par l'attribut data-theme="dark" sur <html>, posé avant l'affichage par le script du <head>
   (choix mémorisé du visiteur, sinon réglage de son téléphone / ordinateur). */
[data-theme="dark"] {
  color-scheme: dark;
  --link: #6ea8ff;
  --ink: #e8eaff;
  --ink-2: #b6badb;
  --muted: #8b90b5;
  --line: #2a2e5a;
  --bg: #090b1e;
  --card: #141737;
  --field: #0e1130;
  --soft: rgba(255,255,255,.06);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 18px rgba(0,0,0,.35);
}
[data-theme="dark"] .topbar { box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 2px 12px rgba(0,0,0,.5); }
[data-theme="dark"] .skip:focus { background: var(--card); }
[data-theme="dark"] .site-intro { background: var(--bg) linear-gradient(90deg, transparent 55%, #141a4a 100%); }
[data-theme="dark"] .si-list li:nth-child(n+3) { background: linear-gradient(120deg, #1a1e5e 0%, #262b7a 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 8px 22px rgba(0,0,0,.35); }
[data-theme="dark"] .chip { background: var(--card); }
[data-theme="dark"] .season-select select, [data-theme="dark"] .filter-bar input { background: var(--field); color: var(--ink); }
[data-theme="dark"] .tag, [data-theme="dark"] .tag-round-autre { background: rgba(255,255,255,.08); color: var(--ink-2); }
[data-theme="dark"] .tag-disc { background: var(--c, var(--blue)); color: #fff; }
[data-theme="dark"] .tag-vhc { background: rgba(255,159,28,.16); color: #ffb85c; }
[data-theme="dark"] .tag-round-moderne { background: rgba(227,38,47,.2); color: #ff8f94; }
[data-theme="dark"] .tag-round-vhc { background: rgba(34,197,94,.16); color: #6fe3a0; }
[data-theme="dark"] .tag-round-vhrs { background: rgba(236,72,153,.18); color: #f7a6d2; }
[data-theme="dark"] .pill-live { background: rgba(227,38,47,.22); color: #ff8f94; }
[data-theme="dark"] .pill-next { background: rgba(30,111,232,.25); color: #9cc2ff; }
[data-theme="dark"] .pill-past { background: rgba(255,255,255,.08); }
[data-theme="dark"] .pill-cancel { background: #3a3d61; }
[data-theme="dark"] .ev-date, [data-theme="dark"] .ev-past .ev-date { background: rgba(255,255,255,.05); }
[data-theme="dark"] .ev:hover { box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.45); }
[data-theme="dark"] .ev-next { box-shadow: 0 0 0 2px var(--blue), 0 10px 30px rgba(30,111,232,.25); }
[data-theme="dark"] .act:hover { background: rgba(255,255,255,.12); }
[data-theme="dark"] .act-live { background: rgba(227,38,47,.18); color: #ff8f94; }
[data-theme="dark"] .act-live:hover { background: rgba(227,38,47,.28); color: #ffb3b6; }
[data-theme="dark"] .act-open, [data-theme="dark"] .act-open:hover { color: #fff; }
[data-theme="dark"] .btn-live-off, [data-theme="dark"] .btn-live-off:hover, [data-theme="dark"] .btn-soon { background: rgba(255,255,255,.06) !important; }
[data-theme="dark"] .btn-ghost:hover { background: rgba(110,168,255,.1); }
[data-theme="dark"] a.arch-card:hover { box-shadow: 0 4px 8px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.5); }
[data-theme="dark"] .arch-soon { background: repeating-linear-gradient(135deg, var(--card) 0 14px, #181b3f 14px 28px); }
[data-theme="dark"] .arch-soon .arch-kicker { color: #ffb85c; }
[data-theme="dark"] .callout { background: rgba(30,111,232,.12); }
[data-theme="dark"] .contact { background: linear-gradient(180deg, #10133a 0%, var(--bg) 100%); }
[data-theme="dark"] .contact-intro h2 { color: #fff; }
[data-theme="dark"] .contact-points svg, [data-theme="dark"] .contact-social a { background: var(--card); }
[data-theme="dark"] .contact-points svg { stroke: var(--link); }
[data-theme="dark"] .contact-form { box-shadow: 0 2px 4px rgba(0,0,0,.35), 0 14px 40px rgba(0,0,0,.45); }
[data-theme="dark"] .cf-field input:focus, [data-theme="dark"] .cf-field textarea:focus { background: #121540; box-shadow: 0 0 0 4px rgba(110,168,255,.18); }
[data-theme="dark"] .cf-field [aria-invalid="true"] { background: rgba(227,38,47,.08); }
[data-theme="dark"] .cf-err { color: #ff8f94; }
[data-theme="dark"] .cf-alert-ok { background: rgba(31,157,85,.16); color: #7ee2a8; }
[data-theme="dark"] .cf-alert-error { background: rgba(227,38,47,.16); color: #ffa0a5; }
[data-theme="dark"] .footer { background: #060717; }
