/* =========================================================
   Ultra Trail de Pons — feuille de style
   Mobile d'abord. Couleurs reprises du logo (orange / rouge)
   et du bleu historique du site.
   ========================================================= */
/* Variables (couleurs, polices, rayons) : assets/css/theme.css, partagé avec l'appli des bénévoles */
/* Contraste (WCAG AA, 4,5:1) : l'orange vif de la charte reste pour les fonds sombres et les décors.
   --orange-d : texte orange sur fond clair (surcharge la valeur de theme.css, pour ce site seulement) ;
   --orange-btn : début des dégradés et fonds qui portent du texte blanc. */
:root { --orange-d: #ae4707; --orange-btn: #bf560a; color-scheme: light; }

/* Polices hébergées sur le site (Barlow Condensed et Inter, licence OFL) : plus de requête vers Google Fonts, sous-ensembles latin et latin étendu */
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700i-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700i-latin.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: 600; font-display: swap; src: url('../fonts/barlow-condensed-600-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600-latin.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-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700-latin.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-800-latin-ext.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-20C4, 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-800-latin.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: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-variable-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-variable-latin.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; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--orange-d); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--night); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 820px; }
.section { padding: 56px 0; }
.section-tight { padding: 28px 0 56px; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--night); color: #fff; }
.muted { color: var(--muted); }

.eyebrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); font-size: .95rem; margin-bottom: .4em; }
:is(.section-dark, .page-hero) .eyebrow { color: rgba(255,255,255,.72); letter-spacing: .2em; }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.8rem); text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.6rem); text-transform: uppercase; line-height: 1.05; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.section-dark .lead, .section-dark p { color: rgba(255,255,255,.8); }

/* ---------------------------------------------------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.3em; border-radius: 4px; border: 2px solid transparent; font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .09em; text-decoration: none; line-height: 1.1; transition: transform .15s, background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 38px; padding: .5em 1em; font-size: .76rem; }
.btn-lg { min-height: 56px; padding: .8em 1.9em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange-btn); color: #fff; box-shadow: none; }
.btn-primary:hover { color: #fff; background: #a24607; }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { color: var(--orange-d); }
.btn-ghost { border-color: var(--night); color: var(--night); background: transparent; }
.btn-ghost:hover { background: var(--night); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--night); }
.btn-soft { background: #eef3f6; color: var(--blue); }
.btn-soft:hover { background: #dde8ef; color: var(--blue); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-disabled { background: var(--sand); color: var(--muted); cursor: default; }
.btn-disabled:hover { transform: none; }
.hero-next { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: rgba(255,255,255,.8); margin: 0; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---------------------------------------------------- annonce + header */
/* Jour J : bandeau « En direct » et blocs live */
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: live-pulse 1.6s infinite; vertical-align: middle; }
.live-strip { background: var(--red); color: #fff; font-size: .9rem; }
.live-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 7px; padding-bottom: 7px; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; background: rgba(0,0,0,.18); padding: 3px 10px; border-radius: 999px; margin: 0; }
.live-strip-title { font-weight: 600; }
.live-strip-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; }
.live-strip-links a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 640px) { .live-strip-title { display: none; } .live-strip-links { margin-left: 0; } }
.cta-live { background: var(--red); border-color: var(--red); }
.cta-live:hover { background: #8f1015; border-color: #8f1015; }
.live-hero { margin-top: 18px; max-width: 520px; }
.live-badge-lg { background: var(--red); font-size: .85rem; padding: 6px 14px; }
.live-next-title { margin: 14px 0 6px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.live-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.live-next li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 8px 12px; backdrop-filter: blur(6px); }
.live-next li.is-now { border-color: rgba(255,255,255,.6); background: rgba(179,23,29,.55); }
.live-next time { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.live-next a { color: #fff; font-weight: 600; text-decoration: none; line-height: 1.25; }
.live-next a:hover { text-decoration: underline; }
.live-when { font-size: .78rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.quick-card.is-live { outline: 2px solid var(--red); }
.quick-card.is-live .live-dot { background: var(--red); animation: none; margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.annonce { background: var(--red); color: #fff; font-size: .9rem; font-weight: 600; text-align: center; }
.annonce .wrap { padding-top: 8px; padding-bottom: 8px; }
.annonce a { color: #fff; text-decoration: none; }

/* Le flou est porte par ::before : un backdrop-filter sur l'en-tete lui-meme
   deviendrait le repere du menu mobile en position fixe (menu decale, page elargie). */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(0, 0, 0,.08); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(250, 246, 238, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); max-width: 1440px; }
.brand-text { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night); margin-right: auto; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; font-family: var(--display); text-transform: uppercase; line-height: .95; }
.brand-text strong { font-size: 1.25rem; font-weight: 800; }
.brand-text span { font-size: 1rem; font-weight: 700; color: var(--orange-d); letter-spacing: .08em; }

.burger { width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--night); display: grid; place-content: center; gap: 5px; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header-cta { display: none; }

.main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--night); padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
.main-nav.is-open { transform: none; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .nav-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 4px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.7rem; font-weight: 700; text-transform: uppercase; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: none; cursor: pointer; text-align: left; }
.main-nav .nav-top[aria-current="page"], .main-nav .nav-top.is-current { color: var(--orange); }
.caret { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-parent[aria-expanded="true"] .caret { transform: rotate(180deg); }
/* mobile : sections depliables */
.nav-panel { display: none; padding: 4px 0 12px 12px; }
.nav-parent[aria-expanded="true"] + .nav-panel { display: block; }
.nav-sub a { display: block; padding: 9px 4px; color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.nav-sub a[aria-current="page"] { color: var(--orange); }
.mega-cats { display: none; }
.nav-ink { display: none; }
.nav-social { display: flex; gap: 12px; margin-top: 24px; }
.nav-social a, .social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.nav-social a:hover, .social a:hover { background: var(--orange-btn); color: #fff; }
body.nav-open { overflow: hidden; }

/* Mini compte a rebours « J-324 » */
.header-countdown { display: none; align-items: baseline; gap: 1px; padding: 4px 11px; border-radius: 999px; background: var(--night); color: var(--gold); text-decoration: none; font-family: var(--display); line-height: 1.1; transition: transform .2s; }
.header-countdown span { font-size: .85rem; font-weight: 700; }
.header-countdown strong { font-size: 1.15rem; font-weight: 800; }
.header-countdown:hover { transform: translateY(-1px); color: var(--gold); }
@media (min-width: 560px) { .header-countdown { display: inline-flex; } }

/* En-tete : ombre et logo resserre au defilement */
.site-header { transition: box-shadow .3s, border-color .3s; }
.site-header::before { transition: background .35s, opacity .35s; }
/* logo reduit au defilement : transform seulement (pas de recalcul de mise en page) ; le texte rattrape les 10 px liberes */
.brand img { transform-origin: left center; transition: transform .3s; }
.brand-text { transition: transform .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0,.10); }
.site-header.is-scrolled .brand img { transform: scale(.808); }
.site-header.is-scrolled .brand-text { transform: translateX(-10px); }

/* Accueil : en-tete transparent pose sur la video, plein des qu'on defile */
.site-header.is-overlay { position: fixed; left: 0; right: 0; border-color: transparent; }
.site-header.is-overlay::before { background: linear-gradient(rgba(0, 0, 0,.55), rgba(0, 0, 0,0)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-overlay .brand, .site-header.is-overlay .brand-text strong { color: #fff; }
.site-header.is-overlay .burger { background: rgba(255,255,255,.16); }
.site-header.is-overlay.is-scrolled { border-color: rgba(0, 0, 0,.08); }
.site-header.is-overlay.is-scrolled::before { background: rgba(250, 246, 238, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-header.is-overlay.is-scrolled .brand, .site-header.is-overlay.is-scrolled .brand-text strong { color: var(--night); }
.site-header.is-overlay.is-scrolled .burger { background: var(--night); }
body.has-overlay .hero { min-height: 100svh; }
body.has-overlay .hero-content { padding-top: calc(var(--header-h) + 60px); }
body.has-overlay .hero-pause { top: calc(var(--header-h) + 14px); }
body.nav-open .site-header.is-overlay::before { background: var(--night); }

@media (min-width: 1200px) {
  .burger { display: none; }
  .header-cta { display: inline-flex; }
  .main-nav { position: static; transform: none; visibility: visible; background: none; padding: 0; overflow: visible; display: flex; align-items: center; }
  .nav-list { position: relative; display: flex; gap: 2px; }
  .main-nav .nav-top { width: auto; font-family: var(--font); font-size: .95rem; font-weight: 600; text-transform: none; color: var(--ink); padding: 10px 12px; border: 0; border-radius: 10px; white-space: nowrap; gap: 5px; }
  .main-nav .nav-top:hover, .has-sub:hover > .nav-top, .nav-parent[aria-expanded="true"] { background: rgba(0, 0, 0,.06); color: var(--ink); }
  .main-nav .nav-top[aria-current="page"], .main-nav .nav-top.is-current { color: var(--orange-d); }
  .main-nav .nav-extra, .nav-social { display: none; }
  .caret { width: 11px; height: 11px; }

  /* soulignement orange qui glisse sous le lien survole (place par main.js) */
  .nav-ink { display: block; position: absolute; left: 0; bottom: 2px; height: 3px; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--orange), var(--red)); pointer-events: none; opacity: 0;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), width .35s cubic-bezier(.2,.7,.2,1), opacity .25s; }
  .nav-ink.is-on { opacity: 1; }

  /* sous-menus : ouverture au survol, au clavier ou au clic */
  .has-sub { position: relative; }
  .nav-panel { display: block; position: absolute; top: calc(100% + 10px); left: 50%; min-width: 240px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0,.22); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* pont : la souris peut descendre sans refermer */
  .has-sub:hover > .nav-panel, .has-sub:focus-within > .nav-panel, .nav-parent[aria-expanded="true"] + .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .2s; }
  .has-sub:hover .caret { transform: rotate(180deg); }
  .nav-sub a { color: var(--ink); font-size: .95rem; padding: 10px 12px; border-radius: 10px; white-space: nowrap; transition: background .15s, color .15s, padding .15s; }
  .nav-sub a:hover { background: var(--cream); color: var(--orange-d); padding-left: 16px; }
  .nav-sub a[aria-current="page"] { color: var(--orange-d); }

  /* grand panneau « Les courses » : categories en couleur + liens utiles */
  .is-mega > .nav-panel { display: grid; grid-template-columns: 1fr 230px; gap: 10px; width: 640px; left: 0; transform: translate(0, 8px); }
  .is-mega:hover > .nav-panel, .is-mega:focus-within > .nav-panel, .is-mega .nav-parent[aria-expanded="true"] + .nav-panel { transform: none; }
  .mega-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mega-cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 96px; padding: 12px 14px; border-radius: 12px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .2s; }
  .mega-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; }
  .mega-cat.cat-defis::before { background: linear-gradient(150deg, #2f8be0, #123f7a); }
  .mega-cat.cat-trails::before { background: linear-gradient(150deg, #ff8a1f, #e02a1c); }
  .mega-cat.cat-jeunes::before { background: linear-gradient(150deg, #2fc46e, #12713f); }
  .mega-cat.cat-randos::before { background: linear-gradient(150deg, #f0a91e, #c2610f); }
  .mega-cat strong { font-family: var(--display); text-transform: uppercase; font-size: 1.2rem; line-height: 1; }
  .mega-cat span { font-size: .78rem; opacity: .9; line-height: 1.25; margin-top: 3px; }
  .mega-cat:hover { transform: translateY(-2px); color: #fff; }
  .is-mega .nav-sub { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); padding-left: 6px; }

  /* en-tete transparent (accueil) : liens en blanc sur la video */
  .site-header.is-overlay:not(.is-scrolled) .nav-top { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
  .site-header.is-overlay:not(.is-scrolled) .nav-top:hover, .site-header.is-overlay:not(.is-scrolled) .has-sub:hover > .nav-top,
  .site-header.is-overlay:not(.is-scrolled) .nav-parent[aria-expanded="true"] { background: rgba(255,255,255,.16); color: #fff; }
  .site-header.is-overlay:not(.is-scrolled) .header-countdown { background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
}
@media (min-width: 1200px) and (max-width: 1299px) {
  .main-nav .nav-top { padding: 10px 9px; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) { .nav-ink, .nav-panel, .brand img, .brand-text { transition: none; } }
/* ---------------------------------------------------- hero */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity 1s; }
.hero-media video.is-ready { opacity: 1; }
.hero-pause { position: absolute; z-index: 3; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0, 0, 0,.55); color: #fff; font-size: .8rem; cursor: pointer; backdrop-filter: blur(4px); }
.hero-pause:hover, .hero-pause:focus-visible { background: rgba(0, 0, 0,.85); }
.hero-pause[hidden] { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0,.25) 0%, rgba(0, 0, 0,.35) 40%, rgba(0, 0, 0,.92) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 72px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.hero-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(3.2rem, 14vw, 7.5rem); line-height: .86; margin: 14px 0 10px; letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0,0,0,.3); }
.hero-title span { display: block; }
.hero-title .accent { color: var(--orange); font-style: italic; }
.hero-date { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2.3rem); text-transform: uppercase; color: var(--gold); margin-bottom: .2em; }
.hero-slogan { font-size: 1.1rem; max-width: 34ch; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-actions .btn { flex: 1 1 200px; }
/* le second bouton de l'accueil est un simple contour */
.hero-actions .btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.hero-actions .btn-light:hover { background: #fff; color: var(--night); }
.hero-scroll { display: none; position: absolute; z-index: 2; bottom: 18px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrolly 1.8s infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 8px; margin-top: 18px; }
.countdown div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 8px 4px; text-align: center; backdrop-filter: blur(6px); }
.countdown strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; }
.countdown span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.countdown-wrap { margin-top: 18px; width: max-content; max-width: 100%; }
.countdown-wrap .countdown { margin-top: 6px; }
.countdown-label { margin: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.countdown div { overflow: hidden; }
.countdown strong.tick { animation: tick .45s cubic-bezier(.2,.7,.2,1); }
@keyframes tick { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
.countdown .cd-sec { border-color: rgba(246,196,83,.55); }
.countdown .cd-sec strong { color: var(--gold); }
.countdown-bar { margin-top: 10px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.countdown-bar span { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--orange), var(--gold)); border-radius: inherit; animation: grow 1.6s .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .countdown strong.tick, .countdown-bar span { animation: none; } }

@media (min-width: 768px) {
  .hero { align-items: center; }
  .hero-scroll { display: block; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ---------------------------------------------------- acces rapides */
.quick { position: relative; z-index: 3; margin-top: -36px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.quick-card .ic { width: 30px; height: 30px; color: var(--blue); margin-bottom: 6px; }
.quick-card strong { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; line-height: 1.1; }
.quick-card span { font-size: .85rem; color: var(--muted); line-height: 1.35; }
@media (min-width: 900px) { .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .quick-card { padding: 22px; } }

/* ---------------------------------------------------- blocs accueil */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.features li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.features strong { font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; }
.features p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.feature-emoji { font-size: 1.8rem; line-height: 1; width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--sand); border-radius: 12px; }
/* Accueil « Pourquoi participer ? » : titre et chapo en tete, points en grille compacte */
.why-head { display: grid; gap: 8px 64px; align-items: end; margin-bottom: 32px; }
.why-head .lead { margin: 0 0 16px; }
@media (min-width: 900px) { .why-head { grid-template-columns: 1.1fr 1fr; } }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.features-grid li { padding: 16px; }
.features-grid strong { font-size: 1.1rem; }
.features-grid .feature-emoji { width: 44px; height: 44px; font-size: 1.5rem; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head .h2 { margin: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.cat-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 160px; padding: 18px; border-radius: var(--radius); color: #fff; text-decoration: none; overflow: hidden; background: var(--night-2); isolation: isolate; transition: transform .2s; }
.cat-card:hover { transform: translateY(-3px); color: #fff; }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 1; }
.cat-defis::before { background: linear-gradient(150deg, #2f8be0, #123f7a); }
.cat-trails::before { background: linear-gradient(150deg, #ff8a1f, #e02a1c); }
.cat-jeunes::before { background: linear-gradient(150deg, #2fc46e, #12713f); }
.cat-randos::before { background: linear-gradient(150deg, #f0a91e, #c2610f); }
.cat-card strong { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.cat-card span { font-size: .85rem; opacity: .85; line-height: 1.3; margin-top: 4px; }
.cat-count { position: absolute; top: 10px; right: 14px; font-family: var(--display); font-size: 3.2rem; font-weight: 800; opacity: .25 !important; line-height: 1; }

/* Accueil : l'UTP en chiffres */
.figures-band { padding-top: 8px; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.figure { position: relative; padding: 18px 16px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.figure::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--orange), var(--red)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s .2s cubic-bezier(.2,.7,.2,1); }
.figure:not(.reveal)::before, .figure.is-in::before { transform: scaleX(1); }
.figure strong { display: block; font-family: var(--display); font-size: clamp(2.1rem, 7vw, 3rem); line-height: 1; color: var(--night); font-variant-numeric: tabular-nums; white-space: nowrap; }
.figure span { display: block; font-weight: 700; margin-top: 6px; line-height: 1.25; }
.figure small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 28px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--night); padding: 18px 16px; display: flex; flex-direction: column; }
.stat strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--gold); }
.stat span { font-weight: 600; font-size: .92rem; margin-top: 4px; }
.stat small { color: rgba(255,255,255,.6); }

/* Accueil : mur de photos (deux rangees qui defilent en sens inverse, pause au survol) */
.photo-wall-section { overflow: hidden; }
.photo-wall { display: grid; gap: 12px; }
.pw-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pw-track { display: flex; gap: 12px; width: max-content; animation: pw-scroll 70s linear infinite; }
.pw-reverse .pw-track { animation-direction: reverse; animation-duration: 80s; }
.photo-wall:hover .pw-track, .photo-wall:focus-within .pw-track { animation-play-state: paused; }
@keyframes pw-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
.pw-item { position: relative; display: block; height: 220px; flex: none; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.pw-item img { height: 100%; width: auto; max-width: 420px; min-width: 150px; object-fit: cover; display: block; opacity: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s, opacity .5s; }
.pw-item img.is-loaded, .pw-item noscript + img { opacity: 1; }
.pw-item noscript img { height: 100%; width: auto; }
.pw-item:hover img, .pw-item:focus-visible img { transform: scale(1.07); filter: saturate(1.15); }
.pw-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.25; background: linear-gradient(transparent, rgba(0, 0, 0,.85)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.pw-item:hover .pw-caption, .pw-item:focus-visible .pw-caption { opacity: 1; transform: none; }
@media (max-width: 640px) { .pw-item { height: 150px; } .pw-item img { max-width: 260px; min-width: 110px; } }
@media (prefers-reduced-motion: reduce) {
  .pw-track { animation: none; }
  .pw-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .pw-track > [aria-hidden] { display: none; }
}

/* Accueil : temoignages (carrousel) */
.testimonials { position: relative; }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; }
.t-track::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .t-track { grid-auto-columns: calc(50% - 8px); } }
@media (min-width: 1100px) { .t-track { grid-auto-columns: calc(33.333% - 11px); } }
.testimonial { scroll-snap-align: start; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; position: relative; }
.testimonial::before { content: "“"; position: absolute; top: -6px; right: 16px; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--orange); opacity: .25; }
.testimonial blockquote { margin: 0; }
.testimonial p { margin: 0; font-size: 1rem; line-height: 1.6; }
.testimonial figcaption { display: flex; align-items: center; gap: 10px; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption small { color: var(--muted); font-size: .82rem; }
.t-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--night)); }
.t-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.t-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--night); }
.t-btn:hover { border-color: var(--night); }
.t-dots { display: flex; gap: 6px; }
.t-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.t-dots button[aria-current="true"] { width: 24px; border-radius: 6px; background: var(--orange); }

/* Formulaires : deux champs cote a cote, case a cocher */
.field-row { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.field .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; line-height: 1.4; }
.field .check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--orange); }

.section-band { background: linear-gradient(120deg, var(--night) 0%, var(--blue) 100%); color: #fff; }
.band { display: grid; gap: 20px; align-items: center; }
.band p { color: rgba(255,255,255,.85); margin: 0; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band-actions .btn { flex: 1 1 220px; }
@media (min-width: 900px) { .band { grid-template-columns: 1fr auto; } .band-actions .btn { flex: 0 0 auto; } }

/* ---------------------------------------------------- cartes articles */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-img { position: relative; aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img-empty { background: linear-gradient(135deg, var(--night), var(--blue)); }
.card-img-empty img { object-fit: contain; padding: 18%; opacity: .9; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--night); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-body { padding: 16px 18px 20px; }
.card-body time { font-size: .8rem; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.card-body :is(h2, h3) { font-size: 1.1rem; margin: 4px 0 6px; }
.card-body p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------- page hero */
.page-hero { background: linear-gradient(120deg, var(--night) 0%, var(--night-2) 60%, var(--blue) 100%); color: #fff; padding: 20px 0 18px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 200px; height: 200px; background: url("../img/logo-utp.png") center / contain no-repeat; opacity: .08; pointer-events: none; }
.page-hero .lead { color: rgba(255,255,255,.82); margin: 0; font-size: .95rem; }
.page-hero .h1 { margin-bottom: .15em; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; }
@media (min-width: 900px) { .page-hero { padding: 32px 0 28px; } }

/* ---------------------------------------------------- filtres / chips */
.filters-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(250,246,238,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filters-bar .wrap { padding-top: 10px; padding-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -16px 20px; padding-left: 16px; padding-right: 16px; -webkit-overflow-scrolling: touch; }
.filters-bar .chips { margin-bottom: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.chip span { font-size: .78rem; background: var(--sand); padding: 1px 7px; border-radius: 999px; color: var(--muted); }
.chip:hover { border-color: var(--night); color: var(--ink); }
.chip.is-active { background: var(--night); border-color: var(--night); color: #fff; }
.chip.is-active span { background: rgba(255,255,255,.18); color: #fff; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 2px; padding-right: 2px; } }

/* ---------------------------------------------------- courses */
.course-group { padding-top: 28px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 16px; }
.group-head .h2 { margin: 0; }
.group-head p { margin: 0; color: var(--muted); }
.course-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .course-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.course { --c: var(--orange); position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.course.cat-defis { --c: var(--cat-defis); }
.course.cat-jeunes { --c: var(--green); }
.course.cat-randos { --c: #b5852c; }
.course-top { display: flex; gap: 14px; align-items: center; }
.course-logo { width: 78px; height: 68px; object-fit: contain; flex: none; transition: transform .35s cubic-bezier(.2,.7,.2,1); }

/* Survols animes (souris uniquement : sur ecran tactile, pas d'effet colle apres un appui) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .course { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
  .course:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
  .course:hover .course-logo { transform: scale(1.08) rotate(-4deg); }
  .cat-card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
  .cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
  .cat-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .cat-card:hover::after { transform: translateX(120%); }
  .cat-card .cat-count { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .cat-card:hover .cat-count { transform: scale(1.25) translateY(4px); }
  .features li, .figure, .result, .info-card { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
  .features li:hover, .figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .features li:hover .feature-emoji { animation: wiggle .5s ease; }
  .result:hover { transform: translateY(-3px); }
  .btn .ic { transition: transform .2s; }
  .btn:hover .ic:last-child { transform: translateX(3px); }
}
@keyframes wiggle { 0%, 100% { transform: none; } 30% { transform: rotate(-10deg) scale(1.1); } 60% { transform: rotate(8deg) scale(1.1); } }
.course h3 { font-family: var(--display); font-size: 1.55rem; text-transform: uppercase; line-height: 1.02; margin: 0; }
.badge { display: inline-block; background: var(--gold); color: var(--night); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; margin-bottom: 5px; }
.course-meta { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 4px; background: var(--cream); border-radius: var(--radius-sm); font-size: .93rem; }
.course-meta li { display: flex; align-items: center; gap: 8px; }
.course-meta .ic { color: var(--c); }
.course-desc { font-size: .93rem; color: #3c4851; }
.course-desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.link-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; margin-top: -6px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.course-actions .btn { flex: 1 1 auto; white-space: normal; text-align: center; }

.doc-band { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
@media (min-width: 700px) { .doc-band { grid-template-columns: repeat(3, 1fr); } }
.doc { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--night); color: #fff; border-radius: var(--radius); text-decoration: none; }
.doc:hover { background: var(--blue); color: #fff; }
.doc .ic { width: 30px; height: 30px; color: var(--gold); }
.doc span { display: flex; flex-direction: column; font-size: .85rem; opacity: .9; }
.doc strong { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }

.course h3 a { color: inherit; text-decoration: none; }
.course h3 a:hover { color: var(--orange-d); }
.small { font-size: .85rem; }

/* Bascule Fiches / Comparer */
.view-bar { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.view-toggle { display: flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .88rem; color: var(--muted); min-height: 38px; }
@media (max-width: 640px) { .view-bar { justify-content: stretch; } .view-toggle { width: 100%; } .view-toggle button { flex: 1; justify-content: center; } }
.view-toggle button.is-active { background: var(--orange-btn); color: #fff; }

/* Comparateur */
.compare-help { margin: 18px 0 10px; font-size: .9rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.compare th, .compare td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { position: sticky; top: 0; background: var(--night); color: #fff; font-weight: 700; white-space: nowrap; }
.compare thead button { background: none; border: 0; color: inherit; font: inherit; padding: 0; display: inline-flex; gap: 4px; align-items: center; }
.compare thead button::after { content: "↕"; opacity: .5; font-size: .8em; }
.compare thead th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; }
.compare thead th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; }
.compare tbody th { position: sticky; left: 0; background: #fff; font-weight: 600; min-width: 150px; max-width: 190px; box-shadow: 1px 0 0 var(--line); }
.compare td:nth-child(2) { white-space: nowrap; }
.compare tbody th a { color: var(--ink); text-decoration: none; display: block; line-height: 1.25; }
.compare tbody th a:hover { color: var(--orange-d); }
.compare tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: var(--cream); }
.compare td:nth-child(3), .compare td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Fiche d'une course */
.course-hero-inner { display: flex; gap: 20px; align-items: center; }
.course-hero-logo { width: 96px; height: 96px; object-fit: contain; flex: none; background: rgba(255,255,255,.95); border-radius: 18px; padding: 8px; }
.course-hero .back { display: inline-block; margin-bottom: 6px; }
.course-hero .badge { margin-left: 8px; }
.course-facts { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.course-facts li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
@media (max-width: 600px) { .course-hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; } .course-hero-logo { width: 72px; height: 72px; } }

.track-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-bottom: 28px; }
.track-tabs { margin: 0 0 10px; }
.track-tabs .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.track-map { height: 420px; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); z-index: 0; }
@media (max-width: 640px) { .track-map { height: 340px; } }
.track-loading { display: grid; place-items: center; height: 100%; margin: 0; color: var(--muted); }
.track-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
@media (min-width: 700px) { .track-stats { grid-template-columns: repeat(4, 1fr); } }
.track-stats div { background: var(--cream); border-radius: var(--radius-sm); padding: 8px 12px; }
.track-stats span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.track-stats strong { font-family: var(--display); font-size: 1.35rem; }
.track-profile { position: relative; height: 200px; touch-action: pan-y; }
.track-profile svg { width: 100%; height: 100%; display: block; cursor: crosshair; overflow: visible; }
.track-profile text { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.track-profile .g { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.track-profile .pr { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; opacity: .75; }
.track-profile .pp { stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.track-profile .cur { stroke: var(--night); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.profile-tip { position: absolute; top: 0; z-index: 2; background: var(--night); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: pre; pointer-events: none; text-align: center; }
/* pastille d'un ravitaillement posee sur la courbe du profil (assets/js/parcours.js) */
.profile-ravito { position: absolute; transform: translate(-50%, -115%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--red); font-size: 12px; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.2); padding: 0; cursor: pointer; transition: transform .15s; }
.profile-ravito:hover, .profile-ravito:focus-visible { transform: translate(-50%, -115%) scale(1.25); z-index: 3; }
.profile-ravito.is-end { border-color: var(--night); }
.profile-ravito.is-start { background: var(--night); border-color: var(--night); color: #fff; }
/* nom + kilometre du ravitaillement, penches a 45 degres au-dessus du profil (assets/js/parcours.js) */
.profile-lbl { position: absolute; bottom: 100%; transform-origin: 0 100%; transform: translateX(3px) rotate(-45deg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 11px; line-height: 1.2; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.profile-lbl b { color: var(--ink); font-weight: 700; }
.profile-lbl:hover b, .profile-lbl:focus-visible b { color: var(--red); text-decoration: underline; }
.axis-x, .axis-y { position: absolute; font-size: .78rem; color: var(--muted); }
.axis-x { right: 0; bottom: -4px; }
.axis-y { left: 0; top: -4px; }
.track-hint { font-size: .8rem; color: var(--muted); margin: 8px 0 0; text-align: center; }
.map-pin { display: grid !important; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); font-size: 15px; line-height: 1; }
.pin-ravito { border: 2px solid var(--red); }
.pin-poi { border: 2px solid var(--gold); color: var(--orange-d); font-size: 16px; }
.pin-start { border: 2px solid var(--night); }

.course-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .course-layout { grid-template-columns: 1fr 340px; align-items: start; } .course-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.aside-links { display: grid; gap: 8px; margin-top: 12px; }
.aside-links .btn { justify-content: flex-start; white-space: normal; }
.aside-results { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .08); }
.aside-results h2 { font-size: 1rem; margin: 0 0 8px; }
.aside-results ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.aside-results a { font-weight: 600; }
.poi-list ol { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.poi-list li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); cursor: pointer; }
.poi-list li:hover { background: var(--cream); }
.poi-list .km { flex: none; min-width: 72px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--red); }
.poi-list .is-poi .km { color: var(--orange-d); }
.others-title { margin-top: 40px; }
.others { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .others { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .others { grid-template-columns: repeat(3, 1fr); } }
.other { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.other:hover { color: var(--ink); box-shadow: var(--shadow-lg); }
.other img { width: 52px; height: 46px; object-fit: contain; flex: none; }
.other strong { display: block; line-height: 1.2; }
.other small { color: var(--muted); }

/* Programme */
.day { margin-top: 28px; }
.day-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); text-transform: uppercase; font-size: 1.7rem; padding-bottom: 8px; border-bottom: 3px solid var(--orange); }
.day-title .ic { color: var(--blue); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.tl-time { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--night); line-height: 1.6; }
.tl-body { display: grid; gap: 6px; }
.tl-item { --c: var(--orange); display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-left: 4px solid var(--c); }
a.tl-item:hover { color: var(--ink); background: var(--cream); }
.tl-item.cat-defis { --c: var(--cat-defis); } .tl-item.cat-jeunes { --c: var(--green); } .tl-item.cat-randos { --c: #b5852c; }
.tl-info { --c: var(--muted); background: var(--sand); box-shadow: none; }
.tl-dot { display: none; }
.timeline > li.is-now { background: linear-gradient(90deg, rgba(179,23,29,.08), transparent); border-radius: var(--radius-sm); padding-left: 8px; margin-left: -8px; }
.tl-flag { display: block; width: max-content; font-family: var(--font); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--sand); color: var(--night); line-height: 1.4; }
.is-now .tl-flag { background: var(--red); color: #fff; }
.tl-item strong { display: block; line-height: 1.25; }
.tl-item small { color: var(--muted); }

/* FAQ */
.faq-search { max-width: none; margin-bottom: 8px; }
.faq-group { margin-top: 24px; }
.faq-item { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 8px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 16px 16px; color: #3c4851; }
.faq-more { margin-top: 32px; display: grid; gap: 14px; }
@media (min-width: 760px) { .faq-more { grid-template-columns: 1fr auto; align-items: center; } }
.faq-more p { margin: 0; color: var(--muted); }
.faq-hint { display: flex; gap: 8px; align-items: flex-start; background: var(--cream); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 18px; }
.faq-hint .ic { color: var(--blue); margin-top: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Alerte inscriptions (bandeau avant le pied de page) */
.hero-alert { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: #fff; font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; }
.hero-alert:hover { color: var(--gold); }
/* Installer l'application (bouton affiche par main.js) + mode d'emploi */
.app-install[hidden] { display: none; }
button.hero-alert { display: flex; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.footer-brand .app-install { margin-top: 14px; cursor: pointer; }
.footer-brand .app-install:not(:hover) { background: transparent; } /* pas le gris par defaut des boutons */
.app-howto { width: min(420px, calc(100% - 32px)); border: 0; border-radius: var(--radius); padding: 24px; color: var(--night); background: #fff; box-shadow: var(--shadow-lg); }
.app-howto::backdrop { background: rgba(0, 0, 0, .6); }
.app-howto h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; }
.app-howto ol { display: grid; gap: 8px; margin: 0 0 14px; padding-left: 22px; }
.app-howto p { margin: 0 0 18px; color: var(--muted); }
.app-howto[data-os="ios"] [data-for="android"], .app-howto[data-os="android"] [data-for="ios"] { display: none; }
.alerte { background: var(--night); color: #fff; padding: 32px 0; }
.alerte-inner { display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .alerte-inner { grid-template-columns: 1fr 1.1fr; gap: 40px; } }
.alerte h2 { display: flex; align-items: center; gap: 10px; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 0 4px; }
.alerte p { margin: 0; color: rgba(255,255,255,.9); }
.alerte-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.alerte-form input[type=email] { min-width: 0; font: inherit; font-size: 16px; padding: 0 16px; min-height: 50px; border: 0; border-radius: 4px; }
.alerte-form .btn { background: var(--orange-btn); box-shadow: none; min-height: 50px; }
.alerte-form .btn:hover { background: #a24607; }
.alerte-rgpd { grid-column: 1 / -1; font-size: .78rem; opacity: .9; }
.alerte-rgpd a { color: #fff; }
@media (max-width: 480px) { .alerte-form { grid-template-columns: 1fr; } }

/* Palmares */
.podium-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .podium-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .podium-grid { grid-template-columns: repeat(3, 1fr); } }
.podium { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; border-top: 4px solid var(--gold); }
.podium h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; margin-bottom: 8px; }
.podium ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.podium li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: baseline; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--cream); }
.w-cat { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--night); color: #fff; }
.w-f .w-cat { background: var(--red); }
.w-e .w-cat { background: var(--violet); }
.podium li strong { line-height: 1.2; }
.w-perf { font-family: var(--display); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.podium li small { grid-column: 2 / -1; color: var(--muted); font-size: .8rem; }
.records { min-width: 560px; }
.palmares-links { margin-top: 28px; }

/* Partenaires par niveau */
.partner-level { margin: 28px 0 12px; }
.partner-level:first-child { margin-top: 0; }
@media (min-width: 700px) { .partner-grid-major { grid-template-columns: repeat(2, 1fr); } .partner-grid-major .partner-logo { aspect-ratio: 16 / 8; } }

/* Benevoles */
.benevoles-intro { align-items: start; }
.benevoles-cta { display: grid; gap: 10px; }
.benevoles-cta h2 { color: #fff; }
.benevoles-cta p { margin: 0; color: rgba(255,255,255,.9); }
.missions-title { margin: 40px 0 16px; }
.missions .why h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; }

/* Galerie photos d'un article */
.album { margin-top: 32px; }
.album h2 { display: flex; align-items: center; gap: 8px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
@media (min-width: 700px) { .album-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.album-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--sand); }
.album-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album-grid a:hover img { transform: scale(1.05); }
.tag .ic { width: 1em; height: 1em; }

/* ---------------------------------------------------- infos pratiques */
.anchor-nav { background: #fff; border-bottom: 1px solid var(--line); }
.anchor-nav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.anchor-nav a { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); background: var(--cream); }
.anchor-nav a:hover { background: var(--night); color: #fff; }
.quickinfos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.quickinfos div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.quickinfos span { font-size: 1.6rem; }
.quickinfos strong { font-size: .9rem; line-height: 1.2; margin-top: 4px; }
.quickinfos small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.info-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.info-card h2 { display: flex; align-items: center; gap: 10px; font-family: var(--display); text-transform: uppercase; font-size: 1.45rem; }
.info-card h2 .ic { color: var(--blue); }
.info-card p:last-child { margin-bottom: 0; }
.info-card-accent { background: linear-gradient(135deg, var(--orange-btn), var(--red)); color: #fff; }
.info-card-accent h2 .ic { color: #fff; }
.plain { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.parking { padding: 12px 0; border-top: 1px solid var(--line); }
.parking:first-of-type { border-top: 0; padding-top: 0; }
.parking p { margin: 2px 0 4px; color: var(--muted); font-size: .93rem; }
.parking a { font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.map-embed { margin-top: 20px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--sand); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }

.heb-tools { display: grid; gap: 12px; margin-bottom: 18px; }
.heb-tools .chips { margin-bottom: 0; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 48px; max-width: 460px; }
.search:focus-within { border-color: var(--night); outline: 3px solid var(--orange); outline-offset: 2px; }
.search input { border: 0; outline: 0; background: none; font: inherit; flex: 1; min-width: 0; font-size: 16px; }
.heb-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .heb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .heb-grid { grid-template-columns: repeat(3, 1fr); } }
.heb { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.heb-cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--orange-d); }
.heb h3 { font-size: 1.1rem; margin: 2px 0 10px; }
.heb ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.heb li { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.heb li .ic { color: var(--muted); margin-top: 3px; }
.heb a { text-decoration: none; font-weight: 600; }
.heb-infos { margin: 10px 0 0; padding: 10px 12px; background: var(--cream); border-radius: var(--radius-sm); font-size: .88rem; }
.empty { text-align: center; color: var(--muted); padding: 24px; }

/* Carte des hebergements */
.heb-tools .chip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.heb-map-wrap { margin-bottom: 14px; }
.heb-map { height: 440px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); z-index: 0; }
@media (max-width: 640px) { .heb-map { height: 360px; } }
.heb-map-note { display: flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.heb-pin { background: none; border: 0; }
.access-map-wrap { margin-top: 20px; }
.access-map { height: 380px; }
@media (max-width: 640px) { .access-map { height: 320px; } }
.pin-parking { border: 2px solid var(--violet); color: var(--violet) !important; font-family: var(--display); font-weight: 800; font-size: 17px !important; }
.pin-cc { border: 2px solid var(--green); }
.map-legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }
.map-legend .map-pin { width: 26px; height: 26px; font-size: 13px; }
.heb-pin span { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.leaflet-popup-content { font-family: var(--font); font-size: .9rem; line-height: 1.45; }
.heb-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
.heb-sort button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .85rem; color: var(--ink); min-height: 36px; }
.heb-sort button.is-active { background: var(--night); border-color: var(--night); color: #fff; }
.heb-cat { color: var(--c, var(--orange-d)) !important; }
.heb-locate { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; padding: 0; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: .84rem; text-align: left; }
.heb-locate:hover { text-decoration: underline; }
.heb.is-highlight { box-shadow: 0 0 0 3px var(--orange), var(--shadow-lg); transition: box-shadow .3s; }

/* ---------------------------------------------------- resultats */
.live-band { display: grid; gap: 16px; align-items: center; background: var(--night); color: #fff; padding: 20px; border-radius: var(--radius); margin-bottom: 28px; }
.live-band > div:first-child { display: flex; gap: 14px; align-items: center; }
.live-band > div:first-child > .ic { width: 38px; height: 38px; color: var(--gold); }
.live-band strong { display: block; font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; }
.live-band span { font-size: .9rem; opacity: .8; }
.live-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.live-actions .btn { flex: 1 1 180px; }
.live-band .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
@media (min-width: 900px) { .live-band { grid-template-columns: 1fr auto; padding: 24px 28px; } .live-actions .btn { flex: 0 0 auto; } }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .result-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .result-grid { grid-template-columns: repeat(4, 1fr); } }
.result { display: flex; align-items: center; gap: 10px; padding: 14px; min-height: 58px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; line-height: 1.25; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.result .ic { color: var(--red); width: 22px; height: 22px; }
.result:hover { background: var(--night); color: #fff; }
.result:hover .ic { color: var(--gold); }
.result span { flex: 1; display: flex; flex-direction: column; }
.result small { font-weight: 500; font-size: .78rem; color: var(--muted); }
.result:hover small { color: rgba(255,255,255,.75); }
.result.is-rank { border-left: 4px solid var(--blue); }
.result.is-rank .ic { color: var(--blue); }

/* Bulles des cartes : boutons de navigation GPS (Waze, Google Maps, Plans) */
.nav-go { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.nav-go span { width: 100%; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.leaflet-popup-content .nav-go a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--night); color: #fff; font-weight: 700; font-size: .82rem; text-decoration: none; }
.leaflet-popup-content .nav-go a:first-of-type { background: #33ccff; color: #000000; }
.leaflet-popup-content .nav-go a:hover { filter: brightness(1.1); }

/* ---------------------------------------------------- courses : quiz et carte d'ensemble */
.course-helpers { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 760px) { .course-helpers { grid-template-columns: 1fr 1fr; } }
.helper-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.helper-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.helper-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.helper-card strong { font-family: var(--display); text-transform: uppercase; font-size: 1.2rem; line-height: 1.1; }
.helper-card small { color: var(--muted); font-size: .85rem; }
.helper-card > .ic { color: var(--blue); }
.helper-emoji { font-size: 1.8rem; width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--sand); }
.helper-quiz { background: linear-gradient(120deg, var(--night), var(--blue)); color: #fff; }
.helper-quiz:hover { color: #fff; }
.helper-quiz small { color: rgba(255,255,255,.8); }
.helper-quiz .helper-emoji { background: rgba(255,255,255,.14); }
.helper-quiz > .ic { color: var(--gold); }

.allmap { display: grid; gap: 14px; margin-bottom: 10px; }
@media (min-width: 900px) { .allmap { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.allmap-map { height: 62vh; min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
@media (max-width: 640px) { .allmap-map { height: 420px; min-height: 0; } }
.allmap-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
@media (min-width: 900px) { .allmap-side { max-height: 62vh; overflow: auto; } }
.allmap-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.allmap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.allmap-list li { display: flex; align-items: center; gap: 4px; }
.allmap-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; }
.allmap-item:hover { background: var(--cream); }
.allmap-item input { width: 18px; height: 18px; accent-color: var(--c); flex: none; }
.allmap-item .swatch { width: 22px; height: 6px; border-radius: 3px; background: var(--c); flex: none; }
.allmap-name { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.allmap-name small { color: var(--muted); font-size: .78rem; }
.allmap-item.is-missing { opacity: .45; }
.allmap-go { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--night); border: 0; background: transparent; cursor: pointer; }
.allmap-go:hover { background: var(--sand); color: var(--night); }

.quiz { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px 24px; overflow: hidden; }
.quiz-progress { height: 6px; border-radius: 6px; background: var(--sand); overflow: hidden; margin-bottom: 18px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--red)); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.quiz-q, .quiz-done { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.quiz-step { margin: 0; color: var(--blue); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.quiz h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.1; margin: 6px 0 16px; }
.quiz-answers { display: grid; gap: 10px; }
@media (min-width: 640px) { .quiz-answers { grid-template-columns: 1fr 1fr; } }
.quiz-a { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; min-height: 64px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--cream); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.quiz-a span { font-size: 1.6rem; }
.quiz-a:hover, .quiz-a:focus-visible { border-color: var(--orange); background: #fff; transform: translateY(-2px); }
.quiz-back { margin-top: 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; }
.quiz-results { display: grid; gap: 12px; }
.quiz-result { position: relative; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; }
.quiz-result.is-best { border-color: var(--orange); box-shadow: 0 10px 30px rgba(236,122,28,.18); }
.quiz-badge { position: absolute; top: -11px; left: 14px; background: var(--orange-btn); color: #fff; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; }
.quiz-result-head { display: flex; align-items: center; gap: 12px; }
.quiz-result-head img { width: 64px; height: 56px; object-fit: contain; flex: none; }
.quiz-result h3 { margin: 0; font-size: 1.15rem; }
.quiz-result-head p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.quiz-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.quiz-facts li { background: var(--sand); border-radius: 999px; padding: 3px 10px; font-size: .82rem; font-weight: 600; }
.quiz-why { margin: 10px 0 0; color: var(--green); font-size: .9rem; font-weight: 600; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quiz-end { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .quiz-q, .quiz-done { animation: none; } }

/* ---------------------------------------------------- mes resultats */
.runner-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.runner-search .search { flex: 1 1 260px; max-width: none; }
.runner-search-inline { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.runner-search-inline p { flex: 1 1 100%; margin: 0; font-size: .95rem; color: var(--muted); }
.runner-search-inline p strong { color: var(--ink); font-family: var(--display); text-transform: uppercase; font-size: 1.2rem; }
.runner { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.runner-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.runner-head h2 { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; line-height: 1.1; }
.runner-head p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.runner-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--orange-btn), var(--red)); }
.runner-races { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.runner-races li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--cream); }
.rr-diplome { grid-column: 2 / -1; justify-self: start; margin: 0; }
.rr-year { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--orange-d); }
.rr-course { text-decoration: none; color: var(--ink); min-width: 0; }
.rr-course strong { display: block; }
.rr-course small { display: block; color: var(--muted); font-size: .8rem; }
.rr-course:hover strong { text-decoration: underline; }
.rr-time { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rr-time small { display: block; font-size: .78rem; font-weight: 700; }
.rr-top { color: var(--orange-d); }
.rr-delta.is-better { color: var(--green); }
.rr-delta.is-worse { color: var(--muted); }
.runner-help { margin-top: 18px; }

/* ---------------------------------------------------- classement detaille */
.race-switch { margin-bottom: 22px; }
.hero-pdf { margin-top: 16px; border-color: rgba(255,255,255,.6); color: #fff; }
.hero-pdf:hover { background: #fff; color: var(--night); }
.race-switch .chip small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.rank-podiums { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 26px; }
@media (min-width: 760px) { .rank-podiums { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } }
.rank-podium { min-width: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.rank-podium h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; }
.rank-podium h2 .ic { color: var(--blue); }
.rank-podium ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rank-podium li { display: flex; align-items: center; gap: 12px; }
.rank-podium .medal { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--night); background: var(--sand); }
.rank-podium .p1 .medal { background: var(--gold); }
.rank-podium .p2 .medal { background: #d9dde1; }
.rank-podium .p3 .medal { background: #e7b98c; }
.rank-podium .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rank-podium .who small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-podium .time { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; }
.rank-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.rank-tools .search { flex: 1 1 260px; }
.rank-tools .chips { margin: 0; padding: 2px; }
.rank-tools select { min-height: 44px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; background: #fff; font: inherit; font-size: 16px; }
.rank-count { color: var(--muted); font-size: .9rem; margin-left: auto; }
.rank-table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: clip; }
.rank-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rank-table th { position: sticky; top: var(--header-h); z-index: 1; background: var(--night); color: #fff; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; }
.rank-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.rank-table td small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.rank-table .c-rank { width: 64px; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.rank-table .c-time { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-table th.c-time { text-align: right; }
.rank-table .c-bib, .rank-table .c-cat { white-space: nowrap; }
.rank-table .c-name strong { display: block; }
.rank-table .m-cat { display: none; }
.rank-table tr.has-details { cursor: pointer; }
.rank-table tr.has-details:hover { background: var(--cream); }
.rank-table tr.has-details:focus-visible { background: var(--cream); outline: 3px solid var(--orange-d); outline-offset: -3px; }
.rank-table tr[aria-expanded="true"] { background: var(--cream); }
.rank-table tr.has-details .c-time { position: relative; padding-right: 26px; }
.rank-diplome { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 4px 10px; border: 1.5px solid var(--orange-d); border-radius: 999px; color: var(--orange-d); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; line-height: 1.2; }
.rank-diplome svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rank-diplome:hover, .rank-diplome:focus-visible { background: var(--orange-d); color: #fff; }
.rank-table .chev { position: absolute; right: 8px; top: 11px; color: var(--muted); font-size: .8rem; transition: transform .15s; }
.rank-table tr[aria-expanded="true"] .chev { transform: rotate(180deg); }
.rank-table tr.is-out td { color: var(--muted); }
.rank-table .out { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; background: var(--sand); border-radius: 6px; padding: 2px 6px; }
.rank-details td { background: var(--cream); border-top: 0; padding-top: 0; }
.rd-head { margin: 0 0 8px; font-size: .82rem; color: var(--muted); }
.splits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.splits li { background: #fff; border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; }
.splits span { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.splits strong { font-variant-numeric: tabular-nums; }
.rank-note { margin-top: 14px; font-size: .88rem; }
@media (max-width: 640px) {
  .rank-table .c-bib, .rank-table .c-cat { display: none; }
  .rank-table .m-cat { display: inline; }
  .rank-table td, .rank-table th { padding: 9px 8px; }
  .rank-table .c-rank { width: 52px; font-size: .98rem; }
  .rank-count { margin-left: 0; width: 100%; }
}

/* ---------------------------------------------------- medias */
.feature-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin-bottom: 22px; background: linear-gradient(120deg, var(--orange-btn), var(--red)); color: #fff; border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); }
.feature-link:hover { color: #fff; filter: brightness(1.05); }
.feature-link > .ic { width: 32px; height: 32px; }
.feature-link span { flex: 1; display: flex; flex-direction: column; font-size: .9rem; }
.feature-link strong { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }
.video-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video video, .video iframe, .yt { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.yt { position: relative; padding: 0; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.yt .play .ic { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.video figcaption { padding: 12px 16px; font-weight: 600; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.video time { color: var(--muted); font-weight: 400; font-size: .88rem; }

/* ---------------------------------------------------- article */
.article-head { background: linear-gradient(120deg, var(--night), var(--blue)); color: #fff; padding: 32px 0 36px; margin-bottom: 28px; }
.article-head .h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin: 6px 0 0; }
.article-head time { color: var(--gold); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; display: block; margin-top: 14px; }
.back { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 600; font-size: .92rem; }
.back:hover { color: #fff; }
.prose { font-size: 1.05rem; line-height: 1.75; overflow-wrap: break-word; }
.prose h2, .prose h3 { font-family: var(--display); text-transform: uppercase; margin-top: 1.4em; }
.prose img { height: auto; border-radius: var(--radius-sm); margin: 18px auto; cursor: zoom-in; }
.prose figure { margin: 18px 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose video { width: 100%; border-radius: var(--radius-sm); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { font-weight: 600; overflow-wrap: anywhere; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 20px 0; }
.galerie a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.galerie img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .3s; }
.galerie a:hover img { transform: scale(1.06); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 36px 0 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.share a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #1877f2; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #fff; text-decoration: none; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); }
.pagination a[aria-current] { background: var(--night); color: #fff; }

/* ---------------------------------------------------- boutique */
.shop-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.product-img img { max-height: 100%; width: 100%; object-fit: contain; cursor: zoom-in; }
.product-img .badge { position: absolute; top: 8px; left: 8px; margin: 0; }
.product-body { padding: 12px 14px 16px; }
.product h2 { font-size: .98rem; margin: 0 0 4px; line-height: 1.25; }
.price { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--red); margin: 0; line-height: 1.1; }
.sizes { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.note { font-size: .78rem; color: var(--orange-d); font-weight: 600; margin: 4px 0 0; }

/* ---------------------------------------------------- pourquoi */
.why-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.why { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); text-align: center; }
.why-emoji { font-size: 2.6rem; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 14px; border-radius: 50%; background: var(--sand); }
.why h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; }
.why p { color: var(--muted); margin: 0; }
.quote { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.6rem); text-align: center; color: var(--night); margin: 48px auto 28px; max-width: 24ch; line-height: 1.1; }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------------------------------------------------- contact */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; } }
.contact-form { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-side { display: grid; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--night); background: #fff; } /* l'anneau de :focus-visible reste affiche */
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field small { color: var(--red); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 18px 20px; border-radius: var(--radius-sm); }
.alert-success { background: #e8f5ec; color: #1e5a35; }
.alert-info { background: #eaf2f7; color: var(--night); border-left: 4px solid var(--blue); }
.edition-note { padding-top: 20px; }
.alert-info + .chips, .alert-info { margin-bottom: 16px; }
.alert p { margin: 4px 0 0; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ic { color: var(--blue); margin-top: 4px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social-dark a { background: var(--night); }

/* ---------------------------------------------------- partenaires */
.partners { background: #fff; padding: 32px 0; border-top: 1px solid var(--line); }
.partners-title { text-align: center; font-family: var(--display); text-transform: uppercase; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.partner img { height: 64px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(.2); transition: filter .2s, transform .2s; }
.partner:hover img { filter: none; transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .marquee-track > [aria-hidden] { display: none; } }

.partners-title a { color: inherit; text-decoration: none; }
.partners-title a:hover { color: var(--orange-d); }

/* ---------------------------------------------------- page partenaires */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .partner-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .partner-grid { grid-template-columns: repeat(4, 1fr); } }
.partner-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
a.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.partner-logo { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-card strong { font-size: .95rem; line-height: 1.25; }
.partner-site { font-size: .8rem; font-weight: 600; color: var(--blue); display: inline-flex; gap: 4px; align-items: center; }
.partner-cta { display: grid; gap: 16px; align-items: center; margin-top: 32px; }
.partner-cta p { margin: 0; color: rgba(255,255,255,.9); }
@media (min-width: 800px) { .partner-cta { grid-template-columns: 1fr auto; padding: 28px 32px; } }

/* ---------------------------------------------------- footer */
.site-footer { background: var(--night); color: rgba(255,255,255,.8); padding: 48px 0 calc(68px + env(safe-area-inset-bottom)); font-size: .94rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 10px; }
.site-footer h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; color: #fff; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact .ic { margin-top: 4px; color: rgba(255,255,255,.7); }
.footer-contact { grid-column: 1 / -1; }
.site-footer .footer-more { margin-top: 18px; }
.footer-grid > div:last-child { grid-column: 1 / -1; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
  .site-footer { padding-bottom: 32px; }
}

/* CTA collant mobile : barre sous l'en-tete (et non en bas) pour laisser toute la place au contenu */
.mobile-cta { position: fixed; left: 0; right: 0; top: calc(var(--header-h) + 1px); z-index: 40; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 6px 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 6px 16px rgba(0, 0, 0,.12); transform: translateY(-130%); transition: transform .3s; }
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { min-height: 38px; font-size: .85rem; }
body.nav-open .mobile-cta { visibility: hidden; }

/* Assistant « Une question ? » (assets/js/assistant.js) : bulle en bas a droite (la barre mobile est maintenant en haut) */
.assistant { position: fixed; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (min-width: 1200px) { .assistant { right: 24px; bottom: 24px; } }
.asst-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--night); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg); }
.asst-toggle:hover { background: var(--orange-d); }
.asst-toggle[aria-expanded="true"] span { display: none; }
@media (max-width: 599px) { .asst-toggle { padding: 12px 14px; } .asst-toggle span { display: none; } }
.asst-panel { width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 180px)); display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.asst-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--night); color: #fff; }
.asst-head h2 { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 1.2rem; }
.asst-close { border: 0; background: none; color: inherit; padding: 4px; }
.asst-log { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--cream); }
.asst-msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; font-size: .92rem; line-height: 1.45; }
.asst-msg p { margin: 0 0 .5em; }
.asst-msg p:last-child { margin: 0; }
.asst-bot { background: #fff; justify-self: start; box-shadow: var(--shadow); }
.asst-me { background: var(--night); color: #fff; justify-self: end; }
.asst-card { border-top: 1px solid var(--sand); padding-top: 8px; margin-top: 8px; }
.asst-card strong { display: block; }
.asst-card p { color: var(--muted); margin: 2px 0 4px; }
.asst-card a { font-weight: 600; }
.asst-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.asst-chips button { border: 1px solid var(--sand); background: var(--cream); border-radius: 999px; padding: 5px 10px; font-size: .85rem; color: var(--night); }
.asst-chips button:hover { border-color: var(--orange); }
.asst-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--sand); }
.asst-form input { flex: 1; min-width: 0; border: 1px solid var(--sand); border-radius: 10px; padding: 8px 10px; font: inherit; }
@media (min-width: 1200px) { .mobile-cta { display: none; } }

/* ---------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 16, 24, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; font-size: 2rem; line-height: 1; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-close .ic { width: 24px; height: 24px; }
.lightbox-nav { top: 50%; margin-top: -24px; }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--orange); }

/* 404 */
.notfound { text-align: center; }
.big404 { font-family: var(--display); font-size: 8rem; font-weight: 800; line-height: 1; color: var(--orange); margin: 0; }

/* Animations d'apparition */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.cat-card.reveal { transform: translateY(22px) scale(.96); }
.cat-card.reveal.is-in { transform: none; }

/* Accueil : entree du titre au chargement */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-content > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4) { animation-delay: .28s; }
.hero-content > :nth-child(5) { animation-delay: .36s; }
.hero-content > :nth-child(n+6) { animation-delay: .44s; }
.hero-title .accent { display: inline-block; animation: rise 1s .25s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .cat-card.reveal { opacity: 1; transform: none; transition: none; }
  .hero-content > *, .hero-title .accent { animation: none; }
  html { scroll-behavior: auto; }
}

/* Zones tactiles : 44 px sur mobile et écrans tactiles (WCAG 2.5.5) ; la mise en page sur ordinateur ne change pas.
   Les liens au milieu d'une phrase en sont dispensés. */
@media (max-width: 899px), (pointer: coarse) {
  .btn-sm, .view-toggle button, .heb-sort button { min-height: 44px; }
  .anchor-nav a, .link-more, .heb-locate, .parking a, a.protected, .partners-title a, .footer-bottom a, button.hero-alert { display: inline-flex; align-items: center; min-height: 44px; }
  .partners-title a { justify-content: center; }
  .course h3 a { display: inline-block; padding: 10px 0; }
  .site-footer ul { gap: 0; }
  .site-footer li a, .footer-contact li a { display: inline-flex; align-items: center; min-height: 44px; }
  .heb li a, .contact-list li a { display: inline-flex; align-items: center; min-height: 40px; }
  .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
}

/* Interaction : pas de delai de double-tap, surbrillance du toucher aux couleurs du site, pas de defilement de la page derriere une fenetre ouverte */
a, button, summary, label, select, input, [role="button"] { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgba(236, 122, 28, .18); }
.main-nav, .app-howto, .asst-panel, .asst-log, .lightbox { overscroll-behavior: contain; }
/* Titres equilibres (pas de mot seul sur la derniere ligne) */
h1, h2, h3, .h1, .h2, .h3 { text-wrap: balance; }
.lead { text-wrap: pretty; }

/* Images dont la hauteur n'est pas fixee par le CSS : avec width/height en attributs (place reservee avant chargement), elles restent proportionnelles */
.product-img img, .partner-logo img { height: auto; }

/* Longs classements : lignes pas encore affichees (assets/js/classement.js) ; a l'impression, tout le classement sort */
.rank-table tr.is-late { display: none; }
.rank-more { display: flex; justify-content: center; margin: 18px 0 8px; }
@media print { .rank-table tr.is-late { display: table-row; } .rank-more { display: none; } }

/* Accueil : bande photo pleine largeur (reglage « home_band_image »), un titre geant et un seul bouton */
.photo-band { position: relative; min-height: 48vw; display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: #fff; padding: 64px 0; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 0; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.66), rgba(0,0,0,0) 58%); }
.photo-band-in { position: relative; z-index: 1; }
.photo-band-kicker { margin: 0 0 14px; font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.photo-band h2 { margin: 0 0 28px; font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 12vw, 9rem); line-height: .86; text-transform: uppercase; }
@media (max-width: 899px) { .photo-band { min-height: max(60vw, 440px); } }
@media (max-width: 640px) { .photo-band { min-height: 460px; padding: 48px 0; } }

/* Accueil : preuve sociale sous les boutons du hero (chiffre + court temoignage) */
.hero-proof { display: grid; gap: 12px; margin-top: 18px; max-width: 520px; }
.hero-proof-stat { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px; width: fit-content; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; background: rgba(0, 0, 0,.55); color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .02em; backdrop-filter: blur(4px); }
.hero-proof-stat .ic { color: var(--gold); width: 18px; height: 18px; flex: none; }
.hero-quote { margin: 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--gold); }
.hero-quote blockquote { margin: 0; }
.hero-quote p { margin: 0; font-size: .98rem; line-height: 1.45; font-style: italic; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero-quote figcaption { margin-top: 4px; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.55); }

/* Formulaire d'alerte : phrase de rarete reelle de l'edition precedente */
.alerte .alerte-rarete { margin-top: 8px; color: var(--gold); font-weight: 600; font-size: .95rem; }
.alerte .alerte-rarete a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.alerte .alerte-rarete a:hover { color: var(--gold); }

/* ---------------------------------------------------- galerie photos 2026 */
.gal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-bottom: 18px; }
.gal-bar .chips { margin-bottom: 8px; }
.gal-count { margin: 0 0 8px auto; color: var(--muted); font-size: .9rem; }
.gal-wall { column-count: 2; column-gap: 8px; }
.gal-item { position: relative; display: block; break-inside: avoid; margin-bottom: 8px; overflow: hidden; border-radius: var(--radius-sm); background: var(--sand); }
.gal-item[hidden] { display: none; }
.gal-item img { display: block; width: 100%; height: auto; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.05); }
.gal-tag { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .68); color: #fff; font-size: .72rem; font-weight: 700; opacity: 0; transition: opacity .2s; }
.gal-item:hover .gal-tag, .gal-item:focus-visible .gal-tag { opacity: 1; }
.gal-credit { margin: 28px 0 18px; color: var(--muted); font-size: .92rem; }
@media (min-width: 700px) { .gal-wall { column-count: 3; } }
@media (min-width: 1000px) { .gal-wall { column-count: 4; } }
@media (prefers-reduced-motion: reduce) { .gal-item img { transition: none; } }
.gal-years { margin-bottom: 14px; }
.gal-years a.chip.is-active { background: var(--night); border-color: var(--night); color: #fff; }

/* ---------------------------------------------------- page Medias : galeries par edition */
.gal-title { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.3rem); text-transform: uppercase; line-height: 1; }
.gal-lead { margin: 0 0 18px; color: var(--muted); }
.gal-editions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.gal-ed { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #000; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.gal-ed:hover { color: #fff; }
.gal-ed-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.gal-ed-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-ed:hover .gal-ed-mosaic img { transform: scale(1.06); }
.gal-ed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .88) 6%, rgba(0, 0, 0, .1) 58%); }
.gal-ed-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; padding: 16px; }
.gal-ed-body strong { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 7vw, 4.4rem); line-height: .85; }
.gal-ed-body small { margin-top: 4px; font-size: .9rem; opacity: .9; }
.gal-ed-cta { margin-top: 8px; font-weight: 700; font-size: .85rem; color: var(--gold); }
.gal-ed:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gal-album { margin: 0 0 36px; }
.gal-album a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.gal-album .ic { width: 20px; height: 20px; }
@media (min-width: 900px) { .gal-editions { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .gal-ed-mosaic img { transition: none; } }

/* ---------------------------------------------------- page Medias : videos (lecteur + liste) */
.vid-cine { display: grid; gap: 18px; }
.vid-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.vid-screen video, .vid-screen iframe, .vid-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-poster { padding: 0; background: #000; cursor: pointer; }
.vid-poster img { width: 100%; height: 100%; object-fit: contain; opacity: .9; }
.vid-poster .play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .45); transition: transform .2s; }
.vid-poster:hover .play { transform: scale(1.08); }
.vid-poster .play .ic { width: 34px; height: 34px; margin-left: 4px; }
.vid-now { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin: 12px 2px 0; }
.vid-now strong { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.05; text-transform: uppercase; }
.vid-now time { color: var(--muted); font-size: .92rem; }
.vid-years { margin-bottom: 12px; }
.vid-list { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 8px; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; }
.vid-list li[hidden] { display: none; }
.vid-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; min-height: 72px; padding: 6px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.vid-item:hover { border-color: var(--orange); }
.vid-item.is-on { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(236, 122, 28, .22); }
.vid-item img, .vid-nothumb { display: block; width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #111; }
.vid-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vid-meta strong { font-size: .92rem; line-height: 1.25; }
.vid-meta small { color: var(--muted); font-size: .8rem; }
.vid-item:focus-visible, .vid-poster:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (min-width: 900px) { .vid-cine { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; } .vid-list { max-height: 520px; } }
@media (prefers-reduced-motion: reduce) { .vid-poster .play { transition: none; } }

/* ---------------------------------------------------- infos pratiques : mise en page deux colonnes */
.info-split { display: grid; gap: 16px; }
.info-split .access-map-wrap { margin-top: 0; }
.heb-split { display: grid; gap: 16px; grid-template-areas: "head" "map" "list"; }
.heb-head { grid-area: head; min-width: 0; }
.heb-mapcol { grid-area: map; margin-bottom: 0; }
.heb-listcol { grid-area: list; min-width: 0; }
.heb-head .heb-tools { margin-bottom: 12px; }
.heb-head .search { max-width: none; }
.heb-head .chips { flex-wrap: nowrap; margin: 0; padding: 2px 2px 6px; }
.heb-head .heb-sort { margin-bottom: 0; }
.heb-split .heb-grid { grid-template-columns: 1fr; gap: 10px; }
.heb-split .heb-map { height: 320px; }
.heb { padding: 14px 16px; }
.heb h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.heb ul { gap: 4px; font-size: .9rem; }
.heb-infos { margin-top: 8px; padding: 8px 10px; font-size: .85rem; }
@media (min-width: 1000px) {
  .info-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .info-split .info-grid { grid-template-columns: 1fr; }
  .info-split .access-map-wrap { position: sticky; top: 84px; }
  .info-split .access-map { height: min(640px, calc(100vh - 190px)); }
  .heb-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "head map" "list map"; align-items: start; column-gap: 24px; }
  .heb-mapcol { position: sticky; top: 84px; }
  .heb-split .heb-map { height: min(720px, calc(100vh - 170px)); }
  .heb-listcol .heb-grid { max-height: min(640px, calc(100vh - 290px)); overflow-y: auto; padding: 2px 8px 2px 2px; overscroll-behavior: contain; scrollbar-width: thin; }
}
.heb-head .heb-tools { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.heb-head .chips { max-width: 100%; }
.heb-head .chips { overflow-x: auto; scrollbar-width: thin; }

/* ---------------------------------------------------- page Courses : fiches compactes */
.course { gap: 10px; padding: 14px 16px; }
.course-top { gap: 12px; }
.course-logo { width: 62px; height: 56px; }
.course h3 { font-size: 1.32rem; }
.badge { margin-bottom: 3px; padding: 2px 8px; font-size: .7rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; background: none; font-size: .84rem; }
.course-meta li { gap: 6px; padding: 4px 10px; background: var(--cream); border-radius: 999px; }
.course-meta .ic { width: 15px; height: 15px; }
.course-desc { font-size: .88rem; line-height: 1.45; }
.course-desc.is-clamped { -webkit-line-clamp: 2; }
.course-actions { gap: 6px; }
.course-actions .btn { padding: 8px 10px; font-size: .74rem; min-height: 38px; }
.course > .btn-block { min-height: 42px; }
.group-head { margin-bottom: 12px; }
.course-group { padding-top: 22px; }
.helper-card { padding: 10px 14px; }
.helper-emoji { width: 42px; height: 42px; font-size: 1.5rem; }
.helper-card strong { font-size: 1.1rem; }

/* ---------------------------------------------------- page Programme : les jours cote a cote sur ordinateur */
.days-grid { display: grid; gap: 8px 24px; }
.days-grid .day { margin-top: 20px; }
.day-title { font-size: 1.45rem; }
@media (min-width: 1000px) {
  .days-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, 1.05fr); align-items: start; }
  .days-grid .day { margin-top: 8px; padding: 18px 18px 6px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line); border-radius: var(--radius); }
  .days-grid .day-title { font-size: 1.25rem; line-height: 1.15; }
  .days-grid .timeline > li { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
  .days-grid .tl-time { font-size: 1.2rem; }
  .days-nav { display: none; }
}

/* ---------------------------------------------------- page Resultats : outils en haut, groupes par categorie */
.res-tools { display: grid; gap: 14px; margin-bottom: 22px; }
.res-search { padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.res-search h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.res-search p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.res-search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.res-search .search { flex: 1 1 220px; max-width: none; }
.res-palmares { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--night), #3b2410); color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.res-palmares:hover { color: #fff; transform: translateY(-3px); }
.res-palmares > .ic:first-child { flex: none; width: 46px; height: 46px; color: var(--gold); }
.res-palmares span { flex: 1; display: flex; flex-direction: column; font-size: .9rem; color: rgba(255, 255, 255, .82); }
.res-palmares strong { font-family: var(--display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1; color: #fff; }
.res-palmares > .ic:last-child { color: var(--gold); }
.res-year-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 6px 0 2px; }
.res-year-head .h3 { margin: 0; }
.res-year-head p { margin: 0; color: var(--muted); }
.res-group { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; }
.res-group span { padding: 1px 9px; border-radius: 999px; background: var(--sand); color: var(--muted); font-family: var(--font); font-size: .78rem; font-weight: 700; }
.res-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.res { display: grid; grid-template-columns: 62px minmax(0, 1fr); grid-template-areas: "n name" "n cta"; column-gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border-left: 5px solid var(--c, var(--orange)); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.res:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.res-n { grid-area: n; display: flex; flex-direction: column; align-items: center; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: .95; color: var(--night); color: color-mix(in srgb, var(--c, var(--night)) 68%, #000); }
.res-n small { margin-top: 2px; font-family: var(--font); font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.res-name { grid-area: name; font-weight: 700; line-height: 1.25; }
.res-cta { grid-area: cta; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: .8rem; font-weight: 600; color: var(--orange-d); }
.res-cta .ic { width: 14px; height: 14px; }
.res-doc { border-left-color: var(--c, var(--cat-defis)); }
.res-doc .res-n { color: var(--cat-defis); color: color-mix(in srgb, var(--c, var(--cat-defis)) 68%, #000); }
.res-doc .res-n .ic { width: 30px; height: 30px; }
.res-doc .res-cta { color: var(--cat-defis); }
@media (min-width: 900px) { .res-tools { grid-template-columns: 1.4fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .res, .res-palmares { transition: none; } }

/* ---------------------------------------------------- couleurs des courses (Palmares, Mes resultats, Classement) */
.podium { border-top-color: var(--c, var(--gold)); }
.runner-races li { border-left: 5px solid var(--c, var(--line)); }
.hero-course { border-bottom: 6px solid var(--c, var(--orange)); }
.race-switch .chip { border-left: 5px solid var(--c, var(--line)); }
.rank-podium { border-top: 4px solid var(--c, var(--line)); }

/* ---------------------------------------------------- profil d'altitude : pastilles numerotees + legende cliquable */
.track-profile { height: 240px; margin-top: 22px; }
.profile-ravito { font-weight: 800; color: var(--red); }
.profile-ravito.is-start { color: #fff; }
.axis-y { top: -22px; }
.profile-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.pl-item { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 6px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .15s; }
.pl-item:hover, .pl-item:focus-visible { border-color: var(--red); }
.pl-item small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.pl-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--red); color: var(--red); font-size: .8rem; font-weight: 800; line-height: 1; }
.pl-item.is-start .pl-n { background: var(--night); border-color: var(--night); color: #fff; }
.pl-item.is-end .pl-n { border-color: var(--night); }
.pl-key { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: .82rem; }
.pl-key i { display: inline-block; width: 3px; height: 16px; background: var(--gold); }
@media (max-width: 640px) { .track-profile { height: 200px; } .pl-key { margin-left: 0; } }
/* lieux remarquables : pastille etoile sous la courbe */
.profile-ravito.is-poi { transform: translate(-50%, 62%); border-color: var(--gold); color: #9a6f12; background: #fffaf0; font-size: 13px; }
.profile-ravito.is-poi:hover, .profile-ravito.is-poi:focus-visible { transform: translate(-50%, 62%) scale(1.25); }
.pl-key b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gold); background: #fffaf0; color: #9a6f12; font-size: .8rem; line-height: 1; }
/* lieux remarquables numerotes : meme pastille doree sur la carte, le profil et la liste */
.profile-ravito.is-poi { font-weight: 800; }
.pin-poi { font-size: 14px; font-weight: 800; color: #9a6f12; background: #fffaf0; }
.poi-n { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; border: 2px solid var(--gold); background: #fffaf0; color: #9a6f12; font-size: .78rem; font-weight: 800; line-height: 1; vertical-align: middle; }

/* ---------------------------------------------------- carnet de route sous le profil (remplace les pastilles de legende) */
.profile-legend { display: block; margin: 16px 0 0; overflow: hidden; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.pt-head, .pt-row { display: grid; grid-template-columns: minmax(0, 2.4fr) 58px 66px minmax(0, 1.8fr); align-items: center; gap: 6px 10px; padding: 9px 14px; text-align: left; }
.pt-head { background: var(--cream); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pt-row { width: 100%; border: 0; border-top: 1px solid var(--line); background: #fff; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.pt-row:hover, .pt-row:focus-visible { background: var(--cream); }
.pt-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.pt-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--red); color: var(--red); font-size: .78rem; font-weight: 800; line-height: 1; }
.pt-row.is-start .pt-n { background: var(--night); border-color: var(--night); color: #fff; }
.pt-row.is-end .pt-n { border-color: var(--night); }
.pt-row.is-poi .pt-n { border-color: var(--gold); background: #fffaf0; color: #9a6f12; }
.pt-d { color: var(--muted); font-size: .85rem; }
.pt-d .up { color: var(--green); }
.pt-d .dn { color: var(--red); }
@media (max-width: 640px) {
  .pt-head, .pt-row { grid-template-columns: minmax(0, 1fr) 50px 58px; padding: 9px 12px; }
  .pt-head .pt-d { display: none; }
  .pt-row .pt-d { grid-column: 1 / -1; padding-left: 36px; margin-top: -4px; }
}
.pt-note { margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: .75rem; }
.pt-row .pt-d:empty { display: none; }

/* ---------------------------------------------------- profil large (ordinateur) : badges R1… en haut, noms verticaux, distances et km en bas */
.pf-top, .pf-bottom { display: none; position: absolute; left: 0; right: 0; pointer-events: none; }
.pf-top > *, .pf-bottom button { pointer-events: auto; }
@media (min-width: 900px) {
  .track-profile { margin: var(--haut, 150px) 0 var(--bas, 118px); }
  .pf-top, .pf-bottom { display: block; }
  .pf-top { bottom: 100%; height: var(--haut, 138px); }
  .pf-bottom { top: 100%; height: var(--bas, 112px); }
  /* les pastilles sur la courbe deviennent de simples points (les numeros sont en haut) */
  .profile-ravito:not(.is-start):not(.is-end):not(.is-poi) { width: 12px; height: 12px; font-size: 0; border-width: 2px; transform: translate(-50%, -50%); }
  .profile-ravito:not(.is-start):not(.is-end):not(.is-poi):hover { transform: translate(-50%, -50%) scale(1.5); }
  .profile-ravito.is-poi { width: 12px; height: 12px; font-size: 0; border-width: 2px; transform: translate(-50%, -50%); }
  .profile-ravito.is-poi:hover { transform: translate(-50%, -50%) scale(1.5); }
}
.pf-badge { position: absolute; top: 0; transform: translateX(-50%); width: 40px; height: 40px; padding: 0; box-sizing: border-box; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .22); color: var(--ink); font: 800 .85rem var(--font); cursor: pointer; transition: transform .15s; }
.pf-badge:hover { transform: translateX(-50%) scale(1.1); }
.pf-line { position: absolute; top: 42px; bottom: 0; width: 1px; background: var(--line); }
.pf-poi { position: absolute; bottom: 0; display: flex; align-items: center; gap: 6px; height: 96px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 .74rem var(--font); white-space: nowrap; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); cursor: pointer; }
.pf-poi b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gold); background: #fffaf0; color: #9a6f12; font-size: .68rem; line-height: 1; }
.pf-poi:hover span { color: var(--ink); text-decoration: underline; }
.pf-seg-band { position: absolute; top: 22px; left: 0; right: 0; height: 24px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pf-seg { position: absolute; top: 0; transform: translateX(-50%); line-height: 24px; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.pf-chip { position: absolute; top: 50px; transform: translateX(-50%); box-sizing: border-box; width: 92px; text-align: center; height: 22px; line-height: 18px; padding: 2px 4px; background: var(--pc, var(--orange)); color: #fff; font: 800 .7rem var(--font); letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); white-space: nowrap; }
.pf-card { position: absolute; top: 78px; transform: translateX(-50%); box-sizing: border-box; width: 92px; min-height: 56px; padding: 5px 8px; border: 0; border-radius: 0 0 4px 4px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); text-align: left; line-height: 1.15; cursor: pointer; white-space: normal; }
.pf-card b { display: block; color: var(--ink); font-size: .72rem; overflow-wrap: anywhere; }
.pf-card small { color: var(--muted); font-size: .7rem; }
.pf-card.is-start { transform: translateX(6px); border-radius: 4px; }
.pf-chip.is-end, .pf-card.is-end { transform: translateX(-100%); }
/* cle des couleurs du profil : rouge = ravitaillement, orange = lieu remarquable */
.pt-key { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted); }
.pt-key span { display: inline-flex; align-items: center; gap: 7px; }
.pk { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--red); background: #fff; }
.pk.o { border-color: var(--gold); background: #fffaf0; }
