/* ============================================
   IMPORT DES COULEURS
   ============================================ */
@import url('couleurs.css');

/* ============================================
   Variables CSS - Configuration Premium
   ============================================ */
:root {
    /* Palette Sombre & Premium */
    --bg-dark: #0a0e17;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);

    /* Accents Lumineux */
    --primary: #00f2ff;
    /* Cyan Néon */
    --primary-dark: #00b8c2;
    --secondary: #7000ff;
    /* Violet Néon */
    --accent: #ff0055;
    /* Rose Néon */

    /* Textes */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dark: #0a0e17;

    /* Typographie */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Effets Premium */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --neon-glow: 0 0 10px rgba(0, 242, 255, 0.5), 0 0 20px rgba(0, 242, 255, 0.3);

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================
   Reset et Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.1) 0%, transparent 40%);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ============================================
   Typographie
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: 100px 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    align-items: center;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.text-center {
    text-align: center;
}

.align-start {
    align-items: start !important;
}

/* ============================================
   Header et Navigation (Glassmorphism)
   ============================================ */
.main-header {
    background: rgba(10, 14, 23, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.nav-link:hover::after {
    width: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--bg-card-hover);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 242, 255, 0.1);
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
}

.card-text {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.card-body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ============================================
   Hero Section Premium
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: url('../img/showroom_bg.png') no-repeat center center/cover;
    margin-top: 101px;
}

.hero::before {
    content: '';
    font-size: 1.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Badges & Elements
   ============================================ */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.vehicule-specs i {
    color: var(--primary);
}

.vehicule-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
    margin-bottom: 1rem;
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.map-card {
    padding: 0;
    overflow: hidden;
    height: 100%;
    min-height: 450px;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    text-align: right;
}

/* ============================================
   Catalogue & Filtres
   ============================================ */
.filters-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-bottom: var(--glass-border);
}

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

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.btn-filter {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-filter:hover {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.btn-reset {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
    transition: var(--transition);
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.form-group input[type="file"] {
    padding: 0.5rem;
    background: transparent;
    gap: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 242, 255, 0.1);
}

.process-number {
    width: 70px;
    height: 70px;
    background: rgba(10, 14, 23, 0.8);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    border-radius: 50%;
    transform: scale(1.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step h3 {
    color: var(--text-main);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.garantie-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.garantie-price.free {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.garantie-price.paid {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

/* Contact - Info */
.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
}

/* Alerts */
.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert-success {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Avis - Testimonials */
.stars {
    color: #f39c12;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ============================================
   Mobile Menu Toggle
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {

    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(10, 14, 23, 0.98) 0%, rgba(20, 30, 48, 0.98) 100%);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        padding-top: 0;
        transition: var(--transition);
        z-index: 1001;
        padding-left: 2rem;
        padding-right: 2rem;
        overflow-y: auto;
    }

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

    .nav-menu li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards;
    }

    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-menu.active li:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-link {
        font-size: 1.5rem;
        display: inline-block;
        font-weight: 600;
    }

    .nav-menu .btn {
        width: auto;
        min-width: 200px;
        margin: 1rem auto 0;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        display: inline-block;
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    }

    /* Grilles & Layout */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-brillant {
        font-size: 3rem;
    }

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

    .hero-content {
        padding: var(--spacing-md);
        margin: 0 var(--spacing-sm);
    }

    /* Cartes */
    .card {
        min-height: auto;
    }

    .card.map-card {
        min-height: 300px;
    }

    /* Filtres Catalogue */
    .filters-section .grid-3 {
        grid-template-columns: 1fr;
    }

    .filter-group {
        margin-bottom: 1rem;
    }

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

    /* Footer */
    footer .grid-3 {
        text-align: center;
    }
}