
/* CSS Variables for consistent theming - Thème Chic */
:root {
    --primary-color: #1A1A1A; /* Noir profond */
    --secondary-color: #C6A78D; /* Or Rosé / Champagne Chic */
    --background-color: #FFFFFF;
    --text-color: #333333;
    --accent-color: #F8F8F8;
    --gold-light: #C6A78D;
    --gold-dark: #9A8068;
    --primary-font: 'Playfair Display', serif; /* Font Serif élégante */
    --secondary-font: 'Montserrat', sans-serif; /* Font Sans-serif moderne */
    --transition: all 0.3s ease;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.05); /* Ombre plus légère */
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--secondary-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--primary-font);
    color: var(--primary-color);
    line-height: 1.2;
}

.gold-text {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    overflow: hidden;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 200px;
    margin-bottom: 20px;
}




/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo .logo {
    height: 40px; /* Taille du logo */
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Floating Contact Buttons */
.floating-contacts {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1);
}

.whatsapp { background-color: #25D366; }
.phone { background-color: var(--primary-color); }
.instagram { background-color: #C13584; }


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fond dégradé subtil adapté à la mode */
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.6) 0%, rgba(26, 26, 26, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    cursor: pointer;
    z-index: 10;
}

.scroll-arrow {
    width: 4px;
    height: 8px;
    background-color: white;
    margin: 6px auto;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}


/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.section-header p {
    color: #666;
    font-style: italic;
    font-weight: 300;
}

/* About Section */
.about {
    background-color: var(--background-color);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 2rem;
    color: #555;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto; 
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    flex: 1;
}

.feature i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.feature p {
    font-size: 0.9rem;
    color: #777;
}


/* Collection Section (Catalogue) */
.catalogue {
    background-color: var(--accent-color);
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-group {
    min-width: 150px;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--secondary-font);
    font-size: 1rem;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: white url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M10.293%203.293l-4%204a1%201%200%2001-1.414%200l-4-4A1%201%200%20011.707%202.293l4%204l4-4a1%201%200%20011.414%201.414z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 10px center;
    background-size: 12px;
}

.filter-select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.filter-reset {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-reset:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Product Card (Vehicle Card) */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.vehicle-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0; /* Initial state for animation */
    transform: translateY(20px); /* Initial state for animation */
    animation: none !important; /* Managed by JS for filtering */
}

.vehicle-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.vehicle-image {
    position: relative;
    height: 350px; /* Adapté pour des photos de mode */
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-card:hover .vehicle-overlay {
    opacity: 1;
}

.vehicle-info {
    padding: 1.5rem;
}

.vehicle-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.vehicle-type {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.vehicle-price {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.vehicle-specs {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #777;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #eee;
}

.vehicle-specs span i {
    color: var(--primary-color);
    margin-right: 5px;
}

.vehicle-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 1rem;
}

.action-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
}

.action-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}


/* Lookbook Section (Sell) */
.sell {
    background-color: var(--background-color);
}

.sell-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.sell-info {
    flex: 2;
}

.sell-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.sell-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.sell-benefits li {
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
    color: #555;
}

.sell-benefits li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.sell-image {
    flex: 1;
}

.sell-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
}


/* Accessories Section */
.accessories {
    background-color: var(--accent-color);
    text-align: center;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.accessory-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.accessory-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.accessory-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.accessory-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.accessory-card p {
    color: #777;
    font-size: 0.9rem;
}


/* Contact Section */
.contact {
    background-color: var(--background-color);
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: #555;
    font-size: 1rem;
}

.map-container {
    margin-top: 2rem;
}

.contact-form {
    flex: 1;
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="ville"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--secondary-font);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}


/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-logo .logo {
    filter: brightness(0) invert(1); /* Logo blanc pour le footer sombre */
    height: 40px;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.95rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-section h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.7rem;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 15px;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #999;
}


/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-content,
    .sell-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image,
    .sell-image {
        margin-top: 2rem;
    }

    .about-image img,
    .sell-image img {
        max-height: 300px;
    }
    
    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
    }

    .footer-content {
        justify-content: space-around;
        text-align: center;
    }
    
    .footer-section {
        min-width: 45%;
        margin-bottom: 2rem;
    }
    
    .footer-section ul {
        padding-left: 0;
    }

    .footer-contact {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.5s ease;
        gap: 3rem;
    }

    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.5rem;
    }

    .navbar.scrolled .nav-link {
        color: var(--primary-color);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .vehicle-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .accessories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
        display: block;
    }

    .footer-contact p {
        justify-content: center;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .floating-contacts {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        top: auto;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}


/* Loading States and Animations */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation pour les cartes après filtrage */
.vehicle-card.show {
    opacity: 1;
    transform: translateY(0);
}