/* =====================================================================================================================
   FSG Montreux — site public (chargé après base.css)
   ---------------------------------------------------------------------------------------------------------------------
    1. Mise en page générale (taille du texte, pleine largeur, sections)
    2. Menu principal
    3. Pied de page et annonce du club
    4. Éléments communs (titres de section, cartes, filtres, listes de documents, apparition au défilement)
    5. Accueil : header, sponsors, news « À la une », « Ce jour-là », agenda en frise, groupes, comité
    6. Pages : news, agenda, résultats / PV / MIG / liens, photos, historique, contact, protection des données,
       soutenir le club, pages d'erreur
    7. Écrans tactiles, moins d'animations, contraste élevé
    8. Mode sombre
    9. Impression
   ===================================================================================================================== */


/* =====================================================================================================================
   1. Mise en page générale
   ===================================================================================================================== */

/* Tout le site est dimensionné en rem : en grossissant la taille de base, textes, titres, cartes et colonnes grandissent
   ensemble. 17 px sur téléphone, 18 px sur ordinateur, 19 px sur grand écran. En pourcentage, pour que le réglage de
   taille du navigateur de chacun continue de s'appliquer par-dessus. */
html.site { font-size: 106.25%; }
@media (min-width: 1200px) { html.site { font-size: 112.5%; } }
@media (min-width: 1600px) { html.site { font-size: 118.75%; } }

/* Les liens vers une section ne finissent pas cachés sous la barre de navigation fixe. */
html { scroll-padding-top: 80px; }
#main:focus { outline: none; }

/* Pleine largeur : la marge latérale grandit avec la fenêtre (16 px sur téléphone, jusqu'à 64 px sur grand écran) ;
   les listes passent sur plusieurs colonnes au lieu de s'étirer, les textes longs gardent une largeur de lecture. */
:root { --gutter: clamp(16px, 4vw, 64px); }
html.site .container { max-width: none; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Colonne « 4 par rangée » pour les très grands écrans (Bootstrap 4 s'arrête à 1200 px). */
@media (min-width: 1600px) { .col-wide-3 { flex: 0 0 25%; max-width: 25%; } }

/* Sections de l'accueil et pages intérieures */
.projects-section { padding: 10rem 0; }
@media (max-width: 767.98px) { .projects-section { padding: 6rem 0; } }
.page-section { padding: 130px 0 90px; }
.page-section h1 { color: var(--navy); }
.page-lead { color: var(--muted); font-size: 1.0625rem; margin-top: 16px; }
.page-subtitle { font-family: var(--font-label); font-size: 1.375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin: 34px 0 14px; }
.page-top { padding-top: 140px; } /* page « Toutes les news » : la première section passe sous le menu fixe */
.empty-note { color: var(--muted); text-align: center; padding: 24px 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-label); font-weight: 700; font-size: 0.9375rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 20px; }
.back-link i { font-size: 0.75rem; }


/* =====================================================================================================================
   2. Menu principal
   ===================================================================================================================== */

#mainNav {
    min-height: 56px;
    background: var(--navy) !important;
    box-shadow: none !important;
    padding-top: 10px;
    padding-bottom: 10px;
}
#mainNav .navbar-brand { padding: 6px 0 !important; }
.brand-wordmark { display: block; height: 22px; width: auto; }
@media (min-width: 1200px) { .brand-wordmark { height: 26px; } }
#mainNav .nav-link {
    position: relative;
    color: rgba(255, 255, 255, .88) !important;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-bottom: none !important;
}
#mainNav .nav-link:hover, #mainNav .nav-link:focus, #mainNav .nav-link.active { color: #fff !important; text-decoration: none; }
#mainNav .dropdown-item.is-current { color: var(--red); font-weight: 700; }

/* Bouton Contact, toujours visible (page en cours = liseré blanc). */
.nav-cta {
    font-family: var(--font-label);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--red);
    border-radius: 3px;
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: background-color .15s ease, transform .1s ease;
}
.nav-cta:hover, .nav-cta:focus { background: var(--red-dark); color: #fff; text-decoration: none; }
.nav-cta:active { transform: translateY(1px); }
.nav-cta.is-current { box-shadow: inset 0 0 0 2px #fff; }
.nav-cta:focus { outline: none; }
.nav-cta:focus-visible { box-shadow: 0 0 0 3px #fff; }

/* ---- Ordinateur : entrées en ligne, soulignement rouge au survol et sur la page en cours ---- */
@media (min-width: 992px) {
    #mainNav { padding-top: 0; padding-bottom: 0; }
    #mainNav .nav-link { padding: 24px 14px !important; }
    #mainNav .nav-link::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 16px;
        height: 3px;
        background: var(--red);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform .2s ease;
    }
    #mainNav .nav-link:hover::after, #mainNav .nav-link.active::after,
    #mainNav .nav-link.is-current::after { transform: scaleX(1); }
    #mainNav .nav-link.is-current { color: #fff !important; }
    #mainNav .nav-item-cta { display: flex; align-items: center; margin-left: 10px; }

    /* « Le club » garde sa petite flèche (pas de soulignement). */
    #mainNav .dropdown-toggle::after {
        position: static;
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: .4em;
        vertical-align: .2em;
        background: none;
        transform: none;
        border-top: .35em solid currentColor;
        border-right: .35em solid transparent;
        border-left: .35em solid transparent;
        border-bottom: 0;
    }
    /* Le menu « Le club » s'ouvre depuis son bouton. */
    #mainNav .dropdown-menu {
        border: 1px solid var(--line);
        border-top: 3px solid var(--red);
        border-radius: 0 0 4px 4px;
        padding: 6px 0;
        margin-top: 0;
        box-shadow: none;
    }
    #mainNav .dropdown-menu.show { transform-origin: top right; animation: menu-in .22s var(--ease); }
    #mainNav .dropdown-item { font-weight: 600; font-size: 0.9375rem; color: var(--navy); padding: 9px 18px; }
    #mainNav .dropdown-item:hover, #mainNav .dropdown-item:focus { background: var(--paper-alt); color: var(--red); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* Entre 992 et 1199 px : entrées un peu resserrées pour que tout tienne sur une ligne. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #mainNav .nav-link { padding: 24px 8px !important; font-size: .9375rem; letter-spacing: .03em; }
    #mainNav .nav-item-cta { margin-left: 6px; }
}

/* ---- Téléphone et tablette : bouton « burger » et panneau flottant sous la barre ---- */
.navbar-toggler { border: none !important; padding: 10px !important; min-height: 44px; min-width: 44px; }
.navbar-toggler:focus { outline: none; box-shadow: none; }
.navbar-toggler:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 991.98px) {
    /* Le panneau descend du bouton et remonte par le même chemin. Transition CSS sur une classe : un second tap en plein
       mouvement le renverse depuis sa position actuelle. */
    #mainNav > .container { position: relative; }
    #navbarResponsive {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        background: var(--navy-dark);
        border-top: 3px solid var(--red);
        border-radius: 0 0 4px 4px;
        padding: 4px 6px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transform-origin: top right;
        transition: opacity .2s ease, transform .3s var(--ease), visibility 0s linear .3s;
    }
    #navbarResponsive.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .2s ease, transform .3s var(--ease), visibility 0s;
    }
    #mainNav .navbar-nav { width: 100%; }
    #mainNav .nav-item { border-bottom: 1px solid rgba(255, 255, 255, .1); }
    #mainNav .nav-item:last-child { border-bottom: none; }
    #mainNav .nav-link { padding: 14px 14px !important; font-size: 1.1875rem; }
    #mainNav .nav-link.is-current { color: #fff !important; box-shadow: inset 3px 0 0 var(--red); }
    #mainNav .nav-item-cta { padding: 10px 8px 8px; }
    #mainNav .nav-cta { display: block; text-align: center; }
    #mainNav .dropdown-menu { background: transparent; border: none; margin: 0 0 8px; padding: 0; }
    #mainNav .dropdown-item { color: rgba(255, 255, 255, .85); padding: 10px 28px; font-size: 1rem; }
    #mainNav .dropdown-item:hover, #mainNav .dropdown-item:focus { background: rgba(255, 255, 255, .08); color: #fff; }
    #mainNav .dropdown-item.is-current { color: #fff; box-shadow: inset 3px 0 0 var(--red); }
}


/* =====================================================================================================================
   3. Pied de page et annonce du club
   ===================================================================================================================== */

footer { padding: 5rem 0; }
footer.bg-black { background-color: var(--navy-dark) !important; color: rgba(255, 255, 255, .7) !important; }
footer a { color: rgba(255, 255, 255, .9); }
footer a:hover, footer a:focus { color: #fff; }
footer hr { border-color: rgba(255, 255, 255, .12); }
.footer-logo { display: block; width: 130px; height: auto; margin: 0 auto 22px; }
/* Réseaux sociaux : carrés de 44 px */
footer h2 { font-size: 0; margin-bottom: 8px; }
footer h2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1.125rem;
    transition: background-color .15s ease;
}
footer h2 a:hover { background: var(--red); color: #fff; text-decoration: none; }
/* Liens du bas : 44 px de haut au doigt */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 6px; }
.footer-links a, footer .container > a { display: inline-block; padding: 12px 6px; }

/* ---- Annonce du club (Admin > Infos du club), présentée comme une notification ----
   Petite carte en matériau translucide qui sort de sous le menu (en haut à droite sur ordinateur, en haut sur téléphone).
   Elle flotte au-dessus de la page sans rien déplacer, et repart par le même chemin. */
.site-notif {
    position: fixed; z-index: 1029; top: calc(var(--nav-h, 56px) + 12px);
    right: max(16px, calc((100vw - 1140px) / 2 + 15px)); width: min(380px, calc(100vw - 24px));
    padding: 8px 6px 12px 14px; border-radius: 18px;
    background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 14px 34px rgba(15, 13, 50, .28), 0 2px 6px rgba(15, 13, 50, .12);
    color: var(--ink); touch-action: none;
    animation: notif-in .5s cubic-bezier(.2, .9, .3, 1) .5s backwards;
    transition: transform .4s cubic-bezier(.2, .9, .3, 1), opacity .25s ease;
}
@media (min-width: 576px) { .site-notif { right: var(--gutter); } }
@media (max-width: 575.98px) { .site-notif { left: 12px; right: 12px; width: auto; } }
.site-notif[hidden] { display: none; }
.site-notif.is-dragging { transition: none; cursor: grabbing; }
.site-notif.is-leaving { transform: translateY(calc(-100% - 90px)) !important; opacity: 0; transition: transform .3s cubic-bezier(.4, 0, 1, 1), opacity .25s ease; }
@keyframes notif-in { from { transform: translateY(calc(-100% - 40px)); opacity: 0; } to { transform: none; opacity: 1; } }
.site-notif-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.site-notif-icon { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }
.site-notif-app { font-family: var(--font-label); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-notif-close { margin: -8px 0 -8px auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.375rem; line-height: 1; transition: background-color .15s ease, color .15s ease; }
.site-notif-close:hover { background: rgba(38, 34, 97, .08); color: var(--ink); }
.site-notif-close:active { transform: scale(.92); }
.site-notif-close:focus { outline: none; }
.site-notif-close:focus-visible { box-shadow: inset 0 0 0 3px var(--red); }
.site-notif-text { margin: 2px 10px 0 0; font-size: .9375rem; line-height: 1.4; font-weight: 500; color: var(--ink); }
.site-notif-text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }


/* =====================================================================================================================
   4. Éléments communs
   ===================================================================================================================== */

/* ---- Titres de section : lettrage collège + deux étoiles comme sur le logo ---- */
.section-title { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; line-height: 1.1; font-size: 2.5rem; color: var(--navy); }
.bg-primary .section-title, .bg-blue .section-title, .section-title.text-white { color: #fff !important; }
.section-title::after {
    content: "\2605\00a0\00a0\2605";
    display: block;
    margin-top: 14px;
    font-family: var(--font-text);
    font-size: 0.9375rem;
    letter-spacing: .3em;
    color: var(--red);
}
@media (max-width: 575.98px) { .section-title { font-size: 1.875rem; } }
@media (min-width: 1200px) { .section-title { font-size: 3rem; } }

/* ---- Cartes ---- */
.bg-primary .card, .bg-blue .card { border-color: transparent !important; }
/* Effet au survol, partout pareil : une bande rouge monte sous la carte (comme le bas d'un maillot). */
.album-card { transition: box-shadow .2s ease, border-color .2s ease; }
.album-card:hover, .album-card:focus { box-shadow: inset 0 -4px 0 var(--red); }

/* ---- Filtres : boutons « pastille », recherche et choix de l'année ---- */
.results-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; justify-content: center; }
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 18px;
    border-radius: 3px;
    font-family: var(--font-label);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pill:not(.active):hover { border-color: var(--navy); }
.pill.active { background: var(--red); border-color: var(--red); color: #fff; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.filter-search, .filter-year {
    height: 46px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background-color: #fff;
    color: var(--navy);
    font-family: var(--font-text);
    font-size: 0.9375rem;
    font-weight: 600;
    outline: none;
}
.filter-search {
    flex: 1;
    min-width: 220px;
    max-width: 480px;
    padding: 0 18px 0 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F5F70' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
}
.filter-year {
    -webkit-appearance: none;
    appearance: none;
    padding: 0 42px 0 18px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D7141C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.filter-search:focus, .filter-year:focus { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }

/* ---- Listes de documents : résultats, PV, Montreux Info Gym, liens ----
   Même construction que l'agenda : une seule colonne, une section par année (ou par catégorie pour les liens), le titre
   de la section à gauche (au-dessus sur téléphone), les documents en lignes à droite. Recherche et filtres en haut ;
   site.js masque les lignes et les sections qui ne correspondent plus. */
.doc-wrap { max-width: 60rem; margin: 0 auto; }
.doc-header { text-align: center; margin-bottom: 32px; }
.doc-header .page-lead { max-width: 36rem; margin: 10px auto 0; }
.doc-tools { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 28px; }
.doc-tools .filter-bar, .doc-tools .results-pills { margin: 0; }
.doc-tools .filter-bar { width: 100%; }
.doc-count { margin: 0; font-size: .9375rem; color: var(--muted); }

.doc-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.doc-group:first-child { border-top: 0; padding-top: 0; }
.doc-group-name { margin: 0; font-family: var(--font-label); font-size: 1.125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.doc-group-count { display: block; font-size: .875rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
@media (min-width: 768px) {
    .doc-group { grid-template-columns: 9.5rem minmax(0, 1fr); }
    .doc-group-name { padding-top: 14px; position: sticky; top: 90px; align-self: start; }
}
@media (max-width: 767.98px) {
    .doc-group-name { display: flex; align-items: baseline; gap: 10px; }
    .doc-group-count { display: inline; }
}
.doc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* Une ligne : un repère à gauche (date, mois ou icône), le titre et ses précisions, l'action à droite. */
.doc-row {
    display: flex; align-items: center; gap: 18px; padding: 10px 16px 10px 10px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-decoration: none;
    transition: border-color .15s ease, transform .2s var(--ease);
}
.doc-row:hover, .doc-row:focus-visible { border-color: var(--navy); color: var(--ink); text-decoration: none; transform: translateX(2px); }
.doc-row:focus { outline: none; }
.doc-row:focus-visible, .doc-row:target { box-shadow: 0 0 0 3px var(--red); }
.doc-row:target { scroll-margin-top: 110px; }
.doc-mark { flex: 0 0 4.5rem; width: 4.5rem; min-height: 3.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 0; border-radius: 6px; background: var(--paper-alt); text-align: center; }
.doc-mark-big { font-family: var(--font-display); font-size: 1.375rem; line-height: 1; color: var(--navy); }
.doc-mark-small { margin-top: 3px; font-family: var(--font-label); font-size: .8125rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--red); line-height: 1.1; }
.doc-mark-icon { font-size: 1.25rem; color: var(--red); }
.doc-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.doc-row-title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--navy); overflow-wrap: anywhere; }
.doc-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: .9375rem; color: var(--muted); line-height: 1.35; }
.doc-row-meta i { margin-right: 5px; color: var(--red); font-size: .8125rem; }
.doc-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--navy-bg, #262261); color: #fff; font-family: var(--font-label); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.doc-row-action { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-label); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .15s ease, transform .2s var(--ease); }
.doc-row:hover .doc-row-action { color: var(--red); }
.doc-row.is-link { padding: 12px 18px; }
.doc-host { font-size: .875rem; }
.doc-host i { color: var(--muted) !important; }
.doc-empty { text-align: center; color: var(--muted); padding: 24px 0; }
@media (max-width: 575.98px) {
    .doc-row { gap: 12px; padding: 9px 12px 9px 9px; }
    .doc-mark { flex-basis: 3.75rem; width: 3.75rem; }
    .doc-mark-big { font-size: 1.125rem; }
    .doc-row-action span { display: none; }
}

/* ---- Apparition au défilement (activée par site.js ; sans JavaScript, tout reste visible) ---- */
/* Les deux étoiles sous les titres s'écartent depuis le centre quand le titre arrive à l'écran. */
.reveal-on .section-title::after {
    opacity: 0;
    letter-spacing: -.35em;
    transition: opacity .35s ease .1s, letter-spacing .7s cubic-bezier(.2, .8, .2, 1) .1s;
}
.reveal-on .section-title.is-in::after { opacity: 1; letter-spacing: .3em; }
/* Cartes et lignes : elles se posent (légère montée), une à une, une seule fois. */
.reveal-on .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .45s ease var(--reveal-delay, 0s), transform .6s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0s), box-shadow .2s ease, border-color .2s ease;
}
.reveal-on .reveal.is-in { opacity: 1; transform: none; }


/* =====================================================================================================================
   5. Accueil
   ===================================================================================================================== */

/* ---- Header : logo interactif, slogan, boutons, compte à rebours ---- */
.home-hero {
    position: relative;
    height: auto;
    margin-top: 0; /* commence tout en haut, sous la barre de navigation (même marine) */
    min-height: 100vh;
    min-height: 100svh; /* hauteur stable sur mobile, même quand la barre d'adresse apparaît */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 126px 20px 78px;
    box-sizing: border-box;
    background: var(--navy);
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.home-hero .container { position: relative; z-index: 1; width: 100%; }
/* Bas du header : le marine du fond fait la première bande, suivie d'une bande blanche et d'une rouge. */
.home-hero .varsity-stripe { display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 16px; border-bottom: 8px solid var(--red); background: #fff; }
/* Header marine : bouton principal blanc, le rouge reste dans le logo. */
.home-hero .btn-primary { background-color: #fff !important; border-color: #fff !important; color: var(--navy) !important; }
.home-hero .btn-primary:hover, .home-hero .btn-primary:focus, .home-hero .btn-primary:active { background-color: #E4E4EE !important; border-color: #E4E4EE !important; color: var(--navy) !important; }

/* Le contenu se pose à l'arrivée (les éléments l'un après l'autre), puis s'efface doucement au défilement (home.js). */
.hero-content { position: relative; max-width: 720px; will-change: transform, opacity; }
.hero-content > * { animation: hero-in .7s cubic-bezier(.2, .8, .2, 1) backwards; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .22s; }
.hero-content > :nth-child(4) { animation-delay: .4s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }

/* Le logo tombe, se réceptionne (il s'écrase un peu sur ses « pieds ») et se stabilise. Il commence presque invisible
   (opacité 1 %) plutôt que totalement invisible, pour que le navigateur le compte comme affiché dès la première image
   (mesure « Largest Contentful Paint »). */
.hero-content > :first-child { transform-origin: 50% 100%; animation: hero-land .8s linear backwards; }
@keyframes hero-land {
    0%   { opacity: .01; transform: translateY(-70px) scale(.96, 1.05); animation-timing-function: cubic-bezier(.55, 0, .8, .4); }
    50%  { opacity: 1; transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
    64%  { transform: translateY(0) scale(1.07, .9); animation-timing-function: ease-out; }
    82%  { transform: translateY(0) scale(.985, 1.025); animation-timing-function: ease-in-out; }
    100% { transform: none; }
}
.hero-logo {
    width: 100%;
    max-width: 240px;
    height: auto;
    cursor: grab;
    touch-action: manipulation;
    will-change: transform;
    filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .3));
    -webkit-user-drag: none;
    user-select: none;
}
.hero-logo:active { cursor: grabbing; }
@media (min-width: 992px) { .hero-logo { max-width: 340px; } }
@media (min-width: 1200px) { .hero-logo { max-width: 420px; } }
@media (min-width: 1600px) { .hero-logo { max-width: 480px; } }

.hero-slogan {
    color: rgba(255, 255, 255, .85);
    font-family: var(--font-label);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin: 26px 0 28px;
    transition: opacity .2s ease;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Flèche vers le bas : zone de toucher de 44 × 44 px. */
.hero-arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 50%; color: rgba(255, 255, 255, .8); }
.hero-arrow:hover, .hero-arrow:focus { color: #fff; }

/* Filigrane « 1867 » (ajouté par home.js), comme un numéro de maillot coupé par le bas du header. */
.hero-bignum {
    position: absolute;
    left: 50%;
    bottom: -.18em;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(170px, 36vw, 560px);
    line-height: 1;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .07);
    pointer-events: none;
    user-select: none;
    will-change: transform;
    animation: bignum-in 1.2s ease .2s backwards;
}
@keyframes bignum-in { from { opacity: 0; } }

/* Nom de l'élément de gymnastique et note du jury : ils prennent un instant la place du slogan. */
.hero-content.is-scoring .hero-slogan { opacity: 0; }
.hero-move {
    position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; white-space: nowrap; animation: none;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-family: var(--font-label); font-size: 1.375rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff;
    opacity: 0; transform: translateY(6px);
}
.hero-move-score {
    display: inline-block; padding: 3px 12px; border-radius: 6px; background: var(--red); color: #fff;
    font-family: var(--font-display); font-size: 1.375rem; letter-spacing: .02em; line-height: 1.2;
}
.hero-move.is-shown { animation: hero-move 1.9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes hero-move {
    0%   { opacity: 0; transform: translateY(6px); }
    12%  { opacity: 1; transform: none; }
    82%  { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(-4px); }
}
@media (max-width: 575.98px) {
    .hero-move, .hero-move-score { font-size: 1.0625rem; }
    .hero-move { gap: 8px; letter-spacing: .06em; }
}

/* Compte à rebours : tableau d'affichage de concours, plaques blanches, chiffres qui basculent quand ils changent. */
.hero-countdown {
    display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; padding: 14px 20px 16px;
    border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none;
    transition: background-color .2s ease, transform .2s var(--ease);
}
.hero-countdown[hidden], .hero-countdown-board[hidden], .hero-countdown-today[hidden] { display: none; }
.hero-countdown:hover, .hero-countdown:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.hero-countdown:active { transform: scale(.98); }
.hero-countdown:focus { outline: none; }
.hero-countdown:focus-visible { box-shadow: 0 0 0 3px #fff; }
.hero-countdown-label { font-family: var(--font-label); font-size: .9375rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.hero-countdown-date { color: rgba(255, 255, 255, .65); font-weight: 600; }
.hero-countdown-board { display: flex; gap: 8px; }
.hero-countdown-today { font-family: var(--font-display); font-size: 1.75rem; color: #fff; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cd-num {
    position: relative; display: block; min-width: 2.3em; padding: 7px 8px 5px; border-radius: 6px; background: #fff; color: #262261;
    font-family: var(--font-display); font-size: 1.75rem; line-height: 1; text-align: center; font-variant-numeric: tabular-nums;
    box-shadow: inset 0 -2px 0 rgba(38, 34, 97, .12), 0 2px 0 rgba(0, 0, 0, .25); transform-origin: 50% 50%;
}
.cd-num::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(38, 34, 97, .14); }
.cd-num.is-flip { animation: cd-flip .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes cd-flip { from { transform: perspective(240px) rotateX(-75deg); opacity: .35; } to { transform: none; opacity: 1; } }
.cd-lbl { font-family: var(--font-label); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
@media (max-width: 575.98px) {
    .hero-countdown { margin-top: 20px; padding: 12px 14px 14px; }
    .cd-num { font-size: 1.375rem; min-width: 2.1em; }
}

/* ---- Sponsors : mur de logos ----
   Pas de cartes ni de plaque blanche : chaque logo est posé sur le fond de la section, à surface visuelle égale (taille
   calculée par logo_size), avec le nom discret dessous. En mode sombre, <picture> sert la version claire du logo. */
.sponsor-wall {
    list-style: none; margin: 36px auto 40px; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px clamp(24px, 5vw, 80px);
}
.sponsor-item { flex: 0 1 340px; min-width: 0; }
.sponsor-link {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px;
    padding: 20px 16px 16px; border-radius: 14px; text-decoration: none;
    transition: background-color .2s ease, transform .25s var(--ease);
}
.sponsor-link:hover, .sponsor-link:focus-visible { background: var(--paper-alt); text-decoration: none; transform: translateY(-2px); }
.sponsor-link:focus { outline: none; }
.sponsor-link:focus-visible { box-shadow: 0 0 0 3px var(--red); }
.sponsor-link:active { transform: scale(.98); }
.sponsor-logo { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 130px; width: 100%; }
.sponsor-logo img { max-width: 100%; height: auto; transition: transform .25s var(--ease); }
.sponsor-link:hover .sponsor-logo img { transform: scale(1.04); }
.sponsor-name {
    font-family: var(--font-label); font-size: .9375rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin: 0; text-align: center;
}
.sponsor-link:hover .sponsor-name { color: var(--navy); }
@media (max-width: 575.98px) {
    /* Une colonne : chaque nom suit son logo de près. */
    .sponsor-logo { min-height: 0; }
    .sponsor-wall { gap: 8px; margin-top: 24px; }
}

/* ---- News « À la une » ----
   La dernière en grand (image entière, posée sur sa propre version floutée qui remplit le cadre), les suivantes en liste.
   Sur ordinateur, la section fait la hauteur de l'écran et la colonne de droite affiche autant de news qu'il en tient
   (home.js masque celles du bas qui dépassent). */
.news-front { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 36px; }
.news-lead {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .25s var(--ease), box-shadow .25s ease;
}
.news-lead:hover, .news-lead:focus-visible { color: var(--ink); text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .32); }
.news-lead:focus { outline: none; }
.news-lead:focus-visible { box-shadow: 0 0 0 3px #fff, 0 16px 40px rgba(0, 0, 0, .32); }
.news-lead-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-dark); }
.news-lead-backdrop { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(28px) saturate(1.2) brightness(.8); }
.news-lead-img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.news-lead:hover .news-lead-img { transform: scale(1.02); }
.news-lead-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.news-lead-title { font-weight: 700; font-size: 1.75rem; line-height: 1.2; color: var(--navy); }
.news-lead-excerpt { color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }
.news-lead .news-read-more { margin-top: auto; }
.news-front-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-label); font-size: .9375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.news-new { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--red); color: #fff; font-size: .8125rem; letter-spacing: .08em; }

.news-side { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.news-side-item.is-extra { display: none; } /* téléphone et tablette : trois news sous la grande */
.news-side-more { margin-top: auto; padding-top: 8px; }
.news-side-more .btn { width: 100%; }

/* Ligne de news (colonne de droite de l'accueil, « À lire aussi » sur la page d'une news) */
.news-row {
    display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 10px; background: #fff;
    color: var(--ink); text-decoration: none; transition: transform .2s var(--ease);
}
.news-row:hover, .news-row:focus-visible { color: var(--ink); text-decoration: none; transform: translateX(3px); }
.news-row:focus { outline: none; }
.news-row:focus-visible { box-shadow: 0 0 0 3px #fff; }
/* L'image remplit la vignette sans jamais en imposer la hauteur (une affiche en hauteur étirait toute la ligne). */
.news-row-thumb { position: relative; flex: 0 0 auto; width: 120px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--paper-alt); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.5rem; }
.news-row-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.news-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.news-row-title { font-weight: 700; font-size: 1.125rem; line-height: 1.3; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row-excerpt { color: var(--muted); font-size: .9375rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row-arrow { flex-shrink: 0; color: var(--red); font-size: .875rem; transition: transform .2s var(--ease); }
.news-row:hover .news-row-arrow { transform: translateX(3px); }

@media (min-width: 992px) {
    .news-front { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; }
    #news { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 100px 0 40px; }
    #news > .container { flex: 1; display: flex; flex-direction: column; }
    #news .news-front { flex: 1 1 0; min-height: 520px; margin-top: 28px; grid-template-rows: minmax(0, 1fr); }
    .news-lead { min-height: 0; }
    .news-lead-media { aspect-ratio: auto; flex: 1 1 0; min-height: 200px; }
    .news-lead-body { flex: 0 0 auto; }
    .news-side { min-height: 0; overflow: hidden; }
    .news-side-item.is-extra { display: flex; }
    .news-side-item.is-hidden { display: none !important; }
    .news-side > .news-side-item { flex: 1 0 auto; display: flex; }
    .news-side .news-row { flex: 1; align-items: stretch; padding: 12px 20px 12px 12px; }
    .news-side .news-row-thumb { width: 34%; max-width: 200px; aspect-ratio: auto; min-height: 92px; }
    .news-side .news-row-body { justify-content: center; gap: 6px; }
    .news-side .news-row-title { font-size: 1.1875rem; }
    .news-side .news-row-arrow { align-self: center; }
    .news-side-more { flex: 0 0 auto; }
}
@media (max-width: 575.98px) {
    .news-lead-body { padding: 20px; }
    .news-lead-title { font-size: 1.375rem; }
    .news-row { gap: 12px; padding: 10px 14px 10px 10px; }
    .news-row-thumb { width: 88px; }
    .news-row-title { font-size: 1rem; }
}

/* ---- « Ce jour-là » ----
   Un tirage photo légèrement incliné (bord blanc, année écrite dessous), qui se redresse au survol. Teinte sépia légère
   pour les vieilles photos. */
.otd-section { background: var(--paper-alt); }
.otd { max-width: 64rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 768px) { .otd { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; } }
.otd-photo {
    position: relative; display: block; justify-self: center; width: min(100%, 420px); padding: 14px 14px 48px; border-radius: 4px; background: #fff;
    box-shadow: 0 18px 40px rgba(15, 13, 50, .18), 0 2px 6px rgba(15, 13, 50, .08); transform: rotate(-3deg);
    transition: transform .35s var(--ease), box-shadow .35s ease;
}
.otd-photo:hover { transform: rotate(0) scale(1.02); box-shadow: 0 24px 50px rgba(15, 13, 50, .22), 0 2px 6px rgba(15, 13, 50, .08); }
.otd-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; }
.otd-photo.is-old img { filter: sepia(.35) contrast(1.05); }
.otd-photo-year { position: absolute; left: 0; right: 0; bottom: 11px; text-align: center; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: #262261; }
.otd-kicker { font-family: var(--font-label); font-size: .9375rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0; }
.otd-when { font-size: 1.25rem; color: var(--muted); margin: 8px 0 4px; }
.otd-years { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--navy); vertical-align: -.08em; }
.otd-title { font-family: var(--font-text); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.01em; color: var(--navy); margin: 10px 0 6px; }
.otd-meta { font-family: var(--font-label); font-size: .9375rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.otd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.otd-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.otd-more i { font-size: .75rem; margin-left: 8px; transition: transform .2s var(--ease); }
.otd-more:hover i { transform: translateX(3px); }

/* ---- Agenda en frise horizontale ----
   Une ligne, un point par événement, la date au-dessus, la fiche en dessous : l'ordre se lit de gauche à droite.
   Sans script (ou « réduire les animations ») : la frise défile à l'horizontale au doigt ou à la molette, avec aimantation.
   Avec home.js (.is-pinned) : la section se fige et le défilement vertical fait glisser la frise. */
.agenda-scroller { position: relative; background: var(--paper); }
.agenda-pin { padding: 96px 0 72px; }
.agenda-pin .section-title { margin-bottom: 8px; }
.agenda-pin-lead { text-align: center; color: var(--muted); font-size: 1.0625rem; margin: 0 0 36px; }
.agenda-track-wrap {
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
    padding: 0 var(--gutter) 20px; scrollbar-width: thin;
}
.agenda-track { --progress: 0; --date-h: 5.5rem; position: relative; display: flex; width: max-content; list-style: none; margin: 0; padding: 0; }
/* La ligne de la frise, et sa partie rouge qui avance avec le défilement */
.agenda-track::before, .agenda-track::after {
    content: ""; position: absolute; left: 0; right: 0; top: calc(var(--date-h) + 8.5px); height: 3px; border-radius: 2px;
}
.agenda-track::before { background: var(--line); }
.agenda-track::after { background: var(--red); transform-origin: left center; transform: scaleX(var(--progress)); }
.agenda-stop { position: relative; z-index: 1; flex: 0 0 auto; width: clamp(270px, 80vw, 21rem); padding-right: 28px; scroll-snap-align: start; }
.agenda-stop-date { height: var(--date-h); display: flex; flex-direction: column; justify-content: flex-end; }
.agenda-stop-badge {
    align-self: flex-start; margin-bottom: 6px; padding: 2px 9px; border-radius: 999px; background: var(--red); color: #fff;
    font-family: var(--font-label); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.agenda-stop-day { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--navy); letter-spacing: -.01em; }
.agenda-stop-month { font-family: var(--font-label); font-size: .9375rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-top: 2px; }
.agenda-stop-dot { display: block; width: 20px; height: 20px; margin: 0 0 20px; border-radius: 50%; background: var(--paper); border: 4px solid var(--navy); }
.agenda-stop.is-next .agenda-stop-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px rgba(215, 20, 28, .18); }
.agenda-stop-card { padding: 18px 20px 20px; text-align: left; }
.agenda-stop-title { font-family: var(--font-text); font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--navy); margin: 0 0 10px; overflow-wrap: anywhere; }
.agenda-stop-meta { font-size: .9375rem; color: var(--muted); line-height: 1.45; margin: 0 0 6px; }
.agenda-stop-meta i { color: var(--red); width: 16px; margin-right: 6px; }
.agenda-stop-card .agenda-ics { margin-top: 10px; }
.agenda-stop-end .agenda-stop-dot { border-style: dashed; }
.agenda-stop-more { padding-top: 6px; }
.agenda-stop-more .agenda-subscribe-hint { margin-top: 14px; text-align: left; }
/* Mode figé : la section garde la frise à l'écran pendant qu'on la parcourt. */
.agenda-scroller.is-pinned .agenda-pin {
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; padding: 72px 0 24px;
}
.agenda-scroller.is-pinned .agenda-track-wrap { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.agenda-scroller.is-pinned .agenda-track { will-change: transform; }
@media (min-width: 1200px) {
    .agenda-pin-lead { font-size: 1.1875rem; margin-bottom: 48px; }
    .agenda-stop { width: 24rem; padding-right: 36px; }
    .agenda-track { --date-h: 6.5rem; }
    .agenda-stop-day { font-size: 3rem; }
    .agenda-stop-month { font-size: 1rem; }
    .agenda-stop-card { padding: 24px 26px 24px; }
    .agenda-stop-title { font-size: 1.375rem; }
    .agenda-stop-meta { font-size: 1rem; }
}

/* ---- Groupes : la liste (accordéon) à gauche, la carte « Renseignements » à côté ---- */
.groups-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 52rem; margin: 0 auto; }
@media (min-width: 1200px) {
    /* La carte reste visible pendant qu'on parcourt les groupes. */
    .groups-layout { grid-template-columns: minmax(0, 52rem) 21rem; justify-content: center; align-items: start; gap: 32px; max-width: none; }
    .groups-layout .info-card { position: sticky; top: 100px; }
}

.acc-item { background: #fff; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.acc-heading { margin: 0; font: inherit; }
.acc-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; padding: 18px 22px; margin: 0; border: 0; background: transparent;
    text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.acc-head:focus { outline: none; }
.acc-head:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.acc-text { display: block; }
.acc-title { display: block; font-weight: 700; color: var(--navy); font-size: 1.125rem; }
.acc-subtitle { display: block; font-family: var(--font-label); font-size: 0.9375rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
/* « + » dessiné en CSS : il tourne d'un huitième de tour pour devenir « × » quand le groupe est ouvert. */
.acc-plus {
    position: relative;
    width: 32px; height: 32px; border-radius: 3px; flex-shrink: 0;
    background: var(--paper-alt); color: var(--navy);
    transition: background-color .15s ease, color .15s ease, transform .3s var(--ease);
}
.acc-plus::before, .acc-plus::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor;
}
.acc-plus::after { transform: rotate(90deg); }
.acc-head:active .acc-plus { transform: scale(.92); }
.acc-head[aria-expanded="true"] .acc-plus { background: var(--red); color: #fff; transform: rotate(45deg); }
.acc-panel { overflow: hidden; transition: height .32s var(--ease); }
.acc-body { padding: 16px 22px 22px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink); line-height: 1.7; text-align: left; }
.acc-body p { margin: 0 0 10px; }
.acc-body b { color: var(--navy); }
.acc-field { margin: 0 0 14px; }
.acc-field > b { display: block; font-family: var(--font-label); font-size: 0.9375rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); margin-bottom: 2px; }
/* Texte mis en forme dans l'éditeur de l'admin (après .acc-body p : ses marges l'emportent) */
.rich-text p { margin: 0 0 8px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { margin: 4px 0 10px; padding-left: 22px; }
.rich-text li { margin-bottom: 2px; }
.rich-text h2, .rich-text h3 { font-size: 1.125rem; color: var(--navy); margin: 14px 0 6px; }
.rich-text a { text-decoration: underline; }
.rich-text blockquote { border-left: 3px solid var(--red); padding-left: 12px; color: var(--muted); margin: 8px 0; }
@media (min-width: 992px) {
    /* Détail d'un groupe ouvert : les rubriques en deux colonnes plutôt qu'une ligne de texte très longue. */
    .acc-body { column-count: 2; column-gap: 48px; }
    .acc-body > * { break-inside: avoid; }
}

/* Carte « Renseignements sur les groupes » */
.info-card { padding: 36px 32px; text-align: center; color: var(--ink); }
.info-card-title { font-family: var(--font-label); font-size: 1.375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin-bottom: 10px; }
.info-card-text { font-size: 1rem; margin: 0 auto 22px; max-width: 560px; }
.info-contact-name { font-weight: 700; color: var(--navy); font-size: 1.0625rem; }
.info-contact-role { color: var(--red); font-family: var(--font-label); font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 2px 0 12px; }
.info-contact-details { font-size: 0.9375rem; line-height: 1.8; }

/* ---- Comité : fond gris clair (pour casser l'enchaînement marine Groupes → Comité), fiches blanches ---- */
.comite-section { background: var(--paper-alt); }
.comite-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: 4px;
    padding: 26px 24px 24px;
    text-align: center;
    height: 100%;
    transition: box-shadow .2s ease;
}
.comite-card:hover { box-shadow: inset 0 -4px 0 var(--red); }
.comite-avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--red); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-size: 1.25rem; }
.comite-name { color: var(--navy); font-weight: 700; font-size: 1.125rem; }
.comite-role { color: var(--red); font-family: var(--font-label); font-size: 0.9375rem; font-weight: 700; margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }
.comite-sep { height: 1px; background: var(--line); margin: 14px 0; }
.comite-contact { color: var(--muted); font-size: 0.9375rem; line-height: 1.7; }
.comite-contact a { color: var(--navy); }
.comite-contact a:hover { color: var(--red); }


/* =====================================================================================================================
   6. Pages
   ===================================================================================================================== */

/* ---- Toutes les news ----
   La plus récente « À la une » (image entière sur sa version floutée), puis la mosaïque : chaque carte prend
   la hauteur de son contenu (site.js cale les cartes sans trou). Les news sans image sont des cartes marine. */
.news-list-wrap { max-width: 78rem; margin: 0 auto; }
.news-read-more { font-family: var(--font-label); font-size: 0.9375rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--red); margin-top: 6px; }
.news-read-more i { font-size: 0.6875rem; margin-left: 6px; transition: transform .15s ease; }

.news-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.news-card:hover, .news-card:focus-visible { color: var(--ink); text-decoration: none; transform: translateY(-3px); border-color: transparent; box-shadow: 0 14px 34px rgba(15, 13, 50, .16); }
.news-card:focus { outline: none; }
.news-card:focus-visible { box-shadow: 0 0 0 3px var(--red), 0 14px 34px rgba(15, 13, 50, .16); }
.news-tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--font-label); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.news-tile-kicker { color: var(--navy); }

/* À la une */
.news-feature-wrap { margin-bottom: 48px; }
.news-feature { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .news-feature:not(.is-text) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.news-feature-media { position: relative; display: block; overflow: hidden; min-height: 280px; aspect-ratio: 4 / 3; background: var(--navy-dark); }
.news-feature-backdrop { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(28px) saturate(1.2) brightness(.75); }
.news-feature-img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.news-feature:hover .news-feature-img { transform: scale(1.02); }
.news-feature-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px 36px; }
.news-feature-title { font-weight: 700; font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.01em; color: var(--navy); }
.news-feature-excerpt { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }
.news-feature-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--font-label); font-weight: 700; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.news-feature-more i { font-size: .75rem; transition: transform .2s var(--ease); }
.news-feature:hover .news-feature-more i { transform: translateX(3px); }

/* Mosaïque */
.news-masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 24px; align-items: start; }
.news-masonry.is-masonry { grid-auto-rows: 2px; row-gap: 0; }
.news-tile-media { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: top; background: var(--paper-alt); }
.news-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.news-tile-title { font-weight: 700; font-size: 1.1875rem; line-height: 1.25; color: var(--navy); transition: color .15s ease; }
.news-tile:hover .news-tile-title { color: var(--red); }
.news-tile-excerpt { font-size: .9375rem; line-height: 1.55; color: var(--muted); }

/* News sans image : carte marine, le titre en grand */
.news-card.is-text { background: var(--navy-bg, #262261); border-color: var(--navy-bg, #262261); color: #fff; }
.news-card.is-text .news-tile-meta { color: #FF8A8F; }
.news-card.is-text .news-tile-kicker { color: #fff; }
.news-card.is-text .news-tile-title, .news-card.is-text .news-feature-title { color: #fff; }
.news-card.is-text:hover .news-tile-title { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.news-card.is-text .news-tile-excerpt, .news-card.is-text .news-feature-excerpt { color: rgba(255, 255, 255, .8); }
.news-card.is-text .news-feature-more { color: #fff; }
.news-tile.is-text .news-tile-body { padding: 24px 24px 26px; }
.news-tile.is-text .news-tile-title { font-size: 1.375rem; }
@media (max-width: 575.98px) {
    .news-feature-body { padding: 22px 20px 24px; }
    .news-feature-excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---- Page d'une news ----
   En haut, l'image entière sur sa version floutée (toute la largeur) ; dessous, l'article en colonne de lecture ;
   en bas, « À lire aussi » avec les trois dernières autres news. */
.news-page { padding-bottom: 90px; }
.news-page:not(.has-image) { padding-top: 110px; }
.news-hero { position: relative; overflow: hidden; display: flex; justify-content: center; padding: 100px var(--gutter) 44px; background: #1A1747; }
.news-hero-backdrop { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(40px) saturate(1.2) brightness(.6); }
.news-hero-media { position: relative; display: block; overflow: hidden; border-radius: 8px; cursor: zoom-in; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.news-hero-media:hover { transform: scale(1.01); }
.news-hero-media:focus { outline: none; }
.news-hero-media:focus-visible { box-shadow: 0 0 0 3px #fff, 0 20px 50px rgba(0, 0, 0, .45); }
.news-hero-img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(68vh, 760px); }
.news-page-wrap { max-width: 46rem; margin: 0 auto; padding-top: 32px; }
.news-page-meta { margin-top: 22px; }
.news-page-dot { color: var(--muted); }
.news-page-title { font-family: var(--font-text); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.01em; color: var(--navy); margin: 10px 0 24px; }
.news-article { overflow: hidden; }
.news-article-text { font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.news-article-text p { margin: 0 0 12px; }
.news-article-text ul, .news-article-text ol { margin: 6px 0 14px; padding-left: 24px; }
.news-article-text h2, .news-article-text h3 { font-size: 1.3125rem; color: var(--navy); margin: 22px 0 8px; }
.news-article-text a { text-decoration: underline; }
.news-page-text { font-size: 1.125rem; line-height: 1.75; }
/* Lignes vides tapées dans l'éditeur (paragraphe ne contenant qu'un saut de ligne) : un petit espace au lieu d'un grand trou. */
.news-page-text p:has(> br:only-child) { margin: 0; height: .4em; overflow: hidden; }
/* Partager */
.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-label { font-family: var(--font-label); font-weight: 700; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 3px; border: 1px solid var(--line);
    background: #fff; color: var(--navy); font-size: 1rem; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.share-btn:hover, .share-btn:focus { background: var(--navy); border-color: var(--navy); color: #fff; outline: none; text-decoration: none; }
.share-done { font-size: 0.875rem; font-weight: 600; color: #1e7a4f; opacity: 0; transition: opacity .2s ease; }
.share-done.is-visible { opacity: 1; }
/* À lire aussi */
.news-related { max-width: 72rem; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--line); }
.news-related-title { font-family: var(--font-label); font-size: 1.375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); text-align: center; margin: 0 0 24px; }
.news-related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 992px) { .news-related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-related-list > li { display: flex; }
.news-related .news-row { flex: 1; align-items: stretch; border: 1px solid var(--line); }
.news-related .news-row:hover { box-shadow: 0 6px 18px rgba(15, 13, 50, .08); }
.news-related .news-row-thumb { width: 110px; aspect-ratio: auto; min-height: 90px; }
.news-related .news-row-arrow { align-self: center; }
@media (max-width: 575.98px) {
    .news-hero { padding: 84px 12px 24px; }
    .news-hero-img { max-height: 60vh; }
    .news-page-text { font-size: 1.0625rem; }
}

/* ---- Agenda ----
   Une seule colonne, dans l'ordre des dates : le prochain rendez-vous en grand, puis les suivants mois par mois (le mois
   à gauche, ses événements en lignes à droite ; le mois passe au-dessus sur téléphone). */
.agenda-wrap { max-width: 60rem; margin: 0 auto; }
.agenda-header { text-align: center; margin-bottom: 40px; }
.agenda-header .page-lead { max-width: 36rem; margin: 10px auto 0; }
.agenda-section-title { font-family: var(--font-label); font-size: 1.375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin: 48px 0 18px; }

/* Pastille de date (prochain rendez-vous, page d'un événement) */
.agenda-date-badge {
    flex-shrink: 0;
    width: 66px;
    height: 66px;
    border-radius: 3px;
    background: var(--navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid var(--red);
}
.agenda-day { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.agenda-day.is-range { font-size: 1.0625rem; letter-spacing: -.02em; }
.agenda-month { font-family: var(--font-label); font-size: 0.875rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 3px; }

/* Le prochain rendez-vous : une grande carte marine */
.agenda-next {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
    padding: 26px 28px; border-radius: 12px; background: var(--navy-bg, #262261); color: #fff; text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 13, 50, .18); transition: transform .25s var(--ease), box-shadow .25s ease;
}
.agenda-next:hover, .agenda-next:focus-visible { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15, 13, 50, .26); }
.agenda-next:focus { outline: none; }
.agenda-next:focus-visible { box-shadow: 0 0 0 3px var(--red), 0 18px 40px rgba(15, 13, 50, .26); }
.agenda-next-badge { width: 88px; height: 88px; background: #fff; color: var(--navy-bg, #262261); }
.agenda-next-badge .agenda-day { font-size: 2.125rem; }
.agenda-next-badge .agenda-day.is-range { font-size: 1.375rem; }
.agenda-next-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agenda-next-kicker { font-family: var(--font-label); font-size: .9375rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FF8A8F; }
.agenda-next-title { font-weight: 700; font-size: clamp(1.375rem, 3vw, 1.875rem); line-height: 1.2; overflow-wrap: anywhere; }
.agenda-next-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: rgba(255, 255, 255, .82); font-size: 1rem; }
.agenda-next-meta i { width: 16px; margin-right: 8px; color: #FF8A8F; }
.agenda-next-more { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--font-label); font-weight: 700; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; }
.agenda-next-more i { font-size: .75rem; transition: transform .2s var(--ease); }
.agenda-next:hover .agenda-next-more i { transform: translateX(3px); }

/* Mois par mois */
.agenda-month-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.agenda-month-block:first-child { border-top: 0; padding-top: 0; }
.agenda-month-name { display: flex; align-items: baseline; gap: 8px; margin: 0; font-family: var(--font-label); font-size: 1.125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.agenda-month-year { color: var(--muted); font-weight: 600; }
@media (min-width: 768px) {
    .agenda-month-block { grid-template-columns: 9.5rem minmax(0, 1fr); }
    .agenda-month-name { flex-direction: column; gap: 0; padding-top: 14px; position: sticky; top: 90px; align-self: start; }
}
.agenda-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* Une ligne : le jour, le titre et le lieu, une flèche. Toute la ligne est un lien. */
.agenda-row {
    display: flex; align-items: center; gap: 18px; padding: 12px 16px 12px 12px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, transform .2s var(--ease);
}
.agenda-row:hover, .agenda-row:focus-visible { border-color: var(--navy); color: var(--ink); text-decoration: none; transform: translateX(2px); }
.agenda-row:focus { outline: none; }
.agenda-row:focus-visible { box-shadow: 0 0 0 3px var(--red); }
.agenda-row:target { box-shadow: 0 0 0 3px var(--red); scroll-margin-top: 100px; }
.agenda-row-date { flex: 0 0 5rem; width: 5rem; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 6px; background: var(--paper-alt); }
.agenda-row-day.is-range { font-size: 1.1875rem; }
.agenda-row-day { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
.agenda-row-weekday { margin-top: 4px; font-family: var(--font-label); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); text-align: center; line-height: 1.2; }
.agenda-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agenda-row-title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--navy); overflow-wrap: anywhere; }
.agenda-row-place { font-size: .9375rem; color: var(--muted); line-height: 1.35; }
.agenda-row-place i { margin-right: 6px; color: var(--red); font-size: .8125rem; }
.agenda-row-tag { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--red-tint); color: var(--red); font-family: var(--font-label); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.agenda-row-arrow { flex-shrink: 0; color: var(--muted); font-size: .8125rem; transition: transform .2s var(--ease), color .15s ease; }
.agenda-row:hover .agenda-row-arrow { color: var(--red); transform: translateX(3px); }
/* Événements passés : plus discrets */
.agenda-row.is-past { background: transparent; }
.agenda-row.is-past .agenda-row-title { color: var(--ink); font-weight: 600; }
.agenda-row.is-past .agenda-row-day { color: var(--muted); }
.agenda-row.is-past .agenda-row-weekday { color: var(--muted); }
.past-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 56px 0 18px; }

/* Bouton « Ajouter à mon agenda » (frise de l'accueil) */
.agenda-ics {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px;
    padding: 9px 14px; border-radius: 3px; border: 1px solid var(--line);
    font-family: var(--font-label); font-size: 0.9375rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.agenda-ics:hover, .agenda-ics:focus { background: var(--navy); border-color: var(--navy); color: #fff; text-decoration: none; }

/* Abonnement au calendrier du club */
.agenda-subscribe { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 22px; margin: 48px 0 0; }
.agenda-subscribe-text { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 280px; }
.agenda-subscribe-text > i { font-size: 1.75rem; color: var(--red); margin-top: 2px; }
.agenda-subscribe-text strong { display: block; color: var(--navy); font-size: 1.0625rem; }
.agenda-subscribe-text span { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.agenda-subscribe-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.agenda-subscribe-status { flex-basis: 100%; margin: 0; font-size: .875rem; color: var(--muted); }
.agenda-subscribe-status:empty { display: none; }
.agenda-subscribe-hint { margin: 14px 0 0; }
.agenda-subscribe-hint a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }

@media (max-width: 575.98px) {
    .agenda-next { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 20px; }
    .agenda-next-badge { width: 70px; height: 70px; }
    .agenda-next-badge .agenda-day { font-size: 1.625rem; }
    .agenda-next-badge .agenda-day.is-range { font-size: 1.0625rem; }
    .agenda-next-more { grid-column: 1 / -1; }
    .agenda-row { gap: 12px; padding: 10px 12px 10px 10px; }
    .agenda-row-date { flex-basis: 4.25rem; width: 4.25rem; }
    .agenda-row-day { font-size: 1.25rem; }
    .agenda-row-day.is-range { font-size: 1rem; }
    .agenda-row-tag { display: none; }
}

/* Frise de l'accueil : le titre d'un événement est un lien qui couvre toute sa fiche ; le bouton « Ajouter à mon agenda »
   reste cliquable au-dessus. */
.agenda-stop-card { position: relative; }
.agenda-link { color: inherit; }
.agenda-link:hover, .agenda-link:focus { color: var(--red); text-decoration: none; }
.agenda-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.agenda-link:focus { outline: none; }
.agenda-link:focus-visible::after { box-shadow: 0 0 0 3px var(--red); }
.agenda-stop-card .agenda-ics { position: relative; z-index: 2; }

/* ---- Page d'un événement ----
   La pastille de date et le titre, puis les informations (date, lieu, boutons, description) à gauche et la carte du lieu
   à droite ; en bas, les prochains rendez-vous. */
.event-wrap { max-width: 72rem; margin: 0 auto; }
.event-head { display: flex; align-items: center; gap: 22px; margin: 8px 0 32px; }
.event-badge { width: 92px; height: 92px; }
.event-badge .agenda-day { font-size: 2.125rem; }
.event-badge .agenda-day.is-range { font-size: 1.375rem; }
.event-badge.is-past { background: #55556A; border-bottom-color: #55556A; }
.event-head-text { min-width: 0; }
.event-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--font-label); font-size: .9375rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--navy-bg, #262261); color: #fff; letter-spacing: .08em; }
.event-status.is-today { background: var(--red); }
.event-status.is-past { background: var(--paper-alt); color: var(--muted); border: 1px solid var(--line); }
.page-section h1.event-title { font-family: var(--font-text); font-weight: 700; font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.12; letter-spacing: -.01em; margin: 0; overflow-wrap: anywhere; }

.event-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 992px) { .event-layout.has-place { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.event-facts { margin: 0; display: grid; gap: 14px; }
.event-fact { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.event-fact dt { font-family: var(--font-label); font-weight: 700; font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.event-fact dt i { width: 18px; margin-right: 8px; color: var(--red); }
.event-fact dd { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--navy); line-height: 1.45; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.event-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.event-description { margin-top: 28px; }

.event-map { padding: 0; }
.event-map-image { display: block; overflow: hidden; background: var(--paper-alt); }
.event-map-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; transition: transform .4s var(--ease); }
.event-map-image:hover img { transform: scale(1.02); }
.event-map-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.event-map-place { font-weight: 600; color: var(--navy); }
.event-map-place i { color: var(--red); margin-right: 8px; }
.event-map-buttons { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 600; font-size: .9375rem; }
.event-map-buttons a { display: inline-flex; align-items: center; min-height: 44px; }

.event-next { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.event-next-title { font-family: var(--font-label); font-size: 1.375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin: 0 0 18px; }
.event-next-more { margin: 18px 0 0; }
.event-next-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.event-next-more i { font-size: .75rem; }
@media (max-width: 575.98px) {
    .event-head { gap: 14px; margin-bottom: 24px; }
    .event-badge { width: 72px; height: 72px; }
    .event-badge .agenda-day { font-size: 1.625rem; }
    .event-fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .event-actions .btn { width: 100%; justify-content: center; }
}

/* ---- Photos : albums et photos d'un album ---- */
.album-count { text-align: center; color: var(--muted); font-size: 0.9375rem; margin: -12px 0 20px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.album-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
    text-decoration: none;
}
.album-card:hover, .album-card:focus { text-decoration: none; }
.album-cover { aspect-ratio: 3 / 2; background: var(--paper-alt); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.album-card:hover .album-cover img { transform: scale(1.03); }
.album-body { padding: 14px 16px 18px; }
.album-title { font-weight: 700; color: var(--navy); font-size: 1rem; line-height: 1.35; }
.album-meta { font-family: var(--font-label); color: var(--muted); font-size: 0.875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 6px; }
.album-header { margin-bottom: 24px; }
.album-header h1 { font-size: 1.875rem; margin: 0 0 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.photo-tile { display: block; aspect-ratio: 1 / 1; border-radius: 3px; overflow: hidden; background: var(--paper-alt); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease, opacity .2s ease; }
.photo-tile:hover img { transform: scale(1.04); opacity: .92; }
@media (max-width: 575.98px) {
    .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
    .photo-tile { border-radius: 0; }
    .album-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .album-body { padding: 10px 12px 14px; }
    .album-title { font-size: 0.875rem; }
}

/* Visionneuse plein écran (album.js) : la photo sort de sa miniature, suit le doigt, et le fond s'éclaircit quand on la
   tire vers le bas pour fermer. */
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; touch-action: none; }
.lightbox.is-open { display: block; }
.lb-backdrop { position: absolute; inset: 0; background: #100F28; opacity: 0; }
.lb-stage { position: absolute; inset: 60px 70px 24px; touch-action: none; }
.lb-strip { position: absolute; inset: 0; will-change: transform; }
.lb-img { position: absolute; display: block; max-width: none; transform-origin: 50% 50%; will-change: transform, clip-path; user-select: none; -webkit-user-drag: none; cursor: grab; }
.lightbox.is-dragging .lb-img { cursor: grabbing; }
.lb-top, .lb-nav, .lb-hint { z-index: 4; transition: opacity .25s ease; }
.lightbox.is-dragging .lb-top, .lightbox.is-dragging .lb-nav,
.lightbox.is-closing .lb-top, .lightbox.is-closing .lb-nav,
.lightbox.chrome-hidden .lb-top, .lightbox.chrome-hidden .lb-nav { opacity: 0; pointer-events: none; }
.lb-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255, 255, 255, .7); font-size: .8125rem; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
@media (hover: hover) { .lb-hint { display: none; } }
.lb-spinner { position: absolute; z-index: 3; left: 50%; top: 50%; margin: -21px 0 0 -21px; width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--red); animation: lb-spin .8s linear infinite; display: none; }
.lightbox.is-loading .lb-spinner { display: block; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb-top { position: absolute; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #fff; }
.lb-counter { font-family: var(--font-label); font-weight: 600; font-size: 1rem; letter-spacing: .05em; color: rgba(255, 255, 255, .8); }
.lb-actions { display: flex; gap: 6px; }
.lb-actions a, .lb-actions button, .lb-nav {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 3px;
    border: none; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1rem; cursor: pointer; transition: background-color .15s ease;
}
.lb-actions a:hover, .lb-actions button:hover, .lb-nav:hover { background: var(--red); color: #fff; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; z-index: 2; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 575.98px) {
    .lb-stage { inset: 60px 0 0; }
    .lb-nav { width: 40px; height: 40px; background: rgba(0, 0, 0, .4); }
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
}

/* ---- Historique ---- */
.history-hero { text-align: center; max-width: 760px; margin: 0 auto; }
.history-kicker { font-family: var(--font-label); font-weight: 700; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 6px; }
.history-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(4rem, 15vw, 8.5rem); line-height: .95; letter-spacing: -.01em; color: var(--navy); margin: 0; }
.history-title-small { display: block; font-family: var(--font-label); font-weight: 700; font-size: clamp(1.125rem, 3vw, 1.5rem); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.history-lead { font-size: 1.125rem; margin-top: 18px; }

/* Frise : colonne des années à gauche, récits à droite, ligne verticale entre les deux (au centre sur grand écran).
   La ligne rouge (--progress, réglée par site.js) se remplit en suivant le défilement ; chaque année s'allume quand on la
   dépasse (gris lisible → marine). */
.timeline { --year-col: 150px; --gap: 52px; --progress: 0; --year-upcoming: #8A8A9C; list-style: none; position: relative; max-width: 940px; margin: 64px auto 0; padding: 0; }
.timeline::before, .timeline::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 3px;
    left: calc(var(--year-col) + var(--gap) / 2 - 1.5px);
}
.timeline::before { background: var(--line); }
.timeline::after { background: var(--red); transform-origin: top center; transform: scaleY(var(--progress)); }
.timeline-year { position: relative; display: grid; grid-template-columns: var(--year-col) minmax(0, 1fr); column-gap: var(--gap); padding-bottom: 38px; }
.timeline-year::before {
    content: ""; position: absolute; z-index: 1; top: 14px;
    left: calc(var(--year-col) + var(--gap) / 2 - 9px);
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--paper); border: 3px solid var(--line);
    transition: background-color .25s ease, border-color .25s ease, transform .3s var(--ease);
}
.timeline-year.is-passed::before { background: var(--red); border-color: var(--red); transform: scale(1.1); }
.timeline-mark { text-align: right; }
.timeline-year-num {
    position: sticky; top: 96px; display: block;
    font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--year-upcoming);
    transition: color .25s ease;
}
.timeline-year.is-passed .timeline-year-num { color: var(--navy); }
.timeline-today .timeline-year-num { color: var(--red); }
.timeline-body { display: grid; gap: 14px; min-width: 0; }
.timeline-entry { padding: 20px 24px 18px; }
.timeline-entry-key { border-left: 4px solid var(--red) !important; }
.timeline-date { font-family: var(--font-label); font-weight: 700; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin: 0 0 6px; }
.timeline-text { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.timeline-album { display: grid; grid-template-columns: 210px minmax(0, 1fr); padding: 0; color: var(--ink); text-decoration: none; }
.timeline-album:hover, .timeline-album:focus { text-decoration: none; color: var(--ink); }
.timeline-album-cover { display: block; background: var(--paper-alt); overflow: hidden; min-height: 140px; }
.timeline-album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.25); transition: transform .4s var(--ease), filter .3s ease; }
.timeline-album:hover .timeline-album-cover img { transform: scale(1.04); filter: none; }
.timeline-album-text { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px 22px; }
.timeline-album-title { font-weight: 700; font-size: 1.125rem; color: var(--navy); line-height: 1.3; }
.timeline-album-meta { font-size: .9375rem; color: var(--red); font-weight: 600; }
.timeline-album-meta i { font-size: .75rem; margin-left: 4px; transition: transform .2s var(--ease); }
.timeline-album:hover .timeline-album-meta i { transform: translateX(3px); }
/* Archives */
.history-archives .section-title { margin-bottom: 40px; }
.archives-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 1440px; margin: 0 auto; }
.archive-card { display: flex; flex-direction: column; padding: 24px 22px; color: var(--ink); text-decoration: none; transition: box-shadow .2s ease; }
.archive-card:hover, .archive-card:focus { text-decoration: none; color: var(--ink); box-shadow: inset 0 -4px 0 var(--red); }
.archive-num { font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--navy); }
.archive-label { font-weight: 700; color: var(--navy); margin-top: 8px; line-height: 1.3; }
.archive-since { font-family: var(--font-label); font-size: .9375rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
/* Téléphone : une seule colonne, la ligne passe à gauche, l'année au-dessus de ses récits. */
@media (max-width: 767.98px) {
    .timeline { --year-col: 0px; --gap: 36px; margin-top: 44px; }
    .timeline::before, .timeline::after { left: 10px; }
    .timeline-year { grid-template-columns: minmax(0, 1fr); padding-left: 36px; padding-bottom: 30px; }
    .timeline-year::before { left: 2px; top: 6px; }
    .timeline-mark { text-align: left; margin-bottom: 10px; }
    .timeline-year-num { position: static; font-size: 2.125rem; }
    .timeline-album { grid-template-columns: minmax(0, 1fr); }
    .timeline-album-cover { aspect-ratio: 3 / 2; }
    .archives-grid { grid-template-columns: 1fr 1fr; }
}
/* Grand écran : la ligne passe au milieu ; les années alternent, récits d'un côté, millésime de l'autre. */
@media (min-width: 1200px) {
    .timeline { --gap: 80px; max-width: 1440px; }
    .timeline::before, .timeline::after { left: calc(50% - 1.5px); }
    .timeline-year { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .timeline-year::before { left: calc(50% - 9px); }
    .timeline-year > .timeline-mark, .timeline-year > .timeline-body { grid-row: 1; }
    .timeline-year:nth-child(odd) > .timeline-body { grid-column: 1; }
    .timeline-year:nth-child(odd) > .timeline-mark { grid-column: 2; text-align: left; }
    .timeline-year:nth-child(even) > .timeline-mark { grid-column: 1; text-align: right; }
    .timeline-year:nth-child(even) > .timeline-body { grid-column: 2; }
}

/* ---- Contact ----
   Largeur limitée (page de lecture), deux cartes : inscriptions d'abord (la demande la plus fréquente), puis le club.
   Les e-mails et téléphones sont de vrais boutons, faciles à toucher. Le comité reprend les fiches de l'accueil. */
.contact-wrap { max-width: 72rem; margin: 0 auto; }
.contact-lead { max-width: 40rem; margin: 10px auto 0; }
.contact-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 40px; }
@media (min-width: 992px) { .contact-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { padding: 24px 24px 22px; }
.contact-page .contact-card { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.contact-card-key { border-top: 4px solid var(--red) !important; }
.contact-card address { font-style: normal; line-height: 1.6; }
.contact-eyebrow { font-family: var(--font-label); font-size: .9375rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 0; }
.contact-person { display: flex; align-items: center; gap: 14px; }
.contact-person .comite-avatar { margin: 0; flex-shrink: 0; }
.contact-person-name { font-weight: 700; font-size: 1.25rem; color: var(--navy); line-height: 1.2; }
.contact-person-role { font-family: var(--font-label); font-weight: 700; font-size: .9375rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.contact-address { font-style: normal; line-height: 1.6; margin: 0; color: var(--ink); }
.contact-address strong { color: var(--navy); font-size: 1.125rem; }
.contact-text { margin: 0; color: var(--ink); line-height: 1.6; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-transform: none !important; letter-spacing: 0 !important; font-family: var(--font-text) !important; font-weight: 600; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.contact-btn i { flex-shrink: 0; }
.contact-social { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 600; }
.contact-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.contact-social .pill { display: inline-flex; align-items: center; gap: 8px; }
.contact-section-title { font-family: var(--font-label); font-size: 1.375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); text-align: center; margin: 56px 0 20px; }
/* Comité : au plus 3 fiches par rangée (6 membres = 2 rangées pleines) ; les e-mails passent à la ligne au lieu de déborder. */
.contact-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(16rem, calc((100% - 40px) / 3)), 1fr)); gap: 20px; }
.contact-member-card .comite-contact a { overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .contact-page .contact-card { padding: 22px 18px; }
    .contact-actions .contact-btn { width: 100%; }
}

/* ---- Protection des données ----
   Même construction que Contact : l'essentiel en quatre points, puis le détail en cartes (2 colonnes sur ordinateur). */
.legal-summary { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 14px; }
.legal-summary li { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 18px; border-radius: 6px; background: var(--paper-alt); }
.legal-summary i { font-size: 1.375rem; color: var(--red); margin-bottom: 8px; }
.legal-summary strong { color: var(--navy); font-size: 1.0625rem; line-height: 1.3; }
.legal-summary span { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.legal-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
@media (min-width: 992px) { .legal-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legal-text h3 { font-family: var(--font-text); font-size: 1.0625rem; font-weight: 700; color: var(--navy); margin: 18px 0 6px; }
.legal-text h3:first-child { margin-top: 0; }
.legal-text p { font-size: .9375rem; line-height: 1.7; }
.legal-page .legal-text p { font-size: 1rem; }
.legal-page .legal-text p.contact-eyebrow { font-size: .9375rem; }
.legal-credit { color: var(--muted); font-size: .9375rem !important; }
@media (max-width: 575.98px) {
    /* Téléphone : chaque point du résumé tient sur une ligne, l'icône à gauche. */
    .legal-summary { gap: 8px; margin-top: 28px; }
    .legal-summary li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; padding: 12px 14px; }
    .legal-summary i { grid-row: span 2; margin: 0; font-size: 1.25rem; text-align: center; }
    .legal-summary strong { font-size: 1rem; }
    .legal-summary span { font-size: .875rem; }
}

/* ---- Soutenir le club (dossier de sponsoring) ----
   Des bandes pleine largeur aux fonds alternés (blanc, gris très clair, marine), une idée par bande, mêmes marges partout. */
.sp-band { padding: 88px 0; background: var(--paper); }
.sp-band.is-alt { background: var(--paper-alt); }
.sp-band.is-navy { background: var(--navy-bg, #262261); color: #fff; }
.sp-inner { max-width: 68rem; }
.sp-narrow { max-width: 48rem; }
.sp-center { text-align: center; justify-content: center; }
.sp-label { font-family: var(--font-label); font-size: .9375rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.is-navy .sp-label { color: #FF8A8F; }
.sp-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.1; text-transform: uppercase; color: var(--navy); margin: 0 0 18px; }
.is-navy .sp-title { color: #fff; }
.sp-subtitle { font-family: var(--font-label); font-size: 1.0625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 3px solid var(--navy-bg, #262261); }
.sp-subtitle.is-int { color: var(--red); border-bottom-color: var(--red); }
.sp-text { font-size: 1.125rem; line-height: 1.7; color: var(--ink); margin: 0 0 14px; }
.is-navy .sp-text { color: rgba(255, 255, 255, .85); }
.sp-lead { color: var(--muted); margin-bottom: 36px; }
.sp-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 992px) { .sp-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sp-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
/* Les grands titres ne dépassent jamais sur téléphone (« PROFESSIONNALISATION » est long). */
.sp-title, .sp-hero-title, .sp-motto { overflow-wrap: break-word; hyphens: auto; }
/* Haut de page */
.sp-hero { position: relative; overflow: hidden; padding: 140px 0 72px; background: var(--navy-bg, #262261); color: #fff; text-align: center; }
.sp-hero::after { content: "1867"; position: absolute; left: 50%; bottom: -.2em; transform: translateX(-50%); font-family: var(--font-display); font-size: clamp(160px, 30vw, 460px); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .06); pointer-events: none; }
.sp-hero .sp-inner { position: relative; z-index: 1; }
.sp-kicker { font-family: var(--font-label); font-size: 1rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #FF8A8F; margin: 0 0 14px; }
.sp-hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.05; text-transform: uppercase; color: #fff !important; margin: 0; }
.sp-hero-lead { max-width: 40rem; margin: 22px auto 0; font-size: 1.1875rem; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.sp-hero .sp-actions { justify-content: center; }
.sp-hero .btn-primary { background: #fff !important; border-color: #fff !important; color: #262261 !important; }
.sp-values { margin: 48px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-family: var(--font-label); font-size: 1.0625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.sp-values span + span::before { content: "\2605"; margin: 0 14px; color: var(--red); }
/* Vision */
.sp-quote { margin: 0 0 18px; padding: 0; font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.4; font-weight: 600; color: var(--navy); }
.sp-quote em { font-style: normal; color: var(--red); }
/* Parcours des gymnastes */
.sp-steps { list-style: none; counter-reset: etape; margin: 6px 0 0; padding: 0; }
.sp-steps li { counter-increment: etape; position: relative; padding: 0 0 22px 52px; }
.sp-steps li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-bg, #262261); color: #fff; font-family: var(--font-display); }
.sp-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.sp-steps strong { display: block; color: var(--navy); font-size: 1.125rem; line-height: 1.3; }
.sp-steps span { display: block; margin-top: 2px; color: var(--muted); }
/* Événements accueillis */
.sp-years { list-style: none; margin: 0; padding: 0; }
.sp-years li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.4; color: var(--ink); }
.sp-years b { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; color: var(--navy); }
.sp-years.is-int b { color: var(--red); }
/* Projet */
.sp-project { align-items: center; }
.sp-numbered { list-style: none; counter-reset: projet; margin: 0; padding: 0; }
.sp-numbered li { counter-increment: projet; display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 1.0625rem; line-height: 1.45; color: #fff; }
.sp-numbered li:last-child { border-bottom: 0; }
.sp-numbered li::before { content: counter(projet, decimal-leading-zero); flex-shrink: 0; font-family: var(--font-display); font-size: 1.25rem; color: #FF8A8F; }
/* Offres */
.sp-offers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: 12px; }
@media (min-width: 992px) { .sp-offers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-offer { position: relative; display: flex; flex-direction: column; padding: 30px 26px 28px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.sp-offer.is-gold { background: var(--navy-bg, #262261); border-color: var(--navy-bg, #262261); color: #fff; box-shadow: 0 20px 44px rgba(15, 13, 50, .22); }
.sp-offer-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); margin: 0; padding: 3px 12px; border-radius: 999px; background: #E3B341; color: #262261; font-family: var(--font-label); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sp-offer-name { margin: 0; text-align: center; font-family: var(--font-label); font-size: 1.25rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.sp-offer.is-gold .sp-offer-name { color: #F2C94C; }
.sp-offer-price { margin: 4px 0 20px; padding-bottom: 18px; text-align: center; font-family: var(--font-display); font-size: 2.25rem; line-height: 1.1; color: var(--navy); border-bottom: 1px solid var(--line); }
.sp-offer.is-gold .sp-offer-price { color: #fff; border-bottom-color: rgba(255, 255, 255, .2); }
.sp-offer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-offer li { position: relative; padding-left: 28px; line-height: 1.45; color: var(--ink); }
.sp-offer.is-gold li { color: #fff; }
.sp-offer li::before { content: "\2713"; position: absolute; left: 0; top: 1px; font-weight: 700; color: var(--red); }
.sp-offer.is-gold li::before { color: #F2C94C; }
.sp-donor { max-width: 44rem; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }
.sp-donor strong { color: var(--navy); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-label); }
/* Sponsors, contact, devise */
.sp-sponsors { margin: 20px auto 0; }
.sp-role { color: var(--muted); }
.sp-details { margin: 0; display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 14px 16px; align-content: center; font-size: 1.0625rem; line-height: 1.6; }
.sp-details dt { font-family: var(--font-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.sp-details dd { margin: 0; color: var(--ink); }
.sp-iban { font-weight: 700; color: var(--navy) !important; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.sp-motto-band { padding: 72px 0; text-align: center; }
.sp-motto { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; text-transform: uppercase; color: #fff; }
.sp-print-form { display: none; } /* bon pour accord : seulement à l'impression */
@media (max-width: 575.98px) {
    .sp-band { padding: 64px 0; }
    .sp-hero { padding: 116px 0 56px; }
    .sp-actions .btn { width: 100%; justify-content: center; }
    .sp-years li { grid-template-columns: 5.5rem minmax(0, 1fr); }
    .sp-values { font-size: .9375rem; }
    .sp-title { font-size: 1.5rem; }
    .sp-hero-title { font-size: 2rem; }
    .sp-motto { font-size: 1.75rem; }
}

/* ---- Pages d'erreur ---- */
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-display); font-size: clamp(4.5rem, 18vw, 9rem); line-height: 1; color: var(--line); margin: 0 0 10px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }


/* =====================================================================================================================
   7. Écrans tactiles, moins d'animations, contraste élevé
   ===================================================================================================================== */

/* Survol réservé aux souris ; sur écran tactile, l'effet apparaît pendant l'appui. */
@media (hover: hover) {
    .acc-head:hover .acc-plus { background: var(--navy); color: #fff; }
    .acc-head[aria-expanded="true"]:hover .acc-plus { background: var(--red-dark); }
}
@media (hover: none) {
    .album-card:hover, .album-card:focus, .comite-card:hover { box-shadow: none; }
    .news-card:hover { transform: none; }
    .album-card:hover .album-cover img, .photo-tile:hover img { transform: none; opacity: 1; }
    .pill:not(.active):hover { border-color: var(--line); }
    .album-card:active, .comite-card:active { box-shadow: inset 0 -4px 0 var(--red); }
    .photo-tile:active img { opacity: .85; }
}
/* Téléphones et e-mails empilés (comité, contact) : une ligne de 44 px par lien au doigt, pour ne pas appeler quelqu'un
   en voulant lui écrire. */
@media (pointer: coarse) {
    .comite-contact a, .info-contact-details a,
    .contact-card a[href^="mailto:"], .contact-card a[href^="tel:"] {
        display: inline-flex; align-items: center; min-height: 44px;
    }
    .comite-contact, .info-contact-details { line-height: 1.4; }
}

/* Réglage « réduire les animations » : tout s'affiche directement, sans mouvement. */
@media (prefers-reduced-motion: reduce) {
    .hero-content > *, .hero-content > :first-child { animation: none; }
    .hero-logo { cursor: default; }
    .album-card:hover .album-cover img, .photo-tile:hover img { transform: none; }
    #mainNav .nav-link::after { transition: none; }
    #mainNav .dropdown-menu.show { animation: none; }
    #navbarResponsive, #navbarResponsive.is-open { transition: none; transform: none; }
    .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
    .reveal-on .section-title::after { opacity: 1; letter-spacing: .3em; transition: none; }
    .acc-plus, .acc-panel { transition: none; }
    .timeline::after { transform: none; }
    .timeline-year::before, .timeline-year-num, .timeline-album-cover img { transition: none; }
    .site-notif { animation: notif-fade .2s ease backwards; transition: opacity .2s ease; }
    .sponsor-link, .sponsor-logo img { transition: none; }
    .sponsor-link:hover, .sponsor-link:hover .sponsor-logo img { transform: none; }
    .news-lead, .news-lead-img, .news-row, .news-row-arrow { transition: none; }
    .news-lead:hover, .news-lead:hover .news-lead-img, .news-row:hover, .news-row:hover .news-row-arrow { transform: none; }
    .news-hero-media { transition: none; }
    .news-hero-media:hover { transform: none; }
    .cd-num.is-flip { animation: none; }
    .hero-countdown { transition: none; }
    .otd-photo, .otd-more i { transition: none; }
    .otd-photo:hover { transform: rotate(-3deg); }
}
@keyframes notif-fade { from { opacity: 0; } to { opacity: 1; } }

/* Réglage « réduire la transparence » : l'annonce devient opaque. */
@media (prefers-reduced-transparency: reduce) {
    .site-notif { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Réglage « augmenter le contraste » : bordures marquées, textes plus foncés, filigrane retiré. */
@media (prefers-contrast: more) {
    :root { --muted: #3F3F50; --line: #8A8A9C; }
    .card, .doc-row, .agenda-row, .album-card, .acc-item, .comite-card { border-color: var(--navy) !important; }
    .hero-bignum { display: none; }
    .hero-slogan, .hero-arrow { color: #fff; }
    .filter-search, .filter-year, .pill { border-color: var(--navy); }
    .timeline { --year-upcoming: #5F5F70; }
    .site-notif { background: #fff; border-color: var(--navy); }
}


/* =====================================================================================================================
   8. Mode sombre (site public uniquement), selon le réglage de l'appareil
   ===================================================================================================================== */

@media (prefers-color-scheme: dark) {
    /* Couleurs : les fonds deviennent sombres, le « marine » des textes devient un lavande clair. */
    html.site {
        color-scheme: dark;
        --navy-bg: #262261;   /* le vrai bleu du club, gardé pour les fonds */
        --navy: #E6E5FB;
        --ink: #F2F1F9;
        --muted: #C6C5DA;
        --line: #4A4878;
        --paper: #0E0E18;
        --paper-alt: #1B1A33;
        --surface: #222140;
        --red-text: #FF6B70;  /* rouge éclairci pour rester lisible sur fond sombre (boutons rouges inchangés) */
        --red-tint: #3A1B26;
        --selection-alt: #6A66CC; /* sélection : marine éclairci, visible sur le fond presque noir comme sur les cartes marine */
    }
    html.site body { background-color: var(--paper); color: var(--ink); }

    /* Fonds blancs → surfaces sombres */
    html.site .card, html.site .bg-white, html.site .doc-row, html.site .agenda-row:not(.is-past), html.site .acc-item,
    html.site .comite-card, html.site .album-card, html.site .pill, html.site .share-btn,
    html.site .filter-search, html.site .filter-year { background-color: var(--surface) !important; }
    html.site .pill.active { background-color: var(--red) !important; }

    /* Fonds marine du club conservés */
    html.site #mainNav, html.site .home-hero, html.site .agenda-date-badge, html.site .skip-link { background: var(--navy-bg) !important; }
    html.site .bg-primary, html.site .bg-blue { background-color: #1B1846 !important; }
    /* Cartes bien détachées du fond : bordure visible, et plus claires dans les sections marine. */
    html.site .card, html.site .doc-row, html.site .agenda-row, html.site .acc-item, html.site .comite-card, html.site .album-card { border: 1px solid var(--line) !important; }
    html.site .bg-primary .card, html.site .bg-blue .card,
    html.site .bg-blue .acc-item, html.site .bg-blue .pill:not(.active), html.site .bg-blue .filter-search, html.site .bg-blue .filter-year { background-color: #2C2A5C !important; border-color: #55528A !important; }
    html.site .acc-body { border-top-color: var(--line); }
    html.site footer.bg-black { background-color: #0C0B20 !important; }
    html.site .home-hero .varsity-stripe { background: var(--ink); }
    html.site .event-badge.is-past { background: #4A4868 !important; }
    html.site .agenda-row-date { background: var(--paper-alt); }
    html.site .agenda-row-weekday, html.site .agenda-row-place i { color: var(--red-text); }
    html.site .agenda-row-tag { background: var(--red-tint); color: var(--red-text); }
    html.site .agenda-next { background: #1B1846; border: 1px solid #55528A; }
    html.site .agenda-next-badge { background: #fff; color: #262261; }
    html.site .agenda-link:hover, html.site .event-fact dt i, html.site .event-map-place i { color: var(--red-text); }
    html.site .event-status.is-past { background: var(--surface); }

    /* Textes rouges éclaircis ; les fonds rouges restent ceux du club */
    html.site a, html.site .news-tile-meta, html.site .news-read-more, html.site .news-feature-more, html.site .comite-role, html.site .info-contact-role,
    html.site .doc-mark-small, html.site .doc-mark-icon, html.site .doc-row-meta i, html.site .back-link,
    html.site #mainNav .dropdown-item:hover, html.site #mainNav .dropdown-item.is-current { color: var(--red-text); }
    html.site .doc-mark { background: var(--paper-alt); }
    html.site .news-card, html.site .news-card:hover, html.site .comite-contact a, html.site .footer-links a, html.site footer a { color: var(--ink); }
    html.site .news-tile:hover .news-tile-title { color: var(--red-text); }
    html.site .news-card:not(.is-text) { background: var(--surface); }
    html.site .news-card.is-text { background: #2C2A5C; border-color: #55528A; }
    html.site .news-card.is-text .news-tile-meta { color: #FF8A8F; }
    html.site .news-tile-kicker { color: var(--ink); }
    html.site .btn, html.site .btn:hover, html.site .nav-cta, html.site #mainNav .nav-link { text-decoration: none; }
    html.site .btn-primary, html.site .nav-cta { color: #fff !important; }
    html.site .history-kicker, html.site .timeline-date, html.site .timeline-album-meta, html.site .timeline-today .timeline-year-num,
    html.site .agenda-stop-month, html.site .agenda-stop-meta i, html.site .news-front-meta, html.site .news-row-arrow,
    html.site .otd-kicker, html.site .legal-summary i, html.site .contact-eyebrow { color: var(--red-text); }

    /* Boutons : le texte doit rester lisible quand le fond devient clair au survol */
    html.site .btn-outline-primary:hover, html.site .btn-outline-primary:focus, html.site .btn-outline-primary:active,
    html.site .share-btn:hover, html.site .agenda-ics:hover, html.site .agenda-ics:focus { color: var(--paper) !important; }
    html.site .btn-outline-light:hover, html.site .btn-outline-light:focus,
    html.site .home-hero .btn-primary, html.site .home-hero .btn-primary:hover { color: var(--navy-bg) !important; }
    html.site .btn-primary:hover, html.site .btn-primary:focus { background-color: #3A3690 !important; border-color: #3A3690 !important; }
    html.site .acc-head[aria-expanded="true"] .acc-plus { color: #fff; }

    /* Menu « Le club » */
    html.site #mainNav .dropdown-menu { background: var(--surface); border-color: var(--line); }
    html.site #mainNav .dropdown-item { color: var(--ink); }
    html.site #mainNav .dropdown-item:hover, html.site #mainNav .dropdown-item:focus { background: var(--paper-alt); }

    /* Annonce */
    html.site .site-notif { background: rgba(40, 38, 82, .82); border-color: rgba(255, 255, 255, .14); }
    html.site .site-notif-text { color: #fff; }
    html.site .site-notif-app, html.site .site-notif-close { color: rgba(255, 255, 255, .72); }
    html.site .site-notif-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
    html.site .site-notif-text a { color: #FF8A8F; }

    /* Accueil, pages */
    html.site .album-cover, html.site .photo-tile { background: var(--paper-alt); }
    html.site .agenda-scroller { background: var(--paper); }
    html.site .agenda-stop.is-next .agenda-stop-dot { box-shadow: 0 0 0 5px rgba(255, 107, 112, .25); }
    html.site .timeline { --year-upcoming: #7A78A8; }
    html.site .news-lead, html.site .news-row { background: #2C2A5C; border: 1px solid #55528A; }
    html.site .news-row-thumb { background: #1B1846; }
    html.site .otd-photo { background: #E4E3EF; }
    html.site .legal-summary li { background: var(--surface); border: 1px solid var(--line); }
    html.site .sp-band.is-navy, html.site .sp-hero, html.site .sp-offer.is-gold { background: #1B1846; }
    html.site .sp-offer { background: var(--surface); }
    html.site .sp-label, html.site .sp-quote em, html.site .sp-years.is-int b, html.site .sp-subtitle.is-int, html.site .sp-offer li::before { color: var(--red-text); }
    html.site .sp-offer.is-gold li::before { color: #F2C94C; }
    html.site .sp-subtitle.is-int { border-bottom-color: var(--red-text); }
}
@media (prefers-color-scheme: dark) and (hover: hover) {
    html.site .acc-head:hover .acc-plus { color: var(--paper); }
}


/* =====================================================================================================================
   9. Impression : contenu seul, en noir sur blanc, sans menus ni boutons
   ===================================================================================================================== */

@media print {
    #mainNav, footer, .skip-link, .home-hero, .filter-bar, .results-pills, .share-bar, .agenda-ics,
    .btn, .lightbox, .error-actions, .back-link, .hero-bignum, .doc-row-action, .acc-plus, .event-map-buttons, .event-next,
    .site-notif, .agenda-subscribe, .agenda-subscribe-hint, .news-hero-backdrop, .news-related { display: none !important; }
    html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
    .projects-section, .page-section { padding: 12pt 0 !important; }
    .bg-primary, .bg-blue, .comite-section { background: #fff !important; color: #000 !important; }
    .section-title, .bg-primary .section-title, .bg-blue .section-title { color: #000 !important; font-size: 20pt; }
    .section-title::after { display: none; }
    .card, .doc-row, .agenda-row, .acc-item, .comite-card, .album-card { border: 1px solid #999 !important; box-shadow: none !important; break-inside: avoid; }
    /* Les faits marquants (historique) et la carte principale (contact, données) gardent leur liseré rouge. */
    .timeline-entry-key { border-left: 4px solid var(--red) !important; }
    .contact-card-key { border-top: 4px solid var(--red) !important; }
    .agenda-date-badge { background: #fff !important; color: #000 !important; border: 1px solid #000; }
    .comite-name, .comite-contact a, .acc-title, .doc-row-title, .agenda-row-title, .agenda-next-title { color: #000 !important; }
    .agenda-next { background: #fff !important; color: #000 !important; border: 1px solid #999; box-shadow: none; }
    .agenda-row-arrow, .agenda-next-more { display: none !important; }
    a { color: #000 !important; text-decoration: none; }
    /* Les éléments animés à l'apparition s'impriment même s'ils n'ont pas encore été vus. */
    .reveal, .hero-content > * { opacity: 1 !important; transform: none !important; animation: none !important; }

    /* Frise de l'agenda (accueil) et de l'historique */
    .agenda-scroller { height: auto !important; }
    .agenda-track-wrap { overflow: visible; }
    .agenda-track { flex-wrap: wrap; transform: none !important; width: auto; }
    .agenda-track::before, .agenda-track::after, .agenda-stop-dot { display: none; }
    .timeline::after { display: none; }
    .timeline-year-num { color: #000 !important; position: static; }

    /* Page d'une news */
    .news-hero { background: none; padding: 0; }

    /* Soutenir le club : dossier propre, et bon pour accord sur sa propre page. */
    .sp-band { padding: 8mm 0; break-inside: avoid; }
    .sp-hero, .sp-band.is-navy, .sp-offer.is-gold, .sp-steps li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sp-actions, .sp-hero::after { display: none !important; }
    .sp-print-form { display: block; break-before: page; padding: 10mm 0 0; color: #000; }
    .sp-print-form h2 { font-family: var(--font-display); font-size: 24pt; color: #262261; margin: 0 0 6mm; }
    .sp-print-choices { display: flex; flex-wrap: wrap; gap: 6mm 12mm; font-size: 12pt; }
    .sp-print-form dl { display: grid; grid-template-columns: 45mm 1fr; gap: 9mm 6mm; margin: 10mm 0; }
    .sp-print-form dt { font-weight: 700; }
    .sp-print-form dd { margin: 0; border-bottom: 1px solid #000; min-height: 7mm; }
    .sp-print-form dd.is-tall { min-height: 28mm; }
    .sp-print-return { font-size: 10pt; color: #333; }
}
