/* CSS Document */


@charset "utf-8";

/* =========================
   REGLAGES GENERAUX
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    font-family: Verdana, sans-serif;
    line-height: 1.4;
}

/* =========================
   EN-TETE DU SITE
   ========================= */

.entete-site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    min-width: 0;
    background-color: #222222; 
    border-bottom: 1px solid #444444; 
    width: 100%; 
}

.lien-logo {
    display: block;
    flex-shrink: 0;
}

.logo-site {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

.entete-site h1 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 24px;
    overflow-wrap: anywhere;
    text-align: center; 
    padding: 0 20px;    
}

/* LOGIQUE DES TITRES PAR DEFAUT (PC & TABLETTE) */
.titre-ordinateur {
    display: block;
}

.titre-mobile {
    display: none !important;
}

/* Ajustement automatique pour le mode clair */
body.mode-clair .entete-site {
    background-color: #eeeeee; 
    border-bottom: 1px solid #cccccc;
}

/* Lien normal */
a {
    color: orange;
    text-decoration: none;
}

/* Lien actif : page actuellement visitée */
a:active {
    color: orange;
}

/* Lien déjà visité */
a:visited {
    color: orange;
}

/* Lien au survol de la souris */
a:hover {
    color: orange;
}

/* =========================
   BOUTON HAMBURGER
   ========================= */

.hamburger {
    display: none;
    flex-shrink: 0;
    background-color: #222222;
    color: orange;
    border: 2px solid orange;
    border-radius: 5px;
    font-size: 30px;
    line-height: 1.4;
    padding: 5px 12px;
    cursor: pointer;
}

.hamburger:hover {
    background-color: #333333;
}

.hamburger:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

/* =========================
   MENU DE NAVIGATION
   ORDINATEUR (EN HAUT)
   ========================= */

.menu-navigation {
    display: block;
    background-color: #222222;
}

.menu-navigation ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 30px;
    list-style: none;
    margin: 0;
    padding: 15px;
}

.menu-navigation li {
    margin: 0;
    padding: 0;
}

.menu-navigation a {
    display: block;
    color: orange;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
}

.menu-navigation a:hover,
.menu-navigation a:focus-visible {
    color: white;
    text-decoration: underline;
}

/* =========================
   CONTENU PRINCIPAL
   ========================= */

main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444444;
    scroll-margin-top: 15px;
}

h2 {
    color: orange;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   PIED DE PAGE
   ========================= */

/* ========================================================
   NOUVEAU PIED DE PAGE EN 3 COLONNES (BANDEAU GRIS)
   ======================================================== */
/* ========================================================
   NOUVEAU PIED DE PAGE EN 3 COLONNES (POSITIONNÉ EN BAS)
   ======================================================== */
.pied-de-page-site {
    background-color: #222222; /* Même bandeau gris foncé élégant */
    color: #ffffff;            
    border-top: 1px solid #444444; 
    padding: 30px 20px;
    width: 100%;
    margin-top: 40px;          /* Espace entre la galerie des sponsors et le pied de page */
    
    /* --- FORÇAGE DE SÉCURITÉ : REPASSE IMPÉRATIVEMENT SOUS TOUS LES BLOCS --- */
    clear: both !important;    
    display: block !important;
}


/* Alignement des 3 colonnes côte à côte */
.footer-conteneur {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
}

/* Style individuel de chaque colonne */
.footer-colonne {
    flex: 1; /* Donne la même largeur égale aux 3 colonnes */
    min-width: 200px;
}

.footer-colonne h3 {
    color: orange; /* Titres de colonnes en orange pour rappeler votre charte */
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase; /* Titres en majuscules */
    border-bottom: 1px solid #444444;
    padding-bottom: 5px;
}

.footer-colonne p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Style pour la liste de liens dans le footer */
.footer-colonne ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-colonne li {
    margin-bottom: 8px;
}

.footer-colonne a {
    color: #ffffff; /* Liens du footer en blanc */
    font-size: 14px;
    text-decoration: none;
}

.footer-colonne a:hover {
    color: orange; /* Devient orange au survol */
    text-decoration: underline;
}

/* --- AJUSTEMENT AUTOMATIQUE MODE CLAIR --- */
body.mode-clair .pied-de-page-site {
    background-color: #eeeeee; /* Fond gris clair */
    color: #444444;            /* Texte gris foncé */
    border-top: 1px solid #cccccc;
}

body.mode-clair .footer-colonne h3 {
    color: #e67300;
    border-bottom-color: #cccccc;
}

body.mode-clair .footer-colonne a {
    color: #444444;
}
body.mode-clair .footer-colonne a:hover {
    color: #e67300;
}


/* =========================
   TABLETTES
   ========================= */

@media screen and (max-width: 768px) {

    body {
        background-color: #ffffff;
        color: #444444;
    }

    .entete-site {
        padding: 15px;
        gap: 10px;
    }

    .entete-site h1 {
        font-size: 18px;
        line-height: 1.4;
        color: #444444;
    }

    .logo-site {
        width: 150px;
    }

    main {
        padding: 12px;
        background-color: #ffffff;
        color: #444444;
    }

    section {
        padding: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #cccccc;
    }

    section p {
        color: #444444;
    }

    h2 {
        color: #e67300;
    }
	 h3 {
        color: #e67300;
    }

    footer {
        background-color: #eeeeee;
        color: #444444;
    }

    .menu-navigation {
        background-color: #f2f2f2;
    }

    .menu-navigation a {
        color: #e67300;
    }

    .menu-navigation a:hover,
    .menu-navigation a:focus-visible {
        color: #222222;
    }
}

/* =========================
   SMARTPHONES (SOUS 600PX)
   ========================= */

@media screen and (max-width: 600px) {

    /* --- ÉCRITURE GÉNÉRALE PLUS PETITE SUR MOBILE --- */
    body {
        font-size: 13px !important; /* Réduit la taille globale du texte du site (anc. 14px) */
    }

    .entete-site {
        padding: 12px;
        gap: 10px;
    }

    /* Permutation des titres sur smartphone */
    .titre-ordinateur {
        display: none !important;
    }
    
    .titre-mobile {
        display: block !important;
        font-size: 16px !important; /* Écriture du titre adaptée à la taille mobile */
        font-weight: bold;
        text-align: center;
        flex: 1;
        margin: 0;
        color: #ffffff;
    }
    
    body.mode-clair .titre-mobile {
        color: #444444;
    }

    /* --- CORRECTION LOGO ABSENT : FORÇAGE DES PROPORTIONS --- */
    .logo-site {
        width: 70px !important;   /* Largeur réduite idéale pour smartphone */
        max-width: 70px !important;
        height: 70px !important;  /* Force une hauteur carrée pour éviter l'écrasement à 0px */
        object-fit: contain !important; /* Prévient toute déformation de l'image */
        display: block !important;
        visibility: visible !important; /* Contre-attaque toute disparition invisible */
        margin: 0 auto;           /* Centre le logo si besoin */
    }

    .hamburger {
        display: block;
        font-size: 24px;
        padding: 4px 10px;
        background-color: #ffffff;
        color: #e67300;
        border-color: #e67300;
    }

    .menu-navigation {
        display: none !important;
    }

    .menu-navigation.menu-ouvert {
        display: block !important;
    }

    .menu-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 5px 15px 15px;
        margin: 0;
    }

    .menu-navigation li {
        display: block;
        width: 100%;
    }

    .menu-navigation a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
        color: #e67300;
        border-bottom: 1px solid #cccccc;
        font-size: 13px; /* Écriture des liens du menu plus petite */
    }

    .menu-navigation a:hover,
    .menu-navigation a:focus-visible {
        color: #222222;
    }

    /* Ajustement des zones de contenu sur mobile */
    main {
        padding: 8px;
    }

    .bandeau-texte {
        width: calc(100% - 20px) !important;
        padding: 8px 12px !important;
    }

    .bandeau-texte p {
        font-size: 13px !important; /* Texte du bandeau d'info plus petit */
    }

    .conteneur {
        margin-top: 10px;
    }

    /* L'image de l'article s'adapte aussi sur petit écran mobile */
    .image img {
        height: 140px !important; /* Réduit l'affiche de concert sur smartphone pour laisser de la place au texte */
        width: auto !important;
    }

    section {
        padding: 12px;
    }

    footer {
        padding: 12px;
        font-size: 11px; /* Pied de page plus petit */
    }
	    /* --- ADAPTATION DU FOOTER SUR SMARTPHONE --- */
    .footer-conteneur {
        flex-direction: column; /* Bascule les 3 colonnes à la verticale */
        gap: 20px;
        text-align: center; /* Centre les textes sur mobile */
    }
    
    .footer-colonne h3 {
        text-align: center;
        margin-bottom: 10px;
    }
    /* --- ADAPTATION DES COLONNES DU FOOTER SUR SMARTPHONE --- */
    .footer-conteneur {
        flex-direction: column;    /* Aligne les 3 colonnes à la verticale */
        gap: 25px;                 /* Espace aéré entre les colonnes */
    }
    
    .footer-colonne {
        width: 100%;
        text-align: center !important; /* Force le centrage absolu de toutes les données */
    }

    .footer-colonne h3 {
        text-align: center !important;
        font-size: 13px !important;    /* Titre de colonne plus petit sur mobile */
        margin-bottom: 10px;
    }

    /* Rend l'écriture de toutes les informations du footer plus petite */
    .footer-colonne p, 
    .footer-colonne a,
    .footer-colonne li {
        font-size: 12px !important;    /* Caractères plus petits et compacts (anc. 14px) */
        text-align: center !important; /* Assure le centrage parfait des textes et liens */
    }
    
    .footer-colonne ul {
        display: inline-block;         /* Permet à la liste de liens de se centrer correctement */
        text-align: center;
        width: 100%;
    }

}

/* =========================
   PETITS SMARTPHONES
   ========================= */

@media screen and (max-width: 380px) {

    .entete-site {
        gap: 8px;
        padding: 10px;
    }

    .logo-site {
        width: 70px !important;
        max-width: 70px !important;
    }

    .titre-mobile {
        font-size: 15px;
    }

    .hamburger {
        font-size: 23px;
        padding: 3px 8px;
    }
}

/* =========================
   BOUTON DE CHANGEMENT DE THEME
   ========================= */

.theme-toggle {
    padding: 8px 12px;
    border: 1px solid orange;
    border-radius: 6px;
    background: #222222;
    color: orange;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
}

.theme-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* =========================
   MODE CLAIR
   ========================= */

body.mode-clair {
    background-color: #ffffff;
    color: #444444;
}

body.mode-clair main {
    background-color: #ffffff;
    color: #444444;
}

body.mode-clair h1,
body.mode-clair h2,
body.mode-clair main p {
    color: #444444;
}

body.mode-clair .menu-navigation {
    background-color: #eeeeee;
}

body.mode-clair .menu-navigation a {
    color: #444444;
}

body.mode-clair footer {
    background-color: #eeeeee;
    color: #444444;
}

body.mode-clair .theme-toggle {
    background-color: #ffffff;
    color: #444444;
    border-color: #777777;
}

/* =========================
   THEMES SUR TABLETTE ET SMARTPHONE
   ========================= */

@media screen and (max-width: 768px) {
    body,
    body.mode-sombre {
        background-color: #000000;
        color: #ffffff;
    }
    body.mode-sombre main {
        background-color: #000000;
        color: #ffffff;
    }
    body.mode-sombre .entete-site,
    body.mode-sombre .menu-navigation {
        background-color: #222222;
    }
    body.mode-sombre .entete-site h1,
    body.mode-sombre h1,
    body.mode-sombre h2,
    body.mode-sombre main p {
        color: #ffffff;
    }
    body.mode-sombre .menu-navigation a {
        color: orange;
    }
    body.mode-sombre footer {
        background-color: #222222;
        color: #ffffff;
    }

    body.mode-clair {
        background-color: #ffffff;
        color: #444444;
    }
    body.mode-clair main {
        background-color: #ffffff;
        color: #444444;
    }
    body.mode-clair .entete-site,
    body.mode-clair .menu-navigation {
        background-color: #eeeeee;
    }
    body.mode-clair .entete-site h1,
    body.mode-clair h1,
    body.mode-clair h2,
    body.mode-clair main p {
        color: #444444;
    }
    body.mode-clair .menu-navigation a {
        color: #444444;
    }
    body.mode-clair footer {
        background-color: #eeeeee;
        color: #444444;
    }

    .theme-toggle {
        display: inline-block !important;
        font-size: 11px;
        padding: 6px 7px;
        white-space: nowrap;
    }
    body.mode-sombre .hamburger {
        background-color: #222222;
        color: orange;
        border-color: orange;
    }
    body.mode-clair .hamburger {
        background-color: #ffffff;
        color: #e67300;
        border-color: #e67300;
    }
}

/* =========================
   MESSAGES D'ERREUR
   ========================= */

.erreur-menu {
    padding: 12px;
    color: #ffcc66;
    background-color: #222222;
    text-align: center;
}

/* ========================================================
   BANDEAU DE TEXTE AU-DESSUS DU MENU (CENTRAGE & COULEUR BLANCHE)
   ======================================================== */
.bandeau-texte {
    background-color: #222222;
    color: #ffffff; 
    border: 1px solid orange;  
    border-radius: 6px;        
    padding: 10px 20px;        
    max-width: 1100px;         
    width: calc(100% - 60px);  
    margin: 15px auto !important; 
    text-align: center !important; 
}

.bandeau-texte p {
    margin: 0;                 
    font-size: 15px;
    color: #ffffff;            
    text-align: center !important; 
}

body.mode-clair .bandeau-texte {
    background-color: #eeeeee;
    color: #444444; 
    border-color: #777777;
}

body.mode-clair .bandeau-texte p {
    color: #444444;            
}

/* ========================================================
   CONTENEUR ARTICLE (IMAGE HABILLÉE ET TEXTE DESSOUS)
   ======================================================== */
.conteneur {
    display: block; 
    margin-top: 20px;
    width: 100%;
}

.image {
    float: left;            
    margin-right: 20px;     
    margin-bottom: 15px;    
}

.image img {
    height: 250px !important; 
    width: auto !important;   
    display: block;
}
.texte {
display: block;
}
.texte > *:first-child {
margin-top: 0;
}
.fin-article {
clear: both;
display: block;
}
/* ========================================================
   ALIGNEMENT DES PUCES DE SÉLECTION DANS LE TEXTE
   ======================================================= */
.texte ul {
    padding-left: 0;                 /* Supprime le décalage automatique à gauche */
    margin-top: 10px;
    margin-bottom: 10px;
    list-style-position: inside;     /* Force la puce à s'aligner à l'intérieur du texte */
}

.texte li {
    margin-bottom: 5px;              /* Ajoute un petit espace respirable entre les lignes */
}
/* ========================================================
CONFIGURATION DES SPONSORS (100X100PX ALIGNÉS)
======================================================== */
.galerie-images {
width: 100%;
margin-top: 30px;
text-align: center;
}
.galerie-conteneur {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 20px;
margin-top: 15px;
}
.galerie-conteneur img {
width: 100px !important;
height: 100px !important;
object-fit: contain;
background-color: #ffffff;
border-radius: 4px;
padding: 5px;
border: 1px solid #444444;
}
/* ========================================================
   CORRECTION FINALE INTERLIGNE ET PUCES (INDEX.HTML)
   ======================================================= */

/* Force l'interligne fluide standard sur tous les textes de la page */
#contenu-page, 
.texte, 
.texte p, 
.texte ul, 
.texte li {
    line-height: 1.4 !important; /* Interligne normal identique partout */
}

/* Aligne horizontalement les puces et ajuste les espaces verticaux */
.texte ul {
    padding-left: 0 !important;      /* Supprime le décalage automatique à gauche */
    list-style-position: inside !important; /* Aligne le point noir au pixel près avec le texte */
    margin-top: 8px !important;      /* Espace léger au-dessus de la liste */
    margin-bottom: 8px !important;   /* Espace léger en-dessous de la liste */
}

/* Supprime le double espace entre chaque ligne de puce */
.texte li {
    margin-bottom: 0 !important;     /* Interligne serré et régulier entre les lignes */
    padding-bottom: 0 !important;
}
/* ========================================================
   SÉCURITÉ DE PLACEMENT BAS DE PAGE (SPONSORS & FOOTER)
   ======================================================= */

/* Force la galerie des sponsors à attendre la fin de l'article et de l'image flottante */
#galerie-commune {
    clear: both !important;
    display: block !important;
    width: 100%;
    margin-top: 30px;
}

/* Force le pied de page en 3 colonnes à se mettre tout en bas, sous les sponsors */
.pied-de-page-site, 
#footer-commun {
    clear: both !important;
    display: block !important;
    width: 100%;
    margin-top: 40px; /* Espace respirable sous la ligne de sponsors */
}
/* ========================================================
   BANDEAU GRIS SOUS LES SPONSORS (PLEINE LARGEUR)
   ======================================================== */
#footer-commun {
    background-color: #222222;       /* Même gris foncé élégant que votre menu et en-tête */
    width: 100% !important;          /* S'étire de force sur toute la largeur de l'écran */
    margin: 40px 0 0 0 !important;   /* 40px d'espace uniquement au-dessus (sous les sponsors) */
    padding: 0 !important;
    clear: both !important;
    display: block !important;
}

/* On ajuste le pied de page à l'intérieur pour qu'il s'accorde au bandeau */
.pied-de-page-site {
    background-color: transparent !important; /* Devient transparent pour laisser voir le gris du bandeau */
    border-top: 1px solid #444444;            /* Ligne de séparation subtile juste sous les sponsors */
    padding: 30px 20px;
    width: 100%;
}

/* --- ADAPTATION AUTOMATIQUE MODE CLAIR --- */
body.mode-clair #footer-commun {
    background-color: #eeeeee;                /* Bascule sur un gris clair en mode clair */
}

body.mode-clair .pied-de-page-site {
    border-top: 1px solid #cccccc;
}
/* ========================================================
   BANDEAU GRIS DE PRÉSENTATION DES SPONSORS (PLEINE LARGEUR)
   ======================================================== */
.galerie-images {
    background-color: #222222;       /* Même gris foncé élégant que votre en-tête et menu */
    width: 100% !important;          /* S'étale sur toute la largeur de l'écran */
    margin: 40px 0 0 0 !important;   /* Espace de 40px au-dessus, se colle au footer en bas */
    padding: 30px 20px !important;   /* Espace intérieur pour respirer */
    text-align: center;
    border-top: 1px solid #444444;    /* Fine ligne de séparation discrète au-dessus */
    border-bottom: 1px solid #444444; /* Fine ligne de séparation discrète en-dessous */
    clear: both !important;
    display: block !important;
}

/* Style du texte de remerciement à l'intérieur */
.texte-sponsors {
    margin: 0 0 20px 0 !important;
    color: #ffffff !important;       /* Écriture blanche normale */
    font-size: 15px;
    font-weight: bold;
}

/* Alignement fluide des logos dans le bandeau */
.galerie-conteneur {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    max-width: 1100px;               /* Aligne la grille des logos sur votre contenu */
}

/* --- AJUSTEMENT AUTOMATIQUE POUR LE MODE CLAIR --- */
body.mode-clair .galerie-images {
    background-color: #eeeeee;       /* Bascule sur un gris clair en mode clair */
    border-top-color: #cccccc;
    border-bottom-color: #cccccc;
}

body.mode-clair .texte-sponsors {
    color: #444444 !important;       /* Écriture gris foncé en mode clair */
}
/* ========================================================
   MISE EN PAGE DE L'AGENDA DYNAMIQE
   ======================================================== */
.agenda-section {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.agenda-conteneur {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Ligne d'événement */
.agenda-bloc {
    display: flex;
    flex-direction: row;
    background-color: #111111; /* Fond légèrement plus clair que le noir pur du site */
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.agenda-bloc:hover {
    transform: translateY(-2px);
    border-color: orange;
}

/* L'étiquette de date à gauche */
.agenda-date {
    background-color: orange;
    color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90px;
    min-width: 90px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.agenda-date .jour {
    font-size: 28px;
    line-height: 1;
}

.agenda-date .mois {
    font-size: 14px;
    text-transform: uppercase;
}

.agenda-date .annee {
    font-size: 11px;
    opacity: 0.8;
}

/* Les textes de l'événement à droite */
.agenda-infos {
    padding: 15px 20px;
    flex: 1;
}

.agenda-infos h3 {
    margin: 0 0 8px 0;
    color: orange;
    font-size: 18px;
}

.agenda-infos p {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.agenda-infos .description {
    margin-top: 8px;
    color: #cccccc;
}

/* --- ADAPTATION MOBILE SMARTPHONE --- */
@media screen and (max-width: 600px) {
    .agenda-bloc {
        flex-direction: column; /* La date passe au-dessus sur petit téléphone */
    }
    .agenda-date {
        width: 100%; /* L'étiquette prend toute la largeur */
        flex-direction: row;
        gap: 10px;
        padding: 8px;
    }
    .agenda-date .jour { font-size: 20px; }
    .agenda-infos h3 { font-size: 16px; }
    .agenda-infos p { font-size: 13px; }
}

/* --- ADJUSTEMENT AUTOMATIQUE MODE CLAIR --- */
body.mode-clair .agenda-bloc {
    background-color: #f9f9f9;
    border-color: #dddddd;
}
body.mode-clair .agenda-infos .description {
    color: #555555;
}

/* =========================================
   AJUSTEMENT DU MODE SOMBRE
   ========================================= */

/* Fond général */
body:not(.mode-clair) {
    background-color: #363636;
    color: #ffffff;
}

/* Zone principale */
body:not(.mode-clair) main {
    background-color: #363636;
    color: #ffffff;
}

/* En-tête du site */
body:not(.mode-clair) .entete-site {
    background-color: #505050;
    border-bottom-color: #666666;
}

/* Menu de navigation */
body:not(.mode-clair) .menu-navigation {
    background-color: #505050;
}

/* Bouton du menu */
body:not(.mode-clair) .hamburger {
    background-color: #505050;
    color: orange;
    border-color: orange;
}

/* Bouton de changement de thème */
body:not(.mode-clair) .theme-toggle {
    background-color: #505050;
    color: orange;
}

/* Bandeau de présentation */
body:not(.mode-clair) .bandeau-texte {
    background-color: #505050;
    color: #ffffff;
}

body:not(.mode-clair) .bandeau-texte p {
    color: #ffffff;
}

/* Galerie et bandeau des sponsors */
body:not(.mode-clair) .galerie-images {
    background-color: #505050;
    border-top-color: #666666;
    border-bottom-color: #666666;
}

body:not(.mode-clair) .texte-sponsors {
    color: #ffffff;
}

/* Bandeau et pied de page */
body:not(.mode-clair) #footer-commun {
    background-color: #505050;
}

body:not(.mode-clair) .pied-de-page-site {
    background-color: transparent;
    border-top-color: #666666;
}

/* Agenda */
body:not(.mode-clair) .agenda-bloc {
    background-color: #454545;
    border-color: #666666;
}

body:not(.mode-clair) .agenda-infos .description {
    color: #e0e0e0;
}

/* Séparations entre les sections */
body:not(.mode-clair) section {
    border-bottom-color: #666666;
}


/* =========================================
   MODE SOMBRE : BANDEAUX ET TEXTE AGRANDI
   ========================================= */

body:not(.mode-clair) {
    background-color: #363636;
    color: #ffffff;
    font-size: 17px;
}

/* Fond principal */
body:not(.mode-clair) main {
    background-color: #363636;
    color: #ffffff;
}

/* En-tête et menu */
body:not(.mode-clair) .entete-site,
body:not(.mode-clair) .menu-navigation {
    background-color: #424242;
}

body:not(.mode-clair) .entete-site {
    border-bottom-color: #555555;
}

/* Bandeau de texte */
body:not(.mode-clair) .bandeau-texte {
    background-color: #424242;
    color: #ffffff;
    padding: 14px 20px;
}

body:not(.mode-clair) .bandeau-texte p {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
}

/* Bandeau des sponsors */
body:not(.mode-clair) .galerie-images {
    background-color: #424242;
    border-top-color: #555555;
    border-bottom-color: #555555;
}

body:not(.mode-clair) .texte-sponsors {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
}

/* Bandeau du pied de page */
body:not(.mode-clair) #footer-commun {
    background-color: #424242;
}

body:not(.mode-clair) .pied-de-page-site {
    border-top-color: #555555;
}

/* Texte des articles */
body:not(.mode-clair) .texte,
body:not(.mode-clair) .texte p,
body:not(.mode-clair) .texte li {
    font-size: 17px;
    line-height: 1.6;
}

/* Titres */
body:not(.mode-clair) h2 {
    font-size: 23px;
}

/* Événements de l'agenda */
body:not(.mode-clair) .agenda-bloc {
    background-color: #454545;
    border-color: #606060;
}

body:not(.mode-clair) .agenda-infos p {
    font-size: 16px;
    line-height: 1.6;
}

body:not(.mode-clair) .agenda-infos h3 {
    font-size: 20px;
}

/* Pied de page */
body:not(.mode-clair) .footer-colonne p,
body:not(.mode-clair) .footer-colonne a {
    font-size: 15px;
    line-height: 1.6;
}

/* Tablettes et smartphones en mode sombre */
@media screen and (max-width: 768px) {
    body:not(.mode-clair),
    body:not(.mode-clair) main {
        background-color: #363636;
        color: #ffffff;
    }

    body:not(.mode-clair) .entete-site h1,
    body:not(.mode-clair) h1,
    body:not(.mode-clair) h2,
    body:not(.mode-clair) p {
        color: #ffffff;
    }

    body:not(.mode-clair) .menu-navigation {
        background-color: #424242;
    }

    body:not(.mode-clair) .menu-navigation a {
        color: orange;
    }

    body:not(.mode-clair) footer {
        background-color: #424242;
        color: #ffffff;
    }
}

/* =====================================================
   CORRECTIF FINAL : MODE SOMBRE
   Fond gris, bandeaux foncés, texte agrandi
   À PLACER TOUT À LA FIN DE Messtyles.css
   ===================================================== */

/* FOND GÉNÉRAL DU MODE SOMBRE */
body.mode-sombre {
    background-color: #363636 !important;
    color: #ffffff !important;
    font-size: 17px;
}

/* CONTENU PRINCIPAL */
body.mode-sombre main {
    background-color: #363636 !important;
    color: #ffffff !important;
}

/* EN-TÊTE ET MENU */
body.mode-sombre .entete-site,
body.mode-sombre .menu-navigation {
    background-color: #424242 !important;
    color: #ffffff !important;
}

body.mode-sombre .entete-site {
    border-bottom-color: #606060 !important;
}

/* TITRES */
body.mode-sombre .entete-site h1,
body.mode-sombre h1,
body.mode-sombre h2 {
    color: #ffffff !important;
}

body.mode-sombre h2 {
    font-size: 23px !important;
}

/* TEXTE DES ARTICLES */
body.mode-sombre main p,
body.mode-sombre .texte,
body.mode-sombre .texte p,
body.mode-sombre .texte li {
    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
}

/* BANDEAU D'INFORMATION */
body.mode-sombre .bandeau-texte {
    background-color: #424242 !important;
    color: #ffffff !important;
    padding: 15px 20px !important;
}

body.mode-sombre .bandeau-texte p {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* BANDEAU DES SPONSORS */
body.mode-sombre .galerie-images {
    background-color: #424242 !important;
    border-top-color: #606060 !important;
    border-bottom-color: #606060 !important;
}

body.mode-sombre .texte-sponsors {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* BANDEAU DU PIED DE PAGE */
body.mode-sombre #footer-commun {
    background-color: #424242 !important;
}

body.mode-sombre .pied-de-page-site {
    background-color: transparent !important;
    border-top-color: #606060 !important;
}

body.mode-sombre .footer-colonne p,
body.mode-sombre .footer-colonne a {
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* AGENDA */
body.mode-sombre .agenda-bloc {
    background-color: #454545 !important;
    border-color: #606060 !important;
}

body.mode-sombre .agenda-infos p {
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

body.mode-sombre .agenda-infos h3 {
    color: orange !important;
    font-size: 20px !important;
}

/* BOUTONS */
body.mode-sombre .theme-toggle,
body.mode-sombre .hamburger {
    background-color: #424242 !important;
    color: orange !important;
}

/* CORRECTION TABLETTES ET SMARTPHONES */
@media screen and (max-width: 768px) {

    body.mode-sombre,
    body.mode-sombre main {
        background-color: #363636 !important;
        color: #ffffff !important;
    }

    body.mode-sombre .entete-site,
    body.mode-sombre .menu-navigation,
    body.mode-sombre .menu-navigation.menu-ouvert,
    body.mode-sombre footer,
    body.mode-sombre #footer-commun,
    body.mode-sombre .galerie-images {
        background-color: #424242 !important;
    }

    body.mode-sombre .entete-site h1,
    body.mode-sombre h1,
    body.mode-sombre h2,
    body.mode-sombre p,
    body.mode-sombre .menu-navigation a {
        color: #ffffff !important;
    }

    body.mode-sombre .bandeau-texte p {
        font-size: 17px !important;
    }

    body.mode-sombre .texte,
    body.mode-sombre .texte p,
    body.mode-sombre .texte li {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}

/* =========================================
   MODE SOMBRE : COULEURS ET TEXTE
   ========================================= */

body.mode-sombre {
    background-color: #363636 !important;
    color: #ffffff !important;
    font-size: 17px;
}

body.mode-sombre main {
    background-color: #363636 !important;
    color: #ffffff !important;
}

/* Bandeaux plus foncés */
body.mode-sombre .entete-site,
body.mode-sombre .menu-navigation,
body.mode-sombre .bandeau-texte,
body.mode-sombre .galerie-images,
body.mode-sombre #footer-commun {
    background-color: #424242 !important;
}

/* Texte du bandeau d'information */
body.mode-sombre .bandeau-texte p {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* Texte des articles */
body.mode-sombre .texte,
body.mode-sombre .texte p,
body.mode-sombre .texte li,
body.mode-sombre main p {
    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
}

/* Titres */
body.mode-sombre h2 {
    color: orange !important;
    font-size: 26px !important;
}

/* Bandeau des sponsors */
body.mode-sombre .texte-sponsors {
    color: #ffffff !important;
    font-size: 18px !important;
}

/* Agenda */
body.mode-sombre .agenda-bloc {
    background-color: #454545 !important;
    border-color: #606060 !important;
}

body.mode-sombre .agenda-infos p {
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

body.mode-sombre .agenda-infos h3 {
    font-size: 20px !important;
}

/* Pied de page */
body.mode-sombre .pied-de-page-site {
    background-color: transparent !important;
    color: #ffffff !important;
}

body.mode-sombre .footer-colonne p,
body.mode-sombre .footer-colonne a {
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Menu mobile et tablette */
@media screen and (max-width: 768px) {
    body.mode-sombre,
    body.mode-sombre main {
        background-color: #363636 !important;
        color: #ffffff !important;
    }

    body.mode-sombre .entete-site,
    body.mode-sombre .menu-navigation,
    body.mode-sombre .menu-navigation.menu-ouvert,
    body.mode-sombre .galerie-images,
    body.mode-sombre #footer-commun {
        background-color: #424242 !important;
    }

    body.mode-sombre .entete-site h1,
    body.mode-sombre h1,
    body.mode-sombre h2,
    body.mode-sombre p {
        color: #ffffff !important;
    }

    body.mode-sombre .texte,
    body.mode-sombre .texte p,
    body.mode-sombre .texte li {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}

/* =========================================
   MENUS ET LIENS EN ORANGE
   ========================================= */

/* Liens généraux en mode sombre */
body.mode-sombre a,
body.mode-sombre a:visited,
body.mode-sombre a:active {
    color: orange !important;
}

/* Orange plus lumineux au survol */
body.mode-sombre a:hover,
body.mode-sombre a:focus-visible {
    color: #FFB347 !important;
    text-decoration: underline;
}

/* Menu de navigation */
body.mode-sombre .menu-navigation a {
    color: orange !important;
}

body.mode-sombre .menu-navigation a:hover,
body.mode-sombre .menu-navigation a:focus-visible {
    color: #FFB347 !important;
}

/* Bouton de thème et bouton hamburger */
body.mode-sombre .theme-toggle,
body.mode-sombre .hamburger {
    color: orange !important;
    border-color: orange !important;
}

/* Titres */
body.mode-sombre h2,
body.mode-sombre .agenda-infos h3,
body.mode-sombre .footer-colonne h3,
body.mode-sombre .article-commun h2,
body.mode-sombre .article-commun h3 {
    color: orange !important;
}

/* Liens du pied de page */
body.mode-sombre .footer-colonne a,
body.mode-sombre .lien-evenements {
    color: orange !important;
}

/* Bandeau : contour assorti à la couleur du texte */

.bandeau-texte {
    border: 1px dotted currentColor !important;
    border-radius: 8px !important;
}

/* Mode sombre : contour blanc */
body.mode-sombre .bandeau-texte {
    border-color: #ffffff !important;
}

body.mode-sombre .bandeau-texte p {
    color: #ffffff !important;
}

/* Mode clair : contour gris foncé */
body.mode-clair .bandeau-texte {
    border-color: #444444 !important;
}

body.mode-clair .bandeau-texte p {
    color: #444444 !important;
}

/* =========================================
   ENCADREMENT DES ARTICLES
   ========================================= */

/* Encadré de chaque article */
#contenu-page .conteneur {
    border: 1px dotted currentColor !important;
    border-radius: 8px !important;
    padding: 18px !important;
    margin-bottom: 20px !important;
}

/* Mode sombre : contour blanc */
body.mode-sombre #contenu-page .conteneur {
    border-color: #ffffff !important;
    color: #ffffff;
}

/* Mode clair : contour gris foncé */
body.mode-clair #contenu-page .conteneur {
    border-color: #444444 !important;
    color: #444444;
}

/* Conserver les images à l'intérieur de l'encadré */
#contenu-page .conteneur img {
    max-width: 100%;
}

/* =========================================
   MENU : TEXTE PLUS PETIT ET NORMAL
   ========================================= */

.menu-navigation a {
    font-size: 14px !important;
    font-weight: normal !important;
    padding: 7px 10px;
}

/* Menu sur smartphone */
@media screen and (max-width: 600px) {
    .menu-navigation a {
        font-size: 12px !important;
        font-weight: normal !important;
        padding: 10px;
    }
}

/* =========================================
   ACCUEIL : ARTICLE PRINCIPAL PLUS LARGE
   ========================================= */

#contenu-page.accueil-trois-articles {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    width: 100%;
}

/* Les trois colonnes peuvent rétrécir sans débordement */
#contenu-page .side-left,
#contenu-page .article-principal,
#contenu-page .side-right {
    min-width: 0;
}

/* Un seul encadrement par article */
#contenu-page .article-modele {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 15px;
    border: 1px dotted currentColor;
    border-radius: 8px;
}

/* Pas de deuxième encadrement autour du conteneur */
#contenu-page .conteneur {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

/* Images adaptées à la largeur de chaque article */
#contenu-page .image {
    float: none;
    margin: 0 0 12px;
}

#contenu-page .image img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

/* Couleur des bordures selon le thème */
body.mode-clair #contenu-page .article-modele {
    border-color: #444444;
}

body:not(.mode-clair) #contenu-page .article-modele {
    border-color: #ffffff;
}

/* Tablettes : article central toujours plus large */
@media screen and (max-width: 900px) {
    #contenu-page.accueil-trois-articles {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
        gap: 12px;
    }

    #contenu-page .article-modele {
        padding: 10px;
    }
}

/* Smartphones : article principal en premier */
@media screen and (max-width: 600px) {
    #contenu-page.accueil-trois-articles {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    #contenu-page .article-principal {
        order: 1;
    }

    #contenu-page .side-left {
        order: 2;
    }

    #contenu-page .side-right {
        order: 3;
    }
}

/* ==========================================
   CORRECTION FORCÉE DES 3 COLONNES DE L'ACCUEIL
   ========================================== */

/* La grille principale */
body #contenu-page.accueil-trois-articles {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

/* Colonne gauche */
body #contenu-page.accueil-trois-articles > .side-left {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Article principal central */
body #contenu-page.accueil-trois-articles > .article-principal {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Colonne droite */
body #contenu-page.accueil-trois-articles > .side-right {
    grid-column: 3 !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Un seul encadrement par article */
body #contenu-page.accueil-trois-articles .article-modele {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border: 1px dotted currentColor !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 0 !important;
}

/* Aucun encadrement autour des conteneurs intérieurs */
body #contenu-page.accueil-trois-articles .conteneur {
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Images adaptées à chaque colonne */
body #contenu-page.accueil-trois-articles .image {
    float: none !important;
    margin: 0 0 12px 0 !important;
}

body #contenu-page.accueil-trois-articles .image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Bordures selon le thème */
body.mode-clair #contenu-page.accueil-trois-articles .article-modele {
    border-color: #444444 !important;
}

body:not(.mode-clair) #contenu-page.accueil-trois-articles .article-modele {
    border-color: #ffffff !important;
}

/* Tablettes : proportions 1 / 2 / 1 */
@media screen and (max-width: 900px) and (min-width: 601px) {
    body #contenu-page.accueil-trois-articles {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) !important;
        gap: 12px !important;
    }
}

/* Smartphones : une seule colonne */
@media screen and (max-width: 600px) {
    body #contenu-page.accueil-trois-articles {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body #contenu-page.accueil-trois-articles > .article-principal {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body #contenu-page.accueil-trois-articles > .side-left {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body #contenu-page.accueil-trois-articles > .side-right {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}

/* ==================================================
   CORRECTIONS STRICTEMENT LIMITÉES À LA PAGE D'ACCUEIL
   ================================================== */

/* Trois colonnes : côtés étroits, centre large */
body #contenu-page.accueil-trois-articles {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    align-items: start !important;
}

/* Empêche le contenu de déborder des colonnes */
body #contenu-page.accueil-trois-articles > .side-left,
body #contenu-page.accueil-trois-articles > .article-principal,
body #contenu-page.accueil-trois-articles > .side-right {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Encadrement des articles */
body #contenu-page.accueil-trois-articles .article-modele {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 15px !important;
    margin: 0 !important;
    border: 1px dotted currentColor !important;
    border-radius: 8px !important;
    overflow-wrap: anywhere;
}

/* Les titres restent dans les cadres */
body #contenu-page.accueil-trois-articles .article-modele h2,
body #contenu-page.accueil-trois-articles .article-modele h3 {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal;
    box-sizing: border-box;
}

/* Pas de cadre supplémentaire sur les conteneurs */
body #contenu-page.accueil-trois-articles .conteneur {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Image principale : taille raisonnable */
body #contenu-page.accueil-trois-articles > .article-principal .image {
    float: none !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 15px !important;
}

body #contenu-page.accueil-trois-articles > .article-principal .image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 300px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* Images des colonnes latérales */
body #contenu-page.accueil-trois-articles > .side-left img,
body #contenu-page.accueil-trois-articles > .side-right img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* Couleurs des cadres */
body.mode-clair #contenu-page.accueil-trois-articles .article-modele {
    border-color: #444444 !important;
}

body:not(.mode-clair) #contenu-page.accueil-trois-articles .article-modele {
    border-color: #ffffff !important;
}

/* Tablettes */
@media screen and (max-width: 900px) and (min-width: 601px) {
    body #contenu-page.accueil-trois-articles {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    body #contenu-page.accueil-trois-articles .article-modele {
        padding: 10px !important;
    }
}

/* Smartphones */
@media screen and (max-width: 600px) {
    body #contenu-page.accueil-trois-articles {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 15px !important;
    }

    body #contenu-page.accueil-trois-articles > .article-principal {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body #contenu-page.accueil-trois-articles > .side-left {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body #contenu-page.accueil-trois-articles > .side-right {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}

/* =====================================================
   ACCUEIL UNIQUEMENT : TROIS ARTICLES SUR TOUTE LA LARGEUR
   ===================================================== */

body #contenu-page.accueil-trois-articles {
    display: grid !important;

    /* Gauche : 20 % - Centre : 60 % - Droite : 20 % */
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr) !important;

    gap: 20px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 20px !important;

    box-sizing: border-box !important;
    align-items: start !important;
}

/* Les trois colonnes utilisent toute la largeur disponible */
body #contenu-page.accueil-trois-articles > .side-left,
body #contenu-page.accueil-trois-articles > .article-principal,
body #contenu-page.accueil-trois-articles > .side-right {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Les articles remplissent leur colonne sans déborder */
body #contenu-page.accueil-trois-articles .article-modele {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Aucun encadrement supplémentaire autour des conteneurs */
body #contenu-page.accueil-trois-articles .conteneur {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Image principale : taille maîtrisée */
body #contenu-page.accueil-trois-articles > .article-principal .image {
    float: none !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 15px !important;
}

body #contenu-page.accueil-trois-articles > .article-principal .image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 300px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* Tablettes : proportions conservées */
@media screen and (max-width: 900px) and (min-width: 601px) {
    body #contenu-page.accueil-trois-articles {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
    }
}

/* Smartphones : articles empilés */
@media screen and (max-width: 600px) {
    body #contenu-page.accueil-trois-articles {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 15px !important;
        padding: 10px !important;
    }

    body #contenu-page.accueil-trois-articles > .article-principal {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body #contenu-page.accueil-trois-articles > .side-left {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body #contenu-page.accueil-trois-articles > .side-right {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}

/* =====================================================
   MISE EN PAGE GLOBALE : TROIS COLONNES
   Gauche 1 part | Centre 3 parts | Droite 1 part
   ===================================================== */

body .mise-en-page {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 3fr)
        minmax(0, 1fr) !important;

    gap: 20px !important;
    align-items: start !important;

    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px !important;

    box-sizing: border-box !important;
}

/* =====================================================
   CONTENU CENTRAL : LARGEUR COMPLÈTE DE SA COLONNE
   ===================================================== */

body .mise-en-page > #contenu-page {
    grid-column: 2;
    grid-row: 1;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

/* =====================================================
   COLONNES LATÉRALES
   ===================================================== */

body .mise-en-page > .article-commun,
body .mise-en-page > .infos-commun {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 15px !important;

    box-sizing: border-box !important;

    border: 1px dotted currentColor;
    border-radius: 8px;

    overflow-wrap: anywhere;
}

/* Positions des colonnes */
body .mise-en-page > .article-commun {
    grid-column: 1;
    grid-row: 1;
}

body .mise-en-page > .infos-commun {
    grid-column: 3;
    grid-row: 1;
}

/* Titres : ils restent à l'intérieur des cadres */
body .mise-en-page > .article-commun h2,
body .mise-en-page > .article-commun h3,
body .mise-en-page > .infos-commun h2,
body .mise-en-page > .infos-commun h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

body .mise-en-page > .article-commun h2,
body .mise-en-page > .infos-commun h2 {
    margin-top: 0;
    font-size: 20px;
    color: orange;
}

body .mise-en-page > .article-commun h3,
body .mise-en-page > .infos-commun h3 {
    font-size: 16px;
    color: orange;
}

/* Images des colonnes latérales */
body .mise-en-page > .article-commun img,
body .mise-en-page > .infos-commun img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 10px auto;
}

/* Listes sans débordement */
body .mise-en-page > .article-commun ul,
body .mise-en-page > .infos-commun ul {
    padding-left: 18px;
    overflow-wrap: anywhere;
}

body .mise-en-page > .article-commun li,
body .mise-en-page > .infos-commun li {
    margin-bottom: 8px;
}

/* Liens des colonnes latérales */
body .mise-en-page > .article-commun a,
body .mise-en-page > .infos-commun a {
    color: orange;
    overflow-wrap: anywhere;
}

body .mise-en-page > .article-commun a:hover,
body .mise-en-page > .infos-commun a:hover {
    text-decoration: underline;
}

/* =====================================================
   MODE SOMBRE
   ===================================================== */

body:not(.mode-clair) .mise-en-page > .article-commun,
body:not(.mode-clair) .mise-en-page > .infos-commun {
    color: #ffffff;
    border-color: #ffffff;
}

/* =====================================================
   MODE CLAIR
   ===================================================== */

body.mode-clair .mise-en-page > .article-commun,
body.mode-clair .mise-en-page > .infos-commun {
    color: #444444;
    border-color: #444444;
    background-color: #ffffff;
}

/* =====================================================
   TABLETTES
   ===================================================== */

@media screen and (max-width: 900px) and (min-width: 601px) {
    body .mise-en-page {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 2fr)
            minmax(0, 1fr) !important;

        gap: 12px !important;
        padding: 12px !important;
    }

    body .mise-en-page > .article-commun,
    body .mise-en-page > .infos-commun {
        padding: 10px !important;
    }

    body .mise-en-page > .article-commun h2,
    body .mise-en-page > .infos-commun h2 {
        font-size: 17px;
    }
}

/* =====================================================
   SMARTPHONES : UNE COLONNE
   ===================================================== */

@media screen and (max-width: 600px) {
    body .mise-en-page {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 15px !important;
        padding: 10px !important;
    }

    /* Le contenu de la page apparaît en premier */
    body .mise-en-page > #contenu-page {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body .mise-en-page > .article-commun {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body .mise-en-page > .infos-commun {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    body .mise-en-page > .article-commun,
    body .mise-en-page > .infos-commun {
        padding: 12px !important;
    }
}

/* Image de l'article principal : hauteur maximale de 250 px */
body #contenu-page .article-modele img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: contain;
    margin: 10px auto;
}

/* ==========================================
   ARTICLE PRINCIPAL : IMAGE À GAUCHE, TEXTE À DROITE
   ========================================== */

body #contenu-page .article-modele img {
    float: left !important;
    display: block;
    width: auto !important;
    max-width: 45% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: contain;
    margin: 0 20px 15px 0 !important;
}

/* Le texte commence à la hauteur de l'image */
body #contenu-page .article-modele p {
    display: block;
    margin-top: 0;
}

/* Empêche l'image de déborder sur la suite de l'article */
body #contenu-page .article-modele .fin-article {
    clear: both;
    display: block;
}

/* Sur smartphone : image plus petite, toujours à gauche */
@media screen and (max-width: 600px) {
    body #contenu-page .article-modele img {
        max-width: 40% !important;
        max-height: 180px !important;
        margin: 0 12px 10px 0 !important;
    }
}

/* Image alignée à gauche dans l'article principal */
body #contenu-page .article-modele img.image-gauche,
body #contenu-page .article-modele img {
    float: left !important;
    position: static !important;
    display: block !important;

    width: auto !important;
    max-width: 45% !important;
    height: auto !important;
    max-height: 250px !important;

    margin: 0 20px 15px 0 !important;
    object-fit: contain;
}

/* Le texte démarre à droite de l'image */
body #contenu-page .article-modele p {
    text-align: left;
}

/* Arrêt de l'habillage après l'image */
body #contenu-page .article-modele .fin-article {
    clear: both !important;
}

/* Adaptation aux smartphones */
@media screen and (max-width: 600px) {
    body #contenu-page .article-modele img {
        max-width: 40% !important;
        max-height: 180px !important;
        margin-right: 12px !important;
    }
}



/* =====================================================
   CORRECTION ACCUEIL :
   les colonnes latérales sont créées par article.js
   dans .mise-en-page. #contenu-page ne contient donc
   que l'article principal.
   ===================================================== */

body #contenu-page.accueil-trois-articles {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body #contenu-page.accueil-trois-articles > .article-principal {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body #contenu-page.accueil-trois-articles > .side-left,
body #contenu-page.accueil-trois-articles > .side-right {
    display: none !important;
}


/* =====================================================
   CORRECTION ARTICLE PRINCIPAL :
   image à gauche et texte habillé à sa droite
   ===================================================== */

body #contenu-page.accueil-trois-articles > .article-principal .conteneur {
    display: flow-root !important;
    text-align: left !important;
}

body #contenu-page.accueil-trois-articles > .article-principal .image {
    float: left !important;
    display: block !important;
    width: auto !important;
    max-width: 45% !important;
    margin: 0 18px 12px 0 !important;
    padding: 0 !important;
}

body #contenu-page.accueil-trois-articles > .article-principal .image img {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    margin: 0 !important;
    object-fit: contain !important;
}

body #contenu-page.accueil-trois-articles > .article-principal .texte {
    display: block !important;
    width: auto !important;
    text-align: left !important;
}

body #contenu-page.accueil-trois-articles > .article-principal .texte > *:first-child {
    margin-top: 0 !important;
}

body #contenu-page.accueil-trois-articles > .article-principal .fin-article {
    clear: both !important;
}

@media screen and (max-width: 600px) {
    body #contenu-page.accueil-trois-articles > .article-principal .image {
        max-width: 40% !important;
        margin-right: 12px !important;
    }

    body #contenu-page.accueil-trois-articles > .article-principal .image img {
        max-height: 180px !important;
    }
}


/* === Correctifs communs : colonnes et ordre mobile === */
body .mise-en-page { display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,3fr) minmax(0,1fr) !important; gap:20px !important; align-items:start !important; width:100% !important; box-sizing:border-box !important; }
body .mise-en-page > .article-commun { grid-column:1 !important; grid-row:1 !important; }
body .mise-en-page > #contenu-page { grid-column:2 !important; grid-row:1 !important; min-width:0 !important; }
body .mise-en-page > .infos-commun { grid-column:3 !important; grid-row:1 !important; }
#galerie-commune { clear:both !important; display:block !important; width:100% !important; }
#footer-commun { clear:both !important; display:block !important; width:100% !important; margin-top:0 !important; }
.pied-de-page-site { box-sizing:border-box; text-align:center; }
@media screen and (max-width:900px) and (min-width:601px) { body .mise-en-page { grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr) !important; gap:12px !important; padding:12px !important; } }
@media screen and (max-width:600px) {
 body .mise-en-page { display:flex !important; flex-direction:column !important; gap:15px !important; padding:10px !important; }
 body .mise-en-page > .article-commun { order:1 !important; }
 body .mise-en-page > #contenu-page { order:2 !important; }
 body .mise-en-page > .infos-commun { order:3 !important; }
 body .mise-en-page > .article-commun, body .mise-en-page > #contenu-page, body .mise-en-page > .infos-commun { width:100% !important; }
}


/* Navigation fluide : fondu du contenu central, sans défilement forcé. */
#contenu-page {
    opacity: 1;
    transform: translateY(0);
}
#contenu-page.contenu-sortant {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 140ms ease, transform 140ms ease;
}
#contenu-page.contenu-entrant {
    animation: apparition-contenu 220ms ease both;
}
@keyframes apparition-contenu {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    #contenu-page.contenu-sortant,
    #contenu-page.contenu-entrant {
        transition: none;
        animation: none;
    }
}

/* Logo adapté au thème, y compris sur smartphone. */
body.mode-clair .logo-site {
    content: url("images/logo-srh.png");
}
body.mode-sombre .logo-site {
    content: url("images/logo-srh-inverse.png");
}
@media screen and (max-width: 600px) {
    .entete-site { flex-wrap: nowrap; }
    .lien-logo { flex: 0 0 auto; }
    .logo-site { object-fit: contain; }
    body.mode-sombre .titre-mobile { color: #ffffff !important; }
    body.mode-clair .titre-mobile { color: #444444 !important; }
}
/* Correction du logo sur smartphone avec le menu hamburger */
@media screen and (max-width: 600px) {
    body.mode-clair .entete-site .logo-site {
        content: url("images/logo-srh.png") !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 70px !important;
        height: 70px !important;
        object-fit: contain !important;
    }

    body.mode-sombre .entete-site .logo-site {
        content: url("images/logo-srh-inverse.png") !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 70px !important;
        height: 70px !important;
        object-fit: contain !important;
    }

    .entete-site .lien-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }
}

/* =====================================================
   TYPOGRAPHIE HARMONISEE - MODE CLAIR ET MODE SOMBRE
   A AJOUTER TOUT A LA FIN DE Messtyles.css
   ===================================================== */

/* 1. BASE COMMUNE */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body,
body.mode-clair,
body.mode-sombre {
    font-family: Verdana, sans-serif;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* 2. TITRES GENERAUX */
body h1,
body.mode-clair h1,
body.mode-sombre h1 {
    font-size: clamp(1.6rem, 2.5vw, 2rem) !important;
    line-height: 1.25 !important;
    margin-top: 0;
    margin-bottom: 0.8em;
}

body h2,
body.mode-clair h2,
body.mode-sombre h2 {
    font-size: clamp(1.35rem, 2.1vw, 1.6rem) !important;
    line-height: 1.3 !important;
    margin-top: 0;
    margin-bottom: 0.7em;
}

body h3,
body.mode-clair h3,
body.mode-sombre h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.3rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 0.6em;
}

body h4,
body h5,
body h6 {
    font-size: 1rem !important;
    line-height: 1.4 !important;
}

/* 3. TITRE DE L'EN-TETE */
body .entete-site h1 {
    font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* Titre spécifique aux smartphones */
body .titre-mobile {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
}

/* 4. TEXTE DES ARTICLES ET DES SECTIONS */
body main,
body main p,
body main li,
body .texte,
body .texte p,
body .texte li,
body #contenu-page p,
body #contenu-page li,
body .article-modele p,
body .article-commun p,
body .infos-commun p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* Listes : espacement régulier */
body main li,
body .texte li {
    margin-bottom: 0.25rem;
}

/* 5. MENU ET BOUTONS */
body .menu-navigation a {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    font-weight: normal !important;
}

body .theme-toggle {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
}

body .hamburger {
    line-height: 1.2 !important;
}

/* 6. BANDEAU D'INFORMATION */
body .bandeau-texte p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* 7. AGENDA */
body .agenda-date .jour {
    font-size: 1.5rem !important;
}

body .agenda-date .mois {
    font-size: 0.85rem !important;
}

body .agenda-date .annee {
    font-size: 0.75rem !important;
}

body .agenda-infos h3 {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
}

body .agenda-infos p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* 8. SPONSORS */
body .texte-sponsors {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* 9. PIED DE PAGE */
body .footer-colonne h3 {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

body .footer-colonne p,
body .footer-colonne a,
body .footer-colonne li {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

/* 10. COLONNES LATERALES */
body .mise-en-page > .article-commun h2,
body .mise-en-page > .infos-commun h2 {
    font-size: 1.2rem !important;
    line-height: 1.35 !important;
}

body .mise-en-page > .article-commun h3,
body .mise-en-page > .infos-commun h3 {
    font-size: 1rem !important;
    line-height: 1.4 !important;
}

/* 11. MODE CLAIR : COULEURS ET CONTRASTE */
body.mode-clair {
    color: #333333;
}

body.mode-clair main,
body.mode-clair main p,
body.mode-clair main li,
body.mode-clair .texte,
body.mode-clair .texte p,
body.mode-clair .texte li {
    color: #333333 !important;
}

body.mode-clair h2,
body.mode-clair h3,
body.mode-clair .agenda-infos h3 {
    color: #b85c00 !important;
}

/* 12. MODE SOMBRE : MEMES TAILLES, TEXTE LISIBLE */
body.mode-sombre {
    color: #f2f2f2;
}

body.mode-sombre main,
body.mode-sombre main p,
body.mode-sombre main li,
body.mode-sombre .texte,
body.mode-sombre .texte p,
body.mode-sombre .texte li {
    color: #f2f2f2 !important;
}

body.mode-sombre h2,
body.mode-sombre h3,
body.mode-sombre .agenda-infos h3 {
    color: #ffad33 !important;
}

/* 13. SMARTPHONES */
@media screen and (max-width: 600px) {

    body,
    body.mode-clair,
    body.mode-sombre {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    body .entete-site h1 {
        font-size: 1.1rem !important;
    }

    body .titre-mobile {
        font-size: 1rem !important;
        line-height: 1.35 !important;
    }

    body h1 {
        font-size: 1.5rem !important;
    }

    body h2 {
        font-size: 1.3rem !important;
    }

    body h3 {
        font-size: 1.1rem !important;
    }

    body .menu-navigation a {
        font-size: 0.9rem !important;
        padding: 12px 10px;
    }

    body .bandeau-texte p,
    body .texte-sponsors {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    body .agenda-infos h3 {
        font-size: 1.05rem !important;
    }

    body .agenda-infos p {
        font-size: 0.9rem !important;
    }

    body .footer-colonne p,
    body .footer-colonne a,
    body .footer-colonne li {
        font-size: 0.875rem !important;
    }

    body .theme-toggle {
        font-size: 0.8rem !important;
    }
}

/* 14. TRES PETITS ECRANS */
@media screen and (max-width: 380px) {

    body .titre-mobile {
        font-size: 0.95rem !important;
    }

    body .entete-site h1 {
        font-size: 1rem !important;
    }

    body h2 {
        font-size: 1.2rem !important;
    }
}

/* 15. RESPECT DES PREFERENCES D'ACCESSIBILITE */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* =====================================
   REDUCTION PLUS MARQUE DES POLICES
   Clair / sombre - smartphone / ordinateur
   ===================================== */

/* Texte général */
html {
    font-size: 14px !important;
}

body {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Titres */
h1 {
    font-size: 24px !important;
    line-height: 1.25 !important;
}

h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
}

h3 {
    font-size: 17px !important;
    line-height: 1.35 !important;
}

h4, h5, h6 {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* Paragraphes et contenu */
p,
li,
article,
article p,
.entry-content,
.entry-content p,
.post-content,
.post-content p {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

/* Menus et navigation */
nav,
nav a,
.menu,
.menu a,
.nav-menu,
.nav-menu a,
.main-navigation,
.main-navigation a {
    font-size: 13px !important;
}

/* Pied de page */
footer,
footer p,
footer a,
.site-footer,
.site-footer p,
.site-footer a {
    font-size: 12px !important;
    line-height: 1.45 !important;
}

/* Formulaires et boutons */
button,
input,
select,
textarea,
.wp-block-button__link {
    font-size: 13px !important;
}

/* Éléments secondaires */
small,
figcaption,
.caption,
.meta,
.post-meta,
.breadcrumbs {
    font-size: 12px !important;
}

/* Smartphone */
@media (max-width: 600px) {
    body {
        font-size: 13px !important;
    }

    h1 {
        font-size: 21px !important;
    }

    h2 {
        font-size: 18px !important;
    }

    h3 {
        font-size: 16px !important;
    }

    h4, h5, h6 {
        font-size: 14px !important;
    }

    p,
    li,
    article,
    article p,
    .entry-content,
    .entry-content p,
    .post-content,
    .post-content p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    nav a,
    .menu a,
    .nav-menu a,
    .main-navigation a {
        font-size: 12px !important;
    }

    footer,
    footer p,
    footer a,
    .site-footer,
    .site-footer p,
    .site-footer a {
        font-size: 11px !important;
    }
}

/* Conserver une apparence cohérente en mode sombre */
html[data-theme="dark"],
html[data-theme="dark"] body,
body.dark-mode {
    font-size: 14px !important;
}

/* ==========================================
   CORRECTIONS SPECIFIQUES A EVENEMENT.HTML
   ========================================== */

/* Réduire l'espace au-dessus du contenu */
.page-evenements {
    margin-top: 0 !important;
    padding-top: 8px !important;
}

/* Réduire les marges de l'article */
.page-evenements .article-modele {
    margin-top: 0 !important;
    padding-top: 8px !important;
}

/* Remonter le titre et réduire sa taille */
.page-evenements .agenda-section > h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    padding-top: 0 !important;
}

/* Réduire les titres des événements */
.page-evenements .agenda-infos h3 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

/* Réduire les textes des événements */
.page-evenements .agenda-infos p {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
}

/* Ajuster les chiffres et les dates */
.page-evenements .agenda-date .jour {
    font-size: 24px !important;
}

.page-evenements .agenda-date .mois {
    font-size: 12px !important;
}

.page-evenements .agenda-date .annee {
    font-size: 11px !important;
}

/* Espacement entre les événements */
.page-evenements .agenda-bloc {
    margin-bottom: 14px !important;
}

/* Smartphone */
@media (max-width: 600px) {
    .page-evenements {
        padding-top: 4px !important;
    }

    .page-evenements .article-modele {
        padding-top: 4px !important;
    }

    .page-evenements .agenda-section > h2 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }

    .page-evenements .agenda-infos h3 {
        font-size: 15px !important;
    }

    .page-evenements .agenda-infos p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}
/* Tableaux : styles spécifiques au tableau du comité */



/* =====================================================
   MENU 4 : TABLEAU DES MEMBRES DU COMITÉ
   Les règles sont limitées à .tableau-comite pour ne
   pas modifier les autres tableaux ou images du site.
   ===================================================== */

#contenu-page .article-modele .tableau-comite {
    width: 100%;
    table-layout: fixed;
    border: none !important;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 20px 0;
    color: inherit;
    background: transparent;
}

#contenu-page .article-modele .tableau-comite tr,
#contenu-page .article-modele .tableau-comite td {
    border: none !important;
}

#contenu-page .article-modele .tableau-comite td {
    padding: 12px 10px;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

/* Largeurs des deux colonnes : 20 % / 80 % */
#contenu-page .article-modele .tableau-comite td:first-child {
    width: 20%;
    border-right: 1px dotted currentColor !important;
    text-align: center;
}

#contenu-page .article-modele .tableau-comite td:last-child {
    width: 80%;
    padding-left: 16px;
}

/* Pointillés uniquement entre les lignes : aucune bordure extérieure */
#contenu-page .article-modele .tableau-comite tr + tr td {
    border-top: 1px dotted currentColor !important;
}

/* Images du tableau : neutralise les règles générales des images d'article */
#contenu-page .article-modele .tableau-comite img {
    display: block !important;
    float: none !important;
    position: static !important;
    width: 100% !important;
    max-width: 140px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    object-fit: contain;
}

/* Noms des membres */
#contenu-page .article-modele .tableau-comite strong {
    display: block;
    margin-bottom: 5px;
    color: orange;
}

/* Le tableau suit les couleurs du thème clair */
body.mode-clair #contenu-page .article-modele .tableau-comite {
    color: #444444;
}

/* Sur smartphone, on conserve les proportions 20/80 */
@media screen and (max-width: 600px) {
    #contenu-page .article-modele .tableau-comite td {
        padding: 8px 5px;
        vertical-align: top;
    }

    #contenu-page .article-modele .tableau-comite td:last-child {
        padding-left: 9px;
    }

    #contenu-page .article-modele .tableau-comite img {
        max-width: 100% !important;
    }
}

/* =========================================================
   GALERIE PHOTOS : VIGNETTES, AGRANDISSEMENT ET PAGINATION
   ========================================================= */

/* Vidéo YouTube placée au-dessus de la galerie */
#contenu-page .article-modele .video-galerie {
    width: 100%;
    margin: 1.5rem 0 2rem;
}

#contenu-page .article-modele .video-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    border-radius: 6px;
}

#contenu-page .article-modele .video-responsive iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Grille des vignettes */
#contenu-page .article-modele .galerie-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 1.5rem 0;
}

#contenu-page .article-modele .galerie-photo {
    display: block;
    position: relative;
    width: 100%;
    /* La hauteur suit l'image : les photos verticales ne sont pas recadrées. */
    min-width: 0;
    align-self: start;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #111;
    cursor: zoom-in;
}

#contenu-page .article-modele .galerie-photo[hidden] {
    display: none !important;
}

/* L'image remplit toute la vignette.
   "cover" remplit la zone mais peut recadrer légèrement les bords. */
#contenu-page .article-modele .galerie-photo img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 260px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    object-fit: contain;
    object-position: center;
    transition: transform 180ms ease;
}

#contenu-page .article-modele .galerie-photo:hover img,
#contenu-page .article-modele .galerie-photo:focus-visible img {
    transform: scale(1.04);
}

#contenu-page .article-modele .galerie-photo:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* Pagination */
#contenu-page .article-modele .galerie-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.5rem 0;
}

#contenu-page .article-modele .galerie-pagination button {
    padding: 9px 16px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

#contenu-page .article-modele .galerie-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Fenêtre de photo agrandie */
#contenu-page .article-modele .galerie-visionneuse {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: 96vw;
    max-width: 1600px;
    height: auto;
    max-height: 96vh;
    margin: 0;
    padding: 48px 16px 16px;
    border: 1px dotted rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    background: rgba(20, 20, 20, 0.97);
    color: white;
    overflow: auto;
}

#contenu-page .article-modele .galerie-visionneuse::backdrop {
    background: rgba(0, 0, 0, 0.90);
}

#contenu-page .article-modele .galerie-image-agrandie {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(96vh - 145px) !important;
    margin: 0 auto;
    padding: 2px;
    border: 1px dotted rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    float: none !important;
    object-fit: contain;
}

#contenu-page .article-modele .galerie-fermer {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    padding: 2px 10px;
    background: transparent;
    color: white;
    font-size: 2rem;
    line-height: 1.2;
    cursor: pointer;
}

#contenu-page .article-modele .galerie-compteur {
    text-align: center;
    margin: 10px 0;
}

#contenu-page .article-modele .galerie-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

#contenu-page .article-modele .galerie-navigation button {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    background: transparent;
    color: white;
    cursor: pointer;
}

#contenu-page .article-modele .galerie-navigation button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    #contenu-page .article-modele .galerie-photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 560px) {
    #contenu-page .article-modele .galerie-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #contenu-page .article-modele .galerie-visionneuse {
        width: 98vw;
        max-height: 96vh;
        padding: 44px 10px 12px;
    }

    #contenu-page .article-modele .galerie-image-agrandie {
        max-height: calc(96vh - 145px) !important;
    }
}

@media (max-width: 380px) {
    #contenu-page .article-modele .galerie-photos {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    #contenu-page .article-modele .galerie-photo img {
        transition: none;
    }
}
.texte-espace {
    margin-bottom: 24px; /* Ajustez les pixels pour agrandir ou rétrécir l'espace */
}
/* GESTION DES FAVICONES*/
/* Icônes et favicons dans les colonnes */


.reseaux-sociaux {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.reseaux-sociaux a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

img.favicon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* =========================================
   GALERIE PHOTOS : VIGNETTES
   ========================================= */

.galerie-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    align-items: center;
    margin: 24px 0;
}

.galerie-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    min-width: 0;
    padding: 4px;
    overflow: hidden;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 0;
    cursor: pointer;
    box-sizing: border-box;
}

.galerie-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border: none;
}

/* Ne pas afficher les photos des autres pages */
.galerie-photo[hidden] {
    display: none !important;
}

/* Réglage sur petits écrans */
@media (max-width: 480px) {
    .galerie-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .galerie-photo {
        height: 180px;
    }
}

/* =========================================
   VISIONNEUSE : PHOTO AGRANDIE
 
dialog.galerie-visionneuse {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 42px 12px 12px;

    width: fit-content;
    height: fit-content;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);

    box-sizing: border-box;
    overflow: auto;
    background: #fff;
    color: #222;
    border: none;
    border-radius: 0;
    box-shadow: 0 8px 35px rgba(0, 0, 0, .25);
}

dialog.galerie-visionneuse::backdrop {
    background: rgba(0, 0, 0, .78);
}

dialog.galerie-visionneuse img.galerie-image-agrandie {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 175px);
    object-fit: contain;
    margin: 0 auto;
    border: 1px dotted #555;
}

dialog.galerie-visionneuse .galerie-fermer {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 2;
}
