/* Reset et styles de base améliorés */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --gray: #95a5a6;
    --light-gray: #f8f9fa;
    --transition: all 0.3s ease;
    --container-padding: clamp(15px, 4vw, 40px);
    --section-padding: clamp(50px, 10vw, 100px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Base pour les unités rem */
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container amélioré avec unités fluides */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Boutons améliorés */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vw, 12px) clamp(16px, 3vw, 24px);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    min-height: 44px; /* Taille minimale pour le toucher */
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-small {
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 2vw, 16px);
    font-size: 0.9rem;
    min-height: 36px;
}

/* Section styles améliorés */
.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    word-wrap: break-word;
}

.section-title::after {
    content: '';
    display: block;
    width: clamp(60px, 15vw, 80px);
    height: 4px;
    background-color: var(--secondary-color);
    margin: 1rem auto 2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: clamp(2rem, 6vw, 3rem);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.5;
}

.text-center {
    text-align: center;
}

/* Barre de navigation améliorée */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(15px, 3vw, 20px) 0;
    background-color: var(--black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: clamp(12px, 2.5vw, 15px) 0;
    background-color: rgba(21, 20, 20, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
   font-size: 12px;
    color: var(--white);
}

.logo span {
    color: #c0392b;
}

.logo img {
    height: clamp(50px, 10vw, 70px);
    width: auto;
    border-radius: 100%;
    border: clamp(3px, 1vw, 5px) solid black;
    box-shadow: 0 0 8px rgba(248, 245, 245, 0.915);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
}

.nav-menu a {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    font-size: clamp(0.9rem, 2vw, 1rem);
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: var(--transition);
}

/* Hero section améliorée */
.hero {
    min-height: clamp(500px, 80vh, 800px);
    display: flex;
    align-items: center;
    position: relative;
    margin-top: clamp(60px, 10vw, 80px);
    padding: 20px 0;
}

.hero-image {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: min(600px, 90%);
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.8rem;
  line-height: 1.2;
  word-wrap: break-word;
}

.hero p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  line-height: 1.5;
}


.hero-buttons {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
     display: flex;
  flex-direction: column; /* ou row pour côte à côte */
  align-items: center;    /* centre horizontalement */              /* espace entre les boutons */
  margin-top: 20px;
    
}

/* Services section améliorée */
.services-section {
    padding: var(--section-padding) 0;
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin-top: clamp(30px, 6vw, 50px);
}

.service-card {
    background-color: var(--white);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    margin: 0 auto 20px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: clamp(1.5rem, 4vw, 2rem);
    flex-shrink: 0;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Véhicules en vedette améliorés */
.featured-vehicles {
    padding: var(--section-padding) 0;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin: clamp(30px, 6vw, 50px) 0;
}

.louer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin: clamp(30px, 6vw, 50px) 0;
}

.vehicle-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.vehicle-image {
    height: clamp(300px, 50vw, 400px);
    overflow: hidden;
    flex-shrink: 0;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-info {
    padding: clamp(15px, 3vw, 20px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-make {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.vehicle-make h3 {
    color: var(--primary-color);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.vehicle-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 15px);
    margin: 15px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.spec-item i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.vehicle-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
    flex-wrap: wrap;
}

/* Pourquoi nous choisir amélioré */
.why-us {
    padding: var(--section-padding) 0;
    background-color: var(--light-gray);
}

.why-us .container {
    display: flex;
    align-items: center;
    gap: clamp(30px, 6vw, 50px);
    flex-wrap: wrap;
}

.why-us-content {
    flex: 1 1 min(500px, 100%);
}

.why-us-content h2 span {
    color: var(--secondary-color);
}

.why-us-image {
    flex: 1 1 min(500px, 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-us-image img {
    width: 100%;
    height: auto;
    display: block;
}

.advantages-list {
    margin-top: clamp(25px, 5vw, 40px);
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.advantage-item i {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--secondary-color);
    margin-right: clamp(10px, 2vw, 15px);
    margin-top: 5px;
    flex-shrink: 0;
}

.advantage-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.advantage-item p {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Témoignages améliorés */
.testimonials {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.testimonials-slider {
    display: flex;
    gap: clamp(20px, 4vw, 30px);
    overflow-x: auto;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    margin-top: clamp(30px, 6vw, 50px);
    scrollbar-width: thin;
}

.testimonials-slider::-webkit-scrollbar {
    height: 6px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.testimonial-card {
    min-width: min(350px, 85vw);
    background-color: var(--light-gray);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 8px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.testimonial-content {
    position: relative;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.testimonial-content i {
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: clamp(2rem, 5vw, 3rem);
    color: rgba(231, 76, 60, 0.1);
    z-index: 0;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    border-radius: 50%;
    object-fit: cover;
    margin-right: clamp(10px, 2vw, 15px);
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Section CTA améliorée */
.cta-section {
    padding: clamp(50px, 8vw, 80px) 0;
    background-color: black;
    color: var(--white);
}

.cta-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(20px, 4vw, 30px);
    flex-wrap: wrap;
}

.cta-content {
    flex: 1 1 min(500px, 100%);
}

.cta-content h2 {
    margin-bottom: 15px;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.cta-content p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.cta-buttons {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    flex-wrap: wrap;
}

/* Pied de page amélioré */
.footer {
    background-color: black;
    color: var(--white);
}

.footer-main {
    padding: clamp(50px, 8vw, 80px) 0 clamp(30px, 6vw, 50px);
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(25px, 5vw, 40px);
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3 span {
    color: #c0392b;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: clamp(12px, 2.5vw, 15px);
}

.footer-col ul li a {
    color: var(--gray);
    transition: var(--transition);
    display: block;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: clamp(12px, 2.5vw, 15px);
    color: var(--gray);
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-info {
    background: rgb(16, 16, 16);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.footer-bottom {
    padding: clamp(15px, 3vw, 20px) 0;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: clamp(15px, 3vw, 20px);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* =============================
   ✅ Media Queries améliorées
============================= */

/* Tablettes (768px à 1024px) */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 80%);
        height: 100vh;
        background-color: var(--black);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content {
        text-align: center;
    }
    
    .why-us .container {
        flex-direction: column;
    }
    
    .cta-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

/* Mobiles (480px à 768px) */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .vehicle-actions {
        flex-direction: column;
    }
    
    .vehicle-actions .btn {
        width: 100%;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Petits mobiles (jusqu'à 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .service-card,
    .vehicle-card,
    .testimonial-card {
        padding: 15px;
    }
    
    .advantages-list {
        margin-top: 20px;
        
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
    }
    
    .advantage-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Orientation paysage sur mobiles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .nav-menu {
        padding-top: 60px;
        overflow-y: auto;
    }
    
    .nav-menu li {
        margin: 5px 0;
    }
}

/* Prévention du zoom sur iOS */
@media (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px; /* Empêche le zoom automatique sur iOS */
    }
}

/* Support des écrans haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
    /* Votre site semble déjà avoir un thème sombre intégré */
}

/* Réduction de mouvement pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Véhicules en vedette améliorés - IMAGES OPTIMISÉES */
.featured-vehicles {
    padding: var(--section-padding) 0;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin: clamp(30px, 6vw, 50px) 0;
}

.louer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin: clamp(30px, 6vw, 50px) 0;
}

.vehicle-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* CONTAINER D'IMAGE AMÉLIORÉ */
.vehicle-image {
    position: relative;
    height: clamp(220px, 45vw, 350px); /* Hauteur augmentée */
    min-height: 220px; /* Hauteur minimale garantie */
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Fond de dégradé en attendant le chargement */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGE OPTIMISÉE */
.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image couvre tout le container */
    object-position: center; /* Centre l'image */
    transition: var(--transition);
    background-color: var(--light-gray); /* Fond de secours */
}

/* Effet de zoom au survol amélioré */
.vehicle-card:hover .vehicle-image img {
    transform: scale(1.08); /* Zoom légèrement augmenté */
    filter: brightness(1.05); /* Légère augmentation de luminosité */
}

/* Indicateur de chargement pour les images */
.vehicle-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
    opacity: 0;
}

.vehicle-image.loading::before {
    opacity: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Style pour quand l'image est chargée */
.vehicle-image.loaded::before {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Amélioration du contraste pour les véhicules sombres */
.vehicle-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(transparent, rgba(0,0,0,0.1));
    pointer-events: none;
}

.vehicle-info {
    padding: clamp(15px, 3vw, 20px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-make {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.vehicle-make h3 {
    color: var(--primary-color);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.3;
}

.vehicle-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    white-space: nowrap;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 15px);
    margin: 15px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    flex: 1 1 calc(50% - 10px); /* Deux colonnes sur mobile */
    min-width: 120px;
}

.spec-item i {
    margin-right: 5px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.vehicle-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
    flex-wrap: wrap;
}

/* Badge pour les véhicules populaires */
.vehicle-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Styles spécifiques pour différentes orientations d'images */
.vehicle-image.portrait img {
    object-fit: contain; /* Pour les images portrait */
    background-color: var(--light-gray);
}

.vehicle-image.landscape img {
    object-fit: cover; /* Pour les images paysage */
}

/* =============================
   ✅ MEDIA QUERIES SPÉCIFIQUES POUR LES IMAGES
============================= */

/* Tablettes */
@media (max-width: 1024px) {
    .vehicle-image {
        height: clamp(200px, 35vw, 300px);
    }
    
    .spec-item {
        flex: 1 1 100%; /* Une colonne sur tablette */
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .vehicle-image {
        height: clamp(180px, 50vw, 250px); /* Hauteur adaptative sur mobile */
    }
    
    .vehicle-make {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .vehicle-price {
        align-self: flex-start;
    }
    
    .vehicle-actions {
        flex-direction: column;
    }
    
    .vehicle-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .vehicle-image {
        height: clamp(160px, 55vw, 220px);
    }
    
    .vehicle-specs {
        flex-direction: column;
        gap: 8px;
    }
    
    .spec-item {
        flex: 1 1 100%;
        min-width: auto;
    }
}

/* Orientation paysage sur mobiles */
@media (max-height: 500px) and (orientation: landscape) {
    .vehicle-image {
        height: 200px; /* Hauteur fixe en paysage */
    }
}

/* Écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .vehicle-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mode contraste élevé */
@media (prefers-contrast: high) {
    .vehicle-image {
        border: 1px solid var(--dark-color);
    }
}

/* Mode économie d'énergie */
@media (prefers-reduced-motion: reduce) {
    .vehicle-card:hover .vehicle-image img {
        transform: none;
        filter: none;
    }
}