/* ============ BRAND FONTS (self-hosted) ============ */
  /* Lemon Milk = titrages MAJ (display, uppercase). Roboto = texte courant. */
  @font-face { font-family: "Lemon Milk"; src: url("../fonts/LemonMilk.otf") format("opentype"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Lemon Milk"; src: url("../fonts/LemonMilkBold.otf") format("opentype"); font-weight: 700; font-display: swap; }
  @font-face { font-family: "Roboto LOT"; src: url("../fonts/Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Roboto LOT"; src: url("../fonts/Roboto-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
  @font-face { font-family: "Roboto LOT"; src: url("../fonts/Roboto-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
  /* ============ TOKENS (dark theme, locked) ============ */
  :root {
    --bg:        #232323;   /* noir de marque */
    --bg-2:      #1b1b1b;   /* bandeau plus sombre */
    --surface:   #2b2b2b;   /* panneau */
    --surface-2: #333333;
    --text:      #f4f1ee;   /* blanc cassé */
    --muted:     #a8a4a0;   /* gris chaud */
    --faint:     #777370;
    --line:      rgba(255,255,255,0.10);
    --line-2:    rgba(255,255,255,0.18);
    --accent:    #ed5f3e;   /* orange de marque - accent unique verrouillé */
    --accent-2:  #f3795b;   /* hover */
    --on-accent: #232323;   /* noir sur orange */

    --r-card: 10px;          /* radius doux — entre-deux */
    --r-pill: 8px;           /* buttons: arrondi léger */
    --r-input: 8px;          /* inputs: arrondi léger */

    --maxw: 1280px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font:    "Roboto LOT", ui-sans-serif, system-ui, sans-serif;
    --display: "Lemon Milk", "Roboto LOT", ui-sans-serif, sans-serif;
    --mono:    "Roboto LOT", ui-monospace, monospace;
  }

  /* ============ RESET ============ */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; }
  ::selection { background: var(--accent); color: var(--on-accent); }

  .wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
  @media (max-width: 640px) { .wrap { padding-inline: 18px; } }

  .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
  .accent { color: var(--accent); }

  /* ============ BUTTONS (pill, tactile) ============ */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border-radius: var(--r-pill);
    font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
    padding: 14px 26px; border: 1px solid transparent;
    transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
    white-space: nowrap;
  }
  .btn:active { transform: translateY(1px) scale(0.985); }
  .btn-primary { background: var(--accent); color: var(--on-accent); }
  .btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
  .btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
  .btn-ghost:hover { border-color: var(--text); transform: translateY(-1px); }
  .btn .ico { width: 18px; height: 18px; }

  /* ============ NAV ============ */
  header.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
  .brand { display: inline-flex; align-items: center; }
  .brand img { height: 54px; width: auto; display: block; }
  .nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; margin-right: 28px; }
  .nav-links > a, .nav-parent { font-family: var(--display); color: var(--muted); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; transition: color .15s var(--ease); white-space: nowrap; }
  .nav-links > a:hover, .nav-parent:hover { color: var(--text); }
  .nav-item { position: relative; }
  .nav-parent { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
  .nav-parent::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
  .nav-drop {
    position: absolute; top: calc(100% + 12px); left: -14px; min-width: 220px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card);
    padding: 8px; display: flex; flex-direction: column; gap: 2px;
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .16s var(--ease), transform .16s var(--ease);
    box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  }
  .nav-drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
  .nav-drop a { font-family: var(--display); color: var(--muted); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; padding: 9px 12px; border-radius: 6px; transition: background .14s var(--ease), color .14s var(--ease); }
  .nav-drop a:hover { background: var(--surface-2); color: var(--text); }
  .nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; transform: none; pointer-events: auto; }
  /* méga-menu deux colonnes (LOT 2027) */
  .nav-drop.mega { flex-direction: row; gap: 10px; padding: 16px; }
  .nav-drop.mega .mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
  .nav-drop.mega .mega-col + .mega-col { border-left: 1px solid var(--line); padding-left: 10px; }
  .nav-drop.mega .mega-head { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--accent); padding: 4px 12px 8px; }
  .nav-drop.mega .mega-promo { position: relative; width: 216px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-2); display: block; align-self: stretch; margin-left: 4px; }
  .nav-drop.mega .mega-promo img { width: 100%; height: 100%; object-fit: cover; min-height: 172px; }
  .nav-drop.mega .mega-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,35,35,0) 35%, rgba(35,35,35,0.82) 100%); }
  .nav-drop.mega .mega-promo-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
  .nav-drop.mega .mp-k { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--accent); }
  .nav-drop.mega .mp-t { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 12px; color: var(--text); line-height: 1.25; }
  .nav-cta { display: flex; align-items: center; gap: 14px; }
  .nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 6px; }
  @media (max-width: 1040px) {
    .nav-toggle { display: inline-flex; }
    .nav-cta .btn-ghost { display: none; }
    .nav-links {
      position: absolute; top: 70px; left: 0; right: 0; margin: 0;
      flex-direction: column; align-items: flex-start; gap: 2px;
      background: var(--bg-2); border-bottom: 1px solid var(--line);
      padding: 14px 24px 22px; max-height: calc(100dvh - 70px); overflow-y: auto;
      transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
      transition: transform .2s var(--ease), opacity .2s var(--ease), visibility 0s linear .2s;
    }
    .nav-links.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
    .nav-links > a, .nav-parent { font-size: 17px; padding: 12px 0; width: 100%; }
    .nav-item { width: 100%; }
    .nav-parent::after { display: none; }
    .nav-drop {
      position: static; opacity: 1; transform: none; pointer-events: inherit;
      min-width: 0; background: transparent; border: 0; box-shadow: none;
      padding: 0 0 8px 14px; border-left: 1px solid var(--line); margin-left: 2px;
    }
    .nav-drop a { font-size: 15px; padding: 8px 0; }
    .nav-drop.mega { flex-direction: column; gap: 0; padding: 0 0 8px 14px; }
    .nav-drop.mega .mega-col { min-width: 0; }
    .nav-drop.mega .mega-col + .mega-col { border-left: 0; padding-left: 0; margin-top: 6px; }
    .nav-drop.mega .mega-head { padding: 8px 0 4px; }
    .nav-drop.mega .mega-promo { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { .nav-links { transition: none; } }
  @media (max-width: 520px) {
    .nav-inner { height: 64px; }
    .nav-links { top: 64px; }
    .brand img { height: 42px; }
    .nav-cta .btn-primary { padding: 11px 18px; font-size: 14px; }
  }

  /* ---- Topbar / barre d'accès rapide ---- */
  .topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .topbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 20px; min-height: 30px; padding-block: 3px; }
  .topbar-links { display: flex; align-items: center; gap: 20px; }
  .topbar-links a { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; color: var(--muted); transition: color .15s var(--ease); white-space: nowrap; }
  .topbar-links a:hover { color: var(--accent); }
  .topbar-cta { padding: 6px 15px; font-size: 12px; }
  @media (max-width: 1040px) {
    .topbar { display: none; }
  }

  /* ============ SECTION CHROME ============ */
  section { position: relative; }
  .pad { padding-block: clamp(72px, 11vw, 140px); }
  .eyebrow {
    font-family: var(--mono); font-size: 12px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  }
  h1, h2, h3 { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.005em; line-height: 1.04; font-weight: 700; }
  .h-sec { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.06; }
  .lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 56ch; line-height: 1.6; }

  /* ============ HERO ============ */
  .hero { position: relative; display: flex; align-items: center; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 72px); overflow: hidden; }
  .hero-grid {
    display: grid; gap: 40px; width: 100%;
    grid-template-columns: 1.05fr 0.95fr; align-items: center;
  }
  .hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
    border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 7px 14px 7px 8px;
    font-size: 13px; color: var(--muted); font-weight: 600; background: rgba(255,255,255,0.02); }
  .hero-kicker .tag { background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: 11px;
    font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); letter-spacing: 0.04em; }
  .hero h1 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 700; line-height: 1.02; max-width: 14ch; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero h1 .h1-place { font-family: var(--font); text-transform: none; letter-spacing: -0.01em; color: var(--accent); font-weight: 700; }
  .hero-sub { margin-top: 26px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 44ch; line-height: 1.6; }
  .hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-facts { margin-top: 40px; display: flex; gap: 32px; flex-wrap: wrap; }
  .fact .k { font-family: var(--mono); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
  .fact .l { font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }

  /* hero — lieu & date */
  .hero-where { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .hero-where .hw { display: inline-flex; align-items: center; gap: 9px; font-size: clamp(15px, 1.3vw, 17px); font-weight: 600; color: var(--text); }
  .hero-where .hw svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 1.8; fill: none; flex: none; }

  /* hero — les 3 épreuves */
  .hero-races { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; }
  .hero-race { display: grid; gap: 8px; padding: 18px 16px 16px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: color-mix(in srgb, var(--surface) 60%, transparent); }
  .hero-race .hr-km { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
  .hero-race .hr-km small { font-size: 14px; font-weight: 400; letter-spacing: 0; }
  .hero-race .hr-name { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 12px; color: var(--text); }
  .hero-race .hr-elev { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-top: 2px; }

  /* hero visual */
  .hero-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
  .hero-visual { display: block; color: inherit; }
  .hero-visual img, .hero-visual video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hero-watch {
    position: absolute; top: 18px; right: 18px; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px;
    border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent);
    font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
    transition: transform .25s var(--ease), background .25s var(--ease);
  }
  .hero-watch svg { width: 18px; height: 18px; }
  .hero-visual:hover .hero-watch { transform: scale(1.05); background: var(--accent-2); }
  .hero-visual:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .hero-visual::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--bg) 82%, transparent) 100%); }
  .hero-badge {
    position: absolute; left: 18px; bottom: 18px; z-index: 2;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
  }
  .hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
  .hero-badge .t1 { font-weight: 700; font-size: 14px; }
  .hero-badge .t2 { font-size: 12px; color: var(--muted); font-family: var(--mono); }

  /* ambient glow */
  .glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: 0.5; z-index: 0; }
  .glow.a { width: 520px; height: 520px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%); top: -120px; right: -80px; }
  .glow.b { width: 460px; height: 460px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); bottom: -160px; left: -120px; opacity: 0.35; }

  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { aspect-ratio: 16/12; order: 2; }
  }
  @media (max-width: 480px) {
    .hero-races { gap: 8px; }
    .hero-race { padding: 14px 12px 12px; gap: 6px; }
    .hero-race .hr-km { font-size: 22px; }
    .hero-race .hr-km small { font-size: 12px; }
    .hero-race .hr-elev { font-size: 11px; }
  }

  /* ============ MARQUEE (only one on page) ============ */
  .marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
  .marquee-track { display: flex; gap: 46px; padding-block: 20px; width: max-content; animation: scroll 34s linear infinite; }
  .marquee-track span { font-weight: 800; font-size: clamp(18px, 2.4vw, 26px); letter-spacing: -0.02em; color: var(--text); display: inline-flex; align-items: center; gap: 46px; }
  .marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  @keyframes scroll { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

  /* ============ COURSES ============ */
  .courses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
  .course {
    position: relative; border-radius: var(--r-card); overflow: hidden;
    border: 1px solid var(--line); background: var(--surface); isolation: isolate;
    transition: transform .3s var(--ease), border-color .3s var(--ease);
  }
  .course:hover { transform: translateY(-4px); border-color: var(--line-2); }
  .course-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
  .course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
  .course:hover .course-img img { transform: scale(1.05); }
  .course-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--surface) 100%); }
  .course-dist { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--mono); font-weight: 600;
    font-size: 13px; background: var(--accent); color: var(--on-accent); padding: 6px 12px; border-radius: var(--r-pill); }
  .course-body { padding: 26px 26px 28px; }
  .course-body h3 { font-size: 27px; margin-bottom: 8px; }
  .course-body p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
  .course-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line); padding-top: 20px; }
  .course-stats .s .v { font-family: var(--mono); font-size: 18px; font-weight: 600; }
  .course-stats .s .lab { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }
  .courses-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .courses-grid.cols-detail { grid-template-columns: 1.05fr 0.95fr; }
  @media (max-width: 960px) { .courses-grid.cols-3 { grid-template-columns: 1fr; max-width: 560px; } }
  @media (max-width: 860px) { .courses-grid, .courses-grid.cols-detail { grid-template-columns: 1fr; } }

  /* ============ FILM ============ */
  .film-frame { position: relative; margin-top: 40px; border-radius: var(--r-card); overflow: hidden;
    border: 1px solid var(--line); aspect-ratio: 16/9; background: #000; }
  .film-video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .film-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(35,35,35,.12), rgba(35,35,35,.5)); transition: opacity .4s var(--ease); }
  .film-play { position: absolute; inset: 0; margin: auto; z-index: 2; width: 92px; height: 92px;
    border: none; border-radius: var(--r-pill); cursor: pointer; display: grid; place-items: center;
    background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 44px rgba(0,0,0,.45);
    transition: transform .25s var(--ease), background .25s var(--ease), opacity .35s var(--ease); }
  .film-play:hover { transform: scale(1.06); background: var(--accent-2); }
  .film-play:active { transform: scale(.97); }
  .film-play svg { width: 34px; height: 34px; margin-left: 5px; }
  .film-frame.playing::before, .film-frame.playing .film-play { opacity: 0; pointer-events: none; }
  @media (max-width: 640px) { .film-play { width: 70px; height: 70px; } .film-play svg { width: 27px; height: 27px; } }

  /* ============ TIMELINE ============ */
  .tl-head { max-width: 60ch; }
  .tl-head .lede { margin-top: 18px; }
  .timeline { margin-top: 54px; }
  .tl-group { margin-top: 44px; }
  .tl-group:first-child { margin-top: 0; }
  .tl-dayhead { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
    padding: 0 4px 14px; border-bottom: 2px solid var(--accent); }
  .tl-dayhead .d { font-family: var(--display); text-transform: uppercase; font-weight: 700;
    font-size: clamp(18px, 2vw, 24px); letter-spacing: 0.01em; }
  .tl-dayhead .d-sub { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
  .tl-row {
    display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center;
    padding: 22px 4px; border-bottom: 1px solid var(--line);
    transition: background .2s var(--ease), padding-left .25s var(--ease);
  }
  .tl-row:hover { background: rgba(255,255,255,0.02); padding-left: 14px; }
  .tl-time { font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--accent); }
  .tl-title { font-weight: 700; font-size: 18px; }
  .tl-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
  .tl-tag { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: var(--r-pill); }
  @media (max-width: 700px) {
    .tl-row { grid-template-columns: 1fr; gap: 6px; padding-block: 20px; }
    .tl-tag { justify-self: start; }
  }

  /* ============ VALUES (asymmetric grid) ============ */
  .values { background: var(--bg-2); border-block: 1px solid var(--line); }
  .val-top { max-width: 64ch; }
  .val-top .lede { margin-top: 18px; }
  .val-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
  .val {
    border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px;
    background: var(--surface); transition: transform .3s var(--ease), border-color .3s var(--ease);
  }
  .val:hover { transform: translateY(-3px); border-color: var(--line-2); }
  .val .vnum { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
  .val h3 { font-size: 22px; margin: 14px 0 8px; }
  .val p { color: var(--muted); font-size: 14.5px; margin: 0; }
  .val .vico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 6px; }
  .val.feature { grid-column: span 5; background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
  .val.feature.tinted { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); }
  .val.sm { grid-column: span 4; }
  .val.md { grid-column: span 7; }
  @media (max-width: 860px) {
    .val-top { grid-template-columns: 1fr; gap: 18px; }
    .val.feature, .val.sm, .val.md { grid-column: span 12; }
  }

  /* ============ CLUB (split) ============ */
  .club-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
  .club-visual { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 5/4; }
  .club-visual img { width: 100%; height: 100%; object-fit: cover; }
  .club-list { margin: 28px 0 32px; padding: 0; list-style: none; display: grid; gap: 16px; }
  .club-list li { display: flex; gap: 14px; align-items: flex-start; }
  .club-list .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
  .club-list .ck svg { width: 14px; height: 14px; }
  .club-list b { font-weight: 700; }
  .club-list span { color: var(--muted); }
  @media (max-width: 860px) { .club-grid { grid-template-columns: 1fr; gap: 30px; } .club-visual { order: -1; aspect-ratio: 16/10; } }

  /* ============ PARTNERS ============ */
  .partners { text-align: center; }
  .partner-row { margin-top: 42px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
  .partner {
    display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: var(--r-card); padding: 20px 34px; min-width: 240px; min-height: 132px;
    transition: transform .2s var(--ease);
  }
  .partner:hover { transform: translateY(-3px); }
  .partner img { height: 92px; width: auto; max-width: 340px; object-fit: contain; }
  .partner .pn { font-family: var(--display); text-transform: uppercase; font-weight: 700; letter-spacing: 0.01em; font-size: 18px; color: #232323; }
  .partner-tier { margin-top: 44px; }
  .partner-tier .tier-label { display: block; text-align: center; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
  .partner-tier .partner-row { margin-top: 0; }
  .partner-tier.tier-lead .partner { padding: 28px 52px; min-height: 176px; }
  .partner-tier.tier-lead .partner img { height: 132px; }
  .partner-tier.tier-major .partner { padding: 24px 44px; min-height: 156px; }
  .partner-tier.tier-major .partner img { height: 112px; }

  /* Bandeau partenaires défilant — page d'accueil */
  .partner-strip { padding: 36px 0 40px; text-align: center; }
  .partner-strip .tier-label { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 22px; }
  .partner-marquee { background: var(--accent); overflow: hidden; width: 100%; padding-block: 16px; }
  .partner-marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: scroll 24s linear infinite; }
  .partner-marquee:hover .partner-marquee-track { animation-play-state: paused; }
  .partner-marquee-track a { flex: none; display: inline-flex; align-items: center; }
  .partner-marquee-track img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 1; transition: filter .25s var(--ease); }
  .partner-marquee-track img[src*="pierre-percee"] { height: 52px; }
  .partner-marquee-track a:hover img { filter: none; }
  @media (prefers-reduced-motion: reduce) { .partner-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }
  .partner-strip-link { display: inline-block; margin-top: 22px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; color: var(--muted); transition: color .15s var(--ease); }
  .partner-strip-link:hover { color: var(--accent); }

  /* ============ CTA BAND ============ */
  .cta-band { position: relative; overflow: hidden; }
  .cta-card {
    position: relative; border-radius: var(--r-card); overflow: hidden;
    border: 1px solid var(--line-2); padding: clamp(48px, 7vw, 96px);
    background: var(--surface); text-align: center; isolation: isolate;
  }
  .cta-card .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
  .cta-card::after { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 60%, transparent), rgba(27,27,27,0.86) 72%); }
  .cta-card > *:not(.cta-bg) { position: relative; z-index: 2; }
  .cta-card h2 { font-size: clamp(28px, 4.4vw, 50px); font-weight: 700; }
  .cta-card p { color: var(--muted); max-width: 50ch; margin: 18px auto 0; }
  .cta-card .hero-actions { justify-content: center; margin-top: 30px; }

  /* ============ FOOTER ============ */
  footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 64px 36px; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 32ch; margin: 16px 0 0; }
  .foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin: 0 0 16px; font-weight: 700; }
  .foot-col a, .foot-col p { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 11px; transition: color .15s var(--ease); }
  .foot-col a:hover { color: var(--accent); }
  .foot-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
  .socials { display: flex; gap: 12px; }
  .socials a { width: 38px; height: 38px; border-radius: var(--r-pill); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: all .18s var(--ease); }
  .socials a:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
  .socials svg { width: 18px; height: 18px; }
  @media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
  @media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .foot-brand { grid-column: 1 / -1; } }

  /* ============ SECTION HEAD ============ */
  .sec-head { max-width: 64ch; }
  .sec-head .eyebrow { display: block; margin-bottom: 14px; }
  .sec-head .lede { margin-top: 18px; }

  /* ============ COUNTDOWN BAND ============ */
  .count-band { background: var(--surface); border-bottom: 1px solid var(--line); }
  .count-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-block: 26px; }
  .count-lab { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
  .count-lab b { display: block; font-family: var(--display); color: var(--text); font-size: clamp(18px,2vw,22px); letter-spacing: 0.01em; margin-top: 6px; }
  .count-units { display: flex; gap: 14px; }
  .cu { min-width: 72px; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 14px 10px; }
  .cu .cn { display: block; font-family: var(--mono); font-weight: 600; font-size: clamp(26px,3.2vw,34px); letter-spacing: -0.02em; line-height: 1; }
  .cu .cl { display: block; margin-top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
  @media (max-width: 760px) { .count-inner { justify-content: center; text-align: center; } .count-units { gap: 10px; } .cu { min-width: 60px; padding: 12px 8px; } }

  /* ============ INFO CARDS (lieu, éco, infos pratiques) ============ */
  .icard-grid { margin-top: 52px; display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
  .icard-grid.three { grid-template-columns: repeat(3, 1fr); }
  .icard { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 28px; }
  .icard .ic-ico { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
  .icard h3 { font-size: 20px; margin: 0 0 12px; }
  .icard p { color: var(--muted); font-size: 14.5px; margin: 0; }
  .icard ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
  .icard ul li { position: relative; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
  .icard ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
  .icard ul li b { color: var(--text); font-weight: 700; }
  .icard .eyebrow { display: block; margin-bottom: 12px; }
  .podium-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
  .podium-block { min-width: 0; }
  .pod-head { font-family: var(--display, inherit); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; color: var(--accent); padding-bottom: 10px; }
  .podium-list { list-style: none; margin: 0; padding: 12px 0 0; border-top: 2px solid var(--accent); display: grid; gap: 0; }
  .podium-list li { display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .podium-list li:last-child { border-bottom: 0; }
  .podium-list .pod-rank { font-size: 13px; font-weight: 600; color: var(--accent); }
  .podium-list .pod-rank sup { font-size: 9px; }
  .podium-list .pod-name { color: var(--text); font-size: 15px; font-weight: 500; }
  .podium-list .pod-time { font-size: 14px; color: var(--muted); }
  .podium-cols .podium-list li { grid-template-columns: 22px 1fr; column-gap: 8px; row-gap: 2px; padding: 9px 0; }
  .podium-cols .podium-list .pod-name { grid-column: 2; font-size: 14px; }
  .podium-cols .podium-list .pod-time { grid-column: 2; font-size: 12.5px; }
  @media (max-width: 860px) { .icard-grid, .icard-grid.three { grid-template-columns: 1fr; } }

  /* ============ COURSE EXTRAS (gpx button) ============ */
  .btn-gpx { background: transparent; color: var(--text); border-color: var(--line-2); }
  .btn-gpx:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
  .btn-gpx .ico { width: 17px; height: 17px; }

  /* ============ ROUTE EMBED (OpenRunner) ============ */
  .route-embed { margin: 36px 0 0; }
  .route-embed iframe { width: 100%; height: 600px; border: 1px solid var(--line); border-radius: var(--r-card); display: block; background: var(--surface); filter: grayscale(0.45) saturate(0.8) brightness(1.14) contrast(0.9) sepia(0.06); }
  .route-embed figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 60ch; }
  @media (max-width: 640px) { .route-embed iframe { height: 460px; } }

  /* ============ ELEVATION PROFILE (aux couleurs LOT) ============ */
  .elevation { margin: 20px 0 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: clamp(20px,3vw,30px); }
  .el-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
  .el-head h3 { margin: 6px 0 0; }
  .el-stats { display: flex; gap: 26px; }
  .el-stat { display: flex; flex-direction: column; gap: 2px; }
  .el-stat .v { font-size: 19px; color: var(--accent); font-weight: 700; }
  .el-stat .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
  .el-svg { width: 100%; height: auto; display: block; }
  .el-grid { stroke: var(--line-2); stroke-width: 1; }
  .el-area { fill: url(#elFill); stroke: none; }
  .el-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
  .el-yl, .el-xl { fill: var(--muted); font-family: var(--mono); font-size: 12px; }
  .el-dash { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .5; }
  .el-pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
  .el-ic { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .el-lbl { fill: var(--accent); font-family: var(--font); font-weight: 600; font-size: 15px; }
  .el-lkmc { fill: var(--accent); font-family: var(--mono); font-size: 12.5px; opacity: .78; }
  .el-lic { width: 21px; height: 21px; }
  .el-legend { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
  .el-legend li { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
  .el-lemo { flex: none; display: inline-flex; gap: 4px; align-items: center; }
  .el-lkm { color: var(--accent); font-weight: 700; flex: none; }
  @media (max-width: 640px) { .el-stats { gap: 18px; } .el-stat .v { font-size: 16px; } }

  /* ============ PHOTO GALLERY ============ */
  .photo-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; grid-auto-flow: dense; gap: 14px; }
  .photo-grid figure { margin: 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); position: relative; }
  .photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
  .photo-grid figure:hover img { transform: scale(1.06); }
  .photo-grid .tall { grid-row: span 2; }
  .photo-grid .wide { grid-column: span 2; }
  @media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .photo-grid .wide { grid-column: span 2; } }

  /* ============ NEWSLETTER ============ */
  .news-card { margin-top: 22px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface); padding: clamp(28px,4vw,44px); }
  .news-card h3 { font-size: clamp(22px,2.6vw,30px); }
  .news-card p { color: var(--muted); margin: 12px 0 24px; max-width: 50ch; }
  .news-form { display: flex; gap: 12px; flex-wrap: wrap; max-width: 520px; }
  .news-form input { flex: 1 1 240px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-input);
    color: var(--text); font: inherit; font-size: 15px; padding: 14px 16px; }
  .news-form input::placeholder { color: var(--faint); }
  .news-form input:focus { outline: none; border-color: var(--accent); }
  .news-note { margin-top: 14px; font-size: 12.5px; color: var(--faint); }

  /* ============ SCROLL REVEAL ============ */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  }

  /* ============ ACTIVE NAV (multi-page) ============ */
  .nav-links a[aria-current="page"], .nav-parent[aria-current="page"] { color: var(--text); }
  .nav-links > a[aria-current="page"]::after, .nav-parent[aria-current="page"]:not(.nav-parent)::after { }
  .nav-links > a[aria-current="page"] { position: relative; }
  @media (min-width: 1041px) {
    .nav-links > a[aria-current="page"]::after, .nav-item[data-current="true"] > .nav-parent::after { }
    .nav-links > a[aria-current="page"]::before, .nav-item[data-current="true"] > .nav-parent::before {
      content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px; background: var(--accent);
    }
    .nav-links > a[aria-current="page"], .nav-item[data-current="true"] > .nav-parent { position: relative; }
  }

  /* ============ PAGE HERO (interior pages) ============ */
  .page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
    padding-block: clamp(56px, 9vw, 110px); }
  .page-hero .wrap { position: relative; z-index: 2; }
  .page-hero .crumb { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 18px; }
  .page-hero .crumb a { color: var(--muted); }
  .page-hero .crumb a:hover { color: var(--accent); }
  .page-hero h1 { font-size: clamp(36px, 6vw, 76px); line-height: 1.02; max-width: 16ch; }
  .page-hero h1 em { font-style: normal; color: var(--accent); }
  .page-hero .lede { margin-top: 22px; max-width: 56ch; }
  .page-hero .glow { z-index: 0; }

  /* slim CTA (interior pages) */
  .cta-slim { border-top: 1px solid var(--line); background: var(--bg-2); }
  .cta-slim .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: clamp(40px,6vw,64px); }
  .cta-slim h2 { font-size: clamp(24px,3.2vw,38px); max-width: 18ch; }
  .cta-slim p { color: var(--muted); margin-top: 10px; max-width: 46ch; }

  /* ============ CLICKABLE CARDS (multi-page) ============ */
  a.course { display: block; color: inherit; text-decoration: none; }
  a.icard { color: inherit; text-decoration: none; display: block; transition: transform .3s var(--ease), border-color .3s var(--ease); }
  a.icard:hover { transform: translateY(-3px); border-color: var(--line-2); }
  a.icard h3 { color: var(--accent); }

  /* ============ PHOTOS & VIDÉO NATURE ============ */
  .split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
  .nature-visual { justify-self: end; width: min(100%, 360px); aspect-ratio: 9/16; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: #000; }
  .nature-visual video { width: 100%; height: 100%; object-fit: cover; display: block; }
  @media (max-width: 860px) { .split { grid-template-columns: 1fr; } .nature-visual { justify-self: stretch; width: 100%; aspect-ratio: 4/5; } }
  .wide-photo { margin: 40px 0 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21/9; }
  .wide-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  @media (max-width: 760px) { .wide-photo { aspect-ratio: 16/10; } }
  .photo-strip { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .photo-strip.two { grid-template-columns: repeat(2, 1fr); }
  .photo-strip figure { margin: 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
  .photo-strip.two figure { aspect-ratio: 16/10; }
  .photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
  .photo-strip figure:hover img { transform: scale(1.05); }
  @media (max-width: 860px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } .photo-strip.two { grid-template-columns: 1fr; } }
  .icard-img { display: block; width: calc(100% + 56px); max-width: none; margin: -28px -28px 22px; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r-card) var(--r-card) 0 0; }
  .icard:has(.icard-img) { overflow: hidden; }
  @media (max-width: 640px) {
    .partner-row { gap: 12px; }
    .partner, .partner-tier.tier-lead .partner, .partner-tier.tier-major .partner { padding: 16px 18px; min-height: 0; }
    .partner img { height: 54px; max-width: 38vw; }
    .partner-tier.tier-lead .partner img { height: 96px; max-width: 70vw; }
    .partner-tier.tier-major .partner img { height: 78px; max-width: 60vw; }
    .partner-marquee-track { gap: 44px; }
    .partner-marquee-track img { height: 32px; }
    .partner-marquee-track img[src*="pierre-percee"] { height: 42px; }
  }

  /* sections avec photo (Préparer sa venue) */
  .sec-split { display: grid; grid-template-columns: 1fr minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
  .sec-split.flip .sec-photo { order: -1; }
  .sec-split .sec-head { margin: 0; }
  .sec-photo { margin: 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/2; }
  .sec-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  @media (max-width: 860px) {
    .sec-split { grid-template-columns: 1fr; gap: 24px; }
    .sec-split.flip .sec-photo { order: 0; }
    .sec-photo { aspect-ratio: 16/10; }
  }

  /* titres du méga-menu cliquables */
  .nav-drop.mega a.mega-head { display: block; color: var(--accent); background: none; }
  .nav-drop.mega a.mega-head:hover { color: var(--text); background: none; }
  /* la vidéo ne capte pas le clic (iPhone) : c'est le lien YouTube qui le reçoit */
  .hero-visual video { pointer-events: none; }

  /* cartes entièrement cliquables (lien étiré sur toute la carte) */
  .icard.has-link { position: relative; transition: transform .3s var(--ease), border-color .3s var(--ease); }
  .icard.has-link .card-link { color: inherit; }
  .icard.has-link .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
  .icard.has-link p a { position: relative; z-index: 2; }
  .icard.has-link:hover { transform: translateY(-3px); border-color: var(--line-2); }
  .icard.has-link:hover h3 { color: var(--accent); }
  .icard.has-link:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
  .card-cta { display: inline-block; margin-top: 18px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; color: var(--accent); }

  /* bloc règlement (page Courses) */
  .reglement-card { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
  .reglement-card > div { max-width: 60ch; }
  .reglement-card .eyebrow { display: block; margin-bottom: 10px; }

  /* page Règlement : texte long, sobre */
  .prose { max-width: 760px; }
  .prose h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 48px 0 14px; }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 { font-size: 17px; margin: 28px 0 10px; color: var(--accent); }
  .prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.7; }
  .prose p { margin: 0 0 14px; }
  .prose strong { color: var(--text); }
  .prose ul { margin: 0 0 16px; padding-left: 20px; }
  .prose li { margin-bottom: 8px; }
  .prose a { color: var(--accent); }

  /* pavés 17/37/54 de l'accueil cliquables */
  a.hero-race { color: inherit; text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease); }
  a.hero-race:hover { border-color: var(--accent); transform: translateY(-2px); background: color-mix(in srgb, var(--surface) 85%, transparent); }
  a.hero-race:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =====================================================================
   REFONTE 2027 · direction « éditorial sombre »
   Couche finale : elle remplace le style « cartes arrondies » par une
   mise en page plus éditoriale (angles droits, filets, photos en grand).
   ===================================================================== */
  :root {
    --r-card: 0px; --r-pill: 0px; --r-input: 0px;
    --mono: "Lemon Milk", "Roboto LOT", sans-serif;
    --maxw: 1440px;
    --gutter: clamp(20px, 4vw, 56px);
  }
  .wrap { padding-inline: var(--gutter); }
  h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }

  /* pas d'effets « modèle » : halos, fondus au défilement, cartes qui se soulèvent */
  .glow { display: none !important; }
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* boutons : angles droits, typo de titrage */
  .btn { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; padding: 17px 24px; }
  .btn-primary:hover { background: var(--text); color: var(--bg); transform: none; }
  .btn-ghost { border-color: transparent; border-bottom: 2px solid currentColor; padding-inline: 0; }
  .btn-ghost:hover { border-color: transparent; border-bottom-color: var(--accent); color: var(--accent); transform: none; }
  .btn-gpx { border-radius: 0; }

  /* sur-titres : Lemon Milk, plus de police « machine à écrire » */
  .eyebrow { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .12em; }
  .h-sec { font-size: clamp(32px, 5vw, 72px); line-height: .98; }
  .sec-head { max-width: 72ch; }

  /* cartes d'info → blocs éditoriaux séparés par un filet */
  .icard { background: none; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 26px 0 0; }
  .icard h3 { font-size: clamp(18px, 1.6vw, 22px); }
  .icard p, .icard ul li { font-size: 15.5px; line-height: 1.65; }
  .icard-grid { gap: 40px 48px; }
  a.icard:hover { transform: none; }
  a.icard:hover h3 { color: var(--text); }
  .icard.has-link:hover { transform: none; }
  .icard-img { width: 100%; margin: 0 0 22px; border-radius: 0; aspect-ratio: 4/3; }
  .icard:has(.icard-img) { border-top: 0; padding-top: 0; }
  .card-cta { font-family: var(--display); }

  /* valeurs (page Événement) : même logique */
  .values { background: none; border: 0; }
  .val { background: none !important; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 26px 0 0; }
  .val:hover { transform: none; }
  .val.feature .vico, .val .vico { display: none; }
  .val h3 { font-size: clamp(20px, 2vw, 28px); margin-top: 0; }
  .val-grid { gap: 40px 48px; }

  /* photos : angles droits, pas de cadre */
  .course, .course-img, .photo-grid figure, .photo-strip figure, .wide-photo, .sec-photo,
  .film-frame, .route-embed iframe, .elevation, .nature-visual, .hero-visual, .partner { border-radius: 0 !important; }
  .photo-grid figure, .photo-strip figure, .wide-photo, .sec-photo, .film-frame { border: 0; }
  .photo-grid { gap: 6px; }
  .photo-strip { gap: 6px; }
  .route-embed iframe { border: 0; }

  /* fiches parcours (page Courses) */
  .course { background: none; border: 0; }
  .course:hover { transform: none; }
  .course-img::after { display: none; }
  .course-body { padding: 26px 0 0; }
  .course-body h3 { font-size: clamp(34px, 4vw, 60px); line-height: .95; }
  .course-dist { border-radius: 0; font-family: var(--display); }
  .course-stats { border-top: 1px solid var(--line-2); }

  /* en-têtes des pages intérieures : grande photo */
  .page-hero { border-bottom: 0; padding-block: clamp(64px, 10vw, 140px) clamp(40px, 6vw, 80px); }
  .page-hero .crumb { font-family: var(--display); font-size: 11px; }
  .page-hero h1 { font-size: clamp(44px, 8vw, 128px); line-height: .92; max-width: 14ch; }
  .page-hero.has-img { min-height: min(78vh, 760px); display: flex; align-items: flex-end; }
  .page-hero.has-img .ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
  .page-hero.has-img::after { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(35,35,35,.35) 0%, rgba(35,35,35,.1) 35%, rgba(35,35,35,.92) 100%); }
  .page-hero.has-img .wrap { width: 100%; }
  .page-hero.has-img .lede { color: rgba(255,255,255,.82); }

  /* appel de fin de page (pages intérieures) */
  .cta-slim { background: var(--accent); color: var(--bg); border: 0; }
  .cta-slim .wrap { padding-block: clamp(56px, 8vw, 110px); align-items: flex-end; }
  .cta-slim h2 { font-size: clamp(32px, 5vw, 76px); max-width: 14ch; }
  .cta-slim p { color: rgba(35,35,35,.8); font-size: 17px; }
  .cta-slim .btn-primary { background: var(--bg); color: var(--text); }
  .cta-slim .btn-primary:hover { background: var(--text); color: var(--bg); }

  /* newsletter */
  .news-card { background: none; border: 0; border-top: 1px solid var(--line-2); padding: 40px 0 0; }
  .news-form input { border-radius: 0; }

  /* partenaires (page Communauté) : logos sur blanc, angles droits */
  .partner:hover { transform: none; }

  /* pied de page */
  footer { background: var(--bg); }

  /* ============ ACCUEIL ============ */
  .h-hero { position: relative; height: calc(100svh - 104px); min-height: 600px; overflow: hidden; }
  .h-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .h-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,35,35,.3) 0%, rgba(35,35,35,0) 30%, rgba(35,35,35,.2) 55%, rgba(35,35,35,.94) 100%); }
  .h-hero .inner { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: clamp(32px, 6vh, 72px); }
  .h-hero .when { font-size: 15px; margin-bottom: 20px; }
  .h-hero .when b { color: var(--accent); }
  .h-hero h1 { font-size: clamp(40px, 8.4vw, 150px); line-height: .95; letter-spacing: -.01em; }
  .h-hero h1 .place { display: block; color: var(--accent); font-size: .72em; margin-top: .08em; }
  .nw { white-space: nowrap; }
  .h-hero .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 34px; }
  .h-hero .actions { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
  .h-hero .dist { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); text-align: right; line-height: 1.3; }
  .h-hero .dist span { display: block; color: var(--muted); font-family: var(--font); font-weight: 400; font-size: 14px; }
  @media (max-width: 900px) { .h-hero { height: calc(100svh - 70px); } }
  @media (max-width: 600px) { .h-hero .nw { white-space: normal; } .h-hero h1 { font-size: 12vw; } }

  .h-manifeste { padding-block: clamp(96px, 16vw, 220px); position: relative; overflow: hidden; }
  .h-manifeste p { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 4.8vw, 78px); line-height: 1.04; margin: 0; max-width: 19ch; position: relative; z-index: 1; }
  .h-manifeste p em { font-style: normal; color: var(--accent); }
  .h-manifeste .bolt { position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); height: 120%; pointer-events: none; }
  @media (max-width: 700px) { .h-manifeste .bolt { opacity: .25; right: -30vw; } }

  .sec-top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); }
  .sec-top h2 { font-size: clamp(28px, 3.4vw, 48px); }
  .sec-top a { font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .sec-top a:hover { color: var(--accent); }
  .sec-top .sub { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
  @media (max-width: 640px) { .sec-top { flex-direction: column; align-items: flex-start; gap: 14px; } }

  .h-courses { padding-bottom: clamp(80px, 12vw, 160px); }
  .h-race { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding-block: clamp(28px, 3.5vw, 48px); border-bottom: 1px solid var(--line-2); }
  .h-race .num { font-family: var(--display); font-weight: 700; font-size: clamp(88px, 13vw, 220px); line-height: .8; letter-spacing: -.03em; transition: color .3s; }
  .h-race .num small { font-size: .28em; letter-spacing: 0; vertical-align: top; margin-left: .08em; }
  .h-race .num .star { color: var(--accent); font-size: .28em; vertical-align: top; }
  .h-race .info p { margin: 0 0 18px; color: var(--muted); max-width: 36ch; }
  .h-race .facts { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--display); font-weight: 700; font-size: 14px; }
  .h-race .facts span { display: block; font-family: var(--font); font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
  .h-race .go { display: inline-block; margin-top: 22px; font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
  .h-race .ph { aspect-ratio: 4/3; overflow: hidden; }
  .h-race .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: grayscale(.35); }
  .h-race:hover .ph img { transform: scale(1.04); filter: none; }
  .h-race:hover .num { color: var(--accent); }
  .h-race:hover .num .star { color: var(--text); }
  @media (max-width: 860px) { .h-race { grid-template-columns: 1fr 1fr; } .h-race .ph { grid-column: 1 / -1; order: -1; aspect-ratio: 16/10; } }
  @media (max-width: 520px) { .h-race { grid-template-columns: 1fr; } }

  .h-band { position: relative; height: 88vh; min-height: 520px; overflow: hidden; }
  .h-band > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .h-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,35,35,0) 40%, rgba(35,35,35,.85) 100%); }
  .h-band .inner { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: clamp(32px, 6vw, 72px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
  .h-band h2 { font-size: clamp(34px, 6vw, 96px); max-width: 12ch; line-height: .98; }
  .h-band p { margin: 0; max-width: 34ch; color: rgba(255,255,255,.8); }

  .h-event { padding-block: clamp(96px, 13vw, 180px); }
  .h-event .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
  .h-event video { width: 100%; aspect-ratio: 9/16; object-fit: cover; max-height: 82vh; }
  .h-event h2 { font-size: clamp(32px, 4.6vw, 72px); margin: 18px 0 28px; line-height: .98; }
  .h-event .intro { color: var(--muted); max-width: 44ch; margin: 0 0 48px; }
  .h-list a { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: baseline; padding-block: 26px; border-top: 1px solid var(--line-2); }
  .h-list a:last-child { border-bottom: 1px solid var(--line-2); }
  .h-list .n { font-family: var(--display); color: var(--accent); font-size: 14px; }
  .h-list h3 { font-size: clamp(20px, 2vw, 28px); margin-bottom: 8px; }
  .h-list p { margin: 0; color: var(--muted); font-size: 15px; }
  .h-list .arr { font-family: var(--display); transition: transform .3s; }
  .h-list a:hover .arr { transform: translateX(6px); color: var(--accent); }
  .h-list a:hover h3 { color: var(--accent); }
  @media (max-width: 860px) { .h-event .grid { grid-template-columns: 1fr; } .h-event video { max-height: 70vh; } }

  .h-retour { padding-top: clamp(40px, 6vw, 80px); }
  .h-retour .sec-top { border-bottom: 0; padding-bottom: 36px; }
  .h-photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: min(92vh, 900px); }
  .h-photos img { width: 100%; height: 100%; object-fit: cover; }
  .h-photos .big { grid-row: span 2; }
  @media (max-width: 760px) { .h-photos { grid-template-columns: 1fr 1fr; height: auto; grid-template-rows: none; } .h-photos .big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4/3; } .h-photos img:not(.big) { aspect-ratio: 1; } }

  .h-partners { display: flex; align-items: stretch; background: var(--accent); overflow: hidden; }
  .h-partners .tag { flex: none; position: relative; z-index: 2; display: flex; align-items: center; padding: 0 clamp(20px, 3vw, 44px) 0 var(--gutter);
    background: var(--bg); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .06em; line-height: 1.25; }
  .h-partners .tag::after { content: ""; position: absolute; top: 0; bottom: 0; right: -38px; width: 40px; background: var(--bg); clip-path: polygon(0 0, 100% 0, 5% 100%, 0 100%); }
  .h-partners .ticker { flex: 1; overflow: hidden; padding-block: 40px; padding-left: 56px; }
  .h-partners .track { display: flex; align-items: center; gap: 88px; width: max-content; animation: scroll 26s linear infinite; }
  .h-partners .ticker:hover .track { animation-play-state: paused; }
  .h-partners .track a { flex: none; }
  .h-partners .track img { height: 42px; width: auto; filter: brightness(0) invert(1); }
  .h-partners .track img.pp { height: 56px; }
  @media (max-width: 640px) {
    .h-partners .tag { padding: 0 8px 0 var(--gutter); font-size: 10px; letter-spacing: .05em; }
    .h-partners .tag::after { right: -22px; width: 24px; }
    .h-partners .ticker { padding: 24px 0 24px 34px; }
    .h-partners .track { gap: 44px; }
    .h-partners .track img { height: 28px; } .h-partners .track img.pp { height: 38px; }
  }
  @media (prefers-reduced-motion: reduce) { .h-partners .track { animation: none; flex-wrap: wrap; } }

  .h-news { padding-block: clamp(96px, 12vw, 160px); }
  .h-news .row { display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: baseline; padding-block: 28px; border-bottom: 1px solid var(--line-2); }
  .h-news .d { font-family: var(--display); font-size: 12px; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
  .h-news h3 { font-size: clamp(20px, 2.2vw, 30px); }
  .h-news p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
  .h-news a.row:hover h3 { color: var(--accent); }
  @media (max-width: 700px) { .h-news .row { grid-template-columns: 1fr; gap: 8px; } }

  .h-newsletter { padding-bottom: clamp(80px, 10vw, 140px); }

  .h-cta { position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: flex-end; }
  .h-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) contrast(1.05); }
  .h-cta::before { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(35,35,35,.94) 0%, rgba(35,35,35,.7) 45%, rgba(35,35,35,.25) 100%), linear-gradient(0deg, rgba(35,35,35,.9) 0%, rgba(35,35,35,0) 45%); }
  .h-cta .wrap { position: relative; z-index: 2; width: 100%; padding-block: clamp(72px, 10vw, 140px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
  .h-cta h2 { font-size: clamp(40px, 7.4vw, 124px); max-width: 12ch; line-height: .95; margin-top: 22px; }
  .h-cta p { margin: 28px 0 40px; font-size: 18px; max-width: 42ch; color: rgba(255,255,255,.78); }
  .h-cta .btns { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
  .h-cta .picto { width: clamp(110px, 16vw, 240px); }
  .h-cta .picto .p1 { fill: #fff; } .h-cta .picto .p2 { fill: var(--accent); }
  @media (max-width: 700px) { .h-cta .wrap { grid-template-columns: 1fr; } .h-cta .picto { display: none; } }
  /* appel de fin de page : photo de la ligne de départ plutôt qu'un aplat */
  .cta-slim { background: linear-gradient(90deg, rgba(35,35,35,.96) 0%, rgba(35,35,35,.75) 55%, rgba(35,35,35,.45) 100%), url("../img/programme-depart.jpg") center 40% / cover no-repeat; color: var(--text); }
  .cta-slim p { color: rgba(255,255,255,.75); }
  .cta-slim .btn-primary { background: var(--accent); color: var(--on-accent); }
  .cta-slim .btn-primary:hover { background: var(--text); color: var(--bg); }
  @media (max-width: 860px) { .val-grid { gap: 32px 0; } .icard-grid { gap: 32px; } .h-hero .dist { text-align: left; } }

  /* touches d'orange : filet d'accent sur les blocs, chiffres clés, bouton de trace */
  .icard, .val { position: relative; }
  .icard::before, .val::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--accent); }
  .icard:has(.icard-img)::before { display: none; }
  .course-stats .v { color: var(--accent); }
  .btn-gpx { background: var(--accent); color: var(--on-accent); border: 0; }
  .btn-gpx:hover { background: var(--text); color: var(--bg); }

  /* compte à rebours (accueil) */
  .count-band { background: var(--bg); border-bottom: 1px solid var(--line-2); }
  .count-inner { padding-block: clamp(28px, 4vw, 44px); gap: 28px 48px; }
  .count-lab { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .12em; }
  .count-lab b { font-size: clamp(20px, 2.4vw, 32px); margin-top: 10px; }
  .count-units { gap: 0; }
  .count-units .cu { background: none; border: 0; border-left: 1px solid var(--line-2); border-radius: 0; padding: 0 clamp(18px, 3vw, 44px); min-width: 0; text-align: left; }
  .count-units .cu:first-child { border-left: 0; padding-left: 0; }
  .cu .cn { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 72px); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
  .count-units .cu:first-child .cn { color: var(--accent); }
  .cu .cl { display: block; margin-top: 10px; font-family: var(--display); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
  @media (max-width: 760px) { .count-inner { justify-content: flex-start; text-align: left; } .count-units .cu { padding: 12px 10px; } .count-units .cu.brk { padding: 12px 14px 12px 12px; margin-right: 4px; } .cu .cn { font-size: 30px; } .cu .cl { font-size: 10px; letter-spacing: .08em; } }

  /* ============ VARIÉTÉ DE MISES EN PAGE (pages d'infos) ============ */
  /* colonnes gardées plus longtemps avant de s'empiler */
  @media (max-width: 860px) and (min-width: 700px) { .icard-grid.three { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

  /* étapes numérotées */
  .icard-grid.steps { counter-reset: step; }
  .steps .icard { counter-increment: step; }
  .steps .icard h3::before { content: "0" counter(step); display: block; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; color: var(--accent); margin-bottom: 18px; letter-spacing: -.02em; }

  /* lignes : titre à gauche, texte à droite */
  .icard-grid.rows { grid-template-columns: 1fr; gap: 0; }
  .rows .icard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 48px; align-items: baseline; padding-block: 28px; }
  .rows .icard:last-child { border-bottom: 1px solid var(--line-2); }
  .rows .icard h3 { margin: 0; font-size: clamp(20px, 2.2vw, 30px); }
  .rows .icard p { font-size: 16.5px; margin: 0; }
  @media (max-width: 700px) { .rows .icard { grid-template-columns: 1fr; } }

  /* FAQ en accordéon */
  .faq-list { margin-top: 48px; border-bottom: 1px solid var(--line-2); }
  .faq-item { border-top: 1px solid var(--line-2); }
  .faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0;
    font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(17px, 1.8vw, 24px); line-height: 1.15; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: "+"; flex: none; font-size: 30px; line-height: 1; color: var(--accent); transition: transform .25s var(--ease); }
  .faq-item[open] summary::after { transform: rotate(45deg); }
  .faq-item summary:hover { color: var(--accent); }
  .faq-item p { margin: 0; padding: 0 0 28px; max-width: 70ch; color: var(--muted); font-size: 16.5px; line-height: 1.7; }

/* =====================================================================
   SIGNATURES LIGHT ON : crochets, biais, repères GPS, micro-détails
   ===================================================================== */
  /* 1 · crochets du picto : deux coins [ ] autour d'un élément */
  .brk { position: relative; padding: 14px 18px; }
  .brk::before, .brk::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); pointer-events: none; }
  .brk::before { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
  .brk::after { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
  .count-units .cu.brk { padding: 12px 22px 12px 18px; border-left: 0; margin-right: clamp(18px, 3vw, 44px); }
  /* toutes les unités sur la même ligne de base que celle encadrée */
  .count-units .cu { padding-block: 12px; }
  /* version incrustée dans une image */
  .brk-in { position: relative; }
  .brk-in::before, .brk-in::after { content: ""; display: block !important; position: absolute; z-index: 3; width: 34px; height: 34px; border: 0 solid #fff; pointer-events: none; background: none !important; }
  .brk-in::before { top: 16px; left: 16px; border-top-width: 3px; border-left-width: 3px; }
  .brk-in::after { inset: auto 16px 16px auto; border-bottom-width: 3px; border-right-width: 3px; }

  /* 2 · coupe en biais, même angle que l'éclair du logo (avec parcimonie) */
  .cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4.5vw), 0 100%); }

  /* 5 · repères GPS */
  .geo { position: absolute; z-index: 3; top: 22px; right: var(--gutter); font-family: var(--display); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
  .geo::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--accent); vertical-align: 1px; }
  @media (max-width: 600px) { .geo { font-size: 9px; letter-spacing: .1em; right: auto; left: var(--gutter); top: 16px; } }

  /* 7 · léger grain unifié sur les grandes images (sans toucher à la retouche LIGHT ON) */
  .h-hero::before, .h-band::before, .page-hero.has-img::before, .h-cta::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

  /* 8 · micro-détails au survol */
  /* soulignement qui se dessine */
  .sec-top a, .h-race .go, footer .foot-col a, .crumb a, .partner-strip-link {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
  .sec-top a:hover, .h-race:hover .go, footer .foot-col a:hover, .crumb a:hover { background-size: 100% 1px; }
  /* éclair qui apparaît dans les boutons S'inscrire */
  .btn-go::before { content: ""; width: 0; height: 18px; margin-right: -10px; background: url("../logo/eclair.svg") center / contain no-repeat;
    filter: brightness(0) saturate(100%) invert(12%); transition: width .25s var(--ease), margin .25s var(--ease); }
  .btn-go:hover::before { width: 9px; margin-right: 0; }
  .btn-go .ico { transition: transform .25s var(--ease); }
  .btn-go:hover .ico { transform: translateX(3px); }

  /* 6 · menu mobile plein écran */
  @media (max-width: 1040px) {
    .nav-links { position: fixed !important; top: 70px !important; left: 0; right: 0; bottom: 0; max-height: none !important; height: calc(100dvh - 70px);
      padding: 28px var(--gutter) 120px !important; background: var(--bg) !important; border: 0 !important; gap: 0 !important; overflow-y: auto;
      transform: translateY(-12px); }
    .nav-links.open { background: var(--bg) url("../logo/eclair.svg") right var(--gutter) bottom 32px / 40px 104px no-repeat !important; }
    .nav-links > a, .nav-links .nav-parent { font-family: var(--display) !important; font-weight: 700; font-size: clamp(24px, 6.4vw, 38px) !important; color: var(--text) !important; padding: 14px 0 !important; line-height: 1.05; border-top: 1px solid var(--line-2); }
    .nav-links .nav-item:first-child .nav-parent { border-top: 0; }
    .nav-drop { border-left: 0 !important; padding: 0 0 14px !important; margin: 0 !important; }
    .nav-drop a { font-size: 14px !important; padding: 7px 0 !important; color: var(--muted) !important; }
    .nav-drop a:hover { color: var(--accent) !important; }
    .nav-drop.mega .mega-head { color: var(--accent) !important; font-size: 11px !important; padding: 12px 0 4px !important; }
  }
  @media (max-width: 520px) { .nav-links { top: 64px !important; height: calc(100dvh - 64px); } }
  .h-hero.cut .inner { padding-bottom: calc(clamp(32px, 6vh, 72px) + 4.5vw); }
  .page-hero.cut { padding-bottom: calc(clamp(40px, 6vw, 80px) + 4.5vw); }
  /* fiches parcours : le badge orange devient le coin haut-gauche du cadre,
     le coin blanc bas-droit lui répond en diagonale (comme le picto) */
  .course-img.brk-in::before { display: none !important; }
  .course-img .course-dist { top: 20px; left: 20px; z-index: 4; }
  .course-img.brk-in::after { inset: auto 20px 20px auto; width: 40px; height: 40px; }

  /* raccourcis du double menu, en tête du menu mobile */
  .nav-quick { display: none; }
  @media (max-width: 1040px) {
    .nav-links .nav-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-bottom: 22px; }
    .nav-links .nav-quick a { display: block; padding: 12px 14px !important; border: 1px solid var(--line-2); border-top: 1px solid var(--line-2) !important;
      font-family: var(--display) !important; font-weight: 700; font-size: 11px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--text) !important; line-height: 1.2; }
    .nav-links .nav-quick a::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--accent); vertical-align: 1px; }
    .nav-links .nav-quick a:hover { border-color: var(--accent); }
  }

  /* sur-titre des en-têtes de page (fait écho au menu) */
  .page-kicker { display: inline-block; margin-bottom: 20px; font-size: 13px; letter-spacing: .14em; }
  .page-kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--accent); vertical-align: 1px; }
  .page-hero.has-img .page-kicker { text-shadow: 0 1px 14px rgba(0,0,0,.7); }

  /* point final des titres : un carré orange (dans la DA, comme les repères) */
  .sq { display: inline-block; width: .19em; height: .19em; margin-left: .07em; background: var(--accent);
    color: transparent; overflow: hidden; line-height: 0; vertical-align: baseline; }

  /* logo d'en-tête : fichier recadré (sans marges internes), un peu plus grand, un peu plus près du bord */
  .nav .brand img { height: 46px; width: auto; }
  header.nav > .wrap { padding-inline: clamp(20px, 3vw, 40px); }
  @media (max-width: 520px) { .nav .brand img { height: 36px; } }

  /* bouton S'inscrire de l'en-tête : même hauteur que l'éclair (le « N ») du logo, haut et bas alignés */
  .nav-cta .btn-primary { height: calc(46px * 920 / 940); padding: 0 22px; line-height: 1; }
  @media (max-width: 520px) { .nav-cta .btn-primary { height: calc(36px * 920 / 940); padding: 0 14px; font-size: 12px; } }
  /* boutons de la vidéo d'accueil : même dimension que le bouton de l'en-tête */
  .h-hero .actions .btn { height: calc(46px * 920 / 940); padding: 0 22px; line-height: 1; }
  .h-hero .actions .btn-ghost { padding: 0; }
  @media (max-width: 520px) { .h-hero .actions .btn { height: calc(36px * 920 / 940); padding: 0 14px; font-size: 12px; } .h-hero .actions .btn-ghost { padding: 0; } }

  /* manifeste sur téléphone : l'éclair entier, sous le texte, à droite (comme sur ordinateur) */
  @media (max-width: 700px) {
    .h-manifeste { padding-block: 72px; }
    .h-manifeste p { font-size: clamp(21px, 6vw, 30px); max-width: calc(100% - 84px); }
    .h-manifeste .bolt { top: 50%; bottom: auto; right: var(--gutter); transform: translateY(-50%); height: calc(100% - 110px); opacity: 1; }
  }

  /* confort : cibles tactiles assez grandes et ancres qui ne passent pas sous l'en-tête */
  .sec-top a { display: inline-block; padding-block: 12px; }
  [id] { scroll-margin-top: 110px; }
  @media (max-width: 1040px) { [id] { scroll-margin-top: 80px; } }
