/* ============================================
   VARIABLES CSS - Système de design
   Toutes les couleurs, espacements et transitions
   sont centralisés ici pour faciliter la maintenance
   ============================================ */
:root {
    /* Primaire : noir | Secondaire : orange | Écriture : blanc */
    --primary-color: #0a0a0a;        /* Noir – fonds principaux */
    --primary-dark: #000000;          /* Noir plus foncé */
    --secondary-color: #e85d04;      /* Orange – CTA, accents, bordures */
    --secondary-dark: #c44d03;       /* Orange foncé au survol */
    --accent-color: #e85d04;         /* Orange pour liens et éléments secondaires */
    
    /* Fonds (noir / gris très foncé) */
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-light: #1a1a1a;             /* Sections alternées */
    --bg-white: #141414;             /* Fond contenu */
    
    /* Écriture / police : blanc lisible partout */
    --text-dark: #ffffff;            /* Texte principal (contraste max) */
    --text-light: #e5e5e5;           /* Texte secondaire bien lisible */
    --text-on-dark: #ffffff;
    
    /* Autres */
    --border-color: #333333;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 4px 24px rgba(232, 93, 4, 0.25);
    --transition: all 0.3s ease;
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   RESET & BASE - Normalisation et styles de base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  /* Padding et border inclus dans la largeur */
}

html {
    scroll-behavior: smooth;  /* Défilement fluide pour les ancres */
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;          /* Espacement des lignes pour la lisibilité */
    background-color: var(--primary-color);
    margin-left: 240px;        /* Réserve l'espace pour le header vertical à gauche */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Conteneur principal - Centré avec largeur max de 1200px */
.container {
    max-width: 1200px;
    margin: 0 auto;      /* Centrage horizontal */
    padding: 0 20px;     /* Padding latéral pour mobile */
}

/* ============================================
   HEADER - Barre verticale fixe à gauche, logo en haut à gauche (sans cercle)
   ============================================ */
.header {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: var(--bg-dark);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.header .container {
    max-width: none;
    padding: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

/* Logo en haut à gauche : plus gros, rien autour (pas de cercle), clic = accueil */
.logo {
    width: 100%;
    display: block;
}

.logo-link {
    display: block;
    width: 100%;
    transition: opacity 0.25s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: flex-start;
    width: 100%;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-on-dark);
    padding: 0.6rem 0.75rem;
    position: relative;
    display: block;
    width: 100%;
    border-radius: 6px;
}

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

.nav-list a.active {
    color: var(--secondary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: var(--secondary-color);
    border-radius: 0 2px 2px 0;
}

.btn-header {
    white-space: nowrap;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ============================================
   BOUTONS - Styles réutilisables pour tous les CTA
   Variantes : primary (orange), secondary (bleu), outline
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* États désactivés (ex: boutons \"Nous contacter\" en achat-revente) */
.btn[disabled],
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: #fff;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ============================================
   HERO SECTION - Bannière type modèle (fond sombre, grand logo, CTA)
   ============================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    color: var(--text-on-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(232, 93, 4, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-container {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: -20px auto 0;
}

/* Ajustements typographiques pour le hero de l'accueil */
.hero-content h1 {
    margin-bottom: 0.75rem;
}

.hero-content p {
    margin-top: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-hero:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 20px rgba(232, 93, 4, 0.35);
}

/* ============================================
   SECTIONS GÉNÉRIQUES - Styles communs à toutes les sections
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-presentation {
    background: var(--bg-white);
}

/* Sur la page Location Tournage, garder le fond sombre et réduire encore la hauteur comme sur Location */
.page-tournage .section.section-presentation {
    background: transparent;
    padding: 1.5rem 0 1.25rem;
}

.page-tournage .section.section-presentation .section-title {
    margin-bottom: 0.75rem;
}

.page-tournage .section.section-presentation .presentation-text {
    margin-bottom: 0.4rem;
}

/* Sur la page Achat & Revente, garder le fond sombre sous l'en-tête */
.page-achat .section-presentation {
    background: transparent;
}

/* Bloc "Plus d'informations" sur les fiches véhicules (vente) */
.vehicle-more-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0;
}

.vehicle-more-content li {
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.vehicle-more-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* Sur la page LOA & LLD, réduire la hauteur de la première section sous l'en-tête */
.page-loa .section:first-of-type {
    padding: 0.25rem 0 0.15rem;
}

.page-loa .section:first-of-type .section-title {
    margin-bottom: 0.35rem;
}

.page-loa .section:first-of-type .section-subtitle {
    margin-bottom: 0.5rem !important;
}

.presentation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.presentation-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ===== Services ===== */
.section-services {
    background: var(--bg-light);
}

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

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===== Why Section ===== */
.section-why {
    background: var(--bg-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.why-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.section-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e55a2b 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background: white;
    color: var(--secondary-color);
}

.cta-buttons .btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: var(--accent-color);
    color: white;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

/* ============================================
   FORMULAIRES - Styles pour tous les formulaires du site
   Inputs, selects, textareas avec focus states
   ============================================ */
.form-section {
    background: var(--bg-light);
    padding: 3rem 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.9;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* ============================================
   GRILLE DE VÉHICULES - Affichage des cartes véhicules
   Utilisé sur les pages Location et Achat/Revente
   ============================================ */
.vehicles-section {
    padding: 3rem 0;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.vehicle-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.vehicle-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.vehicle-info {
    padding: 1.5rem;
}

.vehicle-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.vehicle-specs {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.vehicle-specs li {
    margin-bottom: 0.25rem;
}

.vehicle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.vehicle-actions {
    display: flex;
    gap: 0.5rem;
}

.vehicle-actions .btn {
    flex: 1;
    text-align: center;
}

/* ===== Carousel véhicules (page Location) ===== */
.vehicles-section--carousel {
    padding: 2rem 0 3rem;
    overflow: hidden;
}

/* Plein écran : un véhicule = tout l'écran */
.vehicles-section--fullscreen {
    padding: 0;
    min-height: 100vh;
}

.carousel-fullscreen-wrapper,
.carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto 2rem;
}

.carousel-fullscreen-wrapper {
    height: 100vh;
    margin: 0;
    width: 100%;
}

.vehicles-carousel--fullscreen {
    display: flex;
    height: 100%;
    width: 100%;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

/* Un seul véhicule visible par défilement */
.vehicles-carousel--fullscreen .vehicle-slide--fullscreen {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
}

.vehicle-presentation--fullscreen {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
}

.vehicle-presentation--fullscreen .vehicle-presentation-image {
    min-height: 100vh;
}

.vehicle-presentation-image--clickable {
    cursor: pointer;
    position: relative;
}

.vehicle-presentation-image--clickable .vehicle-image-placeholder {
    display: block;
}

.vehicle-view-gallery {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    text-align: center;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-presentation-image--clickable:hover .vehicle-view-gallery {
    opacity: 1;
}

.vehicles-fullscreen-cta {
    margin-top: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
}

/* ===== Page LOA & LLD – carrousel type Location Tournage (un logo par écran) ===== */
.loa-brand-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-light);
    transition: background-color 0.3s ease;
}
.loa-brand-slide:nth-child(even) {
    background: var(--bg-white);
}
.loa-brand-slide:hover {
    background: rgba(0, 0, 0, 0.03);
}
.loa-brand-slide:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
}

.loa-slide-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.loa-brand-logo {
    max-width: clamp(120px, 20vw, 200px);
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.loa-brand-fallback {
    display: none;
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.loa-brand-fallback.is-visible {
    display: block;
}

/* Description dans la modale devis LOA (affichée au clic sur un logo) */
.loa-devis-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    padding: 0;
}

.modal-box--large {
    max-width: 640px;
}

.vehicles-section--carousel .section-title {
    margin-bottom: 0.5rem;
}

.vehicles-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0 1rem 1rem;
    margin: 0 3rem;
    -webkit-overflow-scrolling: touch;
}

.vehicles-carousel::-webkit-scrollbar {
    height: 8px;
}

.vehicles-carousel::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.vehicles-carousel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.vehicle-slide {
    flex: 0 0 420px;
    scroll-snap-align: start;
}

.vehicle-card--large {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 520px;
}

.vehicle-image--large {
    height: 280px;
    font-size: 5rem;
    flex-shrink: 0;
}

.vehicle-info--large {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vehicle-info--large .vehicle-name {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.vehicle-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.vehicle-info--large .vehicle-specs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.vehicle-info--large .vehicle-price {
    margin-top: auto;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    background: var(--bg-white);
    color: var(--secondary-color);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-hover);
}

.carousel-btn--prev {
    left: 0;
}

.carousel-btn--next {
    right: 0;
}

@media (max-width: 900px) {
    .vehicle-slide {
        flex: 0 0 340px;
    }

    .vehicle-image--large {
        height: 220px;
        font-size: 4rem;
    }

    .vehicle-card--large {
        min-height: 480px;
    }

    .vehicles-carousel {
        margin: 0 2.5rem;
    }
}

@media (max-width: 600px) {
    .vehicle-slide {
        flex: 0 0 300px;
    }

    .vehicle-image--large {
        height: 180px;
        font-size: 3.5rem;
    }

    .vehicle-info--large {
        padding: 1.25rem;
    }

    .vehicle-info--large .vehicle-name {
        font-size: 1.35rem;
    }

    .vehicle-description {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .vehicles-carousel {
        margin: 0 2rem;
        gap: 1.5rem;
    }
}

/* ===== Présentation type "image + panneau sombre" (Location & Tournage) ===== */
.vehicle-slide--split {
    flex: 0 0 720px;
}

/* Hauteur minimale, pas de défilement : tout visible d’un coup */
.vehicles-section--carousel .vehicle-presentation {
    min-height: 480px;
}

.vehicle-presentation {
    display: flex;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.vehicle-presentation-image {
    flex: 0 0 62%;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 6rem;
    position: relative;
}

.vehicle-presentation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* Image véhicule sport premium plus étroite */
.vehicle-presentation-image img.vehicle-presentation-img {
    max-width: 72%;
    width: auto;
    height: auto;
    max-height: 100%;
    margin: auto;
}

/* X3M slide : image plein cadre (pas de bande grise) */
.vehicles-section--carousel .vehicle-presentation-image--x3m img.vehicle-presentation-img {
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    display: block;
}

/* Mercedes slide : plein cadre, cadrage vers l'avant de la voiture */
.vehicles-section--carousel .vehicle-presentation-image--mercedes img.vehicle-presentation-img {
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 28% 50%;
    margin: 0;
    display: block;
}

.vehicle-presentation-panel {
    flex: 0 0 38%;
    background: linear-gradient(180deg, #1c1c1c 0%, #151515 100%);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
}

.vehicle-panel-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.vehicle-panel-title .accent {
    color: var(--secondary-color);
}

.vehicle-panel-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.vehicle-panel-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.vehicle-characteristics {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.vehicle-char-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #fff;
}

.vehicle-char-item:last-child {
    margin-bottom: 0;
}

.vehicle-char-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.2);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vehicle-char-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.vehicle-char-value {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-left: auto;
}

/* Carrousel Location : alignement des valeurs (même colonne) et texte sur plusieurs lignes */
.vehicles-section--carousel .vehicle-char-item {
    align-items: flex-start;
}

.vehicles-section--carousel .vehicle-char-value {
    flex: 1 1 0;
    min-width: 0;
    margin-left: 0;
    white-space: normal;
    line-height: 1.25;
    max-width: 290px;
    text-align: left;
}

.vehicles-section--carousel .vehicle-panel-subtitle {
    margin-bottom: 1.25rem;
}

/* Blocs "détails véhicule" (ex: BMW X3M) dans le carrousel Location */
.vehicles-section--carousel .vehicle-extra-specs {
    margin: 0 0 1.1rem;
    color: var(--text-light);
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.vehicles-section--carousel .vehicle-extra-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vehicles-section--carousel .vehicle-extra-specs-list li {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-light);
}

.vehicles-section--carousel .vehicle-extra-specs-list li:last-child {
    margin-bottom: 0;
}

.vehicle-panel-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
}

.vehicle-panel-cta {
    margin-top: auto;
}

.vehicle-panel-cta .btn {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.35);
}

.vehicle-panel-cta .btn:hover {
    box-shadow: 0 0 28px rgba(255, 107, 53, 0.5);
}

.vehicle-panel-cta .btn-booking {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.vehicle-cta-devis {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.vehicle-cta-devis:hover {
    color: var(--secondary-color);
}

/* ===== Modales Réservation & Paiement (page Location) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 2rem;
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.input-readonly {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-light);
    cursor: default;
    font-family: var(--font-primary);
}

.booking-recap {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.booking-recap strong {
    color: var(--text-dark);
}

.payment-type-choice {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-type-choice label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    flex: 1;
    transition: var(--transition);
    color: var(--text-dark);
}

.payment-type-choice input {
    display: none;
}

.payment-type-choice label:has(input:checked) {
    border-color: var(--secondary-color);
    background: rgba(255,107,53,0.08);
}

.payment-type-choice span {
    display: block;
    width: 100%;
}

/* Galerie photos véhicule (modale) */
.modal-box--gallery {
    max-width: 900px;
}

.vehicle-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vehicle-gallery-item {
    border-radius: 8px;
    overflow: hidden;
}

.vehicle-gallery-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.vehicle-gallery-caption {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

@media (max-width: 900px) {
    .vehicle-slide--split {
        flex: 0 0 560px;
    }

    .vehicle-presentation {
        flex-direction: column;
        min-height: auto;
    }

    .vehicle-presentation--fullscreen {
        flex-direction: column;
        min-height: 100vh;
    }

    .vehicle-presentation--fullscreen .vehicle-presentation-image {
        flex: 0 0 50vh;
        min-height: 50vh;
    }

    .vehicle-presentation-image {
        flex: 0 0 240px;
        font-size: 5rem;
    }

    .vehicle-presentation-panel {
        flex: 1 1 auto;
        padding: 1.5rem 1.25rem;
    }

    .carousel-fullscreen-wrapper {
        height: 100vh;
    }

    .vehicles-carousel--fullscreen {
        margin: 0 2.5rem;
    }

    .vehicle-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .vehicle-slide--split {
        flex: 0 0 320px;
    }

    .vehicles-carousel--fullscreen .vehicle-slide--fullscreen {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .vehicle-presentation-image {
        flex: 0 0 200px;
        font-size: 4rem;
    }

    .vehicle-presentation--fullscreen .vehicle-presentation-image {
        flex: 0 0 45vh;
        min-height: 45vh;
        font-size: 4rem;
    }

    .vehicle-view-gallery {
        opacity: 1;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        font-size: 0.85rem;
    }

    .vehicle-panel-title {
        font-size: 1.4rem;
    }

    .vehicle-char-item {
        flex-wrap: wrap;
    }

    .vehicle-char-value {
        margin-left: 0;
        width: 100%;
        margin-top: 0.25rem;
        padding-left: 2.75rem;
    }

    .vehicles-carousel--fullscreen {
        margin: 0 2rem;
    }
}

/* ===== Page Header (en-tête des pages internes) ===== */
.page-header {
    position: relative;
    background: var(--bg-dark);
    color: var(--text-dark);
    padding: 2rem 0 2.25rem;
    border-bottom: 3px solid var(--secondary-color);
}

.page-header .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête avec image (page Location) – toute la largeur, image dézoomée */
.page-header--image {
    width: calc(100% + 240px);
    min-height: 28vh;
    margin-left: -240px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background: var(--bg-dark) url('../images/header-location.png') center center / 85% no-repeat;
}

.page-header--image .container {
    padding-left: 240px;
}

@media (max-width: 768px) {
    .page-header--image {
        width: 100%;
        margin-left: 0;
    }
    .page-header--image .container {
        padding-left: 20px;
    }
}

.page-header--image .page-header-overlay {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.4) 45%,
        rgba(0, 0, 0, 0.25) 100%
    );
}

/* En-tête avec image (page Location Tournage) – Bentley, image dézoomée */
.page-header--tournage {
    background-image: url('../images/header-tournage.png');
    background-size: 85%;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header--image h1,
.page-header--image p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

.page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 560px;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-button.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== Page Conditions générales de vente (CGV) ===== */
.section-cgv {
    padding: 2rem 0 4rem;
}

.container--text {
    max-width: 720px;
}

.cgv-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem;
    letter-spacing: 0.02em;
}

.cgv-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0 0 2rem;
}

.cgv-article {
    margin-bottom: 2rem;
}

.cgv-article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.75rem;
}

.cgv-article p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.cgv-article ul {
    margin: 0.5rem 0 1rem 1.25rem;
    padding: 0;
}

.cgv-article li {
    margin-bottom: 0.35rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cgv-article li::marker {
    color: var(--secondary-color);
}

/* ============================================
   RESPONSIVE - Media queries pour tablette et mobile
   Breakpoint 992px : menu horizontal + hamburger (onglets dans le tiroir)
   Breakpoint 768px : ajustements mobile
   ============================================ */

/* Dès 992px : header horizontal, onglets dans le menu hamburger (toujours visibles au clic) */
@media (max-width: 992px) {
    body {
        margin-left: 0;
    }

    .header {
        position: sticky;
        top: 0;
        bottom: auto;
        width: 100%;
        padding: 0.75rem 0;
        z-index: 1000;
    }

    .header .container {
        padding: 0 16px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo-link {
        max-width: 160px;
    }

    .logo-img {
        max-width: 160px;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        width: auto;
        align-items: stretch;
    }

    .nav-list a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .nav-list a.active::after {
        left: auto;
        top: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 2px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.2);
        flex-shrink: 0;
    }

    .mobile-menu-toggle span {
        background: var(--text-dark);
    }

    .nav {
        position: fixed;
        top: 56px;
        left: -100%;
        width: min(100%, 320px);
        max-width: 100%;
        height: calc(100vh - 56px);
        height: calc(100dvh - 56px);
        background: var(--bg-dark);
        box-shadow: 4px 0 24px rgba(0,0,0,0.3);
        transition: left 0.3s ease, visibility 0.3s ease;
        padding: 1.5rem;
        overflow-y: auto;
        z-index: 999;
        visibility: hidden;
    }

    .nav.active {
        left: 0;
        visibility: visible;
    }

    .btn-header {
        display: none;
    }
}

@media (max-width: 768px) {

    .header {
        padding: 0.15rem 0;
    }

    .header .container {
        padding: 0 10px;
    }

    .logo-link {
        max-width: 120px;
    }

    .logo-img {
        max-width: 120px;
    }

    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
        padding: 4px;
    }

    .nav {
        top: 42px;
        height: calc(100vh - 42px);
        height: calc(100dvh - 42px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
    }

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

    .tabs {
        flex-direction: column;
        gap: 0;
    }

    .tab-button {
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section {
        padding: 3rem 0;
    }

    .form-container {
        padding: 1.5rem;
    }
}
