/* Polices auto-hébergées (sous-ensemble latin de Google Fonts, licence SIL OFL 1.1) :
   plus d'appel à fonts.googleapis.com, qui bloquait l'affichage sur mobile. */
@font-face{font-family:"Poppins";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/poppins-400.woff2) format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/poppins-500.woff2) format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600.woff2) format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700.woff2) format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:800;font-display:swap;src:url(fonts/poppins-800.woff2) format("woff2")}
@font-face{font-family:"Exo 2";font-style:normal;font-weight:500 800;font-display:swap;src:url(fonts/exo2-variable.woff2) format("woff2")}

/*!
 * Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 * Copyright 2023 Fonticons, Inc.
 * Sous-ensemble auto-hébergé : uniquement les icônes utilisées sur le site.
 * Pour une nouvelle icône, régénérer fonts/fa-*-subset.woff2 et ajouter sa règle ci-dessous.
 */
.fa{font-family:"Font Awesome 6 Free";font-weight:900}
.fa,.fa-brands,.fa-solid,.fab,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}
.fa-solid,.fas{font-family:"Font Awesome 6 Free";font-weight:900}
.fa-brands,.fab{font-family:"Font Awesome 6 Brands";font-weight:400}
@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(fonts/fa-solid-subset.woff2) format("woff2")}
@font-face{font-family:"Font Awesome 6 Brands";font-style:normal;font-weight:400;font-display:block;src:url(fonts/fa-brands-subset.woff2) format("woff2")}
.fa-arrow-right:before{content:"\f061"}
.fa-bolt:before{content:"\f0e7"}
.fa-building:before{content:"\f1ad"}
.fa-chart-line:before{content:"\f201"}
.fa-check-circle:before{content:"\f058"}
.fa-clipboard-check:before{content:"\f46c"}
.fa-clock:before{content:"\f017"}
.fa-cloud:before{content:"\f0c2"}
.fa-code:before{content:"\f121"}
.fa-desktop:before{content:"\f390"}
.fa-envelope:before{content:"\f0e0"}
.fa-envelope-open-text:before{content:"\f658"}
.fa-exclamation-circle:before{content:"\f06a"}
.fa-facebook-f:before{content:"\f39e"}
.fa-fingerprint:before{content:"\f577"}
.fa-graduation-cap:before{content:"\f19d"}
.fa-headset:before{content:"\f590"}
.fa-info-circle:before{content:"\f05a"}
.fa-landmark:before{content:"\f66f"}
.fa-map-marker-alt:before{content:"\f3c5"}
.fa-network-wired:before{content:"\f6ff"}
.fa-paint-brush:before{content:"\f1fc"}
.fa-phone-alt:before{content:"\f879"}
.fa-rocket:before{content:"\f135"}
.fa-server:before{content:"\f233"}
.fa-shield-alt:before{content:"\f3ed"}
.fa-shield-halved:before{content:"\f3ed"}
.fa-spinner:before{content:"\f110"}
.fa-th-large:before{content:"\f009"}
.fa-times:before{content:"\f00d"}
.fa-tools:before{content:"\f7d9"}
.fa-university:before{content:"\f19c"}
.fa-user:before{content:"\f007"}
.fa-user-tie:before{content:"\f508"}
.fa-video:before{content:"\f03d"}
.fa-whatsapp:before{content:"\f232"}

/* ==========================================================================
   1. DESIGN SYSTEM & RESET
   ========================================================================== */

:root {
    --primary: #1E69A6;       /* Bleu marine SMIR (extrait par pixel du vrai logo) */
    --secondary: #5FA1D3;     /* Bleu clair SMIR (extrait par pixel du vrai logo) — usage : fonds sombres, bordures, icônes */
    --secondary-text: #427093; /* Variante foncée du bleu clair — usage : texte sur fond clair (contraste WCAG AA) */
    --dark: #0A0E14;          /* Quasi-noir (3e couleur de marque officielle) */
    --whatsapp: #25D366;      /* Vert officiel */
    --light-bg: #F8FAFC;      /* Fond très léger */
    --white: #FFFFFF;
    --text: #2D3748;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth; /* Pour une navigation fluide entre sections */
    overflow-x: hidden; /* Empêche le menu mobile (position:fixed) de créer un débordement horizontal */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Meilleure lisibilité */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- ANIMATIONS D'APPARITION --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- ACCESSIBILITÉ : LIEN D'ÉVITEMENT --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 100000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 10px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10002; /* Au-dessus du header */
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    width: 0%; /* Géré par JS */
    transition: width 0.1s ease-out;
}

.site-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* --- BARRE UTILITAIRE --- */
.top-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    max-height: 40px;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    font-size: 0.8rem;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 28px;
}

.top-bar-item {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
}

.top-bar-item i {
    color: var(--secondary);
    font-size: 0.75rem;
}

.top-bar-item:hover {
    color: var(--secondary);
}

.top-bar-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

/* Barre utilitaire repliée au scroll */
.site-header-wrap.scrolled .top-bar {
    max-height: 0;
    opacity: 0;
}

.main-header {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 80px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

/* Classe ajoutée par le JS au scroll */
.site-header-wrap.scrolled .main-header {
    height: 65px; /* Plus fin */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px); /* Effet flou Apple */
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 55px;
    width: auto;
    aspect-ratio: auto;
    display: block;

    /* Indispensable pour garder la qualité si l'image est redimensionnée */
    object-fit: contain;
    
    /* Optionnel : un léger filtre pour le rendre plus "vif" */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    
    transition: var(--transition); /* Pour l'effet au scroll */
}

/* Quand le header a la classe .scrolled (via le JS qu'on a fait) */
.site-header-wrap.scrolled .logo img {
    height: 45px; /* On réduit de 10px pour plus de finesse */
}

@media (max-width: 480px) {
    .logo img {
        height: 40px; /* Plus petit sur mobile */
    }
}

.logo:hover img {
    transform: scale(1.05); /* Zoom très léger */
    filter: brightness(1.1); /* Augmente légèrement l'éclat */
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Empêche le logo de s'écraser si le menu prend trop de place */
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 26px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link {
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white !important;
    padding: 11px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    font-weight: 600;
    white-space: nowrap;
}

.btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   3. HERO SECTION (VERSION PRO + KEN BURNS + NAVIGATION)
   ========================================================================== */
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background: var(--dark); /* Couleur de secours pendant le chargement de l'image */
}

.hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: transform, opacity; /* Prépare le navigateur pour Ken Burns */
        /* z-index: 1; */
}

/* Effet Zoom Cinématique (Ken Burns) */
.hero-slide.active {
    opacity: 1;
    animation: kenBurns 20s linear infinite alternate;
}

/* Optimisation GPU pour Ken Burns */
@keyframes kenBurns {
    from { transform: scale(1) translateZ(0); }
    to { transform: scale(1.1) translateZ(0); }
}

/* Overlay pour lisibilité texte */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 14, 20, 0.92) 0%, rgba(10, 14, 20, 0.55) 60%, rgba(10, 14, 20, 0.4) 100%);
}

/* Dégradé intelligent pour la lisibilité */
.hero-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    /* Fonce le côté gauche pour le texte, laisse le côté droit plus clair pour l'image */
    background: linear-gradient(to right, rgba(10, 14, 20, 0.55) 0%, rgba(10, 14, 20, 0.08) 100%);
    height: 100%;
    display: flex;
    align-items: center;
    /* Réserve l'espace du header fixe (barre utilitaire + nav) pour que le contenu centré
       ne remonte jamais dessous — sinon le titre peut se retrouver caché derrière le header
       sur les écrans moins hauts. */
    padding-top: 120px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-overlay {
        /* Barre utilitaire masquée sur mobile, seule la nav (80px) reste fixe */
        padding-top: 90px;
    }
}

/* BOUTONS DE DÉFILEMENT (PREV/NEXT) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 25;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 30px; }
.slider-btn.next { right: 30px; }

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

/* TYPOGRAPHIE PREMIUM */
.hero-content-overlay {
    max-width: 850px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 25px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.highlight {
    color: var(--secondary);
    border-right: 3px solid var(--secondary);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

.hero-tags {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    display: inline-block;
    padding-left: 15px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--secondary);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink { 50% { border-color: transparent; } }

.hero-btns {
    display: flex;
    gap: 1.5rem;
}
/* ==========================================================================
   4. SECTION À PROPOS (PROFONDEUR & ASYMÉTRIE)
   ========================================================================== */
.about-section {
    padding: 120px 0;
    background: var(--white);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 2;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1400 / 989;
    object-fit: contain;
    background: var(--light-bg);
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(10, 14, 20, 0.15);
}

/* Badge d'expérience flottant */
.exp-badge {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(30, 105, 166, 0.3);
    z-index: 3;
}

.exp-number { font-size: 2.2rem; font-weight: 800; display: block; line-height: 1; }
.exp-text { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Contenu texte About */
.about-lead {
    font-size: 1.1rem;
    color: var(--text);
    margin: 25px 0;
    font-weight: 500;
}

.about-features {
    margin: 40px 0;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    min-width: 50px; height: 50px;
    background: rgba(30, 105, 166, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.2rem;
}

/* Statistiques animées */
.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
}

.stat-card .stat-number {
    display: block;
    font-size: 2.2rem;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-card p { font-size: 0.85rem; color: #718096; font-weight: 600; }
/* ==========================================================================
   4. BOUTONS PRO (SHINE EFFECT)
   ========================================================================== */
.btn {
    padding: 18px 38px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.btn:hover::after {
    left: 125%;
}

.btn-blue {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 105, 166, 0.3);
}

.btn-blue:hover {
    transform: translateY(-5px);
    background: var(--secondary);
    box-shadow: 0 8px 25px rgba(30, 105, 166, 0.5);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-5px);
}

/* ==========================================================================
   5. SERVICES SECTION (DEEP DESIGN SMIR — schéma technique)
   ========================================================================== */
.services-section {
    padding: 120px 0;
    background-color: var(--light-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='rgba(30, 105, 166,0.055)' stroke-width='1.2'%3E%3Cpath d='M0 30 H50 V80 H100'/%3E%3Cpath d='M140 110 H100 V80'/%3E%3Cpath d='M30 0 V30'/%3E%3Cpath d='M110 140 V110'/%3E%3C/g%3E%3Cg fill='rgba(30, 105, 166,0.09)'%3E%3Ccircle cx='50' cy='30' r='2.2'/%3E%3Ccircle cx='100' cy='80' r='2.2'/%3E%3Ccircle cx='30' cy='30' r='2.2'/%3E%3Ccircle cx='110' cy='110' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 140px 140px;
}

.services-section .section-title,
.service-card h3 {
    font-family: 'Exo 2', 'Poppins', sans-serif;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro {
    max-width: 700px;
    margin: 15px auto 0;
    color: #64748b;
    font-size: 1.1rem;
}

.title-bar {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 25px auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);    padding: 40px;
    border-radius: 18px;
    border: 1px solid rgba(30, 105, 166, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    
}

.service-card:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

@keyframes serviceHighlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(95, 161, 211, 0); }
    30% { box-shadow: 0 0 0 4px rgba(95, 161, 211, 0.5); }
}

.service-highlight {
    animation: serviceHighlight 1.5s ease-out;
    border-color: var(--secondary) !important;
}
/* Effet de brillance au survol */
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(95, 161, 211, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
    transform: translate(10%, 10%);
}

.service-card:hover {
    transform: translateY(-10px);
    /* border-color: var(--primary); */
    box-shadow: 0 20px 40px rgba(0, 76, 190, 0.08);
}

/* Tag façon désignateur de composant électronique (ex: schéma technique) */
.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.tag-code {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(30, 105, 166, 0.06);
    border: 1px solid rgba(30, 105, 166, 0.18);
    padding: 6px 11px;
    border-radius: 5px;
    transition: var(--transition);
}

.service-tag i {
    color: var(--secondary);
    font-size: 1.4rem;
    transition: var(--transition);
}

.service-card:hover .tag-code {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

.service-card:hover .service-tag i {
    transform: scale(1.1);
}

.services-grid .service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* La classe active est ajoutée par le script avec un délai séquentiel */
.services-grid .service-card.active {
    opacity: 1;
    transform: translateY(0);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* --- LISTES DE SERVICES INTERNES --- */
.service-list {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1; /* Pousse le footer vers le bas */
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text);
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.service-list li::before {
    content: "\f00c"; /* Icône check FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-text);
    font-size: 0.8rem;
}

/* --- BADGE DE PERFORMANCE --- */
.card-footer {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-footer-arrow {
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
    color: var(--secondary);
    font-size: 0.9rem;
}

.service-card:hover .card-footer-arrow,
.service-card:focus-visible .card-footer-arrow {
    opacity: 1;
    transform: translateX(0);
}

.card-footer-text::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #25D366; /* Vert WhatsApp */
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.9); }
}

/* ==========================================================================
   6. CONTACT & FOOTER
   ========================================================================== */
    .contact-section {
    padding: 150px 0;
    background: radial-gradient(circle at top right, rgba(30, 105, 166, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(95, 161, 211, 0.05), transparent);
}
   .contact-flex {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    /* padding: 100px 0; */
    align-items: center;
}

/* Style de la colonne info gauche */
.contact-info h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.contact-grid-premium {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.title-deep {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin: 20px 0;
    line-height: 1.1;
}

/* Cartes d'infos à gauche */
.contact-cards-stack {
    margin-top: 40px;
    display: grid;
    gap: 20px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.mini-card:hover {
    transform: translateX(15px);
    background: var(--primary);
    color: white;
}
.mini-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.mini-card:hover i { color: white; }
a.mini-card { color: inherit; text-decoration: none; }

/* Le Formulaire Profond */
.contact-form-premium {
    background: var(--white);
    padding: clamp(20px, 5vw, 50px);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
}
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .input-row { grid-template-columns: 1fr; }
}

.input-group {
    margin-bottom: 25px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column
}
.input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    /* width: 100%; */
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #F8FAFC;
    font-family: inherit;
    transition: var(--transition);
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 105, 166, 0.1);
}

/* Bouton Ultra-Pro */
.btn-submit-pro {
    width: 100%;
    padding: 18px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    /* font-size: 1rem; */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-submit-pro:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* État pendant l'envoi */
.btn-submit-pro.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* --- FOOTER DEEP DESIGN --- */
.main-footer {
    background: #050E1A; /* Un bleu-noir extrêmement profond */
    padding-top: 0; /* À cause du CTA flottant */
    color: #E2E8F0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Le CTA qui chevauche le contenu précédent */
.footer-cta {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 40px 60px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.footer-cta h3 { color: white; font-size: 1.8rem; margin-bottom: 5px; }
.footer-cta p { color: rgba(255,255,255,0.9); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 3px;
    background: var(--secondary);
}

.footer-desc {
    line-height: 1.8;
    color: #A0AEC0;
    margin-bottom: 25px;
}

/* Liens avec effet de glissement */
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a {
    color: #A0AEC0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    transform: translateX(8px);
}

/* Infos de contact */
.contact-info-list .c-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.c-item i { color: var(--secondary); margin-top: 5px; }

/* Réseaux Sociaux */
.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}


/* Bottom Bar */
.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
}

.legal-links a {
    color: #718096;
    text-decoration: none;
    margin-left: 20px;
}

.legal-links a:hover { color: white; }

/* Responsive */
@media (max-width: 992px) {
    .footer-cta { flex-direction: column; text-align: center; gap: 30px; transform: translateY(-30px); margin: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
    .bottom-flex { flex-direction: column; gap: 15px; }
    .c-item { justify-content: center; }
}

/* ==========================================================================
   8. SYSTEME DE NOTIFICATIONS (TOASTS)
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10005;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 60px);
}

.toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(30, 105, 166, 0.1);
    box-shadow: 0 15px 35px rgba(10, 14, 20, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    overflow: hidden;
}

.toast.active {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.toast-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

.toast-close {
    background: none;
    border: none;
    font-size: 0.95rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--dark);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(1);
    border-radius: 0 0 0 16px;
}

/* Statuts spécifiques */
.toast.success {
    border-left: 4px solid #25D366;
}
.toast.success .toast-icon {
    color: #25D366;
}
.toast.success .toast-progress {
    background: #25D366;
}

.toast.error {
    border-left: 4px solid #FF3B30;
}
.toast.error .toast-icon {
    color: #FF3B30;
}
.toast.error .toast-progress {
    background: #FF3B30;
}

.toast.loading {
    border-left: 4px solid var(--primary);
}
.toast.loading .toast-icon {
    color: var(--primary);
    animation: toastSpin 1s linear infinite;
}
.toast.loading .toast-progress {
    background: var(--primary);
    animation: toastProgressLoad 1.5s ease-in-out infinite alternate;
}

@keyframes toastSpin {
    100% { transform: rotate(360deg); }
}

@keyframes toastProgressLoad {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(0.85); }
}

/* Responsive pour mobile sur les toasts */
@media (max-width: 480px) {
    .toast-container {
        left: 20px;
        bottom: 20px;
        width: calc(100% - 40px);
    }
}

/* ==========================================================================
   SECTION RESPONSIVE COMPLETE (A à Z)
   ========================================================================== */

/* --- 1. TABLETTES & PETITS LAPTOPS (Max 1024px) --- */
@media (max-width: 1024px) {
    .container { padding: 0 5%; }
    .hero h1 { font-size: 3.5rem; }
    .about-grid, .contact-grid-premium { gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- 2. MOBILE EXPERT & NAVIGATION (Max 992px) --- */
/* --- MENU MOBILE (seuil élargi pour éviter la zone de rupture 993-1150px) --- */
@media (max-width: 1150px) {
    /* Menu Mobile Overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Masqué par défaut */
        width: 80%;
        height: 100vh;
        background: var(--white);
        z-index: 10000;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 30px; text-align: center; }
    .nav-menu a { font-size: 1.3rem; font-weight: 600; }

    /* Bouton Hamburger */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 10001;
    }

    .mobile-menu-toggle span {
        width: 30px; height: 3px;
        background: var(--dark);
        transition: var(--transition);
        border-radius: 3px;
    }

    /* Animation du bouton Hamburger */
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

    /* Barre utilitaire allégée : on retire les infos secondaires, on garde le statut */
    .top-bar-info { display: none; }
    .top-bar-flex { justify-content: center; }
}

@media (max-width: 992px) {
    /* Grilles et Layout */
    .about-grid, 
    .contact-grid-premium, 
    .footer-grid, 
    .contact-flex,
    .input-row { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }

    /* Ajustements Hero */
    .hero {
        text-align: center;
        height: auto;
        min-height: 100vh;
    }
    .hero-overlay {
        align-items: flex-start; /* Le contenu peut dépasser la hauteur d'écran ; on l'ancre sous le header au lieu de le centrer (ce qui le pousserait dessous) */
        padding-top: 100px;
        padding-bottom: 50px;
    }
    .hero-content-overlay { max-width: 100%; }
    .hero-btns { justify-content: center; flex-direction: column; gap: 15px; }
    .hero-tags { 
        border-left: none; 
        padding-left: 0; 
        border-bottom: 3px solid var(--secondary); 
        display: inline-block;
    }
    
    .slider-btn { width: 45px; height: 45px; }
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }

    /* Footer */
    .footer-cta {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        transform: translateY(-30px);
        margin: 0 20px;
    }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .social-links, .c-item { justify-content: center; }
}

/* --- 3. SMARTPHONES (Max 768px) --- */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .container { padding: 0 1.5rem; }

    .top-bar { display: none; }
    
    .hero h1 { font-size: 2.5rem; letter-spacing: -1px; }
    .section-title { font-size: 2.2rem; }
    
    .about-grid { display: flex; flex-direction: column-reverse; }
    .about-visual { margin-bottom: 40px; }
    
    .slider-btn { display: none; } /* Cache les flèches sur petit mobile */

    .bottom-flex { flex-direction: column; gap: 15px; text-align: center; }
}

/* --- 4. PETITS MOBILES (Max 480px) --- */
@media (max-width: 480px) {
    .btn { width: 100%; text-align: center; }
    .hero-btns { flex-direction: column; }
    .exp-badge { display: none; }
    
    .contact-form-premium { padding: 25px 20px; }
}

/* ==========================================================================
   ACCESSIBILITE : REDUCTION DES ANIMATIONS
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-slide.active {
        animation: none;
    }
    .highlight {
        animation: none;
        border-right: none;
    }
}


/* ==========================================================================
   SECTION REFERENCES / TEMOIGNAGES
   ========================================================================== */
.references-section {
    padding: 100px 0;
    background: var(--light-bg);
}

/* Bandeau clients institutionnels */
.clients-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 50px 0 70px;
}

.client-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 18px 32px;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(30, 105, 166, 0.08);
    transition: var(--transition);
}

.client-badge:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.client-badge i {
    font-size: 1.5rem;
    color: var(--primary);
}

.client-badge span {
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.5px;
}

/* Grille de témoignages */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(30, 105, 166, 0.08);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 105, 166, 0.1);
}

.testimonial-stars {
    color: var(--secondary-text);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.testimonial-quote {
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: #718096;
}

/* Style distinct pour signaler visuellement à Ibrahima que ce sont des placeholders */
.testimonial-placeholder {
    border-style: dashed;
    border-width: 2px;
    border-color: rgba(95, 161, 211, 0.4);
}

.testimonial-placeholder .testimonial-quote,
.testimonial-placeholder .testimonial-name,
.testimonial-placeholder .testimonial-role {
    color: #a0aec0;
}

@media (max-width: 768px) {
    .references-section { padding: 70px 0; }
    .clients-strip { margin: 35px 0 45px; }
}

.services-more-cta {
    text-align: center;
    margin-top: 55px;
    padding-top: 45px;
    border-top: 1px solid rgba(30, 105, 166, 0.08);
}

.services-more-cta p {
    color: var(--text);
    margin-bottom: 18px;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--white);
    gap: 14px;
}

.services-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.services-quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid rgba(30, 105, 166, 0.15);
    color: var(--secondary-text);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.services-quick-links a i {
    color: var(--primary);
}

.services-quick-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- Bloc Fondateur --- */
.founder-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 35px;
    padding: 28px;
    background: var(--light-bg);
    border-radius: 18px;
    border-left: 4px solid var(--secondary);
}

.founder-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.founder-bio {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.founder-quote {
    font-style: italic;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 14px;
}

.founder-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
}

.founder-role {
    font-size: 0.82rem;
    color: #718096;
}

@media (max-width: 500px) {
    .founder-block { flex-direction: column; }
}

/* ==========================================================================
   MINI ÉTUDE DE CAS (RÉFÉRENCES)
   ========================================================================== */
.case-study-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 36px;
    border-radius: 20px;
    margin-bottom: 55px;
    box-shadow: 0 20px 40px rgba(30, 105, 166, 0.15);
}

.case-study-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(95, 161, 211, 0.15);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.case-study-tag {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.case-study-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.case-study-content p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 18px;
}

.case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-study-tags span {
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .case-study-card { flex-direction: column; padding: 26px; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GALERIE RÉALISATIONS
   ========================================================================== */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 55px;
}

.realisation-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(30, 105, 166, 0.1);
}

.realisation-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.realisation-item:hover img {
    transform: scale(1.06);
}

.realisation-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px 14px;
    background: linear-gradient(0deg, rgba(10, 14, 20, 0.85), transparent);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

.review-cta {
    text-align: center;
    margin-top: -15px;
}

.review-cta p {
    margin-bottom: 18px;
    color: var(--text);
}

/* ==========================================================================
   SECTION FORMULES (2 grilles : IT + Sécurité Électronique)
   ========================================================================== */
.formules-section {
    padding: 100px 0;
    background: var(--white);
}

.formules-subgroup-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 60px 0 5px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--light-bg);
}

.formules-subgroup-title:first-of-type {
    margin-top: 20px;
}

.formules-subgroup-title i {
    color: var(--secondary-text);
    font-size: 1rem;
}

.formules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.formule-card {
    position: relative;
    background: var(--light-bg);
    border: 1px solid rgba(30, 105, 166, 0.08);
    border-radius: 18px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.formule-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 105, 166, 0.1);
}

.formule-premium {
    background: linear-gradient(160deg, var(--primary), var(--dark));
    color: var(--white);
    border: none;
}

.formule-badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(95, 161, 211, 0.15);
    color: var(--secondary-text);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.formule-premium .formule-badge {
    background: rgba(95, 161, 211, 0.2);
    color: var(--secondary);
}

.formule-card h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.formule-desc {
    line-height: 1.7;
    margin-bottom: 22px;
    opacity: 0.9;
    font-size: 0.95rem;
}

.formule-list {
    list-style: none;
    padding: 0;
    margin-bottom: 26px;
    flex-grow: 1;
}

.formule-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.formule-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 0.75rem;
}

.formule-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 3px;
    transition: var(--transition);
    align-self: flex-start;
}

.formule-premium .formule-cta {
    color: var(--white);
}

.formule-cta:hover {
    gap: 12px;
}

.formules-note {
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.formules-note i {
    color: var(--secondary-text);
    margin-right: 6px;
}

/* ==========================================================================
   SECTION GARANTIES
   ========================================================================== */
.garanties-section {
    padding: 100px 0;
    background: linear-gradient(165deg, var(--dark), var(--primary));
    position: relative;
    overflow: hidden;
}

.garanties-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1.2'%3E%3Cpath d='M0 30 H50 V80 H100'/%3E%3Cpath d='M140 110 H100 V80'/%3E%3Cpath d='M30 0 V30'/%3E%3Cpath d='M110 140 V110'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 140px 140px;
}

.garanties-section .container {
    position: relative;
    z-index: 1;
}

.garanties-section .section-header {
    position: relative;
    text-align: left;
    max-width: 560px;
    margin-bottom: 70px;
}

.garanties-section .subtitle {
    color: var(--secondary);
}

.garanties-section .section-title {
    color: var(--white);
}

.garanties-section .section-intro {
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0 0;
    text-align: left;
}

.garanties-section .title-bar {
    margin: 25px 0 0;
}

.garanties-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.garantie-item {
    background: var(--white);
    padding: 32px 28px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid rgba(30, 105, 166, 0.06);
    transition: var(--transition);
}

.garantie-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(30, 105, 166, 0.08);
}

.garantie-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--light-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 18px;
}

.garantie-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.garantie-item p {
    font-size: 0.87rem;
    color: var(--text);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .formules-section, .garanties-section { padding: 60px 0; }
}

/* 4 cartes garanties : grille 2x2 équilibrée en gamme tablette
   (évite la 4e carte isolée avec un grand vide à côté, sur la grille auto-fit à 3 colonnes) */
@media (min-width: 601px) and (max-width: 900px) {
    .garanties-grid { grid-template-columns: repeat(2, 1fr); }
    /* 3 cartes formules : contenu dense, 1 colonne plus lisible qu'un 2+1 asymétrique */
    .formules-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BANDEAU PHOTO SUR LES CARTES SERVICES
   ========================================================================== */
.service-card-media {
    position: relative;
    height: 150px;
    margin: -40px -40px 28px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(55%) contrast(1.05) brightness(0.9);
    transition: var(--transition);
}

.service-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 105, 166, 0.55), rgba(30, 105, 166, 0.75));
    mix-blend-mode: multiply;
}

.service-card-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(95, 161, 211, 0.15), transparent 60%);
    z-index: 1;
}

.service-card:hover .service-card-media img {
    transform: scale(1.06);
    filter: grayscale(30%) contrast(1.1) brightness(0.95);
}

/* ==========================================================================
   IMPRESSION
   ========================================================================== */
@media print {
    .site-header-wrap,
    .toast-container,
    .hero-slideshow-container,
    .slider-btn,
    .scroll-progress-container,
    .mobile-menu-toggle,
    .service-card-media,
    .footer-cta,
    .social-links,
    .btn-whatsapp {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .service-card, .pole-block, .formule-card, .testimonial-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    section {
        padding: 20px 0 !important;
    }
}

/* ==========================================================================
   BANDE DE CONFIANCE DU HERO
   ========================================================================== */
.hero-trust-strip {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 55px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 560px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-number {
    font-family: 'Exo 2', 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.trust-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.trust-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
    .hero-trust-strip {
        gap: 18px;
        flex-wrap: wrap;
    }
    .trust-number { font-size: 1.3rem; }
}

.form-reassurance {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-reassurance i {
    color: var(--secondary-text);
}
