/* --- style.css : VERSION PREMIUM SEO --- */

:root {
    /* --- NOUVELLE PALETTE LUXE --- */
    --primary: #0F2C59;   /* Bleu Nuit Profond (remplace le bleu vif) */
    --primary-dark: #081A36;
    --accent-gold: #D4AF37; /* NOUVEAU : Or Champagne pour les détails */
    --secondary: #1e293b; /* Gris anthracite foncé pour le texte */
    --white: #ffffff;
    --bg-light: #F9F8F6;  /* Blanc cassé crème (plus doux que le blanc pur) */
    --bg-dark: #0F2C59;
    
    /* Ombres plus douces et diffusées */
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 15px 35px rgba(0,0,0,0.08);
    
    /* Dégradé Or subtil */
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F2D06B 50%, #CBA02E 100%);
}

/* --- RESET & BASES --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--secondary); background: var(--bg-light); line-height: 1.7; overflow-x: hidden; }

/* Typographie */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--secondary); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }
p { margin-bottom: 1.5rem; color: var(--text-light); }

/* Utilitaires */
.container { width: 90%; max-width: 1280px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 100px 0; }
.bg-white { background: var(--white); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }

/* --- BOUTONS --- */
.btn {
    display: inline-block; padding: 16px 32px; border-radius: 50px;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { 
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: var(--white); 
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
    border: none;
}
.btn-primary:hover { 
    background: var(--primary-dark); 
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.4);
}
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-dark { border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }

/* --- NAVIGATION --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 90px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: center; transition: 0.3s;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    font-family: var(--font-heading); 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--primary); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.nav-menu { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-link { font-weight: 600; color: var(--secondary); text-decoration: none; position: relative; padding: 5px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* --- HERO SECTION (Glassmorphism + Parallaxe) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
}
.hero-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px;
    border-radius: 30px;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease-out forwards 0.5s;
    position: relative; 
    z-index: 2;
}
.hero-badge {
    display: inline-block; padding: 8px 16px; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 30px;
    margin-bottom: 25px; font-weight: 600; font-size: 0.9rem; color: var(--accent);
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Vague de séparation */
.wave-divider {
    position: absolute; bottom: 0; left: 0; width: 100%;
    overflow: hidden; line-height: 0; transform: rotate(180deg); z-index: 1;
}
.wave-divider svg {
    position: relative; display: block; width: calc(100% + 1.3px); height: 80px;
}
.wave-divider .shape-fill { fill: var(--primary); } /* La vague est bleue pour coller à la stats-bar */


/* --- BARRE DE STATISTIQUES --- */
.stats-bar {
    background: var(--primary); /* Votre bleu */
    color: white;
    padding: 80px 0 40px 0; /* On augmente le HAUT (80px) pour laisser la place à la capsule */
    position: relative;
    z-index: 10; /* En dessous de la capsule */
}
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px; text-align: center;
}
.stat-number { font-size: 2.5rem; font-weight: 800; display: block; margin-bottom: 5px; }
.stat-label { font-size: 0.9rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }

/* --- SERVICES GRID & CARDS --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-top: 50px; }
.service-card {
    background: var(--white); padding: 50px 30px; border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); transition: 0.3s; border: none;
    display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 50px rgba(0,0,0,0.12); }
.service-icon {
    width: 80px; height: 80px; 
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary); margin: 0 auto 30px auto;
}

/* --- AVANT / APRÈS & SPLIT --- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-image-wrapper { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image-wrapper img { width: 100%; display: block; transition: 0.5s; }
.split-image-wrapper:hover img { transform: scale(1.05); }
.comparison-label {
    position: absolute; bottom: 20px; left: 20px; background: var(--primary);
    color: var(--white); padding: 5px 15px; border-radius: 20px;
    font-weight: 700; font-size: 0.85rem; z-index: 2;
}

/* --- AVIS CLIENTS (Marquee) --- */
.reviews-section { background: var(--white); overflow: hidden; }
.marquee-container { width: 100%; overflow: hidden; }
.marquee-content { display: flex; gap: 30px; width: max-content; animation: scroll 40s linear infinite; }
.review-card {
    background: var(--bg-light); padding: 30px; border-radius: var(--radius);
    width: 350px; flex-shrink: 0; border: 1px solid #e2e8f0;
}
.stars { color: #fbbf24; margin-bottom: 15px; }
.review-author { font-weight: 700; color: var(--secondary); margin-top: 15px; display: block; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- CONTACT FORM --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-info-panel { background: var(--primary); color: var(--white); padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.contact-info-panel p { color: rgba(255,255,255,0.8); }
.contact-info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 1.1rem; }
.contact-form-panel { padding: 60px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-input {
    width: 100%; padding: 15px; border: 1px solid #cbd5e1; border-radius: 8px;
    background: #f8fafc; font-family: inherit; font-size: 1rem; transition: 0.3s;
}
.form-input:focus { outline: none; border-color: var(--primary); background: var(--white); }

/* --- FOOTER --- */
footer { background: var(--secondary); color: #94a3b8; padding: 80px 0 30px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-title { color: var(--white); margin-bottom: 25px; font-size: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: inherit; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

/* --- BOUTON MAIL FLOTTANT --- */
.floating-email-btn {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: var(--primary); color: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    z-index: 2000; transition: all 0.3s ease; font-size: 1.5rem;
}
.floating-email-btn:hover {
    transform: translateY(-5px) scale(1.1); background: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.6);
}
.floating-email-btn::before {
    content: "Nous écrire"; position: absolute; right: 75px;
    background: var(--secondary); color: var(--white); padding: 8px 15px;
    border-radius: 5px; font-size: 0.9rem; font-weight: 600;
    opacity: 0; transform: translateX(10px); transition: 0.3s; pointer-events: none; white-space: nowrap;
}
.floating-email-btn:hover::before { opacity: 1; transform: translateX(0); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .split-section, .contact-layout { grid-template-columns: 1fr; }
    /* --- Correction Mobile dans style.css --- */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--white); /* Assurez-vous que le fond est blanc */
        display: flex; /* Force l'affichage */
        flex-direction: column;
        justify-content: center;
        align-items: center; /* Centre le texte */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        z-index: 1500; /* TRÈS IMPORTANT : Au-dessus de tout */
    }

    .nav-menu.active {
        transform: translateX(0); /* Fait apparaître le menu */
    }

    .hamburger {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1501; /* Doit être PLUS haut que le menu pour pouvoir le fermer */
        color: var(--secondary);
    }
}
}
@media (max-width: 768px) {
    .floating-email-btn { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 1.2rem; }
    .floating-email-btn::before { display: none; }
}
@media (min-width: 901px) { .hamburger { display: none; } }
/* --- NOUVEAU : STYLE DES FORMULES AUTO --- */
.auto-section {
    background: linear-gradient(to bottom, var(--white), var(--bg-light));
    position: relative;
}

/* Grille spécifique pour les 3 formules */
.formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Carte de formule */
.formula-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Effet au survol : la carte monte et l'ombre grandit */
.formula-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
    border-color: var(--primary);
}

/* Badge "Populaire" pour la formule du milieu */
.badge-popular {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Titre et Prix */
.formula-title {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 10px;
}
.formula-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}
.formula-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Liste des tâches */
.formula-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1; /* Pousse le bouton vers le bas */
}
.formula-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #475569;
}
.formula-features i {
    color: #10b981; /* Vert pour les checks */
    margin-top: 4px;
}
/* --- AMÉLIORATION MENU MOBILE (Animation & Page Active) --- */

/* 1. Style des liens dans le menu mobile */
@media (max-width: 900px) {
    .nav-menu .nav-link {
        font-size: 1.2rem; /* Texte plus gros sur mobile */
        padding: 15px 20px;
        width: 100%; /* Prend toute la largeur */
        text-align: center;
        border-radius: 8px; /* Coins arrondis */
        transition: all 0.3s ease; /* Fluidité */
        margin-bottom: 5px;
    }

    /* 2. Animation quand on appuie dessus (Feedback tactile) */
    .nav-menu .nav-link:active {
        background-color: rgba(0, 102, 204, 0.1); /* Fond bleu très clair au clic */
        transform: scale(0.95); /* Le lien rétrécit légèrement */
    }

    /* 3. Style de la page ACTIVE (Celle où on est) */
    .nav-menu .nav-link.active {
        background-color: var(--primary); /* Fond Bleu Azur */
        color: var(--white) !important;   /* Texte Blanc */
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3); /* Légère ombre */
    }
    
    /* On enlève la barre de soulignement standard du PC pour le mobile */
    .nav-menu .nav-link::after {
        display: none; 
    }
    
    /* Animation d'entrée des liens (un par un) */
    .nav-menu.active .nav-link {
        animation: slideIn 0.5s ease forwards;
        opacity: 0;
        transform: translateX(20px);
    }
    
    /* Décalage pour chaque lien (effet cascade) */
    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.5s; }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* --- NOUVEAU STYLE : IMAGES DANS LES CARTES SERVICES --- */
.service-card-img {
    width: 100%;
    height: 180px; /* Hauteur fixe pour que les cartes soient alignées */
    object-fit: cover; /* L'image remplit tout l'espace sans être déformée */
    border-radius: var(--radius); /* Coins arrondis */
    margin-top: 15px;
    margin-bottom: 20px; /* Espace avant le texte */
    box-shadow: var(--shadow-sm);
}

/* Petit ajustement pour que l'icône soit moins collée au titre */
.service-icon {
    margin-bottom: 15px;
}
/* =========================================
   OPTIMISATION MOBILE (Téléphones & Tablettes)
   ========================================= */

@media (max-width: 900px) {

    /* --- 1. GLOBAL & TYPOGRAPHIE --- */
    h1 {
        font-size: 2.2rem !important; /* Titre plus petit pour ne pas dépasser */
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }

    .section-padding {
        padding: 50px 0; /* On réduit l'espace blanc entre les sections */
    }

    .container {
        width: 90%; /* On utilise 90% de la largeur de l'écran */
        padding: 0 15px;
    }

    /* --- 2. ACCUEIL (HERO & STATS) --- */
    .hero-glass-card {
        padding: 30px 20px; /* Moins de marge interne */
        margin-top: 20px;
    }

    /* Transforme la barre de stats (4 en ligne) en grille (2x2) */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 colonnes */
        gap: 30px 10px; /* Espace vertical et horizontal */
    }

    /* --- 3. SERVICES (CARTES) --- */
    .services-grid {
        grid-template-columns: 1fr; /* 1 seule colonne (les cartes s'empilent) */
        gap: 40px;
    }

    .service-card {
        margin: 0 auto; /* Centre la carte */
        max-width: 100%;
    }

    /* Boutons plus larges pour être faciles à toucher au doigt */
    .service-card .btn {
        width: 100%; 
        display: block;
        padding: 15px; /* Zone de touche plus confortable */
    }

    /* --- 4. PAGE CONTACT (FORMULAIRE) --- */
    /* Empile l'image et le formulaire verticalement */
    .split-section {
        flex-direction: column; 
        gap: 0;
    }
    
    /* L'image prend toute la largeur et une hauteur fixe */
    .split-image-wrapper {
        width: 100%;
        height: 200px; /* Hauteur réduite sur mobile */
        border-radius: 20px 20px 0 0; /* Arrondi seulement en haut */
    }
    
    .split-content {
        width: 100%;
        padding: 30px 20px;
        background: var(--white);
        border-radius: 0 0 20px 20px; /* Arrondi en bas pour coller à l'image */
    }

    /* Formulaire plus large */
    .contact-form {
        padding: 20px;
        margin-top: -20px; /* Remonte un peu sur l'image pour le style */
        z-index: 10;
        position: relative;
    }

    input, select, textarea {
        font-size: 16px; /* Empêche le zoom automatique sur iPhone */
        padding: 15px; /* Plus facile à remplir */
    }

    /* --- 5. FOOTER --- */
    .footer-grid {
        grid-template-columns: 1fr; /* Tout s'empile */
        text-align: center;
        gap: 40px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centre les liens */
    }
}
/* --- Animation Bulles d'eau --- */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Derrière le contenu */
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background: rgba(164, 223, 255, 0.4); /* Bleu très clair transparent */
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5);
}

.b1 { width: 40px; height: 40px; left: 10%; animation-duration: 12s; }
.b2 { width: 20px; height: 20px; left: 25%; animation-duration: 15s; animation-delay: 2s; }
.b3 { width: 50px; height: 50px; left: 45%; animation-duration: 18s; animation-delay: 5s;}
.b4 { width: 30px; height: 30px; left: 70%; animation-duration: 20s; animation-delay: 1s;}
.b5 { width: 35px; height: 35px; left: 85%; animation-duration: 14s; animation-delay: 7s;}

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(-1000px) scale(1.5); opacity: 0; }
}
/* --- NOUVEAU : TITRES EN DÉGRADÉ --- */
h1, h2.text-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* On rajoute une petite ombre portée légère pour la lisibilité */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
/* --- EFFET SHIMMER (REFLET) SUR LES BOUTONS --- */
.btn-primary {
    position: relative;
    overflow: hidden; /* Important pour que la lumière ne sorte pas du bouton */
}

/* La bande de lumière */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Départ hors du bouton à gauche */
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg); /* On incline la lumière */
    transition: none;
}

/* Animation au survol */
.btn-primary:hover::after {
    animation: shine 0.75s;
}

@keyframes shine {
    100% {
        left: 125%; /* Fin hors du bouton à droite */
    }
}
/* --- STYLE DU PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999; /* Au-dessus de tout */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* Disparition */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Le logo au milieu qui pulse */
.loader-logo {
    width: 40px;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Le cercle qui tourne autour */
.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(0.8); opacity: 0.8; } 50% { transform: scale(1); opacity: 1; } }
/* --- STYLE DE LA FAQ --- */
.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden; /* Cache la réponse quand fermée */
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--primary);
    background: #f8fafc;
}

.faq-answer {
    max-height: 0; /* Fermé par défaut */
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: all 0.3s ease-out;
    border-top: 1px solid transparent;
}

/* État Ouvert (Activé par JS) */
.faq-item.active .faq-answer {
    max-height: 200px; /* Suffisant pour le texte */
    padding: 20px;
    opacity: 1;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg); /* La croix tourne */
    color: var(--primary);
}
/* --- BANDEAU DE CONFIANCE (STYLE "CAPSULE") --- */

.trust-wrapper {
    position: relative;
    z-index: 20; /* Pour passer au-dessus de la vague */
    margin-top: -50px; /* C'est ÇA qui le fait remonter sur l'image ! */
    margin-bottom: 50px;
    padding: 0 15px;
}

.trust-card {
    background: var(--white);
    border-radius: 50px; /* Bords très arrondis (Pill shape) */
    padding: 20px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); /* Belle ombre diffuse */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid rgba(0,0,0,0.03);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Rond bleu autour de l'icône */
.icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 204, 0.1); /* Bleu très clair */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: 0.3s;
}

.trust-item:hover .icon-circle {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.trust-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.trust-text strong {
    color: var(--secondary);
    font-weight: 700;
}

.trust-text span {
    color: #64748b;
    font-size: 0.8rem;
}

/* --- VERSION MOBILE --- */
@media (max-width: 900px) {
    .trust-wrapper {
        margin-top: 0; /* Sur mobile, on ne chevauche pas, ça ferait désordre */
        margin-bottom: 30px;
    }

  /* --- CORRECTION ESPACE BLANC SOUS LA CAPSULE --- */

.trust-wrapper {
    position: relative;
    z-index: 20;
    margin-top: -50px; /* Chevauchement du haut (Hero) */
    margin-bottom: -40px; /* C'est ICI le secret : on tire le bas vers le haut ! */
    padding: 0 15px;
}

    .trust-item {
        flex-direction: column; /* Icône au dessus du texte */
        text-align: center;
        gap: 10px;
    }
}
/* --- ANIMATION TOTALE DE LA CARTE SERVICE --- */

/* 1. La Carte complète (Le conteneur blanc) */
.service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transition fluide */
    cursor: pointer; /* Le curseur devient une main sur toute la surface */
    border: 2px solid transparent; /* On prépare une bordure invisible */
    height: 100%; /* Pour que toutes les cartes aient la même hauteur */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 2. Ce qui se passe quand on survole la CARTE ENTIÈRE */
.service-card:hover {
    transform: translateY(-10px); /* La carte monte de 10 pixels */
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15); /* Ombre bleutée diffuse */
    border-color: var(--primary); /* La bordure devient BLEU AZUR */
}

/* 3. L'icône réagit AUTOMATIQUEMENT quand on survole la carte */
.service-card:hover .service-icon {
    background-color: var(--primary); /* Le fond du rond devient bleu */
    transform: scale(1.1); /* Le rond grossit un peu */
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

/* L'icône à l'intérieur du rond devient blanche */
.service-card:hover .service-icon i {
    color: #ffffff !important;
}

/* 4. L'image zoome légèrement aussi */
.service-card:hover .service-card-img {
    transform: scale(1.03); /* Zoom subtil sur la photo */
    transition: transform 0.5s ease;
}

/* 5. Le bouton change aussi de couleur */
.service-card:hover .btn-outline-dark {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}


/* --- 6. PETITES ANIMATIONS SYMPAS (Bonus) --- */

/* La Maison rebondit quand on passe sur la carte */
.service-card:hover .fa-home {
    animation: bounce 0.8s infinite;
}

/* L'Immeuble grandit */
.service-card:hover .fa-building {
    animation: growUp 1s infinite;
}

/* La Voiture vibre */
.service-card:hover .fa-car {
    animation: vroom 0.4s infinite alternate;
}

/* Définition des mouvements */
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes growUp { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.1); } }
@keyframes vroom { 0% { transform: rotate(-3deg); } 100% { transform: rotate(3deg); } }
/* --- ANIMATION DES CARTES FORMULES AUTO (Prix) --- */

/* 1. La Carte Formule (Base) */
.formula-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 2px solid #e2e8f0; /* Bordure grise par défaut */
    position: relative;
    overflow: hidden; /* Pour contenir les effets */
}

/* 2. Au survol de la carte ENTIÈRE */
.formula-card:hover {
    transform: translateY(-10px); /* Elle monte */
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15); /* Belle ombre bleue */
    border-color: var(--primary); /* La bordure devient bleue */
}

/* 3. Effet spécial sur les COCHES (✓) */
/* Quand on survole la carte, toutes les petites coches grandissent un peu */
.formula-card:hover .fa-check {
    color: var(--primary); /* Elles deviennent bleu vif */
    transform: scale(1.4); /* Elles grossissent (Pop !) */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet rebond */
}

/* 4. Le titre de la formule change de couleur */
.formula-card:hover .formula-title {
    color: var(--primary);
}

/* 5. Le bouton "Choisir" se remplit automatiquement */
.formula-card:hover .btn-outline-dark {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

/* --- PETIT DÉTAIL EN PLUS --- */
/* Pour la carte du milieu (Premium) qui est souvent déjà en avant */
.formula-card:nth-child(2):hover {
    transform: scale(1.05) translateY(-10px); /* Elle grossit encore un peu plus que les autres */
}
/* --- EFFET DE LÉVITATION SUR LES FORMULES --- */

/* 1. On prépare la transition fluide */
.formula-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s;
    cursor: pointer; /* Indique qu'on peut cliquer */
}

/* 2. Au survol : La carte monte vers le haut */
.formula-card:hover {
    /* C'est ICI que la magie opère : -15px vers le haut */
    transform: translateY(-15px); 
    
    /* On ajoute une ombre en dessous pour l'effet de hauteur */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* La bordure devient bleue pour bien la mettre en valeur */
    border-color: var(--primary);
}

/* 3. Petit bonus : Le bouton grossit aussi légèrement */
.formula-card:hover .btn {
    transform: scale(1.05);
    transition: transform 0.3s;
} 
/* --- CSS GLOBAL POUR LES SLIDERS --- */
.comp-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    aspect-ratio: 16 / 9; /* Garde le format rectangulaire parfait */
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #eee;
}

.comp-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
}

.comp-img img {
    display: block;
    height: 100%;
    width: 100%; /* Le JS va corriger ça pour l'image sale */
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.comp-dirty {
    width: 50%;
    z-index: 2;
    border-right: 3px solid var(--primary);
}

.comp-handle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 3;
    display: flex; justify-content: center; align-items: center;
    pointer-events: none;
}

.comp-range {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; z-index: 10; margin: 0; cursor: ew-resize;
}

/* Mobile */
@media (max-width: 768px) {
    .comp-container { aspect-ratio: 4 / 3; } /* Plus carré sur mobile */
}
/* --- DÉFILEMENT INFINI DES AVIS --- */

.reviews-slider {
    width: 100%;
    overflow: hidden; /* Masque ce qui dépasse à gauche et à droite */
    position: relative;
    padding: 20px 0;
    /* Petit dégradé sur les bords pour l'effet fondu "Luxe" */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
    display: flex;
    gap: 30px; /* Espace entre les cartes */
    width: max-content; /* La piste prend la largeur de toutes les cartes */
    /* L'animation : on lui dit de bouger indéfiniment */
    animation: scrollLoop 40s linear infinite;
}

/* Style de la carte (si pas déjà fait) */
.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 300px; /* Largeur fixe importante pour la régularité */
    flex-shrink: 0; /* Empêche la carte de s'écraser */
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Pause au survol pour pouvoir lire */
.reviews-track:hover {
    animation-play-state: paused;
}

/* L'ANIMATION MAGIQUE */
@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        /* On déplace de -50% car le JS aura doublé le contenu */
        transform: translateX(-50%);
    }
}

/* Mobile : On accélère un peu car l'écran est petit */
@media (max-width: 768px) {
    .reviews-track {
        animation-duration: 30s;
        gap: 20px;
    }
    .review-card {
        width: 260px; /* Un peu plus petit sur mobile */
    }
}
/* --- BOUTON APPEL MOBILE (Flottant) --- */

.btn-call-mobile {
    display: none; /* Caché par défaut sur PC */
    position: fixed;
    bottom: 30px;
    left: 30px; /* En bas à GAUCHE (WhatsApp est à droite) */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AF37 0%, #CBA02E 100%); /* Dégradé OR */
    color: var(--primary); /* Icône en Bleu Nuit pour le contraste */
    border-radius: 50%;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); /* Ombre dorée */
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: 2px solid white; /* Petit contour blanc pour la propreté */
    transition: transform 0.3s ease;
}

/* L'animation de "Pouls" pour dire "Appelle-moi" */
.btn-call-mobile::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #D4AF37;
    animation: pulse-gold 2s infinite;
}

/* --- APPARITION SUR MOBILE --- */
@media (max-width: 900px) {
    .btn-call-mobile {
        display: flex; /* On l'affiche sur téléphone */
    }
}

/* Animation du cercle qui vibre */
@keyframes pulse-gold {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
/* --- BORDURES ÉPAISSES ET VISIBLES --- */

.service-card, 
.formula-card, 
.review-card {
    /* 2px = Le trait est deux fois plus gros */
    /* #94a3b8 = Un gris ardoise soutenu, très visible */
    border: 2px solid #94a3b8 !important; 
    
    /* On garde les coins arrondis */
    border-radius: 15px;
    
    /* Fond blanc pour bien contraster avec la bordure */
    background-color: #ffffff;
}

/* Au survol, la bordure change de couleur (OR) mais garde son épaisseur */
.service-card:hover, 
.formula-card:hover, 
.review-card:hover {
    border-color: #D4AF37 !important;
}
/* --- BORDURES ÉPAISSES POUR FAQ ET CONTACT --- */

/* 1. Pour les Questions (Accordéon) */
.accordion-item {
    border: 2px solid #052147 !important; /* Le même gris que les services */
    border-radius: 15px !important;
    margin-bottom: 15px; /* Un peu d'espace entre chaque question */
    overflow: hidden; /* Pour que le contenu reste bien dans les coins ronds */
    background-color: #ffffff;
}

/* 2. Pour le Formulaire de Contact */
.contact-box {
    border: 2px solid #011530 !important;
    border-radius: 15px;
    padding: 30px; /* Espace intérieur pour que le texte ne touche pas le bord */
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Petite ombre en plus */
}
/* --- SÉPARATION ET BORDURE DES QUESTIONS FAQ --- */

/* 1. On enlève la bordure du "gros bloc" global (le cadre parent) */
.accordion {
    border: none !important;
    --bs-accordion-border-width: 0; /* Astuce Bootstrap pour effacer les traits par défaut */
}

/* 2. On encadre CHAQUE question individuellement */
.accordion-item {
    /* La même bordure épaisse que les services (Gris Ardoise) */
    border: 2px solid #94a3b8 !important; 
    
    /* Coins arrondis */
    border-radius: 15px !important;
    
    /* C'EST ICI LA CLÉ : On met de l'espace SOUS chaque question */
    margin-bottom: 20px; 
    
    /* On s'assure que le fond est blanc */
    background-color: #ffffff;
    
    /* Petite ombre pour le relief */
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    
    /* Empêche le contenu de dépasser des coins ronds */
    overflow: hidden;
}

/* 3. Petit bonus : la bordure devient OR quand la question est ouverte ou survolée */
.accordion-item:hover, 
.accordion-item:focus-within {
    border-color: #D4AF37 !important;
}
/* =========================================
   RESTAURATION DES BORDURES (Style Visible)
   ========================================= */

/* 1. TOUTES LES CARTES (Services, Prix, Avis) */
.service-card, 
.formula-card, 
.review-card {
    /* Bordure GRIS ARDOISE (Épais et visible) */
    border: 2px solid #94a3b8 !important; 
    
    /* Coins arrondis */
    border-radius: 15px !important;
    
    /* Fond blanc forcé pour le contraste */
    background-color: #ffffff !important;
    
    /* Petite ombre pour détacher du fond */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    /* Marge interne */
    padding: 20px;
}

/* 2. LE FORMULAIRE DE CONTACT */
.contact-box {
    border: 2px solid #94a3b8 !important;
    border-radius: 15px;
    padding: 30px;
    background-color: #ffffff !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* 3. LA FAQ (Questions Fréquentes) */
/* On enlève la bordure globale moche */
.accordion { 
    border: none !important; 
}
/* On encadre chaque question séparément */
.accordion-item {
    border: 2px solid #94a3b8 !important;
    border-radius: 15px !important;
    margin-bottom: 20px; /* Espace entre les questions */
    overflow: hidden;
    background-color: #ffffff !important;
}

/* 4. LES SLIDERS AVANT/APRÈS */
.comp-container, .img-comp-container {
    /* On remplace le cadre blanc par le cadre gris pour harmoniser */
    border: 3px solid #94a3b8 !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =========================================
   EFFETS INTERACTIFS (Survol)
   ========================================= */
   
/* Quand on passe la souris, la bordure devient OR (Luxe) */
.service-card:hover, 
.formula-card:hover, 
.review-card:hover,
.accordion-item:hover,
.contact-box:hover {
    border-color: #D4AF37 !important; /* Couleur Or */
    transform: translateY(-3px); /* Petit mouvement vers le haut */
    transition: all 0.3s ease;
}

/* =========================================
   SÉPARATION DES SECTIONS (Lignes horizontales)
   ========================================= */
   
/* Ajoute une ligne fine en bas de chaque grande section pour bien couper la page */
section, .section-padding {
    border-bottom: 1px solid #e2e8f0;
}
