/* ==========================================================================
   Help Fast — Feuille de Styles Officielle & Moderne (Ultra-Design Edition)
   ONG Malienne d'Action Humanitaire & Développement
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    /* Palette Principale : Verts Sahéliens & Espoir (Haut Contraste) */
    --primary: #047857;
    --primary-dark: #064e3b;
    --primary-darker: #022c22;
    --primary-light: #059669;
    --primary-soft: #ecfdf5;
    --primary-glow: rgba(4, 120, 87, 0.3);

    /* Palette Accent : Soleil & Énergie Dorée (Contraste Élevé) */
    --accent-amber: #d97706;
    --accent-amber-dark: #b45309;
    --accent-amber-light: #f59e0b;
    --accent-amber-soft: #fffbeb;
    --accent-amber-glow: rgba(217, 119, 6, 0.3);

    /* Palette Accent : Eau & Horizon Sahélien */
    --accent-blue: #0369a1;
    --accent-blue-dark: #075985;
    --accent-blue-light: #0284c7;
    --accent-blue-soft: #f0f9ff;

    /* Neutres & Nuances Sombres (Haut Contraste) */
    --dark-950: #020617;
    --dark-900: #090e1a;
    --dark-850: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;
    --muted: #475569;
    --muted-light: #64748b;
    --border: #cbd5e1;
    --border-light: #e2e8f0;
    --border-dark: #94a3b8;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --white: #ffffff;

    /* Effets de Verre / Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: #cbd5e1;
    --glass-dark-bg: rgba(12, 18, 34, 0.85);
    --glass-dark-border: rgba(255, 255, 255, 0.2);

    /* Ombres Profondes & Modernes */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.1), 0 2px 6px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.12), 0 6px 14px -4px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.18), 0 12px 24px -8px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 35px var(--primary-glow);

    /* Arrondis */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Typographie */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--dark-800);
    background-color: var(--bg-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-900);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Conteneur universel */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==========================================================================
   TOP BAR INSTITUTIONNELLE (Haut Contraste)
   ========================================================================== */
.top-bar {
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.8125rem;
    padding: 0.65rem 0;
    border-bottom: 1.5px solid #cbd5e1;
    position: relative;
    z-index: 50;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    color: #0f172a;
    font-weight: 600;
}

.top-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ecfdf5;
    color: #064e3b;
    padding: 0.22rem 0.7rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
    border: 1.5px solid #059669;
    box-shadow: 0 1px 3px rgba(4, 120, 87, 0.12);
    letter-spacing: 0.02em;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.top-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0f172a;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.top-bar-link:hover {
    color: var(--primary);
}

/* ==========================================================================
   NAVIGATION BAR (Glassmorphism & Fixed Header)
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-normal);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.03);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.35rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 650;
    color: #0f172a;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 800;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.95rem;
    right: 0.95rem;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark-900);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

/* Drawer mobile */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 200;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 34, 0.6);
    backdrop-filter: blur(4px);
    z-index: 190;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   BOUTONS & CALL-TO-ACTIONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
    color: #ffffff;
}

.btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    color: #ffffff;
}

.btn-white {
    background: #ffffff;
    color: var(--dark-900);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.85);
    color: var(--dark-900);
    backdrop-filter: blur(12px);
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.btn-glass:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--dark-800);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.15rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

/* ==========================================================================
   BADGES & PILULES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    width: fit-content;
}

.badge-emerald {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-blue {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-amber {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-slate {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.badge-green {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   GRAND HERO SLIDER CINÉMATIQUE
   ========================================================================== */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 720px;
    min-height: 600px;
    overflow: hidden;
    background: #f0fdf4;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.05) saturate(1.08) brightness(1.01);
    transform: scale(1.01);
    transition: transform 8s cubic-bezier(0.25, 1, 0.5, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slide.active .slide-bg {
    transform: scale(1.04);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.94) 0%, 
        rgba(255, 255, 255, 0.82) 36%, 
        rgba(255, 255, 255, 0.30) 54%, 
        rgba(255, 255, 255, 0.0) 72%);
    pointer-events: none;
}

.slide-content-wrap {
    position: relative;
    z-index: 20;
    width: 100%;
}

.slide-content {
    max-width: 780px;
    padding-right: 2rem;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 2px solid #047857;
    color: #064e3b;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.15);
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 850;
    color: #090e1a;
    line-height: 1.15;
    margin-bottom: 1.35rem;
    letter-spacing: -0.03em;
}

.slide-title .highlight {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-title .accent-text {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-desc {
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 680px;
}

.slide-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.slide-floating-info {
    display: inline-flex;
    align-items: center;
    gap: 1.75rem;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    padding: 0.95rem 1.85rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
}

.slide-stat-divider {
    width: 1px;
    height: 35px;
    background: #cbd5e1;
    flex-shrink: 0;
}

.slide-stat-block {
    display: flex;
    flex-direction: column;
}

.slide-stat-number {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 850;
    color: var(--primary);
    line-height: 1.1;
}

.slide-stat-text {
    font-size: 0.8rem;
    color: #0f172a;
    text-transform: uppercase;
    font-weight: 750;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

/* Flèches du Slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #090e1a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

/* Barre de Contrôle Inférieure */
.slider-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 1.25rem 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
}

.slider-bottom-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.slider-dot {
    width: 65px;
    height: 6px;
    border-radius: var(--radius-full);
    background: #cbd5e1;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-fast);
}

.slider-dot:hover {
    background: #94a3b8;
}

.slider-dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.slider-dot.active .slider-dot-progress {
    width: 100%;
}

.slide-counter {
    color: #0f172a;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.slide-current-num {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 850;
}

/* ==========================================================================
   BANNIÈRE DE STATISTIQUES (Animated Floating Card)
   ========================================================================== */
.stats-banner {
    background: #ffffff;
    border: 1.5px solid #a7f3d0;
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(4, 120, 87, 0.08);
    position: relative;
    overflow: hidden;
}

.stats-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.stats-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-amber-glow) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1.25rem;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1.5px solid #cbd5e1;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    background: #ffffff;
    transform: translateY(-4px);
    border-color: #059669;
    box-shadow: 0 12px 24px rgba(4, 120, 87, 0.12);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 850;
    color: #047857;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: #090e1a;
    margin-bottom: 0.35rem;
}

.stat-subtext {
    font-size: 0.875rem;
    color: #334155;
    font-weight: 550;
    line-height: 1.5;
}

/* ==========================================================================
   SECTIONS & TITRES
   ========================================================================== */
.section {
    padding: 6.5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 4rem auto;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #047857;
    margin-bottom: 0.65rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 850;
    color: #090e1a;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-desc {
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.7;
}

/* ==========================================================================
   GRILLES RESPONSIVES
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ==========================================================================
   CARTES (Cards) & COMPOSANTS
   ========================================================================== */
.card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    border-color: #059669;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.08);
}

.card-icon-emerald {
    background: #d1fae5;
    color: #064e3b;
    border: 1px solid #a7f3d0;
}

.card-icon-blue {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.card-icon-amber {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.card-icon-green {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    color: #090e1a;
}

.card-text {
    font-size: 0.975rem;
    color: #1e293b;
    font-weight: 450;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Manifeste Items */
.manifesto-item {
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    color: #1e293b;
    font-weight: 550;
}

.manifesto-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1fae5;
    color: #064e3b;
    border: 1.5px solid #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   CARTES PROJETS (Project Cards)
   ========================================================================== */
.project-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-color: #059669;
}

.project-card-image-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.project-card:hover .project-card-image {
    transform: scale(1.08);
}

.project-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.5) 0%, transparent 60%);
}

.project-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.project-card-body {
    padding: 1.75rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-location {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #1e293b;
    margin-bottom: 0.65rem;
    font-weight: 700;
}

.project-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #090e1a;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.project-card-desc {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 450;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1.5px solid #cbd5e1;
    margin-top: auto;
}

.project-beneficiaries {
    font-size: 0.875rem;
    font-weight: 800;
    color: #047857;
}

/* ==========================================================================
   GALERIE PHOTO / BENTO GRID
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item.col-span-2 {
    grid-column: span 2;
}

.gallery-item.row-span-2 {
    grid-row: span 2;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.85) 0%, rgba(6, 78, 59, 0.15) 55%, transparent 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    transition: opacity var(--transition-normal);
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gallery-sub {
    font-size: 0.825rem;
    color: #d1fae5;
}

/* ==========================================================================
   ACCORDÉON FAQ
   ========================================================================== */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: #059669;
}

.faq-item.active {
    border-color: #047857;
    box-shadow: 0 8px 20px rgba(4, 120, 87, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.35rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #090e1a;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: #047857;
}

.faq-icon {
    font-size: 0.95rem;
    color: #090e1a;
    font-weight: 800;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #047857;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding: 1.25rem 1.75rem 1.6rem 1.75rem;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   CALL TO ACTION BANNER (Grand CTA)
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
    border-radius: var(--radius-xl);
    padding: 4.5rem 2.5rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(4, 120, 87, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid #059669;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-title {
    color: #ffffff;
    font-size: 2.75rem;
    font-weight: 850;
    margin-bottom: 1.15rem;
    letter-spacing: -0.03em;
}

.cta-desc {
    font-size: 1.2rem;
    color: #f0fdf4;
    font-weight: 500;
    max-width: 680px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

/* ==========================================================================
   FORMULAIRES (Forms & Inputs)
   ========================================================================== */
.form-group {
    margin-bottom: 1.35rem;
}

.form-label {
    display: block;
    font-weight: 750;
    font-size: 0.925rem;
    color: #0f172a;
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #090e1a;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: #047857;
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.15);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

/* Alertes & Flash Messages */
.alert {
    padding: 1rem 1.35rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #ecfdf5;
    color: #064e3b;
    border: 1.5px solid #059669;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #ef4444;
}

/* ==========================================================================
   FOOTER INSTITUTIONNEL
   ========================================================================== */
.footer {
    background:
        radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    color: #1e293b;
    padding: 5.5rem 0 2rem 0;
    border-top: 1.5px solid #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 850;
    color: #064e3b;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-weight: 500;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #090e1a;
    margin-bottom: 1.35rem;
    position: relative;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
}

.footer-contact-item a {
    color: #0f172a;
    font-weight: 700;
}

.footer-contact-item a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1.5px solid #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

/* ==========================================================================
   EN-TÊTES DE PAGES CLAIRS (Page Hero)
   ========================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 4.5rem 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.18) 0%, transparent 38%),
        radial-gradient(circle at 90% 25%, rgba(245, 158, 11, 0.15) 0%, transparent 36%),
        radial-gradient(circle at 50% 120%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
        linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-bottom: 1.5px solid #cbd5e1;
    color: var(--dark-900);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(5, 150, 105, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
    pointer-events: none;
}

.page-hero > .container {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: 3.25rem;
    font-weight: 850;
    color: #090e1a;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.page-hero-desc {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 550;
    line-height: 1.65;
}

/* ==========================================================================
   ANIMATIONS & SCROLL REVEAL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .hero-slider-container {
        height: 660px;
    }
    .slide-title {
        font-size: 2.75rem;
        line-height: 1.2;
    }
    .slide-desc {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }
    .slide-floating-info {
        gap: 1.25rem;
        padding: 0.85rem 1.35rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .mobile-drawer {
        display: flex;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .gallery-item.col-span-2 {
        grid-column: span 1;
    }
    .gallery-item.row-span-2 {
        grid-row: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* ==========================================================================
       HERO SLIDER RESPONSIVE MOBILE (Haute Lisibilité & Aucun Dépassement)
       ========================================================================== */
    .hero-slider-container {
        height: 640px;
        min-height: 580px;
    }

    .slide {
        display: flex;
        align-items: center;
        padding-top: 1.25rem;
        padding-bottom: 4rem;
    }

    .slide-bg {
        transform: scale(1.02);
    }

    .slide.active .slide-bg {
        transform: scale(1.06);
    }

    .slide-overlay {
        background: linear-gradient(180deg, 
            rgba(255, 255, 255, 0.96) 0%, 
            rgba(255, 255, 255, 0.90) 45%, 
            rgba(255, 255, 255, 0.70) 78%, 
            rgba(255, 255, 255, 0.35) 100%);
    }

    .slide-content-wrap {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .slide-content {
        max-width: 100%;
        padding-right: 0;
    }

    .slide-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.85rem;
        margin-bottom: 0.85rem;
        gap: 0.45rem;
        line-height: 1.2;
    }

    .slide-title {
        font-size: 1.85rem;
        line-height: 1.22;
        margin-bottom: 0.75rem;
        letter-spacing: -0.02em;
    }

    .slide-desc {
        font-size: 0.925rem;
        line-height: 1.55;
        margin-bottom: 1.25rem;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-actions {
        display: flex;
        align-items: stretch;
        gap: 0.65rem;
        margin-bottom: 1.25rem;
        width: 100%;
    }

    .slide-actions .btn {
        flex: 1 1 50%;
        padding: 0.7rem 0.85rem;
        font-size: 0.85rem;
        white-space: nowrap;
        justify-content: center;
        gap: 0.4rem;
    }

    .slide-actions .btn svg {
        width: 15px;
        height: 15px;
    }

    .slide-floating-info {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0.65rem 0.95rem;
        border-radius: var(--radius-md);
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
        border: 1.5px solid #cbd5e1;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(8px);
    }

    .slide-stat-divider {
        height: 24px;
        background: #cbd5e1;
    }

    .slide-stat-block {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .slide-stat-number {
        font-size: 1.25rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .slide-stat-text {
        font-size: 0.6875rem;
        line-height: 1.2;
        letter-spacing: 0.01em;
        margin-top: 0.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .slider-arrow {
        display: none;
    }

    .slider-bottom-bar {
        padding: 0.65rem 0;
    }

    .slider-dots {
        gap: 0.45rem;
    }

    .slider-dot {
        width: 38px;
        height: 5px;
    }

    .slide-counter {
        font-size: 0.875rem;
    }

    .slide-current-num {
        font-size: 1.15rem;
    }

    .page-hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        height: 600px;
        min-height: 540px;
    }

    .slide {
        padding-top: 1rem;
        padding-bottom: 3.75rem;
    }

    .slide-badge {
        font-size: 0.725rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.6rem;
    }

    .slide-title {
        font-size: 1.55rem;
        line-height: 1.22;
        margin-bottom: 0.6rem;
    }

    .slide-desc {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
    }

    .slide-actions {
        display: flex;
        gap: 0.45rem;
        margin-bottom: 0.85rem;
    }

    .slide-actions .btn {
        flex: 1 1 50%;
        padding: 0.65rem 0.5rem;
        font-size: 0.775rem;
        white-space: nowrap;
        justify-content: center;
    }

    .slide-actions .btn svg {
        display: none;
    }

    .slide-floating-info {
        padding: 0.5rem 0.6rem;
        gap: 0.35rem;
    }

    .slide-stat-block {
        flex: 1 1 0;
        min-width: 0;
    }

    .slide-stat-number {
        font-size: 1.05rem;
    }

    .slide-stat-text {
        font-size: 0.6rem;
        line-height: 1.15;
    }

    .slider-dot {
        width: 28px;
        height: 4px;
    }
}
