/* ========================================= */
/* STYLE CSS COMPLET - VTC SUISSE      */
/* ========================================= */

/* --- 1. Variables et Reset --- */
:root {
    --bg-dark: #0f1014;
    --bg-card: #1a1c23;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --gold: #c5a059;
    --red: #d32f2f;
    --red-hover: #b71c1c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 2. Header (Menu) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0,0,0,0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

/* 1. LE CADRE (Le rond blanc) */
/* On applique la taille et la bordure sur la DIV parent, pas sur l'image */
.logo {
    height: 70px;       /* Taille globale du cercle */
    width: 70px;
    
    border: 2px solid white; /* La bordure blanche */
    border-radius: 50%;      /* On arrondit le cadre */
    
    /* IMPORTANT : Coupe tout ce qui dépasse du cercle */
    overflow: hidden;        
    
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); /* Lueur */
    
    /* Pour bien centrer l'image dedans */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. L'IMAGE (Le contenu) */
.logo img {
    height: 100%;       /* Prend toute la hauteur du cadre */
    width: 100%;        /* Prend toute la largeur du cadre */
    
    object-fit: cover;  /* Remplit sans déformer */
    
    /* L'ASTUCE ULTIME : On zoome légèrement (1.1) pour faire disparaître 
       les petits bords noirs qui seraient incrustés dans ton fichier image */
    transform: scale(1.15); 
    
    /* On nettoie les bordures sur l'image elle-même car c'est la div qui gère ça */
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

nav ul { display: flex; gap: 30px; }
nav a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
nav a:hover { color: var(--gold); }

.phone-number { color: var(--gold); font-weight: bold; }

/* --- 3. Hero Section (Image dans le HTML) --- */
/* C'est ici que la magie opère pour ton image HTML */

/* Le conteneur (la section) */
.hero, .hero-html-version {
    position: relative; /* Indispensable pour que l'image reste dedans */
    height: 90vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 10%;
}

/* L'image elle-même (balise <img> dans ton HTML) */
.hero img, .hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit tout sans être écrasée */
    z-index: 0; /* Tout au fond */
}

/* Le filtre sombre pour lire le texte */
.hero::after, .dark-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
    z-index: 1; /* Devant l'image */
    pointer-events: none; /* Laisse passer les clics */
}

/* Le texte et les boutons */
.hero-content {
    position: relative;
    z-index: 2; /* Devant tout le monde */
    max-width: 600px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero h1, .hero-html-version h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: white;
}

.hero p, .hero-html-version p {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 30px;
    font-weight: 600;
}

/* --- 4. Boutons --- */
.cta-buttons { display: flex; gap: 20px; }

.btn {
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-red { background-color: var(--red); color: white; }
.btn-red:hover { background-color: var(--red-hover); }

.btn-transparent {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.btn-transparent:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* --- 5. Features (Icônes) --- */
.features {
    position: relative; /* Pour passer au dessus de l'image si besoin */
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 20px;
    background: #000;
    border-bottom: 1px solid #333;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gold);
    gap: 10px;
}
.feature-item i { font-size: 1.5rem; }
.feature-item span { font-size: 0.9rem; color: var(--text-muted); }

/* --- 6. Services (Cartes Voitures) --- */
.services { padding: 80px 50px; text-align: center; }

.services h2 { font-size: 2.5rem; margin-bottom: 50px; color: white; }

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background: var(--bg-card);
    padding: 20px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: transform 0.3s;
    border-radius: 5px;
}
.car-card:hover { transform: translateY(-5px); border-color: var(--gold); }

.car-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
}

.car-card h3 { color: white; margin-bottom: 10px; }
.car-card p { font-size: 0.9rem; color: var(--text-muted); }

/* --- 7. Modal (Formulaire) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--gold);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: white;
}
.modal-content h2 { margin-bottom: 20px; text-align: center; color: var(--gold); }
.form-group { margin-bottom: 15px; text-align: left; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
label { display: block; margin-bottom: 5px; color: #ccc; font-size: 0.9rem; }
input {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
}
input:focus { outline: none; border-color: var(--gold); }
.btn-full { width: 100%; margin-top: 10px; }

/* --- 8. Responsive Mobile --- */
@media (max-width: 768px) {
    header { flex-direction: column; padding: 15px; position: relative; background: black; }
    nav ul { display: none; }
    .phone-number { margin-top: 10px; }
    
    .hero, .hero-html-version {
        padding: 20px;
        text-align: center;
        justify-content: center;
    }
    .hero h1 { font-size: 2rem; }
    .cta-buttons { flex-direction: column; }
    .feature-item span { display: none; }
    .services { padding: 40px 20px; }
}
/* Style du message de confirmation */
.success-message {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.success-message i {
    font-size: 4rem;
    color: var(--gold); /* Ton doré */
    margin-bottom: 20px;
}

.success-message h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.success-message .signature {
    color: var(--gold);
    font-weight: 600;
    margin-top: 20px;
    font-style: italic;
}

/* Petite animation d'apparition douce */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}