/* =========================================
   MASTER CSS - "FUTURE VISION" EDITION
   ========================================= */

:root {
    /* PALETTE VIBRANTE */
    --primary: #0f172a;      /* Bleu noir profond (Fondations) */
    --accent: #ef4444;       /* Rouge vif (Action) */
    --accent-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    
    --bg-body: #f8fafc;      /* Gris très clair (Clean) */
    --surface: #ffffff;      /* Blanc pur */
    --text-main: #1e293b;    /* Texte foncé */
    --text-muted: #64748b;   /* Texte gris */

    /* EFFETS */
    --glass: rgba(255, 255, 255, 0.7);
    --blur: blur(20px);
    --radius-sm: 8px;
    --radius-lg: 24px;       /* Gros arrondis modernes */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* CONFIG */
    --nav-height: 80px;
    --font-heading: 'Space Grotesk', sans-serif; /* Look Tech/Archi */
    --font-body: 'Inter', sans-serif;            /* Lisibilité parfaite */
}

/* --- RESET & BASES --- */
* { margin: 0; padding: 0;  outline: none; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar invisible mais fonctionnelle (Style Mobile) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em; /* Tendance : lettres serrées */
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* Utilitaires */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 6rem 0; position: relative; overflow: hidden; }
.text-center { text-align: center; }

/* Titres soulignés modernes */
.section h2 { position: relative; display: inline-block; }
.section h2::after {
    content: ''; display: block; width: 40%; height: 6px;
    background: var(--accent); opacity: 0.2;
    position: absolute; bottom: 5px; left: 0; z-index: -1;
    transition: 0.4s; border-radius: 4px;
}
.section:hover h2::after { width: 100%; } /* L'effet wow au survol de la section */


/* =========================================
   NAVIGATION "ISLAND GLASS"
   ========================================= */
.navbar {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1100px; height: 70px;
    background: rgba(255, 255, 255, 0.85); /* Blanc laiteux */
    backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px; /* Forme de pilule */
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 1.5rem; z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.nav-hidden { transform: translate(-50%, -200%); }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--primary); text-transform: uppercase; }
.logo span.larouge { color: red!important; }
.lablanc { color:white}
.logohead { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }

/* Liens Menu */
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--primary); position: relative; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; background: var(--accent); border-radius: 2px; transition: 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 20px; }

/* Bouton Contact Nav */
.btn-contact {
    background: var(--primary); color: white !important;
    padding: 0.6rem 1.2rem !important; border-radius: 50px;
}
.btn-contact:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4); }
.btn-contact::after { display: none; }


/* =========================================
   HERO SECTION (L'Impact Visuel)
   ========================================= */
.hero {
    height: 95vh;
    min-height: 600px;
    background-size: cover; background-position: center;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
    border-radius: 0 0 40px 40px; /* Bas arrondi moderne */
    overflow: hidden;
    margin-bottom: 2rem;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.3));
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; animation: fadeInUp 1s ease-out; }

.hero h1 {
    color: white; margin-bottom: 1.5rem; text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero p { color: rgba(255,255,255,0.9); font-size: 1.25rem; max-width: 600px; margin: 0 auto 2.5rem; }

/* Boutons Modernes */
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: var(--accent-gradient)!important; color: white!important; padding: 1rem 2.5rem;
    border-radius: 50px; font-weight: 700; border: none; cursor: pointer;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4); }

.btn-secondary {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    color: white; padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: white; color: var(--primary); }


/* =========================================
   GRILLES & CARTES (Style "Bento")
   ========================================= */
.bg-light { background: #f1f5f9; } /* Gris un peu plus soutenu */

.features-grid, .cards-grid, .services-modern-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem; margin-top: 3rem;
}

/* Carte Générique (Services, Aides, Features) */
.feature-box, .card, .service-card-modern, .aid-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet rebond */
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden; position: relative;
    display: flex; flex-direction: column;
}

.feature-box:hover, .card:hover, .service-card-modern:hover, .aid-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Icônes dans les cartes */
.feature-box i, .icon-circle-lg i, .aid-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #334155 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem; display: inline-block;
}

/* Images dans les cartes */
.card-img, .portfolio-img {
    height: 250px; width: 100%; border-radius: var(--radius-lg);
    background-size: cover; background-position: center; margin-bottom: 1.5rem;
    transition: transform 0.5s;
}
.card:hover .card-img { transform: scale(1.05); }

/* Badges (Aides) */
.aid-badge, .tag-service {
    background: #eff6ff; color: var(--primary);
    padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem;
    display: inline-block; margin-top: auto; align-self: flex-start;
}


/* =========================================
   ZIG ZAG & CONTENU RICHE
   ========================================= */
.detail-row { display: flex; align-items: center; gap: 4rem; margin-bottom: 6rem; }
.detail-row.reverse { flex-direction: row-reverse; }

.detail-img {
    flex: 1; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-hover);
}
.detail-img img { width: 100%; transition: transform 0.6s; }
.detail-row:hover .detail-img img { transform: scale(1.05); }

.detail-text { flex: 1; }
.detail-text h3 { font-size: 2.5rem; margin-bottom: 1rem; }
.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; color: var(--accent); margin-top: 1rem;
}
.link-arrow i { transition: 0.3s; }
.link-arrow:hover i { transform: translateX(5px); }


/* =========================================
   PROCESS TIMELINE (Moderne)
   ========================================= */
.process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; text-align: center;
}
.step-item { position: relative; padding: 2rem 1rem; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: 0.3s; }
.step-item:hover { transform: translateY(-5px); }
.step-num {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 700;
    color: #e2e8f0; position: absolute; top: 10px; right: 20px; line-height: 1;
}
.step-item h4 { position: relative; z-index: 2; margin-top: 1rem; }


/* =========================================
   FOOTER (Clean & Structuré)
   ========================================= */
.main-footer {
    background: var(--primary); color: #cbd5e1;
    padding: 5rem 0 2rem; border-radius: 40px 40px 0 0;
    margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }

.logo_foot {
    border-radius: 50%; width: 80px; height: 80px; object-fit: cover;
    border: 3px solid rgba(255,255,255,0.1); margin-bottom: 1rem;
    transition: 0.5s;
}
.footer-bottom {
    text-align: center;
}
.logo_foot:hover { transform: rotate(10deg) scale(1.1); border-color: var(--accent); }

.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a:hover { color: var(--accent); padding-left: 5px; }


/* =========================================
   FORMULAIRES & INPUTS
   ========================================= */
.contact-section { background: var(--bg-body); }
.contact-form-box {
    background: var(--surface); padding: 3rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}
.modern-form label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; display: block; }
.modern-form input, .modern-form textarea {
    width: 100%; padding: 1rem; background: #f8fafc; border: 2px solid #e2e8f0;
    border-radius: 12px; font-size: 1rem; transition: 0.3s; margin-bottom: 1.5rem; font-family: inherit;
}
.modern-form input:focus, .modern-form textarea:focus {
    border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}
.btn-submit {
    width: 100%; background: var(--primary); color: white; padding: 1.2rem;
    border-radius: 12px; font-weight: 700; border: none; cursor: pointer;
    transition: 0.3s;
}
.btn-submit:hover { background: var(--accent); }


/* =========================================
   WIDGET URGENCE (Pulsation Rouge)
   ========================================= */
/* =========================================
   WIDGET URGENCE RÉPARÉ & MODERNE
   ========================================= */

.emergency-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999; /* Au-dessus de tout, même du menu */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-body), sans-serif;
}

/* --- LE BOUTON ROND (FAB) --- */
.emergency-fab {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #ef4444, #b91c1c); /* Rouge Alerte */
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 10px 25px rgba(185, 28, 28, 0.5);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.emergency-fab:hover { transform: scale(1.1) rotate(-5deg); }

.emergency-fab i {
    color: white; font-size: 1.6rem; margin-bottom: 2px;
}
.fab-label {
    color: white; font-size: 0.55rem; font-weight: 800; line-height: 1; text-align: center;
}

/* Animation "Onde de choc" (Pulse) */
.pulse-wave {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%; border: 2px solid #ef4444;
    animation: pulse-red 2s infinite; opacity: 0;
}
@keyframes pulse-red {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}


/* --- LA POPUP (FENÊTRE) --- */
.emergency-popup {
    width: 340px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 20px; /* Espace entre popup et bouton */
    overflow: hidden;
    /* Animation d'apparition */
    visibility: hidden; opacity: 0; transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: absolute; bottom: 85px; right: 0;
}

.emergency-popup.active {
    visibility: visible; opacity: 1; transform: translateY(0) scale(1);
}

/* Header Popup */
.popup-header {
    background: #1e293b; /* Bleu sombre */
    color: white; padding: 1rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.header-title { font-weight: 800; display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.header-title i { color: #fbbf24; /* Eclair jaune */ }

.close-btn {
    background: rgba(255,255,255,0.1); border: none; color: white;
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.close-btn:hover { background: #ef4444; }

/* Corps Popup */
.popup-body { padding: 1.5rem; }
.urg-desc { font-size: 0.85rem; color: #64748b; margin-bottom: 1rem; line-height: 1.4; }

/* Inputs stylisés */
.input-icon-group {
    position: relative; margin-bottom: 10px;
}
.input-icon-group i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 0.9rem;
}
.input-icon-group input {
    width: 100%; padding: 10px 10px 10px 35px; /* Espace pour l'icône */
    border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem;
    background: #f8fafc; outline: none; transition: 0.3s;
}
.input-icon-group input:focus {
    border-color: #ef4444; background: white;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* CHECKBOX & CONSENTEMENT */
.consent-box {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 15px 0; font-size: 0.75rem; color: #475569; line-height: 1.3;
}
.consent-box input {
    margin-top: 3px; accent-color: #ef4444; cursor: pointer;
    transform: scale(1.1);
}

/* Boutons d'action */
.btn-urgency {
    width: 100%; background: #ef4444; color: white;
    border: none; padding: 12px; border-radius: 8px;
    font-weight: 700; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-urgency:hover { background: #dc2626; transform: translateY(-2px); }

.divider {
    text-align: center; margin: 15px 0; position: relative;
}
.divider::before {
    content:''; position: absolute; top: 50%; left:0; right:0; height: 1px; background: #e2e8f0;
}
.divider span {
    background: white; padding: 0 10px; color: #94a3b8; font-size: 0.75rem; position: relative;
}

.btn-call-direct {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border: 2px solid #0f172a; color: #0f172a;
    padding: 10px; border-radius: 8px; font-weight: 700; text-decoration: none;
    transition: 0.2s;
}
.btn-call-direct:hover { background: #0f172a; color: white; }

/* RESPONSIVE MOBILE */
@media (max-width: 480px) {
    .emergency-wrapper { bottom: 20px; right: 20px; }
    .emergency-popup { width: 300px; right: -10px; bottom: 80px; }
}


/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transition: all 0.8s ease; } /* Géré par ton JS existant */
.reveal.active { opacity: 1; transform: translateY(0); }


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .navbar { width: 95%; top: 10px; padding: 0 1rem; }
    .hero { border-radius: 0 0 20px 20px; }
    .hero h1 { font-size: 2.5rem; }
    .detail-row, .detail-row.reverse { flex-direction: column; gap: 2rem; }
    .process-steps, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Menu Mobile */
    .nav-toggle-label { display: block; cursor: pointer; }
    .nav-toggle-label span { display: block; width: 25px; height: 3px; background: var(--primary); margin-bottom: 5px; border-radius: 2px; }
    .nav-links {
        position: fixed; top: 80px; left: 50%; transform: translateX(-50%) scale(0.9);
        width: 90%; background: white; flex-direction: column; padding: 2rem;
        border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        opacity: 0; pointer-events: none; transition: 0.3s;
    }
    .nav-toggle:checked ~ .nav-links { opacity: 1; pointer-events: all; transform: translateX(-50%) scale(1); }
}

/* =========================================
   ADD-ON PAGE RÉALISATIONS (STYLE 2026)
   ========================================= */

/* Conteneur des filtres */
.filters-container {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Boutons Pilules (Style Apple/Tech) */
.filter-pill {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-pill:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    color: var(--primary);
}

.filter-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* Ajustements Carte Projet */
.project-card {
    /* Pour l'animation JS */
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s;
}

.project-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}
.project-meta i { color: var(--accent); }
/* =========================================
   ADD-ON PAGE CONTACT (STYLE 2026)
   ========================================= */

/* Grille de mise en page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Formulaire un peu plus large */
    gap: 4rem;
    align-items: start;
}

/* Carte Info (Téléphone, Email...) */
.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.info-icon {
    width: 50px; height: 50px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.info-card h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.info-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.info-card a { font-weight: 700; color: var(--primary); }

/* Carte Google Maps */
.map-box {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-top: 2rem;
}

/* Formulaire : Ligne Double (Nom/Prénom) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Select Styling (Pour faire joli) */
.select-wrapper select {
    width: 100%; padding: 1rem; background: #f8fafc; border: 2px solid #e2e8f0;
    border-radius: 12px; font-size: 1rem; margin-bottom: 1.5rem; color: var(--text-main);
    cursor: pointer; appearance: none; /* Cache la flèche par défaut moche */
}

/* Responsive Mobile */
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
.goldian {
    color: white;
   
}
.goldian:hover {
    color: red;
}
/* =========================================
   GESTION DES IMAGES HERO PAR PAGE
   ========================================= */

/* Configuration de base pour toutes les images hero */
.hero {
    /* On s'assure que l'image couvre tout, est centrée et ne se répète pas */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Optionnel : Effet parallaxe moderne (l'image bouge moins vite que le scroll) */
    background-attachment: fixed; 
    position: relative;
}

/* Note : La couleur sombre est gérée par .hero-overlay dans ton CSS existant. 
   L'image se met sur le bloc parent (.hero). */


/* --- 1. IMAGE ACCUEIL (Majestueuse, Ardoise) --- */
/* Une vue large et impressionnante pour donner le ton */
.hero-index {
    background-image: url('https://images.pexels.com/photos/912110/pexels-photo-912110.jpeg')!important;
}

/* --- 2. IMAGE SERVICES (Action, Technique) --- */
/* Des couvreurs au travail, focus sur le savoir-faire et les outils */
.hero-services {
    background-image: url('https://images.pexels.com/photos/31771167/pexels-photo-31771167.jpeg');
}

/* --- 3. IMAGE RÉALISATIONS (Résultat fini, Moderne) --- */
/* Une belle maison avec une toiture impeccable, le résultat final */
.hero-realisations {
    background-image: url('https://images.pexels.com/photos/33404248/pexels-photo-33404248.jpeg');
}

/* --- 4. IMAGE AIDES DE L'ÉTAT (Isolation, Lumière) --- */
/* Un intérieur de combles lumineux avec un Velux, évoque l'isolation et le confort */
.hero-aides {
    background-image: url('https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1920&q=85');
    /* Celle-ci est souvent en hauteur, on ajuste le centrage */
    background-position: center top;
}

/* --- 5. IMAGE CONTACT (Professionnel, Confiance) --- */
/* Une toiture calme au coucher de soleil ou une poignée de main sur chantier.
   Ici, une belle vue de toits urbains qui inspire la sérénité. */
.hero-contact {
    background-image: url('https://images.pexels.com/photos/45206/roofing-tile-red-wall-45206.jpeg');
}

/* --- RESPONSIVE : Ajustements pour mobile --- */
@media (max-width: 768px) {
    .hero {
        /* Sur mobile, on désactive souvent le "fixed" car ça peut bugger */
        background-attachment: scroll;
        /* On peut réduire la hauteur si besoin sur certaines pages */
    }
     .btn-primary {
        padding: 1rem 1rem;
    }
    
    /* Exemple : Si l'image de contact est trop haute sur mobile */
    .hero-contact {
         /* background-position: center right; */ /* Ex: pour décaler si besoin */
    }
 
}

   .contact-col {
        width: 100%!important;
    }
/* =========================================
   MENU HAMBURGER MOBILE & ANIMATION
   ========================================= */

/* Par défaut (PC) : le bouton est caché */
.hamburger-btn {
    display: none;
}

/* Sur Mobile/Tablette (moins de 992px) */
@media (max-width: 992px) {
    
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002; /* Toujours au-dessus */
        padding: 0;
    }
    
    .hamburger-btn span {
        width: 100%;
        height: 3px;
        background-color: var(--primary); /* Couleur bleu foncé */
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
        transform-origin: center;
    }

    /* --- L'ANIMATION EN CROIX (X) --- */
    /* Quand le bouton a la classe .active */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0; /* La barre du milieu disparaît */
        transform: translateX(20px);
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Couleur rouge quand ouvert (optionnel, pour le style) */
    .hamburger-btn.active span {
        background-color: var(--accent); 
    }

    /* --- AFFICHAGE DU MENU --- */
    /* Force l'affichage quand actif */
    .nav-links.active {
        opacity: 1 !important;
        pointer-events: all !important;
        transform: translateX(-50%) scale(1) !important;
    }
  /* =========================================
   RÉPARATION RESPONSIVE INFO-COLUMN
   ========================================= */

@media (max-width: 992px) {

    /* 1. Le Conteneur global passe en colonne simple */
    body .contact-layout {
        display: flex !important;
        flex-direction: column !important; /* Empile Info puis Formulaire */
        width: 100% !important;
        gap: 2rem !important;
    }

    /* 2. La Div qui pose problème (Info Column) */
    body .info-column {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. Les petites cartes (Téléphone, Email...) */
    body .info-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important; /* Empêche le padding de grossir la boite */
        display: flex !important;
        align-items: center !important;
        /* Si tu veux que ce soit empilé en vertical à l'intérieur de la petite carte aussi : */
        /* flex-direction: column !important; text-align: center; */
    }

    /* 4. La Google Map */
    body .map-box {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important; /* Hauteur fixe pour mobile */
    }
    
    /* 5. Sécurité pour le titre "Nos Coordonnées" */
    body .info-column .section-header {
        width: 100% !important;
        text-align: center !important;
    }
/* =========================================
   FIX ANTI-SCROLL HORIZONTAL (VERROUILLAGE)
   ========================================= */

/* 1. La commande magique qui coupe tout ce qui dépasse */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important; /* Coupe net ce qui dépasse à droite */
    position: relative;
    margin: 0;
    padding: 0;
}

/* 2. On s'assure que tous les éléments respectent les bords */
* {
    box-sizing: border-box; /* Indispensable pour que le padding ne grossisse pas les boites */
}

/* 3. On écrase ton bug du 108% spécifiquement */
@media (max-width: 992px) {
    .contact-col {
        width: 100% !important; /* On force à 100% au lieu de 108% */
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .footer-grid {
        width: 100% !important;
        margin: 0 !important;
    }

    .container {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 auto !important;
    }
}
}
   