/* ==========================================================================
   1. VARIABLES & SYSTÈME DE DESIGN (FONDATIONS DU SITE)
   ========================================================================== */
:root {
    /* Couleurs Identité Bâti Evolution */
    --primary-blue: #004a99;
    --dark-blue: #003366;
    --accent-gold: #ffd700;
    --success-green: #28a745;
    --danger-red: #dc3545;
    
    /* Couleurs de Structure & Neutres */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: #dfe6e9;

    /* Typographie Charte Graphique */
    --font-corporate: 'Segoe UI', system-ui, -apple-system, sans-serif;
    
    /* Système d'ombres (Élévation Premium) */
    --shadow-soft: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.06);
    
    /* Rayons de courbure (Border-radius) */
    --radius-lg: 30px;
    --radius-md: 18px;
    --radius-sm: 10px;

    /* Paramètres de Transition */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   2. RÉINITIALISATION ET BASE (RESET & FOUNDATIONS)
   ========================================================================== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: var(--bg-light);
    font-family: var(--font-corporate);
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6; 
    overflow-x: hidden;
}

/* Base Typographie */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   3. NAVIGATION (STICKY & CHARTE GRAPHIQUE)
   ========================================================================== */
.barre-nav {
    background-color: var(--primary-blue);
    height: 90px;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.logo-nav {
    color: var(--bg-white);
    font-size: 1.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 40px;
}

.menu li a {
    color: var(--bg-white);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 0;
    position: relative;
    transition: var(--transition-smooth);
}

.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    background-color: var(--accent-gold);
    left: 0;
    bottom: 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.menu li a:hover {
    color: var(--accent-gold);
}

.menu li a:hover::after {
    width: 100%;
}

.menu-toggle { display: none; }
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 7px;
}
.hamburger span {
    width: 35px;
    height: 4px;
    background: var(--bg-white);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   4. SECTION BANNIÈRE (HERO PARALLAXE)
   ========================================================================== */
.banniere-magasin {
    width: 100%;
    height: 550px;
    overflow: hidden;
    position: relative;
    background: var(--dark-blue);
}

.banniere-magasin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 12s ease;
}

.banniere-magasin:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   5. CARTE PRINCIPALE ET LOGO GÉANT
   ========================================================================== */
.carte {
    width: 94%;
    max-width: 1300px;
    margin: -120px auto 100px auto; 
    background: var(--bg-white);
    padding: 80px 60px 40px 60px; 
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    z-index: 100;
}

/* ==========================================================================
   6. SECTION À PROPOS (MINIMALISTE POUR EFFET WAOUH SUR LES SERVICES)
   ========================================================================== */
.section-texte {
    text-align: left;
    max-width: 900px; 
    margin: 0 auto; 
    padding: 25px 35px; 
    background: #fdfdfd;
    border-radius: var(--radius-md);
    border-left: 6px solid var(--primary-blue); 
    box-shadow: var(--shadow-inner);
}

.section-texte h2 {
    color: var(--primary-blue);
    font-size: 1.4rem; 
    margin-bottom: 10px;
    font-weight: 800;
}

.section-texte p {
    font-size: 0.95rem; 
    color: #34495e;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================================================================
   7. BOUTONS D'ACTION (CTA PREMIUM)
   ========================================================================== */
.actions-rapides {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0; 
    flex-wrap: wrap; 
}

.mon-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 22px 50px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    white-space: normal; 
}

.btn-appel {
    background: linear-gradient(135deg, var(--success-green), #1e7e34);
    color: white;
}

.btn-appel .phone-number {
    white-space: nowrap;
}

.btn-devis {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
}

.mon-bouton:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    filter: brightness(1.1);
}

/* ==========================================================================
   8. SERVICES - LIENS VERS PAGES DÉDIÉES & VISUELS TRONQUÉS
   ========================================================================== */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    margin: 30px 0 60px 0; 
}

.service-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none; 
    color: inherit;
}

.service-image {
    width: 100%;
    height: 200px; 
    overflow: hidden;
    position: relative;
    background: var(--dark-blue);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-content {
    padding: 30px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-12px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.service-item:hover .service-image img {
    transform: scale(1.1);
}

.service-item i {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.service-item:hover i {
    color: var(--dark-blue);
}

.service-item h3 {
    font-size: 1.6rem; 
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 800;
}

.service-item li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #4a4a4a;
}

.service-item li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-green);
}

.service-link {
    margin-top: auto;
    padding-top: 20px;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.service-item:hover .service-link {
    color: var(--accent-gold);
}

/* ==========================================================================
   9. INFOS PRATIQUES (DÉPARTEMENTS SIMPLIFIÉS)
   ========================================================================== */
.infos-pratiques {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin: 40px 0; 
    flex-wrap: wrap;
}

.info-bloc {
    flex: 1;
    min-width: 320px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.info-bloc h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    border-bottom: 5px solid var(--accent-gold);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

/* ==========================================================================
   10. FORMULAIRE DE CONTACT PROFESSIONNEL
   ========================================================================== */
.formulaire-wrapper {
    background: linear-gradient(145deg, #ffffff, #f1f2f6);
    padding: 60px; 
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-inner);
    border: 1px solid var(--border-color);
    margin-top: 60px;
}

.formulaire-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 750px;
    margin: 0 auto;
}

.formulaire-contact input, 
.formulaire-contact textarea {
    padding: 18px 25px;
    border: 2px solid #ced4da;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition-fast);
    outline: none;
    background: #fff;
}

.formulaire-contact input:focus, 
.formulaire-contact textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 5px rgba(0, 74, 153, 0.1);
}

/* ==========================================================================
   11. MEDIA QUERIES (OPTIMISATION MOBILE COMPLÈTE)
   ========================================================================== */

@media (max-width: 1024px) {
    .carte { padding: 40px 30px; }
}

@media (max-width: 992px) {
    .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .barre-nav { padding: 0 25px; height: 80px; }
    
    .hamburger { display: flex; }
    
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; left: 0; width: 100%;
        background-color: var(--primary-blue);
        padding: 40px 0;
        text-align: center;
        gap: 25px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    }
    
    .menu-toggle:checked ~ .menu { display: flex; }

    .banniere-magasin { height: 350px; }
    
    .carte {
        width: 96%;
        margin-top: -60px;
        /* Espace calculé pour le bandeau mobile */
        padding: 100px 15px 25px 15px; 
    }

    .section-texte {
        padding: 15px; 
    }

    .actions-rapides { flex-direction: column; gap: 15px; }
    .mon-bouton { 
        width: 100%; 
        padding: 18px 20px; 
        font-size: 1.1rem; 
    }

    .services { grid-template-columns: 1fr; }
    .infos-pratiques { flex-direction: column; gap: 30px; }
    
    .formulaire-wrapper { padding: 30px 15px; }
}

/* ==========================================================================
   12. SÉPARATEURS & FOOTER
   ========================================================================== */
.separateur {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #dfe6e9, transparent);
    margin: 30px 0; 
}

.footer {
    padding: 50px 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ==========================================================================
   13. ANIMATIONS SPÉCIFIQUES POUR LES BANDEAUX DÉFILANTS ALTERNATIFS
   ========================================================================== */

/* --- Version Bureau --- */
.bandeau-promos-container {
    background-color: var(--accent-gold);
    height: 48px; 
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-soft);
    z-index: 101; 
}

.bandeau-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-sizing: border-box;
    padding: 0 20px;
    animation: slideBalayage 16s ease-in-out infinite;
    animation-fill-mode: both;
}

.bandeau-slide span {
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

.bandeau-promos-container:hover .bandeau-slide {
    animation-play-state: paused;
}

.bandeau-2 {
    animation-delay: 8s;
    cursor: pointer; 
}

.bandeau-2:hover {
    color: var(--danger-red);
    text-decoration: underline;
}

@keyframes slideBalayage {
    0% { transform: translateX(100%); opacity: 0; }
    5% { transform: translateX(0); opacity: 1; }
    45% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(-100%); opacity: 0; }
}

/* --- Version Mobile : Positionnée après pour surcharger efficacement --- */
@media (max-width: 768px) {
    .bandeau-promos-container {
        height: auto;
        min-height: 70px; /* Boîte plus grande pour le texte sur plusieurs lignes */
        padding: 10px 0;
    }
    .bandeau-slide {
        font-size: 0.75rem; /* Police drastiquement réduite */
        padding: 5px 15px;
    }
    .bandeau-slide span {
        white-space: normal; /* Autorise le retour à la ligne automatique ! */
        display: block;
        line-height: 1.4; /* Espace entre les lignes */
    }
}