/* ==========================================================
   VARIABLES & DESIGN SYSTEM (STYLE WAS VEHICLES)
   ========================================================== */
:root {
    --bg-dark: #0a0f18;
    --bg-card: #121a28;
    --bg-light: #f4f6fa;
    --bg-white: #ffffff;
    
    --text-main: #18202d;
    --text-muted: #64748b;
    --text-light: #cbd5e1;
    --text-white: #ffffff;
    
    /* Couleur d'accentuation haute visibilité */
    --accent: #ff4d00;          /* Orange secours énergique */
    --accent-hover: #e04400;
    --tech-blue: #0ea5e9;       /* Bleu LED / Assistance */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Rajdhani', 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset de base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 24, 0.94);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 6px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-logo {
    max-height: 48px;
    width: auto;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    background: var(--accent);
    color: var(--text-white);
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: var(--transition);
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1587745416684-47953f16f02f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
    padding-top: 80px;
    color: var(--text-white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 15, 24, 0.95) 0%, rgba(10, 15, 24, 0.75) 55%, rgba(10, 15, 24, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin-left: 5%;
    padding: 2rem 0;
    animation: fadeIn 1s ease-out;
}

.hero-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 77, 0, 0.15);
    border-left: 3px solid var(--accent);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.accent-text {
    color: var(--accent);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 77, 0, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

.btn-block {
    width: 100%;
}

/* ==========================================================
   SECTIONS GÉNÉRALES
   ========================================================== */
.vehicles-section, .features-section, .contact-section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.text-center {
    text-align: center;
}

.section-subtitle {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.title-bar {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 15px;
}

.title-bar.center {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================
   VEHICLES & FILTERING (ANIMATIONS DES IMAGES)
   ========================================================== */
.filter-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--bg-dark);
    color: var(--text-white);
    border-color: var(--bg-dark);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.vehicle-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Image et animation hover */
.card-media {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #000;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.vehicle-card:hover .card-media img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(10, 15, 24, 0.85);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 3px;
    border-left: 2px solid var(--accent);
    z-index: 2;
    backdrop-filter: blur(4px);
}

.media-hover {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 24, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.vehicle-card:hover .media-hover {
    opacity: 1;
}

.quick-view-btn {
    background: var(--text-white);
    color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transform: translateY(15px);
    transition: var(--transition);
}

.vehicle-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: var(--accent);
    color: var(--text-white);
}

.card-body {
    padding: 25px;
}

.card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tech-blue);
    letter-spacing: 1px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 6px 0 12px 0;
    font-weight: 700;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.specs-preview {
    list-style: none;
    border-top: 1px solid #edf2f7;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.specs-preview li {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-check {
    color: var(--accent);
    font-weight: bold;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--bg-dark);
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.card-cta:hover {
    color: var(--accent);
    gap: 10px;
}

/* ==========================================================
   FEATURES / QUALITE
   ========================================================== */
.features-section {
    background: var(--bg-dark);
    color: var(--text-white);
}

.features-section .section-title {
    color: var(--text-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 35px 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.feature-icon {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================
   STATS
   ========================================================== */
.stats-section {
    background: var(--accent);
    padding: 50px 0;
    color: var(--text-white);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: start;
}

.info-block {
    margin-top: 1.5rem;
}

.info-block strong {
    display: block;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.info-block p, .info-block a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
}

.info-block a:hover {
    color: var(--accent);
}

.contact-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.15);
}

/* ==========================================================
   MODAL LIGHTBOX
   ========================================================== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 24, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 2001;
    animation: modalIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.modal-info {
    padding: 30px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.3rem;
}

.footer-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================
   ANIMATIONS & RESPONSIVE
   ========================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2.5rem 1rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .hero-title { font-size: 2.2rem; }
    .hero-content { margin-left: 0; }
    .vehicles-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}