/* ==========================================================================
   GLOBAL.CSS — styles communs à TOUTES les pages du site LRBC
   --------------------------------------------------------------------------
   Chaque page charge ce fichier, puis son propre fichier (ex. css/equipe.css).
   Règle simple : si un style sert sur plusieurs pages, il va ici ;
   s'il ne sert que sur une page, il va dans le CSS de la page.

   Sommaire :
     1. Variables (couleurs, polices, espacements…)  ← à modifier en priorité
     2. Police Sunborn
     3. Base (remise à zéro légère des styles du navigateur)
     4. Mise en page : conteneur, sections, grilles
     5. Composants : boutons, cartes, bandeau (hero), liens externes
     6. Header et menu burger
     7. Section « Où nous trouver ? »
     8. Footer
     9. Utilitaires
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES
   Changer une couleur ici la change sur tout le site.
   Utilisation dans le CSS : color: var(--bleu-nuit);
   ========================================================================== */
:root {
    /* Couleurs du club */
    --bleu-nuit: #130f3d;      /* couleur principale (textes, fonds sombres) */
    --bleu-marine: #060c5f;
    --bleu-clair: #9bb5c8;
    --creme: #f5f5ef;          /* fond des pages */
    --orange: #ef9430;         /* l'orange du club : titres, boutons, détails */
    --orange-survol: #d97f1f;  /* fond des boutons orange au survol */
    --orange-texte: #a85b0c;   /* orange foncé, pour un TEXTE orange sur fond clair (lisible) */
    --blanc: #ffffff;
    --texte: #2b2940;          /* couleur des paragraphes */
    --texte-doux: #5b5873;     /* textes secondaires (dates, légendes) */

    /* Police Sunborn sur tout le site (titres et textes).
       Les polices suivantes ne servent que si Sunborn ne se charge pas. */
    --police-titres: 'Sunborn', 'Arial Black', sans-serif;
    --police-texte: 'Sunborn', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Tailles de titres « fluides » : elles grandissent avec l'écran
       clamp(minimum, idéal, maximum) */
    --taille-h1: clamp(2rem, 1.2rem + 3.5vw, 3.5rem);
    --taille-h2: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
    --taille-h3: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);

    /* Espacements (toujours utiliser ceux-là pour rester cohérent) */
    --espace-xs: 0.25rem;   /*  4px */
    --espace-s: 0.5rem;     /*  8px */
    --espace-m: 1rem;       /* 16px */
    --espace-l: 2rem;       /* 32px */
    --espace-xl: 4rem;      /* 64px */

    /* Divers */
    --largeur-max: 1200px;          /* largeur maximale du contenu */
    --marge-cotes: 1rem;            /* marge gauche/droite sur mobile (16px) */
    --hauteur-header: 72px;
    --rayon: 12px;                  /* arrondi des cartes et boutons */
    --ombre: 0 4px 14px rgba(19, 15, 61, 0.12);
    --ombre-forte: 0 10px 28px rgba(19, 15, 61, 0.22);
    --transition: 0.25s ease;
}


/* ==========================================================================
   2. POLICE SUNBORN (fichier dans le dossier fonts/)
   ========================================================================== */
@font-face {
    font-family: 'Sunborn';
    src: url('../fonts/sunborn-sans-one.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* affiche le texte tout de suite, la police arrive ensuite */
}


/* ==========================================================================
   3. BASE
   ========================================================================== */

/* Les largeurs incluent les marges intérieures (évite les débordements) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Quand on clique sur une ancre (#bureau…), le header collant ne cache pas le titre */
    scroll-padding-top: calc(var(--hauteur-header) + var(--espace-m));
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--police-texte);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--texte);
    background-color: var(--creme);
    /* Le footer reste en bas même si la page est courte */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4 {
    font-family: var(--police-titres);
    font-weight: normal;
    line-height: 1.2;
    color: var(--bleu-nuit);
    margin: 0 0 var(--espace-m);
}

h1 { font-size: var(--taille-h1); }
h2 { font-size: var(--taille-h2); }
h3 { font-size: var(--taille-h3); }

p {
    margin: 0 0 var(--espace-m);
}

/* Les images et vidéos ne dépassent jamais de leur conteneur */
img,
video,
iframe {
    max-width: 100%;
    display: block;
}

img,
video {
    height: auto;
}

a {
    color: var(--bleu-marine);
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--orange-texte);
}

/* Contour bien visible quand on navigue au clavier (touche Tab) */
:focus-visible {
    outline: 3px solid var(--orange-texte);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Respecte le réglage « réduire les animations » du téléphone / ordinateur */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================================================
   4. MISE EN PAGE
   ========================================================================== */

/* Conteneur : centre le contenu et limite sa largeur
   (16px de marge de chaque côté sur mobile) */
.conteneur {
    width: min(100% - 2 * var(--marge-cotes), var(--largeur-max));
    margin-inline: auto;
}

/* Section : un bloc de page avec de l'espace en haut et en bas */
.section {
    padding-block: var(--espace-xl);
}

/* Variante de couleur de section (le fond normal des pages est crème) */
.section--sombre {
    background-color: var(--bleu-nuit);
    color: var(--creme);
}

.section--sombre h2,
.section--sombre h3 {
    color: var(--orange);
}

.section--sombre a:not(.btn) {
    color: var(--creme);
}

/* Titre de section centré */
.titre-section {
    text-align: center;
    margin-bottom: var(--espace-l);
}

/* Paragraphe d'introduction centré sous un titre */
.intro {
    max-width: 65ch;
    margin: 0 auto var(--espace-l);
    text-align: center;
    font-size: 1.1rem;
}

/* Grille automatique : autant de colonnes que la place le permet.
   Largeur mini d'une colonne réglable : style="--colonne-min: 200px" */
.grille {
    display: grid;
    gap: var(--espace-l);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--colonne-min, 260px)), 1fr));
}


/* ==========================================================================
   5. COMPOSANTS
   ========================================================================== */

/* ---------- 5a. BOUTONS ----------
   Utilisation : <a class="btn btn--primaire" href="...">Texte</a>
   Variantes :
     .btn--primaire : orange, pour l'action principale
     .btn--sombre   : bleu nuit plein
     .btn--contour  : transparent avec bordure (sur fond clair)
     .btn--clair    : transparent bordure crème (sur fond sombre ou photo)
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--espace-s);
    min-height: 44px;                 /* taille minimale confortable au doigt */
    padding: 0.7rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--rayon);
    font-family: var(--police-titres);
    font-size: 1.05rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Orange : texte bleu nuit pour un bon contraste (lisible par tous) */
.btn--primaire {
    background-color: var(--orange);
    color: var(--bleu-nuit);
}

.btn--primaire:hover {
    background-color: var(--orange-survol);
    color: var(--bleu-nuit);
}

.btn--sombre {
    background-color: var(--bleu-nuit);
    color: var(--creme);
}

.btn--sombre:hover {
    background-color: var(--bleu-marine);
    color: var(--creme);
}

.btn--contour {
    background-color: transparent;
    border-color: var(--bleu-nuit);
    color: var(--bleu-nuit);
}

.btn--contour:hover {
    background-color: var(--bleu-nuit);
    color: var(--creme);
}

.btn--clair {
    background-color: transparent;
    border-color: var(--creme);
    color: var(--creme);
}

.btn--clair:hover {
    background-color: var(--creme);
    color: var(--bleu-nuit);
}

/* Bouton qui prend toute la largeur */
.btn--large {
    width: 100%;
}

/* Groupe de boutons côte à côte (passent à la ligne si besoin) */
.groupe-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--espace-m);
    justify-content: center;
}


/* ---------- 5b. CARTES ----------
   Carte classique (image en haut, texte en dessous) :
   <article class="carte">
     <img class="carte__image" src="..." alt="...">
     <div class="carte__contenu">
       <h3 class="carte__titre">Titre</h3>
       <p>Texte</p>
     </div>
   </article>
*/
.carte {
    display: flex;
    flex-direction: column;
    background-color: var(--blanc);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.carte__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.carte__contenu {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--espace-s);
    padding: var(--espace-l) var(--espace-m);
}

.carte__titre {
    margin: 0;
}

/* Pousse le bouton d'une carte tout en bas */
.carte__contenu .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Carte qui « se soulève » au survol (quand toute la carte est cliquable) */
.carte--survol:hover,
.carte--survol:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--ombre-forte);
}

/* Carte photo : image en fond, texte blanc par-dessus (en bas)
   <a class="carte-photo" href="...">
     <img src="..." alt="...">
     <div class="carte-photo__texte"><h3>Titre</h3><p>Sous-titre</p></div>
   </a>
*/
.carte-photo {
    position: relative;
    display: block;
    border-radius: var(--rayon);
    overflow: hidden;
    color: var(--blanc);
    text-decoration: none;
    box-shadow: var(--ombre);
    aspect-ratio: 3 / 4;
    transition: transform var(--transition), box-shadow var(--transition);
}

.carte-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dégradé sombre en bas pour que le texte reste lisible */
.carte-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 15, 61, 0.85) 0%, rgba(19, 15, 61, 0) 55%);
    z-index: 1;
}

.carte-photo__texte {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: var(--espace-m);
    text-align: center;
}

.carte-photo__texte h3 {
    color: var(--blanc);
    margin-bottom: var(--espace-xs);
}

.carte-photo__texte p {
    margin: 0;
}

/* Carte photo qui ouvre un site externe : l'icône ↗ se place dans le coin */
.carte-photo[target="_blank"]::after {
    position: absolute;
    top: var(--espace-m);
    right: var(--espace-m);
    z-index: 2;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
}

a.carte-photo:hover,
a.carte-photo:focus-visible {
    color: var(--blanc);
    transform: translateY(-4px);
    box-shadow: var(--ombre-forte);
}


/* Carte d'actu (générée par includes/actus.php : accueil, page Actus, article)
   Le lien du titre est « étiré » pour que toute la carte soit cliquable */
.carte-actu {
    position: relative;
}

.carte-actu__date {
    font-size: 0.9rem;
    color: var(--texte-doux);
}

/* Même taille de titre que la carte soit en h2 (page Actus) ou en h3 (accueil) */
.carte-actu .carte__titre {
    font-size: var(--taille-h3);
}

.carte-actu__lien {
    color: var(--bleu-nuit);
    text-decoration: none;
}

.carte-actu__lien::after {
    content: "";
    position: absolute;
    inset: 0;
}

.carte-actu__lien:focus-visible {
    outline: none;
}

.carte-actu:focus-within {
    outline: 3px solid var(--orange-texte);
    outline-offset: 3px;
}

.carte-actu__lire {
    margin-top: auto;
    font-weight: bold;
    color: var(--bleu-marine);
}

.carte-actu:hover .carte-actu__lire {
    color: var(--orange-texte);
}

/* Liste de cartes d'actus */
.liste-actus {
    --colonne-min: 280px;
}

/* Erreur dans data/actus.json (visible seulement en local) */
.actus-erreur {
    padding: var(--espace-m);
    margin-bottom: var(--espace-l);
    border: 2px solid #c0392b;
    border-radius: var(--rayon);
    background: #fdecea;
    color: #7b1d14;
}


/* ---------- 5c. BANDEAU (grande photo en haut de page) ----------
   <section class="bandeau" style="background-image: url('/image/fond.jpg')">
     <div class="bandeau__encadre">
       <h1>Titre</h1>
       <a class="btn btn--clair" href="...">Bouton</a>
     </div>
   </section>
*/
.bandeau {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(380px, 75vh, 760px);
    padding: var(--espace-xl) var(--marge-cotes);
    background-color: var(--bleu-nuit);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bandeau__encadre {
    max-width: 36rem;
    padding: var(--espace-l);
    text-align: center;
    color: var(--creme);
    /* Voile noir à 70 % : le titre orange reste lisible même sur une zone claire de la photo */
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--blanc);
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.bandeau__encadre h1 {
    color: var(--orange);
}

.bandeau__encadre > :last-child {
    margin-bottom: 0;
}


/* ---------- 5d. LIENS EXTERNES ----------
   Tout lien qui ouvre un autre site (target="_blank") reçoit
   automatiquement une petite flèche ↗ après le texte.
   Les lecteurs d'écran annoncent « (nouvel onglet) ».
   Pour une image cliquable (logo, photo), on ajoute class="sans-icone"
   pour ne pas afficher la flèche. */
a[target="_blank"]:not(.sans-icone)::after {
    content: "";
    content: "" / " (nouvel onglet)";
    display: inline-block;
    flex-shrink: 0;
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.3em;
    vertical-align: -0.05em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M21 3l-9 9M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M21 3l-9 9M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") no-repeat center / contain;
}


/* ==========================================================================
   6. HEADER ET MENU
   Sur ordinateur : menu horizontal.
   En dessous de 1100px : bouton burger qui ouvre/ferme le menu
   (le JavaScript est dans js/menu.js).
   ========================================================================== */

/* Lien « Aller au contenu » : invisible, apparaît avec la touche Tab */
.lien-evitement {
    position: absolute;
    left: var(--espace-m);
    top: -100px;
    z-index: 200;
    padding: var(--espace-s) var(--espace-m);
    background: var(--orange);
    color: var(--bleu-nuit);
    border-radius: var(--rayon);
    font-weight: bold;
}

.lien-evitement:focus {
    top: var(--espace-s);
}

/* Le header reste collé en haut de l'écran quand on fait défiler */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(245, 245, 239, 0.97);
    color: var(--bleu-nuit);
    border-bottom: 1px solid rgba(19, 15, 61, 0.12);
    box-shadow: 0 2px 10px rgba(19, 15, 61, 0.08);
}

.site-header__barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--espace-m);
    width: min(100% - 2 * var(--marge-cotes), 1400px);
    min-height: var(--hauteur-header);
    margin-inline: auto;
}

.site-header__logo img {
    height: 46px;
    width: auto;
}

/* --- Menu (ordinateur) --- */
.menu {
    display: flex;
    align-items: center;
    gap: var(--espace-m);
}

.menu__liste {
    display: flex;
    align-items: center;
    gap: var(--espace-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu__lien {
    display: flex;
    align-items: center;
    padding: var(--espace-s) 0.7rem;
    border-radius: 8px;
    color: var(--bleu-nuit);
    font-family: var(--police-titres);
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--transition), color var(--transition);
}

.menu__lien:hover {
    background-color: rgba(19, 15, 61, 0.08);
    color: var(--bleu-nuit);
}

/* Page en cours : soulignée en orange (aria-current est ajouté par header.php) */
.menu__lien[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--orange);
    border-radius: 0;
}

.menu__actions {
    display: flex;
    align-items: center;
    gap: var(--espace-s);
}

.menu__actions .btn {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Bouton burger (caché sur ordinateur) */
.burger {
    display: none;
    align-items: center;
    gap: var(--espace-s);
    min-height: 44px;
    padding: var(--espace-s) 0.75rem;
    background: transparent;
    border: 2px solid var(--bleu-nuit);
    border-radius: var(--rayon);
    color: var(--bleu-nuit);
    font-family: var(--police-titres);
    font-size: 1rem;
    cursor: pointer;
}

/* Les 3 barres du burger */
.burger__icone {
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: background-color var(--transition);
}

.burger__icone::before,
.burger__icone::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition);
}

.burger__icone::before { top: -7px; }
.burger__icone::after  { top: 7px; }

/* Menu ouvert : les 3 barres deviennent une croix */
.burger[aria-expanded="true"] .burger__icone {
    background-color: transparent;
}

.burger[aria-expanded="true"] .burger__icone::before {
    transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__icone::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Menu mobile et tablette --- */
@media (max-width: 1100px) {
    .burger {
        display: inline-flex;
    }

    /* Le menu devient un panneau qui s'ouvre sous le header */
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: var(--espace-m);
        padding: var(--espace-m) var(--marge-cotes) var(--espace-l);
        background-color: var(--creme);
        border-top: 1px solid rgba(19, 15, 61, 0.12);
        box-shadow: 0 12px 20px rgba(19, 15, 61, 0.2);
        max-height: calc(100vh - var(--hauteur-header));
        max-height: calc(100dvh - var(--hauteur-header));
        overflow-y: auto;
    }

    /* Caché par défaut… seulement si le JavaScript marche
       (sinon le menu reste affiché pour que tout le monde puisse naviguer) */
    .js .menu {
        display: none;
    }

    .js .site-header.menu-ouvert .menu {
        display: flex;
    }

    .menu__liste {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .menu__lien {
        padding: 0.9rem var(--espace-s);
        font-size: 1.15rem;
        border-bottom: 1px solid rgba(19, 15, 61, 0.1);
        border-radius: 0;
    }

    .menu__lien[aria-current="page"] {
        box-shadow: inset 4px 0 0 var(--orange);
        padding-left: var(--espace-m);
    }

    .menu__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .menu__actions .btn {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
}

/* Sans JavaScript, sur mobile, le menu s'affiche simplement sous le logo */
@media (max-width: 1100px) {
    html:not(.js) .site-header__barre { flex-wrap: wrap; }
    html:not(.js) .menu { position: static; width: 100%; box-shadow: none; }
    html:not(.js) .burger { display: none; }
}


/* ==========================================================================
   7. SECTION « OÙ NOUS TROUVER ? » (includes/ou-nous-trouver.php)
   ========================================================================== */
.ou-nous-trouver {
    background-color: var(--creme);
    background-image: url('../image/map.png');
    background-size: cover;
    background-position: 75% center;
    background-repeat: no-repeat;
    padding-block: var(--espace-xl);
}

.ou-nous-trouver__bloc {
    max-width: 26rem;
    padding: var(--espace-l);
    background: rgba(245, 245, 239, 0.92);
    border-radius: var(--rayon);
}

.ou-nous-trouver__bloc address {
    font-style: normal;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: var(--espace-l);
}

/* Sur ordinateur, on laisse la carte dessinée visible à droite */
@media (min-width: 900px) {
    .ou-nous-trouver {
        min-height: 560px;
        display: flex;
        align-items: center;
    }

    .ou-nous-trouver__bloc {
        background: transparent;
        padding-left: 0;
    }
}

/* Sur mobile, la carte passe sous le texte */
@media (max-width: 899px) {
    .ou-nous-trouver {
        padding-bottom: 260px;
        background-size: 900px auto;
        background-position: 70% bottom;
    }
}


/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
    position: relative;
    margin-top: auto;
    padding: calc(var(--espace-xl) + 20px) 0 var(--espace-l);
    background-color: var(--bleu-nuit);
    color: var(--creme);
}

/* La vague en haut du footer (même dessin que l'ancien footer.png) */
.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 40px;
    background: url('../image/footer.png') top center / auto 108px repeat-x;
}

.site-footer a {
    color: var(--creme);
}

.site-footer a:hover {
    color: var(--orange);
}

.site-footer h2 {
    font-size: 1.15rem;
    color: var(--orange);
    margin-bottom: var(--espace-m);
}

.site-footer__grille {
    display: grid;
    gap: var(--espace-l);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.site-footer__logo img {
    width: 180px;
    height: auto;
    margin-bottom: var(--espace-m);
    /* le logo est bleu foncé : on l'inverse en clair sur le fond sombre */
    filter: brightness(0) invert(0.96);
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: var(--espace-s);
}

.site-footer address {
    font-style: normal;
}

.site-footer__bas {
    margin-top: var(--espace-l);
    padding-top: var(--espace-m);
    border-top: 1px solid rgba(245, 245, 239, 0.15);
    text-align: center;
    font-size: 0.9rem;
    color: var(--bleu-clair);
}


/* ==========================================================================
   9. UTILITAIRES
   ========================================================================== */

/* Cache un texte à l'écran mais le laisse lisible par les lecteurs d'écran */
.visuellement-cache {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.texte-centre {
    text-align: center;
}

/* Animations d'apparition au défilement (déclenchées par js/animations.js).
   La classe .anim n'est ajoutée que par le JavaScript : sans JS, rien n'est caché. */
.anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--anim-delai, 0ms);
}

.anim.anim--visible {
    opacity: 1;
    transform: none;
}

/* Élément utile seulement si le JavaScript fonctionne (ex. bouton qui ouvre une fenêtre) */
html:not(.js) .js-seulement {
    display: none;
}

/* Bouton qui ressemble à un lien souligné */
.lien-bouton {
    padding: 0;
    border: none;
    background: none;
    color: var(--bleu-marine);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.lien-bouton:hover {
    color: var(--orange-texte);
}
