/*
Theme Name: Astra Child Bourbonnais
Template: astra
Author: Théo & Keyrian
Version: 1.1.0
*/

/* ==========================================================================
   SOMMAIRE
   1.  Base, typographie & globals
   2.  Header & navigation
   3.  Bannières hero
   4.  Boutons
   5.  Page accueil
   6.  Actualités
   7.  Page ADCPG 03
   8.  Page bulletins
   9.  Page adhérer / soutenir
   10. Espace adhérent
   11. Pages géographie, brevet & adresses utiles
   12. Section dons
   13. Footer
   14. Responsive (≤1150 px puis ≤768 px)

   Les media queries sont regroupées en fin de fichier : c'est le seul endroit
   à regarder pour un réglage mobile.
   ========================================================================== */


/* ==========================================================================
   1. BASE, TYPOGRAPHIE & GLOBALS
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    margin-left: 20px;
}

h1 {
    -webkit-text-stroke: 0px !important;    /* pas de contour vert */
    margin-left: 0;                         /* annule la marge de 20px ci-dessus */
}

/* Le blanc est réservé aux titres posés SUR une bannière hero.
   Appliqué à tous les h1, il rendait invisibles (blanc sur blanc) les titres
   de page en .titre-page-vert des pages Adresses, Brevet et Géographie. */
.hero-bourbonnais h1 {
    color: #ffffff !important;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5); /* lisible sur fond clair */
}

h2, h3, .numero-titre {
    color: #88af62 !important;
}

h4 {
    color: #416c57 !important;
    font-size: 40px;
    font-weight: 800;
}

#content, .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#content {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 40px !important;
}

#content .ast-container {
    position: relative;
    display: block;
    margin-top: 50px;
    z-index: 10;
    clear: both;
}

.section-wrapper {
    width: 100%;
    padding: 60px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.bg-blanc { background-color: #ffffff; }
.bg-gris  { background-color: #f9fbf9; }   /* gris très léger, style nature */

.separateur-vert {
    text-align: center;
    color: #5a8b41;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 30px;
}

.titre-style {
    text-align: center !important;
    font-size: 2.2rem;
    color: #1a392a !important;   /* était #ffffff : invisible sur les fonds blancs */
    margin: 20px auto 10px auto !important;
    width: 100%;
    display: block;
}

.texte-complet {
    text-align: left;
    line-height: 1.7;
    color: #333;
    margin-left: 20px;
}

.lead-text {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

/* Listes à puces vertes (pages ADCPG, brevet, géographie) */
.puces-vertes {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}

.puces-vertes li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #333;
}

.puces-vertes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5a8b41;
}


/* ==========================================================================
   2. HEADER & NAVIGATION (HEADER FLOTTANT)
   ========================================================================== */
.header-floating-white {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    max-width: 1150px;
    margin: 20px auto;
    padding: 10px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    z-index: 9999;
}

/* Équilibre le flexbox pour centrer le menu malgré le logo à gauche */
.header-floating-white::after {
    content: none;
    width: 90px;
    display: block;
}

.site-branding img       { max-height: 75px; width: auto; }
.site-branding-right img { max-height: 70px; width: auto; }  /* un peu plus petit, pour l'équilibre */

#site-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin-left: 20px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 15px 0;
    color: #1a392a;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: #5a8b41;
}

/* --- Sous-menus (dropdown) --- */
.main-navigation ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 240px;
    padding: 10px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    z-index: 10000;
    transition: all 0.3s ease;
}

.main-navigation ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-navigation ul li ul.sub-menu li {
    width: 100%;
    text-align: left;
}

.main-navigation ul li ul.sub-menu li a {
    padding: 12px 20px;
    color: #5a8b41;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    border-bottom: 1px solid #f4f4f4;
}

.main-navigation ul li ul.sub-menu li:last-child a {
    border-bottom: none;
}

.main-navigation ul li ul.sub-menu li a:hover {
    background: #f9f9f9;
    color: #1a392a;
}

/* Le burger n'apparaît qu'en dessous de 1150px (voir section 14) */
.menu-toggle { display: none; }


/* ==========================================================================
   3. BANNIÈRES HERO
   ========================================================================== */
.hero-bourbonnais {
    position: relative;
    height: 70vh;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('images/1-BOCAGE-BOURBONNAIS.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -200px;
    padding-top: 100px;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.2); voile sombre, à réactiver si besoin de contraste */
}

/* .hero-content et .hero-container sont utilisés indifféremment selon les pages */
.hero-content,
.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.avertissement-hero {
    font-size: 1rem;
    font-style: italic;
    margin-top: 10px;
}


/* ==========================================================================
   4. BOUTONS
   ========================================================================== */
.btn-blanc-contact {
    background: white;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
    color: #5a8b41 !important;
    padding: 12px 25px;
    border-radius: 20px;
    margin-right: 30px;
}

/* Bouton pilule vert (standard UNCPG) */
.btn-pilule-vert {
    background: #5a8b41;
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.btn-pilule-vert:hover {
    background: #01251B;
}

/* Bouton foncé (footer / news) */
.btn-fonce-arrondi {
    background: #1a392a;
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}


/* ==========================================================================
   5. PAGE ACCUEIL
   ========================================================================== */
.grid-accueil-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    z-index: 5;
    position: relative;
    margin-top: -60px;      /* chevauche la bannière */
    margin-bottom: 50px;
}

.card-accueil {
    background: white;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-accueil:hover { transform: translateY(-5px); }

.card-img-box img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.card-accueil h3 {
    color: #01251B;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0;
}

/* Bloc vert « nous soutenir » */
.bloc-vert-soutenir {
    background-color: #7a9c59;
    display: flex;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    color: white;
    margin: 50px 0;
}

.img-perdrix img {
    width: 300px;
    height: 100%;
    object-fit: cover;
}

.texte-soutenir {
    padding: 40px;
    flex: 1;
}

.texte-soutenir h3,
.texte-soutenir h4 {
    color: #90fba9 !important;
    font-size: 2rem !important;
    font-family: 'Lora', serif;
    margin-top: 0;
    margin-bottom: 15px;
    margin-left: 0 !important;           /* annule le décalage global de 20px */
    -webkit-text-stroke: 0px !important;
}

.action-contact {
    flex-shrink: 0;
    padding-right: 10px;
}


/* ==========================================================================
   6. ACTUALITÉS (NEWS)
   ========================================================================== */
.grid-news-uncpg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.card-news-uncpg {
    background: #fff;
    transition: transform 0.3s ease;
}

.news-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 5px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge de date vert superposé */
.badge-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #7a9c59;
    color: white;
    padding: 5px 10px;
    text-align: center;
    border-radius: 4px;
    line-height: 1;
    display: flex;
    flex-direction: column;
    min-width: 45px;
}

.badge-date .jour  { font-size: 1.2rem; font-weight: bold; }
.badge-date .mois  { font-size: 0.7rem; text-transform: uppercase; margin: 2px 0; }
.badge-date .annee { font-size: 0.6rem; opacity: 0.8; }

.news-body { padding: 20px 0; }

.news-cat {
    font-size: 0.75rem;
    color: #7a9c59;
    text-transform: uppercase;
    font-weight: bold;
}

.news-body h3 {
    color: #01251B !important;
    font-size: 1.1rem;
    margin: 10px 0;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.btn-lire-pill {
    display: inline-block;
    padding: 6px 20px;
    background: #f1f1f1;
    color: #333 !important;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-lire-pill:hover {
    background: #7a9c59;
    color: white !important;
}

.center-btn-box { text-align: center; margin-top: 30px; }

/* --- Flux actualités (page archives) --- */
.news-container { padding: 60px 0; }

.flux-actualites {
    max-width: 800px;
    margin: 40px auto;
}

.news-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.news-content { padding: 30px; }

.news-date {
    color: #5a8b41;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content h2 {
    color: #1a392a;
    margin: 10px 0;
    text-align: left;
    font-size: 1.8rem;
}

.btn-lire-suite {
    display: inline-block;
    margin-top: 20px;
    color: #5a8b41;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #5a8b41;
    transition: 0.3s;
}

.btn-lire-suite:hover {
    color: #1a392a;
    border-color: #1a392a;
}


/* ==========================================================================
   7. PAGE ADCPG 03
   ========================================================================== */
.page-content-adcpg {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.titre-page-vert {
    color: #1a392a !important;   /* !important nécessaire pour passer devant h1/h2 */
    text-align: center;
    font-size: 2.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.numero-titre {
    color: #5a8b41;
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    border-left: 5px solid #5a8b41;
    padding-left: 15px;
    margin: 0 0 25px 0;
}

/* Grille du bureau / conseil d'administration */
.grid-bureau {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.membre-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.membre-card h4 {
    color: #01251B;
    margin-bottom: 5px;
    font-size: 1rem;
}

.membre-card .poste {
    color: #7a9c59;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Documents officiels (statuts / règlement intérieur) */
.grid-docs-officiels {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.btn-doc-link {
    display: inline-block;
    border: 2px solid #01251B;
    color: #01251B !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-doc-link:hover {
    background: #01251B;
    color: white !important;
}


/* ==========================================================================
   8. PAGE BULLETINS
   ========================================================================== */
.bulletins-container {
    padding: 60px 0;
    text-align: center;
}

.intro-bulletins {
    margin-bottom: 40px;
    color: #666;
    font-style: italic;
}

.grille-bulletins {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.bulletin-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.bulletin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.bulletin-icon img {
    width: 50px;
    margin-bottom: 15px;
}

.bulletin-card h3 {
    font-size: 1rem;
    color: #1a392a;
    margin-bottom: 5px;
}

.date-bulletin {
    font-size: 0.85rem;
    color: #5a8b41;
    margin-bottom: 20px;
    font-weight: bold;
}

.btn-download-pdf {
    display: inline-block;
    background: #5a8b41;
    color: white !important;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn-download-pdf:hover {
    background: #b32424;
}


/* ==========================================================================
   9. PAGE ADHÉRER / SOUTENIR
   ========================================================================== */
.intro-adherer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #444;
}

.grid-documents-adhesion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.doc-card-adhesion {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.doc-card-adhesion:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: #5a8b41;
}

.doc-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.doc-card-adhesion h3 {
    color: #01251B;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.doc-card-adhesion p {
    font-size: 0.9rem;
    margin-bottom: 25px;
    min-height: 60px;
}

/* Bandeau de citation vert bourbonnais */
.bg-vert-bourbonnais {
    background-color: #5a8b41;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: -20%;
}

.citation-soutien p {
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 300;
}


/* ==========================================================================
   10. ESPACE ADHÉRENT
   ========================================================================== */
.login-box-adherent {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.intro-login {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.form-adherent-style { text-align: left; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    color: #01251B;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fdfdfd;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #5a8b41;
    outline: none;
    box-shadow: 0 0 5px rgba(90, 139, 65, 0.2);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.forgot-link {
    font-size: 0.85rem;
    color: #7a9c59;
    text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

.form-footer .btn-pilule-vert {
    border: none;
    cursor: pointer;
}


/* ==========================================================================
   11. PAGES GÉOGRAPHIE, BREVET & ADRESSES UTILES
   ========================================================================== */
.section-adcpg { margin-bottom: 40px; }
.section-adcpg:last-child { margin-bottom: 0; }

.grille-trois-colonnes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.carte-info {
    background: #ffffff;
    padding: 30px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.carte-info h3 {
    color: #5a8b41;
    margin-bottom: 5px;
}

.rond-fleche {
    background: #5a8b41;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.grille-images-oiseaux {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.grille-images-oiseaux img {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
}

/* Encadré d'information / note */
.info-box,
.info-box-alerte {
    background: #f4f9f1;
    border: 1px solid #5a8b41;
    border-left-width: 5px;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    color: #333;
}

.info-box h4,
.info-box-alerte h4 {
    color: #5a8b41;
    margin-top: 0;
}

.info-box-alerte p:last-child { margin-bottom: 0; }

/* --- Adresses utiles --- */
.grille-adresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.bloc-adresse {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.bloc-adresse h3 {
    margin: 0 0 15px 0;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.liste-adresses {
    list-style: none;
    margin: 0;
    padding: 0;
}

.liste-adresses li {
    padding: 10px 0 10px 20px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}

.liste-adresses li:last-child { border-bottom: none; }

.liste-adresses li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #5a8b41;
    font-weight: bold;
}

/* Grilles de 4 éléments (page Brevet).
   Deux colonnes pour des blocs de texte long, quatre pour des listes courtes :
   .grille-adresses tomberait en 3 + 1, ce qui laisse une carte orpheline. */
.grille-deux {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.grille-quatre {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* --- Grille documents gris (téléchargements) --- */
.grille-docs-gris {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.doc-card-gris {
    background: #f1f1f1;
    padding: 20px 10px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.doc-card-gris:hover { transform: translateY(-5px); }

.doc-card-gris p {
    font-size: 0.8rem;
    font-weight: bold;
    color: #1a392a;
    margin: 10px 0;
}

.icon-box img { width: 40px; margin-bottom: 10px; }

.btn-download {
    display: inline-block;
    background: #5a8b41;
    color: white !important;
    padding: 8px 15px;
    font-size: 0.7rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}


/* Aperçu du PDF sur la page d'un bulletin. */
.apercu-pdf {
    height: 80vh;
    min-height: 500px;
    margin: 30px 0;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fbf9;
}

.apercu-pdf object {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Espace adhérent --- */

/* Une carte entière devient cliquable : on neutralise le style de lien. */
.carte-lien {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carte-lien:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.carte-lien p {
    font-size: 0.8rem;
    color: #666;
    margin: 5px 0 0;
}

/* Pendant rouge de .info-box-alerte, pour les échecs de connexion ou d'envoi. */
.message-erreur {
    background: #fff5f5;
    border: 1px solid #de2e2e;
    border-left-width: 5px;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    color: #a01c1c;
    text-align: left;
}

.fil-retour {
    margin-bottom: 10px;
}

.fil-retour a {
    color: #5a8b41;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.fil-retour a:hover { text-decoration: underline; }

.note-login {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #777;
    line-height: 1.5;
}

.case-memoriser {
    font-weight: normal !important;
    font-size: 0.85rem !important;
    color: #555 !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* .form-group input vise les champs de saisie et les met à 100 % de large.
   Appliqué à une case à cocher, cela l'étire sur toute la ligne et renvoie
   son libellé à l'autre bout, où il passe à la ligne. */
.form-group input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    accent-color: #5a8b41;
}

/* Le formulaire d'annonce est plus large que la boîte de connexion. */
.boite-annonce {
    max-width: 700px;
    text-align: left;
}

/* .form-group ne stylait que les <input> : les listes et zones de texte
   du formulaire d'annonce doivent suivre la même présentation. */
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fdfdfd;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: #5a8b41;
    outline: none;
    box-shadow: 0 0 5px rgba(90, 139, 65, 0.2);
}

.etiquette-annonce {
    display: inline-block;
    background: #f4f9f1;
    color: #5a8b41;
    border: 1px solid #5a8b41;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.texte-annonce {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

.texte-annonce p { margin: 0 0 10px; }

.contact-annonce {
    margin: 15px 0 0;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #444;
}

.contact-annonce .note {
    font-size: 0.75rem;
    color: #888;
}

.annonce-attente { border-left: 4px solid #d8a13a; }

.etat-annonce {
    color: #b8860b;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.texte-ressource {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
}

.texte-ressource p { margin: 0 0 12px; }

/* ==========================================================================
   12. SECTION DONS
   ========================================================================== */
.grille-dons-mini {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-pdf-don {
    background: #88af62;
    color: white !important;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid transparent;
}

.btn-pdf-don:hover {
    background: white;
    color: #88af62 !important;
    border-color: #88af62;
    transform: scale(1.05);
}


/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer-uncpg {
    background-color: transparent;
    margin-top: 50px;
    clear: both;
}

.footer-wave {
    line-height: 0;
    width: 100%;
}

.footer-content {
    background-color: #1a392a;
    color: #ffffff;
    padding: 50px 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column { flex: 1; }

.footer-column h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Lora', serif;
    font-weight: bold;
}

.footer-logo img {
    max-width: 160px;
    height: auto;
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.btn-footer {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background-color: #5a8b41;
    color: #ffffff !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.3s ease;
}

.btn-footer:hover {
    background-color: #ffffff;
    color: #1a392a !important;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
}

/* Bouton « retour en haut » d'Astra */
#ast-scroll-top, .ast-scroll-top {
    opacity: 0.3 !important;
    background-color: rgba(26, 57, 42, 0.4) !important;
    transition: all 0.4s ease-in-out !important;
}

#ast-scroll-top:hover, .ast-scroll-top:hover {
    opacity: 1 !important;
    background-color: #5a8b41 !important;
}


/* ==========================================================================
   14. RESPONSIVE
   Toutes les adaptations mobile/tablette sont regroupées ici.
   L'ordre compte : le bloc ≤768px doit rester APRÈS le bloc ≤1150px.
   ========================================================================== */

/* --- Tablette et mobile : menu burger, grilles en 1 colonne --- */
@media (max-width: 1150px) {

    /* 1. Un seul header (supprime l'effet double rectangle) */
    .header-floating-white {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 95% !important;
        height: 60px !important;
        padding: 0 15px !important;
        margin: 10px auto !important;
        background: #ffffff !important;
        position: fixed !important;
        top: 0;
        left: 2.5%;
        z-index: 10000 !important;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    }

    /* 2. Le menu déroulant */
    #site-navigation.main-navigation,
    .header-floating-white #site-navigation {
        display: none !important;
        position: absolute !important;
        top: 65px !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 0 0 15px 15px !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
        z-index: 10001 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Affiché au clic sur le burger (classe posée par le script du footer) */
    #site-navigation.main-navigation.toggled {
        display: block !important;
    }

    .main-navigation ul#primary-menu,
    #site-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        list-style: none !important;
        background: white !important;
    }

    .main-navigation ul li {
        width: 100% !important;
        border-bottom: 1px solid #eeeeee !important;
        text-align: center !important;
    }

    .main-navigation ul li a {
        display: block !important;
        padding: 15px 0 !important;
        color: #1a392a !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
        background: white !important;
    }

    /* 3. Le burger */
    .menu-toggle {
        display: flex !important;
        background: transparent !important;
        border: none !important;
        width: 28px;
        height: 20px;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #5a8b41 !important;
        border-radius: 2px;
    }

    /* 4. Logos et contenu */
    .site-branding img,
    .site-branding-right img { max-height: 35px !important; }

    #content { margin-top: 90px !important; }

    .hero-bourbonnais {
        margin-top: -90px !important;   /* remonte l'image sous le header blanc */
        height: 50vh !important;
        padding-top: 60px !important;   /* descend le texte pour qu'il passe sous le logo */
    }

    /* 5. Grilles en 1 colonne pour éviter le débordement */
    .grille-images-oiseaux,
    .grille-bulletins,
    .grille-trois-colonnes,
    .grille-adresses,
    .grille-docs-gris,
    .grid-documents-adhesion,
    .grid-bureau {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Les 5 carrés d'accueil, empilés */
    .grid-accueil-5 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 90% !important;
        margin: -40px auto 40px auto !important;
    }

    .card-accueil {
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* Bloc « nous soutenir » : les 3 colonnes passent l'une sous l'autre */
    .bloc-vert-soutenir {
        flex-direction: column !important;
    }

    .img-perdrix img {
        width: 100% !important;
        height: 220px !important;
    }

    .action-contact {
        padding: 0 0 30px 0 !important;
    }

    .btn-blanc-contact {
        margin-right: 0 !important;
    }

    /* Documents officiels : boutons empilés */
    .grid-docs-officiels {
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 6. Actualités : carrousel horizontal */
    .grid-news-uncpg {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 20px !important;
        padding: 10px 20px 30px 20px !important;
        -webkit-overflow-scrolling: touch;
    }

    .grid-news-uncpg::-webkit-scrollbar { display: none; }

    .card-news-uncpg {
        flex: 0 0 85% !important;
        scroll-snap-align: center !important;
    }

    /* 7. Footer empilé */
    .footer-content {
        padding: 40px 20px 80px 20px !important;   /* 80px en bas pour la barre iPhone */
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .footer-column { width: 100% !important; }
}

/* --- Mobile : tailles de texte --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.6rem !important; }
    h3 { font-size: 1.3rem !important; }

    h4 { font-size: 1.6rem !important; }

    .titre-style {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    .titre-page-vert { font-size: 1.8rem !important; }

    .grille-deux { grid-template-columns: 1fr !important; }

    .numero-titre {
        font-size: 1.2rem !important;
        border-left-width: 3px !important;
    }

    .texte-soutenir h3,
    .texte-soutenir h4 {
        font-size: 1.5rem !important;
        text-align: center;
    }

    .citation-soutien p { font-size: 1.3rem !important; }

    .btn-pdf-don {
        width: 100%;
        text-align: center;
    }

    /* Le lecteur PDF intégré est rarement utilisable sur téléphone :
       on le réduit pour ne pas occuper tout l'écran avant le bouton. */
    .apercu-pdf {
        height: 60vh;
        min-height: 300px;
    }
}
