/* =============================================================================
   LFFS Hainaut — système de design
   -----------------------------------------------------------------------------
   Écrit à la main, sans framework. Remplace Bootstrap 4 + le thème AppStrap.

   Le motif directeur est le tracé d'un terrain de futsal : des lignes fines et
   précises, un arc de cercle central, des zones délimitées. Ces lignes ne sont
   pas décoratives — elles séparent les zones de la page comme les marquages
   séparent les zones du terrain.
   ========================================================================== */

/* --- 1. Reset ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
}

input, button, textarea, select { font: inherit; color: inherit; }

/* Tous les boutons du site sont stylés par une classe : on retire l'habillage
   par défaut du navigateur, sans quoi il réapparaît (fond gris, bordure). */
button { background: none; border: 0; cursor: pointer; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

ul[class], ol[class] { list-style: none; padding: 0; }

/* --- 2. Tokens ----------------------------------------------------------- */

:root {
    /* Couleurs. Direction « fédération internationale » (d'après uci.org) :
       des aplats francs — noir charbon, bleu fédéral, gris clair — et le
       rouge de l'écusson comme unique accent. La légèreté vient du plat :
       angles droits, filets fins, pas d'ombres ni de dégradés. */
    --encre:        #131417;
    --encre-clair:  #232429;
    --resine:       #266293;
    --ligne:        #F4F4F3;
    --craie:        #DCDCD9;
    /* Le rouge de l'écusson comme accent. En aplat avec texte blanc, la
       teinte assombrie tient le 4.5:1 de l'AA ; la vive sert aux marques
       décoratives (flèches, soulignés) et au texte sur fonds sombres. */
    --signal:        #E52B21;
    --signal-sombre: #B31A12;
    --signal-bouton: #B31A12;
    --signal-bouton-survol: #8F1109;

    --texte:        #17181A;
    --texte-doux:   #64656B;
    --texte-inverse:var(--ligne);
    --fond:         #FFFFFF;
    --fond-doux:    #EFEFED;
    --bordure:      var(--craie);

    /* Typographie. Archivo en capitales porte la voix fédérale (titres,
       étiquettes, boutons) ; Inter assure la lecture et les chiffres
       (tabulaires) : dates, tarifs, numéros de match. */
    --police-titre: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --police-texte: 'Inter', system-ui, -apple-system, sans-serif;
    --police-data:  'Inter', system-ui, -apple-system, sans-serif;

    /* Échelle typographique fluide, ratio ~1.25 */
    --t-xs:   0.75rem;
    --t-sm:   0.875rem;
    --t-base: 1rem;
    --t-md:   clamp(1.05rem, 0.99rem + 0.3vw, 1.2rem);
    --t-lg:   clamp(1.3rem,  1.15rem + 0.7vw, 1.65rem);
    --t-xl:   clamp(1.7rem,  1.4rem  + 1.4vw, 2.4rem);
    --t-2xl:  clamp(2.2rem,  1.6rem  + 2.8vw, 3.8rem);
    --t-3xl:  clamp(2.8rem,  1.8rem  + 4.6vw, 5.5rem);

    /* Rythme vertical */
    --e-1: 0.25rem;
    --e-2: 0.5rem;
    --e-3: 0.75rem;
    --e-4: 1rem;
    --e-5: 1.5rem;
    --e-6: 2rem;
    --e-7: 3rem;
    --e-8: 4rem;
    --e-9: 6rem;

    --largeur:      76rem;
    --largeur-texte:38rem;

    /* Angles droits : la géométrie du langage fédéral. */
    --rayon:      0;
    --rayon-doux: 0;

    --trait: 1px solid var(--bordure);

    --ombre-douce: none;
    --ombre-portee:0 10px 22px rgba(19, 20, 23, .10);

    --duree: 180ms;
    --courbe: cubic-bezier(.2, .6, .35, 1);
}

/* --- 3. Base ------------------------------------------------------------- */

/* Colonne pleine hauteur : le contenu pousse, le pied de page reste au fond
   même quand la page est courte. */
body {
    font-family: var(--police-texte);
    font-size: var(--t-base);
    color: var(--texte);
    background: var(--fond);
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* Titres en capitales Archivo : la signature typographique fédérale. */
h1, h2, h3, h4 {
    font-family: var(--police-titre);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

a:hover { text-decoration-color: var(--signal); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
    border-radius: var(--rayon);
}

/* --- 4. Primitives de mise en page ---------------------------------------- */

.contenant {
    width: 100%;
    max-width: var(--largeur);
    margin-inline: auto;
    padding-inline: var(--e-5);
}

@media (min-width: 48rem) {
    .contenant { padding-inline: var(--e-6); }
}

.section { padding-block: var(--e-8); }

@media (min-width: 48rem) {
    .section { padding-block: var(--e-9); }
}

.section--serree { padding-block: var(--e-7); }

.pile > * + * { margin-top: var(--e-4); }
.pile-lg > * + * { margin-top: var(--e-6); }

.grille {
    display: grid;
    gap: var(--e-5);
}

.grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }

/* Fiche salle : les coordonnées priment sur la photo. */
.grille--salle { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }

@media (min-width: 62rem) {
    .grille--salle { grid-template-columns: 65fr 35fr; }
}

.mesure { max-width: var(--largeur-texte); }

/* --- 5. Signature : le tracé du terrain ----------------------------------- */

/* Séparateur reprenant la ligne médiane et le rond central. Utilisé entre les
   grandes zones de la page. */
.ligne-mediane {
    position: relative;
    height: 1px;
    background: var(--bordure);
    border: 0;
    overflow: visible;
}

/* Filet nu : dans ce langage, la séparation est une simple ligne. */

/* Étiquette de zone : petite capitale monospace précédée d'un tiret, comme les
   repères portés sur un plan de terrain. */
.zone {
    display: flex;
    align-items: center;
    gap: var(--e-3);
    font-family: var(--police-titre);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--texte-doux);
}

.zone::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: var(--signal);
    flex: none;
}

.zone--inverse { color: rgba(245, 247, 246, .72); }

/* --- 6. En-tête et navigation --------------------------------------------- */

.saut-contenu {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: var(--e-3) var(--e-4);
    background: var(--signal);
    color: #fff;
    font-weight: 600;
}

.saut-contenu:focus { left: var(--e-4); top: var(--e-4); }

/* Liseré aux couleurs des lignes de marquage des salles omnisports —
   l'hommage aux bandes des grandes fédérations internationales. */
.lisere { display: flex; height: 4px; }
.lisere i { flex: 1; }
.lisere i:nth-child(1) { background: #0072BC; }
.lisere i:nth-child(2) { background: #EE2E24; }
.lisere i:nth-child(3) { background: #000000; }
.lisere i:nth-child(4) { background: #FFD100; }
.lisere i:nth-child(5) { background: #00A651; }

/* Barre utilitaire : les publics et les liens institutionnels. */
.entete-util {
    background: var(--encre);
    color: #B9BAC0;
    font-family: var(--police-titre);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.entete-util__barre {
    display: flex;
    align-items: center;
    gap: var(--e-4);
    min-height: 2.2rem;
}

.entete-util a { color: #E4E4E6; text-decoration: none; }
.entete-util a:hover { color: #fff; text-decoration: underline; }
.entete-util .separateur { margin-left: auto; }

@media (max-width: 47.999rem) {
    .entete-util { display: none; }
}

.entete {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--fond);
    color: var(--texte);
    border-bottom: 1px solid var(--bordure);
}

.entete__barre {
    display: flex;
    align-items: center;
    gap: var(--e-5);
    min-height: 4.25rem;
}

.marque {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--police-titre);
    font-size: var(--t-md);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--texte);
    flex: none;
}

.marque__logo { height: 2.4rem; width: auto; }

.marque__hainaut { font-weight: 500; color: var(--texte-doux); }

.marque:hover .marque__hainaut { color: var(--signal-sombre); }

.nav { margin-left: auto; }

.nav__liste {
    display: flex;
    align-items: center;
    gap: var(--e-1);
}

.nav__lien {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: var(--e-2);
    font-family: var(--police-titre);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    color: var(--texte);
    border-radius: var(--rayon);
    transition: color var(--duree) var(--courbe), box-shadow var(--duree) var(--courbe);
}

.nav__lien:hover,
.nav__lien[aria-expanded="true"] {
    color: var(--signal-sombre);
}

.nav__lien[aria-current="page"] {
    color: var(--texte);
    box-shadow: inset 0 -3px 0 var(--signal);
}

.nav__chevron { flex: none; opacity: .7; transition: transform var(--duree) var(--courbe); }

.nav__groupe[data-ouvert="true"] .nav__chevron { transform: rotate(180deg); }

/* Sous-menu : ouvert au survol sur pointeur fin, au clic sinon. */
.nav__groupe { position: relative; }

.nav__sous-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 15rem;
    padding: var(--e-2);
    background: var(--fond);
    color: var(--texte);
    border: var(--trait);
    border-radius: var(--rayon-doux);
    box-shadow: var(--ombre-portee);
    display: none;
}

.nav__groupe[data-ouvert="true"] .nav__sous-menu { display: block; }

.nav__sous-lien {
    display: block;
    padding: var(--e-2) var(--e-3);
    font-size: var(--t-sm);
    text-decoration: none;
    border-radius: var(--rayon);
}

.nav__sous-lien:hover { background: var(--fond-doux); color: var(--signal-sombre); }

.entete__actions { display: flex; align-items: center; gap: var(--e-2); }

.bouton-icone {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: 0;
    border-radius: var(--rayon);
    color: var(--texte);
    cursor: pointer;
}

.bouton-icone:hover { background: var(--fond-doux); color: var(--signal-sombre); }

.nav-bascule { display: inline-grid; }

/* Certaines entrées ne servent qu'au menu mobile : en desktop l'action existe
   déjà comme bouton dans l'en-tête. */
.nav__item--mobile { display: none; }

@media (min-width: 62rem) {
    .nav-bascule { display: none; }
}

@media (max-width: 61.999rem) {
    .nav { display: none; }
    .nav__item--mobile { display: block; }

    /* La nav masquée emporte son margin-left:auto : c'est donc au groupe
       recherche + menu de se caler à droite. */
    .entete__actions { margin-left: auto; }

    .nav[data-ouvert="true"] .recherche--panneau {
        display: flex;
        flex: none;
        width: 100%;
        min-width: 0;
        margin-block: var(--e-2) var(--e-4);
        padding-block: var(--e-1);
    }

    .nav[data-ouvert="true"] {
        display: block;
        position: fixed;
        inset: 4.25rem 0 0;
        overflow-y: auto;
        background: var(--fond);
        padding: var(--e-4) var(--e-5) var(--e-7);
    }

    .nav__liste { flex-direction: column; align-items: stretch; gap: 0; }

    /* Rangées pleine largeur : libellé à gauche, chevron calé à droite. */
    .nav__lien {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: var(--e-4) var(--e-2);
        border-bottom: 1px solid var(--bordure);
        border-radius: 0;
        font-size: var(--t-sm);
    }

    /* Accordéon : fermé par défaut, un seul groupe ouvert à la fois (le
       script ferme les autres). La règle globale [data-ouvert="true"],
       plus spécifique, rouvre le sous-menu. */
    .nav__sous-menu {
        position: static;
        display: none;
        min-width: 0;
        background: none;
        border: 0;
        border-bottom: 1px solid var(--bordure);
        box-shadow: none;
        padding: var(--e-2) 0 var(--e-4) var(--e-4);
        color: var(--texte);
    }

    .nav__sous-lien {
        color: var(--texte-doux);
        padding: var(--e-3) var(--e-2);
        font-size: var(--t-base);
    }

    .nav__sous-lien:hover { background: none; color: var(--signal-sombre); }
}

/* --- 7. Recherche --------------------------------------------------------- */

.recherche {
    display: flex;
    align-items: center;
    gap: var(--e-2);
    background: var(--fond-doux);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-doux);
    padding-inline: var(--e-3);
    /* Compressible : quand la barre se resserre, c'est la recherche qui
       cède en premier, jusqu'à sa largeur minimale utilisable. */
    flex: 0 1 9.5rem;
    min-width: 5.5rem;
}

.recherche:focus-within { border-color: var(--signal); }

/* Compacte au repos, la recherche se déploie au focus : elle passe en
   surcouche ancrée à droite de la barre, par-dessus la navigation, puis
   reprend sa place au blur. */
@media (min-width: 48rem) {
    .entete__barre { position: relative; }

    .entete__actions .recherche:focus-within {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: clamp(16rem, 40vw, 26rem);
        max-width: 100%;
        z-index: 5;
        background: var(--fond);
        box-shadow: var(--ombre-portee);
    }
}

/* La recherche du panneau mobile ne vit que dans le menu ouvert. */
.recherche--panneau { display: none; }

.recherche__champ {
    border: 0;
    background: none;
    color: var(--texte);
    padding-block: var(--e-2);
    width: 100%;
    min-width: 0;
    font-size: var(--t-sm);
}

.recherche__champ::placeholder { color: var(--texte-doux); }

.recherche__valider {
    flex: none;
    /* Invisible tant que la recherche est repliée : il n'apparaît qu'au
       déploiement (focus), et reste permanent dans le panneau mobile. */
    display: none;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    margin-right: calc(-1 * var(--e-2));
    background: var(--signal-bouton);
    color: #fff;
}

.recherche__valider:hover { background: var(--signal-bouton-survol); }

.recherche:focus-within .recherche__valider,
.recherche--panneau .recherche__valider { display: inline-grid; }
.recherche__champ:focus { outline: none; }

/* --- 8. Boutons ----------------------------------------------------------- */

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--e-2);
    padding: var(--e-3) var(--e-5);
    font-family: var(--police-titre);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--rayon-doux);
    cursor: pointer;
    transition: background-color var(--duree) var(--courbe), border-color var(--duree) var(--courbe), color var(--duree) var(--courbe);
}

.bouton--signal { background: var(--signal-bouton); color: #fff; }
.bouton--signal:hover { background: var(--signal-bouton-survol); }

.bouton--encre { background: var(--encre); color: var(--ligne); }
.bouton--encre:hover { background: var(--resine); }

.bouton--contour { border-color: var(--bordure); color: var(--texte); background: var(--fond); }
.bouton--contour:hover { border-color: var(--encre); }

.bouton--contour-clair { border-color: rgba(245, 247, 246, .35); color: var(--ligne); }
.bouton--contour-clair:hover { border-color: var(--ligne); background: rgba(245, 247, 246, .08); }

/* --- 9. Cartes et accès --------------------------------------------------- */

.carte {
    display: flex;
    flex-direction: column;
    gap: var(--e-3);
    padding: var(--e-5);
    background: var(--fond);
    border: var(--trait);
    border-radius: var(--rayon-doux);
    transition: border-color var(--duree) var(--courbe), transform var(--duree) var(--courbe), box-shadow var(--duree) var(--courbe);
}

.carte__titre { font-size: var(--t-md); }

.carte__titre a { text-decoration: none; }

/* Le lien couvre toute la carte, tout en gardant une cible focusable propre. */
.carte__titre a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.carte--lien { position: relative; }

.carte--lien:hover {
    border-color: var(--encre);
    transform: translateY(-2px);
    box-shadow: var(--ombre-douce);
}

.carte__meta {
    font-family: var(--police-data);
    font-size: var(--t-xs);
    letter-spacing: .04em;
    color: var(--texte-doux);
}

.carte__texte { color: var(--texte-doux); font-size: var(--t-sm); }

/* --- 10. Tableaux de données ---------------------------------------------- */

.tableau-enveloppe {
    /* relative : établit le contexte de positionnement, sans quoi le
       débordement du tableau remonte jusqu'à la racine et fait défiler
       toute la page au lieu du seul conteneur. */
    position: relative;
    overflow-x: auto;
    border: var(--trait);
    border-radius: var(--rayon-doux);
}

.tableau {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--t-sm);
}

.tableau th,
.tableau td {
    padding: var(--e-3) var(--e-4);
    text-align: left;
    border-bottom: 1px solid var(--bordure);
    white-space: nowrap;
}

.tableau thead th {
    font-family: var(--police-data);
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--texte-doux);
    background: var(--fond-doux);
}

.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover { background: var(--fond-doux); }

.tableau .num {
    font-family: var(--police-data);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* --- 11. Étiquettes ------------------------------------------------------- */

.etiquette {
    display: inline-block;
    padding: .15rem var(--e-2);
    font-family: var(--police-titre);
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: var(--rayon);
    background: var(--fond-doux);
    color: var(--texte-doux);
    border: 1px solid var(--bordure);
}

.etiquette--signal {
    background: color-mix(in srgb, var(--signal) 12%, white);
    border-color: color-mix(in srgb, var(--signal) 35%, white);
    color: var(--signal-sombre);
}

/* --- 12. Pied de page ----------------------------------------------------- */

.pied {
    background: var(--encre);
    color: rgba(245, 247, 246, .74);
    padding-block: var(--e-8) var(--e-6);
    font-size: var(--t-sm);
}

.pied a { color: rgba(245, 247, 246, .74); text-decoration: none; }
.pied a:hover { color: var(--signal); text-decoration: underline; }

.pied__titre {
    font-family: var(--police-titre);
    font-size: var(--t-xs);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ligne);
    margin-bottom: var(--e-3);
}

.pied__bas {
    margin-top: var(--e-7);
    padding-top: var(--e-5);
    border-top: 1px solid var(--encre-clair);
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-4);
    justify-content: space-between;
    font-size: var(--t-xs);
    color: rgba(245, 247, 246, .55);
}

/* --- 13. Fil d'ariane et en-tête de page ---------------------------------- */

.page-entete {
    background: var(--encre);
    color: var(--texte-inverse);
    padding-block: var(--e-7);
}

.page-entete h1 { margin-top: var(--e-3); }

.page-entete__intro {
    margin-top: var(--e-4);
    max-width: var(--largeur-texte);
    color: rgba(245, 247, 246, .78);
}

.ariane {
    font-family: var(--police-data);
    font-size: var(--t-xs);
    letter-spacing: .06em;
    color: rgba(245, 247, 246, .6);
}

.ariane a { text-decoration: none; color: inherit; }
.ariane a:hover { color: var(--signal); }

/* --- 14. Utilitaires (volontairement peu nombreux) ------------------------- */

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.fond-doux { background: var(--fond-doux); }
.fond-encre { background: var(--encre); color: var(--texte-inverse); }
.texte-doux { color: var(--texte-doux); }
.data { font-family: var(--police-data); font-variant-numeric: tabular-nums; }

/* --- 15. Pied de page : grille -------------------------------------------- */

.pied__grille {
    display: grid;
    gap: var(--e-6);
    grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
}

.pied__identite { grid-column: span 1; }

@media (min-width: 62rem) {
    .pied__grille { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

.pied__baseline {
    margin-top: var(--e-4);
    max-width: 32rem;
    font-size: var(--t-sm);
    line-height: 1.7;
}

.pied__facebook {
    display: inline-flex;
    align-items: center;
    gap: var(--e-2);
    margin-top: var(--e-4);
    font-size: var(--t-sm);
}

.pied__grille > * { min-width: 0; }

.pied__contact { font-style: normal; display: grid; gap: var(--e-2); }

/* Les adresses email sont les plus longues chaînes insécables du site. */
.pied__contact a, .definition a { overflow-wrap: anywhere; }

.pied__liens { display: grid; gap: var(--e-2); }

.pied__bas-liens { display: flex; flex-wrap: wrap; gap: var(--e-4); }

/* --- 16. Héros fédéral ------------------------------------------------------ */

.heros {
    position: relative;
    background:
        radial-gradient(60rem 30rem at 78% 12%, rgba(38, 98, 147, .35), transparent 60%),
        linear-gradient(180deg, #202126, var(--encre) 55%, #0E0F12);
    color: var(--texte-inverse);
    overflow: hidden;
}

.heros__interieur { padding-block: var(--e-8) 0; }

@media (min-width: 62rem) {
    .heros__interieur { padding-block: var(--e-9) 0; }
}

.heros__kicker {
    font-family: var(--police-titre);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9FA1A8;
}

.heros__titre {
    margin-top: var(--e-4);
    max-width: 52rem;
    font-size: var(--t-3xl);
    font-weight: 800;
    color: #EDEEF0;
}

.heros__lien {
    display: inline-block;
    margin-top: var(--e-5);
    font-family: var(--police-titre);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid #FFD100;
    padding-bottom: .25rem;
}

.heros__lien:hover { color: #FFD100; }

.heros__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-3);
    margin-top: var(--e-6);
}

/* Le bandeau d'actualités numérotées, signature de la référence. */
.numerote {
    display: grid;
    gap: var(--e-6);
    padding-block: var(--e-7);
    margin-top: var(--e-7);
}

@media (min-width: 48rem) {
    .numerote { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 62rem) {
    .numerote { grid-template-columns: repeat(4, 1fr); }
}

.numo {
    position: relative;
    display: block;
    border-top: 1px solid #3A3B40;
    padding-top: var(--e-3);
    text-decoration: none;
    color: #D8D9DC;
}

.numo__n {
    font-family: var(--police-titre);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #8E9096;
}

.numo__titre {
    display: block;
    margin-top: var(--e-2);
    font-family: var(--police-titre);
    font-weight: 600;
    font-size: var(--t-sm);
    line-height: 1.35;
}

.numo:hover { border-top-color: #FFD100; color: #fff; }
.numo:focus-visible { outline-offset: 6px; }

/* Bande noire d'appel, avec sa boîte de lien soulignée. */
.bande-noire {
    background: var(--encre);
    color: var(--texte-inverse);
    padding-block: var(--e-7);
}

.bande-noire__barre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--e-6);
}

.bande-noire h2 { max-width: 44rem; font-size: var(--t-lg); }

.boite-lien {
    margin-left: auto;
    display: block;
    border: 1px solid #3A3B40;
    padding: var(--e-4) var(--e-5) var(--e-3);
    min-width: 15rem;
    text-decoration: none;
    color: var(--texte-inverse);
}

.boite-lien:hover { border-color: #FFD100; }

.boite-lien__l {
    display: flex;
    justify-content: space-between;
    gap: var(--e-4);
    font-family: var(--police-titre);
    font-size: var(--t-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.boite-lien__l::after { content: "→"; color: #FFD100; }

.boite-lien__file { height: 1px; background: #3A3B40; margin-top: var(--e-3); }

@media (max-width: 47.999rem) {
    .boite-lien { margin-left: 0; width: 100%; }
}

/* --- 17. Accès par public -------------------------------------------------- */

.acces {
    display: grid;
    gap: var(--e-5);
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}

.acces__bloc {
    padding: var(--e-6);
    border: var(--trait);
    border-radius: var(--rayon-doux);
    background: var(--fond);
}

.acces__titre { margin-top: var(--e-4); font-size: var(--t-lg); }

.acces__texte { margin-top: var(--e-2); color: var(--texte-doux); font-size: var(--t-sm); }

.acces__liens { margin-top: var(--e-5); display: grid; gap: 0; }

.acces__lien {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--e-3);
    padding-block: var(--e-3);
    border-top: 1px solid var(--bordure);
    font-size: var(--t-sm);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--duree) var(--courbe), transform var(--duree) var(--courbe);
}

.acces__lien:hover { color: var(--signal-sombre); transform: translateX(var(--e-2)); }

.acces__lien svg { flex: none; opacity: .45; transition: opacity var(--duree) var(--courbe); }
.acces__lien:hover svg { opacity: 1; }

/* --- 18. Actualités -------------------------------------------------------- */

.actu-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--e-4);
    margin-bottom: var(--e-6);
}

.actu {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: var(--e-3);
    padding-top: var(--e-4);
    border-top: 2px solid var(--encre);
}

.actu__image {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    border-radius: var(--rayon);
    background: var(--fond-doux);
}

.actu__meta {
    display: flex;
    align-items: center;
    gap: var(--e-3);
    font-family: var(--police-data);
    font-size: var(--t-xs);
    letter-spacing: .05em;
    color: var(--texte-doux);
}

.actu__titre { font-size: var(--t-md); line-height: 1.25; }
.actu__titre a { text-decoration: none; }
.actu__titre a::after { content: ""; position: absolute; inset: 0; }
.actu__titre a:hover { color: var(--signal-sombre); }

/* --- 19. Bandeau pratique -------------------------------------------------- */

.pratique {
    display: grid;
    gap: var(--e-5);
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.pratique__item {
    padding: var(--e-5);
    background: var(--fond);
    border-radius: var(--rayon-doux);
    border: var(--trait);
}

.pratique__valeur {
    font-family: var(--police-titre);
    font-size: var(--t-lg);
    overflow-wrap: anywhere;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: var(--e-2);
}

.pratique__valeur a { text-decoration: none; }
.pratique__valeur a:hover { color: var(--signal-sombre); }

/* --- 20. Contenu rédactionnel ---------------------------------------------
   Applique aux blocs issus du Markdown, où l'on ne maîtrise pas le balisage. */

.prose {
    max-width: 44rem;
    font-size: var(--t-md);
    line-height: 1.75;
}

.prose > * + * { margin-top: var(--e-4); }

.prose h2 { font-size: var(--t-lg); margin-top: var(--e-7); }
.prose h3 { font-size: var(--t-md); margin-top: var(--e-6); }

.prose h2 + *, .prose h3 + * { margin-top: var(--e-3); }

.prose ul, .prose ol { padding-left: var(--e-5); }
.prose li + li { margin-top: var(--e-2); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose a { color: var(--signal-sombre); }

.prose img { border-radius: var(--rayon-doux); margin-block: var(--e-5); }

.prose blockquote {
    border-left: 2px solid var(--signal);
    padding-left: var(--e-5);
    color: var(--texte-doux);
    font-style: italic;
}

.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.prose th, .prose td { padding: var(--e-2) var(--e-3); border: 1px solid var(--bordure); text-align: left; }
.prose th { background: var(--fond-doux); }

.prose hr { border: 0; border-top: 1px solid var(--bordure); margin-block: var(--e-6); }

.prose code {
    font-family: var(--police-data);
    font-size: .9em;
    background: var(--fond-doux);
    padding: .1em .35em;
    border-radius: var(--rayon);
}

/* --- 21. Pagination -------------------------------------------------------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--e-3);
    margin-top: var(--e-7);
    padding-top: var(--e-5);
    border-top: var(--trait);
}

.pagination__vide { visibility: hidden; }

/* --- 22. Filtres ----------------------------------------------------------- */

.filtres {
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-2);
}

.filtre {
    display: inline-flex;
    align-items: baseline;
    gap: var(--e-2);
    padding: var(--e-2) var(--e-3);
    font-size: var(--t-sm);
    text-decoration: none;
    border: var(--trait);
    border-radius: 100px;
    transition: border-color var(--duree) var(--courbe), background-color var(--duree) var(--courbe);
}

.filtre:hover { border-color: var(--encre); }

.filtre[aria-current="true"] {
    background: var(--encre);
    border-color: var(--encre);
    color: var(--texte-inverse);
}

.filtre__compte {
    font-family: var(--police-data);
    font-size: var(--t-xs);
    color: var(--texte-doux);
}

.filtre[aria-current="true"] .filtre__compte { color: rgba(245, 247, 246, .65); }

/* --- 23. Liste d'articles -------------------------------------------------- */

.liste-articles { display: grid; gap: 0; }

.article-ligne {
    position: relative;
    display: grid;
    gap: var(--e-2) var(--e-5);
    padding-block: var(--e-5);
    border-bottom: var(--trait);
    align-items: start;
}

@media (min-width: 48rem) {
    .article-ligne { grid-template-columns: 7rem 1fr; }
}

.article-ligne__date {
    display: flex;
    flex-direction: column;
    font-family: var(--police-data);
    line-height: 1.15;
}

.article-ligne__jour { font-size: var(--t-lg); font-weight: 500; }

.article-ligne__mois {
    font-size: var(--t-xs);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--texte-doux);
}

.article-ligne__titre { font-size: var(--t-md); margin-top: var(--e-1); }
.article-ligne__titre a { text-decoration: none; }
.article-ligne__titre a::after { content: ""; position: absolute; inset: 0; }
.article-ligne:hover .article-ligne__titre { color: var(--signal-sombre); }

.article-ligne__extrait { margin-top: var(--e-2); color: var(--texte-doux); font-size: var(--t-sm); }

/* --- 24. Liste de documents ------------------------------------------------ */

.doc-liste { display: grid; gap: 0; }

.doc {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--e-4);
    padding: var(--e-4) var(--e-2);
    border-bottom: var(--trait);
    text-decoration: none;
    transition: background-color var(--duree) var(--courbe), padding-left var(--duree) var(--courbe);
}

.doc:hover { background: var(--fond-doux); padding-left: var(--e-4); }

.doc__icone { flex: none; color: var(--texte-doux); }
.doc:hover .doc__icone { color: var(--signal-sombre); }

.doc__corps { flex: 1; min-width: 0; }

.doc__titre { font-weight: 500; }

.doc__meta {
    font-family: var(--police-data);
    font-size: var(--t-xs);
    color: var(--texte-doux);
    letter-spacing: .04em;
}

/* --- 25. État vide --------------------------------------------------------- */

.vide {
    padding: var(--e-8) var(--e-5);
    text-align: center;
    border: 1px dashed var(--bordure);
    border-radius: var(--rayon-doux);
    color: var(--texte-doux);
}

.vide__titre { font-family: var(--police-titre); font-size: var(--t-md); color: var(--texte); }
.vide p { margin-top: var(--e-2); font-size: var(--t-sm); }

/* --- 26. Fiche membre ------------------------------------------------------ */

.membres { display: grid; gap: 0; }

.membre {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--e-3);
    padding-block: var(--e-4);
    border-bottom: var(--trait);
}

.membre__nom { font-weight: 500; }
.membre__prenom { color: var(--texte-doux); font-weight: 400; }

/* --- 27. Page avec menu latéral -------------------------------------------- */

.page-avec-menu { display: grid; gap: var(--e-7); }

/* min-width: 0 : sans lui, le min-content d'un tableau en nowrap traverse
   l'enveloppe défilante et élargit la grille au-delà du viewport. */
.page-avec-menu > * { min-width: 0; }

@media (min-width: 62rem) {
    .page-avec-menu { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--e-8); }
    .page-avec-menu__cote { position: sticky; top: 6rem; align-self: start; }
}

.menu-cote { display: grid; gap: 0; }

.menu-cote__titre {
    font-family: var(--police-data);
    font-size: var(--t-xs);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--texte-doux);
    padding-bottom: var(--e-3);
    border-bottom: 2px solid var(--encre);
}

.menu-cote__lien {
    padding: var(--e-3) 0;
    border-bottom: var(--trait);
    font-size: var(--t-sm);
    text-decoration: none;
    transition: color var(--duree) var(--courbe), transform var(--duree) var(--courbe);
}

.menu-cote__lien:hover { color: var(--signal-sombre); transform: translateX(var(--e-2)); }

.menu-cote__lien[aria-current="page"] {
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--signal);
    padding-left: var(--e-3);
}

/* --- 28. Actions dans un tableau ------------------------------------------- */

.actions-cellule {
    display: inline-flex;
    gap: var(--e-4);
    font-size: var(--t-xs);
    font-family: var(--police-data);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.actions-cellule a { text-decoration: none; color: var(--texte-doux); }
.actions-cellule a:hover { color: var(--signal-sombre); text-decoration: underline; }

/* --- 29. Définitions (fiches) ---------------------------------------------- */

.definitions { display: grid; gap: 0; }

.definition {
    display: grid;
    gap: var(--e-1);
    padding-block: var(--e-4);
    border-bottom: var(--trait);
}

@media (min-width: 40rem) {
    .definition { grid-template-columns: 12rem minmax(0, 1fr); gap: var(--e-5); align-items: baseline; }
}

.definition__cle {
    font-family: var(--police-data);
    font-size: var(--t-xs);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--texte-doux);
}

/* --- 30. Formulaire -------------------------------------------------------- */

.champ {
    display: grid;
    gap: var(--e-2);
    min-width: 0;
    /* Sans quoi l'espace excédentaire de la rangée se distribue entre le
       libellé et son champ quand un voisin est plus haut (texte d'aide). */
    align-content: start;
}

/* Le formulaire de calcul reste une grille lisible de deux colonnes. */
.formulaire-cout { max-width: 56rem; }

.champ__libelle { font-size: var(--t-sm); font-weight: 500; }

.champ__controle {
    /* Un select tient sa largeur de sa plus longue option : sans ces bornes,
       une liste d'arbitres ou de salles élargit la page entière en mobile. */
    width: 100%;
    min-width: 0;
    padding: var(--e-3);
    border: var(--trait);
    border-radius: var(--rayon-doux);
    background: var(--fond);
    font-size: var(--t-base);
}

.champ__controle:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }

.champ__aide { font-size: var(--t-xs); color: var(--texte-doux); }

/* --- 31. Onglets ----------------------------------------------------------- */

.onglets {
    display: flex;
    gap: var(--e-1);
    border-bottom: var(--trait);
    /* Le défilement ne sert qu'à l'horizontale (petits écrans). Sans le
       hidden vertical, le margin-bottom:-1px des onglets crée 1px de
       dépassement et une barre de défilement verticale sous Windows. */
    overflow-x: auto;
    overflow-y: hidden;
}

.onglet {
    flex: none;
    padding: var(--e-3) var(--e-4);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--texte-doux);
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--duree) var(--courbe), border-color var(--duree) var(--courbe);
}

.onglet:hover { color: var(--texte); }

.onglet[aria-selected="true"] {
    color: var(--texte);
    border-bottom-color: var(--signal);
}

.panneau { padding-top: var(--e-6); }
.panneau[hidden] { display: none; }

/* Sans JavaScript, tous les panneaux restent lisibles. */
.onglets:not([data-pret="true"]) + .panneaux .panneau[hidden] { display: block; }

/* --- 32. Changement de valeur ---------------------------------------------- */

.changement {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--e-2);
    margin-right: var(--e-4);
}

.changement__cle {
    font-family: var(--police-data);
    font-size: var(--t-xs);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--texte-doux);
}

.changement__nouveau { font-weight: 500; }
.changement__ancien { color: var(--texte-doux); }

.carte__entete-equipe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--e-3);
}

.carte--forfait { opacity: .62; }

/* --- 33. Décisions --------------------------------------------------------- */

.decisions { display: grid; gap: var(--e-4); }

.decision {
    padding: var(--e-5);
    border: var(--trait);
    border-left: 2px solid var(--signal);
    border-radius: var(--rayon-doux);
    background: var(--fond);
}

.decision__entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--e-3);
}

.decision__titre { font-size: var(--t-md); margin-top: var(--e-3); }

.decision__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-2);
    margin-top: var(--e-2);
    font-size: var(--t-sm);
    color: var(--texte-doux);
}

.decision__motif {
    margin-top: var(--e-4);
    padding-top: var(--e-4);
    border-top: var(--trait);
    font-size: var(--t-sm);
    line-height: 1.7;
}

/* --- 34. Montants (résultat du calcul arbitre) ------------------------------ */

.montants {
    display: grid;
    gap: var(--e-5);
    grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
}

.montant {
    padding: var(--e-5);
    border: var(--trait);
    border-top: 2px solid var(--signal);
    border-radius: var(--rayon-doux);
    display: grid;
    gap: var(--e-2);
}

.montant__type {
    font-family: var(--police-data);
    font-size: var(--t-xs);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--texte-doux);
}

.montant__total {
    font-family: var(--police-titre);
    font-size: var(--t-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.menu-cote__groupe {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--e-2);
    margin-top: var(--e-5);
    padding-bottom: var(--e-2);
    font-family: var(--police-data);
    font-size: var(--t-xs);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--texte);
    border-bottom: var(--trait);
}

.menu-cote__groupe small { font-size: inherit; letter-spacing: normal; text-transform: none; }

/* --- 35. Bandeau cookies ---------------------------------------------------- */

/* Le consentement est un choix bloquant : un voile intercepte tout clic
   hors du dialogue tant qu'Accepter ou Refuser n'a pas été pressé. */
.voile-cookies {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: var(--e-4);
    background: rgba(19, 20, 23, .6);
}

.bandeau-cookies {
    width: 100%;
    max-width: 34rem;
    padding: var(--e-6);
    background: var(--fond);
    color: var(--texte);
    border-top: 4px solid var(--signal);
    box-shadow: var(--ombre-portee);
}

.bandeau-cookies__titre { font-size: var(--t-lg); }

.bandeau-cookies__texte { margin-top: var(--e-3); font-size: var(--t-sm); color: var(--texte-doux); }

.bandeau-cookies__actions { display: flex; gap: var(--e-3); margin-top: var(--e-5); }

/* --- 36. Désignations et magazine ------------------------------------------ */

.designation-courante {
    margin-top: var(--e-5);
    padding: var(--e-5);
    border: var(--trait);
    border-top: 2px solid var(--signal);
    border-radius: var(--rayon-doux);
}

.archives summary {
    cursor: pointer;
    font-weight: 500;
    font-size: var(--t-sm);
    padding-block: var(--e-2);
}

.archives summary:hover { color: var(--signal-sombre); }

.mag {
    display: grid;
    gap: var(--e-3);
    text-decoration: none;
}

.mag__couverture {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: var(--trait);
    border-radius: var(--rayon-doux);
    transition: transform var(--duree) var(--courbe), box-shadow var(--duree) var(--courbe);
}

.mag:hover .mag__couverture {
    transform: translateY(-3px);
    box-shadow: var(--ombre-portee);
}

.mag__titre { font-weight: 500; font-size: var(--t-sm); }
.mag:hover .mag__titre { color: var(--signal-sombre); }

/* --- 37. En-tête de page avec image ----------------------------------------- */

.page-entete--image {
    background-image:
        linear-gradient(rgba(11, 31, 38, .82), rgba(11, 31, 38, .82)),
        var(--image);
    background-size: cover;
    background-position: center;
}

/* --- 38. Ajustements responsive -------------------------------------------
   Déclarés en fin de feuille à dessein : ces éléments portent aussi les classes
   .bouton et .recherche, définies plus haut avec la même spécificité. Placer
   ces règles avant elles les rendrait inopérantes. */

/* Dans la barre d'en-tête, le bouton s'aligne sur la hauteur des liens de
   navigation ; la taille standard de .bouton est pensée pour le contenu. */
.entete__encoder {
    padding: var(--e-2) var(--e-4);
    font-size: var(--t-xs);
    white-space: nowrap;
}

@media (max-width: 74.999rem) {
    .entete__encoder { display: none; }
}

/* Desktop étroit : la navigation complète tient de justesse, on resserre
   liens et espacements pour éviter tout débordement de la barre. */
@media (min-width: 62rem) and (max-width: 84.999rem) {
    .nav__lien { padding-inline: .4rem; font-size: .66rem; letter-spacing: .03em; }
    .entete__barre { gap: var(--e-3); }
    .recherche { flex-basis: 7.5rem; min-width: 4.5rem; }
    .marque__logo { height: 2rem; }
}

@media (max-width: 47.999rem) {
    .recherche { display: none; }
}

/* --- 21. Mouvement --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
