/* ========================================= */
/* GLOBAL RESET & TYPOGRAPHY (Fin et Élégant) */
/* ========================================= */
:root {
    --color-dark: #050505;
    --color-light: #f5f5f5;
    --color-accent: #c8a760; /* Or subtil */
    --font-title: 'Cormorant Garamond', serif; 
    --font-body: 'Montserrat', sans-serif; 
}

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

body {
    background-color: var(--color-dark);
    color: var(--color-light);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 130px; 
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 400; 
    letter-spacing: 1px;
}

.section-padding {
    padding: 120px 5%; 
}

/* Classe pour l'OR plein */
.accent-text {
    color: var(--color-accent);
    font-weight: 600;
}

/* Titre Principal Affiné */
.hero-title, .big-title {
    font-size: 52px; 
    font-weight: 300; 
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: 3px; 
    text-transform: uppercase;
    text-align: center;
}

.section-title {
    text-align: center; 
    font-size: 40px; 
    margin-bottom: 70px; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    font-weight: 300; 
    color: var(--color-light);
}

/* ========================================= */
/* HEADER/NAVIGATION */
/* ========================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%; 
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(5, 5, 5, 0.95); 
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(200, 167, 96, 0.1);
}

.logo { padding: 0; }
.logo-img { height: 70px; width: auto; display: block; }

/* NAVIGATION BUREAU */
.nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 30px;
    font-size: 13px; 
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: all 0.3s;
}

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

/* BOUTON HAMBURGER (Caché sur PC) */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-light);
}

/* ========================================= */
/* CTA BOUTONS */
/* ========================================= */
.cta-primary, .cta-nav, .cta-secondary {
    padding: 14px 35px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
    border: none;
    box-shadow: 0 5px 15px rgba(200, 167, 96, 0.2); 
}

.cta-primary:hover {
    background-color: #fff;
    box-shadow: 0 5px 25px rgba(200, 167, 96, 0.4);
    transform: translateY(-2px);
}

.cta-nav {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}
.cta-nav:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
    box-shadow: 0 0 20px rgba(200, 167, 96, 0.3);
}

.cta-secondary {
    background-color: transparent;
    border: 1px solid #333;
    color: #ccc;
}
.cta-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ========================================= */
/* BANDEAU D'INFORMATION FIXE */
/* ========================================= */
.top-info-bar {
    background: linear-gradient(90deg, #0a0a0a, #1a1a1a); 
    color: #aaa;
    padding: 6px 0; 
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: fixed;
    top: 91px; 
    width: 100%;
    z-index: 999;
    overflow: hidden; 
    white-space: nowrap; 
    border-bottom: 1px solid rgba(200, 167, 96, 0.05);
}

.top-info-bar span {
    display: inline-block;
    animation: marquee 40s linear infinite; 
    padding-left: 50px; 
    padding-right: 50px; 
}

/* ========================================= */
/* DESIGN FLOTTE */
/* ========================================= */

.vehicle-item {
    display: flex;
    max-width: 1200px;
    margin: 80px auto;
    background-color: transparent; 
    border-radius: 15px; 
    overflow: hidden;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8), 
        0 0 100px rgba(255, 255, 255, 0.2); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

.vehicle-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.9),
        0 0 120px rgba(200, 167, 96, 0.5); 
}

.vehicle-item.reverse { flex-direction: row-reverse; }

.vehicle-img {
    width: 55%;
    height: 500px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.8s;
}

.vehicle-item:hover .vehicle-img {
    transform: scale(1.03); 
}

.vehicle-details {
    width: 45%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: none;
    border-right: 4px solid var(--color-accent);
}

.vehicle-item.reverse .vehicle-details {
    border-right: none;
    border-left: 4px solid var(--color-accent);
}

.vehicle-details h2 {
    color: var(--color-light);
    margin-bottom: 10px;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
}

.tagline {
    color: var(--color-accent);
    font-style: italic;
    margin-bottom: 30px;
    font-size: 16px;
    font-family: var(--font-body);
}

/* ========================================= */
/* HERO HOME */
/* ========================================= */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/hero-car-luxe.jpg') no-repeat center center/cover; 
    text-align: center;
    background-attachment: fixed;
}

.hero-glass-panel {
    background: rgba(10, 10, 10, 0.7); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 167, 96, 0.15); 
    border-radius: 12px; 
    padding: 60px;
    max-width: 900px;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(200, 167, 96, 0.25),
        inset 0 0 20px rgba(255, 255, 255, 0.05); 
    animation: floating 6s ease-in-out infinite;
    position: relative;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.booking-form-glass {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-form-glass input {
    padding: 15px 20px;
    width: 250px;
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1px;
}
.booking-form-glass input:focus { border-color: var(--color-accent); outline: none; }
.booking-form-glass input::placeholder { color: #888; }

/* ========================================= */
/* FLIP CARDS & SERVICES */
/* ========================================= */
.flip-card-container { background-color: transparent; width: 100%; max-width: 800px; height: 300px; margin: 0 auto; perspective: 1000px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.flip-card-container:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; border-radius: 8px; border: 1px solid rgba(200, 167, 96, 0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.flip-card-front { background: linear-gradient(145deg, #121212, #050505); color: var(--color-light); }
.flip-card-front h3 { font-size: 28px; letter-spacing: 3px; font-weight: 300; }
.touch-indication { font-size: 11px; color: #666; margin-top: 20px; font-style: italic; }
.flip-card-back { background: linear-gradient(145deg, #c8a760, #a08548); color: #050505; transform: rotateY(180deg); }
.flip-card-back p { font-size: 16px; line-height: 1.8; font-weight: 500; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* FOOTER */
.footer { text-align: center; padding: 50px 5%; border-top: 1px solid #1a1a1a; background: #050505; font-size: 12px; color: #666; letter-spacing: 1px; }
.footer-links a { color: #888; text-decoration: none; margin: 0 15px; transition: color 0.3s; }
.footer-links a:hover { color: var(--color-accent); }

/* WHATSAPP */
.whatsapp-float { position: fixed; width: 55px; height: 55px; bottom: 30px; right: 30px; background-color: var(--color-accent); border-radius: 50%; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0, 0.6); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; border: 2px solid transparent; }
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 0 25px rgba(200, 167, 96, 0.8); background-color: #fff; }
.whatsapp-icon { width: 30px; height: 30px; fill: #0a0a0a; transition: fill 0.3s; }
.whatsapp-float:hover .whatsapp-icon { fill: var(--color-accent); }

/* ANIMATIONS JS */
.section-revealer { opacity: 0; transform: translateY(40px); transition: opacity 1.2s, transform 1.2s; }
.section-revealer.is-visible { opacity: 1; transform: translateY(0); }
@keyframes marquee { 0% { transform: translate3d(100%, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* ========================================= */
/* CONTACT FORM */
/* ========================================= */
.contact-form-grid { display: flex; flex-wrap: wrap; gap: 20px; text-align: left; width: 100%; }
.form-group { flex: 1 1 100%; display: flex; flex-direction: column; align-items: flex-start; }
.form-group.half-width { flex: 1 1 45%; }
.form-group label { font-size: 13px; color: var(--color-accent); margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; width: 100%; }
.contact-form-grid input, .contact-form-grid textarea { padding: 18px 25px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; font-family: var(--font-body); font-size: 15px; border-radius: 4px; width: 100%; transition: all 0.3s ease; }
.contact-form-grid input:focus, .contact-form-grid textarea:focus { border-color: var(--color-accent); outline: none; box-shadow: 0 0 25px rgba(200, 167, 96, 0.3); background: rgba(0,0,0,0.8); }

/* ========================================= */
/* SHIMMER TEXT */
/* ========================================= */
@keyframes goldShimmer { 0% { background-position: -200%; } 100% { background-position: 200%; } }
.shimmer-text { background: linear-gradient(120deg, var(--color-accent) 0%, #fff 50%, var(--color-accent) 100%); background-size: 200% auto; color: var(--color-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: goldShimmer 4s ease-in-out infinite; display: inline-block; }

/* ========================================= */
/* GOOGLE MAPS */
/* ========================================= */
.pac-container { background-color: #0a0a0a; border: 1px solid var(--color-accent); font-family: var(--font-body); border-radius: 0 0 5px 5px; box-shadow: 0 10px 20px rgba(0,0,0,0.8); z-index: 9999; }
.pac-item { border-top: 1px solid #222; color: #ccc; padding: 10px; cursor: pointer; }
.pac-item:hover { background-color: #1a1a1a; }
.pac-item-query { color: #f5f5f5; font-weight: 600; }
.pac-icon { filter: invert(1); }

/* ========================================= */
/* BANDEAU COOKIES (CORRIGÉ & FIXÉ) */
/* ========================================= */
#cookie-banner {
    position: fixed; /* Fixé en bas de l'écran */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #080808;
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999; /* Au-dessus de tout */
    border-top: 1px solid #d4af37;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

#cookie-banner button {
    background-color: #d4af37;
    color: #000;
    border: none;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

#cookie-banner button:hover {
    background-color: #fff;
    color: #000;
}

.cookie-banner.hidden {
    display: none !important;
}

/* ========================================= */
/* NOUVEAU DESIGN EXPERTISE (Boîtes Dorées Lumineuses) */
/* ========================================= */

/* La grille qui contient les 3 boîtes */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales sur PC */
    gap: 30px; /* Espace entre les boîtes */
    margin-top: 60px;
}

/* Le style de chaque boîte individuelle */
.expertise-item {
    background: linear-gradient(145deg, #0a0a0a, #000000); /* Fond noir profond subtil */
    padding: 40px 30px;
    border-radius: 15px; /* Coins arrondis élégants */
    text-align: center;
    border: 2px solid var(--color-accent); /* Bordure dorée bien visible */
    transition: all 0.4s ease;
    position: relative;
}

/* Style des titres H3 dans les boîtes */
.expertise-item h3 {
    color: var(--color-accent); /* Titre en OR */
    font-size: 22px;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Style du texte paragraph */
.expertise-item p {
    color: #d0d0d0; /* Gris clair pour une bonne lecture */
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
}

/* --- L'ANIMATION DU HALO DORÉ PULSANT --- */
@keyframes pulseGoldGlow {
    0% { 
        box-shadow: 0 0 20px rgba(200, 167, 96, 0.3), inset 0 0 15px rgba(200, 167, 96, 0.1); 
    }
    50% { 
        box-shadow: 0 0 50px rgba(200, 167, 96, 0.6), inset 0 0 30px rgba(200, 167, 96, 0.3); 
        border-color: #fff; /* Petit flash blanc sur la bordure au max de l'intensité */
    }
    100% { 
        box-shadow: 0 0 20px rgba(200, 167, 96, 0.3), inset 0 0 15px rgba(200, 167, 96, 0.1); 
    }
}

/* Application de l'animation aux boîtes */
.title-box-glow {
    animation: pulseGoldGlow 4s ease-in-out infinite; /* Animation continue et fluide */
}

/* Effet supplémentaire au survol de la souris */
.expertise-item:hover {
    transform: translateY(-10px) scale(1.02); /* Légère remontée et zoom */
    box-shadow: 0 15px 70px rgba(200, 167, 96, 0.8) !important; /* Halo très intense au survol */
    background: linear-gradient(145deg, #151515, #050505); /* Légère éclaircie du fond */
}

/* ========================================= */
/* MOBILE RESPONSIVE (CORRIGÉ & COMPLET) */
/* ========================================= */
@media (max-width: 768px) {
    .section-padding { padding: 80px 4%; }
    .hero-title { font-size: 32px; letter-spacing: 2px; }
    .hero-glass-panel { padding: 30px 20px; margin: 0 10px; }
    body { padding-top: 100px; }
    
    .header { padding: 15px 5%; }
    .logo-img { height: 50px; }

    /* LE HAMBURGER APPARAIT SUR MOBILE */
    .hamburger {
        display: block; 
    }

    /* HAMBURGER ANIMATION (QUAND ACTIF) */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* MENU CACHÉ PAR DÉFAUT */
    .nav {
        display: none; /* C'EST ICI LA CLÉ : CACHÉ AU DÉPART */
        position: fixed;
        left: 0;
        top: 70px; /* Juste sous le header */
        width: 100%;
        background-color: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        border-bottom: 1px solid var(--color-accent);
        backdrop-filter: blur(10px);
    }

    /* MENU AFFICHÉ QUAND ON CLIQUE (via Javascript) */
    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav a {
        margin: 15px 0;
        font-size: 16px;
    }

    .top-info-bar { top: 80px; }
    .booking-form-glass { flex-direction: column; width: 100%; }
    .booking-form-glass input, .cta-primary { width: 100%; }
    .service-grid, .expertise-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .vehicle-item, .vehicle-item.reverse { flex-direction: column; height: auto; }
    .vehicle-img { width: 100%; height: 250px; }
    .vehicle-details { width: 100%; padding: 30px; border: none; border-top: 4px solid var(--color-accent); }
    
    .flip-card-container { height: 350px; }
    
    /* Cookies en mobile */
    #cookie-banner { flex-direction: column; text-align: center; gap: 15px; }
}

/* --- Ajustement Spécifique Tablette pour les boites Expertise --- */
@media (max-width: 900px) {
    .expertise-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        gap: 40px;
    }
    .expertise-item {
        padding: 30px 20px;
    }
}