/* ======================================================================
   1. VARIABLES & RESET
====================================================================== */
:root {
    /* Couleurs de l'ONG (Bleu pour l'eau et la confiance, Or/Jaune pour l'espoir/action) */
    --color-primary: #0077b6;     /* Bleu Profond (Action/Boutons Principaux) */
    --color-secondary: #00b4d8;   /* Bleu Clair (Mise en avant) */
    --color-accent: #ffb700;      /* Jaune/Or (Boutons secondaires, highlights) */
    --color-dark: #212529;        /* Texte Foncé */
    --color-light: #f8f9fa;       /* Arrière-plan Clair */
    --color-white: #ffffff;
    
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --spacing-md: 20px;
    --spacing-lg: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

h1, h2, h3 {
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; color: var(--color-primary); }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--color-primary);
}

a:hover {
    color: var(--color-secondary);
}

.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-5 { padding-top: 60px; padding-bottom: 60px; }
.mt-4 { margin-top: 40px; }
.bg-light { background-color: var(--color-light); }

/* Conteneur général pour centrer le contenu */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ======================================================================
   2. BOUTONS GÉNERAUX
====================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    margin: 5px 10px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn i {
    margin-right: 8px;
}

/* Bouton Principal (Donner) */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Bouton Secondaire (Découvrir) */
.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-xlarge {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* ======================================================================
   3. STRUCTURE DE BASE (ALERT & HEADER)
====================================================================== */

/* Top Alert Bar */
#top-alert {
    background-color: rgb(49, 194, 49);
    color: var(--color-dark);
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

#top-alert a {
    color: var(--color-dark);
    font-weight: bold;
    text-decoration: underline;
}

/* Header */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky; /* Rendre le header fixe */
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 60px; /* Taille du logo */
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--color-dark);
    font-weight: 500;
}

nav ul li a.active {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

.btn-nav {
    margin-left: 10px;
}

/* ======================================================================
   4. SECTION HERO
====================================================================== */
#hero {
    position: relative;
    height: 50vh; /* Pleine hauteur pour un grand impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Image de remplacement - À modifier avec une vraie photo */
    background: url('../images/image\ 29.jpg') no-repeat center center/cover; 
    color: var(--color-white);
}

/* Calque pour améliorer la lisibilité du texte */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Assombrir l'image de 40% */
}

#hero .container {
    position: relative; /* Pour que le contenu soit au-dessus de l'overlay */
    z-index: 10;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}


/* ======================================================================
   6. DOMAINES D'INTERVENTION
====================================================================== */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.domain-item {
    background-color: var(--color-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-secondary);
}

.domain-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.domain-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.domain-item h3 {
    color: var(--color-dark);
    margin-bottom: 10px;
}

/* ======================================================================
   7. ACTUALITÉS RÉCENTES
====================================================================== */
#latest-news h2 {
    margin-bottom: var(--spacing-lg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.news-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h4 a {
    color: var(--color-dark);
    font-size: 1.3rem;
    margin-top: 0;
    display: block;
}

.card-content h4 a:hover {
    color: var(--color-primary);
}

.card-content .date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.read-more {
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

/* ======================================================================
   8. CTA DON FINAL
====================================================================== */
#cta-don {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

#cta-don h2 {
    color: var(--color-white);
    margin-bottom: 15px;
}

#cta-don p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}


/* ======================================================================
   9. FOOTER
====================================================================== */
footer {
    background-color: var(--color-dark);
    color: #ced4da;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-info, .footer-links, .social-links {
    padding: 10px 0;
}

footer a {
    color: var(--color-light);
    margin: 0 5px;
}

footer a:hover {
    color: var(--color-accent);
}

.social-links a {
    font-size: 1.2rem;
    margin-left: 15px;
}

/* ======================================================================
   10. RESPONSIVE DESIGN (Mobilité)
====================================================================== */
@media (max-width: 992px) {
    /* Navigation */
    header .container {
        flex-direction: column;
    }

    nav {
        width: 100%;
        margin-top: 10px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li a {
        padding: 8px 10px;
    }

    /* Hero */
    h1 { font-size: 2.5rem; }
    .slogan { font-size: 1.2rem; }

    /* Stats Bar */
    #stats .container {
        flex-wrap: wrap;
    }

    .stat-item {
        width: 45%;
        margin: 5px 0;
    }

    .stat-number { font-size: 2rem; }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info p { margin: 5px 0; }
    .social-links { margin-top: 10px; }
}

@media (max-width: 600px) {
    /* Hero */
    #hero { height: 60vh; }
    h1 { font-size: 2rem; }
    .slogan { font-size: 1rem; }
    .btn-xlarge { padding: 12px 25px; font-size: 1rem; }
    .hero-actions { display: flex; flex-direction: column; }
    .btn { margin: 5px auto; }
}
/* ======================================================================
   12. PAGE HÉRO PROJETS/ACTIONS
====================================================================== */

#page-hero-projets {
    /* Remplacer 'images/hero-projets-bg.jpg' par le chemin de votre image */
    background: url('../images/image\ 29.jpg') no-repeat center center/cover; 
    position: relative;
    padding-top: 100px; 
    padding-bottom: 100px;
    color: var(--color-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Améliore la lisibilité */
    z-index: 1; /* S'assurer que le contenu est au-dessus du calque */
}

/* Calque d'obscurcissement (pour lisibilité du texte) */
#page-hero-projets::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Noir semi-transparent */
    z-index: -1; /* Placer le calque sous le contenu */
}

#page-hero-projets h1 {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 0;
}

/* Le texte secondaire doit aussi être blanc */
#page-hero-projets .lead-text {
    color: var(--color-white) !important;
}

@media (max-width: 768px) {
    #page-hero-projets h1 {
        font-size: 2rem;
    }
}
/* ======================================================================
   13. PAGE HÉRO BLOG (DIAPORAMA)
====================================================================== */

#page-hero-blog {
    /* Le conteneur principal */
    position: relative;
    height: 60vh; /* Ajustez la hauteur selon vos préférences */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Important pour masquer les images hors champ */
}

/* Conteneur des images du diaporama */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Par défaut, toutes les images sont masquées */
    transition: opacity 1.5s ease-in-out; /* Animation de fondu */
    z-index: 1;
}

.slide-image.active-slide {
    opacity: 1; /* Afficher l'image active */
}

/* Calque pour obscurcir le fond (Assure la lisibilité du texte) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Sombre 50% */
    z-index: 2; /* Au-dessus des images, mais sous le texte */
}

/* Contenu (Texte) du Hero */
.hero-content {
    position: relative;
    text-align: center;
    z-index: 3; /* Le texte doit être au-dessus de tout */
    padding: 20px;
}

#page-hero-blog h1 {
    color: var(--color-white);
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
/* ======================================================================
   STYLES POUR LA SECTION HÉRO DU BILAN (Image de fond fixe)
====================================================================== */

#bilan-hero {
    /* Remplacer 'images/bilan-hero-bg.jpg' par le chemin de votre image */
    background: url('../images/image\ 27.jpg') no-repeat center center/cover; 
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: var(--color-white); /* Assurer que le texte est blanc */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Pour la lisibilité */
    z-index: 1; 
}

/* Ajout d'un calque d'obscurcissement pour la lisibilité du texte */
#bilan-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* Noir semi-transparent (un peu plus opaque que pour le blog) */
    z-index: -1; 
}

#bilan-hero h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#bilan-hero .h4 {
    opacity: 0.9;
}
/* ======================================================================
   14. PAGE HÉRO MISSION
====================================================================== */
#page-hero-mission {
    /* Remplacer 'images/hero-mission-bg.jpg' par votre image */
    background: url('../images/image\ 29.jpg') no-repeat center center/cover; 
    position: relative;
    padding: 100px 0;
    color: var(--color-white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

#page-hero-mission::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Calque sombre */
    z-index: -1;
}

/* ======================================================================
   15. SECTION VISION ET MISSION
====================================================================== */
#vision-mission {
    padding: 80px 0;
}

.vision-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border-left: 5px solid var(--color-accent);
}

.vision-box h2 {
    color: var(--color-primary);
    font-family: 'Playfair Display', serif; /* Utilisation de la police Playfair Display */
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 15px;
}

.vision-box p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ======================================================================
   16. SECTION VALEURS (GRILLE)
====================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    padding: 20px;
    background: var(--color-light); /* Couleur de fond douce */
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s;
}

.value-item:hover {
    background-color: #e9ecef;
}

.value-item i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.value-item h3 {
    font-size: 1.3rem;
    color: var(--color-dark);
}

@media (max-width: 768px) {
    .vision-box {
        padding: 25px;
    }
}
/* Styles recommandés pour les nouvelles images de domaine */
.domain-item .domain-image {
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    margin-bottom: 15px; 
    border-radius: 8px; 
}
/* Le reste des styles de chiffres clés et de galerie peut rester inchangé. */
/* Ajoutez ici les styles des boutons pour qu'ils soient visibles sur le fond sombre */
/* (Ils devraient déjà être définis dans votre CSS principal : .btn-primary, .btn-secondary, etc.) */
/* ======================================================================

   FIN DU STYLE
====================================================================== */