/* ==========================================================================
   BCRD — Feuille de style du site public
   --------------------------------------------------------------------------
   Écrite « mobile first » : les règles de base visent le téléphone, les
   media queries (min-width) enrichissent la mise en page pour les grands écrans.

   Sommaire
     1. Design tokens          8. Cartes & listes
     2. Base & typographie     9. Rubriques (club, créneaux, agenda…)
     3. Utilitaires           10. Formulaires
     4. Boutons & liens       11. Pied de page
     5. En-tête & menu        12. Animations (scroll, hover, transitions)
     6. Hero d'accueil        13. Impression
     7. Sections & en-têtes de page

   Couleurs de marque surchargeables depuis Admin > Paramètres > Apparence
   (variables --primary, --accent, --dark injectées dans le <head>).
   ========================================================================== */

/* Polices auto-hébergées (licence SIL OFL) : pas d'appel à un service tiers, chargement plus rapide */
/* Police d'affichage : Bricolage Grotesque (SIL OFL), variable en graisse et en largeur.
   Auto-hébergée : aucun appel à un service tiers. Archivo reste en secours. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-stretch: 62% 100%; font-display: swap; src: url("../fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/geist-mono.woff2") format("woff2"); }

/* 1. DESIGN TOKENS ======================================================== */
:root {
    --primary: #1f3fd1;
    --accent: #ffd21f;
    --dark: #0b0f1e;

    --paper: #f5f4f0;          /* fond « papier » chaud, plus éditorial que le blanc pur */
    --surface: #ffffff;
    --ink: #0d1021;
    --ink-2: #3b3f55;
    --muted: #6c7084;
    --line: rgba(13, 16, 33, .12);
    --line-strong: rgba(13, 16, 33, .22);
    --success: #0f8a5f;
    --danger: #d92d20;
    --warning: #e8590c;

    --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
    --display: "Bricolage Grotesque", "Archivo", "Arial Narrow", ui-sans-serif, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    /* Échelle d'espacement (base 4 px) */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
    --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
    --gutter: 20px;
    --container: 1280px;
    --section: clamp(64px, 11vw, 144px);

    --r-sm: 8px;
    --r: 14px;
    --r-lg: 22px;

    --ease: cubic-bezier(.22, 1, .36, 1);      /* « ease-out-quint » : départ vif, arrivée douce */
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --dur: .45s;

    --header-h: 64px;
}
@media (min-width: 960px) {
    :root { --gutter: 40px; --header-h: 76px; }
}

/* 2. BASE & TYPOGRAPHIE =================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0; min-height: 100dvh; font: 400 16px/1.6 var(--font); color: var(--ink);
    background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 960px) { body { font-size: 17px; } }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1, h2, .display {
    font-family: var(--display); font-weight: 800; font-stretch: 75%;
    text-transform: uppercase; letter-spacing: -.01em; line-height: .95;
}
h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); }
h2, .h2 { font-size: clamp(2rem, 6vw, 3.6rem); }
h3, .h3 { font: 700 1.2rem/1.25 var(--font); letter-spacing: -.01em; }
.h4 { font: 600 1rem/1.3 var(--font); }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--dark); }

/* 3. UTILITAIRES ========================================================== */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--accent); color: var(--dark); padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.icon-xs { width: .95em; height: .95em; vertical-align: -.12em; display: inline-block; }
.stack { display: grid; gap: var(--s-4); }
.empty { color: var(--muted); }
.note { display: flex; gap: 10px; align-items: baseline; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.note a { color: var(--ink); }

/* Petite étiquette de rubrique : carré jaune + texte mono */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s-4); font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--dark) 20%, transparent); }
.on-dark .eyebrow, .eyebrow-light { color: rgba(255, 255, 255, .72); }
.eyebrow .dot { display: none; }

/* Chiffre mis en avant (police mono tabulaire) */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* 4. BOUTONS & LIENS ====================================================== */
.btn {
    --btn-bg: var(--dark); --btn-fg: #fff; --btn-bd: var(--btn-bg);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 48px; padding: .8em 1.35em; border-radius: 999px; border: 1px solid var(--btn-bd);
    background: var(--btn-bg); color: var(--btn-fg); font: 600 .95rem/1.1 var(--font); letter-spacing: -.005em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
/* Remplissage qui « monte » au survol */
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: var(--btn-hover, color-mix(in srgb, var(--btn-bg) 82%, #fff));
    transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .45s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover .icon-diag { transform: translate(2px, -2px); }
.btn-sm { min-height: 40px; padding: .55em 1.05em; font-size: .88rem; }
.btn-lg { min-height: 56px; padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { --btn-bg: var(--primary); --btn-hover: color-mix(in srgb, var(--primary) 80%, #000); }
.btn-accent { --btn-bg: var(--accent); --btn-fg: var(--dark); --btn-hover: #fff; }
.btn-dark { --btn-bg: var(--dark); --btn-hover: var(--primary); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, .08); --btn-bd: rgba(255, 255, 255, .35); --btn-hover: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--dark); }
.btn-outline, .btn-outline-dark { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); --btn-hover: var(--dark); }
.btn-outline:hover, .btn-outline-dark:hover { color: #fff; border-color: var(--dark); }

/* Lien avec soulignement animé */
.link, .prose a, .link-list a {
    color: inherit; text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: background-size .45s var(--ease);
}
.link:hover, .prose a:hover, .link-list a:hover { background-size: 0 1px; background-position: 100% 100%; }

.link-more {
    display: inline-flex; align-items: center; gap: .5em; font: 600 .92rem/1.2 var(--font);
    color: var(--ink); text-decoration: none; white-space: nowrap;
}
.link-more .icon { width: 1em; height: 1em; transition: transform .45s var(--ease); }
.link-more:hover .icon, a:hover .link-more .icon { transform: translateX(4px); }
.link-more span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.link-more:hover span { background-size: 100% 1px; }
.link-light { color: #fff; }

.round-btn {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.round-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.round-btn:active { transform: scale(.94); }
.round-btn .icon { width: 18px; height: 18px; }

/* 5. EN-TÊTE & MENU ======================================================= */
/* Le fond coloré reste porté par la barre, qui change de niveau en même temps que
   la diapositive affichée : la couleur traverse toute la largeur, zone de l'îlot comprise. */
.alert-bar { position: relative; z-index: 70; background: var(--primary); color: #fff; font-size: .88rem; transition: background-color .5s var(--ease), color .5s var(--ease); }
.alert-bar.alert-warning { background: var(--accent); color: var(--dark); }
.alert-bar.alert-danger { background: var(--danger); }
.alert-bar.alert-success { background: var(--success); }
.alert-inner { position: relative; display: flex; align-items: center; padding-block: 10px; }
/* Les boutons ont disparu : le message occupe toute la largeur, centré, et se
   remplace tout seul à intervalle régulier. */
.alert-view { position: relative; flex: 1; min-width: 0; display: grid; overflow: hidden; }
.alert-slide { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: var(--s-3); visibility: hidden; transform: translateX(100%); }
.alert-slide.is-current { visibility: visible; transform: none; }
.alert-slide.is-prev { visibility: visible; transform: translateX(-100%); }
/* Marche arrière (glissé du doigt) : la sortante part à droite, l'entrante vient de la gauche */
.alert-view.go-back .alert-slide { transform: translateX(-100%); }
.alert-view.go-back .alert-slide.is-current { transform: none; }
.alert-view.go-back .alert-slide.is-prev { transform: translateX(100%); }
/* Seules les deux diapositives en mouvement sont animées : les autres se replacent
   sans transition, hors de l'écran, donc sans traverser le bandeau. */
.alert-slide.is-current, .alert-slide.is-prev { transition: transform .55s var(--ease); }
.alert-slide > .icon { flex: none; }
.alert-inner p { margin: 0; text-align: center; }
.alert-inner a { color: inherit; font-weight: 600; margin-left: 4px; white-space: nowrap; }
/* Téléphone : le message tient sur plusieurs lignes, le pictogramme se cale sur la première */
@media (max-width: 699.98px) {
    .alert-slide { align-items: flex-start; }
    .alert-slide > .icon { margin-top: 1px; }
}
@media (prefers-reduced-motion: reduce) {
    .alert-slide.is-current, .alert-slide.is-prev { transition: none; }
}

.site-header {
    --hd-fg: var(--ink); --hd-bg: color-mix(in srgb, var(--paper) 88%, transparent);
    --hd-blur: saturate(1.4) blur(14px);
    position: sticky; top: 0; z-index: 60; height: var(--header-h);
    color: var(--hd-fg); background: var(--hd-bg);
    backdrop-filter: var(--hd-blur); -webkit-backdrop-filter: var(--hd-blur);
    border-bottom: 1px solid var(--line);
    transition: transform .5s var(--ease), background .35s, color .35s, border-color .35s;
}
/* Accueil : en-tête transparent au-dessus de la photo, jusqu'au premier défilement */
.has-hero:not(.nav-open):not(.mega-open) .site-header:not(.is-scrolled) { --hd-fg: #fff; --hd-bg: transparent; --hd-blur: none; border-color: transparent; }
.site-header.is-scrolled { box-shadow: 0 16px 34px -28px rgba(11, 15, 30, .6); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav-open .site-header, .mega-open .site-header { transform: none; --hd-fg: var(--ink); --hd-bg: var(--paper); border-color: var(--line); }
/* backdrop-filter crée un bloc conteneur pour les éléments fixed : retiré quand le menu est ouvert */
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }

.navbar { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff; object-fit: contain; padding: 5px; box-shadow: 0 0 0 1px var(--line); }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font: 800 1.45rem/1 var(--display); font-stretch: 75%; letter-spacing: .01em; }
.brand-text small { font: 500 .62rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-top: 3px; }

.nav-cta { display: none; }
.nav-toggle {
    position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor;
    background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center;
    border-color: color-mix(in srgb, currentColor 30%, transparent);
}
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { transform: translateY(-4px); }
.nav-toggle span:nth-child(2) { transform: translateY(4px); }
.nav-toggle span:nth-child(3) { display: none; }
.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: rotate(-45deg); }

/* --- Menu mobile : panneau plein écran, rubriques en accordéon --- */
.nav-panel {
    position: fixed; inset: var(--panel-top, var(--header-h)) 0 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); color: var(--ink);
    padding: var(--s-4) var(--gutter) calc(var(--s-7) + env(safe-area-inset-bottom));
    visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0);
    transition: clip-path .6s var(--ease), opacity .3s, visibility 0s .6s;
}
.nav-open .nav-panel { visibility: visible; opacity: 1; clip-path: inset(0); transition: clip-path .6s var(--ease), opacity .2s; }
.nav-open { overflow: hidden; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { border-bottom: 1px solid var(--line); }
.nav-link, .nav-trigger {
    display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--s-3);
    padding: 18px 0; border: 0; background: none; cursor: pointer; text-align: left; text-decoration: none; color: inherit;
    font: 800 clamp(1.9rem, 8vw, 2.4rem)/1 var(--display); font-stretch: 75%; text-transform: uppercase;
}
.nav-link.is-active, .nav-trigger.is-active { color: var(--primary); }
.nav-trigger .icon { width: 22px; height: 22px; transition: transform .45s var(--ease); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mega { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.nav-item.is-open .mega { grid-template-rows: 1fr; }
.mega-inner { overflow: hidden; }
.mega-col { padding-bottom: var(--s-4); }
.mega-col h3 { margin: var(--s-2) 0 var(--s-2); font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-link { display: block; padding: 9px 0; text-decoration: none; color: var(--ink); }
.mega-link strong { display: block; font-weight: 600; font-size: 1.02rem; }
.mega-link span { display: block; font-size: .86rem; color: var(--muted); }
.mega-link:hover strong, .mega-link.is-active strong { color: var(--primary); }
.mega-feature { display: none; }
.nav-quick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-6); }
.nav-quick a { display: grid; gap: 6px; padding: var(--s-4); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; }
.nav-quick a .icon { width: 20px; height: 20px; color: var(--primary); }
.nav-quick a.is-cta { grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); color: var(--dark); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.nav-quick a.is-cta .icon { color: var(--dark); }

/* Apparition en cascade des rubriques à l'ouverture */
@media (prefers-reduced-motion: no-preference) {
    .nav-panel .nav-item, .nav-panel .nav-quick { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + 120ms); }
    .nav-open .nav-panel .nav-item, .nav-open .nav-panel .nav-quick { opacity: 1; transform: none; }
}

/* --- Menu grand écran : barre horizontale + « méga-menu » déroulant --- */
@media (min-width: 1080px) {
    .nav-toggle { display: none; }
    .nav-cta { display: inline-flex; }
    .nav-panel {
        position: static; inset: auto; z-index: auto; overflow: visible; background: none; color: inherit; padding: 0;
        visibility: visible; opacity: 1; clip-path: none; transition: none;
    }
    .nav-quick { display: none; }
    .nav-list { display: flex; align-items: center; gap: 2px; }
    .nav-item { border: 0; }
    .nav-panel .nav-item { opacity: 1; transform: none; }
    .nav-link, .nav-trigger {
        position: relative; padding: 10px 14px; font: 500 .94rem/1 var(--font); text-transform: none; font-stretch: 100%;
        border-radius: 999px; gap: 6px;
    }
    .nav-link::after, .nav-trigger::after {
        content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: currentColor;
        transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
    }
    .nav-link:hover::after, .nav-trigger:hover::after, .nav-trigger[aria-expanded="true"]::after,
    .nav-link.is-active::after, .nav-trigger.is-active::after { transform: scaleX(1); transform-origin: left; }
    .nav-link.is-active, .nav-trigger.is-active { color: inherit; }
    /* Pastille de survol : prend la couleur du texte, donc lisible aussi bien
       sur la photo du hero (texte blanc) que sur la barre claire. */
    .nav-link, .nav-trigger { transition: background .25s var(--ease), color .25s; }
    .nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: color-mix(in srgb, currentColor 10%, transparent); }
    .nav-trigger .icon { width: 14px; height: 14px; opacity: .7; }

    /* Panneau détaché de la barre : une carte qui flotte au-dessus de la page,
       dans le même langage que le cadre du hero. Le décalage est un remplissage
       transparent et non une marge : le survol n'est pas coupé entre les deux. */
    /* Panneau flottant : une carte de papier détachée de la barre. Aucune ombre
       portée, et rien d'assombri derrière : l'ombre de la carte et le voile posé
       sur la page ne tombaient pas au même endroit et dessinaient une coupure en
       travers de l'écran. La carte est opaque, un simple filet la détache. */
    .mega {
        position: absolute; left: 0; right: 0; top: 100%; display: block; color: var(--ink);
        padding-top: 10px;
        visibility: hidden; opacity: 0; transform: translateY(-10px);
        transition: opacity .28s var(--ease), transform .45s var(--ease), visibility 0s .45s;
    }
    .nav-item.is-open .mega { visibility: visible; opacity: 1; transform: none; transition: opacity .22s var(--ease), transform .5s var(--ease); }
    .mega-inner {
        overflow: visible; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)) minmax(280px, .9fr);
        gap: var(--s-6); padding-block: var(--s-5) var(--s-6);
        background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
        box-shadow: none;
        transition: box-shadow .4s var(--ease);
    }
    /* Sur la photo, la carte se detache toute seule : aucune ombre, c'etait la
       bavure grise. Sur une page de meme couleur qu'elle, il lui en faut une —
       mais entierement dirigee vers le bas (decalage superieur au flou, ecart
       negatif) : rien ne deborde au-dessus, donc rien ne vient noircir l'espace
       entre la barre et la carte, qui etait la coupure. */
    .past-hero .nav-item.is-open .mega-inner {
        box-shadow: 0 30px 50px -28px rgba(11, 15, 30, .3), 0 6px 14px -10px rgba(11, 15, 30, .12);
    }
    .mega-col h3 { margin: 0 0 var(--s-2); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
    /* Chaque lien devient une ligne cliquable : la pastille déborde de 14 px de
       chaque côté pour que le texte reste aligné sur l'intitulé de la colonne. */
    .mega-link { margin-inline: -14px; padding: 9px 14px; border-radius: 14px; transition: background .25s var(--ease); }
    .mega-link:hover, .mega-link:focus-visible { background: color-mix(in srgb, var(--primary) 8%, transparent); }
    .mega-link strong { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; transition: color .25s; }
    .mega-link strong::after { content: "→"; margin-left: 1px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--ease); }
    .mega-link:hover strong::after, .mega-link:focus-visible strong::after { opacity: .5; transform: none; }
    .mega-feature {
        display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; isolation: isolate;
        min-height: 220px; padding: var(--s-5); border-radius: var(--r-lg); background: var(--dark); color: #fff; text-decoration: none;
    }
    .mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: transform 1.2s var(--ease), opacity .4s; }
    .mega-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(11, 15, 30, .92)); }
    .mega-feature:hover img { transform: scale(1.06); opacity: .7; }
    .mega-feature strong { font: 800 1.9rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; margin-bottom: 8px; }
    .mega-feature span { font-size: .92rem; color: rgba(255, 255, 255, .8); }
    .mega-feature .link-more { color: var(--accent); margin-top: var(--s-3); }
    .mega-open .mega-backdrop { opacity: 1; visibility: visible; }
    /* Le voile ne sert plus qu'à refermer le menu d'un clic à côté : il reste
       transparent, sinon sa limite haute coupe la page juste sous la carte. */
    .mega-backdrop { position: fixed; inset: 0; z-index: 50; background: transparent; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
    .mega-open .mega-backdrop { transition: opacity .4s; }
}
@media (max-width: 1079.98px) { .mega-backdrop { display: none; } }

/* 6. HERO D'ACCUEIL (conservé) ============================================ */
.hero { position: relative; min-height: calc(100vh - var(--hero-offset, 0px)); min-height: calc(100svh - var(--hero-offset, 0px)); margin-top: calc(-1 * var(--header-h)); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--dark); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-bg.is-active { opacity: 1; animation: heroZoom 14s var(--ease) forwards; }
.hero.is-paused .hero-bg.is-active { animation-play-state: paused; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(180deg, rgba(11, 15, 30, .6) 0%, rgba(11, 15, 30, .1) 32%, rgba(11, 15, 30, .72) 72%, rgba(11, 15, 30, .96) 100%),
    linear-gradient(90deg, rgba(11, 15, 30, .7) 0%, transparent 65%); }
.hero-grid { display: grid; gap: var(--s-5); align-items: end; width: 100%; padding-top: calc(var(--header-h) + var(--inset-top, 0px) + 32px); padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero-title { font: 800 clamp(5.2rem, 24vw, 12rem)/.8 var(--display); font-stretch: 75%; margin: 0 0 var(--s-3); letter-spacing: -.02em; color: #fff; }
.hero-title::after { content: ""; display: block; width: 96px; height: 6px; margin-top: var(--s-4); background: linear-gradient(90deg, var(--accent) 60%, var(--primary) 60%); }
.hero-subtitle { font: 700 clamp(1.2rem, 3.4vw, 1.9rem)/1.1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; margin-bottom: var(--s-3); }
.hero-text { max-width: 540px; color: rgba(255, 255, 255, .85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.hero-actions.center { justify-content: center; }
.next-match { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s-5); padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; font-size: .88rem; backdrop-filter: blur(8px); transition: background .3s; }
.next-match:hover { background: rgba(255, 255, 255, .16); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d3d; flex-shrink: 0; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 61, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 77, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 61, 0); } }
.hero-figures { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255, 255, 255, .2); }
.figure { padding: var(--s-4) 0; }
.figure:nth-child(odd) { padding-right: var(--s-4); border-right: 1px solid rgba(255, 255, 255, .15); }
.figure:nth-child(even) { padding-left: var(--s-4); }
.figure:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .15); }
.figure strong { display: block; font: 800 2.4rem/1 var(--display); font-stretch: 75%; color: #fff; }
.figure:first-child strong { color: var(--accent); }
.figure span { font: 500 .7rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
/* Invitation à défiler : une molette dessinée, et un point qui la traverse.
   Au pointeur il descend (on fait tourner la molette), au doigt il monte (on pousse
   la page vers le haut). Tout est en CSS : rien à charger. */
.hero-scroll { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 9px; transform: translateX(-50%); pointer-events: none; }
.mouse-body { position: relative; display: block; width: 25px; height: 40px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; }
.mouse-body b { position: absolute; left: 50%; top: 8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fff; animation: mouseDot 2.4s var(--ease-in-out) infinite; }
@keyframes mouseDot {
    0% { transform: translateY(0); opacity: 0; }
    18% { opacity: 1; }
    70% { transform: translateY(15px); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}
@keyframes mouseDotUp {
    0% { transform: translateY(20px); opacity: 0; }
    18% { opacity: 1; }
    70% { transform: translateY(5px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0; }
}
/* Écran tactile : le geste va vers le haut */
@media (pointer: coarse) {
    .mouse-body b { animation-name: mouseDotUp; }
}
/* Mouvement réduit : le dessin reste, l'animation s'arrête */
@media (prefers-reduced-motion: reduce) {
    .mouse-body b { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 899.98px) {
    .hero-title { font-size: clamp(4rem, min(22vw, 13svh), 7rem); }
    .hero-subtitle { font-size: clamp(1.05rem, 4.6vw, 1.3rem); }
    .hero-text { font-size: .95rem; line-height: 1.5; }
    .hero-actions { flex-wrap: nowrap; gap: 10px; margin-top: var(--s-4); }
    .hero-actions .btn { flex: 1 1 auto; min-height: 50px; padding: .8em 1em; font-size: .92rem; justify-content: center; white-space: nowrap; }
    .hero-figures { grid-template-columns: repeat(4, 1fr); }
    .figure, .figure:nth-child(odd), .figure:nth-child(even), .figure:nth-child(n+3) { padding: 12px 5px 0; border: 0; min-width: 0; text-align: center; }
    /* Un filet entre chaque colonne : le chiffre et son libellé forment un bloc net */
    .figure + .figure { border-left: 1px solid rgba(255, 255, 255, .14); }
    .figure strong { font-size: clamp(1.5rem, 7.6vw, 2.1rem); }
    .figure span { display: block; font-size: .55rem; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* Écrans très étroits (Galaxy Z Flip / Fold replié) : les deux boutons du hero
   ne tiennent plus côte à côte, ils s'empilent au lieu de déborder de l'écran. */
@media (max-width: 380px) {
    .hero-actions { flex-wrap: wrap; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-grid > * { min-width: 0; }
    .figure span { font-size: .52rem; }
}
/* Petits écrans en hauteur (iPhone SE…) : texte d'accroche raccourci */
@media (max-width: 899.98px) and (max-height: 720px) {
    .hero-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1fr auto; padding-top: 200px; padding-bottom: var(--s-8); }
    .hero-figures { grid-template-columns: 1fr; min-width: 200px; padding: var(--s-2) var(--s-5); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-lg); background: rgba(11, 15, 30, .4); backdrop-filter: blur(14px); }
    .figure, .figure:nth-child(odd), .figure:nth-child(even) { padding: var(--s-4) 0; border: 0; text-align: right; }
    .figure + .figure { border-top: 1px solid rgba(255, 255, 255, .12); }
    .figure strong { font-size: 2.8rem; }
    .hero-scroll { bottom: 26px; }
}

/* Squelette de chargement : un dégradé balaie l'emplacement de l'image tant
   qu'elle n'est pas peinte. Retiré dès « load », y compris en cas d'erreur. */
.is-loading { background: linear-gradient(100deg, rgba(128, 138, 160, .12) 28%, rgba(128, 138, 160, .22) 46%, rgba(128, 138, 160, .12) 64%) 0 0 / 280% 100%; animation: skeleton 1.3s linear infinite; }
img.is-loading { color: transparent; }
@keyframes skeleton { to { background-position: -180% 0; } }
@media (prefers-reduced-motion: reduce) { .is-loading { animation: none; } }

/* 7. SECTIONS & EN-TÊTES DE PAGE ========================================== */
.section { position: relative; padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 7vw, 88px); }
.section-soft { background: #ecebe5; }
.section-surface { background: var(--surface); }
.section-dark { background: var(--dark); color: #fff; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: rgba(255, 255, 255, .6); }

.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(28px, 5vw, 56px); }
.section-head .section-title { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }
@media (min-width: 760px) {
    .section-head { grid-template-columns: 1fr auto; align-items: end; }
    .section-head > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
}
.section-title { font-size: clamp(2.1rem, 6.4vw, 4rem); margin: 0 0 var(--s-5); }
.section-spaced { margin-top: var(--s-8); }

/* En-tête des pages internes : fond papier, grand titre, lignes de terrain en filigrane */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 8vw, 96px) 0 clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero::before {
    content: ""; position: absolute; z-index: -1; right: -8%; top: 50%; width: min(620px, 70vw); aspect-ratio: 13.4 / 6.1;
    transform: translateY(-50%) rotate(-8deg); border: 1.5px solid var(--line-strong); opacity: .6;
    background:
        linear-gradient(var(--line-strong), var(--line-strong)) 50% 0 / 1.5px 100% no-repeat,
        linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 100% 1.5px no-repeat,
        linear-gradient(90deg, transparent calc(50% - 15%), var(--line-strong) calc(50% - 15%), var(--line-strong) calc(50% - 15% + 1.5px), transparent 0) 0 0 / 100% 100% no-repeat,
        linear-gradient(90deg, transparent calc(50% + 15%), var(--line-strong) calc(50% + 15%), var(--line-strong) calc(50% + 15% + 1.5px), transparent 0) 0 0 / 100% 100% no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.page-hero h1 { margin: var(--s-4) 0 var(--s-4); max-width: 16ch; }
.page-hero .lead { margin: 0; }
.page-hero-grid { display: grid; gap: var(--s-6); align-items: end; }
.page-hero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--dark); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
    .page-hero.has-image .page-hero-grid { grid-template-columns: 1.1fr .9fr; }
    .page-hero.has-image::before { display: none; }
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* Sous-navigation de rubrique (défilement horizontal sur mobile) */
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top .5s var(--ease); }
.header-hidden .subnav { top: 0; }
.subnav ul { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
/* Fondu sur le bord seulement s'il reste des onglets à découvrir de ce côté */
.subnav ul.fade-r { mask-image: linear-gradient(90deg, #000 85%, transparent); }
.subnav ul.fade-l { mask-image: linear-gradient(90deg, transparent, #000 15%); }
.subnav ul.fade-l.fade-r { mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.subnav ul::-webkit-scrollbar { display: none; }
/* Filet de séparation entre deux groupes d'onglets, tracé au milieu de l'espace existant */
.subnav li { position: relative; }
.subnav li.grp::before { content: ""; position: absolute; left: calc(var(--s-5) / -2); top: 18px; bottom: 18px; width: 1px; background: var(--line-strong); }
.subnav a { position: relative; display: block; padding: 16px 0; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; transition: color .25s; }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: none; }
@media (min-width: 960px) { .subnav ul { mask-image: none; } }

/* Messages flash */
.flash-stack { display: grid; gap: var(--s-2); padding-top: var(--s-4); }
.flash { display: flex; align-items: center; gap: var(--s-3); padding: 14px 18px; border-radius: var(--r); font-weight: 500; font-size: .95rem; border: 1px solid; animation: flashIn .6s var(--ease); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } }
.flash-success { background: #e7f6ef; color: #0b5d40; border-color: #bfe6d3; }
.flash-error { background: #fdecea; color: #97231a; border-color: #f6c5c0; }
.flash-info { background: #eaeefc; color: #1e3a8a; border-color: #c9d3f5; }

/* 8. CARTES & LISTES ====================================================== */
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid { gap: var(--s-6); }
}

/* Image avec zoom lent au survol */
/* translateZ(0) : sans couche propre, le navigateur laisse dépasser les coins de
   l'image quand elle s'agrandit au survol — on voyait l'angle carré ressortir. */
.media-frame { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: #dddbd3; transform: translateZ(0); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
a:hover > .media-frame img, .media-frame:hover img, .card:hover .media-frame img { transform: scale(1.045); }

/* Carte d'article : image + méta + titre, sans ombre lourde */
.card { position: relative; display: grid; align-content: start; gap: var(--s-4); }
.card .media-frame { aspect-ratio: 4 / 3; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chip { --chip: var(--primary); display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--chip); }
.card h3 { margin: 0; font: 600 clamp(1.1rem, 2.4vw, 1.3rem)/1.25 var(--font); letter-spacing: -.015em; }
.card h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.card:hover h3 a { background-size: 100% 1px; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card-large h3 { font: 800 clamp(1.8rem, 4.6vw, 2.8rem)/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.005em; }
.card-large .media-frame { aspect-ratio: 16 / 11; border-radius: var(--r-lg); }
.card-row { grid-template-columns: 112px 1fr; gap: var(--s-4); align-items: center; padding-block: var(--s-4); border-top: 1px solid var(--line); }
.card-row .media-frame { aspect-ratio: 1; border-radius: var(--r-sm); }
.card-row h3 { font-size: 1.02rem; margin-top: 6px; }
@media (min-width: 640px) { .card-row { grid-template-columns: 160px 1fr; } .card-row .media-frame { aspect-ratio: 4 / 3; } }

/* « À la une » : grande carte + liste */
/* --- Accueil : actualités ------------------------------------------------
   Un article en couverture, titre posé sur la photo, et la suite en vignettes :
   on voit tout de suite de quoi parle la une. */
.news-grid { display: grid; gap: var(--s-4); }
@media (min-width: 1000px) { .news-grid { grid-template-columns: 1.3fr 1fr; gap: var(--s-6); align-items: start; } }
.news-cover { transform: translateZ(0); position: relative; display: grid; align-content: end; min-height: clamp(300px, 40vw, 500px); padding: var(--s-5); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--dark); }
.news-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.3s var(--ease); }
/* Les affiches du club sont chargées : il faut un voile franc pour que le
   titre reste lisible par-dessus. */
.news-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 15, 30, .15) 8%, rgba(11, 15, 30, .72) 52%, rgba(11, 15, 30, .96)); }
.news-cover:hover img { transform: scale(1.05); }
.news-cover-body { display: grid; gap: var(--s-3); }
.news-cover .card-meta { color: rgba(255, 255, 255, .75); }
.news-cover .chip { color: rgba(255, 255, 255, .9); }
.news-cover strong { font: 800 clamp(1.5rem, 3.2vw, 2.5rem)/1.03 var(--display); font-stretch: 75%; text-transform: uppercase; }
.news-cover-text { max-width: 48ch; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.news-cover-go { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.news-cover-go .icon { transition: transform .45s var(--ease); }
.news-cover:hover .news-cover-go .icon { transform: translateX(4px); }

.news-side { display: grid; gap: var(--s-3); align-content: start; }
.news-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-3); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .35s var(--ease), border-color .3s, transform .4s var(--ease); }
.news-item:hover, .news-item:focus-visible { background: var(--paper); border-color: var(--line-strong); transform: translateX(3px); }
.news-item .media-frame { aspect-ratio: 1; border-radius: var(--r-sm); }
.news-item, .news-cover, .result-card { will-change: transform; }
.news-item .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { display: grid; gap: 6px; min-width: 0; }
.news-item-body strong { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.news-item-go { width: 18px; height: 18px; flex: none; color: var(--muted); transition: color .3s, transform .45s var(--ease); }
.news-item:hover .news-item-go { color: var(--primary); transform: translate(2px, -2px); }

.featured-grid { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .featured-grid { grid-template-columns: 1.35fr 1fr; gap: var(--s-8); align-items: start; } }
.featured-list { display: grid; }
.featured-list .card-row:last-child { border-bottom: 1px solid var(--line); }

/* Listes de liens simples */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* Documents téléchargeables */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-list a { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .45s var(--ease), color .25s; }
.doc-list a:hover { padding-left: 8px; color: var(--primary); }
.doc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.doc-list strong { display: block; font-weight: 600; }
.doc-list small { display: block; color: var(--muted); }
.doc-type { margin-left: auto; font: 500 .7rem/1 var(--mono); color: var(--muted); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: var(--s-8); }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font: 500 .9rem/1 var(--mono); transition: background .25s, color .25s, border-color .25s; }
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--dark); color: #fff; border-color: var(--dark); }
.pagination .icon { width: 16px; height: 16px; }

/* Barre d'outils : filtres + recherche */
.toolbar { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
@media (min-width: 900px) { .toolbar { grid-template-columns: 1fr auto; align-items: center; } }
.filter-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pills a { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: .88rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.filter-pills a:hover { border-color: var(--ink); }
.filter-pills a.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.search { display: flex; align-items: center; border-bottom: 1.5px solid var(--ink); min-width: min(100%, 320px); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font: inherit; color: inherit; outline: none; }
.search button { border: 0; background: none; cursor: pointer; padding: 8px; display: grid; place-items: center; }
.search:focus-within { border-color: var(--primary); }

/* Carrousel horizontal (glisser au doigt ou à la souris) */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--s-2); overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.carousel.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (min-width: 640px) { .carousel { grid-auto-columns: calc((100% - var(--s-4)) / 2); } }
@media (min-width: 1000px) { .carousel { grid-auto-columns: calc((100% - 3 * var(--s-5)) / 4); gap: var(--s-5); } }
.carousel-nav { display: flex; gap: var(--s-2); }
.carousel-progress { height: 2px; margin-top: var(--s-5); background: rgba(255, 255, 255, .15); overflow: hidden; }
.carousel-progress span { display: block; height: 100%; width: var(--p, 25%); background: var(--accent); transform: translateX(calc(var(--x, 0) * 1%)); transition: transform .2s linear; }

/* Carte de rencontre (interclubs) */
.match-card { position: relative; display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .45s var(--ease); }
.match-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.section-dark .match-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: #fff; }
.section-dark .match-card:hover { border-color: rgba(255, 255, 255, .28); }
.match-card header { display: flex; justify-content: space-between; gap: var(--s-2); font: 500 .7rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.section-dark .match-card header { color: rgba(255, 255, 255, .55); }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3); }
.match-team { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .82rem; font-weight: 500; line-height: 1.2; }
.match-team img, .team-initials { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; background: #fff; padding: 3px; }
.team-initials { display: grid; place-items: center; background: var(--paper); color: var(--ink-2); font: 800 1rem var(--display); text-transform: uppercase; }
.section-dark .team-initials { background: rgba(255, 255, 255, .08); color: #fff; }
.match-score { display: flex; align-items: baseline; gap: 6px; font: 800 2.6rem/1 var(--display); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.match-score span { color: var(--muted); font-size: 1.4rem; }
.match-time { font-size: 1.7rem; color: var(--primary); }
.section-dark .match-time { color: var(--accent); }
.match-card footer { display: flex; justify-content: center; }
.match-badge { display: inline-flex; align-items: center; gap: 6px; font: 500 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-2); }
.section-dark .match-badge { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }
.match-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.match-win .match-badge { color: #34c38f; }
.match-loss .match-badge { color: #ff6b5e; }
.match-draw .match-badge { color: #ffae42; }
.section:not(.section-dark) .match-win .match-badge { color: var(--success); background: #e7f6ef; }
.section:not(.section-dark) .match-loss .match-badge { color: var(--danger); background: #fdecea; }

/* Liste d'événements */
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-item a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .45s var(--ease); }
.event-item a:hover { padding-inline: 8px; }
.date-block { display: grid; justify-items: center; width: 60px; padding: 8px 0; border-radius: var(--r-sm); background: var(--dark); color: #fff; line-height: 1; }
.date-block strong { font: 800 1.7rem/1 var(--display); font-stretch: 75%; color: var(--accent); }
.date-block span { font: 500 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.event-info { display: grid; gap: 4px; min-width: 0; }
.event-info strong { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.event-info .muted { font-size: .85rem; }
.event-arrow { width: 20px; height: 20px; color: var(--muted); transition: transform .45s var(--ease), color .25s; }
.event-item a:hover .event-arrow { transform: translateX(4px); color: var(--primary); }
.tag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font: 500 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tag, var(--primary)); }
.tag-tournoi { --tag: #d92d20; } .tag-interclub { --tag: var(--primary); } .tag-jeunes { --tag: #e8590c; }
.tag-ag { --tag: #6b7280; } .tag-club { --tag: #7e3af2; } .tag-stage { --tag: #0f8a5f; } .tag-autre { --tag: #9aa0b4; }

/* Personnes (dirigeants, encadrants) */
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
@media (min-width: 700px) { .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); } }
.person { display: grid; align-content: start; gap: 4px; }
.person-photo { position: relative; aspect-ratio: 4 / 5; margin-bottom: var(--s-3); border-radius: var(--r); overflow: hidden; background: #e2e0d8; }
.person-photo { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform 1.1s var(--ease); }
/* Survol : légère élévation et zoom lent de la photo, en couleur dès le départ */
.person:hover .person-photo { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(11, 15, 30, .45); }
.person:hover .person-photo img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .person:hover .person-photo, .person:hover .person-photo img { transform: none; } }
.person-photo > span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 2.6rem/1 var(--display); font-stretch: 75%; color: var(--muted); }
.person strong { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.person .muted { font-size: .88rem; line-height: 1.35; }
.person p { margin: var(--s-2) 0 0; font-size: .9rem; color: var(--ink-2); }
.person-mail { font-size: .88rem; margin-top: 6px; }

/* Carte « fonctionnalité » (commissions…) */
.feature-card { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-5) 0; border-top: 1px solid var(--ink); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--dark); transition: transform .6s var(--ease); }
.feature-card:hover .feature-icon { transform: rotate(-14deg) scale(1.06); }
.feature-card h3 { margin: var(--s-2) 0 0; }
.feature-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.feature-members { font-size: .85rem; color: var(--muted); }

/* Encart d'appel à l'action */
.cta-card { display: grid; gap: var(--s-5); padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: var(--dark); color: #fff; }
.cta-card h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: var(--s-2); }
.cta-card p { margin: 0; color: rgba(255, 255, 255, .75); max-width: 56ch; }
.cta-inline { margin-top: var(--s-8); }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1fr auto; align-items: center; } }

/* État vide */
.empty-state { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-8) var(--s-5); text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--ink-2); }
.empty-state > .icon { width: 36px; height: 36px; color: var(--muted); }

/* 9. RUBRIQUES ============================================================ */

/* --- Accueil : bandeau « en ce moment » ---------------------------------
   Trois cartes sous le hero : ce qui se passe aujourd'hui, le prochain
   rendez-vous, et la porte d'entrée pour les curieux. Sur téléphone elles
   défilent au doigt (une pile de trois cartes pleine hauteur donnait une page
   interminable avant le premier contenu). */
/* Une respiration avant la section sombre : les cartes ne doivent pas
   toucher le bord de l'aplat des interclubs. */
.pulse { position: relative; z-index: 2; padding-block: var(--s-6) clamp(40px, 6vw, 72px); }
.pulse-grid { display: grid; gap: var(--s-4); }
.pulse-card { position: relative; display: grid; align-content: start; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.today-card { position: relative; display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.today-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.today-head h2, .today-head h3 { margin: 0; font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-pill.is-live { background: #e7f6ef; color: var(--success); }
.status-pill.is-live::before { background: var(--success); animation: pulseGreen 1.8s infinite; }
.status-pill.is-soon { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.status-pill.is-soon::before { background: var(--primary); }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(15, 138, 95, .5); } 70% { box-shadow: 0 0 0 8px rgba(15, 138, 95, 0); } 100% { box-shadow: none; } }
.today-slots { list-style: none; margin: 0; padding: 0; }
.today-slots li { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-3); padding: 12px 0; border-top: 1px solid var(--line); }
.today-slots .num { font-size: .88rem; color: var(--ink-2); padding-top: 2px; }
.today-slots strong { font-weight: 600; }
.today-slots small { display: block; color: var(--muted); font-size: .84rem; }
.today-slots li.is-now .num { color: var(--success); font-weight: 600; }
.today-foot { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center; font-size: .9rem; color: var(--muted); }
.pulse-card .today-foot { margin-top: auto; }

/* Carte « prochain rendez-vous » */
.pulse-event { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; padding-top: var(--s-4); border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.pulse-event .event-info { display: grid; gap: 6px; }
.pulse-event .event-info strong { font-size: 1.05rem; line-height: 1.3; transition: color .3s; }
.pulse-event:hover .event-info strong { color: var(--primary); }
.pulse-event .tag { justify-self: start; }

/* Carte d'appel : la seule tache de couleur du bandeau */
.pulse-cta { overflow: hidden; isolation: isolate; gap: var(--s-3); background: var(--dark); border-color: var(--dark); color: #fff; text-decoration: none; }
.pulse-cta::after { content: ""; position: absolute; z-index: -1; right: -28%; bottom: -40%; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%); transition: transform .8s var(--ease); }
.pulse-cta:hover::after { transform: scale(1.15) translate(-6%, -6%); }
.pulse-cta-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--accent); color: var(--dark); }
.pulse-cta-icon .icon { width: 24px; height: 24px; }
.pulse-cta strong { font: 800 clamp(1.5rem, 3.4vw, 2rem)/1 var(--display); font-stretch: 75%; text-transform: uppercase; color: #fff; }
.pulse-cta > span:not([class]) { color: rgba(255, 255, 255, .76); font-size: .95rem; }
.pulse-cta-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--accent); font-weight: 600; }
.pulse-cta-go .icon { transition: transform .45s var(--ease); }
.pulse-cta:hover .pulse-cta-go .icon { transform: translateX(4px); }


/* Les deux prochains rendez-vous, sous celui qui vient */
.pulse-after { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; }
.pulse-after a { display: grid; grid-template-columns: 78px 1fr; gap: var(--s-3); padding: 9px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; font-size: .92rem; transition: color .3s; }
.pulse-after .num { font: 500 .76rem/1.5 var(--mono); text-transform: uppercase; color: var(--muted); }
.pulse-after a:hover { color: var(--primary); }

@media (min-width: 900px) {
    .pulse { padding-top: var(--s-6); }
    .pulse-grid { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
    .pulse-card { padding: var(--s-6); }
    .today-card { box-shadow: 0 40px 80px -40px rgba(11, 15, 30, .45); }
}

/* --- Accueil : résultats de la semaine ---------------------------------
   Une ligne par rencontre, le club toujours à gauche : la colonne des scores
   se lit verticalement, et la semaine se survole en deux secondes. */
.results-block { position: relative; overflow: hidden; }
.results-block > .container { position: relative; z-index: 1; }
/* Volant filigrane : la section respire au lieu d'être un simple aplat noir */
.results-watermark { position: absolute; top: -70px; right: -60px; z-index: 0; color: rgba(255, 255, 255, .05); pointer-events: none; }
.results-watermark .icon { width: 340px; height: 340px; }

/* Bilan de la période : ce que disent ces rencontres, d'un coup d'œil */
.results-summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.results-count { margin: 0; font: 500 .74rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.results-count strong { margin-right: 8px; font: 800 1.7rem/1 var(--display); font-stretch: 75%; color: #fff; }
.results-tally { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.results-tally li.is-zero { background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .4); }
.results-tally li.is-zero strong { color: rgba(255, 255, 255, .6); }
.results-tally li { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font: 500 .72rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .68); }
.results-tally strong { font-size: .95rem; color: #fff; }
.results-tally .is-win { background: color-mix(in srgb, var(--success) 28%, transparent); color: #c2f1da; }
.results-tally .is-draw { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.results-form { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.results-form i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 700 .76rem/1 var(--mono); font-style: normal; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }
.results-form .is-win { background: var(--success); color: #fff; }
.results-form .is-draw { background: var(--accent); color: var(--dark); }

/* Une carte par equipe, qui s'enroule : ni grille rigide ni en-tete de semaine.
   Chaque carte tient en quatre lignes - l'equipe, le score, l'adversaire, la date. */
.result-flow { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.result-card {
    flex: 1 1 236px; max-width: 420px;
    position: relative; overflow: hidden;
    display: grid; align-content: start; gap: 10px;
    padding: var(--s-4) var(--s-4) var(--s-4) calc(var(--s-4) + 3px);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
    color: #fff; text-decoration: none;
    /* Les cartes montent l'une apres l'autre quand le bloc entre a l'ecran */
    opacity: 0; transform: translateY(12px);
    transition: opacity .45s var(--ease), transform .5s var(--ease), background .3s, border-color .3s;
}
.result-flow.is-visible .result-card { opacity: 1; transform: none; }
.result-flow.is-visible .result-card:nth-child(2) { transition-delay: .05s; }
.result-flow.is-visible .result-card:nth-child(3) { transition-delay: .10s; }
.result-flow.is-visible .result-card:nth-child(4) { transition-delay: .15s; }
.result-flow.is-visible .result-card:nth-child(5) { transition-delay: .20s; }
.result-flow.is-visible .result-card:nth-child(6) { transition-delay: .25s; }
.result-flow.is-visible .result-card:nth-child(7) { transition-delay: .30s; }
.result-flow.is-visible .result-card:nth-child(8) { transition-delay: .35s; }
.result-flow.is-visible .result-card:nth-child(9) { transition-delay: .40s; }
.result-card:hover, .result-card:focus-visible { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); transform: translateY(-3px); }
/* Liseré d'issue sur la tranche */
.result-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(255, 255, 255, .14); }
.result-card.is-win::before { background: var(--success); }
.result-card.is-draw::before { background: var(--accent); }

/* Deux lignes, une par équipe : écusson, nom, score. Le perdant s'efface. */
.result-teams { display: grid; gap: 9px; }
.result-line { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; color: rgba(255, 255, 255, .45); }
.result-line.is-top { color: #fff; }
.result-line strong { font: 800 1.5rem/1 var(--display); font-stretch: 75%; letter-spacing: -.02em; }
.result-badge { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: rgba(255, 255, 255, .09); font: 700 .58rem/1 var(--mono); color: rgba(255, 255, 255, .75); overflow: hidden; }
.result-badge img { width: 22px; height: 22px; object-fit: contain; }
.result-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .95rem; }

.result-meta { display: flex; align-items: center; gap: 8px; font: 500 .63rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.result-when { display: flex; min-width: 0; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-where { flex: none; margin-left: auto; padding: 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .5); }
/* Séparateur dessiné, pas écrit : une police n'a pas forcément le glyphe du
   point médian, et le caractère manquant s'affiche alors en petite boîte. */
.result-when span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 6px; border-radius: 50%; background: currentColor; vertical-align: middle; }

/* --- Accueil : « Trouvez votre badminton » --- */
.paths { display: grid; gap: var(--s-4); }
/* Sur téléphone, les trois parcours défilent au doigt : empilés, ils faisaient
   trois écrans à eux seuls. */
@media (max-width: 799.98px) {
    .paths {
        grid-auto-flow: column; grid-auto-columns: 78%;
        overflow-x: auto; scroll-snap-type: x mandatory;
        margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
        scroll-padding-inline: var(--gutter); scrollbar-width: none;
    }
    .paths::-webkit-scrollbar { display: none; }
    .path-card { scroll-snap-align: start; min-height: 320px; }
}
@media (min-width: 800px) { .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.path-card { position: relative; display: grid; align-content: end; min-height: 380px; padding: var(--s-5); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--dark); }
.path-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.path-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 15, 30, .05) 30%, rgba(11, 15, 30, .9)); transition: background .5s; }
.path-card:hover img { transform: scale(1.06); }
.path-card .num { position: absolute; top: var(--s-5); left: var(--s-5); font-size: .75rem; color: rgba(255, 255, 255, .8); }
.path-card h3 { color: #fff; font: 800 clamp(2rem, 6vw, 2.8rem)/.95 var(--display); font-stretch: 75%; text-transform: uppercase; margin: 0 0 var(--s-2); }
.path-card p { margin: 0; color: rgba(255, 255, 255, .82); font-size: .95rem; max-width: 34ch; }
.path-card .path-go { position: absolute; top: var(--s-4); right: var(--s-4); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--dark); transition: transform .5s var(--ease); }
.path-card:hover .path-go { transform: rotate(45deg); }
.path-card .path-go .icon { width: 18px; height: 18px; }
.path-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-4); }
.path-meta span { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); font: 500 .68rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }

/* --- Accueil : bandeau « rejoindre » --- */
.join-grid { display: grid; gap: var(--s-6); align-items: center; }
.join-image { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.join-image img { width: 100%; height: 100%; object-fit: cover; }
.join-stamp { position: absolute; right: var(--s-4); bottom: var(--s-4); display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; background: var(--accent); color: var(--dark); text-align: center; font: 800 1.05rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.join-stamp strong { display: block; font-size: 3rem; line-height: .9; }
@media (prefers-reduced-motion: no-preference) { .join-stamp { animation: stampSpin 18s linear infinite; } .join-stamp > * { animation: stampSpin 18s linear infinite reverse; } }
@keyframes stampSpin { to { transform: rotate(360deg); } }
.join-content h2 { margin-bottom: var(--s-4); }
.join-content h2 em { font-style: normal; color: var(--primary); }
.steps-list { list-style: none; margin: var(--s-5) 0; padding: 0; counter-reset: step; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.steps-list li::before { content: counter(step, decimal-leading-zero); font: 500 .8rem/1.6 var(--mono); color: var(--muted); }
.steps-list strong { display: block; font-weight: 600; }
.steps-list span { color: var(--ink-2); font-size: .95rem; }
/* Grand écran : la photo occupe toute la hauteur de la colonne de texte (plus de vide à gauche) */
@media (min-width: 960px) {
    .join-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-9); align-items: stretch; }
    .join-image { aspect-ratio: auto; min-height: 520px; }
    .join-image img { position: absolute; inset: 0; }
    .join-content { align-self: center; }
}

/* --- Mosaïque de photos --- */
/* --- Accueil : mur de photos à logo central, comme un QR code ---------
   Pleine largeur, le logo posé nu dans la case centrale (ni cadre ni ombre) :
   la grille l'y place explicitement, les photos se rangent autour. */
.photo-wall { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: row dense; gap: var(--s-2); }
.photo-cell { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: #ddd; transform: translateZ(0); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.photo-cell:hover img { transform: scale(1.07); }
.photo-logo { grid-area: 2 / 2; display: grid; place-items: center; aspect-ratio: 1; }
.photo-logo img { width: clamp(64px, 20vw, 190px); height: auto; }
/* Téléphone : huit photos autour du logo suffisent */
.photo-cell:nth-child(n+9) { display: none; }
@media (min-width: 900px) {
    .photo-wall { grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
    .photo-logo { grid-area: 2 / 3; }
    .photo-cell:nth-child(n+9) { display: block; }
}

.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: var(--s-2); }
.mosaic-item { position: relative; overflow: hidden; border-radius: var(--r-sm); background: #ddd; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.mosaic-item:hover img { transform: scale(1.06); }
.mosaic-item:nth-child(1) { grid-row: span 2; }
@media (min-width: 800px) {
    .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--s-3); }
    .mosaic-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .mosaic-item:nth-child(6) { grid-column: span 2; }
}

/* --- Partenaires : défilement continu --- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: var(--s-4); }
@media (prefers-reduced-motion: no-preference) {
    .marquee.is-ready .marquee-track { animation: marquee var(--marquee-dur, 40s) linear infinite; }
    .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s-4) / 2)); } }
.partner-logo { display: grid; place-items: center; width: 180px; height: 104px; padding: var(--s-4) var(--s-5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s; }
.partner-logo img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .45s, opacity .45s; }
.partner-logo:hover { border-color: var(--line-strong); }
.partner-logo:hover img { filter: none; opacity: 1; }
.partner-logo span { font-weight: 600; font-size: .9rem; text-align: center; }
.partners-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.partners-page .partner-logo { width: auto; height: 132px; }
.partners-page .partner-logo img { filter: none; opacity: 1; }
@media (min-width: 800px) { .partners-page { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.partner-group + .partner-group { margin-top: var(--s-7); }
.partner-group h2 { font-size: 1rem; font-family: var(--mono); font-weight: 500; letter-spacing: .06em; margin-bottom: var(--s-4); }

/* --- Créneaux horaires : agenda de la semaine --- */
.week { display: grid; gap: var(--s-3); align-items: start; }
.day { display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.day.is-today { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); }
.day-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px var(--s-3); }
.day-head h3 { margin: 0; font: 800 1.6rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.day-head .status-pill { font-size: .66rem; }
.slot { display: grid; grid-template-columns: 104px 1fr; gap: 4px var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.slot-time { font: 500 .85rem/1.5 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.slot-body { display: grid; gap: 2px; }
.slot-body strong { font-weight: 600; line-height: 1.3; }
.slot-body small { font-size: .82rem; color: var(--muted); }
.slot-body .slot-note { color: var(--warning); }
.slot.is-youth .slot-time { color: #b8480a; }
.slot.is-free .slot-time { color: var(--success); }
@media (min-width: 800px) { .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .week { grid-template-columns: repeat(5, minmax(0, 1fr)); } .week.has-weekend { grid-template-columns: repeat(4, minmax(0, 1fr)); } .slot { grid-template-columns: 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-5); font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* --- Gymnase --- */
.venue { display: grid; gap: var(--s-6); }
.venue + .venue { margin-top: var(--s-9); }
.map-card { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #dfe3d8; border: 1px solid var(--line); }
.map-card iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.facts { display: grid; border-top: 1px solid var(--line); margin: var(--s-5) 0; }
.fact { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.fact .icon { color: var(--primary); margin-top: 2px; }
.fact strong { display: block; font-weight: 600; }
.fact span, .fact p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (min-width: 960px) { .venue { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; } .venue .map-card { position: sticky; top: calc(var(--header-h) + 24px); } }

/* --- Tarifs --- */
.pricing { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.price-card { position: relative; display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s; }
.price-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.price-card.is-highlighted { background: var(--dark); color: #fff; border-color: var(--dark); }
.price-card.is-highlighted h3, .price-card.is-highlighted .price strong { color: #fff; }
.price-card.is-highlighted .muted, .price-card.is-highlighted .checks li { color: rgba(255, 255, 255, .75); }
.price-badge { position: absolute; top: var(--s-5); right: var(--s-5); padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--dark); font: 500 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.price-card h3 { margin: 0; padding-right: 96px; }
.price-card .muted { margin: 0; font-size: .9rem; }
.price { display: flex; align-items: baseline; gap: 8px; margin: var(--s-3) 0; }
.price strong { font: 800 3rem/1 var(--display); font-stretch: 75%; letter-spacing: -.02em; }
.price strong span { font: inherit; color: inherit; }
.price > span { font: 500 .8rem/1 var(--mono); color: var(--muted); }
.checks { list-style: none; margin: 0; padding: var(--s-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.price-card.is-highlighted .checks { border-color: rgba(255, 255, 255, .15); }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .94rem; color: var(--ink-2); }
.checks .icon { width: 18px; height: 18px; color: var(--primary); margin-top: 2px; }
.price-card.is-highlighted .checks .icon { color: var(--accent); }

/* Parcours d'inscription en étapes */
.path-steps { display: grid; gap: var(--s-4); counter-reset: s; }
.path-step { position: relative; display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.path-step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 500 .8rem/1 var(--mono); color: var(--muted); }
.path-step h3 { margin: 0; font: 800 1.7rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.path-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.path-step ol, .path-step ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: .95rem; display: grid; gap: 6px; }
.path-step .link-more { margin-top: auto; padding-top: var(--s-3); }
@media (min-width: 900px) { .path-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }

/* --- Mise en page article / page --- */
.article-layout { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) {
    .article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-9); align-items: start; }
    .article-aside { position: sticky; top: calc(var(--header-h) + 32px); }
    /* À partir de trois blocs la colonne est trop haute pour être collante : on la laisse défiler */
    .article-aside:has(> :nth-child(3)) { position: static; }
}
.article-aside { display: grid; gap: var(--s-4); }
.aside-card { display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.aside-card h2 { margin: 0; font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.aside-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.aside-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.aside-dark h2 { color: rgba(255, 255, 255, .6); }
.aside-dark p { color: rgba(255, 255, 255, .78); }
.aside-accent { background: var(--accent); border-color: var(--accent); }
.aside-link { transition: border-color .3s, transform .45s var(--ease); }
.aside-link:hover { border-color: var(--ink); transform: translateX(4px); }
.aside-link strong { font-weight: 600; }
.aside-link .muted { font-size: .9rem; }
.big-number, .aside-card .big-number { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; font: 800 4.2rem/.9 var(--display); font-stretch: 75%; color: var(--accent); }
.big-number small { font: 700 1.5rem/1 var(--display); font-stretch: 75%; color: #fff; text-transform: uppercase; letter-spacing: .02em; }

/* Contenu riche (HTML nettoyé saisi dans l'admin) */
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); max-width: 70ch; }
@media (min-width: 960px) { .prose { font-size: 1.1rem; } }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); margin: 1.8em 0 .5em; color: var(--ink); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 2em 0; padding: 0 0 0 var(--s-5); border-left: 3px solid var(--accent); font: 600 clamp(1.2rem, 3vw, 1.5rem)/1.4 var(--font); color: var(--ink); letter-spacing: -.01em; }
.prose img { border-radius: var(--r); margin: 1.5em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-weight: 600; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface); padding: .1em .35em; border-radius: 6px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; margin: 1.5em 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.updated { margin-top: var(--s-7); font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* Article */
.article-hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 var(--s-6); }
.article-hero h1 { font-size: clamp(2.4rem, 7.4vw, 5rem); max-width: 18ch; margin: var(--s-4) 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s-3); font: 500 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: var(--s-7); background: var(--dark); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .article-cover { border-radius: 0; margin-inline: calc(-1 * var(--gutter)); } }
.article-lead { font-size: clamp(1.2rem, 3vw, 1.45rem); line-height: 1.45; color: var(--ink); font-weight: 500; letter-spacing: -.01em; margin-bottom: var(--s-6); max-width: 62ch; }
.preview-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--warning); color: #fff; font: 500 .72rem/1 var(--mono); text-transform: uppercase; }
.reading-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 80; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
    .reading-progress { animation: readProgress linear both; animation-timeline: scroll(root); }
    @keyframes readProgress { to { transform: scaleX(1); } }
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: .88rem; transition: background .25s, color .25s; }
.tag-pill small { font: 500 .62rem/1 var(--mono); text-transform: uppercase; color: var(--muted); }
.tag-pill:hover { background: var(--dark); color: #fff; }
.share { display: flex; gap: var(--s-2); }
.share a, .share button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .45s var(--ease); }
.share a:hover, .share button:hover { background: var(--dark); color: #fff; border-color: var(--dark); transform: translateY(-2px); }
.share .icon { width: 18px; height: 18px; }
.share button.copied { background: var(--success); color: #fff; border-color: var(--success); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); margin: var(--s-5) 0; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); } }
.gallery-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); background: #ddd; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-masonry { display: block; columns: 2 160px; column-gap: var(--s-2); }
.gallery-masonry .gallery-item { aspect-ratio: auto; margin-bottom: var(--s-2); break-inside: avoid; }
@media (min-width: 900px) { .gallery-masonry { columns: 3; column-gap: var(--s-3); } .gallery-masonry .gallery-item { margin-bottom: var(--s-3); } }
.album-card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); color: #fff; text-decoration: none; isolation: isolate; background: var(--dark); }
.album-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.album-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(11, 15, 30, .88)); }
.album-card:hover img { transform: scale(1.06); }
.album-overlay { position: absolute; inset: auto 0 0; display: grid; gap: 6px; padding: var(--s-5); }
.album-overlay strong { font: 800 1.8rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.album-overlay small { font: 500 .72rem/1 var(--mono); text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.chip-light { justify-self: start; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink); font: 500 .68rem/1 var(--mono); text-transform: uppercase; }
.chip-light::before { display: none; }
.video-card { display: grid; gap: var(--s-3); }
.video-card h3 { margin: 0; }
.video-card p { margin: 0; font-size: .92rem; }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--dark); cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 1.1s var(--ease), opacity .3s; }
.video-facade:hover img { transform: scale(1.04); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--accent); color: var(--dark); transition: transform .5s var(--ease); }
.video-facade:hover .play { transform: scale(1.1); }
.play .icon { width: 26px; height: 26px; margin-left: 3px; }

/* Lightbox (visionneuse) */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 56px 12px; background: rgba(8, 10, 20, .94); animation: fadeIn .3s var(--ease); }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: 100%; }
.lightbox img { max-height: 80vh; width: auto; border-radius: var(--r-sm); animation: lbIn .5s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: .9rem; text-align: center; }
.lb-count { position: absolute; top: 18px; left: 20px; color: rgba(255, 255, 255, .7); font: 500 .8rem/1 var(--mono); }
.lb-close, .lb-prev, .lb-next { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.4rem; cursor: pointer; transition: background .25s, color .25s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #fff; color: var(--dark); }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-prev[hidden], .lb-next[hidden] { display: none; }

/* --- Compétition --- */
.team-card { position: relative; display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
.team-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.team-card .num { font-size: .72rem; color: var(--muted); }
.team-card strong { font: 800 2.2rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.team-card .muted { font-size: .9rem; }
.team-shield { display: none; }
.team-record { display: flex; gap: 6px; margin-top: var(--s-2); }
.team-record span { flex: 1; display: grid; gap: 2px; padding: 10px; border-radius: var(--r-sm); background: var(--paper); text-align: center; font: 500 .66rem/1 var(--mono); text-transform: uppercase; color: var(--muted); }
.team-record b { font: 800 1.5rem/1 var(--display); font-stretch: 75%; color: var(--ink); }
.team-record .w b { color: var(--success); } .team-record .l b { color: var(--danger); }
.roster { list-style: none; margin: 0; padding: 0; }
.roster li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.gender { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 500 .68rem/1 var(--mono); background: var(--paper); }
.gender-f { background: #fde7ef; color: #b4235a; } .gender-h { background: #e6ecfd; color: var(--primary); }
.ranks { margin-left: auto; display: flex; gap: 4px; }
.rank { display: inline-block; min-width: 36px; padding: 4px 6px; border-radius: 6px; text-align: center; font: 500 .72rem/1 var(--mono); background: var(--paper); color: var(--ink-2); }
.rank-n { background: #1c1c1c; color: #fff; } .rank-r { background: #fde7e5; color: #a61b12; }
.rank-d { background: #e6ecfd; color: #1e3a8a; } .rank-p { background: #e7f6ef; color: #0b5d40; }
.rank.is-current { outline: 1.5px solid currentColor; }

/* Classement (tableau) */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.ranking { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.ranking th { padding: 14px 16px; text-align: left; font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.ranking td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ranking tr:last-child td { border-bottom: 0; }
.ranking tbody tr { transition: background .2s; }
.ranking tbody tr:hover { background: var(--paper); }
.ranking .pos { font: 500 .85rem/1 var(--mono); color: var(--muted); width: 48px; }
.ranking .num { text-align: right; }

/* --- Agenda (calendrier mensuel) --- */
.agenda-layout { display: grid; gap: var(--s-7); }
@media (min-width: 1100px) { .agenda-layout { grid-template-columns: 1.5fr 1fr; gap: var(--s-8); align-items: start; } }
.calendar-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.calendar-head h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.calendar-head .round-btn { width: 40px; height: 40px; border-color: var(--line-strong); }
.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th { padding: 10px 4px; font: 500 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.calendar td { height: 64px; padding: 6px; vertical-align: top; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar td:first-child { border-left: 0; }
.calendar td.out { background: color-mix(in srgb, var(--paper) 60%, transparent); color: var(--muted); }
.day-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 500 .8rem/1 var(--mono); }
.calendar td.today .day-num { background: var(--accent); color: var(--dark); font-weight: 600; }
.cal-item { display: block; margin-top: 3px; padding: 3px 6px; border-radius: 5px; font-size: .7rem; line-height: 1.25; text-decoration: none; background: color-mix(in srgb, var(--tag, var(--primary)) 12%, transparent); color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-left: 2px solid var(--tag, var(--primary)); }
.cal-item:hover { background: color-mix(in srgb, var(--tag, var(--primary)) 22%, transparent); }
.cal-item::before { display: none; }
.cal-time { font-family: var(--mono); opacity: .7; }
.cal-more { display: block; font: 500 .66rem/1 var(--mono); color: var(--muted); margin-top: 4px; }
@media (max-width: 639px) {
    .calendar td { height: 48px; padding: 3px; }
    .cal-item { font-size: 0; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--tag, var(--primary)); }
    .cal-item .cal-time { display: none; }
    .cal-more { display: none; }
}
.event-facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: var(--s-6); }
.event-facts > div { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.event-facts .icon { color: var(--primary); margin-top: 2px; }
.event-facts strong { display: block; font: 500 .7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.aside-poster { display: block; border-radius: var(--r-lg); overflow: hidden; }

/* 10. FORMULAIRES ========================================================= */
.form-layout { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .form-layout { grid-template-columns: .85fr 1.15fr; gap: var(--s-9); align-items: start; } }
.form-card { padding: clamp(20px, 4vw, 40px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.form-grid { display: grid; gap: var(--s-5) var(--s-4); margin-bottom: var(--s-6); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--ink); }
.field label small { color: var(--muted); font-weight: 400; }
.field input:not([type="checkbox"]), .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
    background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fff7f6; }
.field-error { color: var(--danger); font-size: .84rem; }
.checkbox label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; color: var(--ink-2); font-size: .9rem; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }
.contact-info { display: grid; align-content: start; }
.info-item { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.info-item:last-of-type { border-bottom: 1px solid var(--line); }
.info-item > .icon { color: var(--primary); margin-top: 3px; }
.info-item strong { display: block; font: 500 .7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.info-item p { margin: 0; font-size: 1.05rem; }
.info-item a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease); }
.info-item a:hover { background-size: 0 1px; background-position: 100% 100%; }
.big-contact { display: block; font: 800 clamp(1.8rem, 6vw, 2.6rem)/1 var(--display); font-stretch: 75%; text-decoration: none; margin: var(--s-2) 0; }
.big-contact:hover { color: var(--primary); }
.socials { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.socials .icon { width: 18px; height: 18px; }

/* 11. PIED DE PAGE ======================================================== */
.newsletter-band { padding-block: var(--section) 0; }
.newsletter-card { display: grid; gap: var(--s-5); padding: clamp(28px, 6vw, 64px); border-radius: var(--r-lg); background: var(--primary); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.newsletter-card::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid color-mix(in srgb, var(--accent) 85%, transparent); z-index: -1; opacity: .9; }
.newsletter-card h2 { color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 var(--s-3); max-width: 14ch; }
.newsletter-card p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 48ch; }
.newsletter-logo, .newsletter-deco { display: none; }
.newsletter-form { display: grid; gap: var(--s-2); margin-top: var(--s-5); max-width: 520px; }
.newsletter-form input { min-height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; }
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .7); }
.newsletter-form input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .16); }
.newsletter-form .btn { --btn-bg: var(--accent); --btn-fg: var(--dark); --btn-hover: #fff; min-height: 54px; }
.fine { font-size: .8rem; margin-top: var(--s-3) !important; }
.fine a { color: #fff; }
@media (min-width: 640px) { .newsletter-form { grid-template-columns: 1fr auto; } }

.site-footer { margin-top: var(--section); padding: var(--s-8) 0 var(--s-5); background: var(--dark); color: rgba(255, 255, 255, .72); font-size: .94rem; }
.footer-top { display: grid; gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-claim { margin: 0; font: 800 clamp(2.6rem, 10vw, 6.5rem)/.9 var(--display); font-stretch: 75%; text-transform: uppercase; color: #fff; letter-spacing: -.01em; }
.footer-claim em { font-style: normal; color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-5); padding-block: var(--s-7); }
.footer-grid h3 { margin: 0 0 var(--s-4); font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .25s; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand { color: #fff; margin-bottom: var(--s-4); }
.footer-brand address { font-style: normal; line-height: 1.7; }
.footer-bottom { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .5); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (min-width: 900px) {
    .footer-top { grid-template-columns: 1fr auto; align-items: end; }
    .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
    .footer-brand { grid-column: auto; }
    .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}
.back-to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--dark); color: #fff; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s, transform .5s var(--ease), visibility 0s .4s, background .25s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .5s var(--ease), background .25s; }
.back-to-top:hover { background: var(--primary); }
.back-to-top .icon { width: 18px; height: 18px; }

/* Page d'erreur */
.error-page { padding-block: var(--s-10); }
.error-code { margin: 0; font: 800 clamp(7rem, 30vw, 14rem)/.8 var(--display); font-stretch: 75%; color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* 12. ANIMATIONS ========================================================== */
/*
 * Les éléments .reveal apparaissent quand ils entrent dans l'écran (IntersectionObserver
 * dans app.js). Sans JavaScript, ou avec « réduire les animations », tout reste visible.
 */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
    .js .reveal.is-visible { opacity: 1; transform: none; }

    /* Image qui se « découvre » de bas en haut */
    /* Le masque est posé sur l'image et non sur le bloc observé : un élément entièrement
       découpé par clip-path n'est jamais signalé « visible » par IntersectionObserver (Chrome). */
    .js .reveal-img :is(img, iframe) { clip-path: inset(100% 0 0 0); transform: scale(1.12);
        transition: clip-path .85s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
    .js .reveal-img.is-visible :is(img, iframe) { clip-path: inset(0); transform: none; }

    /* Titres découpés en mots qui montent (data-split) */
    .split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
    .split-word > span { display: inline-block; transform: translateY(105%); transition: transform .7s var(--ease); transition-delay: calc(var(--w, 0) * 35ms + 40ms); }
    .is-visible .split-word > span, .split-word.is-visible > span { transform: none; }

    /* Ligne qui se trace sous les en-têtes de section */
    .js .draw-line { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
    .js .draw-line.is-visible { transform: none; }

    /* Parallaxe douce pilotée par le défilement (navigateurs compatibles) */
    @supports (animation-timeline: view()) {
        .parallax { animation: parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
        @keyframes parallax { from { transform: translateY(-6%) scale(1.12); } to { transform: translateY(6%) scale(1.12); } }
    }

    /* Transition fluide entre les pages (API View Transitions, navigateurs compatibles) */
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: vtOut .18s ease-out both; }
    ::view-transition-new(root) { animation: vtIn .3s var(--ease) both; }
    @keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
    @keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }
    .site-header { view-transition-name: site-header; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 12 bis. BOUTIQUE ========================================================
   Vitrine sans panier : la fiche produit n'a pas de bouton, c'est le bloc
   « Commander » qui porte l'action, vers une personne. La photo est carrée et
   posée sur du papier, les produits arrivant sur fond clair chez les
   fournisseurs. ========================================================== */
.shop-group + .shop-group { margin-top: clamp(40px, 6vw, 72px); }
.product-card { display: grid; align-content: start; gap: var(--s-4); }
.product-photo { aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--line); }
.product-photo img { object-fit: contain; padding: clamp(14px, 3vw, 28px); mix-blend-mode: multiply; }
.product-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.product-noimg .icon { width: 38px; height: 38px; }
.product-body { display: grid; gap: 8px; }
.product-body h3 { margin: 0; font: 600 1.05rem/1.3 var(--font); letter-spacing: -.01em; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0; }
.product-price strong { font: 800 1.5rem/1 var(--display); font-stretch: 75%; letter-spacing: -.01em; }
.product-price span { font: 500 .74rem/1 var(--mono); color: var(--muted); }
.product-desc { margin: 0; font-size: .94rem; color: var(--ink-2); }
.product-variants { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font: 500 .74rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.product-variants .icon { width: 14px; height: 14px; flex: none; }

/* Bloc « Commander » : le seul endroit où l'on agit */
.shop-order { display: grid; gap: var(--s-6); margin-top: clamp(40px, 6vw, 72px); padding: clamp(28px, 5vw, 48px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.shop-order h2 { margin: 0 0 var(--s-3); font-size: clamp(1.6rem, 4vw, 2.2rem); }
.shop-order > div > p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.shop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.shop-referent { display: grid; align-content: center; gap: var(--s-3); }
.shop-referent .person { margin: 0; }
/* Portrait tenu en laisse : dans une colonne de 280 px, la vignette du bureau
   montait a 350 px de haut et volait la vedette au texte. */
.shop-referent .person-photo { max-width: 168px; margin-bottom: var(--s-2); }
.shop-referent-label { margin: 0; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* La colonne de droite n'existe que s'il y a un référent : sans lui, le bloc
   gardait une moitié vide. */
@media (min-width: 900px) { .shop-order:has(.shop-referent) { grid-template-columns: 1fr minmax(220px, 280px); align-items: center; } }

/* Bandeau du partenaire, en haut de la page : la même marque que le bloc du
   bas, réduite à une ligne. Lien vers sa boutique, rien d'autre. */
.partner-band {
    display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
    margin-top: clamp(24px, 4vw, 40px);
    padding: 14px clamp(18px, 3vw, 28px);
    border-radius: 999px;
    background-color: #0a4479;
    background-image: linear-gradient(110deg, #06294a 0%, #0a4479 55%, #14639f 100%);
    color: #fff; text-decoration: none;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.partner-band:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -24px rgba(10, 68, 121, .9); }
.partner-band-logo { width: 132px; height: auto; flex: none; }
.partner-band-name { font: 800 1.1rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.partner-band-text { flex: 1; min-width: 0; font: 500 .8rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
.partner-band .icon { flex: none; opacity: .8; }
@media (max-width: 520px) { .partner-band { border-radius: var(--r); } .partner-band-text { font-size: .72rem; } }

/* Magasin ouvert ou fermé à l'instant où la page s'affiche, calculé à partir
   des horaires repris de Google : aucun appel depuis le navigateur. */
.store-state { display: block; margin-bottom: 4px; color: rgba(255, 255, 255, .72); font-weight: 600; }
.store-state.is-open { color: #7ee2a8; }
.store-source { margin: 0; font-size: .74rem; line-height: 1.4; color: rgba(255, 255, 255, .5); }

/* Bloc partenaire équipementier, à ses couleurs : le bleu marine et le bleu ciel
   de son logo officiel. On ne se contente pas d'un lien : la carte de droite
   donne ce que l'on cherche vraiment — où aller, quand, et qui appeler. */
.shop-partner {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; gap: var(--s-6);
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--r-lg);
    /* Couleur de fond ET dégradé : la lueur au survol du site (data-glow) écrase
       l'image de fond, la couleur pleine garantit un bloc toujours lisible. */
    background-color: #0a4479;
    background-image: linear-gradient(120deg, #06294a 0%, #0a4479 55%, #14639f 100%);
    color: #fff;
}
.shop-partner::after {
    content: ""; position: absolute; z-index: -1; top: -45%; right: -12%;
    width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(54, 169, 225, .45), transparent 70%);
}
.shop-partner h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 var(--s-3); }
.shop-partner p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, .78); }
.shop-partner .eyebrow::before { background: #36a9e1; box-shadow: none; }
.shop-partner-note { display: flex; align-items: center; gap: 10px; margin-top: var(--s-4); color: var(--accent); font-size: .94rem; }
.shop-partner-note .icon { width: 18px; height: 18px; flex: none; }
.shop-partner-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0 var(--s-3); }
.shop-partner .fine { margin: 0; color: rgba(255, 255, 255, .5); font-size: .78rem; }

.shop-partner-card {
    display: grid; align-content: start; gap: var(--s-5);
    padding: var(--s-5); border-radius: var(--r);
    /* Panneau plus sombre que le fond : le texte blanc y garde un contraste
       confortable même sur la partie claire du dégradé. */
    background: rgba(4, 28, 52, .42); border: 1px solid rgba(255, 255, 255, .18);
}
.shop-partner-logo { width: min(220px, 100%); height: auto; }
.shop-partner-name { margin: 0; font: 800 clamp(1.6rem, 4vw, 2.2rem)/1 var(--display); font-stretch: 75%; text-transform: uppercase; color: #fff; }
.shop-store { display: grid; gap: var(--s-4); margin: 0; }
.shop-store > div { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.shop-store dt { color: #7fcdf2; }
.shop-store dt .icon { width: 18px; height: 18px; }
.shop-store dd { margin: 0; font-size: .92rem; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.shop-store dd strong { display: block; color: #fff; font-weight: 600; }
.shop-store dd a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.shop-store dd a:hover { color: #fff; border-color: #fff; }
@media (min-width: 900px) { .shop-partner { grid-template-columns: 1fr minmax(280px, 360px); align-items: center; } }

/* 13. IMPRESSION ========================================================== */
@media print {
    .site-header, .site-footer, .newsletter-band, .back-to-top, .alert-bar, .subnav, .share, .reading-progress { display: none !important; }
    body { background: #fff; }
    .page-hero { padding: 0 0 16px; }
    .reveal, .reveal-img, .reveal-img img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Nombre de colonnes du méga-menu (classe posée par le gabarit : pas de style inline, CSP oblige) */
.mega-inner.cols-1 { --cols: 1; }
.mega-inner.cols-2 { --cols: 2; }
.mega-inner.cols-3 { --cols: 3; }
@media (min-width: 1080px) { .mega-inner.cols-1 { grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); } }

/* Ajustements -------------------------------------------------------------- */
@media (max-width: 1079.98px) { .mega-inner.container { padding-inline: 0; } }
.site-footer { margin-top: 0; }
.newsletter-band { padding-bottom: var(--section); }
.section-spaced-sm { margin-top: var(--s-6); }
.lg-free { --c: var(--success); } .lg-youth { --c: #e8590c; } .lg-train { --c: var(--ink-2); }
.big-contact-sm { font-size: clamp(1.3rem, 4.6vw, 1.9rem); word-break: break-all; }
.select-bare { border: 0; background: transparent; font: inherit; padding: 10px 4px; color: inherit; cursor: pointer; }
.filter-pills-group { display: grid; gap: var(--s-2); min-width: 0; }
.form-card > .h3 { margin-bottom: var(--s-2); }
.form-card > .muted { margin-bottom: var(--s-5); font-size: .95rem; }
.join-content h2 { font-size: clamp(2.2rem, 6.4vw, 4.2rem); }
.error-page h1 { margin-top: var(--s-5); }
.path-steps .path-step ol strong { color: var(--ink); }
.link-light .icon, .link-light { color: var(--accent); }
/* Les éléments de grille ne doivent jamais élargir leur colonne (textes longs, pastilles) */
.today-grid > *, .featured-grid > *, .join-grid > *, .form-layout > *, .article-layout > *, .agenda-layout > *, .venue > *, .grid > *, .paths > *, .pricing > *, .path-steps > *, .week > * { min-width: 0; }
.today-head { flex-wrap: wrap; align-items: flex-start; }
.newsletter-card::after { right: -110px; top: -110px; bottom: auto; width: 240px; height: 240px; border-width: 32px; }
@media (min-width: 900px) { .newsletter-card::after { top: auto; bottom: -90px; right: -40px; width: 320px; height: 320px; border-width: 44px; } }
@media (min-width: 960px) { .hero-grid { padding-bottom: calc(var(--s-8) + 40px); } }
.card-meta { font-size: .68rem; }
/* Mosaïque : mise en page adaptée au nombre de photos (évite les trous) */
@media (min-width: 800px) {
    .mosaic:has(> :last-child:nth-child(1)) { grid-template-columns: 1fr; grid-auto-rows: 420px; }
    .mosaic:has(> :last-child:nth-child(2)) { grid-template-columns: 1fr 1fr; grid-auto-rows: 360px; }
    .mosaic:has(> :last-child:nth-child(3)) { grid-template-columns: 2fr 1fr; }
    .mosaic:has(> :last-child:nth-child(3)) .mosaic-item:nth-child(1) { grid-column: auto; }
    .mosaic:has(> :last-child:nth-child(-n+2)) .mosaic-item:nth-child(1) { grid-column: auto; grid-row: auto; }
    .mosaic:has(> :last-child:nth-child(4)) .mosaic-item:nth-child(2) { grid-column: span 2; }
}
.day { align-content: start; }
.slot { grid-template-columns: 118px 1fr; }
.slot-time, .today-slots .num { white-space: nowrap; font-size: .8rem; }
@media (min-width: 1200px) { .slot { grid-template-columns: 1fr; } }
.newsletter-band { padding-top: 0; }
.slot-venue { display: inline-flex; align-items: center; gap: 4px; color: var(--primary) !important; font-weight: 500; }

/* Vie : micro-interactions ------------------------------------------------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    /* Inclinaison 3D douce qui suit la souris */
    [data-tilt]:not(.reveal), .js [data-tilt].reveal.is-visible { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), opacity .55s var(--ease), border-color .3s; }
    .js .price-card[data-tilt].reveal.is-visible:hover, .js .team-card[data-tilt].reveal.is-visible:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
    /* Boutons « aimantés » : suivent légèrement le curseur */
    .btn-lg, .nav-cta { translate: var(--mx, 0px) var(--my, 0px); transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), translate .45s var(--ease); }
    /* Halo lumineux sous le curseur (cartes sombres) */
    [data-glow] { background-image: radial-gradient(420px circle at var(--gx, -600px) var(--gy, -600px), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); }
}
/* Créneau en cours : barre de progression */
.today-slots li { position: relative; }
.today-slots li.is-now::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--progress, 0) * 100%); background: var(--success); transition: width 1s var(--ease); }

/* Bandeau défilant « ligne de fond de court » */
.ticker { padding-block: var(--s-5); border-block: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.ticker .marquee-track { gap: var(--s-6); align-items: center; }
.ticker span { font: 800 clamp(2.4rem, 8vw, 5.5rem)/1 var(--display); font-stretch: 75%; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.ticker span.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.ticker .icon { width: clamp(28px, 4vw, 48px); height: clamp(28px, 4vw, 48px); color: var(--accent); flex-shrink: 0; }
.ticker.marquee { mask-image: none; }
@media (prefers-reduced-motion: no-preference) { .ticker.is-ready .marquee-track { animation-duration: var(--marquee-dur, 40s); } }

/* ---------- Comptes rendus (archives PDF) ---------- */
.reports { display: grid; gap: var(--s-7); }
.reports-col { min-width: 0; }
.reports-col .h3 { margin-bottom: var(--s-2); }
.reports-col .doc-list { margin-top: var(--s-5); }
@media (min-width: 900px) {
    .reports { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}

/* ---------- Interclubs (données IcBad) ---------- */
.note-info { margin: 0 0 var(--s-6); padding: var(--s-4) var(--s-5); border: 0; border-radius: var(--r); background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--ink); }
.source-note { margin: var(--s-6) 0 0; font-size: .82rem; color: var(--muted); }
.source-note .icon { vertical-align: -2px; margin-right: 4px; }
.source-note a { color: var(--ink); }
.section-head-gap { margin-top: var(--s-8); }

.team-division { font: 500 .7rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.team-place { display: flex; align-items: baseline; gap: 8px; }
.team-place b { font: 800 1.6rem/1 var(--display); font-stretch: 75%; color: var(--primary); }
.team-place.is-first b { color: var(--success); }
.team-place sup { font-size: .55em; }
.team-place span { font-size: .85rem; color: var(--muted); }

.match-link { position: absolute; inset: 0; border-radius: inherit; }
.match-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.standings { min-width: 0; }
.standings th, .standings td { padding-inline: 10px; }
.standings .num { text-align: center; width: 1%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.standing-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.standing-team img, .standing-team .team-initials { flex-shrink: 0; width: 28px; height: 28px; padding: 2px; font-size: .7rem; }
.standings tr.is-club td { background: color-mix(in srgb, var(--primary) 8%, transparent); font-weight: 600; }
.standings tr.is-club .pos { color: var(--primary); }
.standings tr.zone-up .pos { box-shadow: inset 3px 0 var(--success); }
.standings tr.zone-down .pos { box-shadow: inset 3px 0 var(--danger); }
@media (max-width: 599px) { .hide-sm { display: none; } }

.discipline-stats { display: grid; gap: var(--s-3); }
.discipline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s-4); align-items: center; }
.discipline-name { display: flex; gap: 10px; align-items: baseline; font-size: .92rem; color: var(--ink-2); }
.discipline-name b { font: 500 .75rem/1 var(--mono); color: var(--ink); min-width: 24px; }
.discipline-score { grid-row: 1; grid-column: 2; font: 500 .85rem/1 var(--mono); }
.discipline-bar { grid-column: 1 / -1; width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; background: color-mix(in srgb, var(--danger) 22%, var(--paper)); }
.discipline-bar::-webkit-progress-bar { background: color-mix(in srgb, var(--danger) 22%, var(--paper)); }
.discipline-bar::-webkit-progress-value { background: var(--success); border-radius: 99px; }
.discipline-bar::-moz-progress-bar { background: var(--success); border-radius: 99px; }

.roster-name { display: grid; min-width: 0; line-height: 1.3; }
.roster-name small { font-size: .75rem; color: var(--muted); }
.captain { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; background: var(--accent); color: var(--dark); font: 700 .62rem/1 var(--mono); text-decoration: none; vertical-align: 1px; }
.aside-link { transition: border-color .3s; }
.aside-link:hover { border-color: var(--ink); }
.aside-link p { display: flex; align-items: center; gap: 6px; }
.small { font-size: .82rem; }

.encounter { display: grid; gap: var(--s-6); }
.encounter-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-3) var(--s-4); padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--dark); color: #fff; text-align: center; }
.encounter-team { font: 800 clamp(1.2rem, 4vw, 2.2rem)/1 var(--display); font-stretch: 75%; text-transform: uppercase; overflow-wrap: anywhere; opacity: .75; }
.encounter-team.is-club { opacity: 1; }
.encounter-score { display: flex; align-items: center; gap: 10px; font: 800 clamp(2.4rem, 8vw, 4.5rem)/1 var(--display); font-stretch: 75%; }
.encounter-score i { font-style: normal; opacity: .4; }
.encounter-head.is-win .encounter-score { color: var(--accent); }
.encounter-meta { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.encounter-meta strong { color: #fff; }
.games { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.game { display: grid; gap: 6px; padding: var(--s-4); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.game h3 { margin: 0 0 4px; font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.game-side { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); }
.game-side.is-winner { background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--ink); font-weight: 600; }
.game-players { display: grid; gap: 4px; min-width: 0; font-size: .9rem; }
.game-players .rank { min-width: 32px; margin-right: 4px; font-size: .66rem; padding: 3px 4px; }
.game-sets { display: flex; gap: 6px; font: 500 .9rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.game-sets b { min-width: 22px; text-align: right; font-weight: 500; }
.game-side.is-winner .game-sets b { font-weight: 700; }

/* ---------- Réseaux sociaux ---------- */
/* Au survol, la couleur de la marque remplit la pastille depuis le centre. */
.socials a { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; transition: border-color .3s, color .3s, transform .45s var(--ease); }
.socials a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--net, var(--primary)); transform: scale(0); transition: transform .45s var(--ease); }
.socials a .icon { transition: transform .45s var(--ease); }
.socials a:hover, .socials a:focus-visible { color: #fff; border-color: transparent; transform: translateY(-3px); }
.socials a:hover::before, .socials a:focus-visible::before { transform: scale(1); }
.socials a:hover .icon { transform: scale(1.12); }
.socials a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
/* Pied de page sombre : préfixe .footer-grid pour primer sur « .footer-grid a » (liens texte jaunes au survol) */
.footer-grid .socials a { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.footer-grid .socials a:hover, .footer-grid .socials a:focus-visible { color: #fff; border-color: transparent; }
.footer-grid .socials a:focus-visible { outline-color: var(--accent); }
.social-facebook { --net: #1877f2; }
.social-instagram { --net: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-youtube { --net: #ff0000; }
.social-tiktok { --net: #111; }
@media (prefers-reduced-motion: reduce) {
    .socials a, .socials a::before, .socials a .icon { transition: none; }
}

/* ---------- Case de consentement ---------- */
.checkbox label > span a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Accueil : albums suggérés ---------- */
.album-suggest { display: grid; gap: var(--s-4); margin: var(--s-6) 0 0; }
.album-suggest p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.album-suggest ul { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.album-chip { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
    transition: border-color .3s, transform .45s var(--ease); }
.album-chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.album-chip img { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.album-chip span { display: grid; min-width: 0; line-height: 1.25; }
.album-chip strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .92rem; font-weight: 600; }
.album-chip small { font-size: .75rem; color: var(--muted); }
.album-chip .icon { flex-shrink: 0; margin-left: auto; width: 16px; height: 16px; color: var(--muted); transition: transform .45s var(--ease), color .3s; }
.album-chip:hover .icon { color: var(--primary); transform: translate(2px, -2px); }
@media (min-width: 760px) {
    .album-suggest { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: center; gap: var(--s-6); }
    .album-suggest ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .album-suggest ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Boutons de formulaire : seule la couleur s'anime ---------- */
form .btn, form .btn:active { translate: none; transform: none; }
form .btn:hover .icon, form .btn:hover .icon-diag { transform: none; }

/* Joueur licencié dans un autre club (équipe PromoBaD multi-clubs) */
.roster-name small.roster-club { color: var(--primary); font-weight: 500; }
.roster .gender { flex-shrink: 0; }

/* Agenda : rendez-vous sans fiche (agendas Google) */
.event-item .event-static { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
span.cal-item { cursor: default; }

/* ==========================================================================
   Zones sûres de l'iPhone (Dynamic Island, encoche, barre d'accueil)
   --inset-top vaut 0 dans Safari en portrait (la barre d'état ne fait pas partie de la page) ;
   il prend la hauteur du Dynamic Island quand le site est ouvert depuis l'écran d'accueil.
   En paysage, l'îlot passe sur le côté : les marges latérales s'élargissent.
   ========================================================================== */
:root { --inset-top: env(safe-area-inset-top, 0px); --inset-left: env(safe-area-inset-left, 0px); --inset-right: env(safe-area-inset-right, 0px); --inset-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: calc(var(--header-h) + var(--inset-top) + 24px); }
/* Le premier élément de la page réserve la place de l'îlot : le bandeau d'alerte s'il existe, sinon la page */
body { padding-top: var(--inset-top); }
body:has(> .alert-bar) { padding-top: 0; }
.alert-bar { padding-top: var(--inset-top); }
/* En-tête collé sous l'îlot ; une bande de même fond comble l'espace au-dessus quand on défile */
.site-header { top: var(--inset-top); }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--inset-top); background: var(--hd-bg); pointer-events: none; }
.site-header.is-hidden { transform: translateY(calc(-100% - var(--inset-top))); }
.nav-open .site-header.is-hidden, .mega-open .site-header.is-hidden { transform: none; }
.container { padding-left: max(var(--gutter), var(--inset-left)); padding-right: max(var(--gutter), var(--inset-right)); }
/* Accueil : la photo passe sous l'en-tête et sous l'îlot (plein écran) */
.hero { margin-top: calc(-1 * (var(--header-h) + var(--inset-top))); }
body:has(> .alert-bar) .hero { margin-top: calc(-1 * var(--header-h)); }
/* Éléments fixes : jamais sous l'îlot ni la barre d'accueil */
.nav-panel { padding-left: max(var(--gutter), var(--inset-left)); padding-right: max(var(--gutter), var(--inset-right)); }
.back-to-top { right: calc(16px + var(--inset-right)); }
.lightbox { padding: calc(56px + var(--inset-top)) calc(12px + var(--inset-right)) calc(56px + var(--inset-bottom)) calc(12px + var(--inset-left)); }
.lb-count { top: calc(18px + var(--inset-top)); left: calc(20px + var(--inset-left)); }
.lb-close { top: calc(10px + var(--inset-top)); right: calc(12px + var(--inset-right)); }
.lb-prev { left: calc(12px + var(--inset-left)); }
.lb-next { right: calc(12px + var(--inset-right)); }
.reading-progress { top: var(--inset-top); }
.skip-link:focus { top: calc(12px + var(--inset-top)); }

/* Partenaires juste sous le hero */
.partners-band { padding-block: var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); }
.partners-band .section-head { margin-bottom: var(--s-4); }

/* Images d'article agrandissables */
a.zoomable { position: relative; display: block; cursor: zoom-in; color: inherit; }
.prose a.zoomable { display: inline-block; max-width: 100%; }
.prose a.zoomable img { display: block; }
.prose a.zoomable::after, .article-cover::after { display: none; }
.zoom-hint { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(11, 15, 30, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .4s var(--ease), background .3s; }
.zoom-hint .icon { width: 18px; height: 18px; }
a.zoomable:hover .zoom-hint { transform: scale(1.08); background: var(--primary); }

/* Équipe jouant plusieurs phases (poule puis phase finale) */
.team-phases { display: grid; gap: 2px; margin-top: -4px; font: 500 .7rem/1.35 var(--mono); letter-spacing: .02em; color: var(--muted); }
.team-phases sup { font-size: .7em; }

/* Carrousel du hero : indicateurs + pause */
.hero-dots { position: absolute; right: max(var(--gutter), env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 2; display: flex; align-items: center; gap: 6px; }
.hero-dot { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot { --hero-delay: 6.5s; }
.hero-dot span { position: relative; display: block; width: 18px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .4); transition: width .5s var(--ease), background .3s; }
.hero-dot:hover span { background: rgba(255, 255, 255, .7); }
/* Barre de la photo en cours : piste plus longue, remplissage jaune qui progresse pendant l'affichage */
.hero-dot.is-active { width: 44px; }
.hero-dot.is-active span { width: 40px; background: rgba(255, 255, 255, .3); }
.hero-dot span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.hero-dot.is-active span::after { animation: heroProgress var(--hero-delay) linear forwards; }
.hero.is-paused .hero-dot.is-active span::after { animation-play-state: paused; }
.hero.is-static .hero-dot.is-active span::after { animation: none; transform: none; }
.hero.is-static .hero-pause { display: none; }
@keyframes heroProgress { to { transform: scaleX(1); } }
.hero-pause { display: grid; place-items: center; width: 32px; height: 32px; margin-left: 4px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(11, 15, 30, .35); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s; }
.hero-pause:hover { background: rgba(255, 255, 255, .18); }
.hero-pause .icon { width: 13px; height: 13px; }
.hero-dot:focus-visible, .hero-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (min-width: 900px) { .hero-dots { bottom: 26px; } }

/* En-tête mobile : logo seul (le lien garde son nom accessible via aria-label) */
@media (max-width: 767.98px) { .brand-text { display: none; } }

/* Mobile : bas du hero allégé — seule la photo en cours porte du jaune ; invitation à défiler blanche et discrète */
@media (max-width: 899.98px) {
    .hero-dots { gap: 2px; }
    .hero-dot { width: 22px; }
    .hero-dot span { width: 12px; height: 2px; }
    .hero-dot.is-active { width: 34px; }
    .hero-dot.is-active span { width: 28px; }
    .hero-pause { width: 28px; height: 28px; }
    .hero-pause .icon { width: 11px; height: 11px; }
    /* La bande du bas devient une ligne : l'invitation à défiler sur la marge gauche,
       les pastilles du diaporama à droite. La caler sur la marge plutôt qu'au centre
       évite tout chevauchement, quel que soit le nombre de photos du diaporama. */
    .hero-scroll { left: max(var(--gutter), env(safe-area-inset-left)); transform: none; }
    .hero-dots { bottom: calc(22px + env(safe-area-inset-bottom)); }
    .mouse-body { width: 22px; height: 35px; }
}

/* ==========================================================================
   Cookies : bandeau « cookie croqué », préférences, contenus externes
   ========================================================================== */
.cookie-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cookie-banner { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: flex-start; gap: 16px; width: min(440px, calc(100vw - 32px)); padding: 20px 20px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(11, 15, 30, .45); animation: cookieIn .7s var(--ease) both; }
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.cookie-art { flex-shrink: 0; width: 64px; height: 64px; overflow: visible; filter: drop-shadow(0 8px 10px rgba(122, 72, 26, .25)); animation: cookieWobble 4s var(--ease-in-out, ease-in-out) 1s infinite; transform-origin: 50% 55%; }
.cookie-art-sm { width: 48px; height: 48px; animation: none; }
@keyframes cookieWobble { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-8deg); } 92% { transform: rotate(6deg); } }
.cookie-art .crumb { transform-box: fill-box; transform-origin: center; animation: crumbFall 4s ease-in 1.2s infinite; }
.cookie-art .c2 { animation-delay: 1.35s; } .cookie-art .c3 { animation-delay: 1.5s; }
@keyframes crumbFall { 0%, 82% { transform: none; opacity: 1; } 96% { transform: translate(2px, 16px) rotate(40deg); opacity: 0; } 100% { opacity: 0; } }
.cookie-body { display: grid; gap: 8px; min-width: 0; }
.cookie-body h2 { margin: 0; font: 800 1.35rem/1.05 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; }
.cookie-body p { margin: 0; color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-more, .footer-link-btn { border: 0; background: none; padding: 4px 2px; font: 600 .86rem var(--font); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-more { flex-basis: 100%; text-align: left; }
.footer-link-btn { color: inherit; font-weight: inherit; font-size: inherit; text-decoration: none; padding: 0; }
.footer-link-btn:hover { text-decoration: underline; }
@media (max-width: 560px) {
    .cookie-banner { left: 8px; right: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 18px 16px 14px; gap: 12px; }
    .cookie-art { width: 52px; height: 52px; }
}
.cookie-open { overflow: hidden; }
.cookie-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(11, 15, 30, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .25s var(--ease); }
.cookie-modal[hidden] { display: none; }
.cookie-dialog { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; margin: 0; padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); animation: cookieIn .45s var(--ease); }
.cookie-dialog header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cookie-dialog header div { flex: 1; min-width: 0; }
.cookie-dialog h2 { margin: 0; font: 800 1.5rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.cookie-dialog header p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }
.cookie-close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.cookie-close:hover { background: var(--line); }
.cookie-options { display: grid; gap: 8px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.cookie-option > span:first-child { display: grid; gap: 3px; }
.cookie-option strong { font-size: .95rem; }
.cookie-option small { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.cookie-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cookie-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-switch > span { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong, #cfd2dc); transition: background .25s; }
.cookie-switch > span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.cookie-switch input:checked + span { background: var(--success, #0f9f6e); }
.cookie-switch input:checked + span::after { transform: translateX(18px); }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 3px; }
.cookie-switch em { font-style: normal; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.cookie-switch.is-locked > span { opacity: .6; }
.cookie-dialog footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cookie-dialog footer a { font-size: .84rem; color: var(--muted); }
.cookie-dialog footer div { display: flex; gap: 8px; }
@media (max-width: 560px) { .cookie-switch em { display: none; } .cookie-dialog footer div { width: 100%; } .cookie-dialog footer .btn { flex: 1; } }
/* Encart d'un contenu externe non encore autorisé */
.embed-gate { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; margin: 1.5em 0; padding: 20px; border-radius: var(--r); overflow: hidden; text-align: center;
    background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .08), transparent 60%), var(--dark); color: #fff; }
.map-card .embed-gate { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; background-color: #dfe3d8; background-image: linear-gradient(rgba(11, 15, 30, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 15, 30, .06) 1px, transparent 1px); background-size: 28px 28px; color: var(--ink); }
.gate-inner { display: grid; justify-items: center; gap: 10px; max-width: 360px; }
.gate-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--dark); }
.gate-inner p { margin: 0; display: grid; gap: 3px; font-size: .86rem; }
.gate-inner p span { opacity: .75; font-size: .8rem; }
.gate-always { border: 0; background: none; color: inherit; opacity: .75; font: 500 .78rem var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gate-always:hover { opacity: 1; }
.map-card .gate-inner .btn-dark { --btn-bg: var(--dark); }
@media (prefers-reduced-motion: reduce) { .cookie-art, .cookie-art .crumb { animation: none; } }
@media print { .cookie-banner, .cookie-modal { display: none !important; } }

/* ==========================================================================
   Grand écran : une seule feuille de papier
   L'en-tête est une plaque de papier pleine largeur ; c'est la photo qui est en
   retrait de 12 px, et ses deux angles hauts sont creusés dans la plaque, si
   bien que l'arrondi paraît appartenir à la photo. Le logo est centré, grand,
   entièrement contenu dans la plaque : plus aucune excroissance, donc plus
   aucun raccord à rattraper. Quand un menu s'ouvre, ce n'est pas une carte qui
   tombe sur la photo avec son ombre, c'est la feuille qui s'allonge : les
   angles creusés descendent avec elle et la photo garde ses coins ronds.
   Aucune ombre portée tant qu'il y a une photo derrière — une ombre sur une
   image sombre ne fait jamais qu'une bavure grise.
   --tab vaut 1 en haut de page, 0 une fois défilé ; le logo se resserre avec.
   En dessous de 1280 px, le logo reste à gauche dans un bandeau classique.
   ========================================================================== */
@media (min-width: 1280px) {
    :root {
        --frame: 12px; --header-h: 112px;
        /* Retrait commun a tout ce que porte la feuille : au-dela de la largeur
           utile du site, il grandit au lieu que le contenu file vers les bords.
           Il tombe exactement sur la gouttiere du hero et des pages. */
        --edge: max(calc(var(--frame) + var(--gutter)), calc((100% - var(--container)) / 2));
    }

    /* La photo suit la plaque, encadrée sur les trois autres côtés */
    .hero {
        margin: 0 var(--frame) var(--frame);
        border-radius: 30px;
        min-height: calc(100vh - var(--hero-offset, 0px) - var(--header-h) - var(--frame));
        min-height: calc(100svh - var(--hero-offset, 0px) - var(--header-h) - var(--frame));
    }
    body:has(> .alert-bar) .hero { margin-top: 0; }
    /* Le texte du hero n'a plus à se glisser sous l'en-tête */
    .hero-grid { padding-top: calc(var(--inset-top, 0px) + 40px); }

    .site-header {
        --tab: 0;
        /* Le logo respire en haut de page et se resserre au défilement. Il est
           posé en absolu : sa taille ne déplace jamais rien autour de lui. */
        --logo-size: calc(72px + var(--tab) * 24px);
        background: none; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
    }
    .site-header::before { display: none; }
    /* Une seule ombre, portée par la plaque : celle de l'en-tête se superposait
       à la sienne et faisait une bavure grise sous la barre. */
    .site-header.is-scrolled { box-shadow: none; }
    /* Plus d'en-tête transparent : la plaque est toujours là, le texte toujours noir */
    .has-hero:not(.nav-open):not(.mega-open) .site-header:not(.is-scrolled) { --hd-fg: var(--ink); --tab: 1; }

    /* La plaque va d'un bord à l'autre de l'écran : en retrait, son ombre
       s'arrêtait net à 12 px des bords et dessinait deux extrémités visibles.
       Ce qu'elle porte, en revanche, s'aligne sur le contenu du hero. */
    .navbar {
        position: relative; height: var(--header-h);
        width: auto; max-width: none; margin-inline: 0;
        padding-inline: var(--edge);
        background: var(--paper);
        box-shadow: 0 0 0 0 rgba(11, 15, 30, 0);
        transition: box-shadow .4s var(--ease);
    }
    .site-header.is-scrolled .navbar { box-shadow: 0 16px 32px -26px rgba(11, 15, 30, .4); }

    /* Les deux angles du bas sont creusés dans le papier au lieu d'être arrondis
       sur la plaque : c'est la photo qui paraît avoir les coins arrondis, et elle
       garde cet arrondi en défilant puisqu'il est dessiné par l'en-tête. */
    .navbar::before, .navbar::after {
        content: ""; position: absolute; top: 100%; width: 30px; height: 30px; z-index: 1;
    }
    .navbar::before { left: var(--frame); background: radial-gradient(circle farthest-side at 100% 100%, #0000 99%, var(--paper) 100%); }
    .navbar::after { right: var(--frame); background: radial-gradient(circle farthest-side at 0 100%, #0000 99%, var(--paper) 100%); }
    /* Passé le hero (ou sans photo), plus rien à arrondir : les angles
       disparaissent, sinon ils découperaient l'ombre en deux extrémités. */
    .past-hero .navbar::before, .past-hero .navbar::after { display: none; }

    /* Le logo, centré et large, entièrement dans la plaque */
    .navbar .brand {
        position: absolute; left: 50%; top: 50%; z-index: 2;
        margin: 0; transform: translate(-50%, -50%); pointer-events: none;
    }
    .navbar .brand-text { display: none; }
    .navbar .brand img {
        width: var(--logo-size); height: var(--logo-size);
        padding: 0; background: none; box-shadow: none; border-radius: 0;
        pointer-events: auto;
        transition: width .35s var(--ease), height .35s var(--ease);
    }

    /* La carte reste dans le cadre de la photo et ne dépasse jamais la largeur
       utile du hero : au-delà, elle se centre au lieu de s'étirer d'un bord à
       l'autre, et ses colonnes tombent sur le texte du hero. */
    .mega { z-index: 3; left: var(--frame); right: var(--frame); }
    /* Menu ouvert : la barre lâche son ombre. Elle passait dans l'écart entre la
       barre et la carte, ce qui faisait une ligne sombre en travers. */
    .mega-open .site-header.is-scrolled .navbar { box-shadow: none; }

    /* Le pied de page reprend le cadre du hero */
    .site-footer { margin: 0 var(--frame) var(--frame); border-radius: 30px; overflow: hidden; }

    /* Le menu se partage de part et d'autre du logo. Le retrait est porté par la
       plaque seule : la pastille de survol déborde de 14 px à gauche pour que le
       texte des entrées tombe sur celui du hero, et le bouton de droite s'arrête
       pile au bord du contenu. */
    .nav-panel { flex: 1; min-width: 0; padding-inline: 0; }
    .nav-list { width: 100%; margin-left: -14px; }
    .nav-item:nth-child(4) { margin-left: auto; }
}

/* Mouvement réduit : tout se met en place sans animation */
@media (prefers-reduced-motion: reduce) {
    .navbar .brand img, .mega { transition: none; }
}
