/* =========================================
   1. CORE & RESET (FIX SCROLL MOBILE)
   ========================================= */
:root { 
    --rouge: #d90429; 
    --dark: #03045e; 
    --blue: #0077b6; 
    --fond: #f4f7f6; 
    --jaune: #ffca3a; 
}

html, body { 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    width: 100%;
    margin: 0; padding: 0;
}

* { box-sizing: border-box; outline: none; text-decoration: none !important; }

body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    background: var(--fond); 
}

/* =========================================
   2. ANIMATIONS
   ========================================= */
@keyframes ticker-animation { 0% { transform: translateX(0); } 100% { transform: translateX(-33.33%); } }
@keyframes sector-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse-red { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(217, 4, 41, 0); } 100% { transform: scale(1); } }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.05); } }

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header { background: #fff; padding: 15px 0; border-bottom: 4px solid var(--rouge); position: sticky; top:0; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; }
.h-flex { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { font-size: 18px; font-weight: 800; color: var(--dark); text-transform: uppercase; }
.logo span { color: var(--rouge); }

.nav-links { display: flex; list-style: none; gap: 15px; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--dark); font-weight: bold; font-size: 14px; padding: 8px 12px; transition: 0.3s; }
.nav-links a:hover { color: var(--blue); }

.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.15); min-width: 250px; z-index: 10000; border-radius: 8px; top: 100%; border-top: 4px solid var(--rouge); flex-direction: column; }
.dropdown:hover .dropdown-content { display: flex; }
.dropdown-content a { padding: 12px 20px; border-bottom: 1px solid #f0f0f0; width: 100%; color: var(--dark); }
.dropdown-content a:hover { background: var(--blue) !important; color: #fff !important; }

.dropdown.force-hide .dropdown-content { display: none !important; }

.tel-link-header { background: var(--rouge); color: #fff !important; padding: 10px 22px; border-radius: 50px; font-weight: 900; animation: pulse-red 2s infinite; border: 2px solid #fff; }

/* =========================================
   4. HERO (FIX RESPONSIVE)
   ========================================= */
.hero { position: relative; min-height: 550px; background: #000; display: flex; align-items: center; overflow: hidden; width: 100%; }
.hero-slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0.6; animation: heroZoom 10s infinite alternate; }
.hero-container { position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero-content h1 { font-size: 45px; color: #fff; line-height: 1.1; margin-bottom: 15px; }
.hero-content p { color: #fff; font-size: 1.2rem; }
.btn-hero { display: inline-block; background: var(--rouge); color: #fff; padding: 18px 35px; font-weight: 900; border-radius: 50px; font-size: 20px; border: 3px solid #fff; animation: pulse-red 2s infinite; }

.hero-zones { background: #fff; padding: 25px; border-radius: 15px; width: 450px; max-width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-top: 5px solid var(--rouge); }
.hero-zones h3 { color: var(--rouge); margin: 0 0 15px 0; border-bottom: 2px solid var(--rouge); padding-bottom: 10px; }

.mini-marquee-box { background: var(--dark); padding: 10px; border-radius: 8px; overflow: hidden; white-space: nowrap; margin-bottom: 15px; }
.mini-marquee-content { display: inline-block; animation: sector-scroll 35s linear infinite; color: #fff; font-weight: bold; font-size: 13px; }
.mini-marquee-content span { margin-right: 30px; }

.hero-zones ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; padding: 0; }
.hero-zones li { padding: 6px; font-weight: bold; font-size: 13px; background: #f1f3f5; border-radius: 5px; border-left: 3px solid var(--blue); }

/* =========================================
   5. TICKER & MOTEUR DE RECHERCHE
   ========================================= */
.pannes-ticker-container { width: 100%; background: var(--rouge); overflow: hidden; border-bottom: 3px solid var(--jaune); }
.pannes-ticker-wrapper { white-space: nowrap; padding: 12px 0; display: flex; width: max-content; }
.pannes-ticker { display: inline-block; animation: ticker-animation 30s linear infinite; }
.pannes-ticker span { color: #fff !important; font-weight: 800; font-size: 15px; margin-right: 60px; text-transform: uppercase; border: none !important; }

.search-box-container { max-width: 700px; margin: 50px auto; padding: 0 20px; }
.search-box { background: #fff; padding: 35px; border-radius: 20px; box-shadow: 0 15px 45px rgba(0,0,0,0.1); text-align: center; }

#panneSearch:focus { 
    border-color: var(--blue) !important; 
    box-shadow: 0 0 15px rgba(0, 119, 182, 0.4) !important; 
}

#suggestionsBox { 
    position: absolute; top: 100%; left: 0; width: 100%; 
    background: #fff; border-radius: 0 0 20px 20px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    display: none; z-index: 1000; text-align: left;
    border: 1px solid #ddd; border-top: none;
    max-height: 300px; overflow-y: auto;
}
.suggestion-item { padding: 12px 25px; cursor: pointer; border-bottom: 1px solid #f1f1f1; color: var(--dark); transition: all 0.2s; }
.suggestion-item:hover { background-color: var(--blue); color: #fff !important; }

/* =========================================
   6. GRILLE & EXPERTISE
   ========================================= */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }

.card { 
    background: #fff; 
    padding: 30px 20px; 
    border-radius: 15px; 
    text-align: center; 
    color: var(--dark); 
    border-bottom: 6px solid var(--blue); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
    transition: all 0.3s ease; 
}

.card:hover { 
    background: var(--blue) !important; 
    transform: translateY(-10px); 
}

.card:hover h3, 
.card:hover p, 
.card:hover span { 
    color: #fff !important; 
}

.card span { font-size: 40px; display: block; margin-bottom: 10px; }

.expert-row { display: flex; background: #fff; border-radius: 20px; overflow: hidden; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); min-height: 320px; transition: 0.3s; }
.expert-row.reverse { flex-direction: row-reverse; }
.expert-image-box { flex: 1; }
.expert-image-box img { width: 100%; height: 100%; object-fit: cover; }
.expert-info-box { flex: 1.2; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.expert-info-box h2 { border-left: 6px solid var(--rouge); padding-left: 15px; color: var(--dark); margin-bottom: 10px; font-size: 22px; }
.expert-info-box p { color: #555; line-height: 1.5; margin-bottom: 10px; font-size: 0.95rem; }
.btn-fake { display: inline-block; align-self: flex-start; background: var(--rouge); color: #fff !important; padding: 10px 22px; border-radius: 50px; font-weight: bold; margin-top: 5px; }

/* =========================================
   7. AVIS CLIENTS
   ========================================= */
.reviews-section { max-width: 1200px; margin: 60px auto; text-align: center; }
.review-group { display: none; justify-content: center; gap: 20px; }
.review-group.active { display: flex; }
.review-card { background: #fff; padding: 25px; border-radius: 15px; width: 33%; border-left: 5px solid var(--jaune); text-align: left; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* =========================================
   8. BOUTON FLOTTANT
   ========================================= */
.floating-call { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 99999; animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { transform: scale(0.95); } }

/* =========================================
   9. RESPONSIVE (MOBILE FIXES)
   ========================================= */
@media (max-width: 992px) {
    .h-flex { flex-direction: row; flex-wrap: wrap; padding: 10px 15px; justify-content: space-between; }
    .logo { font-size: 15px; order: 1; }
    
    .header-contact { order: 2; }
    .tel-link-header { padding: 8px 12px; font-size: 0; border-radius: 10px; display: inline-block; }
    .tel-link-header::before { content: "☎"; font-size: 20px; }

    .nav-links { 
        order: 3; 
        width: 100%; 
        justify-content: center; 
        gap: 5px; 
        margin-top: 10px; 
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
    .nav-links a { font-size: 13px; padding: 5px 8px; white-space: nowrap; }
    
    /* Bouton HERO Principal (Icône SEULE) */
    .btn-hero { font-size: 0; padding: 12px 20px; border-radius: 50px; }
    .btn-hero::before { content: "📞"; font-size: 24px; }

    /* Bouton HERO Zones (URGENCE retiré) */
    .hero-zones .btn-hero { font-size: 0 !important; padding: 10px 15px !important; }
    .hero-zones .btn-hero::before { content: "DÉPANNAGE 24H/7"; font-size: 14px; font-weight: 900; }

    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    
    .hero-container { flex-direction: column; text-align: center; padding-top: 15px; }
    .hero-content h1 { font-size: 26px; }
    .hero-zones { width: 100%; margin-top: 15px; padding: 15px; }
    
    .expert-row, .expert-row.reverse { flex-direction: column; min-height: auto; margin-bottom: 20px; }
    .expert-info-box { padding: 20px; text-align: center; }
    .btn-fake { align-self: center; }

    .review-group.active { flex-direction: column; align-items: center; }
    .review-card { width: 95%; margin-bottom: 12px; min-height: auto; padding: 15px; }
}