/* =========================================
   1. VARIABLES & BASE
   ========================================= */
:root {
    --primary-blue: #00ADEF;
    --primary-blue-dark: #0081b3;
    --primary-green: #4CAF50;
    --accent-orange: #FF9800;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--dark-text); background: var(--bg-light); line-height: 1.7; overflow-x: hidden; }
html { scroll-behavior: smooth; }

/* Utilitaires Globaux */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 80px 0; }
.text-blue { color: var(--primary-blue); }
.text-green { color: var(--primary-green); }
.text-orange { color: var(--accent-orange); }
.mt-30 { margin-top: 30px; }
.bg-light-pattern { background-color: #f1f5f9; background-image: radial-gradient(#e2e8f0 1px, transparent 1px); background-size: 20px 20px; }
.center { text-align: center; }

/* =========================================
   2. NAVBAR & LOGO
   ========================================= */
.navbar {
    position: sticky; top: 0; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); z-index: 1000; padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { height: 60px; width: auto; object-fit: contain; }

.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark-text); font-weight: 600; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); }
.btn-nav { background: var(--primary-blue); color: white !important; padding: 10px 25px; border-radius: 50px; }
.burger { display: none; cursor: pointer; font-size: 1.5rem; }

/* =========================================
   TITRE LOGO (PC vs MOBILE)
   ========================================= */

/* 1. Configuration du conteneur du logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre l'image et le texte */
    text-decoration: none;
}

/* 2. Style du texte (Caché par défaut sur mobile) */
.desktop-brand {
    display: none; /* IMPORTANT : Caché sur téléphone */
    font-family: var(--font-heading);
    font-weight: 800; /* Très gras */
    font-size: 1.4rem; /* Taille du texte */
    line-height: 1.1; /* Espacement des lignes */
    color: var(--primary-blue); /* Bleu de la charte */
    text-transform: uppercase; /* Tout en majuscules */
    letter-spacing: -0.5px;
}

/* 3. Règle pour PC (Écrans larges uniquement) */
@media (min-width: 992px) {
    .desktop-brand {
        display: block; /* Apparaît sur PC */
    }
    
    /* On agrandit un peu le logo image sur PC pour équilibrer */
    .nav-logo {
        height: 70px; 
    }
}
/* =========================================
   3. HERO SECTION
   ========================================= */
.hero { 
    height: 90vh; min-height: 600px; position: relative;
    background: url('../images/hero_bg.png') center/cover fixed;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)); }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }
.badge-hero { background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 20px; display: inline-block; backdrop-filter: blur(5px); }
.hero h1 { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-buttons { margin-top: 30px; display: flex; justify-content: center; gap: 20px; }

/* Boutons */
.btn { padding: 12px 30px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: 0.3s; display: inline-block; cursor: pointer;}
.btn-primary { background: var(--accent-orange); color: white; border: none; box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3); }
.btn-primary:hover, .btn-primary.active { transform: translateY(-3px); background: #f57c00; color:white; }
.btn-outline { border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary-blue); }
.btn-outline-dark { border: 2px solid var(--dark-text); color: var(--dark-text); background: transparent; }
.btn-outline-dark:hover { background: var(--dark-text); color: white; }
.btn-white { background: white; color: var(--primary-blue); }

/* =========================================
   4. HEADERS DES AUTRES PAGES
   ========================================= */
.page-header {
    height: 400px; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; text-align: center; color: white;
    background-size: cover; background-position: center; position: relative;
}
.page-header::before { content:''; position: absolute; inset:0; background: rgba(0,0,0,0.6); }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 10px; text-transform: uppercase; }

.header-actions { background-image: url('../images/bouchent-le-concept-de-communaute-a-l-exterieur.jpg'); } 
.header-blog { background-image: url('../images/des-enfants-africains-profitent-de-la-vie.jpg'); } 
.header-contact { background-image: url('../images/equipe-de-benevoles-empilant-les-mains.jpg'); }

/* =========================================
   5. SECTIONS COMMUNES
   ========================================= */
.section-title { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 30px; line-height: 1.2; }
.sub-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-blue); font-weight: 700; margin-bottom: 10px; display: block; }
.lead-text { font-size: 1.15rem; color: var(--gray-text); margin-bottom: 30px; }

/* Texte + Image (Split) */
.split-layout { display: flex; align-items: center; gap: 60px; }
.split-layout.reverse { flex-direction: row-reverse; }
.image-block, .text-block { flex: 1; }
.image-wrapper { position: relative; }
.rounded-img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-lg); transition: transform 0.4s; object-fit: cover; }
.hover-zoom:hover { transform: scale(1.02); }

/* Badge flottant sur image */
.floating-badge { 
    position: absolute; bottom: 30px; right: -20px; background: white; 
    padding: 15px 25px; border-radius: 15px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px; font-weight: 700;
}

/* =========================================
   6. CARDS & GRID
   ========================================= */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid rgba(0,0,0,0.05); }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.card-img-top { height: 200px; background-size: cover; background-position: center; }
.card-body { padding: 30px; position: relative; }

/* Icones */
.icon-box-small { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; margin-top: -55px; margin-bottom: 20px; border: 3px solid white; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.icon-box { width: 70px; height: 70px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.8rem; margin-bottom: 25px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.bg-blue { background: var(--primary-blue); }
.bg-green { background: var(--primary-green); }
.bg-orange { background: var(--accent-orange); }

/* =========================================
   7. PAGE ACTIONS (SPÉCIFIQUE)
   ========================================= */
.action-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-top: 30px; }
.point { 
    background: white; padding: 15px 20px; border-radius: 12px; 
    display: flex; align-items: center; gap: 15px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #f1f5f9; 
    font-weight: 600; color: var(--dark-text); transition: 0.3s;
}
.point:hover { transform: translateX(5px); border-color: var(--primary-blue); }
.cta-box { background: var(--primary-blue); color: white; padding: 60px 20px; border-radius: 20px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-box h2 { color: white; margin-bottom: 15px; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 30px; font-size: 1.1rem; }

/* =========================================
   8. BLOG & ARTICLES
   ========================================= */
.grid-blog { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.blog-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.3s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-img { height: 220px; background-size: cover; background-position: center; }
.blog-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-content p { flex-grow: 1; }

.link-arrow { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-blue); text-decoration: none; font-weight: 700; margin-top: 15px; }

/* Article unique (article.html) */
.article-body p { margin-bottom: 20px; }
.article-body h2 { margin-top: 30px; margin-bottom: 15px; font-family: var(--font-heading); }

/* =========================================
   9. FOOTER & EXTRAS
   ========================================= */
.footer { background: #0f172a; color: white; padding: 80px 0 20px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-logo { width: 120px; border-radius: 10px; margin-bottom: 20px; }
.footer a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 10px; }
.copyright { border-top: 1px solid #1e293b; margin-top: 50px; padding-top: 20px; text-align: center; color: #64748b; }

.stats-bar { display: flex; justify-content: space-around; background: white; padding: 40px; margin: -50px auto 0; width: 85%; border-radius: 15px; box-shadow: var(--shadow-lg); position: relative; z-index: 10; }
.stat-num { display: block; font-size: 2.5rem; color: var(--primary-blue); font-weight: 800; }

.cta-strip { background: var(--primary-blue); padding: 50px 0; color: white; margin-top: 50px; }
.cta-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;}

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 40px; }
.team-card { text-align: center; background: white; padding: 20px; border-radius: 15px; box-shadow: var(--shadow-sm); }
.team-photo { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 15px; background-size: cover; background-position: center; border: 3px solid var(--bg-light); }
.team-card .role { color: var(--primary-blue); font-size: 0.9rem; font-weight: 600; }

.faq-container { background: white; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 30px; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { padding: 20px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; background: white; transition: 0.3s; }
.faq-question:hover { background: #f9f9f9; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: 0.4s ease; color: #555; }
.faq-item.active .faq-answer { padding: 20px; max-height: 200px; border-top: 1px solid #eee; }

.contact-wrapper { display: flex; gap: 40px; margin-top: -50px; position: relative; z-index: 10; }
.contact-info, .contact-form { flex: 1; background: white; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 10px; background: #f8fafc; }
.contact-form label { font-weight: 600; margin-bottom: 8px; display: block; }
.donation-box { background: #e6fffa; padding: 20px; border-radius: 10px; border-left: 5px solid var(--primary-green); margin-top: 20px; }
.momo-number { font-weight: 800; font-size: 1.2rem; color: var(--primary-green); }

.floating-actions { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.float-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s; }
.float-btn:hover { transform: scale(1.1); }
.btn-whatsapp { background: #25D366; }
.btn-phone { background: var(--primary-blue); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* MOBILE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { position: fixed; right: -100%; top: 70px; background: white; height: 100vh; flex-direction: column; width: 100%; padding-top: 50px; transition: 0.3s; }
    .nav-links.nav-active { right: 0; }
    .burger { display: block; }
    .split-layout, .split-layout.reverse, .contact-wrapper, .cta-content, .stats-bar { flex-direction: column; }
    .stats-bar { width: 95%; gap: 30px; }
    .contact-wrapper { margin-top: 20px; }
}

/* GRILLE DES 8 DOMAINES */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.domain-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.domain-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.domain-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-text);
    font-weight: 700;
}

.domain-card p {
    font-size: 0.9rem;
    color: var(--gray-text);
 
    line-height: 1.6;
}

/* Nouveau Titre Géant sur l'Accueil */
.big-brand-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; /* Très gras */
    text-transform: uppercase;
    color: #ffffff;
    font-size: 2.8rem; /* Gros sur mobile */
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Ombre pour lisibilité */
}

.hero-slogan {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem; /* Un peu plus petit que le titre principal */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Version PC encore plus grosse */
@media (min-width: 768px) {
    .big-brand-title {
        font-size: 5rem; /* Énorme sur PC */
    }
}