/* Variables */
:root {
	 --primary_: #2c3e50;
    --primary: #228B22;
    --secondary: #e67e22;
    --accent: #27ae60;
    --light: #f8f9fa;
    --dark: #333333;
}

html {
    scroll-behavior: smooth; /* Pour un défilement fluide */
    scroll-padding-top: 90px; /* À AJUSTER : Mettez ici la hauteur exacte de votre menu en pixels + 10px */
}

/* --- APPLIQUE LA COULEUR DE FOND SUR L'ITEM --- */
.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.15); /* Ombre douce teintée en vert */
    cursor: pointer;
    background-color: #e8f8f0; /* Fond vert très clair et gai pour combler les vides sans couper */
}

/* Style de l'image ajustée sans coupure */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* L'image s'affiche en entier */
    background-color: #e8f8f0; /* Rappel du fond vert clair sous l'image */
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- LE MASQUE INTERACTIF VERT GAI (Overlay) --- */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dégradé allant d'un vert forêt chaleureux en bas vers un vert translucide en haut */
    background: linear-gradient(to top, rgba(39, 174, 96, 0.9) 0%, rgba(46, 204, 113, 0.4) 60%, rgba(255, 255, 255, 0) 100%);
    opacity: 0; /* Masqué par défaut sur PC */
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* --- LE TEXTE DE LA DESCRIPTION --- */
.gallery-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700; /* Texte plus épais pour ressortir sur le vert */
    z-index: 2;
    transform: translateY(15px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* --- EFFETS AU SURVOL (PC) --- */
@media (hover: hover) {
    .gallery-item:hover img {
        transform: scale(1.05); /* Léger zoom */
    }

    .gallery-item:hover::after {
        opacity: 1; /* Le voile vert joyeux apparaît */
    }

    .gallery-item:hover .gallery-desc {
        opacity: 1;
        transform: translateY(0); /* Le texte glisse vers le haut */
    }
}

/* --- MOBILE & TACTILE : Toujours lisible avec le thème vert --- */
@media (max-width: 768px) {
    .gallery-item::after {
        opacity: 1; /* Fixe sur mobile */
    }
    .gallery-desc {
        opacity: 1;
        transform: translateY(0);
        font-size: 14px;
        padding: 15px;
    }
}





/* Anti-débordement Radical */
*, *::before, *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

/* Modification de la sécurité globale pour autoriser le menu collant */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    /* overflow-x: hidden; déplacé uniquement sur le body pour ne pas bloquer le sticky */
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #dddddd;
    overflow-x: hidden; /* Sécurité anti-débordement appliquée ici */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 0;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 2rem;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin: 10px auto 0 auto;
}

/* En-tête figé au-dessus de la page */
header {
    background-color: var(--primary);
    color: white;
    position: -webkit-sticky; /* Sécurité pour Safari */
    position: sticky;         /* Fige le menu au-dessus */
    top: 0;                   /* Aligné tout en haut */
    z-index: 1000;            /* Reste au-dessus de tous les autres éléments (images, cartes) */
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 99%;
    max-width: 1140px;
    margin: 0 auto;

}

.logo { font-size: 0.9rem; font-weight: bold; color: #ffffff; }
.logo span { color: var(--secondary); }



/* Centre l'image horizontalement et verticalement dans le lien */
.nav-link-logo {
    display: flex !important;
    justify-content: center; /* Centre horizontalement */
    align-items: center;     /* Centre verticalement */
    width: 60%;             /* Prend toute la largeur disponible de la puce */
    height: 60%;            /* Prend toute la hauteur si nécessaire */
}


.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}
.menu-toggle span { display: block; width: 25px; height: 3px; background-color: white; }

nav ul { display: flex; list-style: none; align-items: center; gap: 20px; }
nav ul li a { color: white; text-decoration: none; font-weight: 500; font-size: 1rem; transition: color 0.3s; }
nav ul li a:hover { color: var(--secondary); }

/* Sections Classiques */
.hero {  
    /* Remplacement de no-repeat par repeat, et suppression de /cover */
    background: linear-gradient(rgba(19, 19, 76, 0.95), rgba(19, 19, 76, 0.95)), 
                url('images/maelyn_gr__.png') repeat center center;
    
    min-height: 10vh; 
    color: white; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 20px 30px; 
}

.hero h1 { font-size: 1.9rem; margin-bottom: 15px; max-width: 800px; }
.hero p { font-size: 1.2rem; margin-bottom: 25px; max-width: 600px; }
.btn-cta { background-color: var(--secondary); color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; transition: 0.3s; display: inline-block; }
.btn-cta:hover { background-color: #d35400; }

.section-about { background-color: var(--light); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.legal-text { background: white; padding: 25px; border-left: 5px solid var(--secondary); box-shadow: 0 2px 15px rgba(0,0,0,0.05); }

.goals-grid, .gallery-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.goal-card, .team-member { padding: 30px; background: #ffffff; border-radius: 8px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.goal-card_left { padding: 2px; background: #ffffff; border-radius: 8px; text-align: left; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.goal-card { border-top: 4px solid var(--accent); }

.section-activities { background-color: var(--light); }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-desc { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.7); color: white; padding: 12px; text-align: center; font-size: 0.95rem; }

.team-member img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px auto; border: 4px solid var(--light); }
.team-member h3 { font-size: 1.2rem; color: var(--primary); }
.team-member p { color: var(--secondary); font-weight: bold; }

/* Style Section Dons */
.section-donations { background-color: var(--light); text-align: center; }
.section-subtitle { margin-top: -20px; margin-bottom: 30px; color: #666; }
.donation-box { background: white; max-width: 600px; margin: 0 auto; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.donation-tiers { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.tier-btn { flex: 1; padding: 12px; border: 2px solid #ddd; background: white; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.tier-btn:hover, .tier-btn.active { border-color: var(--secondary); color: var(--secondary); background: #fffbf7; }
.custom-amount-box input { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; }

/* Style Section Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form-container, .contact-info-container { background: #eeeeee; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.contact-form-container h3, .contact-info-container h3 { margin-bottom: 20px; color: var(--primary); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 1rem; }
.info-block p { margin-bottom: 12px; font-size: 1.05rem; }
.map-wrapper { margin-top: 20px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
/* partenariat */
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partners-grid button { background: var(--bg-body); border: 1px solid var(--border); padding: 6px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.partners-grid button:hover { transform: translateY(-2px); border-color: var(--primary); }




footer { background-color: var(--primary); color: white; text-align: center; padding: 30px 20px; }


/* ==========================================================================
   Galerie 
   ========================================================================== */
/* --- SECTION ACTIVITÉS & GALERIE --- */
.section-activities {
    padding: 80px 0;
    background-color: #f8f9fa; /* Fond gris très léger pour faire ressortir les photos */
}

.section-activities h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    font-weight: 700;
}

/* Petite barre décorative sous le titre principal */
.section-activities h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #27ae60; /* Couleur verte de l'association */
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* Grille adaptative : 3 colonnes sur PC, 2 sur tablette, 1 sur mobile */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px; /* Espace entre les photos */
    padding: 10px;
}

/* --- LE CARD DE CHAQUE IMAGE --- */
.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 12px; /* Bords arrondis modernes */
    overflow: hidden; /* Obligatoire pour contenir le zoom de l'image */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* Ombre douce */
    cursor: pointer;
    background-color: #e0e0e0; /* Placeholder pendant le chargement */
}

/* Style de l'image */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* L'image s'affiche désormais EN ENTIER sans être rognée */
    background-color: #fff; /* Fond noir élégant pour combler les zones vides */
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}


/* --- LE MASQUE SOMBRE ÉLÉGANT (Overlay) --- */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    opacity: 0; /* Masqué par défaut */
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* --- LA DESCRIPTION TEXTUELLE --- */
.gallery-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    z-index: 2;
    transform: translateY(15px); /* Légère descente initiale pour l'effet de glissement */
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Améliore la lisibilité du texte blanc */
}

/* --- LES EFFETS MAGIQUES AU SURVOL (HOVER) --- */
@media (hover: hover) { /* Applique les effets uniquement sur les appareils avec souris (PC) */
    .gallery-item:hover img {
        transform: scale(1.1); /* Zoom délicat de l'image */
    }

    .gallery-item:hover::after {
        opacity: 1; /* Apparition du dégradé sombre */
    }

    .gallery-item:hover .gallery-desc {
        opacity: 1;
        transform: translateY(0); /* Le texte remonte à sa position initiale */
    }
}

/* --- OPTIMISATION POUR LES SMARTPHONES (Toujours visible si tactile) --- */
@media (max-width: 768px) {
    .gallery-item::after {
        opacity: 1; /* L'ombre reste visible sur mobile pour pouvoir lire le texte */
    }
    .gallery-desc {
        opacity: 1;
        transform: translateY(0);
        font-size: 14px;
        padding: 15px;
    }
    .gallery-grid {
        gap: 15px;
    }
}




/* ==========================================================================
   6. BOUTONS RÉSEAUX SOCIAUX
   ========================================================================== */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
}

/* Couleurs officielles au survol */
.social-icon.facebook:hover {
    background-color: #1877f2;
    transform: translateY(-3px);
}

.social-icon.whatsapp:hover {
    background-color: #25d366;
    transform: translateY(-3px);
}

.social-icon.linkedin:hover {
    background-color: #0077b5;
    transform: translateY(-3px);
}



/* ==========================================================================
   7. SECTION ACTUALITÉS
   ========================================================================== */
.section-news {
    background-color: #dddddd;
    width: 100%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: bold;
    margin-bottom: 8px;
}

.news-content h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1; /* Pousse le lien vers le bas pour aligner tous les articles */
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.news-link:hover {
    color: var(--secondary);
}


.news-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px; /* Doit correspondre à la hauteur définie dans vos attributs HTML */
    background-color: #f0f0f0; /* Couleur grise temporaire (squelette/placeholder) pendant le chargement */
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Votre transition existante pour le survol de la souris */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}



/* 1. Force l'animation de l'image au survol de la souris */
.news-card:hover .news-img-wrapper img {
    transform: scale(1.08); /* Effet de zoom (ajustez la valeur selon votre besoin) */
}

/* 2. Assure la fluidité du mouvement de l'image (indépendant du texte) */
.news-img-wrapper {
    overflow: hidden; /* Empêche l'image de déborder lors du zoom */
}

.news-img-wrapper img {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Transition dédiée uniquement à l'image */
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Style de la carte vide / d'attente */
.news-content-placeholder {
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--light);
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.news-content-placeholder h3 {
    color: #888;
    margin-bottom: 10px;
}

.news-content-placeholder p {
    color: #999;
    font-size: 0.9rem;
}


/* ==========================================================================
   8. BARRE DE FILTRAGE DES ACTUALITÉS
   ========================================================================== */
.news-filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: white;
}

/* Classe JavaScript pour masquer en douceur */
.news-card.hide {
    display: none !important;
}

@media (max-width: 500px) {
    .news-filter-bar {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}


/* --- ANIMATION DU TEXTE DÉROULÉ --- */
.more-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Classe activée en JavaScript pour déclencher l'animation */
.more-text.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- DESIGN DU BOUTON (En savoir plus / Moins d'infos) --- */
.news-link {
    display: inline-block;
    margin-top: 12px;
    color: #007bff; /* Votre couleur principale */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Style spécifique lorsque le texte est ouvert (mode "Moins d'infos") */
.news-link.is-open {
    color: #dc3545; /* Change en rouge (ou une autre couleur) pour signaler la fermeture */
    background-color: rgba(220, 53, 69, 0.05); /* Léger fond optionnel */
    padding: 4px 10px;
    border-radius: 4px;
}

/* Effet au survol du bouton ouvert */
.news-link.is-open:hover {
    background-color: rgba(220, 53, 69, 0.1);
}



/* Badge PDF épinglé sur la carte */
.badge-pdf-official {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    letter-spacing: 0.5px;
}

/* Bouton spécifique pour ouvrir le PDF */
.btn-download-pdf {
    margin-top: 12px;
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s;
}
.btn-download-pdf:hover {
    background: #c0392b;
}


.map-wrapper {
    width: 100%;
    height: 250px;
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}


/* ==========================================================================
   9. COMPTE À REBOURS ÉVÉNEMENTIEL
   ========================================================================== */
.card-countdown-event {
    background: linear-gradient(rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.95)), url('https://unsplash.com') center center/cover !important;
    color: white !important;
    border: none !important;
}

.news-content-countdown {
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    align-items: center;
}



.event-badge {
    background-color: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.news-content-countdown h3 {
    color: white !important;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.news-content-countdown p {
    color: #dfdfdf !important;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Grille du compteur */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    width: 100%;
}

.countdown-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    min-width: 65px;
    text-align: center;
    border-bottom: 3px solid var(--secondary);
}

.countdown-box span {
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
}

.countdown-box label {
    font-size: 0.75rem;
    color: #bbb;
    text-transform: uppercase;
}

.btn-countdown-cta {
    padding: 10px 20px !important;
    font-size: 0.9rem;
    width: 100%;
}



/* Style de base pour l'animation des cartes */
.news-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

/* Classe de masquage strict appliquée par le JavaScript */
.news-card.hide {
    display: none !important;
}

/* Exemple de style pour le bouton actif */
.filter-btn.active {
    background-color: #007bff; /* À adapter à votre charte graphique */
    color: #ffffff;
    border-color: #007bff;
}

/* --- SECTION CONTACT & STRUCTURE --- */
.section-contact {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Évite que le texte colle aux bords de l'écran sur mobile */
}

/* Grille principale : 2 colonnes sur ordinateur, 1 seule sur mobile */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Par défaut : 1 colonne (Mobile) */
    gap: 40px; /* Espace entre le formulaire et les infos */
    margin-top: 30px;
}

/* --- DESIGN DU FORMULAIRE --- */
.contact-form-container, .contact-info-container {
    background: #eeeeee;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px; /* Remplace avantageusement les <br> */
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box; /* Indispensable pour éviter que les champs dépassent sur mobile */
}

/* --- CARTE INTÉGRÉE RESPONSIVE --- */
.map-wrapper {
    width: 100%;
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
}

/* --- MEDIA QUERY : Pour les écrans plus grands (Ordinateurs et Tablettes paysage) --- */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1.2fr 0.8fr; /* Bascule en 2 colonnes asymétriques sur PC */
    }
}






/* ==========================================================================
   MODIFICATION : PIED DE PAGE ET RÉSEAUX SOCIAUX COMPACTS
   ========================================================================== */
footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 15px 20px; /* Hauteur réduite de moitié (de 30px à 15px) */
    width: 100%;
}

footer .container {
    padding: 0; /* Supprime les marges de boîte internes du conteneur dans le footer */
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px; /* Espace réduit sous les icônes */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;  /* Taille réduite (de 45px à 35px) */
    height: 35px; /* Taille réduite (de 45px à 35px) */
    border-radius: 50%;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
}

/* Ajustement de la taille des icônes SVG à l'intérieur */
.social-icon svg {
    width: 18px;
    height: 18px;
}

footer p {
    font-size: 0.85rem; /* Texte légèrement plus compact */
    opacity: 0.8;
    margin: 0;
}



/* Cache l'interrupteur sur tous les écrans */
.menu-checkbox {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        z-index: 1002;
    }

     /* Style de base des barres */
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #ffffff !important;
        transition: transform 0.3s ease, opacity 0.3s ease; /* Animation fluide */
    }
    
      /* ANIMATION : Transformation des barres en X quand la case est cochée */
    .menu-checkbox:checked ~ .menu-toggle .bar-1 {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-checkbox:checked ~ .menu-toggle .bar-2 {
        opacity: 0; /* Fait disparaître la barre du milieu */
    }

    .menu-checkbox:checked ~ .menu-toggle .bar-3 {
        transform: translateY(-8px) rotate(-45deg);
    }
	
    /* Affichage du volet de navigation */
    nav {
        display: none !important;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    .menu-checkbox:checked ~ nav {
        display: block !important;
    }
	 nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav ul li { width: 100%; text-align: center; }
    nav ul li a { display: block; padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.05); }
}
/* ==========================================================================
   10. GESTION DU BURGER (SURVOL & BOUTON X) VIA CLASSE ACTIVE
   ========================================================================== */
@media (max-width: 768px) {
    /* Masquer le menu par défaut */
    nav {
        display: none;
    }

    /* Afficher le menu uniquement quand le conteneur est actif (.active) */
    .nav-container.active nav {
        display: block !important;
    }

    /* --- EFFET TRANSFORMATION BURGER EN "X" --- */
    /* Si vous utilisez des spans pour dessiner le burger (méthode classique CSS) */
    .nav-container.active .menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-container.active .menu-toggle span:nth-child(2) {
        opacity: 0; /* Cache la barre du milieu */
    }
    .nav-container.active .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* ALTERNATIVE : Si vous utilisez Font Awesome pour vos icônes (ex: <i class="fa fa-bars"></i>) */
    /*
    .nav-container.active .fa-bars::before {
        content: "\f00d"; /* Code unicode Font Awesome pour le bouton "X" (times) */
    }
    */
}



/* Bouton de discussion flottant vert */
.whatsapp-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Effet au survol de la souris */
.whatsapp-floating:hover {
    transform: scale(1.1);
    background-color: #1ebd56;
}


.whatsapp-floating {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    
    /* On force l'annulation des positions gauches et hautes */
    left: auto !important;
    top: auto !important;
    transform: none !important;
    
    display: flex !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background-color: #25d366 !important;
    color: white !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    z-index: 999999 !important; /* Pour flotter AU-DESSUS de tout le site */
    transition: background-color 0.2s ease !important;
}

/* Effet au survol propre */
.whatsapp-floating:hover {
    background-color: #1ebd56 !important;
}


.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}
.admin-table th, .admin-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}
.admin-table th {
    background-color: #34495e;
    color: white;
}
.btn-edit {
    display: inline-block;
    padding: 6px 12px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}
.btn-edit:hover { background: #2980b9; }

.btn-delete {
    display: inline-block;
    padding: 6px 12px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 5px;
    transition: background 0.2s;
}
.btn-delete:hover {
    background: #c0392b;
}

