/* --- CONFIGURATION & VARIABLES (Inchangé) --- */
:root {
    --primary: #0f172a; /* Bleu nuit */
    --accent: #e11d48; /* Rouge piment (adapté au nouveau logo) */
    --gold: #fbbf24;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    --text-light: #64748b;
    --radius-blob: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

[data-theme="dark"] {
    --primary: #38bdf8;
    --accent: #f43f5e;
    --surface: #0f172a;
    --surface-glass: rgba(15, 23, 42, 0.9);
    --text-main: #f1f5f9;
    --text-light: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--surface); color: var(--text-main); line-height: 1.6; overflow-x: hidden; transition: background 0.3s, color 0.3s; padding-bottom: 80px; }

/* --- TYPOGRAPHIE & SECTIONS --- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--primary); }
.display-text { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.section { padding: 4rem 5%; } /* Espacement standard des sections */
.section-alt { background: rgba(15, 23, 42, 0.03); } /* Couleur de fond alternative légère */
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section-title::after { content: ''; width: 60px; height: 4px; background: var(--accent); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); border-radius: 2px; }

/* --- NAVIGATION & LOGO (MISE À JOUR) --- */
.navbar { position: fixed; top: 0; width: 100%; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; background: var(--surface-glass); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.05); }
/* Nouveau style pour le logo image */
.logo-img { height: 50px; width: auto; display: block; } 
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; position: relative; }
.nav-links a.active { color: var(--accent); }
.nav-links a::after { content: ''; width: 0; height: 2px; background: var(--accent); position: absolute; bottom: -5px; left: 0; transition: 0.3s; }
.nav-links a:hover::after { width: 100%; }

/* --- MOBILE BOTTOM BAR (Inchangé) --- */
.mobile-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; background: var(--primary); padding: 10px 20px; border-radius: 50px; display: flex; justify-content: space-around; align-items: center; z-index: 9999; box-shadow: 0 10px 25px rgba(0,0,0,0.2); backdrop-filter: blur(5px); }
.action-btn { color: white; text-decoration: none; display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; gap: 5px; opacity: 0.8; transition: 0.3s; }
.action-btn i { font-size: 1.4rem; }
.action-btn:hover, .action-btn.highlight { opacity: 1; transform: scale(1.1); color: var(--gold); }
.btn-whatsapp { background: #25D366; color: white !important; padding: 12px; border-radius: 50%; margin-top: -30px; border: 4px solid var(--surface); box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); opacity: 1; }

/* --- HERO SECTION (Inchangé) --- */
.hero { min-height: 90vh; display: flex; align-items: center; padding: 0 5%; position: relative; overflow: hidden; margin-top: 70px;}
.hero-content { flex: 1; z-index: 2; max-width: 600px; }
.hero-visual { flex: 1; position: relative; height: 600px; display: flex; align-items: center; justify-content: center; }
.blob { position: absolute; width: 500px; height: 500px; background: linear-gradient(45deg, var(--primary), var(--accent)); border-radius: var(--radius-blob); animation: morph 8s ease-in-out infinite; opacity: 0.1; z-index: 1; }
@keyframes morph { 0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } }
.hero-img { width: 100%; max-width: 450px; border-radius: 20px; transform: rotate(-3deg); box-shadow: 20px 20px 60px rgba(0,0,0,0.1); z-index: 2; position: relative; transition: transform 0.5s; }
.hero-img:hover { transform: rotate(0deg) scale(1.02); }
.btn-main { display: inline-block; padding: 15px 35px; background: var(--primary); color: white; text-decoration: none; border-radius: 30px; font-weight: 600; margin-top: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: 0.3s; border: none; cursor: pointer;}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); background: var(--accent); }

/* --- COMMON GRID & CARDS --- */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid rgba(0,0,0,0.05); border-radius: 20px; overflow: hidden; transition: 0.4s; position: relative; }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--accent); }
.card-img-top { height: 220px; width: 100%; object-fit: cover; background: #eee; }
.card-body { padding: 2rem; }
.card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.tag { display: inline-block; padding: 5px 12px; background: rgba(225, 29, 72, 0.1); color: var(--accent); border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }

/* --- NOUVEAUX STYLES POUR LES 6 SECTIONS --- */
/* Testimonials */
.testimonial-card { background: var(--surface-glass); padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); position: relative; }
.testimonial-card i { color: var(--accent); font-size: 2rem; opacity: 0.5; position: absolute; top: 20px; left: 20px; }
.testimonial-content { margin-top: 30px; font-style: italic; }
.testimonial-author { margin-top: 20px; font-weight: 700; color: var(--primary); text-align: right; }

/* Spotlights & Banners */
.spotlight-section { display: flex; align-items: center; gap: 4rem; max-width: 1200px; margin: 0 auto; }
.spotlight-img { flex: 1; border-radius: 30px; overflow: hidden; box-shadow: 20px 20px 0px var(--accent); }
.spotlight-img img { width: 100%; height: auto; display: block; transition: 0.5s; }
.spotlight-img:hover img { transform: scale(1.05); }
.spotlight-content { flex: 1; }
.cta-banner { background: linear-gradient(135deg, var(--primary), #1e293b); color: white; text-align: center; padding: 5rem 5%; border-radius: 30px; margin: 4rem 5%; }
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p {color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 2rem auto; }

/* FAQ & Process Styles */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.faq-item { background: var(--surface); padding: 25px; border-radius: 15px; border: 1px solid rgba(0,0,0,0.1); }
.faq-item h4 { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.faq-item i { color: var(--accent); }
.process-steps { display: flex; justify-content: space-between; max-width: 900px; margin: 40px auto; text-align: center; gap: 30px; flex-wrap: wrap;}
.step-item { flex: 1; min-width: 200px; }
.step-icon { width: 80px; height: 80px; background: rgba(225, 29, 72, 0.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; font-size: 2rem; font-weight: bold; }


/* --- CONTACT (Inchangé) --- */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 4rem; max-width: 1200px; margin: 0 auto; }
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.icon-box { width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
input, textarea { width: 100%; padding: 15px; margin-bottom: 1rem; border: 2px solid #eee; border-radius: 10px; font-family: inherit; background: var(--surface); color: var(--text-main); }
input:focus, textarea:focus { border-color: var(--primary); outline: none; }
.map-placeholder { width: 100%; height: 400px; background: #eee; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #888; font-weight: bold; background-image: url('https://maps.googleapis.com/maps/api/staticmap?center=Abidjan,Ivory+Coast&zoom=13&size=800x400&sensor=false'); background-size: cover; background-position: center;}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero, .spotlight-section { flex-direction: column; padding-top: 100px; text-align: center; }
    .hero { flex-direction: column-reverse; }
    .hero-img { margin-bottom: 30px; width: 80%; transform: rotate(0); }
    .nav-links { display: none; }
    .blob { width: 300px; height: 300px; }
    .display-text { font-size: 2.5rem; }
    .mobile-bar { display: flex; }
    .spotlight-img { box-shadow: none; margin-bottom: 30px; width: 100%;}
    .section-title { font-size: 2rem; }
    .cta-banner { padding: 3rem 2rem; margin: 2rem 0; border-radius: 0;}
}
@media (min-width: 769px) { .mobile-bar { display: none; } }

/* --- NOUVEAUX STYLES : STATS, RECETTES & FOOTER --- */

/* Stats Section */
.stats-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; text-align: center; max-width: 1000px; margin: 0 auto; }
.stat-item h3 { font-size: 3rem; color: var(--accent); margin-bottom: 5px; font-family: var(--font-body); font-weight: 800; }
.stat-item p { font-size: 1.1rem; color: var(--text-light); font-weight: 500; }

/* Recipe Card (Coin Recettes) */
.recipe-card { background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); position: relative; group; }
.recipe-img { width: 100%; height: 250px; object-fit: cover; transition: 0.5s; }
.recipe-card:hover .recipe-img { transform: scale(1.1); }
.recipe-content { padding: 25px; position: relative; background: var(--surface); margin-top: -20px; border-radius: 20px 20px 0 0; }
.recipe-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; display: flex; gap: 15px; }
.recipe-meta span { display: flex; align-items: center; gap: 5px; }

/* Features Grid (Pourquoi SNTD) */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-box { padding: 30px; background: var(--surface-glass); border: 1px solid rgba(0,0,0,0.05); border-radius: 20px; transition: 0.3s; }
.feature-box:hover { background: var(--surface); border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.feature-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

/* --- FOOTER (PIED DE PAGE) --- */
.site-footer { background-color: var(--primary); color: white; padding: 4rem 5% 2rem 5%; margin-top: 4rem; border-radius: 40px 40px 0 0; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; margin-bottom: 3rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--gold); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); transition: 0.3s; text-decoration: none; }
.footer-col ul li a:hover { color: white; padding-left: 5px; }
.footer-about p { color: rgba(255,255,255,0.7); margin-top: 15px; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* Ajustement Mobile pour le Footer (ne pas être caché par la barre) */
@media (max-width: 768px) {
    .site-footer { padding-bottom: 100px; border-radius: 20px 20px 0 0; }
}

/* --- CORRECTIF MOBILE : Alignement Horizontal des Catégories --- */
@media (max-width: 768px) {
    
    /* 1. Remonter le titre pour gagner de la place */
    .section[style*="padding-top: 120px"] {
        padding-top: 90px !important; /* Moins d'espace en haut */
        padding-bottom: 0px !important;
    }

    /* 2. Forcer les icônes sur une seule ligne */
    .process-steps {
        display: flex !important;
        flex-direction: row !important; /* Force la ligne */
        flex-wrap: nowrap !important; /* Empêche le retour à la ligne */
        gap: 10px;
        overflow-x: auto; /* Permet de scroller si l'écran est très petit */
        padding-bottom: 10px;
        justify-content: space-between;
    }

    /* 3. Ajuster la taille des éléments pour qu'ils tiennent */
    .step-item {
        min-width: auto !important; /* Enlève la largeur minimale de 200px */
        flex: 1; /* Distribue l'espace équitablement */
        margin-bottom: 0 !important;
    }

    /* 4. Réduire un peu la taille des ronds et du texte */
    .step-icon {
        width: 60px; /* Plus petit */
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .step-item h3 {
        font-size: 0.8rem !important; /* Texte plus discret */
        white-space: nowrap; /* Empêche le texte de se casser */
    }
}

/* --- Style du Logo dans le Footer --- */
.footer-logo-box {
    background-color: white; /* Fond blanc pour faire ressortir le logo */
    display: inline-block;
    padding: 10px 15px;
    border-radius: 12px; /* Coins arrondis */
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Petite ombre pour le relief */
}

.footer-logo-img {
    height: 45px; /* Taille du logo ajustée */
    width: auto;
    display: block;
}

/* --- Styles pour les Grammages (Poids) --- */
.weight-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.weight-badge {
    background-color: #f1f5f9; /* Gris très clair */
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}