/* ============================================
   VARIABLES & BASE
   ============================================ */
:root {
    --primary-color: #009E49;
    --secondary-color: #FCD116;
    --accent-color: #DC241F;
    --dark-color: #1A1A1A;
    --light-color: #F8F9FA;
    --text-color: #333333;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ============================================
   COMPOSANTS GLOBAUX
   ============================================ */

/* Divider réutilisable */
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    margin: 1rem auto;
}

/* Utilitaire couleur */
.primary-color {
    color: var(--primary-color);
}

/* Boutons globaux */
.btn {
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #006633;
    border-color: #006633;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 158, 73, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 158, 73, 0.3);
}

/* Navbar hover */
.btn-hover:hover {
    color: var(--primary-color);
}

/* Cards globales */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

/* Icon box */
.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 158, 73, 0.1), rgba(0, 158, 73, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.card:hover .icon-box {
    background: linear-gradient(135deg, rgba(0, 158, 73, 0.2), rgba(0, 158, 73, 0.1));
}

/* Icon circle */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
}

/* Formulaire */
.form-control:focus {
    box-shadow: none;
    border: 2px solid var(--primary-color) !important;
}

/* Animation globale */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTION BADGE (réutilisable)
   ============================================ */
.section-badge {
    display: inline-block;
    background: rgba(0, 158, 73, 0.12);
    border: 1px solid rgba(0, 158, 73, 0.4);
    color: #2ecc71;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */
.main-hero {
    min-height: 100vh;
}

.main-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.main-hero .container {
    position: relative;
    z-index: 2;
}

.main-hero h1 {
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    color: white;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.main-hero .lead {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.95;
    color: white;
}

/* Hero badge */
.hero-badge {
    display: inline-block;
    background: rgba(0, 158, 73, 0.15);
    border: 1px solid rgba(0, 158, 73, 0.5);
    color: #4dff91;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

/* Hero highlight */
.hero-highlight {
    color: var(--secondary-color);
}

/* Hero stats */
.hero-stats {
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    gap: 1.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    align-self: stretch;
}

/* ============================================
   SECTION QUI SOMMES-NOUS
   ============================================ */
.about-section {
    padding: 5rem 0;
    position: relative;
}

/* Piliers */
.about-pillar {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}

.about-pillar:hover {
    background: rgba(0, 158, 73, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-6px);
}

.about-pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 158, 73, 0.2);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.about-pillar:hover .about-pillar-icon {
    background: var(--primary-color);
    color: white;
}

/* Quote card */
.about-quote-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    position: relative;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.25;
    position: absolute;
    top: 10px;
    left: 15px;
    line-height: 1;
}

.about-quote-card strong {
    color: var(--primary-color);
}

/* ============================================
   SECTION DEVISE
   ============================================ */
.devise-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.devise-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.devise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.devise-icon {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}

.devise-card:hover .devise-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Timeline devise */
.timeline-devise { height: 200px; position: relative; }

.timeline-line {
    position: absolute;
    top: 50%; left: 10%; right: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #28a745, #ffc107);
    border-radius: 2px;
    transform: translateY(-50%);
}

.timeline-point {
    transform: translate(-50%, -50%);
}

.point-circle {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px currentColor;
    margin: 0 auto;
}

.point-content { min-width: 120px; }

.step-number {
    width: 50px; height: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* ============================================
   SECTION MISSION
   ============================================ */
#mission .divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.list-group-item {
    transition: padding-left 0.3s ease;
}

.list-group-item:hover {
    padding-left: 10px;
}

/* ============================================
   SECTION PÔLES
   ============================================ */
.card .card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: #006633;
}

.card ul li {
    transition: all 0.2s ease;
    padding: 3px 0;
}

.card ul li:hover {
    padding-left: 8px;
    color: var(--primary-color);
}

/* ============================================
   SECTION OBJECTIFS
   ============================================ */
.objectif-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.objectif-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 158, 73, 0.15) !important;
}

.objectif-icon {
    width: 70px; height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0,158,73,0.1), rgba(0,158,73,0.05));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.objectif-card:hover .objectif-icon {
    background: linear-gradient(135deg, rgba(0,158,73,0.2), rgba(0,158,73,0.1));
    transform: scale(1.1);
}

/* ============================================
   SECTION RÉALISATIONS
   ============================================ */
.card-action {
    background: #1e1e1e;
    border: 1px solid rgba(0, 158, 73, 0.2);
    border-radius: 16px;
    padding: 1.8rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-action::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card-action:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 158, 73, 0.15);
}

.card-action-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(0, 158, 73, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-action-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0, 158, 73, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(0, 158, 73, 0.3);
    margin-bottom: 0.8rem;
}

.card-action-badge.en-cours {
    background: rgba(252, 209, 22, 0.1);
    color: var(--secondary-color);
    border-color: rgba(252, 209, 22, 0.3);
}

.objectifs-banner {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border: 1px solid rgba(0, 158, 73, 0.25);
}

.objectif-stat {
    padding: 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.objectif-stat:last-child { border-right: none; }

/* ============================================
   ÉQUIPE
   ============================================ */
.team-photo {
    border: 4px solid var(--primary-color);
    transition: opacity 0.3s;
}

.team-photo:hover {
    opacity: 0.85;
    cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border-top: 4px solid var(--primary-color);
}

footer h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    position: relative;
    padding-bottom: 10px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

footer p,
footer a {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.3s ease;
    line-height: 1.6;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer hr {
    opacity: 0.2;
    margin: 2rem 0;
}

/* Footer liens rapides */
.footer-links li { margin-bottom: 0.5rem; }

.footer-links li a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
    gap: 6px;
}

.footer-links li a:hover {
    color: var(--primary-color) !important;
    padding-left: 6px;
}

.footer-links li a i {
    color: var(--primary-color);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-links li a:hover i {
    transform: translateX(3px);
}

/* Boutons réseaux sociaux */
.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: white !important;
    background: transparent;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 158, 73, 0.4);
}

.social-btn:hover i { color: white; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .main-hero {
        min-height: 80vh;
        background-attachment: scroll !important;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-stat-divider {
        width: 60px;
        height: 1px;
        align-self: center;
    }

    .about-section { padding: 3rem 0; }

    .devise-card { margin-bottom: 1.5rem; }

    footer h5 { margin-top: 1.5rem; }
    footer h5:first-child { margin-top: 0; }

    #mission .display-5 { font-size: 2rem; }

    @media (max-width: 400px) {
        .social-label { display: none; }
        .social-btn {
            padding: 8px;
            border-radius: 50%;
            width: 40px; height: 40px;
            justify-content: center;
        }
    }
}

/* ============================================
   FIX CRITIQUE - PAGE BLANCHE MOBILE
   ============================================ */

/* Tous les éléments visibles par défaut */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* AOS réactivé seulement sur desktop après init */
@media (min-width: 768px) {
    body.aos-initialized [data-aos]:not(.aos-animate) {
        opacity: 0 !important;
        transform: translateY(30px) !important;
        transition: opacity 0.6s ease, transform 0.6s ease !important;
    }

    body.aos-initialized [data-aos].aos-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: opacity 0.6s ease, transform 0.6s ease !important;
    }
}

/* Fix image hero mobile - évite le fond blanc */
.main-hero {
    background-attachment: scroll !important; /* parallax désactivé sur mobile */
}

@media (max-width: 768px) {
    .main-hero {
        background-size: cover !important;
        background-position: center center !important;
        min-height: 100svh !important; /* svh = unité mobile correcte */
    }
}


.navbar-nav .nav-link.active {
    color: rgb(0, 158, 73) !important;
    font-weight: 700;
    position: relative;
}

