/* ── Startline ────────────────────────────────────────────────────────────
   Univers : ligne de départ. Encre, papier de dossard, accent « volt ».
   Les courses sont des dossards, les catégories des couloirs de piste.
   ──────────────────────────────────────────────────────────────────────── */

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/barlow-condensed-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/fonts/barlow-condensed-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/fonts/barlow-condensed-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap;
  src: url(/fonts/barlow-condensed-latin-800-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap;
  src: url(/fonts/barlow-condensed-latin-ext-800-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ── Couleurs ─────────────────────────────────────────────────────────── */
:root {
  --ink: #0b0b0b;
  --ink-2: #161616;
  --ink-line: #2a2a2a;
  --paper: #f7f6f1;
  --volt: #d8ff2e;
  --volt-ink: #0b0b0b;
  --red: #ff4a3d;
  --chalk: rgba(255, 255, 255, .85);

  /* Thème clair */
  --bg: #ecebe5;
  --surface: #ffffff;
  --surface-2: #f4f3ee;
  --line: #d9d7cf;
  --text: #0b0b0b;
  --muted: #64635d;
  --focus: #0b0b0b;
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #0b0b0b; --surface: #151515; --surface-2: #1d1d1d; --line: #2a2a2a;
  --text: #f4f3ee; --muted: #9a9993; --focus: var(--volt); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #0b0b0b; --surface: #151515; --surface-2: #1d1d1d; --line: #2a2a2a;
    --text: #f4f3ee; --muted: #9a9993; --focus: var(--volt); color-scheme: dark;
  }
}

/* Bouton de thème : on affiche la lune ou le soleil selon le thème effectif, sans JS */
.icon-btn.to-light { display: none; }
:root[data-theme=dark] .icon-btn.to-light { display: inline-flex; }
:root[data-theme=dark] .icon-btn.to-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .icon-btn.to-light { display: inline-flex; }
  :root:not([data-theme=light]) .icon-btn.to-dark { display: none; }
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.display, h1, h2, .btn, .chip, .kicker, .bib-num, .lane-num, nav a, .icon-btn, .logo {
  font-family: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
}
h1, h2 { text-transform: uppercase; letter-spacing: .005em; line-height: .95; margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 8vw, 76px); }
h2 { font-weight: 800; font-size: clamp(26px, 4vw, 34px); margin: 40px 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { text-transform: uppercase; font-weight: 700; letter-spacing: .14em; font-size: 14px; color: var(--muted); }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
form.inline { display: inline; }

/* ── Header : toujours à l'encre, comme la piste ───────────────────────── */
.site-header { background: var(--ink); color: #fff; position: relative; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-style: italic; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.logo .mark { display: inline-flex; gap: 3px; }
.logo .mark i { width: 7px; height: 22px; background: var(--volt); transform: skewX(-18deg); }
.logo .mark i + i { opacity: .55; }
.top { display: flex; align-items: center; gap: 6px; }
nav { display: flex; gap: 18px; margin-right: 10px; }
nav a { text-decoration: none; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; font-size: 16px; color: rgba(255,255,255,.7); }
nav a:hover, nav a[aria-current=page] { color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #333; background: transparent; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .06em; cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-current=page] { border-color: var(--volt); color: var(--volt); }
a.icon-btn { text-decoration: none; }
.account-btn { position: relative; }
/* Connecté : petit point volt sur l'icône de profil */
.account-btn.is-logged::after { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 2px var(--ink); }
/* Mobile : logo + boutons sur la 1re ligne, liens Courses / Simulations en onglets sur la 2e */
@media (max-width: 600px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; column-gap: 6px; padding-top: 10px; }
  .top { display: contents; }
  .top > :nth-child(2) { margin-left: auto; }
  nav { order: 99; width: 100%; margin: 0; gap: 22px; border-top: 1px solid #222; padding: 10px 0 12px; margin-top: 10px; }
  nav a { font-size: 15px; }
  nav a[aria-current=page] { box-shadow: 0 3px 0 var(--volt); }
  .logo { font-size: 22px; }
  .icon-btn { min-width: 34px; height: 34px; padding: 0 7px; font-size: 13px; }
}

/* ── Hero : la ligne de départ ─────────────────────────────────────────── */
.hero {
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 2px), rgba(255,255,255,.09) calc(100% / 6 - 2px) calc(100% / 6)),
    var(--ink);
  color: #fff; padding: 56px 0 0; overflow: hidden; position: relative;
}
.hero > .wrap, .hero > .startline { position: relative; z-index: 1; }
.hero .kicker { color: var(--volt); }

/* Diaporama des ateliers en trame de points (écran LED), fondu vers le texte et vers la ligne de départ */
.hero-art {
  position: absolute; z-index: 0; top: 0; right: 0; bottom: 64px;
  width: min(60vw, 820px); pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%), linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 45%), linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-art .slide {
  position: absolute; inset: 0; background: right top / cover no-repeat; opacity: 0;
  animation-name: hero-slide; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-fill-mode: backwards;
}
/* Balayage lumineux, comme un écran de stade qui se rafraîchit */
.hero-art::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, transparent 0, rgba(216,255,46,.18) 48%, rgba(216,255,46,.32) 50%, transparent 52%) 0 -100% / 100% 200% no-repeat;
  mix-blend-mode: screen; animation: scan 6s linear infinite;
}
@keyframes scan { to { background-position: 0 100%; } }
.hero-art .station {
  position: absolute; right: 24px; bottom: 96px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: rgba(255,255,255,.6);
}
.hero-art .station b { color: var(--volt); font-weight: 800; }
@media (max-width: 760px) {
  .hero-art { width: 100%; opacity: .35; bottom: 40%; }
  .hero-art .station { display: none; }
}
/* Sans animation : uniquement la première image, fixe */
@media (prefers-reduced-motion: reduce) {
  .hero-art::after { animation: none; display: none; }
  .hero-art .slide { animation: none; }
  .hero-art .slide:first-of-type { opacity: 1; }
}
.hero h1 { margin: 14px 0 18px; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--volt); }
.hero p { color: rgba(255,255,255,.75); max-width: 56ch; margin: 0 0 26px; font-size: 17px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.startline { position: relative; border-top: 6px solid #fff; margin-top: 8px; }
.lanes { display: grid; grid-template-columns: repeat(6, 1fr); }
.lanes span { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(28px, 6vw, 56px); color: rgba(255,255,255,.14); padding: 6px 0 10px 10px; line-height: 1; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 16px; padding-bottom: 22px; border-top: 1px solid #222; font-size: 14px; color: rgba(255,255,255,.7); }
.stats b { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; color: #fff; margin-right: 6px; }
.stats .live b { color: var(--volt); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); margin-right: 8px; box-shadow: 0 0 0 0 rgba(216,255,46,.6); animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(216,255,46,0); } 100% { box-shadow: 0 0 0 0 rgba(216,255,46,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* ── Boutons : forme de cale de départ ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  text-transform: uppercase; font-weight: 800; letter-spacing: .06em; font-size: 17px; line-height: 1;
  padding: 13px 22px; background: var(--volt); color: var(--volt-ink);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateX(2px); }
.btn.dark { background: var(--text); color: var(--bg); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.hero .btn.ghost, .event-hero .btn.ghost { background: #222; color: #fff; }
.btn.small { font-size: 15px; padding: 9px 16px; }

/* ── Puces de statut ───────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; font-size: 13px; line-height: 1; padding: 6px 9px; white-space: nowrap; }
.chip.on_sale { background: var(--volt); color: var(--volt-ink); }
.chip.sold_out { background: var(--red); color: #fff; }
.chip.not_on_sale, .chip.unknown { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ── Filtres ───────────────────────────────────────────────────────────── */
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 36px 0 18px; }
.toolbar h2 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
select, input[type=email] {
  font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 0; width: 100%;
}
.filters select { width: auto; max-width: 100%; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; }
select:hover, input[type=email]:hover { border-color: var(--text); }

/* ── Dossards ──────────────────────────────────────────────────────────── */
.bibs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.bib {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--paper); color: var(--ink); padding: 22px 22px 18px; min-height: 230px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 24px -14px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
/* Les 4 trous d'épingle du dossard */
.bib::before {
  content: ''; position: absolute; inset: 9px; pointer-events: none;
  background:
    radial-gradient(circle, var(--bg) 3.5px, transparent 4.5px) left top / 12px 12px no-repeat,
    radial-gradient(circle, var(--bg) 3.5px, transparent 4.5px) right top / 12px 12px no-repeat,
    radial-gradient(circle, var(--bg) 3.5px, transparent 4.5px) left bottom / 12px 12px no-repeat,
    radial-gradient(circle, var(--bg) 3.5px, transparent 4.5px) right bottom / 12px 12px no-repeat;
}
.bib:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 30px -16px rgba(0,0,0,.55); }
.bib-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 10px; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-weight: 700; letter-spacing: .1em; font-size: 13px; color: #6b6a63; }
.bib-band { height: 8px; margin: 10px -22px 12px; background: var(--ink); }
.bib.is-open .bib-band { background: var(--volt); }
.bib.is-kids .bib-band { background: repeating-linear-gradient(90deg, var(--ink) 0 14px, var(--volt) 14px 28px); }
.bib-num { font-weight: 800; font-size: 76px; line-height: .85; letter-spacing: -.01em; }
.bib-num small { font-size: 18px; font-weight: 700; letter-spacing: .08em; margin-left: 6px; color: #6b6a63; vertical-align: top; }
.bib-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 23px; line-height: 1.05; margin-top: 12px; }
.bib-meta { color: #55544e; font-size: 14px; margin-top: 4px; }
.bib-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.bib .chip.not_on_sale, .bib .chip.unknown { color: #6b6a63; }

/* Dossard dépliable (<details>) : le résumé garde la mise en page du dossard */
details.bib { display: block; padding-bottom: 0; min-height: 0; }
details.bib > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; min-height: 196px; padding-bottom: 18px; outline-offset: 6px; }
details.bib > summary::-webkit-details-marker { display: none; }
details.bib[open] { grid-column: 1 / -1; transform: none; }
details.bib[open]:hover { transform: none; }
.bib-toggle { margin-left: auto; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.bib-toggle::after { content: ''; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease; }
details.bib .when-open, details.bib[open] .when-closed { display: none; }
details.bib[open] .when-open { display: inline; }
details.bib[open] .bib-toggle::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.bib > summary:hover .bib-toggle { text-decoration: underline; text-underline-offset: 3px; }

/* Talon détachable : les créneaux */
.bib-detail { border-top: 2px dashed #c9c7bf; margin: 0 -22px; padding: 20px 22px 22px; }
.bib-msg { margin: 0 0 16px; color: #3d3c37; max-width: 70ch; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 28px; margin-bottom: 20px; }
.slot-day-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; border-bottom: 3px solid var(--ink); padding-bottom: 4px; margin-bottom: 6px; }
.slot-day ul { list-style: none; margin: 0; padding: 0; }
.slot-day li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #e3e1d9; font-size: 14px; color: #55544e; }
.slot-day li.is-open { color: var(--ink); font-weight: 700; }
.slot-day .chip { font-size: 11px; padding: 4px 7px; }
.bib-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bib-actions .btn.dark { background: var(--ink); color: #fff; }
.empty { padding: 40px; text-align: center; border: 2px dashed var(--line); color: var(--muted); }

/* ── Page course ───────────────────────────────────────────────────────── */
.event-hero { background: var(--ink); color: #fff; padding: 28px 0 0; }
.event-hero a.back { color: rgba(255,255,255,.6); text-decoration: none; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: 14px; }
.event-hero a.back:hover { color: var(--volt); }
.event-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 18px 0 22px; }
.event-head h1 { font-size: clamp(38px, 7vw, 68px); max-width: 16ch; }
.event-head .meta { color: rgba(255,255,255,.7); margin-top: 12px; }
.countdown { text-align: right; }
.countdown .bib-num { color: var(--volt); font-size: clamp(64px, 10vw, 104px); }
.countdown .kicker { color: rgba(255,255,255,.6); }
.event-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 26px; }
.event-hero .checked { font-size: 14px; color: rgba(255,255,255,.55); padding: 12px 0 14px; border-top: 6px solid #fff; }
.event-hero .checked .dot { margin-right: 6px; }

/* Catégories = couloirs */
.lanes-list { border-top: 2px solid var(--text); }
.lane { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lane.all { background: var(--surface-2); padding-left: 0; }
.lane-num { font-weight: 800; font-size: 40px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--muted); text-align: center; }
.lane.is-open .lane-num { color: var(--volt); -webkit-text-stroke: 1.5px var(--text); }
.lane-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 21px; line-height: 1.1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lane-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (max-width: 560px) {
  .lane { grid-template-columns: 44px 1fr; }
  .lane-num { font-size: 30px; }
  .lane > :last-child { grid-column: 2; justify-self: start; }
}

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--text); }
.timeline li { padding: 8px 0 8px 16px; font-size: 14px; position: relative; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 15px; width: 11px; height: 11px; background: var(--bg); border: 3px solid var(--text); }

/* ── Cartes / formulaires ──────────────────────────────────────────────── */
.card { background: var(--surface); border: 1.5px solid var(--line); padding: 20px; }
.panel { max-width: 460px; margin: 48px auto; background: var(--surface); border-top: 6px solid var(--volt); padding: 28px; }
.panel h1 { font-size: 44px; }
.alert { padding: 12px 16px; background: var(--red); color: #fff; font-weight: 600; }
.list { display: grid; gap: 10px; }
main { padding-bottom: 64px; }
main > .wrap > .page { padding-top: 36px; }
.prose h1 { margin-bottom: 18px; }
.prose p { max-width: 70ch; }

/* ── Footer : la ligne d'arrivée ───────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); font-size: 13px; }
.finish { height: 24px; background: repeating-conic-gradient(#fff 0 25%, var(--ink) 0 50%) 0 0 / 24px 24px; }
.site-footer .wrap { padding-top: 26px; padding-bottom: 32px; }
.site-footer p { max-width: 70ch; margin: 0 0 14px; }
.site-footer a { margin-right: 16px; color: #fff; }
.site-footer .logo { font-size: 20px; color: #fff; margin-bottom: 12px; }

/* ── Annuaire des simulations ──────────────────────────────────────────── */
.hero-small { padding-top: 44px; }
.hero-small h1 { max-width: 16ch; font-size: clamp(40px, 7vw, 68px); }
.hero-small .cta { margin-bottom: 32px; }
/* Bande diagonale pour distinguer une simulation d'une course officielle */
.bib.is-sim .bib-band { background: repeating-linear-gradient(-45deg, var(--ink) 0 8px, #8a8980 8px 16px); }
.bib.is-sim.is-open .bib-band { background: repeating-linear-gradient(-45deg, var(--ink) 0 8px, var(--volt) 8px 16px); }
.sim-info { color: #3d3c37; }
.sim-desc { white-space: pre-line; max-width: 75ch; margin: 0 0 18px; font-size: 15px; }
.sim-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; font-size: 14px; }
.sim-info dt { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #6b6a63; }
.sim-info dd { margin: 0; color: var(--ink); }
.sim-cats { max-width: 520px; margin-bottom: 14px; }
.sim-cats ul { list-style: none; margin: 0; padding: 0; }
.sim-cats li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #e3e1d9; font-size: 14px; }
.sim-cats li.is-open { font-weight: 700; }
.sim-note { color: #6b6a63; margin: 0 0 16px; }
.sim-card { margin-top: 28px; background: var(--paper); border: 0; border-top: 6px solid var(--ink); }
.sim-card .sim-note { margin-bottom: 0; }
.propose { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 6px solid var(--volt); }
.propose h2 { margin: 0 0 6px; }
.propose p { margin: 0; }
.notice { padding: 12px 16px; background: var(--volt); color: var(--volt-ink); font-weight: 700; }
@media (max-width: 560px) { .sim-info dl { grid-template-columns: 1fr; gap: 2px; } .sim-info dd { margin-bottom: 8px; } }

/* ── Formulaires longs ─────────────────────────────────────────────────── */
.form-page { max-width: 820px; }
.form-page h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 10px; }
.sim-form { display: grid; gap: 22px; margin-top: 24px; }
.sim-form fieldset { border: 0; border-top: 3px solid var(--text); margin: 0; padding: 16px 0 0; }
.sim-form legend { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 22px; padding-right: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field > span { font-weight: 600; font-size: 14px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .checks { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 4px 0 8px; border: 1.5px solid transparent; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--volt); }
.consent { align-items: flex-start; max-width: 70ch; }
.consent.has-error { color: var(--red); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
