/* ==========================================================================
   1. VARIABLES & CONFIGURATION GLOBALE
   ========================================================================== */
:root {
    --color-bg-dark: #23272A;
    --color-bg-card: #1e2124;
    --color-bg-header: rgba(34, 38, 41, 0.95);
    --color-text-white: #FFFFFF;
    --color-text-light: #dadce0;
    --color-text-muted: #b9bbbe;
    --color-text-gray: #727586;
    --color-primary-orange: #D86722;
    --color-primary-orange-hover: #f37e3a;
    --font-main: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ==========================================================================
   2. EN-TÊTE (HEADER) ET SOUS-MENUS DÉROULANTS (DROPDOWN)
   ========================================================================== */
.main-header {
    background-color: var(--color-bg-header);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
}

.logo-img {
    height: 65px;
    width: auto;
    display: block;
}

/* Alignement horizontal du menu principal */
.nav-menu > ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    color: var(--color-text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-menu a:hover, 
.nav-menu a.active {
    color: var(--color-primary-orange);
}

.nav-menu .arrow {
    font-size: 10px;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Gestion du conteneur parent du dropdown */
.nav-menu li.dropdown {
    position: relative;
    padding: 20px 0; /* Zone de confort pour ne pas fermer le menu en bougeant la souris */
}

/* Style de la boîte cachée par défaut */
.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: #1c1e22;
    min-width: 240px;
    list-style: none;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-menu .dropdown-menu li {
    width: 100%;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu .dropdown-menu a:hover {
    background-color: rgba(216, 103, 34, 0.1);
    color: var(--color-primary-orange);
}

/* Déclenchement au survol (Desktop) */
@media (min-width: 769px) {
    .nav-menu li.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav-menu li.dropdown:hover .dropdown-toggle .arrow {
        transform: rotate(180deg);
        color: var(--color-primary-orange);
    }

        /* Cache le bouton burger par défaut sur les grands écrans */
    .burger-menu {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1000;
    }

    .burger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #FFFFFF; /* Couleur des barres */
        margin: 5px 0;
        transition: 0.3s ease;
    }
}

/* Bouton Contact principal */
.nav-menu a.nav-btn {
    background-color: var(--color-primary-orange);
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    transition: background-color 0.3s ease;
}

.nav-menu a.nav-btn:hover {
    background-color: var(--color-primary-orange-hover);
}

/* ==========================================================================
   3. BOUTONS STYLISÉS (BOUTONS D'ACTION)
   ========================================================================== */
.cta-button {
    display: inline-block;
    background-color: var(--color-primary-orange);
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--color-primary-orange-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--color-text-white);
    color: var(--color-text-white);
    text-decoration: none;
    padding: 13px 33px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--color-text-white);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. SECTION 1 : BIENVENUE (HERO)
   ========================================================================== */
.section-bienvenue {
    background: linear-gradient(rgba(35, 39, 42, 0.60), rgba(35, 39, 42, 0.8)), 
                url('Images/background.jpeg') no-repeat center center/cover;
    min-height: 75vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.section-bienvenue h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-bienvenue .lead {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--color-text-light);
}

.welcome-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   5. SECTION 2 : SERVICES (GRILLE DE CARTES)
   ========================================================================== */
.section-services {
    background-color: var(--color-bg-card);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-text-white);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--color-text-gray);
    font-size: 1.1rem;
}

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

.service-card {
    background-color: var(--color-bg-dark);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary-orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-text-white);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: var(--color-primary-orange);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--color-primary-orange-hover);
}

/* ==========================================================================
   6. SECTION 3 : À PROPOS
   ========================================================================== */
.section-apropos {
    background-color: var(--color-bg-dark);
}

.apropos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.apropos-content .subtitle {
    color: var(--color-primary-orange);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.apropos-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.apropos-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.apropos-commitments {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.commitment-item {
    background-color: var(--color-bg-card);
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid var(--color-primary-orange);
    font-size: 0.95rem;
}

.apropos-image-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
}

/* ==========================================================================
   7. PIED DE PAGE (FOOTER)
   ========================================================================== */
.main-footer {
    background-color: #1d1e20;
    padding: 60px 16px 20px 16px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1224px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--color-primary-orange);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-text-white);
}

.footer-link {
    color: var(--color-primary-orange) !important;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--color-primary-orange-hover) !important;
}

.footer-bottom {
    max-width: 1224px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--color-text-gray);
    font-size: 14px;
}

/* ==========================================================================
   8. BULLE FLATANTE WHATSAPP
   ========================================================================== */
.whats-app-bubble {
    position: fixed;
    z-index: 999;
    right: 20px;
    bottom: 24px;
    background-color: #25D366;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whats-app-bubble:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* ==========================================================================
   9. ADAPTATION RESPONSIVE (SMARTPHONES & TABLETTES)
   ========================================================================== */
@media (max-width: 992px) {
    .apropos-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .section-bienvenue h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    
    /* 1. ON FORCE L'ALIGNEMENT HORIZONTAL DU HEADER */
    .header-container {
        display: flex !important;
        flex-direction: row !important; /* Aligne le logo et le burger sur la même ligne */
        justify-content: space-between !important; /* Pousse le logo à gauche et le burger à droite */
        align-items: center !important; /* Centre verticalement les deux éléments */
        padding: 10px 20px !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 2. ON CORRIGE LA TAILLE DU LOGO SUR MOBILE POUR QU'IL NE PRENNE PAS TOUTE LA PLACE */
    .logo {
        display: flex;
        align-items: center;
    }
    
    .logo-img {
        height: 45px !important; /* Réduit légèrement le logo sur mobile pour laisser de l'air */
        width: auto !important;
    }

    /* 3. LE BOUTON BURGER PROPRE */
    .burger-menu {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 5px; /* Espace régulier entre les barres */
        background: none !important;
        border: none !important;
        cursor: pointer;
        padding: 10px;
        z-index: 1000;
        margin: 0; /* Supprime les marges parasites */
    }

    .burger-menu span {
        display: block !important;
        width: 28px; /* Largeur standard d'un burger */
        height: 3px;
        background-color: var(--color-text-white, #FFFFFF);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Animation en X */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* 4. LE MENU QUI SE DÉROULE EN DESSOUS */
    .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100%; /* S'ouvre pile sous le header */
        left: 0;
        width: 100%;
        background-color: #1E2124;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        display: block !important; 
    }
    
    .nav-menu > ul {
        flex-direction: column !important;
        width: 100%;
        gap: 15px;
        text-align: center;
        padding: 0;
        margin: 0;
    }
    
    .nav-menu li.dropdown {
        padding: 5px 0;
        width: 100%;
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background-color: rgba(0,0,0,0.15);
        margin-top: 10px;
        width: 100%;
        display: none !important;
    }

    /* [CORRECTION SECTEUR 4.2] ON L'AFFICHE AU CLIC (FOCUS) OU À LA PRESSION (ACTIVE) */
    .nav-menu li.dropdown:focus-within .dropdown-menu,
    .nav-menu li.dropdown.dropdown-menu {
        display: block !important;
    }

    /* On utilise focus-within, mais SANS le :active qui provoquait le clignotement */
    .nav-menu li.dropdown:focus-within .dropdown-menu {
            display: block !important;
        }
    /* ... Reste de tes styles mobiles (bienvenue, h1, h2, etc.) ... */
    .section-bienvenue h1 { font-size: 2.2rem; }
    .section-bienvenue .lead { font-size: 1.1rem; }
    .section-header h2 { font-size: 2rem; }
    .apropos-content h2 { font-size: 2rem; }
}

/* ==========================================================================
   10. PAGE CONTACT & FORMULAIRE
   ========================================================================== */
.section-contact {
    background-color: var(--color-bg-dark);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form .form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Ajustement de la grille des dimensions (3 colonnes) */
.dimensions-box .form-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.contact-form label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-white);
}

.contact-form label .required {
    color: var(--color-primary-orange);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-text-white);
    font-family: var(--font-main);
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-orange);
    box-shadow: 0 0 0 3px rgba(216, 103, 34, 0.2);
}

/* Style de la boîte des dimensions conditionnelles */
.dimensions-box {
    background-color: rgba(35, 39, 42, 0.6);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--color-primary-orange);
    margin-bottom: 25px;
    animation: fadeInSlide 0.4s ease forwards;
}

.dimensions-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-orange);
    margin-bottom: 15px;
}

/* Zone d'import de fichier */
.file-input-wrapper {
    background-color: var(--color-bg-dark);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.file-input-wrapper input[type="file"] {
    color: var(--color-text-muted);
    font-size: 14px;
}

.file-help {
    font-size: 12px;
    color: var(--color-text-gray);
    margin-top: 8px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit .cta-button {
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
}

/* Classe utilitaire pour masquer l'élément */
.hidden {
    display: none !important;
}

/* Animation d'affichage fluide du bloc dimensions */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour le formulaire */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 25px 20px;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .dimensions-box .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   11. STYLE DE LA GALERIE DE RÉALISATIONS
   ========================================================================== */
.section-galerie {
    background-color: var(--color-bg-dark);
}

/* Grille CSS Grid ultra-flexible */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Conteneur d'image */
.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--color-bg-card);
    aspect-ratio: 4 / 3; /* Force toutes les images à avoir la même proportion */
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre proprement sans déformer */
    transition: transform 0.4s ease;
}

/* Voile sombre et texte au survol de la souris */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 39, 42, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: var(--color-primary-orange);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--color-primary-orange);
    padding: 8px 16px;
    border-radius: 4px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

/* Comportement au survol (Desktop) */
.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* ==========================================================================
   12. SYSTÈME DE LIGHTBOX (AGRANDISSEMENT)
   ========================================================================== */
.lightbox {
    display: none !important; /* 🌟 AJOUT DE !important ICI pour forcer le masquage au chargement */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 22, 24, 0.95);
    backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* L'image agrandie */
.lightbox-content {
    max-width: 85%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: zoomInLightbox 0.3s ease;
}

/* Bouton fermer (X) */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--color-text-white);
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s;
}

.lightbox-close:hover {
    color: var(--color-primary-orange);
    transform: scale(1.1);
}

/* Légende sous l'image */
#lightbox-caption {
    margin-top: 20px;
    color: var(--color-text-light);
    font-size: 15px;
    text-align: center;
    max-width: 600px;
}

/* Animation d'ouverture de l'image */
@keyframes zoomInLightbox {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Ajustements pour mobiles */
@media (max-width: 768px) {
    .lightbox {
        padding: 20px;
    }
    .lightbox-content {
        max-width: 100%;
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}

/* ==========================================================================
   13. STRUCTURE DE LA PAGE PARTENAIRES
   ========================================================================== */
.section-partenaires {
    background-color: var(--color-bg-dark);
}

.partenaires-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Fiches Partenaires */
.partenaires-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-card {
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--color-primary-orange);
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateX(5px);
}

.partner-card h3 {
    font-size: 1.4rem;
    color: var(--color-text-white);
    margin-bottom: 10px;
}

.partner-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.partner-infos {
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 4px;
}

.partner-infos p {
    margin-bottom: 5px;
    color: var(--color-text-light);
}

.partner-infos a {
    color: var(--color-primary-orange);
    text-decoration: none;
}

.partner-infos a:hover {
    text-decoration: underline;
}

/* Zone Google Maps */
.partenaires-map-container {
    position: sticky;
    top: 110px; /* Aligné avec votre header lors du défilement */
    height: 550px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

#map-partenaires {
    width: 100%;
    height: 100%;
}

.no-partner {
    color: var(--color-text-gray);
    font-style: italic;
}

/* Adaptation Responsive */
@media (max-width: 992px) {
    .partenaires-layout {
        grid-template-columns: 1fr; /* Passe sur une seule colonne sur tablette/mobile */
        gap: 30px;
    }
    .partenaires-map-container {
        position: static;
        height: 350px;
        order: -1; /* Met la carte au-dessus de la liste sur smartphone */
    }
}
/* ==========================================================================
   14. BARRE DE FILTRAGE DES PARTENAIRES (AVEC SUGGESTIONS)
   ========================================================================== */
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    background-color: var(--color-bg-card);
    padding: 20px 30px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative; /* CRUCIAL : Permet de bloquer la boîte de suggestions sous l'input */
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.filter-bar input[type="text"],
.filter-bar select {
    padding: 10px 14px;
    background-color: var(--color-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-text-white);
    font-family: var(--font-main);
    font-size: 14px;
    height: 43px;
    width: 100%;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--color-primary-orange);
}

.filter-btn {
    background-color: var(--color-primary-orange);
    color: white;
    border: none;
    padding: 0 25px;
    height: 43px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.filter-btn:hover {
    background-color: var(--color-primary-orange-hover);
}

.filter-btn-reset {
    background-color: transparent;
    color: var(--color-text-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 15px;
    height: 43px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 13px;
    transition: color 0.2s, border-color 0.2s;
}

.filter-btn-reset:hover {
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

/* Ligne optionnelle affichant la distance calculée */
.distance-display {
    color: var(--color-primary-orange) !important;
    font-weight: 500;
    margin-top: 5px;
}

/* 🌟 STYLES COMPLÉMENTAIRES POUR LA BOÎTE DE SUGGESTIONS 🌟 */
.suggestions-container {
    position: absolute;
    top: 100%; /* S'affiche pile en dessous de l'input */
    left: 0;
    width: 100%;
    background-color: var(--color-bg-card); /* Utilise le fond de vos cartes */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000; /* Passe au-dessus de la carte OpenStreetMap */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    max-height: 220px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--font-main);
    color: var(--color-text-light);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: rgba(216, 103, 34, 0.12); /* Léger fond orange transparent */
    color: var(--color-primary-orange); /* Texte prend votre couleur orange */
}

/* Classe utilitaire pour masquer proprement la boîte */
.hidden {
    display: none !important;
}

/* Responsive pour la barre de filtres */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 15px;
    }
    .filter-bar input, .filter-bar select, .filter-btn, .filter-btn-reset {
        width: 100%;
    }
}

/* ==========================================================================
   15. STRUCTURE DU FOOTER RÉFÉRENCE
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-card); /* Devrait correspondre à votre #1a1c1e */
    padding: 60px 0 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3.footer-logo {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}
.footer-col h3.footer-logo span {
    color: var(--color-primary-orange);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--color-primary-orange);
}

.footer-about {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-socials a:hover {
    color: var(--color-primary-orange);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: padding-left 0.2s, color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--color-primary-orange);
    padding-left: 5px;
}

/* Style d'accentuation pour la page CGV */
.footer-col ul li a.highlight-legal {
    color: var(--color-text-white);
    font-weight: 500;
}
.footer-col ul li a.highlight-legal:hover {
    color: var(--color-primary-orange);
}

.footer-contact-infos li {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}
.footer-contact-infos a {
    color: var(--color-text-light) !important;
    text-decoration: none;
}
.footer-contact-infos a:hover {
    color: var(--color-primary-orange) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-gray);
    font-size: 0.8rem;
}

/* RESPONSIVE FOOTER */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   16. STYLES POUR LA PAGE DES CGV (Mise en page éditoriale)
   ========================================================================== */
.page-legal {
    padding: 80px 0;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-main);
}

.container-narrow {
    max-width: 800px; /* Format livre, beaucoup plus lisible pour des contrats */
    margin: 0 auto;
    padding: 0 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.legal-date {
    font-style: italic;
    color: var(--color-text-gray);
    font-size: 0.9rem;
}

.legal-preamble {
    background-color: var(--color-bg-card);
    padding: 20px;
    border-left: 4px solid var(--color-primary-orange);
    border-radius: 0 4px 4px 0;
    margin-bottom: 30px;
}

.legal-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 40px 0 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ==========================================================================
   18. EXTENSION SPÉCIFIQUE : PAGE DEVIS INSTANTANÉ
   ========================================================================== */
.devis-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.viewer-container {
    background-color: var(--color-bg-card);
    border: 2px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
}

#stl-viewer {
    width: 100%;
    height: 450px;
    background-color: #111315; /* Fond noir profond pour la 3D */
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#viewer-placeholder {
    color: var(--color-text-gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#model-stats {
    margin-top: 15px;
    background-color: var(--color-bg-dark);
    padding: 12px 16px;
    border-left: 4px solid var(--color-primary-orange);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-box {
    background-color: rgba(216, 103, 34, 0.05);
    border: 2px solid var(--color-primary-orange);
    padding: 25px;
    margin-top: 25px;
    text-align: center;
}

.price-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary-orange);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.price-amount .ttc {
    font-size: 12px;
    color: var(--color-text-gray);
    vertical-align: middle;
}

/* Responsive Devis */
@media (max-width: 992px) {
    .devis-layout {
        grid-template-columns: 1fr;
    }
    #stl-viewer {
        height: 350px;
    }
}

/* ==========================================================================
   Ajustements de sécurité pour mobiles et tablettes (Filtres & Index)
   ========================================================================== */

@media (max-width: 768px) {
    /* Force le nouveau sélecteur de spécialité à s'empiler proprement à 100% */
    .filter-bar select#filter-category {
        width: 100% !important;
        box-sizing: border-box;
        height: 43px;
    }

    /* Optimisation de l'affichage de la galerie d'images sur écran tactile (Évite le double clic) */
    .gallery-overlay {
        opacity: 1 !important;
        background: linear-gradient(transparent, rgba(35, 39, 42, 0.95)) !important;
        align-items: flex-end !important;
        padding-bottom: 15px;
    }
    .gallery-overlay span {
        transform: translateY(0) !important;
        font-size: 13px !important;
        padding: 4px 10px !important;
    }
}

@media (max-width: 992px) {
    /* Force la section d'estimation de l'index à passer sur 1 seule colonne sur tablette */
    .section-estimation-cta .container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Force les 3 étapes de l'explication des partenaires (index) à s'empiler verticalement */
    .section-partenaires .container > div:nth-of-type(2) {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}