@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
    /* Brand & Utility (Fixed) */
    --jaune-agueda: #F59E0B;
    --jaune-hover: #D97706;
    --jaune-light: rgba(245,158,11,0.12);
    --bleu-vertigo: #0369A1;
    --hybride-bleu: #0EA5E9;
    --gris-selenium: #1e2430;
    --noir-basalte: #0D1117;
    --blanc-pur: #FFFFFF;
    
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    --radius: 10px;
    --radius-lg: 16px;

    /* Theme-aware (Light Default) */
    --bg-body: #F8F9FB;
    --bg-card: #FFFFFF;
    --text-main: #1a2030;
    --text-light: #5b6578;
    --text-muted: #8b96a8;
    --border-light: #E8ECF0;
    --header-bg-scrolled: rgba(255, 255, 255, 0.94);
    --header-border-scrolled: rgba(0, 0, 0, 0.06);
    --header-text-scrolled: #1a2030;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0a0a14;
        --bg-card: #161b22;
        --text-main: #f0f6fc;
        --text-light: #8b949e;
        --text-muted: #6e7681;
        --border-light: rgba(255, 255, 255, 0.1);
        --header-bg-scrolled: rgba(13, 17, 23, 0.94);
        --header-border-scrolled: rgba(255, 255, 255, 0.06);
        --header-text-scrolled: #f0f6fc;
        --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
        --shadow: 0 8px 24px rgba(0,0,0,0.3);
        --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
        --mobile-menu-bg: rgba(13, 17, 23, 0.98);
        
        /* Adjust fixed noir for titles */
        --noir-basalte: #F8F9FB;
    }
}

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

html, body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

h1, h2, h3, h4, .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--noir-basalte);
}

.tech-data {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--jaune-agueda), var(--jaune-hover));
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(245,158,11,0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--jaune-hover), #B45309);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245,158,11,0.4);
}

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

.btn-outline:hover {
    background: var(--jaune-agueda);
    color: var(--noir-basalte);
    transform: translateY(-2px);
}

/* ============================
   BOUTON EMAIL
   ============================ */
.btn-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 18px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    margin-top: 12px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn-email:hover:not([disabled]):not(.btn-email-disabled) {
    background: var(--bg-card);
    border-color: var(--jaune-agueda);
    color: var(--jaune-agueda);
    transform: translateY(-2px);
}

.btn-email i {
    font-size: 16px;
}

/* État désactivé — avant que le formulaire soit rempli */
.btn-email[disabled],
.btn-email.btn-email-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.5);
    transform: none !important;
    box-shadow: none !important;
}

/* ============================
   HEADER — Glassmorphism Premium
   ============================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* Transparent par défaut — pour la hero avec background image */
    background: linear-gradient(to bottom, rgba(13,17,23,0.55), rgba(13,17,23,0.1));
    backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

header.scrolled {
    padding: 12px 0;
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--header-border-scrolled);
}

/* Sur les pages de détail voiture : header toujours blanc */
.detail-page header {
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--header-border-scrolled);
    box-shadow: var(--shadow-sm);
}

/* Nav links couleur adaptée selon état */
header:not(.scrolled) .nav-links li a {
    color: rgba(255,255,255,0.9);
}

header.scrolled .nav-links li a,
.detail-page header .nav-links li a {
    color: var(--header-text-scrolled);
}

header:not(.scrolled) .logo {
    color: var(--blanc-pur);
}

header.scrolled .logo,
.detail-page header .logo {
    color: var(--noir-basalte);
}

header:not(.scrolled) .hamburger span {
    background-color: white;
}

header.scrolled .hamburger span,
.detail-page header .hamburger span {
    background-color: var(--header-text-scrolled);
}

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

.logo {
    font-size: 26px;
    font-weight: 800;
    color: inherit;
    letter-spacing: -1px;
}

.logo span {
    color: var(--jaune-agueda);
}

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

.nav-links li a {
    font-weight: 600;
}

.nav-links li a:hover {
    color: var(--jaune-agueda);
}

/* ============================
   LANG SWITCHER
   ============================ */
.lang-switcher {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header.scrolled .lang-switcher,
.detail-page header .lang-switcher {
    background: var(--bg-body);
    border-color: var(--border-light);
}

.lang-switcher a {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blanc-pur);
    transition: all 0.3s ease;
}

header.scrolled .lang-switcher a,
.detail-page header .lang-switcher a {
    color: var(--text-light);
}

.lang-switcher a.active {
    background: var(--jaune-agueda);
    color: var(--noir-basalte) !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.lang-switcher a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

header.scrolled .lang-switcher a:hover:not(.active),
.detail-page header .lang-switcher a:hover:not(.active) {
    background: var(--border-light);
}

/* MOBILE LANG SWITCHER (white mobile menu background) */
.mobile-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
}

.mobile-lang-switcher a {
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--bg-body);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.mobile-lang-switcher a.active {
    background: var(--jaune-agueda);
    color: var(--noir-basalte) !important;
    border-color: var(--jaune-agueda);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.mobile-lang-switcher a:hover:not(.active) {
    background: #e5e7eb;
    color: var(--noir-basalte);
}

/* Hide desktop lang-switcher on mobile (now in hamburger menu) */
@media (max-width: 1024px) {
    .lang-switcher {
        display: none !important;
    }
}

/* Hamburger Animation */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 2100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: currentColor;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================
   HERO SECTION — 2 Colonnes Premium
   PC : 1920×1080 (height: 88vh ≈ 950px)
   Tablette : 1024×768 (height: 85vh ≈ 653px)
   Mobile : 375×667 (height: auto, min 580px)
   ============================ */
.hero {
    min-height: 88vh;
    background: linear-gradient(135deg, #0D1117 0%, #1a2030 60%, #0D1117 100%);
    position: relative;
    display: flex;
    align-items: center;
    color: var(--blanc-pur);
    overflow: hidden;
    padding: 120px 0 60px;
}

/* Motif de points subtil en arrière-plan */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(245,158,11,0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Dégradé décoratif côté gauche */
.hero::after {
    content: '';
    position: absolute;
    left: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Layout 2 colonnes */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Colonne gauche — texte */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-content h1 {
    font-size: 58px;
    line-height: 1.08;
    margin-bottom: 22px;
    color: var(--blanc-pur);
    letter-spacing: -2px;
    font-weight: 900;
}

.hero-content h1 .highlight {
    color: var(--jaune-agueda);
    display: inline-block;
}

.hero-content p {
    font-size: 17px;
    margin-bottom: 36px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Colonne droite — image voiture */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    width: 100%;
    max-height: 480px;
}

.hero-visual-inner img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
}

.hero:hover .hero-visual-inner img {
    transform: scale(1.04);
}

/* Badge doré sur photo */
.hero-visual-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(13,17,23,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    z-index: 5;
}

.hero-visual-badge .badge-icon {
    width: 36px;
    height: 36px;
    background: var(--jaune-agueda);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
}

.hero-visual-badge strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.hero-visual-badge small {
    font-size: 10px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats row sous le titre */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--jaune-agueda);
    font-family: 'JetBrains Mono', monospace;
}

.hero-stat span {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RESPONSIVE HERO */
@media (max-width: 1024px) {
    .hero {
        min-height: 85vh;
        padding: 110px 0 50px;
    }
    .hero-grid {
        gap: 40px;
    }
    .hero-content h1 {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-content h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }
    .hero-content p {
        font-size: 15px;
    }
    .hero-visual {
        order: -1;
    }
    .hero-visual-inner {
        max-height: 250px;
    }
    .hero-visual-inner img {
        max-height: 250px;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-stat strong {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--jaune-agueda);
    border-radius: 2px;
}

.section-badge {
    color: var(--bleu-vertigo);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    display: block;
    margin-bottom: 15px;
}
.eco-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--jaune-agueda);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

/* Search Container - Floating prominence like Carflexi */
.search-container.floating-search {
    background: var(--bg-card);
    padding: 45px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--jaune-agueda);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr) repeat(2, 1fr) auto;
    gap: 20px;
    align-items: end;
}

.search-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field input, .search-field select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-body);
    font-family: inherit;
    font-size: 14px;
    color: var(--noir-basalte);
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

/* Star Vehicle Focus styling */
.star-focus {
    transform: scale(1.05);
    border: 2px solid var(--jaune-agueda) !important;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.2);
    z-index: 10;
}

.new-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--noir-basalte);
    color: var(--jaune-agueda);
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 2px;
    z-index: 5;
    border: 1px solid var(--jaune-agueda);
}

.vehicle-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.star-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--jaune-agueda);
    color: var(--noir-basalte);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
    animation: starPulse 2.5s infinite;
}

@keyframes starPulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(250, 204, 21, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4); }
}

.vehicle-img {
    height: 240px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vehicle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-content {
    padding: 30px;
}

.vehicle-cat {
    color: var(--bleu-vertigo);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 1px;
}

.vehicle-content h3 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
}

.vehicle-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    font-family: 'JetBrains Mono', monospace; /* Technical data look */
}

.feature-item i {
    width: 18px;
    color: var(--bleu-vertigo);
}

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.price-box {
    font-family: 'JetBrains Mono', monospace;
}

.price-box .amount {
    font-size: 26px;
    font-weight: 700;
    color: var(--noir-basalte);
}

.price-box .unit {
    font-size: 13px;
    color: var(--text-light);
    margin-left: 5px;
}

/* Standardized Footer - Matched with Hero */
footer {
    background: linear-gradient(135deg, var(--gris-selenium) 0%, var(--noir-basalte) 100%);
    color: var(--blanc-pur);
    padding: 80px 0 40px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--bleu-vertigo) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    z-index: 1;
}

/* ============================
   SPECS GRID — Page Détail
   Toujours 2 colonnes sur mobile
   ============================ */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.spec-item {
    background: var(--bg-body);
    padding: 16px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.spec-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: var(--transition);
    border-radius: 3px 0 0 3px;
}

.spec-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--jaune-agueda);
    background: var(--bg-card);
}

.spec-item:hover::before {
    background: var(--jaune-agueda);
}

.spec-item i {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jaune-agueda);
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.spec-item:hover i {
    background: var(--jaune-agueda);
    color: var(--noir-basalte);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.spec-item strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--noir-basalte);
    line-height: 1.3;
}

.spec-item small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 600;
}

/* MOBILE : toujours 2 colonnes — jamais 1 */
@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .spec-item {
        padding: 12px 10px;
        gap: 10px;
    }
    .spec-item i {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 14px;
    }
    .spec-item strong {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
    width: 100%;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Modal Polish */
.modal-content {
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: var(--noir-basalte);
}

/* Mobile Menu Optimized */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(15px);
    z-index: 2000;
    padding: 100px 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    margin-bottom: 50px;
}

.mobile-menu ul li {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateX(20px);
    transition: 0.4s ease;
}

.mobile-menu.active ul li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active ul li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active ul li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active ul li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active ul li:nth-child(5) { transition-delay: 0.5s; }

.mobile-menu ul li a {
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--text-main);
}

@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .nav-links { display: none !important; }
    .header-cta { font-size: 12px; padding: 10px 18px; }
    .vehicle-grid { grid-template-columns: 1fr 1fr; }
    .main-header {
        width: 100vw;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .vehicle-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .logo { font-size: 20px; }
    .header-cta i { margin-right: 0 !important; }
    .header-cta span.btn-text { display: none; } /* Conditional text hide for ultra-small */
}
/* Process & Trust Sections - Carflexi Inspired */
.process-section {
    background: var(--bg-card);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.step-card {
    padding: 30px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.step-card:hover {
    background: var(--bg-body);
    transform: translateY(-5px);
}

.trust-section img {
    max-height: 40px;
    width: auto;
    transition: var(--transition);
}

.trust-section img:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* Mobile Search Fixes */
@media (max-width: 1024px) {
    .search-container.floating-search {
        margin-top: 0;
        padding: 30px;
    }
    .search-form {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================
   DETAIL PAGE — Layout Premium
   ============================ */
.detail-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
    margin-top: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .detail-grid { 
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================
   PHOTO VÉHICULE — Hero Cinématique
   ============================ */
.main-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.main-visual img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--transition);
    border-radius: var(--radius-lg);
}

.main-visual:hover img {
    transform: scale(1.03);
}

.main-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(13,17,23,0.5), transparent);
    pointer-events: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

@media (max-width: 768px) {
    .main-visual img {
        height: 250px;
    }
}

/* Section badge amélioré */
.detail-info {
    padding-top: 28px;
}

.section-badge {
    color: var(--jaune-agueda);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    background: var(--jaune-light);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(245,158,11,0.2);
}

.detail-info h1 {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.detail-info > p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .detail-info h1 { font-size: 24px; }
}

/* ============================
   BOOKING CARD — Dark Glass Premium
   ============================ */
.booking-card {
    background: linear-gradient(145deg, #0D1117, #161B22);
    color: var(--blanc-pur);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 100px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--jaune-agueda), var(--jaune-hover));
}

.price-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.price-header span {
    font-size: 48px;
    font-weight: 900;
    color: var(--jaune-agueda);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -1px;
}

.price-header {
    font-size: 14px;
    opacity: 0.6;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.registration-form input, 
.registration-form select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: white;
    margin-top: 6px;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.registration-form input:focus,
.registration-form select:focus {
    border-color: var(--jaune-agueda);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.registration-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.registration-form select option {
    background: #1a2030;
    color: white;
}

.registration-form label {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    display: block;
}

/* ============================
   BREADCRUMB — Premium Style
   ============================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--jaune-agueda);
}

.breadcrumb > *:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    opacity: 0.4;
    font-size: 14px;
}
/* specs-grid override desktop — 4 col sur grand écran dans la page détail */
@media (min-width: 1100px) {
    .detail-left .specs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1099px) {
    .detail-left .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Page Grid Responsiveness */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

.contact-page main {
    background: var(--bg-body);
}

/* Formulaire contact : fond toujours sombre (évite blanc sur blanc si --noir-basalte est inversé en dark mode OS) */
.contact-page .registration-form {
    background: linear-gradient(145deg, #0D1117, #161B22);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.info-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.registration-form textarea:focus {
    border-color: var(--jaune-agueda);
    background: rgba(255,255,255,0.1);
}

/* (Old lang-switcher removed — see new styles above) */

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: white !important;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px; /* Remonte pour laisser la place au bouton Appel */
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ============================
   BOUTON APPEL FLOTTANT MOBILE
   ============================ */
.call-float {
    display: none; /* Caché sur desktop */
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0369A1, #0EA5E9);
    color: white !important;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(3,105,161,0.45);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.call-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(3,105,161,0.6);
}

/* Afficher uniquement sur mobile */
@media (max-width: 768px) {
    .call-float {
        display: flex;
    }
    /* Remonter le bouton WhatsApp pour laisser la place au bouton Call */
    .whatsapp-float {
        bottom: 140px;
    }
}

/* ============================
   SOCIAL LINKS FOOTER
   ============================ */
.social-links {
    justify-content: center !important;
}

/* ============================
   SECTION SEO — Texte enrichi
   ============================ */
.seo-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 80px 0;
}

.seo-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.seo-section h3 {
    font-size: 18px;
    margin: 24px 0 10px;
    color: var(--text-main);
}

.seo-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 860px;
    margin-bottom: 12px;
}

.seo-section ul {
    list-style: disc;
    padding-left: 24px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

.seo-section ul li {
    margin-bottom: 6px;
}

/* ============================
   COOKIE BANNER
   ============================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    padding: 15px 0;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cookie-content p {
        font-size: 13px;
    }
    #accept-cookies {
        width: 100%;
        padding: 10px 0 !important;
    }
}
