/* --- CHARTE UNIVO V4.1 (Finale : Animations + FAQ Fix) --- */
:root {
    --primary: #005F73;      /* Bleu Pétrole */
    --accent: #EE9B00;       /* Ocre Doré */
    --text: #2F3E46;         /* Gris Ardoise */
    --bg: #F7F7F5;           /* Blanc Cassé */
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 95, 115, 0.08);
    --radius: 16px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--text); background-color: var(--bg); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }

/* NAVBAR */
.navbar { background: var(--white); height: 80px; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo-link { display: flex; align-items: center; height: 100%; }
.logo-img { height: 60px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn-nav) { font-weight: 500; font-size: 0.95rem; position: relative; padding: 5px 0; }
.nav-links a:hover { color: var(--accent); }
/* Animation petit point au survol */
.nav-links a:not(.btn-nav)::after { content: ''; position: absolute; width: 6px; height: 6px; bottom: -10px; left: 50%; transform: translateX(-50%) scale(0); background: var(--accent); border-radius: 50%; transition: 0.3s; }
.nav-links a:not(.btn-nav)::after:hover { transform: translateX(-50%) scale(1); }

.btn-nav { background: var(--accent); color: var(--white) !important; padding: 12px 25px !important; border-radius: 50px; font-weight: 700; box-shadow: 0 4px 10px rgba(238, 155, 0, 0.3); transition: 0.3s; }
.btn-nav:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 95, 115, 0.2); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background-color: var(--primary); border-radius: 3px; transition: 0.3s; }

/* HERO (AVEC ANIMATIONS RESTAURÉES) */
.hero { background: linear-gradient(135deg, var(--bg) 0%, #E8EBEB 100%); padding: 60px 0 100px 0; position: relative; overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-tag { display: inline-block; background: #E0F2F1; color: var(--primary); padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 1rem; margin-bottom: 25px; }
.hero h1 { font-size: 3.2rem; color: var(--primary); line-height: 1.1; margin-bottom: 25px; font-weight: 700; }
.hero h1 span { color: var(--accent); }
/* Ajoute ceci pour gérer l'espace sous le texte */
.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px; /* C'est ICI qu'on règle l'écart (60px) */
    opacity: 0.9;
    max-width: 90%;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: var(--white); padding: 15px 30px; border-radius: 12px; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(238, 155, 0, 0.3); transition: 0.3s; }
.btn-primary:hover { transform: translateY(-3px); background: #d68b00; }
.btn-outline { padding: 15px 25px; border: 2px solid var(--primary); border-radius: 12px; color: var(--primary); font-weight: 600; transition: 0.3s; }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ANIMATION VOITURE RESTAURÉE */
.hero-image-box img { border-radius: var(--radius); box-shadow: 20px 20px 0px var(--accent); transform: rotate(2deg); transition: 0.5s; width: 100%; }
.hero-image-box:hover img { transform: rotate(0deg); }

.wave-bottom { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.wave-bottom svg { width: calc(157% + 1.3px); height: 80px; transform: rotateY(180deg); }
.wave-bottom .shape-fill { fill: var(--white); }

/* SECTIONS */
.section-padding { padding: 80px 0; }
.bg-white { background: var(--white); }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.2rem; color: var(--primary); font-weight: 700; }
.section-title::after { content: ""; display: block; width: 60px; height: 5px; background: var(--accent); margin: 15px auto 0; border-radius: 10px; }

/* CARTES GÉNÉRALES */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 30px; border-radius: var(--radius); transition: 0.3s; border: 1px solid rgba(0,0,0,0.03); position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-bottom: 5px solid var(--accent); }
.icon-box { width: 60px; height: 60px; background: #E0F2F1; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--primary); font-size: 1.5rem; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary); }

/* TARIFS */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: stretch; }
.price-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.02); height: 100%; }
.price-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 95, 115, 0.15); }
.card-header { background: var(--primary); padding: 30px; text-align: center; color: var(--white); min-height: 130px; display: flex; flex-direction: column; justify-content: center; }
.card-header h3 { font-size: 1.3rem; margin-bottom: 5px; font-weight: 700; text-transform: uppercase; }
.price { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.currency { font-size: 1.2rem; vertical-align: super; opacity: 0.8; }
.card-body { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.ideal-text { text-align: center; font-size: 0.9rem; color: #777; font-style: italic; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px dashed #eee; min-height: 70px; display: flex; flex-direction: column; justify-content: center; }
.ideal-text strong { color: var(--primary); font-style: normal; text-transform: uppercase; font-size: 0.75rem; display: block; margin-bottom: 5px; }
.card-body ul { margin-bottom: 30px; flex-grow: 1; }
.card-body ul li { margin-bottom: 12px; display: flex; align-items: start; font-size: 0.95rem; color: var(--text); }
.card-body ul li i { color: var(--accent); min-width: 25px; margin-top: 5px; }
.btn-card { display: block; width: 100%; padding: 15px; border-radius: 50px; text-align: center; font-weight: 700; transition: 0.3s; background: #f4f4f4; color: var(--text); margin-top: auto; }
.btn-card:hover { background: var(--primary); color: var(--white); }
.price-card.featured { transform: scale(1.05); box-shadow: 0 20px 50px rgba(238, 155, 0, 0.2); z-index: 2; border: 2px solid var(--accent); }
.price-card.featured .card-header { background: var(--accent); }
.featured .btn-card { background: var(--accent); color: var(--white); }

/* SUR-MESURE & OPTIONS */
.custom-quote-box { background-color: var(--primary); color: var(--white); padding: 30px; border-radius: 12px; margin: 40px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 4px 15px rgba(0,95,115, 0.2); }
.custom-quote-text h3 { color: var(--white); margin: 0 0 10px 0; font-size: 1.4rem; }
.custom-quote-text p { color: #e0e0e0; margin: 0; font-size: 1rem; }
.btn-white { background-color: var(--white); color: var(--primary); padding: 12px 25px; border-radius: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform 0.2s; }
.btn-white:hover { transform: scale(1.05); background-color: #f0f0f0; }
.options-container { margin-top: 70px; text-align: center; padding-top: 50px; border-top: 2px dashed #ddd; }
.options-title { font-size: 1.8rem; color: var(--primary); margin-bottom: 30px; }
.options-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.option-item { background: var(--white); padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 15px; text-align: left; border-left: 5px solid var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.05); flex: 1 1 300px; max-width: 350px; }
.opt-icon { font-size: 1.8rem; }
.opt-content h4 { color: var(--primary); margin-bottom: 2px; }
.opt-price { font-weight: 700; color: var(--accent); }
.opt-content p { font-size: 0.85rem; color: #666; }
.value-props-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin: 50px 0; }
.value-card { background: var(--white); padding: 30px 25px; border-radius: 12px; text-align: left; box-shadow: 0 5px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.03); border-left: 5px solid var(--accent); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.value-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 95, 115, 0.15); }
.value-card h4 { color: var(--primary); margin-bottom: 15px; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.value-card h4 i { color: var(--accent); font-size: 1.4rem; background: #FFF8E1; padding: 10px; border-radius: 8px; }
.value-card p { font-size: 0.95rem; color: #555; margin: 0; line-height: 1.6; }

/* AUTRES SECTIONS */
.referral-banner { background: var(--primary); color: var(--white); text-align: center; padding: 60px 20px; margin-top: 60px; }
.referral-banner h3 { margin-bottom: 10px; font-size: 1.8rem; color: var(--accent); }
.about-section { padding: 80px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; }
.about-photo img { border-radius: 50%; width: 220px; height: 220px; object-fit: cover; margin: 0 auto; border: 5px solid var(--bg); box-shadow: var(--shadow); }
.about-text h2 { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }
.signature { font-family: 'Brush Script MT', cursive; font-size: 1.5rem; color: var(--accent); margin-top: 15px; }
.contact-section { padding: 80px 0; background: var(--bg); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: var(--white); padding: 40px; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.05); }
.contact-card h3 { color: var(--primary); margin-bottom: 20px; font-size: 1.5rem; }
footer { background: var(--text); color: var(--white); padding: 50px 0; text-align: center; border-top: 5px solid var(--accent);}
.socials a { color: var(--white); font-size: 1.5rem; margin: 0 10px; transition: 0.3s; }
.socials a:hover { color: var(--accent); }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; background-color: #25D366; color: #ffffff !important; padding: 8px 18px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; text-decoration: none; box-shadow: 0 3px 8px rgba(37, 211, 102, 0.2); transition: transform 0.3s ease, background-color 0.3s; }
.btn-whatsapp:hover { background-color: #128C7E; transform: translateY(-2px); }
.floating-btn { display: none; position: fixed; bottom: 20px; right: 20px; background: var(--accent); color: var(--white); padding: 15px 30px; border-radius: 50px; font-weight: 700; box-shadow: 0 5px 20px rgba(0,0,0,0.3); z-index: 9999; text-transform: uppercase; font-size: 0.9rem; transition: all 0.4s ease-in-out; opacity: 0; visibility: hidden; transform: translateY(20px); }
.floating-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 768px) { .floating-btn { display: block; } }

/* PAGE RÉALISATIONS */
.realisations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 50px; margin-top: 40px; }
.ba-card h3 { color: var(--primary); margin-bottom: 5px; }
.ba-card p { margin-bottom: 15px; color: #666; }
.ba-slider { position: relative; width: 100%; max-width: 600px; height: 350px; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 4px solid var(--white); cursor: col-resize; user-select: none; }
.ba-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.img-before { z-index: 2; clip-path: inset(0 50% 0 0); will-change: clip-path; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--accent); z-index: 10; pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.handle-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: var(--accent); border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; border: 3px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.ba-label { position: absolute; top: 20px; background: rgba(0, 95, 115, 0.85); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; z-index: 5; pointer-events: none; }
.label-before { left: 20px; } .label-after { right: 20px; }
@media (max-width: 768px) { .ba-slider { height: 250px; } }

/* ELEMENTS SLIDERS (Cachés par défaut sur PC) */
.slider-arrow, .pricing-dots, .services-dots { display: none; }
.pricing-wrapper, .services-wrapper { position: relative; width: 100%; }
.pricing-dots, .services-dots { text-align: center; }
.dot, .dot-service { height: 10px; width: 10px; background-color: #ddd; border-radius: 50%; display: inline-block; margin: 0 5px; transition: 0.3s; }
.dot.active, .dot-service.active { background-color: var(--accent); transform: scale(1.2); }

/* FAQ ITEMS */
.faq-item { background: white; border-radius: 12px; padding: 25px; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border-left: 4px solid var(--accent); }
.faq-item h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.1rem; }
.faq-item p { color: #555; font-size: 0.95rem; }

/* ========================================= */
/* VERSION MOBILE (CORRECTION TOTALE)        */
/* ========================================= */
@media (max-width: 768px) {
    
    /* 1. NAVBAR & LOGO */
    .navbar { height: 60px !important; min-height: 60px !important; }
    .logo-img { height: 35px !important; width: auto; margin-top: 5px; }
    .hamburger { display: flex; }
    .nav-links {
        position: absolute; top: 60px; left: 0; width: 100%;
        background-color: #ffffff; border-bottom: 3px solid var(--accent);
        flex-direction: column; align-items: center; gap: 0;
        display: none; z-index: 2000; box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }
    .nav-links.active { display: flex; padding-bottom: 30px; animation: slideDown 0.3s ease-out; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .nav-links li { width: 100%; text-align: center; border-bottom: 1px solid #f0f0f0; }
    .nav-links li a { display: block; padding: 15px 0; }
    .nav-links a:not(.btn-nav)::after { display: none; }
    .btn-nav { display: block; width: 80%; margin: 20px auto; text-align: center; }

    /* 2. HERO (IMAGE ET TEXTE) */
    .hero-layout { display: flex; flex-direction: column; text-align: center; }
    .hero-text { width: 100%; padding: 0 15px; margin-bottom: 20px; text-align: center; }
    .hero-text p { margin: 0 auto 30px auto; max-width: 100%; }
    .hero h1 { font-size: 2rem; line-height: 1.2; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 15px; width: 100%; }
    .hero-buttons .btn-primary, .hero-buttons .btn-outline { width: 100%; max-width: 300px; justify-content: center; }
    .hero-image-box { 
        width: 85%; max-height: 300px; width: auto; /* Contrainte de hauteur */
        margin: 20px auto 50px auto; display: block; 
    }

    /* 3. RESTE DU SITE */
    .contact-layout, .about-grid { display: flex; flex-direction: column; gap: 40px; }
    .price-card.featured { transform: scale(1); border-width: 1px; } 
    .custom-quote-box { flex-direction: column; text-align: center; }

    /* 4. FIX FAQ (CRITIQUE : On empêche le mode slider sur les grilles normales) */
    .cards-grid {
        display: grid;
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 30px;
        overflow: visible; /* Pas de scroll */
    }

    /* 5. SLIDERS (UNIQUEMENT POUR ACCUEIL) */
    /* On cible par ID pour ne pas casser la FAQ */
    #pricing-slider, #services-slider {
        display: flex !important; flex-wrap: nowrap;
        overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 15px; 
        padding: 0 5vw 0px 5vw !important; /* Padding bas 0 */
        margin-bottom: 0 !important;
        scrollbar-width: none; align-items: stretch;
        grid-template-columns: none; width: 100%;
    }
    #pricing-slider::-webkit-scrollbar, #services-slider::-webkit-scrollbar { display: none; }
    .pricing-wrapper, .services-wrapper { overflow: hidden; padding: 0; }

    /* POINTS (DOTS) */
    .slider-arrow, .pricing-dots, .services-dots { 
        display: flex; justify-content: center; align-items: center;
    }
    .pricing-dots, .services-dots {
        margin-top: 10px !important; /* Espace réduit */
        margin-bottom: 30px !important;
        padding: 0 !important;
    }

    /* CARTES DANS LE SLIDER */
    .price-card, #services-slider .card {
        min-width: 85vw; max-width: 85vw;
        scroll-snap-align: center; margin: 0;
        border-radius: 16px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.05);
    }
    .card-body { padding: 20px 15px; }

    /* FLÈCHES */
    .slider-arrow, .prev-btn-services, .next-btn-services {
        position: absolute; top: 45%; transform: translateY(-50%); z-index: 20;
        width: 35px; height: 35px; font-size: 1rem; border-radius: 50%; 
        align-items: center; justify-content: center; cursor: pointer;
    }
    .slider-arrow { background: #FFFFFF; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: none; color: var(--primary); }
    .prev-btn-services, .next-btn-services { background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255,255,255,0.6); box-shadow: none; color: var(--primary); }
    .prev-btn, .prev-btn-services { left: 10px; }
    .next-btn, .next-btn-services { right: 10px; }
}

/* Réduit l'espace entre toutes les sections sur mobile */
    .section-padding { 
        padding: 40px 0 !important; /* On divise l'espace par 2 (avant c'était 80px) */
    }