/* --- RESET ET DESIGN DE BASE CORPOREL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-navy: #0e2238;       /* Bleu marine profond */
    --color-red: #e61a23;        /* Rouge vif synchronisé avec le logo */
    --color-light-bg: #f8fafc;   /* Fond gris très clair moderne */
    --color-dark-bg: #091524;    /* Bleu nuit pour le footer */
    --text-dark: #334155;        
    --font-main: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    font-family: var(--font-main);
    padding-top: 90px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- BARRE DE NAVIGATION (NAVBAR) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(14, 34, 56, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
}

.logo-container { 
    display: flex;
    align-items: center;
    gap: 15px;   
}

.site-logo { 
    height: 65px;
    width: auto; 
    object-fit: contain; 
}

.brand-text {
    display: flex;
    flex-direction: column;
}

/* MODIFICATION COULEUR : Synchronisation exacte avec les teintes du logo */
.brand-name { 
    color: var(--color-navy); /* Blanc ou Bleu en fonction de l'image du logo */
    font-size: 1.25rem; 
    font-weight: 800; 
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 0.85rem;
    color: var(--color-red); /* Passage au rouge vif conforme */
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex; 
    list-style: none; 
    gap: 40px; 
}

.nav-links a { 
    color: var(--color-navy); 
    text-decoration: none; 
    font-size: 0.95rem; 
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--color-red); 
}


/* --- LE SECRET DU SCROLL HORIZONTAL (STYLE STORIES PRO) --- */
.stories-section {
    padding: 30px 8% 10px 8%;
    background-color: #ffffff;
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
}

.stories-section h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    color: var(--color-navy);
    font-weight: 700;
}

.stories-container {
    display: flex;
    gap: 16px;
    overflow-x: auto; /* Active le défilement horizontal */
    padding: 10px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Défilement fluide sur smartphone */
}

/* On cache proprement la barre de défilement grise pour garder l'effet application */
.stories-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari et Opera */
}
.stories-container {
    -ms-overflow-style: none;  /* IE et Edge */
    scrollbar-width: none;  /* Firefox */
}

/* La carte Rectangle */
.story-card {
    flex-shrink: 0; /* Empêche le navigateur d'écraser les rectangles */
    width: 140px;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(14, 34, 56, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-red);
    box-shadow: 0 8px 20px rgba(230, 26, 35, 0.15);
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dégradé professionnel du bleu marine vers le transparent */
.story-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(14, 34, 56, 0.9) 20%, rgba(14, 34, 56, 0) 70%);
    z-index: 1;
}

.story-title {
    position: absolute;
    bottom: 15px; left: 12px; right: 12px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    white-space: normal;
    line-height: 1.3;
}


/* --- HERO SECTION --- */
.hero {
    height: calc(80vh - 90px);
    position: relative;
    background: url('images/hero_topographie.jpg') no-repeat center center/cover; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 0 20px;
}

.hero-overlay { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to right, rgba(14, 34, 56, 0.85), rgba(14, 34, 56, 0.6)); 
    z-index: 1; 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 900px; 
}

.hero-tagline {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    background-color: var(--color-red);
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-content h1 { 
    font-size: 3rem; 
    color: #ffffff;
    margin-bottom: 20px; 
    line-height: 1.2;
}

.text-highlight { 
    color: var(--color-red); 
}

.hero-content p { 
    font-size: 1.2rem; 
    color: #e2e8f0; 
    max-width: 700px; 
    margin: 0 auto 40px auto; 
    line-height: 1.6;
}

.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.btn-primary, .btn-secondary { 
    padding: 14px 32px; 
    text-decoration: none; 
    font-weight: 600; 
    border-radius: 4px; 
    font-size: 0.95rem;
    transition: all 0.3s ease; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary { 
    background-color: #25d366; /* Vert WhatsApp pour attirer l'action directe */
    color: #ffffff; 
}

.btn-primary:hover {
    background-color: #128c7e;
}

.btn-secondary { 
    border: 2px solid #ffffff; 
    color: #ffffff; 
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--color-navy);
}

/* --- STRUCTURE DES TITRES DE SECTIONS --- */
.section-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-red);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-title-container {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-container h2 {
    font-size: 2.25rem;
    color: var(--color-navy);
    margin-bottom: 15px;
}

/* --- SECTION PRÉSENTATION (ABOUT) --- */
.about-section {
    padding: 100px 8%;
    background-color: #ffffff;
}

.flex-about {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--color-navy);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #475569;
}

.about-image-box {
    flex: 1;
}

.about-image-box img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(14,34,56,0.15);
}

/* --- SECTION SERVICES (GRILLE DE 9 SERVICES) --- */
.services-section {
    padding: 100px 8%;
    background-color: var(--color-light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    position: relative;
    border-top: 4px solid var(--color-navy);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--color-red);
    box-shadow: 0 12px 25px rgba(14,34,56,0.1);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(14, 34, 56, 0.1);
    position: absolute;
    top: 15px;
    right: 25px;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--color-navy);
    margin-bottom: 15px;
    padding-right: 40px; /* Évite la superposition avec le numéro */
    line-height: 1.4;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
}

/* --- FOOTER INSTITUTIONNEL --- */
.site-footer {
    background-color: var(--color-dark-bg);
    color: #ffffff;
    padding: 80px 8% 30px 8%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 260px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.red-accent {
    color: var(--color-red);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 40px; height: 2px;
    background-color: var(--color-red);
}

.footer-column p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links-list a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 0.9rem;
}

/* --- BOUTON FLOTTANT WHATSAPP EXTRA PRO --- */
.whatsapp-float {
    position: fixed; 
    bottom: 40px; 
    right: 40px; 
    background-color: #25d366; 
    color: #ffffff; 
    padding: 12px 24px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
    font-weight: 600; 
    z-index: 9999; 
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.whatsapp-icon { 
    font-size: 1.4rem;
}

.whatsapp-float:hover { 
    transform: translateY(-4px); 
    background-color: #128c7e; 
    box-shadow: 0 12px 30px rgba(18, 140, 126, 0.4);
}



/* ==========================================================================
   EXTENSION DESIGN : PAGE SERVICES (LES 9 SERVICES OFFICIELS)
   ========================================================================== */

/* --- HERO DE LA PAGE SERVICES --- */
.hero-services {
    height: 45vh;
    position: relative;
    background: url('images/hero_services_topographie.jpg') no-repeat center center/cover; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 0 20px;
}

.hero-overlay-services {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(14, 34, 56, 0.9), rgba(14, 34, 56, 0.7)); 
    z-index: 1;
}

/* --- SECTION CONTENANT LES LIGNES DE SERVICES --- */
.detailed-services-section {
    padding: 100px 8%;
    background-color: #ffffff;
}

/* Structure en blocs alternés (Texte à gauche / Image à droite) */
.service-detail-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.service-detail-row:last-child {
    margin-bottom: 0;
}

/* Force l'inversion du bloc (Image à gauche / Texte à droite) */
.service-detail-row.reverse {
    flex-direction: row-reverse;
}

.service-detail-text {
    flex: 12;
}

/* En-tête technique du service */
.service-meta {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Petit carré rouge numéroté (comme l'enseigne) */
.service-badge-num {
    background-color: var(--color-red);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 800;
}

.service-detail-text h2 {
    font-size: 2.2rem;
    color: var(--color-navy);
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-detail-text p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Liste des fonctionnalités à puces rouges */
.service-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features-list li {
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.service-features-list li i {
    color: var(--color-red);
    font-size: 1rem;
    margin-top: 4px;
}

/* Zone d'image du service */
.service-detail-image {
    flex: 10;
}

.service-detail-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(14, 34, 56, 0.12);
    border: 1px solid #e2e8f0;
}

/* --- BANNIÈRE DE CONTACT EN BAS DE LA PAGE --- */
.cta-banner {
    background-color: var(--color-light-bg);
    padding: 80px 8%;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.cta-banner h2 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 15px;
}

.cta-banner p {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Gros bouton d'action WhatsApp */
.btn-primary-large {
    background-color: #25d366;
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-large:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(18, 140, 126, 0.4);
}

/* ==========================================================================
   NETTOYAGE ET STRUCTURATION RESPONSIVE UNIQUE (ANDROID / PC)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Force la barre supérieure à rester alignée horizontalement */
    .navbar { 
        padding: 0 5% !important; 
        height: 85px !important; 
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        background: #ffffff !important;
        width: 100% !important;
    }
    
    body { 
        padding-top: 85px !important; 
    }

    /* Bouton Burger (Les 3 barres noires) */
    .burger-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 28px !important;
        height: 20px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 10000 !important;
    }

    .burger-menu-btn .bar {
        width: 100% !important;
        height: 3px !important;
        background-color: #0e2238 !important; /* Bleu marine */
        border-radius: 2px !important;
        transition: all 0.3s ease-in-out !important;
    }

    /* Transformation des 3 barres en Croix (X) au clic */
    .burger-menu-btn.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg) !important; background-color: #e61a23 !important; }
    .burger-menu-btn.open .bar:nth-child(2) { opacity: 0 !important; }
    .burger-menu-btn.open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg) !important; background-color: #e61a23 !important; }

    /* LE TIROIR CACHÉ (Le bouclier anti-empilement) */
    .nav-container {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* CHASSE STRICTEMENT LE MENU HORS ÉCRAN */
        width: 100% !important;
        height: 100vh !important;
        background-color: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        transition: right 0.4s cubic-bezier(0.1, 0.8, 0.3, 1) !important;
        z-index: 9999 !important;
    }

    /* Fait revenir le menu au clic */
    .nav-container.open {
        right: 0 !important;
    }

    /* Alignement vertical des liens */
    .nav-links { 
        flex-direction: column !important;
        gap: 35px !important;
        align-items: center !important;
        width: auto !important;
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        color: #0e2238 !important;
    }

    .nav-links a:hover, .nav-links a.active {
        color: #e61a23 !important;
    }

    /* Style du bouton flottant WhatsApp en rond parfait */
    .whatsapp-float span { display: none !important; }
    .whatsapp-float { 
        padding: 0 !important; width: 60px !important; height: 60px !important; border-radius: 50% !important; 
        bottom: 30px !important; right: 20px !important; display: flex !important; align-items: center !important; justify-content: center !important;
    }
    .whatsapp-icon { font-size: 2.2rem !important; margin: 0 !important; }
} /* <--- FIN UNIQUE ET SÉCURISÉE DU BLOC RESPONSIVE */




/* ==========================================================================
   EXTENSION DESIGN : PAGE À PROPOS (HISTOIRE & M. ATANGANA)
   ========================================================================== */

/* --- HERO DE LA PAGE À PROPOS --- */
.hero-about {
    height: 45vh;
    position: relative;
    background: url('images/hero_about_topographie.jpg') no-repeat center center/cover; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 0 20px;
}

.hero-overlay-about {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(14, 34, 56, 0.9), rgba(14, 34, 56, 0.7)); 
    z-index: 1;
}

/* --- SECTION CONTENU DÉTAILLÉ --- */
.about-detailed-section {
    padding: 100px 8%;
    background-color: #ffffff;
}

.about-grid-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.about-main-text {
    flex: 12;
}

.about-main-text h2 {
    font-size: 2.2rem;
    color: var(--color-navy);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-main-text p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Encadré de mise en valeur de la localisation Awae */
.location-highlight-box {
    background-color: var(--color-light-bg);
    border-left: 4px solid var(--color-red);
    padding: 25px;
    border-radius: 0 8px 8px 0;
    margin-top: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.location-icon {
    font-size: 2rem;
    color: var(--color-navy);
    margin-top: 3px;
}

.location-highlight-box h4 {
    font-size: 1.15rem;
    color: var(--color-navy);
    margin-bottom: 8px;
    font-weight: 700;
}

.location-highlight-box p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.about-side-image {
    flex: 10;
}

.about-side-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(14, 34, 56, 0.12);
}

/* --- GRILLE DES VALEURS DE L'ENTREPRISE --- */
.values-container {
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--color-light-bg);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.2rem;
    color: var(--color-red);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--color-navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 992px) {
    .about-grid-block {
        flex-direction: column;
        gap: 40px;
    }
    .about-side-image img {
        height: 300px;
    }
    .about-main-text h2 {
        font-size: 1.8rem;
    }
}
/* ==========================================================================
   MISES À JOUR : SECTIONS PARTENAIRES, STATS ET TEXTES ENRICHIS
   ========================================================================== */

/* --- SECTION 1 : PARTENAIRES --- */
.partners-section {
    padding: 100px 8%;
    background-color: #ffffff;
    text-align: center;
}
.partners-intro-text {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.partner-card {
    background-color: var(--color-light-bg);
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    border-radius: 8px;
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(14, 34, 56, 0.08);
}
.partner-card img {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 25px;
}
.partner-info h4 {
    font-size: 1.3rem;
    color: var(--color-navy);
    margin-bottom: 12px;
    font-weight: 700;
}
.partner-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
}

/* --- SECTION 2 : STATISTIQUES --- */
.stats-section {
    position: relative;
    background: url('images/hero_topographie.jpg') no-repeat center center/cover;
    padding: 80px 8%;
}
.stats-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(14, 34, 56, 0.92); /* Fond marine opaque */
    z-index: 1;
}
.stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-red);
}
.stat-label {
    font-size: 1rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- SECTION 3 : TEXTES EXPLICATIFS ET DÉTAILS --- */
.expertise-details-section {
    padding: 100px 8%;
    background-color: var(--color-light-bg);
}
.flex-expertise {
    display: flex;
    align-items: center;
    gap: 80px;
}
.expertise-image-box {
    flex: 10;
}
.expertise-image-box img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(14,34,56,0.12);
}
.expertise-text-box {
    flex: 12;
}
.expertise-text-box h2 {
    font-size: 2.2rem;
    color: var(--color-navy);
    margin-bottom: 20px;
    line-height: 1.3;
}
.expertise-text-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 35px;
}
.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.benefit-item:last-child {
    margin-bottom: 0;
}
.benefit-item i {
    font-size: 1.8rem;
    color: var(--color-red);
    margin-top: 3px;
    width: 30px;
    text-align: center;
}
.benefit-item h4 {
    font-size: 1.15rem;
    color: var(--color-navy);
    margin-bottom: 6px;
    font-weight: 600;
}
.benefit-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 0;
}

/* --- ADAPTATION SMARTPHONE NOUVELLES SECTIONS --- */
@media (max-width: 992px) {
    .flex-expertise {
        flex-direction: column;
        gap: 40px;
    }
    .expertise-image-box img {
        height: 300px;
    }
    .expertise-text-box h2 {
        font-size: 1.8rem;
    }
}
/* --- DESIGN DES GRANDS PANNEAUX PARTENAIRES --- */
.partners-grid-pro {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
    text-align: left;
}

.partner-panel {
    display: flex;
    background-color: var(--color-light-bg);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(14, 34, 56, 0.03);
    transition: box-shadow 0.3s ease;
}

.partner-panel:hover {
    box-shadow: 0 10px 30px rgba(14, 34, 56, 0.08);
}

.partner-panel.reverse-panel {
    flex-direction: row-reverse;
}

.partner-panel-img {
    flex: 10;
    min-height: 350px;
}

.partner-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-panel-text {
    flex: 14;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-logo-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(14, 34, 56, 0.05);
    padding-bottom: 15px;
}

.partner-logo-header img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.partner-logo-header h3 {
    font-size: 1.2rem;
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.4;
}

.partner-project-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 25px;
}

.partner-spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.partner-spec-list li {
    font-size: 0.95rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.partner-spec-list li i {
    color: var(--color-red);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* --- REPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .partner-panel, .partner-panel.reverse-panel {
        flex-direction: column;
    }
    .partner-panel-img {
        height: 280px;
        min-height: auto;
    }
    .partner-panel-text {
        padding: 25px;
    }
}
/* --- ENRICHISSEMENT PAGE À PROPOS (BUREAU & REPROGRAPHIE) --- */

.about-grid-block.reverse-block {
    flex-direction: row-reverse;
}

/* Ajustement des marges pour éviter le chevauchement */
.about-grid-block {
    margin-bottom: 90px;
}

.about-grid-block:last-of-type {
    margin-bottom: 110px;
}

/* Amélioration de l'effet au survol des images de l'histoire */
.about-side-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(14,34,56,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-side-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(14,34,56,0.18);
}

/* Responsive pour les smartphones */
@media (max-width: 992px) {
    .about-grid-block.reverse-block {
        flex-direction: column;
    }
}

/* ==========================================================================
   CORRECTIONS ET OPTIMISATIONS SMARTPHONE (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. CORRECTION NAVBAR : Évite que les titres du menu soient collés */
    .navbar { 
        padding: 15px 5%; 
        height: auto; 
        flex-direction: column; 
        gap: 20px; /* Donne de l'air entre le logo et le bloc de liens */
    }
    
    .nav-links { 
        gap: 30px; /* Espace confortable entre chaque mot du menu (Accueil, Services...) */
        flex-wrap: wrap; /* Permet un retour à la ligne propre si l'écran est très petit */
        justify-content: center;
        width: 100%;
    }
    
    body { 
        padding-top: 155px; /* Ajuste le haut du site pour ne pas cacher le texte sous le grand menu */
    }
    
    /* 2. CORRECTION FLOTTANT WHATSAPP : Transformation en un magnifique bouton rond parfait */
    .whatsapp-float span { 
        display: none !important; /* Cache le grand texte "Discuter sur WhatsApp" inutilisable sur mobile */
    }
    
    .whatsapp-float { 
        padding: 0; 
        width: 60px; /* Force une largeur fixe parfaite pour le pouce */
        height: 60px; /* Force une hauteur identique pour un rond parfait */
        border-radius: 50%; /* Rend le bouton totalement circulaire */
        bottom: 30px; 
        right: 25px; 
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    
    .whatsapp-icon { 
        font-size: 2rem; /* Agrandit l'icône WhatsApp blanche à l'intérieur du rond pour qu'elle soit bien visible */
        margin: 0;
    }

    /* Ajustements des autres blocs pour le confort mobile */
    .hero { height: auto; padding: 60px 20px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .flex-about, .flex-contact, .flex-expertise { flex-direction: column; gap: 40px; }
    .about-image-box img, .partner-panel-img, .expertise-image-box img { height: 280px; min-height: auto; }
    .partner-panel-text { padding: 20px; }
}
/* ==========================================================================
   ADAPTATION SMARTPHONE AVEC MENU BURGER DERNIÈRE GÉNÉRATION
   ========================================================================== */


 /* ==========================================================================
   ARCHITECTURE SMARTPHONE (ANDROID / IOS) SÉCURISÉE TOPO CAMEROUN
   ========================================================================== */

/* 1. CONFIGURATION INITIALE DES ÉCRANS MOBILES (Max 768px) */
@media (max-width: 768px) {
    
    /* On verrouille l'en-tête pour qu'il reste sur une seule ligne propre sans empiler */
    .navbar { 
        padding: 0 5% !important; 
        height: 85px !important; 
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        background: #ffffff !important;
    }
    
    body { 
        padding-top: 85px !important; /* Évite que le texte du site passe sous la navbar */
    }

    /* 2. APPARITION DU BOUTON BURGER (Les 3 barres noires) */
    .burger-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 28px !important;
        height: 20px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        z-index: 10000 !important; /* Reste TOUJOURS au-dessus de tout */
    }

    .burger-menu-btn .bar {
        width: 100% !important;
        height: 3px !important;
        background-color: #0e2238 !important; /* Bleu marine corporatif */
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.1, 0.8, 0.3, 1) !important;
    }

    /* Désactive la bordure de focus horrible d'Android au clic */
    .burger-menu-btn:focus, .burger-menu-btn:active {
        outline: none !important;
    }

    /* ANIMATION : Transformation des 3 barres en Croix (X) Rouge au clic */
    .burger-menu-btn.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
        background-color: #e61a23 !important; /* Rouge vif synchronisé logo */
    }
    .burger-menu-btn.open .bar:nth-child(2) {
        opacity: 0 !important; /* Cache la barre du milieu */
    }
    .burger-menu-btn.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg) !important;
        background-color: #e61a23 !important;
    }

    /* 3. LE TIROIR DU MENU MASQUÉ PAR DÉFAUT (Anti-empilement total) */
    .nav-container {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* CHASSÉ COMPLÈTEMENT À DROITE (Invisible au chargement) */
        width: 100% !important;
        height: 100vh !important;
        background-color: rgba(255, 255, 255, 0.97) !important; /* Blanc translucide premium */
        backdrop-filter: blur(12px) !important; /* Effet de flou Android/iOS moderne */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        transition: right 0.4s cubic-bezier(0.1, 0.8, 0.3, 1) !important; /* Glissement fluide */
        z-index: 9999 !important;
        box-shadow: -10px 0 30px rgba(14, 34, 56, 0.05) !important;
    }

    /* QUAND LE SCRIPT APPLIQUE LA CLASSE .OPEN : Le menu glisse sur l'écran */
    .nav-container.open {
        right: 0 !important;
    }

    /* Alignement vertical aéré des liens du menu ouvert */
    .nav-links { 
        flex-direction: column !important;
        gap: 35px !important;
        align-items: center !important;
        width: auto !important;
    }

    .nav-links a {
        font-size: 1.4rem !important; /* Gros caractères faciles à cliquer au pouce */
        font-weight: 700 !important;
        color: #0e2238 !important; /* Bleu marine ultra-lisible sur fond blanc */
        letter-spacing: 0.5px;
    }

    /* Le mot actif passe au Rouge Vif corporate */
    .nav-links a:hover, .nav-links a.active {
        color: #e61a23 !important;
    }
}


/* ===================================================
   ÉTAPE 1 : ANIMATION FLUIDE DES CARTES DE SPÉCIALITÉS
   =================================================== */

/* 1. On empêche l'image de déborder de sa boîte quand elle zoome */
.menu-item-card, .menu-grid div, [class*="card"] {
    overflow: hidden !important;
}

/* 2. On prépare l'image à bouger en douceur (durée : 0.4 seconde) */
.menu-item-card img, .menu-grid img {
    transition: transform 0.4s ease-in-out !important;
    will-change: transform; /* Optimise les performances sur smartphone Android */
}

/* 3. L'effet de zoom magique au survol ou au clic */
.menu-item-card:hover img, .menu-grid div:hover img {
    transform: scale(1.08) !important; /* Zoom de 8% de l'image */
}
/* ===================================================
   ÉTAPE 2 : ANIMATION D'APPARITION DU HERO (FADE-IN UP)
   =================================================== */

/* 1. Définition du mouvement de l'animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* Part de 30 pixels plus bas */
    }
    to {
        opacity: 1;
        transform: translateY(0);    /* Arrive à sa position normale */
    }
}

/* 2. Application de l'animation sur le conteneur du texte */
.hero-content {
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    will-change: opacity, transform; /* Force la fluidité sur les smartphones à Yaoundé */
}

/* 3. Léger décalage pour les boutons pour un effet asynchrone ultra-chic */
.hero-buttons-container, .hero-buttons {
    animation: fadeInUp 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* ===================================================
   ÉTAPE 3 : INTERACTIONS SOURIS/TOUCH SUR LES BOUTONS
   =================================================== */

/* 1. On prépare les boutons du Hero à bouger en douceur */
.btn-explorer, .btn-reserver, .hero-buttons-container a, .hero-buttons a {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre de base discrète */
}

/* 2. Effet d'élévation et ombre diffuse au survol ou appui */
.btn-explorer:hover, .hero-buttons-container a:first-child:hover, .hero-buttons a:first-child:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3) !important; /* Halo doré pour le bouton Or */
}

.btn-reserver:hover, .hero-buttons-container a:last-child:hover, .hero-buttons a:last-child:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15) !important; /* Nappe d'ombre blanche pour le bouton Noir */
}

/* 3. Léger effet d'enfoncement quand on clique dessus (Feedback physique) */
.btn-explorer:active, .btn-reserver:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* ===================================================
   ALGORITHME DE DÉFILEMENT POUR STORIES AUTOMATIQUES
   =================================================== */

/* Masque les barres de défilement laides sur Android et iPhone */
.stories-window {
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
}

/* Configure le rail horizontal à taille extensible maximale */
.stories-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;   /* Aligne les 16 cartes sur une seule ligne géante */
    width: max-content !important;
    animation: glissementStories 30s linear infinite !important; /* 30s pour un défilement très doux */
    will-change: transform;         /* Demande au processeur de forcer la fluidité */
}

/* Force chaque carte de story à garder ses dimensions exactes */
.stories-track .story-card {
    flex-shrink: 0 !important;      /* Interdit l'écrasement des images */
    width: 110px !important;        /* Garde le format compact des stories style Instagram */
    margin-right: -10px !important;  /* Espace parfait entre chaque rond/carré */
}

/* Met le défilement en pause instantanément quand le client touche l'écran ou survole */
.stories-track:hover {
    animation-play-state: paused !important;
}

/* L'équation d'optique : dès qu'on passe la série 1 (-50%), la boucle reprend sans saut blanc */
@keyframes glissementStories {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* Glisse pile de la moitié de la boîte */
    }
}



/* --- SECTION CONTENANT LES LIGNES DE SERVICES --- */
.detailed-services-section {
    padding: 60px 5%;
    background-color: #ffffff;
}

/* 1. COMPORTEMENT MOBILE (Android / iPhone) */
.service-detail-row {
    display: flex;
    flex-direction: column; 
    gap: 30px;
    margin-bottom: 60px;
}

.service-detail-row:last-child {
    margin-bottom: 0;
}

.service-detail-text {
    width: 100%;
    order: 1; 
}

.service-detail-row img {
    width: 100%;
    height: auto;
    order: 2; 
    border-radius: 8px;
}

/* 2. COMPORTEMENT PC & GRANDS ÉCRANS (Équilibre parfait) */
@media (min-width: 992px) {
    .detailed-services-section {
        padding: 100px 8%; 
    }

    .service-detail-row {
        flex-direction: row; 
        align-items: center;
        justify-content: space-between; /* Aligne proprement aux extrémités */
        gap: 60px; 
        margin-bottom: 120px;
    }

    /* Rétablit l'inversion alternée (Texte à gauche / Image à droite) */
    .service-detail-row.reverse {
        flex-direction: row-reverse;
    }

    /* TEXTE : Prend exactement la moitié moins l'espace du gap */
    .service-detail-text {
        flex: 0 0 calc(50% - 30px); 
        width: auto;
        order: unset;
    }
    
    /* IMAGE : Prend exactement la moitié moins l'espace du gap */
    .service-detail-row img {
        flex: 0 0 calc(50% - 30px);
        width: 100%;
        height: 400px;        /* Force une hauteur harmonieuse pour toutes les images */
        object-fit: cover;    /* Empêche la déformation en coupant proprement les bords si nécessaire */
        order: unset;
    }
}
/* --- SECTION CONTENANT LES LIGNES DE SERVICES --- */
.detailed-services-section {
    padding: 40px 20px; /* Plus adapté aux petits écrans */
    background-color: #ffffff;
}

/* 1. COMPORTEMENT MOBILE ET TABLETTE (Jusqu'à 1023px) */
/* On force l'alignement vertical et on désactive le côte à côte */
.service-detail-row,
.service-detail-row.reverse {
    display: flex !important;
    flex-direction: column !important; 
    gap: 24px !important;
    margin-bottom: 60px !important;
}

.service-detail-row:last-child {
    margin-bottom: 0 !important;
}

/* Le texte prend toute la largeur disponible */
.service-detail-text {
    width: 100% !important;
    flex: none !important;
    order: 1 !important; /* Force le texte en premier */
}

/* L'image prend toute la largeur disponible et va en dessous */
.service-detail-row img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; /* Garde ses proportions normales */
    flex: none !important;
    order: 2 !important; /* Force l'image en dessous */
    border-radius: 8px;
    display: block !important;
}


/* --- SECTION CONTENANT LES LIGNES DE SERVICES --- */
.detailed-services-section {
    padding: 40px 5%;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* 1. CONFIGURATION MOBILE & TABLETTE (Empilement Vertical + Proportions Égales) */
.service-detail-row,
.service-detail-row.reverse {
    display: flex !important;
    flex-direction: column !important; /* Aligne les éléments verticalement */
    align-items: center !important;    /* Centre les deux blocs sur l'écran */
    gap: 30px !important;
    margin-bottom: 70px !important;
    width: 100% !important;
}

.service-detail-row:last-child {
    margin-bottom: 0 !important;
}

/* Le texte et l'image font STRICTEMENT la même largeur sur mobile (ex: 90% de l'écran) */
.service-detail-text {
    width: 90% !important; /* Ajustez à 100% si vous voulez qu'ils collent plus aux bords */
    max-width: 500px !important; /* Limite la largeur pour garder un format harmonieux */
    flex: none !important;
    order: 1 !important; /* FORCE LE TEXTE AU-DESSUS */
}

.service-detail-row img {
    display: block !important;
    width: 90% !important; /* Strictement la même proportion que le texte */
    max-width: 500px !important; /* Strictement la même limite que le texte */
    height: auto !important; /* Conserve le ratio natif de l'image */
    flex: none !important;
    order: 2 !important; /* FORCE L'IMAGE EN DESSOUS */
    border-radius: 8px !important;
}


/* 2. CONFIGURATION GRANDS ÉCRANS (PC : à partir de 992px) */
@media (min-width: 992px) {
    .detailed-services-section {
        padding: 100px 8% !important; 
    }

    .service-detail-row {
        flex-direction: row !important; /* Rétablit le côte à côte sur PC */
        align-items: center !important;
        justify-content: space-between !important;
        gap: 60px !important; 
        margin-bottom: 120px !important;
    }

    /* Rétablit l'inversion alternée (Gaucher/Droitier) sur PC */
    .service-detail-row.reverse {
        flex-direction: row-reverse !important;
    }

    /* Équilibre parfait 50/50 côte à côte sur PC */
    .service-detail-text {
        flex: 0 0 calc(50% - 30px) !important; 
        width: auto !important;
        max-width: none !important;
        order: unset !important;
    }
    
    .service-detail-row img {
        flex: 0 0 calc(50% - 30px) !important;
        width: 100% !important;
        max-width: none !important;
        height: 400px !important; /* Hauteur fixe et propre pour le format PC */
        object-fit: cover !important;
        order: unset !important;
    }
}

