/* index.css - Trail Col du Noyer Design System */

/* Material Symbols Outlined — sous-ensemble auto-hébergé (75 icônes réellement utilisées, 9 Ko, réglage fixe
   FILL 0 / wght 400 / GRAD 0 / opsz 24), généré par Google Fonts avec le paramètre icon_names.
   ⚠️ Toute NOUVELLE icône doit être ajoutée au sous-ensemble : voir CLAUDE.md « Polices d'icônes ». */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('assets/fonts/material-symbols-outlined-subset-v3.woff2') format('woff2');
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Space Grotesk / Manrope self-hosted (avoids the fallback-font flash/resize on the oversized hero heading) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-300-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-300-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-400-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-500-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-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: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/manrope-300-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/manrope-300-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: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/manrope-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/manrope-400-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: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/manrope-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/manrope-500-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: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/manrope-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/manrope-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/manrope-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;
}

:root {
    /* Brand Colors */
    --primary: #E85D24;
    --primary-container: #E85D24;
    --accent-lime: #A4C639;
    --primary-fixed: #ffdbcb;
    --primary-fixed-dim: #ffb691;
    --secondary: #5f5e5e;
    --secondary-container: #e4e2e1;
    --tertiary: #006192;
    --tertiary-container: #007bb8;
    
    /* Surfaces */
    --background: #fdf8fd;
    --surface: #fdf8fd;
    --surface-bright: #fdf8fd;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f7f2f8;
    --surface-container: #f1ecf2;
    --surface-container-high: #ebe7ec;
    --surface-container-highest: #e5e1e7;
    
    /* On-Colors */
    --on-primary: #ffffff;
    --on-surface: #1c1b1f;
    --on-surface-variant: #574238;
    --on-background: #1c1b1f;
    
    /* Outlines */
    --outline: #8b7266;
    --outline-variant: #dec0b3;
}

/* Base Styles */
body {
    background-color: var(--background);
    color: var(--on-surface);
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-headline {
    font-family: 'Space Grotesk', sans-serif;
}

/* Custom Components & Utilities */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* The Alpine Masks (Topographic Dynamism) */
.alpine-mask {
    clip-path: polygon(0 15%, 20% 0, 40% 15%, 60% 5%, 80% 20%, 100% 0, 100% 100%, 0 100%);
}

.alpine-mask-reverse {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 80% 100%, 60% 80%, 40% 95%, 20% 80%, 0 100%);
}

/* Glassmorphism Navigation */
.nav-glass {
    background: rgba(253, 248, 253, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

/* Premium Hover Effects (No-Line Rule) */
.race-card {
    background: var(--surface-container-low);
    border: 1px solid rgba(222, 192, 179, 0.1);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.race-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Alpine Gradient (for CTAs) */
.alpine-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
}

/* Mountain Masks (Jagged Dividers) */
.mountain-mask {
    clip-path: polygon(0 15%, 15% 0, 30% 10%, 50% 0, 70% 15%, 85% 5%, 100% 15%, 100% 100%, 0 100%);
}

/* Hero Ken Burns — slow, subtle drift/zoom on hero background images */
.hero-kenburns {
    transform-origin: center center;
    animation: kenburns 22s linear infinite alternate;
    will-change: transform;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.18) translate(-2%, -2%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-kenburns {
        animation: none;
    }
}

/* ------------------------------------------------------------------
   Galerie "Les parcours" — les photos s'échappent du sac de la traileuse.
   < 1024px : grille classique. En dessous, la dispersion n'a pas la place :
              mesuré à 768px, les cartes tombent à 85px (légendes illisibles)
              et 5 d'entre elles recouvrent la traileuse.
   >= 1024px : dispersion absolue, chaque photo portant ses coordonnées via
               les variables --x / --y / --w / --r / --d posées en inline.
   ------------------------------------------------------------------ */
.trail-scatter {
    position: relative;
}

/* Photo de fond de la section + voile assombrissant.
   Le voile est indispensable : sans lui, le titre blanc et les cartes
   polaroïd deviennent illisibles sur le ciel orange. */
.parcours-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/parcours-fond-crepuscule.webp');
    background-size: cover;
    /* Photo recadrée à droite de sa coureuse d'origine (elle se superposait à la
       traileuse du décor) : il ne reste que la vallée, le village et les sommets.
       Sous lg (grille de cartes, sans traileuse) on cadre sur le village/le sommet. */
    background-position: 30% 45%;
    z-index: 0;
}

@media (min-width: 1024px) {
    /* La section est plus large que haute : l'image est calée sur la largeur,
       seule la position verticale compte — on garde sommets (haut) et village (bas). */
    .parcours-bg { background-position: center 40%; }
}

.parcours-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Voile asymétrique : sombre à gauche, où vivent le titre et le paragraphe,
       clair à droite pour laisser respirer le coucher de soleil et la traileuse.
       Valeurs calibrées sur mesure de contraste : titre 12,7:1 (7,9 au pire),
       paragraphe 9,5:1 (5,4 au pire) — le seuil WCAG AA est à 4,5:1.
       Ne pas éclaircir davantage : à −20% le paragraphe tombe à 3,0:1. */
    background:
        /* Le premier arrêt est à 1 et non .92 : le séparateur en silhouette de
           montagne posé juste au-dessus est en aplat rgb(28 27 31). Sans ça la
           première ligne de la section est jusqu'à 7 niveaux plus claire que lui,
           et la marche se voit comme un fin trait horizontal sur toute la largeur. */
        linear-gradient(to bottom, rgb(28 27 31 / 1) 0%, rgb(28 27 31 / .92) 3%, rgb(28 27 31 / .40) 24%, rgb(28 27 31 / .34) 60%, rgb(28 27 31 / .90) 100%),
        linear-gradient(to right, rgb(28 27 31 / .86) 0%, rgb(28 27 31 / .50) 45%, rgb(28 27 31 / .08) 100%);
}

/* Sous lg le texte court sur toute la largeur : le voile « sombre à gauche / clair à droite »
   ne protège plus que la moitié du paragraphe, et le ciel rose de la photo (haut) est clair.
   Mesuré : paragraphe 3,9:1 au pire avec le voile asymétrique, d'où un voile horizontal
   quasi uniforme ici (seuil WCAG AA 4,5:1). */
@media (max-width: 1023px) {
    .parcours-bg::after {
        background:
            linear-gradient(to bottom, rgb(28 27 31 / 1) 0%, rgb(28 27 31 / .92) 3%, rgb(28 27 31 / .40) 24%, rgb(28 27 31 / .34) 60%, rgb(28 27 31 / .90) 100%),
            linear-gradient(to right, rgb(28 27 31 / .64) 0%, rgb(28 27 31 / .58) 100%);
    }
}

.trail-scatter__runner,
.trail-scatter__shadow {
    display: none;
}

.trail-scatter__card {
    transition: transform .4s cubic-bezier(.22, .9, .3, 1), box-shadow .4s ease;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .trail-scatter {
        height: 780px;
    }

    /* La traileuse : décorative, jamais cliquable, sous les photos.
       Légèrement assombrie/contrastée pour s'asseoir dans le paysage voilé. */
    .trail-scatter__runner {
        display: block;
        position: absolute;
        left: 50%;
        bottom: 0;
        height: 94%;
        width: auto;
        transform: translateX(-50%);
        filter: brightness(.88) contrast(1.06) saturate(1.05);
        pointer-events: none;
        user-select: none;
        z-index: 1;
    }

    /* Ombre portée au sol : sans elle la traileuse flotte au-dessus du décor. */
    .trail-scatter__shadow {
        display: block;
        position: absolute;
        left: 50%;
        bottom: -6px;
        width: 230px;
        height: 34px;
        transform: translateX(-50%);
        background: radial-gradient(ellipse at center, rgb(12 10 14 / .75) 0%, rgb(12 10 14 / .35) 45%, transparent 72%);
        filter: blur(5px);
        pointer-events: none;
        z-index: 0;
    }

    /* La perspective est portée par le conteneur : les cartes proches du sac
       sont vues de biais (rotateY marqué), celles qui se sont éloignées
       reviennent de face et grandissent — d'où l'impression de sortie du sac. */
    .trail-scatter {
        perspective: 1400px;
        perspective-origin: 50% 32%;
    }

    /* Sélecteur à deux classes volontairement : les cartes portent aussi la
       classe Tailwind `relative` (pour la légende), injectée APRÈS index.css.
       À spécificité égale elle gagnerait et casserait la dispersion. */
    .trail-scatter .trail-scatter__card {
        position: absolute;
        left: var(--x);
        top: var(--y);
        width: var(--w);
        transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) rotate(var(--r, 0deg));
        z-index: var(--z, 2);
        animation: scatterDrift 7s ease-in-out infinite alternate;
        animation-delay: var(--d, 0s);
    }

    .trail-scatter .trail-scatter__card:hover,
    .trail-scatter .trail-scatter__card:focus-visible {
        transform: rotateY(0deg) rotateX(0deg) rotate(0deg) scale(1.12);
        z-index: 30;
    }

    /* Cartes qui viennent juste de sortir du sac : trop petites pour porter
       une légende lisible, elle est masquée et le cadre resserré. */
    .trail-scatter .trail-scatter__card--mini {
        padding: 4px 4px 5px;
    }
    .trail-scatter .trail-scatter__card--mini .trail-scatter__caption { display: none; }
}

/* translate est une propriété distincte de transform : le flottement
   n'écrase donc pas la rotation ni le scale au survol. */
@keyframes scatterDrift {
    from { translate: 0 0; }
    to   { translate: 0 -12px; }
}

@media (prefers-reduced-motion: reduce) {
    .trail-scatter__card {
        animation: none;
        transition: none;
    }
}

/* ------------------------------------------------------------------
   Zoom d'une photo du parcours : la miniature elle-même s'agrandit
   (technique FLIP), le décor initial reste visible mais flouté.
   ------------------------------------------------------------------ */
.photo-zoom {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.photo-zoom.is-open {
    display: block;
    opacity: 1;
}

.photo-zoom__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(28 27 31 / .45);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

/* Sans backdrop-filter, le flou n'existe pas : on compense par un voile
   nettement plus opaque, sinon le texte du panneau devient illisible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .photo-zoom__backdrop {
        background: rgb(28 27 31 / .92);
    }
}

/* Le cadre est positionné à sa taille finale ; l'animation d'ouverture
   part de la position/échelle de la miniature (transform inverse). */
.photo-zoom__frame {
    position: absolute;
    z-index: 1;
    background: #fff;
    padding: 12px;
    padding-bottom: 44px;
    border-radius: 3px;
    box-shadow: 0 40px 80px rgb(0 0 0 / .6);
    transform-origin: top left;
    will-change: transform;
}

.photo-zoom__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .18s ease;
}

.photo-zoom__caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
    color: #57534e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 13px;
}

/* z-index supérieur au cadre : les boutons sont déclarés avant lui dans le
   DOM, sans ça la photo les recouvre et ils deviennent incliquables dès que
   le cadre occupe toute la largeur (cas du mobile). */
.photo-zoom__btn {
    position: absolute;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgb(255 255 255 / .12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.photo-zoom__btn:hover {
    background: rgb(255 255 255 / .24);
}

.photo-zoom__close { top: 24px; right: 24px; }
.photo-zoom__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.photo-zoom__next { right: 16px; top: 50%; transform: translateY(-50%); }

.photo-zoom__counter {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgb(255 255 255 / .6);
    font-size: 13px;
}

/* Sur petit écran le cadre occupe presque toute la largeur : on sort les
   flèches de la photo et on les pose sous elle, de part et d'autre. */
@media (max-width: 639px) {
    .photo-zoom__prev {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 16px;
        transform: translateX(-64px);
    }

    .photo-zoom__next {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 16px;
        transform: translateX(16px);
    }

    .photo-zoom__counter {
        bottom: 78px;
    }
}

/* Homepage Hero Intro Video — plays once, then fades to reveal the static image beneath */
.hero-intro-video {
    opacity: 1;
    transition: opacity 0.8s ease;
}

.hero-intro-video.hero-intro-video--done {
    opacity: 0;
    pointer-events: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-container);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(154, 65, 0, 0.2);
}

.btn-secondary {
    background-color: var(--surface-container-highest);
    color: var(--on-surface);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--surface-container-high);
}

/* Typography Overrides */
.tracking-monumental {
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.text-asymmetry {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Scroll Effects */
.nav-glass {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

#nav-container.scrolled {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

#logo.scrolled {
    height: 40px !important;
    top: 0 !important;
    filter: brightness(0) saturate(100%) invert(42%) sepia(87%) saturate(1478%) hue-rotate(346deg) brightness(96%) contrast(92%) !important;
}

@media (min-width: 768px) {
    #logo.scrolled {
        height: 48px !important;
    }
}


/* ─────────────────────────────────────────────
   Menu mobile (< 768px) — bouton hamburger + panneau plein écran.
   Partagé par les 3 navigations (index.html en dur + 2 variantes de
   components.js). Logique d'ouverture : mobile-menu.js.
   ───────────────────────────────────────────── */
.nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #1c1b1f;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-burger .material-symbols-outlined { font-size: 30px; }
.nav-burger--dark { color: #F5F5F3; }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 2rem 2rem;
    overflow-y: auto;
    background: #FDF8FD;
    color: #1c1b1f;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.mobile-menu--dark { background: #0A0A0A; color: #F5F5F3; }
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.mobile-menu__brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.mobile-menu__close .material-symbols-outlined { font-size: 30px; }
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, .2);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
}
.mobile-menu__link.is-active { color: #E85D24; }
.mobile-menu__cta {
    display: block;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: #E85D24;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}
body.menu-open { overflow: hidden; }

/* Burger jusqu'à 1279 px : en dessous, les liens centrés n'ont pas la place entre le grand logo et le bouton S'inscrire
   (mesuré, surtout sur les pages de course qui ont 6 liens et la colonne latérale). Même seuil dans mobile-menu.js. */
@media (min-width: 1280px) {
    .nav-burger, .mobile-menu { display: none; }
}
@media (max-width: 1279px) {
    #nav-container > div.hidden { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-menu { transition: none; transform: none; }
}

/* Tableau comparatif (tiroir « Comparatif des Défis »), < 640px : une fiche par course.
   En tableau, la colonne « Tarif » était écrasée à ~44px (dates coupées mot par mot sur 7 lignes) et le
   tableau débordait du tiroir. Patron « table responsive » : les <td> passent en bloc, le libellé de la
   colonne est posé en absolu dans la marge gauche (pas de display:flex sur les <td> : leurs enfants,
   texte + <span> + <br>, deviendraient des items flex séparés). Les libellés sont ceux de l'<thead>,
   à tenir synchronisés si les colonnes changent. */
@media (max-width: 639px) {
    .compare-table thead { display: none; }
    .compare-table,
    .compare-table tbody,
    .compare-table tr,
    .compare-table td { display: block; width: 100%; }
    .compare-table tr { padding: 1rem 0; }
    .compare-table td { position: relative; padding: .2rem 0 .2rem 6.5rem; text-align: left; }
    .compare-table td::before {
        position: absolute; left: 0; top: .3rem;
        font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
        color: var(--on-surface-variant);
    }
    .compare-table td:first-child { padding: 0 0 .5rem; }
    .compare-table td:nth-child(2)::before { content: "Distance"; }
    .compare-table td:nth-child(3)::before { content: "D+"; }
    .compare-table td:nth-child(4)::before { content: "Tarif"; }
    .compare-table td:nth-child(5)::before { content: "Difficulté"; }
}

/* Lien vidéo « jeu de la meule et du jambon » : clignote doucement (désactivé si l'utilisateur réduit les animations). */
@keyframes blink-soft { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: no-preference) {
    .blink-soft { animation: blink-soft 1.3s ease-in-out infinite; }
}

/* Jeu de la meule et du jambon : vignette dans le bandeau + vidéo verticale (478×850) dans un <dialog> */
.meule-thumb { position: relative; width: 72px; height: 96px; border-radius: .75rem; overflow: hidden; box-shadow: 0 6px 16px rgba(28,27,31,.25); cursor: pointer; }
.meule-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meule-thumb__play { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(232,93,36,.92); color: #fff; font-size: 24px; }
.meule-dialog { border: 0; padding: 0; background: #1C1B1F; border-radius: 1.25rem; overflow: visible; width: min(92vw, calc((92vh - 2rem) * 478 / 850)); max-width: 420px; }
.meule-dialog::backdrop { background: rgba(0,0,0,.72); }
.meule-dialog video { display: block; width: 100%; aspect-ratio: 478 / 850; border-radius: 1.25rem; background: #1C1B1F; }
.meule-dialog__close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #1C1B1F; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.4); cursor: pointer; }

/* Carte « Explorer la trace » des pages de course : décor de crêtes, sentier qui se dessine, point qui court jusqu'à l'arrivée */
.trace-card { position: relative; overflow: hidden; border-radius: 1.5rem; background: linear-gradient(180deg, #1C1B1F 0%, #2A2530 100%); color: #fff; text-align: left; margin-bottom: 4rem; box-shadow: 0 24px 50px rgba(28,27,31,.35); }
.trace-card__scene { display: block; width: 100%; height: auto; }
.trace-card__line { animation: trace-draw 7s ease-in-out infinite; }
.trace-card__runner { offset-rotate: 0deg; animation: trace-run 7s ease-in-out infinite; }
.trace-card__flag { transform-box: fill-box; transform-origin: 0 100%; animation: trace-flag 7s ease-out infinite; }
@keyframes trace-draw { 0% { stroke-dashoffset: 100; opacity: .2; } 8% { opacity: 1; } 70%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .2; } }
@keyframes trace-run { 0%, 6% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 70%, 92% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes trace-flag { 0%, 62% { transform: scale(0); } 72%, 100% { transform: scale(1); } }
.trace-card__body { padding: 1.5rem 1.5rem 2rem; text-align: center; }
.trace-card__kicker { font-family: 'Space Grotesk', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: #FF8A57; margin-bottom: 1rem; }
.trace-card__stats { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.trace-card__stats span { display: flex; flex-direction: column; align-items: center; min-width: 9rem; padding: .75rem 1.25rem; border-radius: 1rem; background: rgba(255,255,255,.08); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.trace-card__stats strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.02em; color: #fff; text-transform: none; }
.trace-card__text { max-width: 34rem; margin: 0 auto 1.5rem; color: rgba(255,255,255,.85); line-height: 1.6; }
.trace-card__btn { position: relative; display: flex; width: 100%; max-width: 26rem; margin: 0 auto; justify-content: center; align-items: center; gap: .75rem; padding: 1.35rem 2rem; border-radius: 1rem; background: linear-gradient(135deg, #FF7A3D, #E85D24); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; border: 2px solid rgba(255,255,255,.55); box-shadow: 0 12px 30px rgba(232,93,36,.55); transition: transform .2s, filter .2s; animation: trace-cta-pulse 2.2s ease-out infinite; }
.trace-card__btn .material-symbols-outlined { font-size: 1.75rem; }
.trace-card__btn::after { content: '→'; font-size: 1.5rem; line-height: 1; transition: transform .2s; animation: trace-cta-nudge 1.4s ease-in-out infinite; }
.trace-card__btn:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.1); }
.trace-card__btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes trace-cta-pulse { 0% { box-shadow: 0 12px 30px rgba(232,93,36,.55), 0 0 0 0 rgba(255,138,87,.7); } 70%, 100% { box-shadow: 0 12px 30px rgba(232,93,36,.55), 0 0 0 18px rgba(255,138,87,0); } }
@keyframes trace-cta-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (min-width: 768px) { .trace-card__body { padding: 2rem 3rem 2.5rem; } }
@media (prefers-reduced-motion: reduce) { .trace-card__line, .trace-card__runner, .trace-card__flag, .trace-card__btn, .trace-card__btn::after { animation: none; } .trace-card__runner { offset-distance: 100%; } }

/* Film de l'édition 2026 : vignette 16/9 dans le bandeau + variante large de la fenêtre vidéo */
.film-thumb { position: relative; width: 128px; height: 72px; border-radius: .75rem; overflow: hidden; box-shadow: 0 6px 16px rgba(28,27,31,.25); cursor: pointer; }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meule-dialog.meule-dialog--wide { width: min(94vw, calc((92vh - 2rem) * 16 / 9), 1000px); max-width: none; }
.meule-dialog.meule-dialog--wide video { aspect-ratio: 16 / 9; }

/* Bandeau jeu de la meule : vignettes cliquables avec légende (play toujours centré sur l'image) */
.video-tile { display: flex; flex-direction: column; align-items: center; gap: .4rem; max-width: 9.5rem; cursor: pointer; }
.video-tile__label { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .6875rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .08em; color: #C2410C; text-align: center; }
.video-tile:hover .meule-thumb__play, .video-tile:focus-visible .meule-thumb__play { filter: brightness(1.15); transform: scale(1.08); }
.meule-thumb__play { transition: transform .2s, filter .2s; }
.film-thumb { position: relative; display: block; }
.meule-thumb { display: block; }

.meule-dialog__status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: .6rem 1.1rem; border-radius: 999px; background: rgba(28,27,31,.82); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .8125rem; letter-spacing: .04em; pointer-events: none; white-space: nowrap; }
.meule-dialog__status[hidden] { display: none; }

/* FAQ de l'accueil (section sombre) : accordéon natif details/summary */
.faq-item { border-bottom: 1px solid rgba(255,255,255,.14); }
.faq-q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: #fff; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(232,93,36,.18); color: #E85D24; font-size: 1.4rem; line-height: 1; transition: transform .25s ease, background-color .25s ease; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); background: #E85D24; color: #fff; }
.faq-q:hover { color: #FF8A57; }
.faq-q:focus-visible { outline: 3px solid #E85D24; outline-offset: 4px; border-radius: .5rem; }
.faq-a { padding: 0 3rem 1.4rem 0; color: rgba(255,255,255,.75); line-height: 1.65; font-size: .97rem; }
@media (prefers-reduced-motion: reduce) { .faq-q::after { transition: none; } }

/* Liens internes « Pour aller plus loin » (bas de chaque page, avant le pied de page) */
.related-links { background: #F4EFE9; padding: 3.5rem 1.5rem; border-top: 1px solid rgba(28,27,31,.08); }
.related-links__inner { max-width: 80rem; margin: 0 auto; }
.related-links__title { font-family: 'Space Grotesk', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.75rem; color: #1C1B1F; margin-bottom: 1.5rem; }
.related-links__list { display: grid; grid-template-columns: 1fr; gap: .875rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .related-links__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .related-links__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related-links__item { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1.1rem 1.25rem; border-radius: 1rem; background: #fff; border: 1px solid rgba(28,27,31,.08); text-decoration: none; color: #1C1B1F; transition: border-color .2s, transform .2s, box-shadow .2s; }
.related-links__item:hover { border-color: #E85D24; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28,27,31,.08); }
.related-links__item:focus-visible { outline: 3px solid #E85D24; outline-offset: 3px; }
.related-links__label { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; }
.related-links__desc { font-size: .9rem; color: #574238; line-height: 1.45; }

/* ============================================================
   VARIANTES DE TEST — hero v2 et menu v2
   Actives uniquement quand <html data-hero="v2"> / <html data-menu="v2"> (sélecteur ?variantes).
   ============================================================ */

/* Hero v2 : fond sombre en dégradé, vidéo masquée, titre en majuscules, contenu aligné en bas */
[data-hero="v2"] header.relative.min-h-screen {
  background: linear-gradient(165deg, #1c1b1f 0%, #2b1409 55%, #E85D24 130%);
  align-items: flex-end;
}
/* fond photo et vidéo masqués : le dégradé fait le fond */
[data-hero="v2"] header.relative.min-h-screen > div.absolute.inset-0 { display: none !important; }
[data-hero="v2"] header.relative.min-h-screen h1 {
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: clamp(3.25rem, 11vw, 9rem);
  line-height: .9;
}

/* Menu v2 : barre pleine, fond sombre, liens en majuscules, filet orange dessous */
[data-menu="v2"] #navbar {
  background: #1c1b1f !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 3px solid #E85D24;
}
[data-menu="v2"] #navbar a {
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: .08em;
}
[data-menu="v2"] #navbar a:hover { color: #E85D24 !important; }

/* ============================================================
   VARIANTES DE TEST — hero v3 et menu v3 (maquette : titre italique condensé, badge, CTA à icône,
   carte film à droite, chiffres clés en bas, décor courbes de niveau).
   La vidéo de fond est conservée. Par défaut sur le site depuis le 13/10/2026 (hero et menu) ; anciennes versions testables avec le sélecteur (data-hero="v1", data-menu="v1").
   ============================================================ */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/barlow-condensed-800i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

.hv3 { display: none; }
:root:not([data-hero="v1"], [data-hero="v2"]) header.relative.min-h-screen { padding: 0 !important; align-items: stretch; justify-content: stretch; }
:root:not([data-hero="v1"], [data-hero="v2"]) header.relative.min-h-screen > .hero-default { display: none; }
:root:not([data-hero="v1"], [data-hero="v2"]) header.relative.min-h-screen > .absolute.bottom-10 { bottom: 1.25rem; z-index: 3; }
:root:not([data-hero="v1"], [data-hero="v2"]) header.relative.min-h-screen > .absolute.bottom-10 > span:first-child { font-weight: 700; color: #fff; }
/* voile : sombre à gauche (texte) et en bas (chiffres), la vidéo reste lisible à droite */
:root:not([data-hero="v1"], [data-hero="v2"]) header.relative.min-h-screen > .absolute.inset-0 > div:last-child {
  background:
    linear-gradient(90deg, rgba(10,8,10,.78) 0%, rgba(10,8,10,.5) 38%, rgba(10,8,10,0) 68%),
    linear-gradient(0deg, rgba(10,8,10,.85) 0%, rgba(10,8,10,.25) 28%, rgba(10,8,10,0) 50%),
    linear-gradient(180deg, rgba(10,8,10,.45) 0%, rgba(10,8,10,0) 18%);
}

:root:not([data-hero="v1"], [data-hero="v2"]) .hv3 { display: block; position: relative; z-index: 2; width: 100%; color: #fff; }
/* courbes de niveau : collées au coin bas gauche du hero, elles sortent par le bas du cadre (dégradé orange -> vert) */
.hv3-topo { position: absolute; left: 0; bottom: 0; width: min(36vw, 560px); height: auto; aspect-ratio: 600 / 420; pointer-events: none; }
.hv3-topo path { vector-effect: non-scaling-stroke; stroke-opacity: .3; } /* 70 % de transparence */

.hv3-inner {
  position: relative; max-width: 1440px; margin: 0 auto; min-height: 100vh;
  padding: 12rem 2rem 6.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; column-gap: 3rem; row-gap: 3rem;
  align-items: end;
}
.hv3-content { grid-column: 1; grid-row: 1; align-self: start; max-width: 760px; }
/* logo un peu plus petit en haut de page (il chevauchait le badge) */
@media (min-width: 1024px) { :root:not([data-hero="v1"], [data-hero="v2"]) #logo:not(.scrolled) { height: 10rem; } }

.hv3-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem; border-radius: .6rem;
  border: 1.5px solid rgba(255,255,255,.35); background: rgba(20,16,16,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #FF8A3D;
}
.hv3-badge svg { width: 1.3rem; height: 1.3rem; color: #FF8A3D; }

.hv3-title {
  margin: 1.25rem 0 1.1rem; font-family: 'Barlow Condensed', 'Space Grotesk', sans-serif; font-style: italic; font-weight: 800;
  text-transform: uppercase; line-height: .84; letter-spacing: -.005em; font-size: clamp(3.6rem, 8.6vw, 8.75rem);
  /* aspect « brossé » : quelques manques dans la matière des lettres */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4 0 0 0 3.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4 0 0 0 3.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hv3-title span { display: block; }
.hv3-title__l1 { color: #fff; }
.hv3-title__l2 { color: #F26A1F; background: linear-gradient(180deg, #FF8A2A 0%, #E85D24 60%, #D44A14 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hv3-org { margin: 0 0 1.6rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(.8rem, 1.2vw, 1.05rem); letter-spacing: .38em; text-transform: uppercase; }
.hv3-date { display: flex; align-items: center; gap: .9rem; margin: 0 0 2rem; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
.hv3-date svg { width: 1.7rem; height: 1.7rem; flex: none; padding-right: .8rem; box-sizing: content-box; border-right: 1px solid rgba(255,255,255,.45); }

.hv3-ctas { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.hv3-btn {
  display: inline-flex; align-items: center; gap: 1.1rem; min-height: 5.75rem; padding: 0 1.75rem 0 2.1rem; border-radius: .6rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1.2; text-decoration: none;
  box-shadow: 0 14px 34px rgba(0,0,0,.3); transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.hv3-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 40px rgba(0,0,0,.38); }
.hv3-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hv3-btn--primary { color: #fff; background: linear-gradient(135deg, #FF7A2A 0%, #E85D24 55%, #D9480F 100%); min-width: 20rem; }
.hv3-btn--lime { color: #1C1B1F; background: linear-gradient(135deg, #B4D84A 0%, #A4C639 60%, #93B52C 100%); min-width: 20rem; }
.hv3-btn__icon { width: 2rem; height: 2rem; font-size: 2rem; flex: none; }
.hv3-btn__text { flex: 1; display: flex; flex-direction: column; }
.hv3-btn--lime .hv3-btn__text { max-width: 9em; }
.hv3-btn__text small { font-family: 'Manrope', sans-serif; font-weight: 500; font-size: .95rem; opacity: .92; }
.hv3-btn__arrow { font-size: 1.6rem; transition: transform .25s ease; }
.hv3-btn:hover .hv3-btn__arrow { transform: translateX(4px); }

.hv3-access { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; font-size: .9rem; color: rgba(255,255,255,.72); text-decoration: none; }
.hv3-access:hover { color: #fff; }
.hv3-access .material-symbols-outlined { font-size: 1.1rem; }

/* carte du film : cadre clair lumineux, ombre portée */
.hv3-film {
  grid-column: 2; grid-row: 1; align-self: end; position: relative; width: min(25vw, 390px); aspect-ratio: 16 / 11; padding: 0;
  /* bordure dégradée (maquette) : crème en haut, orange en haut à droite, vert en bas, clair à gauche */
  border: 3px solid transparent; border-radius: 1.15rem; overflow: hidden; cursor: pointer; color: #fff; text-align: left;
  background: linear-gradient(#1C1B1F, #1C1B1F) padding-box,
    conic-gradient(from 0deg, #FFF6E0 0deg, #FFB070 30deg, #FF7A2A 60deg, #F0611E 95deg, #C9D84A 130deg, #A4C639 170deg, #A4C639 225deg, #D8EBA0 270deg, #FFFFFF 315deg, #FFF6E0 360deg) border-box;
  /* parallélogramme : haut et bas horizontaux, côtés inclinés (le contenu est redressé, voir .hv3-film > span) */
  transform: skewX(-4deg);
  box-shadow:
    0 -4px 16px rgba(255,255,255,.25),
    0 28px 60px rgba(0,0,0,.5);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hv3-film:hover { transform: skewX(-4deg) scale(1.03); }
.hv3-film > .hv3-film__kicker, .hv3-film > .hv3-film__title, .hv3-film > .hv3-film__time { transform: skewX(4deg); }
.hv3-film img { transform: skewX(4deg) scale(1.08); }
.hv3-film:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hv3-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: calc(1.15rem - 3px); }
.hv3-film__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.78) 100%); }
.hv3-film__play {
  position: absolute; left: 3.5%; top: 30%; width: 4.1rem; height: 4.1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #FF8A3D, #F0611E 55%, #D9480F);
  box-shadow: 0 0 0 5px rgba(240,97,30,.28), 0 0 28px 6px rgba(240,97,30,.55), 0 6px 16px rgba(0,0,0,.45);
  transition: transform .25s ease;
}
.hv3-film__play { transform: skewX(4deg); }
.hv3-film:hover .hv3-film__play { transform: skewX(4deg) scale(1.08); }
.hv3-film__play .material-symbols-outlined { font-size: 2.6rem; color: #fff; }
.hv3-film__kicker {
  position: absolute; left: calc(3.5% + 4.6rem); top: calc(30% + .95rem); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(.72rem, .9vw, .95rem);
  letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; background: rgba(18,18,16,.62); padding: .3rem .75rem; border-radius: .45rem;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.hv3-film__title { position: absolute; left: 9%; bottom: 8%; font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.9rem); line-height: .86; text-transform: uppercase; text-shadow: 0 3px 14px rgba(0,0,0,.6); }
.hv3-film__time { position: absolute; right: 5%; bottom: 9%; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .9rem; padding: .3rem .6rem; border-radius: .5rem; border: 1px solid rgba(255,255,255,.55); background: rgba(10,10,10,.6); }

/* étiquette + logo UTMB Index (demande de l'organisation, 15/10/2026) */
.hv3-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.hv3-utmb { display: block; height: 2.35rem; width: auto; border-radius: .35rem; box-shadow: 0 6px 18px rgba(0,0,0,.3); }

/* chiffres clés */
.hv3-stats { grid-column: 1 / -1; grid-row: 2; list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; }
.hv3-stats li { display: flex; align-items: center; gap: .9rem; padding: .25rem 2.4rem; }
.hv3-stats li + li { border-left: 1.5px solid rgba(164,198,57,.55); }
.hv3-stats svg { width: 2.7rem; height: 2.7rem; color: #A4C639; flex: none; }
.hv3-stats span { display: flex; flex-direction: column; }
.hv3-stats b { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; }
.hv3-stats small { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hv3-stats li:nth-child(4) span { flex-direction: row; align-items: flex-end; gap: .55rem; }
.hv3-stats li:nth-child(4) b { font-size: 2.3rem; line-height: .9; }
.hv3-stats li:nth-child(4) small { display: flex; flex-direction: column; font-size: .85rem; color: #fff; letter-spacing: .1em; }
.hv3-stats em { font-style: normal; font-size: .72rem; letter-spacing: .18em; color: rgba(255,255,255,.75); }

@media (max-width: 1100px) {
  .hv3-btn { min-height: 4.75rem; font-size: 1.1rem; min-width: 0; }
  .hv3-stats li { padding: .25rem 1.4rem; }
}
@media (max-width: 1023px) {
  .hv3-inner { grid-template-columns: 1fr; grid-template-rows: none; align-content: start; padding: 10rem 6% 7rem; row-gap: 2.5rem; }
  .hv3-content, .hv3-film, .hv3-stats { grid-column: 1; grid-row: auto; }
  .hv3-film { width: min(calc(100% - 16px), 420px); justify-self: start; }
  .hv3-film:hover { transform: skewX(-4deg) scale(1.02); }
  .hv3-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; justify-content: start; }
  .hv3-stats li { padding: 0; }
  .hv3-stats li + li { border-left: 0; }
  .hv3-topo { width: 100vw; }
  .hv3-topo path { stroke-opacity: .3; }
}
/* téléphone : titre pleine largeur, textes sur une ligne, hero plus court (film compact, chiffres en 2 x 2 serrés) */
@media (max-width: 640px) {
  .hv3-inner { padding: 10.25rem 1.25rem 4.5rem; row-gap: 1.75rem; }
  .hv3-badge { font-size: .7rem; padding: .4rem .8rem; letter-spacing: .12em; }
  .hv3-title { font-size: min(17.5vw, 5.5rem); margin: 1rem 0 .8rem; -webkit-mask-image: none; mask-image: none; }
  .hv3-org { font-size: min(3.15vw, .8rem); letter-spacing: .09em; margin-bottom: 1.1rem; white-space: nowrap; }
  .hv3-date { font-size: min(4.3vw, 1.05rem); gap: .6rem; white-space: nowrap; }
  .hv3-date svg { width: 1.3rem; height: 1.3rem; padding-right: .55rem; }
  .hv3-date { margin-bottom: 1.4rem; }
  .hv3-ctas { flex-direction: column; gap: .75rem; }
  .hv3-btn { width: 100%; min-height: 3.75rem; padding: 0 1.1rem; gap: .9rem; font-size: 1.1rem; }
  .hv3-btn__icon { width: 1.6rem; height: 1.6rem; font-size: 1.6rem; }
  .hv3-btn__text small { font-size: .82rem; }
  .hv3-btn--lime .hv3-btn__text { max-width: none; }
  .hv3-access { margin-top: 1rem; font-size: .82rem; }
  .hv3-film { width: 100%; aspect-ratio: 16 / 8; border-radius: .9rem; }
  .hv3-film__play { width: 3.2rem; height: 3.2rem; top: 26%; }
  .hv3-film__play .material-symbols-outlined { font-size: 2rem; }
  .hv3-film__kicker { left: calc(3.5% + 3.7rem); top: calc(26% + .75rem); font-size: .7rem; }
  .hv3-film__title { font-size: 1.75rem; left: 6%; bottom: 9%; }
  .hv3-film__time { font-size: .75rem; }
  .hv3-stats { column-gap: 1rem; row-gap: 1rem; }
  .hv3-stats li { gap: .6rem; }
  .hv3-stats b { font-size: 1.15rem; }
  .hv3-stats small { font-size: .62rem; letter-spacing: .14em; }
  .hv3-stats svg { width: 2rem; height: 2rem; }
  /* 4e chiffre présenté comme les autres : nombre au-dessus, libellé dessous */
  .hv3-stats li:nth-child(4) span { flex-direction: column; align-items: flex-start; gap: 0; }
  .hv3-stats li:nth-child(4) b { font-size: 1.15rem; line-height: 1.05; }
  .hv3-stats li:nth-child(4) small { font-size: .62rem; letter-spacing: .14em; color: rgba(255,255,255,.75); }
  .hv3-stats li:nth-child(4) em { font-size: .62rem; letter-spacing: .14em; }
  :root:not([data-hero="v1"], [data-hero="v2"]) header.relative.min-h-screen > .absolute.bottom-10 { display: none; }
}
/* Ordinateur : le hero v3 tient dans la hauteur de l'écran, avec de la marge sous les chiffres clés et « Explorer »
   (tailles indexées sur la hauteur : titre, boutons, espacements, logo). */
@media (min-width: 1024px) {
  :root:not([data-hero="v1"], [data-hero="v2"]) #logo:not(.scrolled) { height: clamp(6rem, 15.5vh, 10rem); }
  .hv3-inner { padding-top: clamp(8rem, 20vh, 12rem); padding-bottom: clamp(5.25rem, 11.5vh, 8rem); row-gap: clamp(1.25rem, 2.8vh, 3rem); }
  .hv3-badge { padding: clamp(.35rem, .9vh, .5rem) 1rem; }
  .hv3-title { font-size: clamp(3.6rem, min(8.6vw, 11vh), 8.75rem); margin: clamp(.75rem, 1.8vh, 1.25rem) 0 clamp(.7rem, 1.6vh, 1.1rem); }
  .hv3-org { margin-bottom: clamp(.7rem, 2.2vh, 1.6rem); }
  .hv3-date { margin-bottom: clamp(1rem, 2.6vh, 2rem); }
  .hv3-btn { min-height: clamp(3.4rem, 8vh, 5.75rem); }
  .hv3-access { margin-top: clamp(.6rem, 1.8vh, 1.4rem); }
  .hv3-film { width: min(24vw, 370px, 42vh); }
}
/* menu v3 sur téléphone : bouton S'inscrire plus compact (laisse la place au logo et au burger) */
@media (max-width: 767px) {
  :root:not([data-menu="v1"], [data-menu="v2"]) #navbar #nav-container .btn-primary { padding: .6rem 1rem; gap: .5rem; font-size: .8rem; }
  :root:not([data-menu="v1"], [data-menu="v2"]) #navbar #nav-container .btn-primary::after { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hv3-btn, .hv3-film, .hv3-btn__arrow { transition: none; }
}

/* Barre sur toute la largeur ; sur les pages de course (body lg:pl-24, colonne latérale de 96 px) elle démarre après la colonne :
   en « w-full » depuis la position du contenu, elle débordait de 96 px à droite (bouton S'inscrire coupé). */
#navbar { left: 0; right: 0; width: auto; }
@media (min-width: 1024px) { body.lg\:pl-24 #navbar { left: 6rem; } }

/* Menu du site (ex-« menu v3 », par défaut depuis le 13/10/2026, toutes les pages) : sans cadre en haut de page, liens blancs centrés,
   actif orange souligné, bouton S'inscrire orange à flèche ; fond sombre au défilement. L'ancienne barre claire reste testable
   avec le sélecteur (menu « v1 »). */
:root:not([data-menu="v1"], [data-menu="v2"]) #navbar:not(.nav-scrolled) { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
:root:not([data-menu="v1"], [data-menu="v2"]) #navbar.nav-scrolled { background: rgba(18,15,16,.92) !important; box-shadow: 0 10px 30px rgba(0,0,0,.3) !important; }
:root:not([data-menu="v1"], [data-menu="v2"]) #nav-container { position: relative; }
/* pleine largeur : plus de limite à 1440 px, marges latérales proportionnelles */
:root:not([data-menu="v1"], [data-menu="v2"]) #nav-container { max-width: none; padding-left: clamp(2rem, 3vw, 3.5rem); padding-right: clamp(2rem, 3vw, 3.5rem); }
:root:not([data-menu="v1"], [data-menu="v2"]) #nav-container > div.hidden { position: absolute; left: 50%; transform: translateX(-50%); gap: 2.6rem; }
:root:not([data-menu="v1"], [data-menu="v2"]) #nav-container > div.hidden > * + * { margin-left: 0 !important; }
:root:not([data-menu="v1"], [data-menu="v2"]) #nav-container > div.hidden a {
  position: relative; padding: .55rem 0 .7rem; border: 0 !important; font-size: .95rem; letter-spacing: .03em; white-space: nowrap;
  color: #fff !important; text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
:root:not([data-menu="v1"], [data-menu="v2"]) #nav-container > div.hidden a:hover { color: #FF8A3D !important; }
:root:not([data-menu="v1"], [data-menu="v2"]) #nav-container > div.hidden a.text-primary { color: #FF7A2A !important; }
:root:not([data-menu="v1"], [data-menu="v2"]) #nav-container > div.hidden a.text-primary::after {
  content: ""; position: absolute; left: -.8rem; right: -.8rem; bottom: -.15rem; height: 2px; background: #E85D24; border-radius: 2px;
}
:root:not([data-menu="v1"], [data-menu="v2"]) #nav-container .btn-primary {
  display: inline-flex; align-items: center; gap: .8rem; padding: .95rem 1.8rem; border-radius: .55rem;
  background: linear-gradient(135deg, #FF7A2A, #E85D24) !important; color: #fff !important; box-shadow: 0 10px 26px rgba(232,93,36,.35);
}
:root:not([data-menu="v1"], [data-menu="v2"]) #nav-container .btn-primary::after { content: "arrow_forward"; font-family: 'Material Symbols Outlined'; font-size: 1.25rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1; }
:root:not([data-menu="v1"], [data-menu="v2"]) #navbar.nav-scrolled .btn-primary { padding: .65rem 1.4rem; }
:root:not([data-menu="v1"], [data-menu="v2"]) .nav-burger { color: #fff; }
:root:not([data-menu="v1"], [data-menu="v2"]) #logo.scrolled { filter: none !important; }

/* Badge de catégorie UTMB Index (100K / 50K / 20K) en tête des pastilles du hero des pages de course */
.utmb-badge { display: block; height: 1.75rem; width: auto; border-radius: .3rem; box-shadow: 0 4px 12px rgba(0,0,0,.3); }

/* ============================================================
   VARIANTE DE TEST — section « Choisissez votre défi » v2 (maquette du 16/10/2026)
   Active uniquement avec <html data-defis="v2"> (sélecteur ?variantes, ligne « Défis »).
   On restyle la section existante : filtres, compteurs, réorganisation animée et survols restent ceux de la page.
   Éléments propres à la v2 : classe .dv2-only (masqués sinon).
   ============================================================ */
.dv2-only { display: none; }
[data-defis="v2"] #courses .dv2-only { display: block; }

/* fond crème, taches de peinture orange sur les bords, raccords des séparateurs montagne */
[data-defis="v2"] #courses { background: #f4efe8; isolation: isolate; }
[data-defis="v2"] #courses > .mountain-mask,
[data-defis="v2"] .alpine-mask-reverse[class*="c5c5c5"] { background: #f4efe8 !important; }
[data-defis="v2"] #courses::before,
[data-defis="v2"] #courses::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1; background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 300'%3E%3Cg fill='%23E85D24'%3E%3Cpath d='M0 40c18 4 34 22 30 46-3 18-20 24-14 44 6 18 30 20 26 44-4 22-28 24-30 46-2 20 12 32 6 50-4 12-12 18-18 20z'/%3E%3Ccircle cx='52' cy='70' r='6'/%3E%3Ccircle cx='44' cy='118' r='3.5'/%3E%3Ccircle cx='60' cy='150' r='4.5'/%3E%3Ccircle cx='48' cy='206' r='3'/%3E%3Ccircle cx='70' cy='186' r='2.4'/%3E%3Ccircle cx='38' cy='250' r='5'/%3E%3C/g%3E%3C/svg%3E");
}
[data-defis="v2"] #courses::before { left: 0; top: 18%; width: 70px; height: 300px; opacity: .9; }
[data-defis="v2"] #courses::after { right: 0; bottom: 12%; width: 70px; height: 300px; transform: scaleX(-1); opacity: .9; }
/* pas de z-index ici : il isolerait le mélange « multiply » de l'illustration du fond crème de la section */
[data-defis="v2"] #courses > .max-w-7xl { position: relative; }

/* en-tête : surtitre, grand titre sur 2 lignes, trait de pinceau, filtres sous le texte */
[data-defis="v2"] #defis-head { flex-direction: column; align-items: flex-start; justify-content: flex-start; max-width: 55%; margin-bottom: 2.25rem; position: relative; z-index: 2; gap: 1.4rem; }
[data-defis="v2"] #courses .dv2-kicker { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #E85D24; }
[data-defis="v2"] #courses .dv2-kicker::after { content: ""; width: 3.5rem; height: 2px; background: #E85D24; }
[data-defis="v2"] #defis-head h2 { font-size: clamp(3rem, 6.4vw, 5.5rem); line-height: .86; letter-spacing: -.045em; margin-bottom: 1.1rem; }
[data-defis="v2"] #courses .dv2-defi { position: relative; display: inline-block; }
[data-defis="v2"] #courses .dv2-brush { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .2em; }
[data-defis="v2"] #defis-head p { font-size: 1rem; color: #4a4446; max-width: 30rem; }
[data-defis="v2"] #race-filters { gap: .5rem; }
[data-defis="v2"] #race-filters .filter-btn { padding: .5rem 1.05rem; font-size: .72rem; letter-spacing: .04em; box-shadow: none; }
[data-defis="v2"] #race-filters .filter-btn.bg-surface-container-highest { background: #fff; border: 1px solid #e2dbd2; color: #1c1b1f; }
[data-defis="v2"] #race-filters .filter-btn.bg-surface-container-highest:hover { background: #1c1b1f; color: #fff; }

/* visuel détouré (assets/defis-blob.png, PNG transparent) : position et empilement */
[data-defis="v2"] #courses .dv2-blob { position: absolute; right: 1.5rem; top: calc(-20.5rem + 70px); width: min(54%, 645px); z-index: 27; pointer-events: none; }
[data-defis="v2"] #courses .dv2-blob img { display: block; width: 100%; height: auto; }

/* V3 (?defis=v3) : filtres flottants autour du visuel, à la place de la barre (≥ 1024 px ; la barre reste sur mobile) */
.dv3-filters { display: none; }
@media (min-width: 1024px) {
  [data-defis="v2"][data-filtres="flottant"] #race-filters { display: none; }
  [data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters { display: block; position: absolute; inset: 0; pointer-events: none; }
}
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; pointer-events: auto;
  padding: .864rem 1.56rem; border-radius: 999px; font-size: 1.08rem; letter-spacing: .02em; box-shadow: 0 8px 22px rgba(28,27,31,.14);
  background: #fff; color: #1c1b1f; border: 0; cursor: pointer;
  animation: dv3-float var(--t, 8s) ease-in-out infinite; animation-delay: var(--d, 0s);
  transition: background-color .25s ease, color .25s ease, scale .3s ease;
}
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f svg { width: 1.44rem; height: 1.44rem; flex: none; }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f span { font-family: inherit; font-weight: 800; }
/* positions et inclinaisons relevées sur la maquette (en % du visuel ; --r = rotation) */
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f1 { --x: 7.5%; --y: calc(9% + 150px); --r: -6deg; --t: 9s; --d: 0s; }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f2 { --x: 90%; --y: calc(12% + 150px); --r: 6deg; --t: 7.5s; --d: -2.5s; }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f3 { --x: 2%; --y: 60%; --r: -5deg; --t: 8.5s; --d: -4s; }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f4 { --x: 90%; --y: 59%; --r: 6deg; --t: 9.5s; --d: -1.2s; }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f { rotate: var(--r, 0deg); }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f svg { color: #E85D24; }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f4 svg { color: #1c1b1f; }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f4[data-filter="famille"] { background: #A7C93B; }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f:hover { background: #1c1b1f; color: #fff; scale: 1.06; }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f.bg-on-surface { background: #1c1b1f; color: #fff; }
[data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f.bg-on-surface:hover { background: #1c1b1f; color: #fff; }
@keyframes dv3-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { [data-defis="v2"][data-filtres="flottant"] #courses .dv3-filters .dv3-f { animation: none; } }

/* bandeau des inscriptions : barre sombre, mégaphone orange, flèche ronde */
[data-defis="v2"] #defis-annonce { display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.1rem 1rem 1.4rem; border-left: 5px solid #E85D24; border-radius: .9rem; margin-bottom: 1.25rem; box-shadow: 0 10px 26px rgba(28,27,31,.18); }
[data-defis="v2"] #defis-annonce > .flex { flex: 1; }
[data-defis="v2"] #defis-annonce > .flex > div:first-child { display: none; }
[data-defis="v2"] #defis-annonce > .flex > div:last-child { padding: 0; justify-content: flex-start; text-align: left; }
[data-defis="v2"] #defis-annonce p { font-size: clamp(.9rem, 1.35vw, 1.1rem); line-height: 1.35; letter-spacing: .01em; }
[data-defis="v2"] #courses .dv2-annonce__icon { flex: none; width: 2.4rem; height: 2.4rem; color: #E85D24; }
.dv2-annonce__icon svg { width: 100%; height: 100%; }
[data-defis="v2"] #courses .dv2-annonce__go { order: 3; flex: none; display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #E85D24; color: #fff; transition: transform .2s ease, background-color .2s ease; }
.dv2-annonce__go svg { width: 1.2rem; height: 1.2rem; }
.dv2-annonce__go:hover { transform: translateX(3px); background: #ff7a2a; }

/* jeu de la meule : vignette de la largeur d'une carte (même grille de 3 colonnes que les cartes), texte, dessin à droite */
[data-defis="v2"] #jeu-meule-jambon { border: 1px solid #e8dfd4; border-radius: 1rem; box-shadow: 0 8px 22px rgba(28,27,31,.08); margin-bottom: 1.1rem; }
[data-defis="v2"] #jeu-meule-jambon > .flex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.1rem; padding: 0; align-items: stretch; }
[data-defis="v2"] #jeu-meule-jambon .video-tile { grid-column: 1; grid-row: 1; max-width: none; width: 100%; height: 100%; position: relative; }
[data-defis="v2"] #jeu-meule-jambon > .flex > div.flex-1 { grid-column: 2 / 4; grid-row: 1; align-self: center; padding: 1.4rem 13rem 1.4rem .4rem; text-align: left; }
/* dessin décalé à droite : le jambon dépasse du cadre de la carte (la carte passe en overflow visible ; la vignette garde ses coins arrondis) */
[data-defis="v2"] #jeu-meule-jambon { overflow: visible; }
[data-defis="v2"] #courses .dv2-meule-art { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; width: 220px; height: auto; margin-right: -3rem; transform: translateY(-.6rem); position: relative; z-index: 2; pointer-events: none; }
[data-defis="v2"] #jeu-meule-jambon .meule-thumb { width: 100%; height: 100%; min-height: 190px; border-radius: calc(1rem - 1px); box-shadow: none; }
/* voile noir à 80 % de transparence, retiré au survol */
[data-defis="v2"] #jeu-meule-jambon .meule-thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.2); transition: opacity .35s ease; pointer-events: none; }
[data-defis="v2"] #jeu-meule-jambon .video-tile:hover .meule-thumb::before, [data-defis="v2"] #jeu-meule-jambon .video-tile:focus-visible .meule-thumb::before { opacity: 0; }
[data-defis="v2"] #jeu-meule-jambon .meule-thumb > img:not(.dv2-meule-cover) { display: none; }
[data-defis="v2"] #jeu-meule-jambon .dv2-meule-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; transition: transform .6s ease; }
[data-defis="v2"] #jeu-meule-jambon .video-tile:hover .dv2-meule-cover { transform: scale(1.04); }
[data-defis="v2"] #jeu-meule-jambon .meule-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.5), transparent 50%); }
/* bouton lecture en bas à gauche, juste au-dessus de « Voir la vidéo » */
[data-defis="v2"] #jeu-meule-jambon .meule-thumb__play { width: 52px; height: 52px; font-size: 32px; z-index: 2; inset: auto auto 2.4rem 1rem; margin: 0; }
[data-defis="v2"] #jeu-meule-jambon .video-tile__label { position: absolute; left: 1rem; bottom: .8rem; z-index: 2; color: #fff; }
[data-defis="v2"] #jeu-meule-jambon h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); margin-bottom: .4rem; }
[data-defis="v2"] #jeu-meule-jambon p { font-size: .92rem; }

/* cartes de course */
[data-defis="v2"] #race-grid { gap: 1.1rem; }
[data-defis="v2"] #courses .race-card[data-course] { background: #fffdf9; border: 1px solid #e8dfd4; border-radius: 14px; box-shadow: 0 6px 18px rgba(28,27,31,.06); }
[data-defis="v2"] #courses .race-card[data-course]:hover { border-color: rgba(232,93,36,.55); box-shadow: 0 16px 34px rgba(28,27,31,.14); }
[data-defis="v2"] #courses .race-card[data-course] > .h-1 { display: none; }
[data-defis="v2"] #courses .race-card[data-course] > .p-7 { position: relative; z-index: 1; padding: 1.3rem 1.4rem 1.25rem; }
[data-defis="v2"] #courses .race-card[data-course] h3 { font-size: 1rem; line-height: 1.15; padding-right: 0; max-width: 62%; }
[data-defis="v2"] #courses .race-card[data-course] .mb-6 { margin-bottom: .55rem; }
[data-defis="v2"] #courses .race-card[data-course] .counter { font-size: 3.6rem; line-height: .95; letter-spacing: -.04em; }
[data-defis="v2"] #courses .race-card[data-course] .counter + span { font-size: 1rem; }
[data-defis="v2"] #courses .race-card[data-course] .mb-5 { margin-bottom: .9rem; }
[data-defis="v2"] #courses .race-card[data-course] .space-y-2 { max-width: 64%; }
[data-defis="v2"] #courses .race-card[data-course] .space-y-2 > div:nth-child(2) > div:first-child { display: none; }
[data-defis="v2"] #courses .race-card[data-course] .space-y-2 > div:nth-child(2) > div:last-child { height: 4px; }
[data-defis="v2"] #courses .race-card[data-course] span.block.w-full { display: inline-flex; align-items: center; gap: .55rem; width: auto; align-self: flex-start; padding: .55rem 1rem; background: #fff; border: 1px solid #e2dbd2; border-radius: .6rem; font-size: .72rem; color: #1c1b1f; box-shadow: 0 2px 6px rgba(28,27,31,.06); }
[data-defis="v2"] #courses .race-card[data-course] span.block.w-full::after { content: "arrow_forward"; font-family: 'Material Symbols Outlined'; font-weight: 400; font-size: 1rem; line-height: 1; letter-spacing: 0; text-transform: none; transition: transform .25s ease; }
[data-defis="v2"] #courses .race-card[data-course]:hover span.block.w-full { background: #E85D24; border-color: #E85D24; color: #fff; }
[data-defis="v2"] #courses .race-card[data-course]:hover span.block.w-full::after { transform: translateX(3px); }
/* photo de la course, fondue sur la droite */
[data-defis="v2"] #courses .rc2-photo { position: absolute; right: 0; top: 0; width: 50%; height: 100%; object-fit: cover; z-index: 0; -webkit-mask-image: linear-gradient(to left, #000 35%, transparent); mask-image: linear-gradient(to left, #000 35%, transparent); transition: transform .6s ease; }
[data-defis="v2"] #courses .race-card[data-course]:hover .rc2-photo { transform: scale(1.04); }
[data-defis="v2"] #courses .race-card[data-course] > .altimetry-tooltip { z-index: 30; }

/* UTCN solo : carte orange ; relais : carte sombre */
[data-defis="v2"] #courses .race-card[data-course="utcn"] { background: linear-gradient(140deg, #F47A2C 0%, #E85D24 55%, #C9440F 100%); border-color: transparent; }
[data-defis="v2"] #courses .race-card[data-course="relais"] { background: #1c1b1f; border-color: #1c1b1f; }
[data-defis="v2"] #courses .race-card[data-course="utcn"] > .p-7 :is(h3, .counter, span, div),
[data-defis="v2"] #courses .race-card[data-course="relais"] > .p-7 :is(h3, .counter, span, div) { color: #fff; }
[data-defis="v2"] #courses .race-card[data-course="utcn"] > .p-7 .material-symbols-outlined { color: #fff; }
[data-defis="v2"] #courses .race-card[data-course="relais"] > .p-7 .material-symbols-outlined { color: #E85D24; }
[data-defis="v2"] #courses .race-card[data-course="utcn"] .space-y-2 > div:nth-child(2) > div:last-child,
[data-defis="v2"] #courses .race-card[data-course="relais"] .space-y-2 > div:nth-child(2) > div:last-child { background: rgba(255,255,255,.25); }
[data-defis="v2"] #courses .race-card[data-course="utcn"] > .p-7 span.block.w-full,
[data-defis="v2"] #courses .race-card[data-course="relais"] > .p-7 span.block.w-full { color: #1c1b1f; }
[data-defis="v2"] #courses .race-card[data-course="utcn"]:hover > .p-7 span.block.w-full { background: #1c1b1f; border-color: #1c1b1f; color: #fff; }
[data-defis="v2"] #courses .race-card[data-course="relais"]:hover > .p-7 span.block.w-full { color: #fff; }
/* UTCN : photo sur toute la carte sous un filtre orange-rouge uniforme, sans fondu (demande du 16/10/2026) ; rail de la barre plus visible */
[data-defis="v2"] #courses .race-card[data-course="utcn"] { background: #E2531C; }
[data-defis="v2"] #courses .race-card[data-course="utcn"] .rc2-photo { width: 100%; mix-blend-mode: multiply; opacity: .55; -webkit-mask-image: none; mask-image: none; }
[data-defis="v2"] #courses .race-card[data-course="utcn"] .space-y-2 > div:nth-child(2) > div:last-child { background: rgba(255,255,255,.4); height: 6px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.8), 0 2px 6px rgba(0,0,0,.25); }
/* relais (noir) et Boucle des 3 cols (blanc) : la photo n'est qu'un voile, comme une diapositive vue par transparence */
[data-defis="v2"] #courses .race-card[data-course="relais"] .rc2-photo,
[data-defis="v2"] #courses .race-card[data-course="c50"] .rc2-photo { width: 75%; filter: grayscale(1) contrast(1.1); -webkit-mask-image: linear-gradient(to left, #000 25%, transparent); mask-image: linear-gradient(to left, #000 25%, transparent); }
[data-defis="v2"] #courses .race-card[data-course="relais"] .rc2-photo { opacity: .16; mix-blend-mode: screen; }
[data-defis="v2"] #courses .race-card[data-course="c50"] { background: #fbf8f3; }
[data-defis="v2"] #courses .race-card[data-course="c50"] .rc2-photo { opacity: .16; mix-blend-mode: multiply; }
[data-defis="v2"] #courses .race-card[data-course="relais"]:hover .rc2-photo,
[data-defis="v2"] #courses .race-card[data-course="c50"]:hover .rc2-photo { opacity: .24; }
/* courbes de niveau en filigrane sur la carte UTCN */
[data-defis="v2"] #courses .race-card[data-course="utcn"]::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .22; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M-10 150c40-30 70-10 110-40s70-20 90-60 50-30 120-40'/%3E%3Cpath d='M-10 170c40-30 75-12 115-42s72-18 95-58 52-28 115-38'/%3E%3Cpath d='M-10 190c42-28 80-12 120-42s75-16 100-56 55-26 110-34'/%3E%3Cpath d='M-10 130c38-30 66-8 104-38s68-22 86-62 48-32 130-44'/%3E%3C/g%3E%3C/svg%3E") left top / cover no-repeat; }
/* 24 km et 14 km : sans photo de fond (demande du 16/10/2026) ; leur titre peut prendre toute la largeur */
[data-defis="v2"] #courses .race-card[data-course="c24"] h3, [data-defis="v2"] #courses .race-card[data-course="c14"] h3 { max-width: none; }
/* Montée Sèche : photo fournie (coureur sur le sentier), en noir et blanc, fondu qui suit la pente au lieu d'un dégradé droit
   (masque SVG : crête en escalier, bord déformé par du bruit puis flouté) */
[data-defis="v2"] #courses .race-card[data-course="c4"] .rc2-photo { width: 64%; object-position: 70% 55%; filter: grayscale(1) contrast(1.12) brightness(1.04); }
/* même fondu en forme de pente pour la Montée Sèche et la Bouclette (photo en couleur) */
[data-defis="v2"] #courses .race-card[data-course="c4"] .rc2-photo,
[data-defis="v2"] #courses .race-card[data-course="c9"] .rc2-photo { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cfilter%20id%3D%27r%27%20x%3D%27-20%25%27%20y%3D%27-20%25%27%20width%3D%27140%25%27%20height%3D%27140%25%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.09%27%20numOctaves%3D%273%27%20seed%3D%275%27%2F%3E%3CfeDisplacementMap%20in%3D%27SourceGraphic%27%20scale%3D%279%27%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%271.6%27%2F%3E%3C%2Ffilter%3E%3Cpath%20filter%3D%27url(%23r)%27%20d%3D%27M0%20112%20L6%2098%20L12%2094%20L17%2086%20L24%2083%20L29%2074%20L36%2070%20L41%2061%20L48%2057%20L53%2047%20L60%2043%20L65%2033%20L72%2029%20L77%2019%20L85%2014%20L90%204%20L100%20-8%20L112%20-8%20L112%20112%20Z%27%20fill%3D%27%23000%27%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cfilter%20id%3D%27r%27%20x%3D%27-20%25%27%20y%3D%27-20%25%27%20width%3D%27140%25%27%20height%3D%27140%25%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.09%27%20numOctaves%3D%273%27%20seed%3D%275%27%2F%3E%3CfeDisplacementMap%20in%3D%27SourceGraphic%27%20scale%3D%279%27%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%271.6%27%2F%3E%3C%2Ffilter%3E%3Cpath%20filter%3D%27url(%23r)%27%20d%3D%27M0%20112%20L6%2098%20L12%2094%20L17%2086%20L24%2083%20L29%2074%20L36%2070%20L41%2061%20L48%2057%20L53%2047%20L60%2043%20L65%2033%20L72%2029%20L77%2019%20L85%2014%20L90%204%20L100%20-8%20L112%20-8%20L112%20112%20Z%27%20fill%3D%27%23000%27%2F%3E%3C%2Fsvg%3E"); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* Bouclette : photo fournie (famille en randonnée), fondu en forme de blob arrondi (distinct de la pente de la Montée Sèche) */
[data-defis="v2"] #courses .race-card[data-course="c9"] .rc2-photo { width: 62%; object-position: 60% 60%; -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cfilter%20id%3D%27b%27%20x%3D%27-20%25%27%20y%3D%27-20%25%27%20width%3D%27140%25%27%20height%3D%27140%25%27%3E%3CfeGaussianBlur%20stdDeviation%3D%272.2%27%2F%3E%3C%2Ffilter%3E%3Cpath%20filter%3D%27url(%23b)%27%20fill%3D%27%23000%27%20d%3D%27M112%20-10%20L112%20112%20L58%20112%20C%2040%20104%2C%2030%2088%2C%2038%2074%20C%2046%2061%2C%2028%2054%2C%2030%2040%20C%2032%2024%2C%2046%2018%2C%2044%206%20C%2043%20-2%2C%2060%20-10%2C%2070%20-10%20Z%27%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cfilter%20id%3D%27b%27%20x%3D%27-20%25%27%20y%3D%27-20%25%27%20width%3D%27140%25%27%20height%3D%27140%25%27%3E%3CfeGaussianBlur%20stdDeviation%3D%272.2%27%2F%3E%3C%2Ffilter%3E%3Cpath%20filter%3D%27url(%23b)%27%20fill%3D%27%23000%27%20d%3D%27M112%20-10%20L112%20112%20L58%20112%20C%2040%20104%2C%2030%2088%2C%2038%2074%20C%2046%2061%2C%2028%2054%2C%2030%2040%20C%2032%2024%2C%2046%2018%2C%2044%206%20C%2043%20-2%2C%2060%20-10%2C%2070%20-10%20Z%27%2F%3E%3C%2Fsvg%3E"); }
[data-defis="v2"] #courses .race-card[data-course="c9"] { border-color: #A4C639; border-width: 2px; }
[data-defis="v2"] #courses .race-card[data-course="c14"] h3 + span { display: none; }

/* « Vous hésitez ? » : carte orange */
[data-defis="v2"] #race-grid .race-card[onclick] { background: linear-gradient(150deg, #F47A2C, #E85D24 60%, #D44A14); border: 0; border-radius: 14px; padding: 1.75rem 1.5rem; color: #fff; box-shadow: 0 10px 26px rgba(232,93,36,.3); }
[data-defis="v2"] #race-grid .race-card[onclick]:hover { background: linear-gradient(150deg, #ff8a3d, #ee6527 60%, #d9480f); }
[data-defis="v2"] #race-grid .race-card[onclick] > div:first-child { width: 3.4rem; height: 3.4rem; margin-bottom: 1rem; background: #fff; }
[data-defis="v2"] #race-grid .race-card[onclick] h3 { color: #fff; font-size: 1.6rem; margin-bottom: .5rem; }
[data-defis="v2"] #race-grid .race-card[onclick] p { color: rgba(255,255,255,.9); margin-bottom: 1.3rem; }
[data-defis="v2"] #race-grid .race-card[onclick] span.block { width: auto; padding: .7rem 1.4rem; background: #1c1b1f; font-size: .75rem; }

/* « Le parcours en images » : titre italique et flèche ronde */
[data-defis="v2"] #race-grid .race-card:not([data-course]):not([onclick]) { border-radius: 14px; }
/* « Le parcours en images » : titre tracé en SVG d'après la maquette (paths potrace, blanc + trait orange). Le texte reste dans le h3 pour l'accessibilité, rendu invisible. */
[data-defis="v2"] #race-grid .race-card:not([data-course]):not([onclick]) h3 { font-size: 0; line-height: 0; max-width: none; transform: none; text-shadow: none; margin-bottom: 0; }
[data-defis="v2"] #courses .dv2-title-svg { display: block; width: min(55%, 231px); height: auto; margin-top: .4rem; overflow: visible; }
[data-defis="v2"] #race-grid .race-card:not([data-course]):not([onclick]) .absolute.bottom-0 > p { display: none; }
[data-defis="v2"] #race-grid .race-card:not([data-course]):not([onclick]) .absolute.bottom-0 { padding-bottom: 1.8rem; }
[data-defis="v2"] #courses .dv2-roundgo { display: flex; align-items: center; justify-content: center; position: absolute; right: 1.25rem; bottom: 1.4rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #E85D24; color: #fff; transition: transform .25s ease; }
.dv2-roundgo svg { width: 1.25rem; height: 1.25rem; }
[data-defis="v2"] #race-grid .race-card:hover .dv2-roundgo { transform: translateX(3px); }

/* Pack / Randonnées / Enfants : cartes basses, icône à gauche, flèche ronde à droite */
[data-defis="v2"] #courses .race-card-item[onclick] { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 1rem; border: 1px solid #e8dfd4; background: #fffdf9; }
[data-defis="v2"] #courses .race-card-item[onclick][onclick*="pack"] { background: #e7eef7; border-color: #d4e0ee; }
[data-defis="v2"] #courses .race-card-item[onclick][onclick*="enfants"] { background: #fde9e0; border: 1px solid #f6cdb9; }
[data-defis="v2"] #courses .race-card-item[onclick]:hover { box-shadow: 0 10px 24px rgba(28,27,31,.1); }
[data-defis="v2"] #courses .race-card-item[onclick] > div { flex: 1; }
[data-defis="v2"] #courses .race-card-item[onclick] h4 { font-size: 1rem; color: #1c1b1f; }
[data-defis="v2"] #courses .race-card-item[onclick] p { font-size: .78rem; line-height: 1.35; text-transform: none; font-weight: 500; color: #5a5355; }
[data-defis="v2"] #courses .race-card-item[onclick] > .material-symbols-outlined { order: -1; flex: none; display: flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: .8rem; background: #fff; font-size: 1.9rem; color: #E85D24; }
/* dessins fournis par le client (sac à dos, panneau, enfants) à la place des icônes */
[data-defis="v2"] #courses .race-card-item[onclick] > .material-symbols-outlined { display: none; }
[data-defis="v2"] #courses .dv2-picto { order: -1; flex: none; width: 4.2rem; height: 4.2rem; object-fit: contain; transition: transform .3s ease; }
[data-defis="v2"] #courses .race-card-item[onclick]:hover .dv2-picto { transform: scale(1.08) rotate(-3deg); }
[data-defis="v2"] #courses .dv2-roundgo--small { position: static; flex: none; width: 2.3rem; height: 2.3rem; background: #fff; color: #1c1b1f; border: 1px solid #e2dbd2; }
[data-defis="v2"] #courses .race-card-item[onclick]:hover .dv2-roundgo--small { background: #E85D24; border-color: #E85D24; color: #fff; transform: translateX(3px); }
[data-defis="v2"] #courses .grid.mt-10 { gap: 1.1rem; margin-top: 1.1rem; }

/* tablette et téléphone */
@media (max-width: 1023px) {
  [data-defis="v2"] #courses .dv2-blob { display: none; }
  [data-defis="v2"] #jeu-meule-jambon > .flex > div.flex-1 { padding-right: 1.25rem; }
  [data-defis="v2"] #courses .dv2-meule-art { display: none; }
  [data-defis="v2"] #defis-head { max-width: 100%; }
}
@media (max-width: 767px) {
  [data-defis="v2"] #jeu-meule-jambon > .flex { grid-template-columns: 1fr; }
  [data-defis="v2"] #jeu-meule-jambon > .flex > div.order-2 { order: -1; display: block; }
  [data-defis="v2"] #jeu-meule-jambon .video-tile, [data-defis="v2"] #jeu-meule-jambon > .flex > div.flex-1 { grid-column: 1; grid-row: auto; }
  [data-defis="v2"] #jeu-meule-jambon > .flex > div.flex-1 { padding: 1rem 1.1rem 1.2rem; }
  [data-defis="v2"] #jeu-meule-jambon .meule-thumb { min-height: 190px; }
  [data-defis="v2"] #courses::before, [data-defis="v2"] #courses::after { width: 36px; height: 160px; }
  [data-defis="v2"] #courses .dv2-meule-art { display: none; }
  [data-defis="v2"] #courses .dv2-kicker { font-size: .68rem; letter-spacing: .14em; }
  [data-defis="v2"] #courses .dv2-kicker::after { display: none; }

  [data-defis="v2"] #defis-annonce { padding: .9rem; gap: .75rem; }
  [data-defis="v2"] #courses .dv2-annonce__icon { width: 2rem; height: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-defis="v2"] #courses .rc2-photo, .dv2-annonce__go, [data-defis="v2"] #courses .dv2-roundgo { transition: none; }
}

/* V3 « Les parcours » (?parcours=v3) : photos disposées autour d'un parcours en pointillés, sans filtres.
   Positions forcées (!important) car les variables sont aussi écrites en style inline dans le modèle. */
.pv3-route, .pv3-dot, .pv3-pin, .pv3-zoom { display: none; }
@media (min-width: 1024px) {
  [data-parcours="v3"] .pv3-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; align-items: center; }
  [data-parcours="v3"] .pv3-wrap > div:first-child { margin-bottom: 0; }
  [data-parcours="v3"] #parcoursGallery { position: relative; display: block; width: 100%; min-width: 0; aspect-ratio: 5 / 4; perspective: none; }
  [data-parcours="v3"] #parcoursGallery > .trail-scatter__shadow,
  [data-parcours="v3"] #parcoursGallery > .trail-scatter__runner { display: none; }
  [data-parcours="v3"] #parcoursGallery > .pv3-route { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  [data-parcours="v3"] #parcoursGallery > .pv3-dot { display: block; position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #E85D24; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
  [data-parcours="v3"] #parcoursGallery > .pv3-pin { display: block; position: absolute; width: 44px; height: 44px; margin: -44px 0 0 -22px; color: #E85D24; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
  [data-parcours="v3"] #parcoursGallery > .pv3-pin svg { width: 100%; height: 100%; }
  [data-parcours="v3"] #parcoursGallery .trail-scatter__card { transition: transform .4s ease; }
  [data-parcours="v3"] #parcoursGallery .trail-scatter__card--mini .trail-scatter__caption { display: none; }
  [data-parcours="v3"] #parcoursGallery .pv3-zoom { display: flex; position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: #1c1b1f; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
  [data-parcours="v3"] #parcoursGallery .pv3-zoom svg { width: 20px; height: 20px; }
}
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="0"] { --x: 50% !important; --y: 46% !important; --w: 33% !important; --r: -3deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 20 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="1"] { --x: 17% !important; --y: 26% !important; --w: 15% !important; --r: -6deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 9 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="2"] { --x: 50% !important; --y: 8% !important; --w: 13% !important; --r: 4deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 8 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="3"] { --x: 83% !important; --y: 20% !important; --w: 14% !important; --r: 6deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 9 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="4"] { --x: 90% !important; --y: 52% !important; --w: 13% !important; --r: -5deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 8 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="5"] { --x: 84% !important; --y: 82% !important; --w: 14% !important; --r: 4deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 9 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="6"] { --x: 56% !important; --y: 90% !important; --w: 12% !important; --r: -4deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 7 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="7"] { --x: 24% !important; --y: 80% !important; --w: 14% !important; --r: 5deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 9 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="8"] { --x: 8% !important; --y: 56% !important; --w: 13% !important; --r: -4deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 8 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="9"] { --x: 24% !important; --y: 46% !important; --w: 9% !important; --r: 3deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 11 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="10"] { --x: 73% !important; --y: 36% !important; --w: 9% !important; --r: -3deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 12 !important; }
[data-parcours="v3"] #parcoursGallery .trail-scatter__card[data-index="11"] { --x: 38% !important; --y: 84% !important; --w: 9% !important; --r: 5deg !important; --ry: 0deg !important; --rx: 0deg !important; --z: 7 !important; }
