/* Base - Thème clair uniquement */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --text: #0b0d12;
  --muted: #667085;
  --primary: #cca300;
  --primary-600: #b38f00;
  --outline: #e5e7eb;
  --success: #10b981;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; }
html, body { 
  height: 100%; 
  overflow-x: hidden; /* Éviter le scroll horizontal */
  width: 100%;
}

/* Force le mode clair sur tous les navigateurs */
html {
  color-scheme: light only;
  background-color: #ffffff !important;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0b0d12 !important;
  background: #ffffff !important;
  color-scheme: light only;
  background-color: #ffffff !important;
}

/* Correction spécifique pour Brave */
@supports (color-scheme: light only) {
  html, body {
    color-scheme: light only !important;
    background-color: #ffffff !important;
    color: #0b0d12 !important;
  }
}

/* Force les éléments à rester en mode clair */
body * {
  color-scheme: light only;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
}
.btn-primary { 
  background: #cca300 !important; 
  color: #0b0d12 !important; 
  border: 1px solid #cca300 !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(204, 163, 0, 0.2);
}
.btn-primary:hover { 
  background: #b38f00 !important; 
  border-color: #b38f00 !important;
  color: #0b0d12 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(204, 163, 0, 0.3);
}
.btn-outline { border-color: var(--outline); background: transparent; color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(255, 255, 255, 0.1); }

/* Bouton de connexion admin */
.admin-login-btn {
  font-size: 16px !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid #d1d5db !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  text-decoration: none !important;
  color: #374151 !important;
}

.admin-login-btn:hover {
  background: #cca300 !important;
  border-color: #cca300 !important;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(204, 163, 0, 0.4) !important;
  text-decoration: none !important;
}

.admin-icon {
  font-size: 18px !important;
  transition: all 0.3s ease !important;
  display: block !important;
}

.admin-login-btn:hover .admin-icon {
  filter: brightness(1.2) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Forcer le style rond pour l'admin */
.actions .admin-login-btn {
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 2px solid #d1d5db !important;
}

.actions .admin-login-btn:hover {
  background: #cca300 !important;
  border-color: #cca300 !important;
  color: #ffffff !important;
}

/* Menu admin mobile */
.admin-menu-item {
  border-top: 1px solid var(--outline);
  margin-top: 10px;
  padding-top: 16px;
  color: var(--muted) !important;
}

.admin-menu-item:hover {
  color: var(--primary) !important;
}
.btn-small { height: 36px; padding: 0 12px; border-radius: 8px; }

.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--outline); background: transparent; color: var(--text); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--panel); border-color: var(--primary); color: var(--primary); }

.card { background: var(--panel); border: 1px solid var(--outline); border-radius: 16px; padding: 20px; }
.card-title { 
  margin: 0 0 12px; 
  font-size: 18px; 
  color: #000000;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Header */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  backdrop-filter: blur(10px); 
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--outline); 
}
.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 64px; 
  padding: 0 20px; 
}

.header-inner a, .header-inner button { 
  color: var(--text); 
}

.header-inner .logo { 
  filter: none; 
}

/* Alignement des éléments du header */
.header-inner .brand {
  display: flex;
  align-items: center;
}

.header-inner .actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-inner .main-nav {
  display: flex;
  align-items: center;
}

.main-nav { 
  display: none; 
  gap: 32px; 
}

.actions { 
  display: none; 
  gap: 12px; 
}
.nav-toggle { display: inline-flex; height: 36px; width: 44px; align-items: center; justify-content: center; background: transparent; color: var(--text); border: 1px solid var(--outline); border-radius: 8px; cursor: pointer; }

/* Dropdown Menu */
.nav-dropdown { position: relative; }
.dropdown-trigger { position: relative; display: flex; align-items: center; gap: 4px; }
.dropdown-arrow { 
  font-size: 10px; 
  transition: transform 0.2s ease; 
  color: var(--muted);
}
.nav-dropdown:hover .dropdown-arrow { 
  transform: rotate(180deg); 
  color: var(--primary);
}
.dropdown-menu { 
  position: absolute; 
  top: 100%; 
  left: 0; 
  min-width: 220px; 
  background: var(--panel); 
  border: 1px solid var(--outline); 
  border-radius: 12px; 
  box-shadow: 0 8px 25px var(--shadow), 0 2px 8px var(--shadow); 
  opacity: 0; 
  visibility: hidden; 
  transform: translateY(-8px); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  z-index: 100; 
  overflow: hidden;
}
.dropdown-menu a { 
  display: block; 
  padding: 14px 20px; 
  color: var(--text); 
  text-decoration: none; 
  border-bottom: 1px solid var(--outline); 
  transition: all 0.2s ease; 
  font-weight: 500;
  font-size: 14px;
  position: relative;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { 
  background: var(--panel-alt); 
  color: var(--primary); 
  padding-left: 24px;
}
.dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #cca300;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}
.dropdown-menu a:hover::before {
  transform: scaleY(1);
}
.nav-dropdown:hover .dropdown-menu { 
  opacity: 1; 
  visibility: visible; 
  transform: translateY(0); 
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Sidebar */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw; /* Éviter le débordement sur petits écrans */
  height: 100vh;
  background: var(--panel);
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  box-shadow: -4px 0 20px var(--shadow-strong);
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--outline);
  background: var(--panel-alt);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.mobile-menu-close:hover {
  background: #e5e7eb;
}

.mobile-menu-content {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.mobile-menu-item:hover {
  background: var(--panel-alt);
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 28px;
}

.menu-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.mobile-menu-footer {
  padding: 20px;
  border-top: 1px solid var(--outline);
  background: var(--panel-alt);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hide desktop nav on mobile */
@media (max-width: 959px) {
  .main-nav { display: none !important; }
  .actions { display: none !important; }
  .nav-toggle { display: block; }
  
  /* Corriger le header sur mobile */
  .header-inner {
    padding: 0 15px;
    height: 56px;
  }
  
  /* Éviter le débordement du logo */
  .logo {
    max-width: 120px;
    height: auto;
  }
  
  /* Bouton admin sur mobile */
  .admin-login-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 12px !important;
  }
}

@media (min-width: 960px) {
  .main-nav { display: inline-flex; }
  .actions { display: inline-flex; }
  .nav-toggle { display: none; }
  .main-nav.open { 
    position: static; 
    background: transparent; 
    border: none; 
    box-shadow: none; 
    flex-direction: row; 
    padding: 0; 
  }
  .actions.open { 
    position: static; 
    background: transparent; 
    border: none; 
    box-shadow: none; 
    margin-top: 0; 
  }
}

/* Hero */
.hero { 
  padding: 40px 0 24px; 
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('./assets/image voiture.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  min-height: 400px;
  position: relative;
}

/* Force l'affichage de l'image hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('./assets/image voiture.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}
.hero-inner { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
.hero-copy h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; color: white; }
.hero-copy p { color: rgba(255, 255, 255, 0.9); margin: 0 0 16px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* Corrections pour mobile */
@media (max-width: 768px) {
  /* Container principal */
  .container {
    padding: 0 15px;
    max-width: 100%;
  }
  
  /* Hero section */
  .hero {
    min-height: 300px;
    background-attachment: scroll; /* Évite les problèmes sur mobile */
    padding: 20px 0;
  }
  
  .hero::before {
    background-attachment: scroll;
  }
  
  /* Corriger le texte du hero */
  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero-copy p {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
  }
  
  /* Corriger le formulaire de réservation */
  .reservation-form {
    margin: 20px 0;
    padding: 20px 15px;
    border-radius: 12px;
  }
  
  /* Corriger les boutons */
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-copy h1 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 960px) {
  .hero { padding: 56px 0 32px; }
  .hero-inner { grid-template-columns: 1.2fr 1fr; }
  .hero-copy h1 { font-size: 38px; }
}

.reservation-form { 
  background: linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95)), url('./assets/image voiture.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border: 2px solid var(--primary);
  box-shadow: 0 8px 32px rgba(204, 163, 0, 0.2);
  backdrop-filter: blur(2px);
}
.reservation-form label { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  margin-bottom: 12px; 
  color: #000000;
  font-weight: 600;
  font-size: 14px;
}
.reservation-form input { 
  height: 42px; 
  border-radius: 10px; 
  border: 2px solid #e0e0e0; 
  background: rgba(255, 255, 255, 0.95); 
  color: #000000; 
  padding: 0 12px; 
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.reservation-form input:focus { 
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(204,163,0,0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.reservation-form input[readonly] {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
  cursor: default;
}

.reservation-form input[readonly]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204,163,0,0.25);
}
.reservation-form .form-note { 
  color: #333333; 
  font-size: 12px; 
  margin-top: 8px; 
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Améliorations mobile pour le formulaire de réservation */
@media (max-width: 768px) {
  .reservation-form {
    margin: 0 10px;
    padding: 20px 15px;
  }
  
  /* Grille des véhicules sur mobile */
  #cars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 10px;
  }
  
  /* Filtres sur mobile */
  .filters {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px;
    margin: 20px 0;
  }
  
  .chip {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .reservation-form label {
    font-size: 15px;
    font-weight: 700;
  }
  
  .reservation-form input {
    height: 48px;
    font-size: 16px;
    border: 2px solid #d0d0d0;
  }
  
  .card-title {
    font-size: 20px;
    text-align: center;
  }
}

/* Sections */
.section { padding: 40px 0; }
.section.alt { 
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}
.section.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('./assets/image voiture.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}
.section.alt .container {
  position: relative;
  z-index: 1;
}
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.section h2 { 
  margin: 0 0 20px; 
  font-size: 28px; 
  font-weight: 700;
  text-align: center;
  color: #2c3e50;
  position: relative;
}
.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #f39c12);
  border-radius: 2px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.grid-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-cards { grid-template-columns: 1fr 1fr 1fr; } }

.car-card { background: var(--panel); border: 1px solid var(--outline); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.car-card img { 
  width: 100%; 
  height: 180px; 
  object-fit: contain; /* Change de cover à contain pour préserver les proportions */
  background: #ffffff !important; /* Arrière-plan blanc forcé */
  transition: transform 0.3s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 10px; /* Ajouter du padding pour créer un cadre blanc */
  box-sizing: border-box;
}

/* Correction spécifique pour les images problématiques */
.car-card img[src*="jogger exterieur"],
.car-card img[src*="T-roc"] {
  background: #ffffff !important;
  filter: brightness(1.1) contrast(1.05); /* Éclaircir légèrement l'image */
  padding: 15px; /* Plus de padding pour ces images spécifiques */
}

.car-card img:hover {
  transform: scale(1.02);
}

/* Optimisation pour l'image Renault Clio - Page principale */
.car-card img[src*="renault-clio-maroc"] {
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
}

/* Optimisation pour l'image Grand i10 Sedan - Page principale */
.car-card img[src*="grand-i10- exer"] {
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
}

/* Optimisation pour l'image Megane - Page principale */
.car-card img[src*="exterieur_megane"] {
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
}

/* Optimisation pour l'image Accent - Page principale */
.car-card img[src*="hyunda-accent_exterieur"] {
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
}

/* Optimisation pour l'image i20 - Page principale */
.car-card img[src*="i20 exterieur .webp"] {
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
}

/* Optimisation pour l'image Tucson - Page principale */
.car-card img[src*="tuscon exter"] {
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
}

/* Optimisation pour l'image Dacia Logan - Page principale */
.car-card img[src*="dacia logan exter"] {
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
}

/* Optimisation pour l'image Dacia Sandero - Page principale */
.car-card img[src*="dacia Sandero exter"] {
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
}

/* Optimisation pour les images Clio dans le modal */
.car-modal img[src*="clio 5 inter"], 
.car-modal img[src*="clio 5 ar"] {
  object-fit: cover;
  background: #f8f9fa;
  border-radius: 4px;
}

/* Optimisation pour l'image principale Clio 5 dans le modal */
.car-modal img[src*="renault-clio-maroc"] {
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
}

/* Optimisation pour l'image Grand i10 Sedan dans le modal */
.car-modal img[src*="grand-i10- exer"] {
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
}

/* Optimisation pour l'image Megane dans le modal */
.car-modal img[src*="exterieur_megane"] {
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
}

/* Optimisation pour l'image Accent dans le modal */
.car-modal img[src*="hyunda-accent_exterieur"] {
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
}

/* Optimisation pour l'image i20 dans le modal */
.car-modal img[src*="i20 exterieur .webp"] {
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
}

/* Optimisation pour l'image Tucson dans le modal */
.car-modal img[src*="tuscon exter"] {
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
}

/* Optimisation pour l'image Dacia Logan dans le modal */
.car-modal img[src*="dacia logan exter"] {
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
}

/* Optimisation pour l'image Dacia Sandero dans le modal */
.car-modal img[src*="dacia Sandero exter"] {
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
}
.car-info { padding: 14px; display: grid; gap: 10px; }
.car-info h3 { margin: 0; font-size: 18px; }
.meta { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; color: var(--muted); font-size: 14px; }
.price-line { 
  display: flex; 
  align-items: baseline; 
  gap: 8px; 
  flex-wrap: wrap;
}
.price-line strong { font-size: 20px; color: var(--text); }

/* Prix barré */
.old-price {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

/* Badge de réduction */
.discount-badge {
  background: #ff4757;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 8px;
  white-space: nowrap;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Services */
.services-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 24px; 
  margin-top: 40px;
}
.service { 
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid transparent;
  border-radius: 16px; 
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #f39c12);
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}
.service h3 {
  color: #2c3e50;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  position: relative;
}
.service p {
  color: #5a6c7d;
  line-height: 1.6;
  margin: 0;
}
.service-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.cta-row { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 640px) { 
  .services-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
  }
}
@media (min-width: 960px) { 
  .services-grid { 
    grid-template-columns: 1fr 1fr 1fr 1fr; 
    gap: 24px;
  }
}

/* Reviews */
.reviews { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review { background: var(--panel); border: 1px solid var(--outline); border-radius: 12px; padding: 16px; }
.review .author { color: var(--muted); font-size: 14px; }
@media (min-width: 960px) { .reviews { grid-template-columns: 1fr 1fr 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--outline); padding: 24px 0; background: #ffffff; color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.link-list, .contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.location-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.location-link:hover {
  color: var(--primary);
}

.location-icon {
  font-size: 16px;
}
.cta-col { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-bottom { margin-top: 16px; color: var(--muted); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Floating CTA */
.floating-cta { position: fixed; right: 16px; bottom: 16px; height: 56px; width: 56px; border-radius: 50%; background: #25D366; color: #001; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.35); font-size: 22px; cursor: pointer; }
.floating-cta:hover { transform: translateY(-2px); }

/* Car Modal */
.car-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.car-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.car-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--panel);
  border-radius: 16px;
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.car-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.car-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--outline);
  background: var(--panel-alt);
}

.car-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.car-modal-close:hover {
  background: var(--outline);
}

.car-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.car-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--panel-alt);
}

.car-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--primary);
}

.car-modal-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.car-specs {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--outline);
}

.spec-label {
  font-weight: 500;
  color: var(--muted);
}


.spec-value {
  font-weight: 600;
  color: var(--text);
}

.spec-value.price {
  color: var(--primary);
  font-size: 18px;
}

.car-description h3,
.car-availability h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}

.car-description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.availability-calendar {
  background: var(--panel-alt);
  border-radius: 12px;
  padding: 16px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-nav {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.calendar-nav:hover {
  background: var(--outline);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.calendar-day.available {
  background: var(--success);
  color: white;
}

.calendar-day.unavailable {
  background: var(--outline);
  color: var(--muted);
  cursor: not-allowed;
}

.calendar-day.selected {
  background: var(--primary);
  color: white;
}

.calendar-day:hover:not(.unavailable) {
  transform: scale(1.1);
}

.car-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--outline);
  background: var(--panel-alt);
}

/* Styles pour les switches de véhicules */
.vehicle-switches {
  display: none;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.vehicle-switches.show {
  display: block;
}

.switch-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.switch-row:last-child {
  margin-bottom: 0;
}

.switch-label {
  font-weight: 600;
  color: #333;
  min-width: 100px;
  font-size: 14px;
}

.switch-btn {
  display: flex;
  background: #fff;
  border-radius: 25px;
  border: 2px solid #e9ecef;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.switch-option {
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: transparent;
  border: none;
  flex: 1;
  text-align: center;
  position: relative;
}

.switch-option:hover {
  background: #f8f9fa;
  color: #333;
}

.switch-option.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.switch-option.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
}

@media (max-width: 768px) {
  .car-modal {
    width: 95%;
    max-height: 95vh;
    top: 2.5vh;
    left: 2.5%;
    transform: translate(0, 0) scale(1);
    position: fixed;
  }
  
  .car-modal.active {
    transform: translate(0, 0) scale(1);
  }
  
  .car-modal-content {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    max-height: calc(95vh - 140px);
    overflow-y: auto;
  }
  
  .main-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
  }
  
  .car-modal-footer {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  
  .car-modal-header {
    padding: 16px;
    flex-shrink: 0;
  }
  
  .car-modal-details {
    gap: 16px;
  }
  
  .car-specs {
    margin-bottom: 16px;
  }
  
  .spec-item {
    padding: 6px 0;
    font-size: 14px;
  }
  
  .car-description h3,
  .car-availability h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .car-description p {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Styles pour très petits écrans (mobile portrait) */
@media (max-width: 480px) {
  /* Container ultra petit */
  .container {
    padding: 0 10px;
  }
  
  /* Header ultra petit */
  .header-inner {
    padding: 0 10px;
    height: 50px;
  }
  
  .logo {
    max-width: 100px;
  }
  
  /* Hero ultra petit */
  .hero {
    padding: 15px 0;
    min-height: 250px;
  }
  
  .hero-copy h1 {
    font-size: 22px;
    line-height: 1.2;
  }
  
  .hero-copy p {
    font-size: 14px;
  }
  
  /* Formulaire ultra petit */
  .reservation-form {
    padding: 15px 10px;
    margin: 15px 0;
  }
  
  /* Sidebar ultra petit */
  .mobile-menu {
    width: 280px;
    max-width: 90vw;
  }
  
  /* Modal ultra petit */
  .car-modal {
    width: 98%;
    max-height: 98vh;
    top: 1vh;
    left: 1%;
  }
  
  .car-modal-content {
    padding: 12px;
    max-height: calc(98vh - 120px);
  }
  
  .main-image {
    height: 150px;
  }
  
  .car-modal-header {
    padding: 12px;
  }
  
  .car-modal-header h2 {
    font-size: 18px;
  }
  
  .car-modal-footer {
    padding: 12px;
  }
  
  .btn {
    height: 40px;
    font-size: 14px;
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .spec-item {
    font-size: 13px;
  }
  
  .car-description h3,
  .car-availability h3 {
    font-size: 15px;
  }
}

/* Styles pour les boutons admin dans le menu mobile uniquement */
.mobile-menu .admin-btn,
.mobile-menu .admin-login-btn,
.mobile-menu a[href*="admin"],
.mobile-menu button[onclick*="admin"] {
    display: block !important;
    background-color: #4CAF50 !important;
    color: white !important;
    padding: 12px 20px !important;
    margin: 10px 0 !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 1000 !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 44px !important;
    line-height: 1.2 !important;
}


/* Hover pour les boutons admin dans le menu mobile uniquement */
.mobile-menu .admin-btn:hover,
.mobile-menu .admin-login-btn:hover,
.mobile-menu a[href*="admin"]:hover,
.mobile-menu button[onclick*="admin"]:hover {
    background-color: #45a049 !important;
    transform: none !important;
    color: white !important;
}

@media (max-width: 768px) {
    .mobile-menu .admin-btn,
    .mobile-menu .admin-login-btn,
    .mobile-menu a[href*="admin"],
    .mobile-menu button[onclick*="admin"] {
        font-size: 16px !important;
        padding: 12px 20px !important;
        margin: 10px 0 !important;
        min-height: 48px !important;
    }
}

/* iPhone et petits écrans */
@media (max-width: 414px) {
    .mobile-menu .admin-btn,
    .mobile-menu .admin-login-btn,
    .mobile-menu a[href*="admin"],
    .mobile-menu button[onclick*="admin"] {
        font-size: 14px !important;
        padding: 10px 15px !important;
        margin: 8px 0 !important;
        min-height: 44px !important;
    }
}

/* Samsung S21, Xiaomi et très petits écrans */
@media (max-width: 360px) {
    .mobile-menu .admin-btn,
    .mobile-menu .admin-login-btn,
    .mobile-menu a[href*="admin"],
    .mobile-menu button[onclick*="admin"] {
        font-size: 13px !important;
        padding: 8px 12px !important;
        margin: 6px 0 !important;
        min-height: 40px !important;
    }
}

/* Force le mode clair pour tous les navigateurs */
html, body {
    color-scheme: light only !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Force l'affichage en mode clair pour tous les éléments */
* {
    color-scheme: light only !important;
}

/* Correction spécifique pour le menu mobile en mode clair */
.mobile-menu {
    background: #ffffff !important;
    color: #000000 !important;
}

.mobile-menu * {
    color: #000000 !important;
    background: transparent !important;
}

/* Exception pour le bouton ADMIN dans le menu mobile qui doit rester vert */
.mobile-menu .admin-btn,
.mobile-menu .admin-login-btn,
.mobile-menu a[href*="admin"],
.mobile-menu button[onclick*="admin"] {
    background-color: #4CAF50 !important;
    color: white !important;
}