/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-yellow: #fce83a;
    --primary-hover: #e5d129;
    --dark-bg: #131313;
    --nav-bg: rgba(19, 19, 19, 0.9);
    --text-white: #ffffff;
    --text-light: #d1d5db;
    --font-family: "Inter", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. NAVBAR & HEADER
   ========================================================================== */
.hero-wrapper {
    padding: 1.5rem;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 700px;
    border-radius: 24px;
    overflow: hidden;
    background-image: url("https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?q=80&w=2000&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}
.navbar > a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.2) 60%,
        transparent 100%
    );
    z-index: 1;
}

.navbar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    color: var(--primary-yellow);
}

.nav-pill {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-yellow);
}

.mobile-menu-btn {
    display: none;
}

/* Menu Déroulant (Pages) */
.dropdown {
    position: relative;
    padding: 1rem 0;
}
.arrow {
    font-size: 0.8rem;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nav-bg);
    list-style: none;
    min-width: 220px;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown:hover .arrow {
    transform: rotate(180deg);
}
.dropdown-menu li {
    margin-bottom: 0.8rem;
}
.dropdown-menu li:last-child {
    margin-bottom: 0;
}
.dropdown-menu a {
    font-size: 0.9rem;
    color: var(--text-light);
}
.dropdown-menu a:hover {
    color: var(--primary-yellow);
}

/* Hero Text */
.hero-content {
    position: relative;
    z-index: 10;
    margin-top: auto;
    margin-bottom: 6rem;
    padding-left: 4rem;
}
.hero-content h1 {
    color: var(--text-white);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   3. COMPOSANTS (Boutons, Animations)
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s;
    margin-bottom: 1rem;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}
.hero-content .btn-primary {
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
}
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-bg);
    color: var(--primary-yellow);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    margin-left: 1rem;
    font-size: 1.1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   4. STRUCTURE DES CARTES DE VOITURES (Base)
   ========================================================================== */
.car-card {
    background-color: #f6f7f9;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: var(--dark-bg);
    display: block;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.car-image {
    width: 100%;
    margin-bottom: 2rem;
}
.car-image img {
    width: 100%;
    height: auto;
}
.car-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.car-title-row h3 {
    font-size: 1.2rem;
    font-weight: 600;
}
.car-price {
    font-size: 0.85rem;
    color: #6b7280;
}
.car-price strong {
    font-size: 1.2rem;
    color: var(--dark-bg);
    font-weight: 700;
}
.car-specs {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.spec-item i {
    font-size: 1.5rem;
    color: var(--dark-bg);
}
.spec-text {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}
.spec-text span {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
}

/* ==========================================================================
   5. SECTIONS D'ACCUEIL (index.html)
   ========================================================================== */
/* Features */
.features-section {
    padding: 5rem 3rem;
    background-color: #ffffff;
}
.features-header {
    text-align: center;
    margin-bottom: 4rem;
}
.features-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 500;
    color: var(--dark-bg);
    line-height: 1.3;
    letter-spacing: -1px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
}
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature-icon {
    font-size: 3rem;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
}
.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.feature-card p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Slider Collection */
.collection-section {
    padding: 5rem 3rem;
    overflow: hidden;
}
.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}
.collection-header h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--dark-bg);
}
.slider-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.slider-track::-webkit-scrollbar {
    display: none;
}
.slider-track .car-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: 350px;
    scroll-snap-align: start;
}
.slider-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.slider-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-bg);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}
.slider-btn:hover {
    transform: translateX(5px);
}
#slider-prev:hover {
    transform: translateX(-5px);
}

/* Categories - BASE DESKTOP (> 1520px) */
.categories-section {
    width: 100%;
    padding: 5rem 3rem;
    background-color: #ffffff;
}
.categories-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1520px;
    margin: 0 auto;
}
.categories-title {
    flex: 0 0 25%;
}
.categories-title h2 {
    font-size: clamp(2rem, 2vw, 2.8rem);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -1px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-yellow);
    width: fit-content;
    padding: 0.5rem 1rem;
}
.categories-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(
        4,
        1fr
    ); /* 4 colonnes pour très grands écrans */
    gap: 1.5rem;
}
.category-card {
    position: relative;
    background-color: var(--dark-bg);
    border-radius: 16px;
    padding: 2rem 1.25rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}
.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-yellow);
}
.category-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--primary-yellow);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}
.category-card:hover .category-arrow {
    opacity: 1;
    transform: translate(0, 0);
    border-color: var(--primary-yellow);
}
.category-image-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(252, 232, 58, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    transition: background-color 0.3s ease;
}
.category-image-wrapper i {
    font-size: 1.7rem;
    color: var(--primary-yellow);
}
.category-card:hover .category-image-wrapper {
    background-color: var(--primary-yellow);
}
.category-card:hover .category-image-wrapper i {
    color: var(--dark-bg);
}
.category-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
}
.category-card .category-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: -0.4rem;
}

/* Steps Section */
.steps-section {
    padding: 5rem 3rem;
    background-color: #ffffff;
}
.steps-wrapper {
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--dark-bg);
}
.steps-video {
    flex: 1;
    position: relative;
    min-height: 500px;
}
.steps-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background-color: rgba(19, 19, 19, 0.7);
    color: var(--primary-yellow);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
}
.video-btn:hover {
    background-color: rgba(19, 19, 19, 0.9);
}
.steps-content {
    flex: 1;
    padding: 5rem 4rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.steps-content h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 3.5rem;
    font-weight: 500;
    color: #fff;
}
.step-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.step-number {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.step-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}
.step-text p {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 3rem;
    background-color: #ffffff;
}
.testimonials-section .section-title {
    margin-bottom: 4rem;
    text-align: center;
}
.testimonials-masonry {
    column-count: 3;
    column-gap: 2rem;
}
.testimonial-card {
    background-color: #f6f7f9;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}
.stars {
    display: flex;
    gap: 4px;
    color: var(--dark-bg);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.testimonial-card p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.renter-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.renter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.renter-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-bg);
}

/* ==========================================================================
   6. PAGE : TOUTES LES VOITURES (cars.html)
   ========================================================================== */
.all-cars-section {
    padding: 6rem 3rem;
    background-color: #ffffff;
}
.page-header {
    margin-bottom: 4rem;
    text-align: center;
}
.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
    letter-spacing: -1px;
}
.page-header p {
    color: #6b7280;
    font-size: 1.1rem;
}
.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
/* Override pour la grille : la carte prend toute la largeur de sa colonne, sans comportement slider */
.cars-grid .car-card {
    min-width: auto;
    margin: 0;
    flex: none;
    scroll-snap-align: none;
}

/* ==========================================================================
   7. PAGE : DÉTAILS DE LA VOITURE (car-details.html)
   ========================================================================== */
.car-details-section {
    padding: 4rem 3rem;
    background: #fff;
}
.details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
.details-image-box {
    background: #f6f7f9;
    border-radius: 24px;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.details-image-box img {
    width: 100%;
    max-width: 550px;
    object-fit: contain;
}
.details-info-box h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    color: var(--dark-bg);
}
.detail-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.detail-meta .divider {
    margin: 0 0.5rem;
    color: #d1d5db;
}
.detail-desc {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.price-action-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-bg);
}
.price-period {
    color: #6b7280;
    font-size: 0.9rem;
    margin-left: 0.2rem;
}
.action-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.call-info {
    display: flex;
    flex-direction: column;
}
.call-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-bg);
}
.call-number {
    font-size: 0.9rem;
    color: #6b7280;
}
.specs-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 2.5rem 0;
}
.specs-row {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.features-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--dark-bg);
}
.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    list-style: none;
    padding: 0;
}
.features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #4b5563;
}
.features-list li i {
    color: var(--dark-bg);
    font-size: 1.2rem;
}

/* ==========================================================================
   8. PAGE : CONTACT (contact.html)
   ========================================================================== */
.contact-section {
    padding: 6rem 3rem;
    background-color: #ffffff;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--dark-bg);
}
.contact-intro p {
    color: #6b7280;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    line-height: 1.7;
}
.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.detail-group {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.detail-group i {
    font-size: 1.8rem;
    color: var(--primary-yellow);
    background: var(--dark-bg);
    padding: 1rem;
    border-radius: 12px;
}
.detail-group h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--dark-bg);
}
.detail-group p {
    font-size: 0.95rem;
    color: #4b5563;
}
.contact-form-box {
    background: #f6f7f9;
    padding: 3.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--dark-bg);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-yellow);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.footer-wrapper {
    padding: 0 1.5rem 1.5rem 1.5rem;
    background-color: #ffffff;
}
.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-radius: 24px;
    padding: 5rem 3rem 2rem 3rem;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-brand {
    flex: 2;
    max-width: 400px;
}
.footer-brand .logo {
    margin-bottom: 3rem;
}
.newsletter-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ffffff;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}
.newsletter-form input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.newsletter-form input:focus {
    border-color: var(--primary-yellow);
}
.newsletter-form input::placeholder {
    color: #9ca3af;
}
.newsletter-form .btn-primary {
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
}
.footer-links {
    flex: 1;
}
.utility-links {
    flex: 2;
}
.footer-heading {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2rem;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #ffffff;
}
.footer-links a.active {
    color: var(--primary-yellow);
}
.utility-grid {
    display: flex;
    gap: 4rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.copyright {
    font-size: 0.9rem;
    color: #9ca3af;
}
.copyright a {
    text-decoration: none;
}
.highlight {
    color: var(--primary-yellow);
    font-weight: 500;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    color: #9ca3af;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}
.social-links a:hover {
    color: var(--primary-yellow);
}

/* ==========================================================================
   10. MEDIA QUERIES : LAPTOPS & ECRANS MOYENS (Max 1520px)
       -> Active exactement 2 cartes par ligne comme tu l'as demandé.
   ========================================================================== */
@media (max-width: 1520px) {
    .categories-container {
        flex-direction: column;
        align-items: center; /* Centre le contenu globalement */
        gap: 3rem;
    }
    .categories-title {
        flex: none;
        width: 100%;
        text-align: center;
    }
    .categories-title h2 {
        margin: 0 auto; /* Centre le fond jaune du titre */
    }
    .categories-grid {
        width: 100%;
        max-width: 900px; /* Empêche les cartes d'être immenses sur un écran de 1400px */
        grid-template-columns: repeat(
            2,
            1fr
        ); /* 2 cartes par ligne à partir de 1520px ! */
        gap: 2rem;
        margin: 0 auto;
    }
}

/* ==========================================================================
   11. MEDIA QUERIES (TABLETTE - Max 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Accueil */
    .slider-track .car-card {
        flex: 0 0 calc(50% - 1rem);
    }

    .steps-wrapper {
        flex-direction: column;
    }
    .steps-video {
        min-height: 350px;
    }
    .steps-content {
        padding: 4rem 2rem;
    }
    .testimonials-masonry {
        column-count: 2;
    }

    /* Pages Secondaires */
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .details-layout {
        gap: 2.5rem;
    }

    /* Footer */
    .footer-top {
        flex-wrap: wrap;
    }
    .footer-brand {
        flex: 1 1 100%;
        max-width: none;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   12. MEDIA QUERIES (MOBILE - Max 768px) L'ARCHITECTURE IMPECCABLE
   ========================================================================== */
@media (max-width: 768px) {
    /* --- Globals --- */
    section,
    .hero-wrapper {
        border-top-left-radius: 0px !important;
        border-top-right-radius: 0px !important;
        padding: 0 !important;
    }
    .features-section,
    .collection-section,
    .categories-section,
    .testimonials-section,
    .all-cars-section,
    .car-details-section,
    .contact-section {
        padding: 4rem 1.5rem !important;
    }

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

    /* --- Navbar & Hero --- */
    .navbar {
        padding: 1.5rem;
        flex-direction: row;
    }
    .mobile-menu-btn {
        display: flex;
        background-color: var(--primary-yellow);
        color: var(--dark-bg);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 6px;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
    }
    .nav-pill {
        display: none;
        position: absolute;
        top: 80px;
        left: 1.5rem;
        right: 1.5rem;
        background-color: var(--nav-bg);
        padding: 2rem;
        border-radius: 16px;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .nav-pill.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .dropdown-menu {
        position: relative;
        top: 0;
        background-color: transparent;
        border: none;
        padding: 1rem 0 0 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .hero-section {
        border-radius: 0;
        min-height: 100vh;
    }
    .hero-content {
        padding: 0 1.5rem;
        text-align: left;
        margin-bottom: 4rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* --- Sliders et Grilles Accueil --- */
    .collection-header {
        margin: 0rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .slider-track {
        padding: 0 0 1rem 0;
    }
    .slider-track .car-card {
        flex: 0 0 85%;
        min-width: auto;
    }

    .categories-title h2 {
        margin: 0 auto;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .steps-wrapper {
        border-radius: 0;
        flex-direction: column-reverse;
    }
    .testimonials-masonry {
        column-count: 1;
    }

    /* --- Page Cars (cars.html) --- */
    .page-header h1 {
        font-size: 2.2rem;
    }
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cars-grid .car-card {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        flex: none !important;
    }

    /* --- Page Details (car-details.html) --- */
    .details-layout {
        grid-template-columns: 1fr;
    }
    .details-image-box {
        padding: 3rem 1.5rem;
        border-radius: 16px;
    }
    .details-info-box h1 {
        font-size: 2rem;
    }
    .price-action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .features-list {
        grid-template-columns: 1fr;
    }

    /* --- Page Contact (contact.html) --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-intro h1 {
        font-size: 2.2rem;
    }
    .contact-form-box {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    /* --- Footer --- */
    .site-footer {
        border-radius: 0;
        padding: 4rem 1.5rem 2rem 1.5rem;
    }
    .footer-brand {
        margin-bottom: 2rem;
    }
    .utility-grid {
        flex-direction: column;
        gap: 2rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        text-align: left;
    }
}
