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

:root {
    --primary: #0a0a0a;
    --secondary: #c9a961;
    --accent: #d4af6a;
    --bg-light: #0a0a0a;
    --text-light: #ffffff;
    --text-dark: #f2f2f2;
    --gray: #a3a3a3;
    --border: rgba(201, 169, 97, 0.2);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

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

nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

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

.contact-btn {
    background: var(--secondary);
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.contact-btn::after {
    display: none;
}

/* Hero */
.hero {
    margin-top: 80px;
    height: 90vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(201,169,97,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--secondary);
    display: block;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.stat {
    border-left: 3px solid var(--secondary);
    padding-left: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Vehicles Section */
.vehicles-section {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -1px;
}

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

.vehicle-card {
    background: #141414;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeIn 0.6s ease-out backwards;
}

.vehicle-card:nth-child(1) { animation-delay: 0.1s; }
.vehicle-card:nth-child(2) { animation-delay: 0.2s; }
.vehicle-card:nth-child(3) { animation-delay: 0.3s; }
.vehicle-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.vehicle-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    position: relative;
    overflow: hidden;
}

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

.vehicle-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--secondary);
    opacity: 0.1;
    border-radius: 50%;
}

.vehicle-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vehicle-info {
    padding: 2rem;
}

.vehicle-brand {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.vehicle-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.vehicle-specs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.view-btn {
    padding: 0.8rem 1.8rem;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.view-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateX(5px);
}

/* Footer */
footer {
    background: #000;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    nav ul {
        display: none;
    }

    .hero {
        height: auto;
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

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


/* ========== HERO SEARCH BTN ========== */
.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}
.hero-search-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

/* ========== SEARCH SECTION ========== */
.search-section {
    background: var(--primary);
    padding: 2rem 3rem;
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.search-icon-big {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.search-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.1rem;
}
.search-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
}

.search-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.search-field label {
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.search-field select,
.search-field input {
    padding: 0.55rem 0.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c9a961' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2rem;
    cursor: pointer;
}
.search-field input {
    background-image: none;
    padding-right: 0.8rem;
}
.search-field select option {
    background: #1a1a1a;
    color: white;
}
.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(201, 169, 97, 0.08);
}
.search-field input::placeholder {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

.search-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    border-top: 1px solid rgba(201, 169, 97, 0.12);
    padding-top: 1rem;
}

.btn-search {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-search:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.3);
}

.btn-reset {
    padding: 0.65rem 1.4rem;
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-reset:hover {
    color: white;
    border-color: rgba(255,255,255,0.3);
}

/* ========== VEHICLE CARD UPDATES ========== */
.vehicle-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    color: rgba(201, 169, 97, 0.4);
}
.vehicle-title-small {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== NO RESULTS ========== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}
.no-results-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.no-results h3 { font-size: 1.3rem; color: var(--text-dark); margin-bottom: 0.5rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .search-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .search-section { padding: 1.5rem; }
    .search-grid { grid-template-columns: 1fr 1fr; }
    .search-actions { flex-direction: column; }
    .btn-search, .btn-reset { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .search-grid { grid-template-columns: 1fr; }
}

/* view-btn as link */
a.view-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* DÉSACTIVER COMPLÈTEMENT LE SMOOTH SCROLL */
* {
    scroll-behavior: auto !important;
}

html {
    scroll-behavior: auto !important;
}

body {
    scroll-behavior: auto !important;
}


/* ===== Thème noir : champs de formulaire ===== */
input, select, textarea {
    background-color: #1c1c1c;
    color: #f2f2f2;
    border-color: rgba(255, 255, 255, 0.15);
}
input::placeholder, textarea::placeholder { color: #777; }
select option { background: #1c1c1c; color: #f2f2f2; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #1c1c1c inset; -webkit-text-fill-color: #f2f2f2; }


/* ===== Bouton WhatsApp ===== */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #25d366;
    color: #fff !important;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}
.whatsapp-btn:hover {
    background: #1ebe5b;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}
.whatsapp-btn::after { display: none !important; }
.whatsapp-float { display: none; }
@media (max-width: 768px) {
    .whatsapp-float {
        display: flex; align-items: center; justify-content: center;
        position: fixed; right: 18px; bottom: 18px; z-index: 2000;
        width: 58px; height: 58px; border-radius: 50%;
        background: #25d366; color: #fff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    }
    .whatsapp-float svg { width: 28px; height: 28px; }
}

nav ul { align-items: center; }
nav ul li:has(.whatsapp-btn) { margin-left: -1.8rem; }
