/* RESET & BASICS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #050505;
    /* Noir très profond, pas 100% noir pour éviter le mal aux yeux */
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.italic {
    font-style: italic;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: #fff;
    margin: 30px auto;
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.4s ease;
}

nav.scrolled {
    background-color: rgba(5, 5, 5, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    height: 70px;
    /* Ajustez la hauteur selon le rendu souhaité */
    width: auto;
    object-fit: contain;
}

.logo-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #fff;
    margin-top: 5px;
    font-weight: 300;
    text-decoration: none;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

.logo-phone:hover {
    color: #aeaeae;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-links li a:hover {
    opacity: 1;
}

.btn-nav {
    border: 1px solid #fff;
    padding: 10px 25px;
    border-radius: 0;
    /* Angles droits pour le style luxe */
}

.btn-nav:hover {
    background: #fff;
    color: #000;
}

/* HERO SECTION (VIDEO) */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-align: center;
    overflow: hidden;
}

/* CINEMATIC BARS */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    /* Hauteur des bandes noires */
    background-color: #000;
    z-index: 0;
    /* Au-dessus de la vidéo/overlay mais sous le contenu */
}

.hero::before {
    top: 0;
}

.hero::after {
    bottom: 0;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Assombrit la vidéo pour lire le texte */
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.overline {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}



/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    z-index: 10;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #ccc;
}

/* BOUTONS */
.btn-primary {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border: 1px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #000;
}

.btn-whatsapp {
    display: inline-block;
    background-color: transparent;
    color: #25D366;
    padding: 10px 25px;
    /* Padding réduit */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    /* Taille de police réduite */
    font-weight: 500;
    border: 1px solid #25D366;
    margin-left: 0;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-whatsapp:hover {
    background-color: #25D366;
    color: #fff;
}

/* PHILOSOPHIE */
.text-center {
    text-align: center;
}

#philosophie h2 {
    font-size: 3rem;
}

.lead-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #aaa;
    font-weight: 300;
}

/* SERVICES */
.bg-dark {
    background-color: #0a0a0a;
}

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

.service-card {
    border-left: 1px solid #333;
    padding-left: 30px;
    transition: border-color 0.3s;
}

.service-card:hover {
    border-left: 1px solid #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: #888;
    font-size: 0.95rem;
}

/* PARALLAX (VEHICULE) */
.parallax {
    /* Mettre ici une URL vers une image de voiture noire/intérieur cuir haute qualité */
    background-image: url('https://mgmotor.imgix.net/images/model/Sans-titre-11.jpg?auto=compress,format&crop=focalpoint&fit=crop&fm=auto&fp-x=0.5&fp-y=0.5&h=1080&q=75&ratio=1.3333333333333&w=1920');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Ajout d'un overlay sombre sur l'image parallaxe aussi */
.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.parallax-content {
    z-index: 1;
    text-align: center;
}

.parallax-content h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.parallax-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.parallax-content .catchphrase {
    font-size: 1.2rem;
    font-style: italic;
    text-transform: none;
    letter-spacing: normal;
    font-family: 'Playfair Display', serif;
    margin-top: -15px;
    opacity: 0.9;
}

.parallax-content .eco-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
    opacity: 0.7;
    font-weight: 300;
}

/* CONTACT */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info ul {
    margin-top: 30px;
}

.contact-info li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ccc;
    display: flex;
    align-items: center;
}

/* FORMULAIRE */
.booking-form {
    background: #0f0f0f;
    padding: 40px;
    border: 1px solid #222;
}

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

.form-group input {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-bottom: 1px solid #fff;
}

.full-width {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

/* FOOTER */
footer {
    border-top: 1px solid #1a1a1a;
    padding: 40px 0;
    font-size: 0.8rem;
    color: #666;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.socials a {
    margin-left: 20px;
    color: #666;
}

.socials a:hover {
    color: #fff;
}

/* ANIMATIONS JS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Zoomer la vidéo sur mobile (reduce distance) */
    #bg-video {
        min-width: 150%;
        min-height: 150%;
        transform: translate(-50%, -50%) scale(0.7);
        /* Dezoom demandé */
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .parallax {
        background-attachment: scroll;
        background-position: center;
        background-size: cover;
        height: 50vh;
        /* Ajuster la hauteur si nécessaire sur mobile */
    }
}

/* NOUVEAUX STYLES FORMULAIRE */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    padding-right: 40px;
    /* Espace pour le bouton map */
}

.btn-map {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    padding: 5px;
}

.btn-map:hover {
    color: #aaa;
    transform: scale(1.1);
}

/* STYLES MODAL MAP */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.open {
    display: flex;
    /* Flex pour centrer */
}

.modal-content {
    background-color: #1a1a1a;
    margin: auto;
    padding: 20px;
    border: 1px solid #333;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

#map {
    height: 400px;
    width: 100%;
    margin-top: 15px;
    border-radius: 4px;
}

/* AUTOCOMPLETE STYLES (Google-like) */
.autocomplete-items {
    position: absolute;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    color: #333;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    margin-top: 5px;
}

.autocomplete-items div {
    padding: 12px 15px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto', 'Arial', sans-serif;
    /* Plus proche de Google */
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.autocomplete-items div:hover {
    background-color: #f1f3f4;
}

.autocomplete-active {
    background-color: #e8f0fe !important;
}

.autocomplete-icon {
    color: #757575;
    flex-shrink: 0;
}

/* Message d'erreur sous les champs */
.error-message {
    color: #ff4d4d;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
    /* Caché par défaut */
    font-weight: 500;
    letter-spacing: 0.5px;
    padding-left: 5px;
}

/* Bordure rouge si erreur */
input.error,
select.error {
    border-bottom: 2px solid #ff4d4d !important;
    /* On garde le fond transparent, plus élégant */
}

/* --- MODALE DE SUCCÈS PREMIUM --- */
.success-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    /* Fond très sombre */
    backdrop-filter: blur(8px);
    /* Effet flou luxe */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.success-modal.open {
    display: flex;
    opacity: 1;
}

.success-content {
    background-color: #050505;
    /* Noir profond */
    margin: auto;
    padding: 40px;
    border: 1px solid #cfaa5f;
    /* Bordure Or */
    width: 90%;
    max-width: 450px;
    text-align: center;
    color: #f1f1f1;
    box-shadow: 0 10px 40px rgba(207, 170, 95, 0.1);
    /* Lueur dorée subtile */
    transform: translateY(20px);
    transition: transform 0.4s ease;
    position: relative;
}

.success-content::after {
    /* Petit détail déco */
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(207, 170, 95, 0.2);
    pointer-events: none;
}

.success-modal.open .success-content {
    transform: translateY(0);
}

.success-icon {
    font-size: 2.5rem;
    color: #cfaa5f;
    /* Or */
    margin-bottom: 25px;
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #cfaa5f;
    /* Or */
    letter-spacing: 1px;
}

.success-text {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #ccc;
    font-size: 1rem;
    font-weight: 300;
}

.btn-success-close {
    background-color: transparent;
    color: #fff;
    border: 1px solid #cfaa5f;
    padding: 12px 35px;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.btn-success-close:hover {
    background-color: #cfaa5f;
    color: #000;
}

/* --- MODALE DE SUCCÈS BLACK & WHITE (OVERRIDE) --- */
.success-modal {
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(5px);
}

.success-content {
    background-color: #000 !important;
    border: 1px solid #fff !important;
    /* Bordure Blanche */
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    /* Angles droits */
}

.success-content::after {
    display: none !important;
}

.success-icon {
    color: #fff !important;
    /* Blanc */
}

.success-title {
    color: #fff !important;
    /* Blanc */
    font-size: 2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
}

.success-text {
    font-family: 'Montserrat', sans-serif !important;
    color: #ccc !important;
}

.btn-success-close {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #fff !important;
    font-weight: 600 !important;
}

.btn-success-close:hover {
    background-color: #000 !important;
    color: #fff !important;
}