/* --- VARIABLES & RESET --- */
:root {
    --green-primary: #2d6a4f;
    --green-light: #40916c;
    --green-soft: #d8f3dc;
    --gold: #d4af37;
    --dark: #1b4332;
    --light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light); }

/* --- HEADER --- */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-corp { height: 50px; }
.logo-c10 { height: 40px; border-left: 1px solid #ddd; padding-left: 15px; }

/* --- BOUTONS --- */
.btn-small {
    background: var(--green-primary);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-green {
    background: var(--green-primary);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 13px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--green-primary);
}

.btn-xl-gold {
    background: var(--gold);
    color: var(--white);
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.btn-small:hover, .btn-primary-green:hover, .btn-xl-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- HERO SECTION (Correction avec image plantation) --- */
.hero-section {
    position: relative;
    /* Utilise 'static' pour que Django trouve l'image à coup sûr */
    background: url('../images/PROVERCI\ FIM\ ZAMBAKRO.webp') no-repeat center center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Overlay dégradé plus sombre pour la lisibilité du texte */
    background: linear-gradient(135deg, rgba(0, 40, 20, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-container { position: relative; z-index: 2; }

.text-green { color: #52b788; } /* Vert plus flash pour la bannière sombre */

.hero-main-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 35px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- PROBLEM GRID --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.problem-card {
    background: var(--white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.problem-card i {
    font-size: 3rem;
    color: #e63946;
    margin-bottom: 20px;
}

/* --- BIO SECTION (Image Tomates) --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tag { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.quote-box {
    border-left: 5px solid var(--green-light);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.15rem;
    color: #555;
}

.bio-image-container {
    position: relative;
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.bio-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 30px;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: 25px;
    right: -15px;
    background: var(--gold);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- IMPACT STATS (Correction Visibilité Blanc) --- */
.impact-section { 
    padding: 100px 0; 
    background-color: var(--dark); 
}

.impact-grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-card { text-align: center; }

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label { 
    font-size: 1.2rem; 
    color: #ffffff !important; /* Blanc pur forcé */
    font-weight: 600;
    text-transform: uppercase;
}

/* --- CTA SECTION --- */
.cta-box {
    background: var(--green-soft);
    padding: 60px 40px;
    border-radius: 40px;
}

/* --- FOOTER --- */
.footer-main {
    background: #0f1f18;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.footer-logo { height: 70px; margin-bottom: 25px; }

/* --- SCROLL TO TOP --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: white;
    width: 55px; height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
}

.scroll-top-btn.visible { display: block; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-main-title { font-size: 2.8rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .bio-img { height: 400px; }
}

@media (max-width: 768px) {
    .hero-section { height: auto; padding: 140px 0 80px; }
    .hero-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .stat-number { font-size: 3rem; }
    .experience-badge { right: 10px; bottom: 15px; padding: 10px 20px; }
}
/* Par défaut (mobile) : on cache la nav desktop */
.nav-desktop {
    display: none;
    opacity: 0;
}


@media screen and (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
    }
}
.logo-area {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* par défaut logo gauche */
    gap: 10px;
}

/* Sur mobile, on met le logo PROVERCI à droite */
@media screen and (max-width: 767px) {
    .logo-area {
        justify-content: space-between; /* espace entre les logos */
        width: 100%;
    }

    .logo-c10 {
        order: 1; /* reste à gauche */
    }

    .logo-proverci {
        order: 2; /* passe à droite */
    }
}


/* --- SECTION PRODUITS PHARES --- */
.product-img-container {
    width: 100%;
    height: 220px; /* Hauteur fixe pour l'uniformité */
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre l'image proprement sans la déformer */
    transition: var(--transition);
}

.problem-card:hover .product-img-container img {
    transform: scale(1.08); /* Effet de zoom au survol de la carte */
}

/* Ajustement pour les titres de produits */
.problem-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.4rem;
}