/* =========================================
   1. RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; min-height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

:root { --gold: #d4af37; }

/* =========================================
   2. EFFET WAOOOO (LOADER PORTES) - PRIORITÉ ABSOLUE
   ========================================= */
#loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    /* Z-Index EXTRÊME pour être sûr de passer devant tout */
    z-index: 99999 !important;
    display: flex;
    pointer-events: all; /* Bloque les clics pendant le chargement */
}

/* Les deux portes noires */
.loader-section { 
    width: 50%; height: 100%; 
    background: #0a0a0a; 
    position: relative; 
    z-index: 100;
    transition: transform 1.2s cubic-bezier(0.8, 0, 0.2, 1);
}

.loader-section.section-left { border-right: 1px solid #d4af37; }
.loader-section.section-right { border-left: 1px solid #d4af37; }

/* Le logo au milieu */
.loader-logo-container { 
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%);
    z-index: 101;
    transition: opacity 0.3s ease, transform 0.5s ease; 
}

.loader-logo { 
    width: 300px; max-width: 80vw;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); 
    animation: pulseLogo 2s infinite;
}

@keyframes pulseLogo { 
    0% { transform: scale(1); opacity: 0.8; } 
    50% { transform: scale(1.05); opacity: 1; } 
    100% { transform: scale(1); opacity: 0.8; } 
}

/* --- ETAT OUVERT (Quand JS ajoute la classe .loaded) --- */
.loaded #loader-wrapper {
    pointer-events: none; /* Laisse passer les clics une fois ouvert */
}
.loaded .loader-section.section-left { transform: translateX(-100%); }
.loaded .loader-section.section-right { transform: translateX(100%); }
.loaded .loader-logo-container { opacity: 0; transform: translate(-50%, -50%) scale(5); }


/* =========================================
   3. HEADER & MENU
   ========================================= */
#main-header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 30px 50px;
    /* Z-Index élevé mais SOUS le loader */
    z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    mix-blend-mode: difference;
}
.logo-header { 
    font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.5rem;
    text-decoration: none; color: #fff; letter-spacing: 2px; text-transform: uppercase; 
}

.menu-btn { cursor: pointer; display: flex; align-items: center; gap: 15px; }
.btn-text { font-family: 'Oswald', sans-serif; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.btn-lines { width: 40px; height: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.btn-lines span { display: block; width: 100%; height: 2px; background: #fff; transition: 0.3s; }
.menu-btn.open .btn-lines span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open .btn-lines span:nth-child(2) { transform: rotate(-45deg) translate(5px, -6px); }

/* MENU PLEIN ÉCRAN (CORRECTION SCROLL INTEGRÉE) */
#fullscreen-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.98); 
    backdrop-filter: blur(10px);
    z-index: 900; 
    
    /* MODIF FLEX POUR PERMETTRE LE SCROLL */
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start; 
    overflow-y: auto; /* Active le scroll vertical */
    
    opacity: 0; visibility: hidden; 
    transition: opacity 0.4s ease, visibility 0.4s;
}
#fullscreen-nav.active { opacity: 1; visibility: visible; }

.nav-content { 
    text-align: center; 
    display: flex; flex-direction: column; gap: 20px; 
    margin: auto 0; 
    padding: 120px 0 50px 0; 
}

.nav-group { display: flex; flex-direction: column; gap: 10px; }
.nav-divider { width: 50px; height: 1px; background: #444; margin: 10px auto; }

/* UNIFICATION DES LIENS (Police Oswald partout) */
#fullscreen-nav .nav-link { 
    font-family: 'Oswald', sans-serif !important;
    color: #ccc !important; 
    text-decoration: none !important; 
    font-size: 1.6rem !important; /* Taille Desktop */
    text-transform: uppercase !important;
    transition: 0.3s; 
    font-weight: 400 !important;
    letter-spacing: 1px;
}
#fullscreen-nav .nav-link:hover { color: #fff !important; transform: scale(1.05); }

.highlight-link { 
    border: 1px solid #fff !important; padding: 10px 30px !important; 
    margin-top: 15px !important; display: inline-block;
}
.highlight-link:hover { background: #fff !important; color: #000 !important; }

.nav-footer { 
    width: 100%; text-align: center; margin-top: 40px; padding-bottom: 20px;
}
.admin-discrete-link { font-size: 0.8rem; color: #222; text-decoration: none; text-transform: uppercase; font-family: 'Oswald', sans-serif; letter-spacing: 1px; }

/* =========================================
   4. TICKER / BARRE URGENCE
   ========================================= */
#emergency-bar {
    position: fixed; top: 90px; left: 0; width: 100%; height: 50px;
    z-index: 800; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(5px);
    border-bottom: 2px solid var(--gold); display: flex; justify-content: center; align-items: center; gap: 15px; text-decoration: none;
}
.emergency-text { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.9rem; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
.emergency-separator { color: var(--gold); font-size: 1.2rem; }
.emergency-phone { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--gold); letter-spacing: 1px; animation: pulseGold 2s infinite; }
@keyframes pulseGold {
    0% { text-shadow: 0 0 0 rgba(212, 175, 55, 0); transform: scale(1); }
    50% { text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); transform: scale(1.05); }
    100% { text-shadow: 0 0 0 rgba(212, 175, 55, 0); transform: scale(1); }
}

/* =========================================
   5. GENERAL PAGES & VIDEO
   ========================================= */
.hero-wrapper { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 1; /* Tout en bas */
    overflow: hidden;
    background: #000; 
}
#heroVideo {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.3);
    min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover;
    transition: transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); filter: brightness(0.4);
}
.loaded-content #heroVideo { transform: translate(-50%, -50%) scale(1); filter: brightness(0.8); }

.video-bg-fixed { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; object-fit: cover; }
.full-glass-layer {
    position: relative; z-index: 1; min-height: 100vh; width: 100%;
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding-top: 170px; padding-bottom: 80px; padding-left: 5%; padding-right: 5%;
}
.content-wrapper { max-width: 1200px; margin: 0 auto; }
.page-title {
    font-family: 'Oswald', sans-serif; font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #fff; text-transform: uppercase; margin-bottom: 40px;
    border-left: 5px solid var(--gold); padding-left: 30px; line-height: 1;
}
.page-text { font-size: clamp(1rem, 1.2vw, 1.3rem); line-height: 1.8; color: #fff; text-align: justify; margin-bottom: 30px; }
.page-text a { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }

/* =========================================
   6. CARDS & FOOTER & IMAGES
   ========================================= */
.intro-block { font-size: 1.25rem; font-weight: 300; line-height: 1.6; border-left: 4px solid var(--gold); padding-left: 25px; margin-bottom: 50px; color: #fff; }

.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin: 40px 0; }

/* --- CORRECTION MAJEURE : CONTENEUR CARTE --- */
.service-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 25px; 
    transition: transform 0.3s, border-color 0.3s; 
    
    /* Flexbox pour alignement hauteur */
    display: flex;
    flex-direction: column;
    height: 100%;
    
    /* SÉCURITÉ : Empêche l'image de déborder */
    overflow: hidden;
}

.service-card:hover { transform: translateY(-5px); border-color: var(--gold); background: rgba(255, 255, 255, 0.08); }
.service-title { font-family: 'Oswald', sans-serif; color: var(--gold); text-transform: uppercase; font-size: 1.1rem; margin-bottom: 10px; }

/* --- CORRECTION MAJEURE : IMAGE DANS LA CARTE --- */
.card-img-top {
    display: block;
    width: 100%;         /* FORCE l'image à respecter la largeur */
    max-width: 100%;     /* Sécurité supplémentaire */
    height: 200px;       /* Hauteur fixe pour que tout soit aligné */
    object-fit: cover;   /* Recadre l'image proprement sans déformer */
    margin-bottom: 20px; /* Espace sous l'image */
    border-radius: 2px;
    border: 1px solid #333;
    transition: 0.3s;
}

/* Petit effet sympa au survol */
.service-card:hover .card-img-top {
    filter: brightness(1.1);
    border-color: var(--gold);
}

.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 40px; }
.check-list li { position: relative; padding-left: 30px; color: #fff; }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: var(--gold); font-size: 1.2rem; }

.site-footer { background: #080808; border-top: 1px solid #222; padding: 60px 50px; font-size: 0.95rem; position: relative; z-index: 10; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1400px; margin: 0 auto; }
.footer-col h4 { font-family: 'Oswald', sans-serif; color: #fff; text-transform: uppercase; margin-bottom: 25px; font-size: 1.3rem; border-bottom: 2px solid #333; padding-bottom: 10px; display: inline-block; }
.footer-col p, .footer-col ul li { color: #ffffff; line-height: 1.9; margin-bottom: 10px; }
.footer-col a { color: #ffffff; text-decoration: none; transition: 0.3s; opacity: 0.8; }
.footer-col a:hover { color: var(--gold); opacity: 1; padding-left: 5px; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid #222; text-align: center; color: #fff; opacity: 0.5; font-size: 0.85rem; }

/* =========================================
   7. MOBILE & RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    #main-header { padding: 20px; }
    .logo-header { font-size: 1.2rem; }
    #emergency-bar { top: 70px; flex-direction: column; height: 60px; gap: 2px; padding: 5px 0; }
    .full-glass-layer { padding-top: 150px; padding-left: 20px; padding-right: 20px; }
    .page-title { border-left-width: 3px; padding-left: 15px; margin-bottom: 30px; }
    .check-list { grid-template-columns: 1fr; }
    .emergency-separator { display: none; }
    .site-footer { text-align: center; } 
    .footer-col a:hover { padding-left: 0; }

    /* --- MENU MOBILE : FORCE MAJEURE --- */
    #fullscreen-nav {
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 130px !important;
        padding-bottom: 50px !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch; 
        display: block !important;
    }
    .nav-content {
        display: flex; flex-direction: column; 
        gap: 15px !important;
        width: 100%;
        padding-bottom: 50px;
        margin: 0 !important; /* Reset de la marge auto du desktop */
    }
    #fullscreen-nav .nav-link {
        font-size: 1.2rem !important; /* ~19px */
        line-height: 1.4 !important;
        color: #e0e0e0 !important;
        display: block;
    }
    .nav-group { gap: 5px !important; }
    .nav-divider { margin: 5px auto !important; width: 20px !important; opacity: 0.2; }
    .highlight-link {
        margin-top: 10px !important; padding: 10px 20px !important;
        font-size: 1rem !important; width: 80%;
        margin-left: auto; margin-right: auto;
    }
}

/* =========================================
   8. AJOUTS FINAUX & SEO BLOCKS (ETAPE 4)
   ========================================= */

/* Liste des villes (Home) */
.seo-city-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 5px;
    color: #ccc;
    transition: color 0.3s;
}
.seo-city-list li:hover {
    color: var(--gold);
}

/* Formulaire Contact - Focus et Beauté */
input:focus, textarea:focus, select:focus {
    border-color: #d4af37 !important;
    background: rgba(0,0,0,0.8) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Bouton Contact au survol */
button[type="submit"]:hover {
    background: #fff !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

/* Fix Mobile pour le texte SEO */
@media (max-width: 768px) {
    .content-wrapper p {
        text-align: left !important; /* Plus lisible sur mobile */
        text-align-last: left !important;
    }
}