/* style.css - VERSION RÉPARÉE (Menu Intouché + Accueil Stylisé) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --white: #ffffff;
    --light-gray: #f4f4f4;
}

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

/* --- GLOBAL --- */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER (Votre version originale) --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.btn-devis-home {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-devis-home:hover {
    background-color: var(--secondary-color);
    transition: background 0.3s;

}



.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Menu Burger */
.burger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    top: 100%;
    left: 0;
    border-radius: 4px;
    flex-direction: column;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* Bouton Devis (Header) */
.btn-devis {
    background-color: gray;
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-devis:hover {
    background-color: rgb(62, 62, 62);
}


/* --- MAIN (Global) --- */
main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}


/* --- FOOTER (Votre version originale avec correction mobile) --- */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2rem 5% 1rem;
    text-align: center;
    margin-top: auto;
    border-top: 5px solid var(--primary-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.copyright {
    border-top: 1px solid #445566;
    padding-top: 15px;
    font-size: 0.8rem;
}

/* ============================================
   STYLE MOBILE CORRIGÉ - VERSION FINALE
   ============================================ */
@media screen and (max-width: 768px) {

    /* --- 1. LE CONTENEUR DU MENU (La boite blanche) --- */
    .nav-links {
        position: fixed;
        top: 0;
        /* On le colle tout en haut de l'écran */
        left: 0;
        right: 0;
        bottom: 0;
        /* On le force à prendre TOUTE la hauteur */
        height: 100vh;
        width: 100%;

        background-color: #ffffff !important;
        /* Fond blanc OBLIGATOIRE */

        flex-direction: column;
        /* Liste verticale */
        align-items: center;
        /* Centré horizontalement */
        justify-content: flex-start;
        /* IMPORTANT : Tout commence en haut, pas au milieu */

        padding-top: 100px;
        /* On laisse de la place en haut pour le logo et la croix */
        padding-bottom: 50px;

        transform: translateX(100%);
        /* Caché à droite par défaut */
        transition: transform 0.3s ease-in-out;
        z-index: 998;
        /* Juste en dessous du header/burger */
        overflow-y: auto;
        /* Permet de scroller */
    }

    .nav-links.nav-active {
        transform: translateX(0);
        /* On le fait glisser pour l'afficher */
    }

    /* --- 2. LES LIENS (Accueil, Contact...) --- */
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
        opacity: 1;
        /* On force la visibilité */
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.2rem;
        color: #333;
        border-bottom: 1px solid #f0f0f0;
        /* Petite ligne de séparation */
        width: 100%;
    }

    /* --- 3. LE SOUS-MENU (Nos Services) - CORRECTION CHEVAUCHEMENT --- */

    /* --- 3. LE SOUS-MENU (Nos Services) --- */

    /* Par défaut : Caché */
    .dropdown-content {
        display: none;
    }

    /* Désactive le survol */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    /* QUAND LE JS AJOUTE LA CLASSE "open" */
    .dropdown.open .dropdown-content {
        display: flex !important;
        flex-direction: column;
        position: relative !important;
        /* Pousse le contenu */
        top: 0 !important;
        width: 100%;
        background-color: #f9f9f9;
        box-shadow: none !important;
        transform: none !important;
    }

    /* --- 4. LE BOUTON DEVIS --- */
    .nav-links .btn-devis {
        display: block;
        width: 80% !important;
        /* Largeur contrôlée */
        margin: 30px auto !important;
        /* Centré avec de l'espace autour */
        background-color: var(--primary-color);
        color: white !important;
        border-radius: 50px;
        text-align: center;
        padding: 15px 0;
        border: none;
    }

    /* --- 5. LE BURGER (Icône) --- */
    .burger {
        display: block;
        cursor: pointer;
        z-index: 999;
        /* Doit être au-dessus du menu blanc */
        position: relative;
        /* Pour que le z-index fonctionne */
    }
}

/* ============================================================
   NOUVEAU STYLE : CONTENU DE LA PAGE D'ACCUEIL UNIQUEMENT
   (Ne touche pas au header ni au menu)
   ============================================================ */

/* 1. HERO (Image de fond + Texte) */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 10px;
    background-color: #3498db;
    color: var(--white);
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Couleur bleue dans le texte */
.text-highlight {
    color: grey;
}

/* Bouton spécifique au Hero (plus gros) */
.hero .btn-devis {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* 2. CARTES "POURQUOI NOUS CHOISIR" (Icônes) */
.features-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

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

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

/* 3. CARTES SERVICES (Images + Texte) */
.services-home {
    text-align: center;
    margin-bottom: 3rem;
}

.services-home h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.service-card h3 {
    margin: 15px 15px 5px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.service-card p {
    padding: 0 15px 20px;
    font-size: 0.9rem;
    color: #666;
}

.service-link-container {
    margin-top: 30px;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* 4. APPEL D'URGENCE (Bandeau sombre en bas) */
.cta-urgent {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.cta-urgent h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-urgent p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-call {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.btn-call:hover {
    background-color: #2980b9;
}


/* --- WIDGETS FLOTTANTS (Avis, Cookies, Whatsapp) --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.google-review-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px 35px 10px 15px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #4285F4;
    z-index: 998;
}

.g-logo {
    color: #4285F4;
    font-size: 24px;
}

.g-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.g-score {
    font-weight: bold;
    color: #333;
}

.stars {
    color: #f1c40f;
}

.g-link {
    font-size: 0.75rem;
    color: #777;
    text-decoration: underline;
}

.g-stars-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.close-badge {
    position: absolute;
    top: 5px;
    right: 8px;
    cursor: pointer;
    color: #aaa;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    color: white;
    padding: 15px;
    display: none;
    justify-content: center;
    gap: 20px;
    z-index: 10000;
}

.cookie-banner.show {
    display: flex;
}

.cookie-btn-group {
    display: flex;
    gap: 10px;
}

.btn-accept {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-refuse {
    background: transparent;
    border: 1px solid #ccc;
    color: #ccc;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* Styles Mobile pour les Widgets */
@media screen and (max-width: 768px) {
    .cookie-banner {
        left: 15px;
        right: 15px;
        bottom: 20px;
        width: auto;
        flex-direction: column;
        text-align: center;
        padding: 20px;
        background: #1F3A5D;
        border-radius: 15px;
        z-index: 20000;
    }

    .cookie-btn-group {
        width: 100%;
        justify-content: space-between;
    }

    .btn-accept,
    .btn-refuse {
        flex: 1;
        padding: 10px;
    }

    .whatsapp-float {
        bottom: 90px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .google-review-badge {
        bottom: 15px;
        right: 15px;
        padding: 8px 15px;
        border-radius: 50px;
        background: #1F3A5D;
        color: white;
        border: none;
    }

    .g-logo,
    .g-link {
        display: none;
    }

    .g-score {
        color: white;
        font-size: 1.1rem;
    }

    .close-badge {
        top: -5px;
        right: -5px;
        background: #444;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Style simple pour les pages autres que l'accueil (CGU, Contact) */
.legal-container,
.form-container {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   STYLE PAGE DÉTAIL (Ouverture de porte)
   ============================================ */

/* Ajustement du Hero pour les pages internes (moins haut que l'accueil) */
.page-hero {
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    /* L'image de fond est gérée dans le HTML via style="..." pour changer selon la page */
}

/* Conteneur global de la section détail */
.service-detail-section {
    padding: 2rem 0;
    margin-bottom: 3rem;
}

/* Mise en page Flexbox (Texte | Image) */
.service-split-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* Centré verticalement */
    gap: 50px;
}

/* Colonne Texte */
.service-text-col {
    flex: 1;
    min-width: 300px;
}

.service-text-col h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

/* Boites pour les méthodes (Ouverture fine...) */
.method-box {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.method-box:hover {
    transform: translateX(10px);
    /* Petit effet de glissement */
    background: #eef7fc;
    /* Devient bleuté au survol */
}

.method-box h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.method-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    margin-left: 28px;
    /* Aligné sous le titre */
}

/* Liste à puces "Rassurante" */
.assurance-list {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.assurance-list li {
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.assurance-list i {
    color: #27ae60;
    /* Vert pour la confiance */
}

/* Colonne Image */
.service-img-col {
    flex: 1;
    min-width: 300px;
    position: relative;
    /* Pour le badge flottant */
}

.service-img-col img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Petite rotation légère pour le style moderne */
    transform: rotate(1deg);
    border: 5px solid white;
}

/* Badge "Artisan Qualifié" sur l'image */
.floating-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ajustement Mobile */
@media screen and (max-width: 768px) {
    .service-split-container {
        flex-direction: column;
        /* L'image passe sous le texte */
        gap: 30px;
    }

    .floating-badge {
        right: 0;
        bottom: -15px;
    }

    .service-img-col img {
        transform: none;
        /* Pas de rotation sur mobile */
    }
}

/* ============================================
   STYLE SPÉCIFIQUE REMPLACEMENT SERRURE
   ============================================ */

/* Grille des marques (Fichet, Bricard...) */
.brands-container {
    margin: 25px 0;
}

.brands-container p {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brands-grid span {
    background-color: white;
    border: 1px solid #ddd;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Variante du badge flottant en Bleu (au lieu du vert par défaut) */
.floating-badge.badge-blue {
    background-color: var(--secondary-color);
    /* Bleu foncé */
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.4);
}

/* Modification légère du CTA pour cette page (Fond gris clair) */
.cta-urgent[style*="background-color: #f9f9f9"] {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* ============================================
   STYLE SPÉCIFIQUE REPRODUCTION CLÉS
   ============================================ */

/* Image de fond */
.hero-bg-cles {
    background-color: var(--primary-color);
}

/* Boîte d'alerte pour la carte de propriété */
.info-box-highlight {
    background-color: #fff3cd;
    /* Fond jaune clair */
    border-left: 5px solid #ffc107;
    /* Bordure jaune */
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.info-box-highlight h4 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box-highlight p {
    color: #856404;
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   STYLE SPÉCIFIQUE PAGE CONTACT
   ============================================ */

/* 1. Image de fond Hero */
.hero-bg-contact {
    /* Mettre une image de téléphone, de clavier ou de carte */
    background-color: var(--primary-color);
}

/* 2. Mise en page globale */
.contact-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    /* Fond très léger pour détacher la carte blanche */
}

.contact-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* 3. Carte des coordonnées (à gauche) */
.contact-info-card {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #666;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

/* Liste des infos avec icônes */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: #eef7fc;
    /* Bleu très pâle */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-cta-box {
    margin-top: 40px;
}

.btn-full-width {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
}

/* 4. Carte Google Maps (à droite) */
.contact-map-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    min-height: 400px;
    /* Hauteur minimale de la carte */
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   STYLE PAGE DEVIS (NOUVEAU)
   ============================================ */

/* 1. Image de fond Hero (Devis) */
.hero-bg-devis {
    /* Assure-toi d'avoir une image devis-hero.jpg dans ton dossier images */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/devis-hero.jpg') no-repeat center center/cover !important;
}

/* 2. Mise en page (Colonnes) */
.quote-section {
    padding: 4rem 0;
    background-color: #f4f6f8;
    /* Fond gris très clair global */
}

.quote-grid-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

/* --- Colonne Gauche (Infos) --- */
.quote-info-col {
    flex: 1;
    min-width: 300px;
}

.quote-info-col h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.quote-benefits {
    list-style: none;
    margin: 30px 0;
}

.quote-benefits li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.quote-benefits i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.quote-benefits strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2px;
}

.quote-benefits p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Boite Urgence (Rouge clair) */
.urgent-box {
    background-color: #fff5f5;
    border: 1px solid #ffcccc;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.urgent-box h3 {
    color: #c0392b;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.urgent-box p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.btn-urgent-call {
    display: inline-block;
    background-color: #c0392b;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-urgent-call:hover {
    background-color: #a93226;
}

/* --- Colonne Droite (Formulaire) --- */
.quote-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.styled-form .form-group {
    margin-bottom: 20px;
}

.styled-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Champs avec Icônes */
.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.styled-form input,
.styled-form select,
.styled-form textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    /* Padding à gauche pour l'icône */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
    background-color: #fbfbfb;
}

/* Le textarea n'a pas d'icône, on retire le padding gauche */
.styled-form textarea {
    padding: 15px;
    height: 120px;
    resize: vertical;
}

.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: white;
}

/* Bouton Envoyer */
.btn-submit-quote {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit-quote:hover {
    background-color: #2980b9;
}

/* Ajustement Mobile */
@media screen and (max-width: 768px) {
    .quote-grid-container {
        flex-direction: column;
        /* Un sous l'autre sur mobile */
        gap: 40px;
    }

    .quote-form-wrapper {
        padding: 25px;
    }
}

/* ============================================
   STYLE PAGE RÉALISATIONS (PORTFOLIO)
   ============================================ */

/* 1. Image de fond Hero */
.hero-bg-realisations {
    /* Assure-toi d'avoir une image realisations-hero.jpg */
    background-color: var(--primary-color);
}

/* 2. Titres centrés */
.section-title-center {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.section-subtitle-center {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* 3. Section Portfolio & Grille */
.portfolio-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    /* Responsive : colonnes automatiques */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 4. Carte Projet */
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    /* Pour que l'image ne dépasse pas */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.project-card:hover {
    transform: translateY(-5px);
    /* Petit effet levier au survol */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Conteneur Image + Badge (VERSION CORRIGÉE : IMAGE ENTIÈRE) */
.project-img-wrapper {
    position: relative;
    height: 500px;
    /* On augmente la hauteur car une porte est verticale */
    background-color: #f9f9f9;
    /* Fond gris clair si la photo ne remplit pas tout */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* MAGIQUE : Affiche l'image en entier sans couper */
    transition: transform 0.5s;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.02);
    /* Zoom très léger pour ne pas sortir du cadre */
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
    /* Zoom léger sur l'image au survol */
}

/* Badges (Avant / Après) */
.project-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.tag-before {
    background-color: #e74c3c;
    /* Rouge */
}

.tag-after {
    background-color: #27ae60;
    /* Vert */
}

.tag-info {
    background-color: var(--primary-color);
    /* Bleu */
}

/* Description sous l'image */
.project-desc {
    padding: 20px;
}

.project-desc h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.project-desc p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}