/* =====================================================
   CSS COMPLET PRODUCTION — Icônes moto/vélo agrandies
   + Slider horizontal universel + conteneurs adaptatifs
   + Onglets Acheter/Louer/Enchère avec effet verre
   ===================================================== */

.card-hover:hover { transform: translateY(-4px); }
.section-bg { background: #f9fafb; }
.status-open { background: #10b981; }
.status-closed { background: #ef4444; }
.rating-stars { filter: none; }
.garage-logo { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.scroll-container { scrollbar-width: thin; scrollbar-color: #cbd5e0 #f7fafc; }
.scroll-container::-webkit-scrollbar { height: 8px; }
.scroll-container::-webkit-scrollbar-track { background: #f7fafc; border-radius: 4px; }
.scroll-container::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }
.scroll-container::-webkit-scrollbar-thumb:hover { background: #a0aec0; }
.service-badge { background: #f3f4f6; }
.book-button { background: #3b82f6; }
.book-button:hover { background: #2563eb; }

:where([class^="ri-"])::before { content: "\f3c2"; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
}
.rtl {
  direction: rtl;
  text-align: right;
}
.rtl .ml-1 { margin-left: 0; margin-right: 0.25rem; }
.rtl .ml-2 { margin-left: 0; margin-right: 0.5rem; }
.rtl .mr-1 { margin-right: 0; margin-left: 0.25rem; }
.rtl .mr-2 { margin-right: 0; margin-left: 0.5rem; }
.rtl .mr-4 { margin-right: 0; margin-left: 1rem; }
.rtl .space-x-4 > * + * { margin-left: 0; margin-right: 1rem; }
.rtl .space-x-6 > * + * { margin-left: 0; margin-right: 1.5rem; }
.font-rubik-mono { font-family: 'Sora', sans-serif; }
.font-cairo { font-family: 'Inter', sans-serif; }
.slide { transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; }

/* Bouton Recherche Avancée */
.btn-advanced-search {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-advanced-search::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}
.btn-advanced-search:hover::before { left: 100%; }
.hidden { display: none !important; }

/* CACHER LA SCROLLBAR POUR TOUS LES NAVIGATEURS */
html, body {
  scrollbar-width: none; /* Pour Firefox */
  -ms-overflow-style: none; /* Pour IE et ancien Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0px;
  background: transparent; /* Pour Chrome, Safari et nouveau Edge */
  display: none;
}

:root {
  /* CODE COULEUR DU LOGO LOTOOTI */
  --primary: #3D5AFE;
  --primary-dark: #2945e0;
  --rent: #059669;
  --rent-dark: #047857;
  --auction: #d97706;
  --auction-dark: #b45309;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -6px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* HERO SECTION - VERROUILLÉE À 100VH SANS SCROLL */
.hero-section {
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height pour mobile (corrige le bug de la barre d'adresse) */
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  background-image: url('../assets/backgroundindex2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* ajustez l'opacité si besoin */
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero-header {
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 10;
  padding: 0;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  word-break: break-word;
  line-height: 1.2;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== ONGLETS ACHETER / LOUER / ENCHÈRE — EFFET VERRE ===== */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  padding: 0 4px;
  flex-shrink: 0;
}

.tabs-wrapper {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: auto;
  max-width: 100%;
}

.tab-btn {
  position: relative;
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: block;
  white-space: nowrap;
  margin-bottom: 0;
}

.tab-btn::after {
  display: none; /* supprime l'ancienne ligne sous l'onglet */
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}

.tab-btn.tab-active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tab-btn#tab-rent.tab-active {
  color: var(--rent);
}

.tab-btn#tab-auction.tab-active {
  color: var(--auction);
}

.form-tab {
  background: var(--card-bg);
  padding: 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.form-inner-wrapper {
  display: flex;
  gap: 0;
  align-items: stretch;
  overflow: visible;
  flex-shrink: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden; /* pour que les enfants respectent les coins */
}

.vehicle-type-sidebar {
  display: flex;
  flex-direction: column;
  width: 50px;
  flex-shrink: 0;
  background: #f8fafc;
  border-right: 1px solid var(--border);
  border-radius: var(--radius) 0 0 0;
}

.vehicle-type-group {
  display: flex;
  flex-direction: column;
  background: transparent;
  gap: 0;
  width: 100%;
  margin: 0;
  align-items: center;
}

.vtype-btn, .rent-vtype-btn, .auction-vtype-btn {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vtype-btn svg, .rent-vtype-btn svg, .auction-vtype-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.vtype-btn img, .rent-vtype-btn img, .auction-vtype-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.vtype-btn:hover, .rent-vtype-btn:hover, .auction-vtype-btn:hover {
  background: #e2e8f0;
  color: var(--text);
}

.vtype-btn.active { background: #ffffff; color: var(--primary); border-bottom: 3px solid var(--primary); }
.rent-vtype-btn.active { background: #ffffff; color: var(--rent); border-bottom: 3px solid var(--rent); }
.auction-vtype-btn.active { background: #ffffff; color: var(--auction); border-bottom: 3px solid var(--auction); }

.form-main-area {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-radius: 0 var(--radius) 0 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  padding-left: 2px;
}

.dual-select {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
}

.custom-select {
  position: relative;
  width: 100%;
  flex: 1;
  min-width: 0;
}

.custom-select select {
  width: 100%;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 0.8rem;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  height: 34px;
  min-width: 0;
}

.custom-select::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.custom-select select:hover { border-color: var(--border-hover); }
.custom-select select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.custom-select select:disabled { background-color: #f8fafc; color: #94a3b8; cursor: not-allowed; }

.combo-group {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  flex: 1;
  min-width: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  box-sizing: border-box;
  height: 34px;
}
.combo-group input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border: none;
  background-color: transparent;
  font-size: 0.8rem;
  color: var(--text);
  appearance: none;
  -moz-appearance: textfield;
  height: 100%;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.15s ease;
}
.combo-group input::-webkit-outer-spin-button,
.combo-group input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.combo-group input:focus { outline: none; }
.combo-group .select-arrow {
  position: relative;
  width: 30px;
  flex-shrink: 0;
  border: none;
  border-left: 1px solid var(--border);
  background-color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.combo-group .select-arrow select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: transparent;
  color: transparent;
  font-size: 0;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
  margin: 0;
  padding: 0;
}
.combo-group .select-arrow .arrow-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  z-index: 1;
}
.combo-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.combo-group:focus-within .select-arrow { border-left-color: var(--primary); }

.form-actions { display: flex; flex-direction: column; margin-top: 8px; gap: 8px; flex-shrink: 0; }
.form-actions-row { display: flex; justify-content: space-between; align-items: stretch; gap: 8px; }

.btn-primary {
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  line-height: 1.3;
}
.btn-reset, .btn-advanced {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  flex: 1 1 0;
  min-width: 0;
  background: #ffffff;
}

.btn-reset { color: var(--text-muted); }
.btn-reset:hover { background: #f8fafc; border-color: var(--border-hover); color: var(--text); }
.btn-reset svg { width: 12px; height: 12px; flex-shrink: 0; }

.btn-buy { background: var(--primary); color: #fff; } .btn-buy:hover { background: var(--primary-dark); }
.btn-rent { background: var(--rent); color: #fff; } .btn-rent:hover { background: var(--rent-dark); }
.btn-auction { background: var(--auction); color: #fff; } .btn-auction:hover { background: var(--auction-dark); }
.btn-advanced-buy { color: var(--primary); border-color: #bcc7ff; background: #eef0ff; } .btn-advanced-buy:hover { background: #e0e3ff; }
.btn-advanced-rent { color: var(--rent); border-color: #a7f3d0; background: #ecfdf5; } .btn-advanced-rent:hover { background: #d1fae5; }
.btn-advanced-auction { color: var(--auction); border-color: #fed7aa; background: #fff7ed; } .btn-advanced-auction:hover { background: #ffedd5; }

.vehicle-icons-wrapper {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  width: 100%;
  flex-shrink: 0;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: visible; /* important pour ne pas couper les icônes agrandies */
}

/* SLIDER : toujours scrollable horizontalement si nécessaire */
.vehicle-icons-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}
.vehicle-icons-slider:active { cursor: grabbing; }
.vehicle-icons-slider::-webkit-scrollbar { display: none; }

.vehicle-icon-item {
  flex: 0 0 auto;
  width: auto;               /* largeur automatique pour s'adapter au contenu */
  min-width: 95px;           /* largeur minimale pour garder la cohérence */
  scroll-snap-align: center;
  cursor: pointer;
  text-align: center;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.vehicle-icon-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 90, 254, 0.1);
}

/* ==================== ICÔNES MOTO/VÉLO AGRANDIES ==================== */

/* 1. Hauteur de base pour toutes les icônes */
.vehicle-icon-item img {
  height: 45px;
  max-height: none;
  width: auto;
  max-width: 100%;           /* on remet max-width pour éviter un débordement horizontal interne */
  margin: 0 auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* 2. Sélecteurs élargis pour moto et vélo */
.moto-icons .vehicle-icon-item img,
.velo-icons .vehicle-icon-item img,
[class*="moto"] .vehicle-icon-item img,
[class*="velo"] .vehicle-icon-item img,
.vehicle-icon-item img[src*="moto"],
.vehicle-icon-item img[src*="velo"] {
  height: 60px !important;
  max-height: none !important;
  width: auto !important;
  max-width: none !important; /* autorise l'agrandissement horizontal si nécessaire */
}

/* 3. Traitement spécifique pour le vélo "Autre" (image carrée) */
.velo-icons .vehicle-icon-item[data-body-type="Autre"] img,
[class*="velo"] .vehicle-icon-item[data-body-type="Autre"] img,
.vehicle-icon-item[data-body-type="Autre"] img[src*="velo"] {
  height: 55px !important;
  max-width: none !important;
}

/* 4. Labels */
.vehicle-icon-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  display: block;
  line-height: 1.15;
}

/* 5. Item : min-height dynamique pour contenir l'image agrandie */
.vehicle-icon-item {
  overflow: visible !important;
  min-height: 84px;           /* hauteur minimale pour les petites icônes */
  justify-content: flex-start;
}

/* 6. Desktop : on renforce la taille et on adapte la hauteur du conteneur */
@media (min-width: 769px) {
  .moto-icons .vehicle-icon-item img,
  .velo-icons .vehicle-icon-item img,
  [class*="moto"] .vehicle-icon-item img,
  [class*="velo"] .vehicle-icon-item img,
  .vehicle-icon-item img[src*="moto"],
  .vehicle-icon-item img[src*="velo"] {
    height: 80px !important;
  }
  .velo-icons .vehicle-icon-item[data-body-type="Autre"] img,
  [class*="velo"] .vehicle-icon-item[data-body-type="Autre"] img,
  .vehicle-icon-item[data-body-type="Autre"] img[src*="velo"] {
    height: 70px !important;
  }

  /* Ajustement de la hauteur minimale des items pour éviter le débordement vertical */
  .vehicle-icon-item {
    min-height: 110px;
  }
  .moto-icons .vehicle-icon-item,
  .velo-icons .vehicle-icon-item,
  [class*="moto"] .vehicle-icon-item,
  [class*="velo"] .vehicle-icon-item {
    min-height: 115px; /* un peu plus pour être sûr */
  }
}

/* 7. Mobile : on garde une taille plus petite et on adapte aussi la hauteur */
@media (max-width: 768px) {
  .vehicle-icon-item img {
    height: 30px;
  }
  .moto-icons .vehicle-icon-item img,
  .velo-icons .vehicle-icon-item img,
  [class*="moto"] .vehicle-icon-item img,
  [class*="velo"] .vehicle-icon-item img,
  .vehicle-icon-item img[src*="moto"],
  .vehicle-icon-item img[src*="velo"] {
    height: 45px !important;
  }
  .velo-icons .vehicle-icon-item[data-body-type="Autre"] img,
  [class*="velo"] .vehicle-icon-item[data-body-type="Autre"] img,
  .vehicle-icon-item[data-body-type="Autre"] img[src*="velo"] {
    height: 40px !important;
  }
  .vehicle-icon-item {
    min-height: 70px;
  }
  .moto-icons .vehicle-icon-item,
  .velo-icons .vehicle-icon-item,
  [class*="moto"] .vehicle-icon-item,
  [class*="velo"] .vehicle-icon-item {
    min-height: 80px;
  }
}

@media (max-width: 360px) {
  .vehicle-icon-item img {
    height: 25px;
  }
  .moto-icons .vehicle-icon-item img,
  .velo-icons .vehicle-icon-item img,
  [class*="moto"] .vehicle-icon-item img,
  [class*="velo"] .vehicle-icon-item img,
  .vehicle-icon-item img[src*="moto"],
  .vehicle-icon-item img[src*="velo"] {
    height: 38px !important;
  }
  .velo-icons .vehicle-icon-item[data-body-type="Autre"] img,
  [class*="velo"] .vehicle-icon-item[data-body-type="Autre"] img,
  .vehicle-icon-item[data-body-type="Autre"] img[src*="velo"] {
    height: 34px !important;
  }
  .vehicle-icon-item {
    min-height: 62px;
  }
  .moto-icons .vehicle-icon-item,
  .velo-icons .vehicle-icon-item,
  [class*="moto"] .vehicle-icon-item,
  [class*="velo"] .vehicle-icon-item {
    min-height: 70px;
  }
}

/* Masquer les champs spécifiques aux véhicules */
.car-only, .moto-only { display: flex; }
.velo-only { display: none; }

body.vehicle-type-velo .car-only,
body.vehicle-type-velo .moto-only {
  display: none !important;
}

.hero-container {
  max-width: 700px !important;
}

.form-inner-wrapper {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.vehicle-type-sidebar {
  border-radius: var(--radius) 0 0 0;
}
.form-main-area {
  border-radius: 0 var(--radius) 0 0;
}
.vehicle-icons-wrapper {
  border-radius: 0 0 var(--radius) var(--radius);
}
/* Suppression des coins arrondis sur mobile pour le hero container */
@media (max-width: 768px) {
    .hero-container,
    .form-tab,
    .form-inner-wrapper,
    .vehicle-type-sidebar,
    .form-main-area,
    .vehicle-icons-wrapper {
        border-radius: 0 !important;
    }
}

/* Neutraliser l'état visité du lien Enchère */
a.tab-btn,
a.tab-btn:visited,
a.tab-btn:hover,
a.tab-btn:active,
a.tab-btn:focus {
    color: var(--text-muted);
    background: transparent;
    text-decoration: none;
}

/* Conserver le style actif si nécessaire */
a.tab-btn.tab-active,
a.tab-btn.tab-active:visited {
    background: #ffffff;
    color: var(--auction); /* ou var(--primary) selon vos règles */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


/* =====================================================
   CORRECTION SLIDER BODY TYPES & FUEL TYPES
   Desktop : icônes agrandies + grille flexible
   Mobile : slider horizontal natif
   ===================================================== */

/* Conteneur principal : pleine largeur */
#bodyTypesGrid.vehicle-icons-wrapper,
.vehicle-icons-wrapper.w-full {
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 3rem !important;
}

/* Slider : comportement responsive */
#bodyTypesGrid .vehicle-icons-slider,
.vehicle-icons-wrapper.w-full .vehicle-icons-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    overflow-x: visible;
    overflow-y: visible;
    padding: 12px;
    cursor: default;
}

/* Cartes : taille homogène avec icônes agrandies */
#bodyTypesGrid .vehicle-icon-item,
.vehicle-icons-wrapper.w-full .vehicle-icon-item {
    flex: 0 0 auto;
    width: 160px;                 /* Largeur augmentée pour desktop */
    min-width: 160px;
    margin: 0;
    padding: 16px 12px;           /* Plus de padding pour aérer */
}

/* Icônes agrandies sur desktop */
@media (min-width: 769px) {
    #bodyTypesGrid .vehicle-icon-item img,
    .vehicle-icons-wrapper.w-full .vehicle-icon-item img {
        height: 80px !important;   /* Icônes plus grandes */
        max-height: none !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain;
    }
    
    /* Icônes fuel (remixicon) plus grandes */
    #bodyTypesGrid .vehicle-icon-item i,
    .vehicle-icons-wrapper.w-full .vehicle-icon-item i {
        font-size: 48px !important; /* Icônes fuel plus grandes */
    }
    
    /* Labels plus lisibles */
    #bodyTypesGrid .vehicle-icon-label,
    .vehicle-icons-wrapper.w-full .vehicle-icon-label {
        font-size: 0.85rem !important;
        margin-top: 6px;
    }
    
    /* Compteur plus visible */
    #bodyTypesGrid .vehicle-icon-item .text-xs,
    .vehicle-icons-wrapper.w-full .vehicle-icon-item .text-xs {
        font-size: 0.75rem !important;
        margin-top: 4px;
    }
    
    /* Hauteur minimale des cartes ajustée */
    #bodyTypesGrid .vehicle-icon-item,
    .vehicle-icons-wrapper.w-full .vehicle-icon-item {
        min-height: 160px;          /* Hauteur cohérente avec icônes 80px */
        justify-content: flex-start;
    }
}

/* =====================================================
   MOBILE & TABLETTE (≤ 768px) : slider horizontal
   ===================================================== */
@media (max-width: 768px) {
    #bodyTypesGrid .vehicle-icons-slider,
    .vehicle-icons-wrapper.w-full .vehicle-icons-slider {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        gap: 12px;
        cursor: grab;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 8px 4px;
    }
    
    #bodyTypesGrid .vehicle-icons-slider::-webkit-scrollbar,
    .vehicle-icons-wrapper.w-full .vehicle-icons-slider::-webkit-scrollbar {
        display: none;
    }
    
    #bodyTypesGrid .vehicle-icon-item,
    .vehicle-icons-wrapper.w-full .vehicle-icon-item {
        width: 100px;
        min-width: 100px;
        min-height: 90px;
        padding: 8px;
        scroll-snap-align: center;
    }
    
    /* Icônes taille normale sur mobile */
    #bodyTypesGrid .vehicle-icon-item img,
    .vehicle-icons-wrapper.w-full .vehicle-icon-item img {
        height: 45px !important;
    }
    
    #bodyTypesGrid .vehicle-icon-item i,
    .vehicle-icons-wrapper.w-full .vehicle-icon-item i {
        font-size: 32px !important;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    #bodyTypesGrid .vehicle-icon-item,
    .vehicle-icons-wrapper.w-full .vehicle-icon-item {
        width: 80px;
        min-width: 80px;
        min-height: 75px;
    }
    
    #bodyTypesGrid .vehicle-icon-item img,
    .vehicle-icons-wrapper.w-full .vehicle-icon-item img {
        height: 35px !important;
    }
    
    #bodyTypesGrid .vehicle-icon-item i,
    .vehicle-icons-wrapper.w-full .vehicle-icon-item i {
        font-size: 28px !important;
    }
}


/* =====================================================
   MOBILE : masquer les champs "Min" (prix, année, km)
   ===================================================== */
@media (max-width: 640px) {
    .dual-select .combo-group:first-child {
        display: none !important;
    }
    .dual-select .combo-group:last-child {
        width: 100% !important;
    }
}


        body.vehicle-type-velo .car-only,
        body.vehicle-type-velo .moto-only {
            display: none !important;
        }
        body.vehicle-type-velo .span-on-velo {
            grid-column: 1 / -1 !important;
        }
        /* FIX : contour visible pour les icônes focusables au clavier */
        .vehicle-icon-item:focus-visible {
            outline: 2px solid #2563eb;
            outline-offset: 2px;
            border-radius: 8px;
        }
    
/* Transféré du style bas (fix FOUC) */
.velo-icons .vehicle-icon-item img { transform: scaleX(-1); }
.body-type-group[data-vehicle-type="velo"] .vehicle-icon-item img { transform: scaleX(-1); }

/* ═══════════════════════════════════════════════════════════════
   INDEX ONLY — Header transparent qui flotte sur le hero
   L'image hero continue visuellement "sous" le header, sans coupure
   Ne s'applique QUE sur index.php (body.page-index)
   ═══════════════════════════════════════════════════════════════ */

/* 1. Header devient absolute + transparent → il flotte au-dessus du hero */
body.page-index .hdr-desktop-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    z-index: 100 !important;
}

/* 2. Le hero démarre à top: 0 (le header ne pousse plus le contenu) */
body.page-index main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-index .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   INDEX ONLY — Retire l'overlay gris uniforme du hero
   Remplace par un léger dégradé noir en haut (lisibilité header)
   ═══════════════════════════════════════════════════════════════ */
body.page-index .hero-section::before {
    display: block !important;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 80px,
        rgba(0, 0, 0, 0) 180px
    ) !important;
}

/* ═══════════════════════════════════════════════════════════════
   INDEX ONLY — Header lisible sur l'image hero
   ═══════════════════════════════════════════════════════════════ */

/* 1. Dégradé top plus prononcé pour lisibilité header */
body.page-index .hero-section::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.35) 120px,
        rgba(0, 0, 0, 0) 220px
    ) !important;
}

/* 2. Logo Loto<em>oti</em> → blanc */
body.page-index .hdr-logo,
body.page-index .hdr-logo em {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
}

/* 3. Icônes du header (notifs, favoris, messages, covoiturage) → blanches */
body.page-index .hdr-icon-btn,
body.page-index .hdr-icon-btn i {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
}

/* Hover : garde l'effet visuel sur fond sombre */
body.page-index .hdr-icon-btn:hover,
body.page-index .hdr-icon-btn:hover i {
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
}

/* 4. Bouton recherche (loupe) */
body.page-index .hdr-search-btn,
body.page-index .hdr-search-btn i {
    color: #fff !important;
}

/* 5. Input de recherche : fond semi-transparent + texte blanc */
body.page-index .hdr-search-input {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.3) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}
body.page-index .hdr-search-input::placeholder {
    color: rgba(255,255,255,0.75) !important;
}

/* 6. Bouton flèche recherche */
body.page-index .hdr-search-go {
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}
body.page-index .hdr-search-go:hover {
    background: rgba(255,255,255,0.45) !important;
}

/* FIX double hover : annule le background sur l'icône (garde celui du parent) */
body.page-index .hdr-icon-btn:hover i,
body.page-index .hdr-icon-btn i:hover {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   INDEX ONLY — Éléments header en blanc (sur image hero transparente)
   ═══════════════════════════════════════════════════════════════ */

/* Logo Lotooti (déjà dans le CSS mais on sécurise) */
body.page-index .hdr-logo,
body.page-index .hdr-logo em {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
}

/* Lien "covoit" → blanc (même typo que le logo) */
body.page-index .hdr-covoit-link {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
}
body.page-index .hdr-covoit-link:hover,
body.page-index .hdr-covoit-link.active {
    color: #fff !important;
    opacity: 0.85;
}

/* Icônes header (notifs, favoris, messages) → blanches */
body.page-index .hdr-icon-btn,
body.page-index .hdr-icon-btn i {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
}
body.page-index .hdr-icon-btn:hover,
body.page-index .hdr-icon-btn:hover i {
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
}
body.page-index .hdr-icon-btn:hover i {
    background: transparent !important;
    box-shadow: none !important;
}

/* Bouton "Déposer une annonce" → blanc semi-transparent */
body.page-index .hdr-btn-sell {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: none !important;
}
body.page-index .hdr-btn-sell:hover {
    background: rgba(255,255,255,0.32) !important;
    border-color: rgba(255,255,255,0.55) !important;
}
body.page-index .hdr-btn-sell .hdr-btn-sell-text {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.45) !important;
}

/* Avatar profil → blanc semi-transparent */
body.page-index .hdr-avatar {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
body.page-index .hdr-avatar > div {
    background: transparent !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
body.page-index .hdr-avatar-guest {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
}
body.page-index .hdr-avatar-guest i { color: #fff !important; }
body.page-index .hdr-avatar:hover {
    background: rgba(255,255,255,0.35) !important;
    border-color: rgba(255,255,255,0.6) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2) !important;
}
body.page-index .hdr-avatar.active {
    background: rgba(255,255,255,0.4) !important;
    border-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3) !important;
}
body.page-index .hdr-online-dot {
    border-color: rgba(255,255,255,0.9) !important;
}

/* ═══════════════════════════════════════════════════════════════
   INDEX ONLY + DESKTOP — annuler min-height sur .vehicle-icon-item
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    body.page-index .vehicle-icon-item {
        min-height: auto !important;
        height: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE PORTRAIT — Version marketplace (Leboncoin, AutoScout24)
   Image en haut (280px) + form qui chevauche de 40px + header transparent
   Desktop : INCHANGÉ
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) and (orientation: portrait) {

    /* 1. HERO : image 280px en haut */
    body.page-index .hero-section {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-top: 320px !important;
        background-size: cover !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        background-color: #ffffff !important;
        position: relative !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* 2. Overlay gradient sur les 280px (header lisible) */
    body.page-index .hero-section::before {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 320px !important;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.20) 100px,
            rgba(0,0,0,0) 220px
        ) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    /* 3. Neutraliser ::after */
    body.page-index .hero-section::after {
        display: none !important;
    }

    /* 4. .hero-container : transparent + remonte de 150px sur l'image */
    body.page-index .hero-section .hero-container {
        position: relative !important;
        z-index: 2 !important;
        margin: -150px 0 0 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 5. .tabs-container : transparent (tabs sur l'image) */
    body.page-index .hero-section .tabs-container {
        background: transparent !important;
        padding: 0 16px 4px 16px !important;
        margin: 0 !important;
    }

    /* 6. .form-tab : TRANSPARENT */
    body.page-index .hero-section .form-tab {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* 7. .search-form : TRANSPARENT + marges côtés + écart réduit */
    body.page-index .hero-section .form-tab .search-form {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 6px 12px 0 12px !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    /* 8. .form-inner-wrapper : BLANC + arrondi + ombre (form blanc démarre ici) */
    body.page-index .hero-section .form-tab .form-inner-wrapper {
        background: #fff !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -6px 20px rgba(0,0,0,0.12) !important;
        overflow: hidden !important;
    }

    /* 9. .vehicle-icons-wrapper : BLANC + ombre légère en bas */
    body.page-index .hero-section .form-tab .vehicle-icons-wrapper {
        background: #fff !important;
        padding: 12px 16px 20px 16px !important;
        margin: 0 !important;
        border-radius: 0 0 20px 20px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    }

    /* 10. Espace blanc sous le form (padding-bottom sur le form-tab) */
    body.page-index .hero-section .form-tab {
        padding-bottom: 24px !important;
    }

    /* 10. Header transparent + absolute */
    body.page-index .hdr-desktop-header {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
        z-index: 100 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE + INDEX — Bouton hamburger blanc sur l'image hero
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    body.page-index .hdr-mobile-toggle,
    body.page-index .hdr-mobile-toggle i {
        color: #fff !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
    }
    /* ⛔ fond + border hamburger SUPPRIMÉS (demande UX) */
}

/* ═══════════════════════════════════════════════════════════════
   INDEX (toutes tailles) — TOUS les boutons du header en blanc
   Desktop + mobile + tablette : header transparent sur image hero
   ═══════════════════════════════════════════════════════════════ */

/* Icônes header : notifs, favoris, messages, covoiturage */
body.page-index .hdr-desktop-header .hdr-icon-btn,
body.page-index .hdr-desktop-header .hdr-icon-btn i,
body.page-index .hdr-desktop-header .hdr-icon-btn svg {
    color: #fff !important;
    fill: #fff !important;
    stroke: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
}

body.page-index .hdr-desktop-header .hdr-icon-btn:hover,
body.page-index .hdr-desktop-header .hdr-icon-btn:hover i {
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
}

body.page-index .hdr-desktop-header .hdr-icon-btn:hover i {
    background: transparent !important;
    box-shadow: none !important;
}

/* Badges (notifs non lues, favoris, messages) — garder la couleur d'origine */
body.page-index .hdr-desktop-header .hdr-notif-badge {
    color: #fff !important; /* texte blanc dans le badge rouge */
}

/* Bouton "Déposer une annonce" */
body.page-index .hdr-desktop-header .hdr-btn-sell {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
body.page-index .hdr-desktop-header .hdr-btn-sell:hover {
    background: rgba(255,255,255,0.32) !important;
    border-color: rgba(255,255,255,0.55) !important;
}
body.page-index .hdr-desktop-header .hdr-btn-sell .hdr-btn-sell-text {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.45) !important;
}
body.page-index .hdr-desktop-header .hdr-btn-sell i {
    color: #fff !important;
}

/* Bouton hamburger (mobile / tablette, mais aussi desktop si visible) */
body.page-index .hdr-desktop-header .hdr-mobile-toggle,
body.page-index .hdr-desktop-header .hdr-mobile-toggle i {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
}
/* ⛔ fond + border hamburger SUPPRIMÉS (demande UX) */

/* Avatar profil */
body.page-index .hdr-desktop-header .hdr-avatar {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
body.page-index .hdr-desktop-header .hdr-avatar > div {
    background: transparent !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
body.page-index .hdr-desktop-header .hdr-avatar-guest {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
}
body.page-index .hdr-desktop-header .hdr-avatar-guest i {
    color: #fff !important;
}
body.page-index .hdr-desktop-header .hdr-avatar:hover {
    background: rgba(255,255,255,0.35) !important;
    border-color: rgba(255,255,255,0.6) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2) !important;
}
body.page-index .hdr-desktop-header .hdr-avatar.active {
    background: rgba(255,255,255,0.4) !important;
    border-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3) !important;
}
body.page-index .hdr-desktop-header .hdr-online-dot {
    border-color: rgba(255,255,255,0.9) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE INDEX — Tue TOUS les hover sur les icônes header
   (spécificité égale à la règle index desktop → elle gagne)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    body.page-index .hdr-desktop-header .hdr-icon-btn:hover,
    body.page-index .hdr-desktop-header .hdr-icon-btn:active,
    body.page-index .hdr-desktop-header .hdr-icon-btn:focus,
    body.page-index .hdr-desktop-header .hdr-icon-btn:hover i,
    body.page-index .hdr-desktop-header .hdr-icon-btn:active i,
    body.page-index .hdr-desktop-header .hdr-icon-btn:focus i {
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
        color: #fff !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    body.page-index .hdr-desktop-header .hdr-mobile-toggle:hover,
    body.page-index .hdr-desktop-header .hdr-mobile-toggle:active,
    body.page-index .hdr-desktop-header .hdr-mobile-toggle:focus {
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
    }

    body.page-index .hdr-icon-btn,
    body.page-index .hdr-icon-btn i,
    body.page-index .hdr-mobile-toggle {
        transition: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE INDEX — Hamburger : juste les 3 barres blanches, RIEN d'autre
   Force transparent + no border + no hover, spécificité MAX
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    html body.page-index .hdr-desktop-header .hdr-actions .hdr-mobile-toggle,
    html body.page-index .hdr-desktop-header .hdr-actions .hdr-mobile-toggle:hover,
    html body.page-index .hdr-desktop-header .hdr-actions .hdr-mobile-toggle:active,
    html body.page-index .hdr-desktop-header .hdr-actions .hdr-mobile-toggle:focus,
    html body.page-index .hdr-desktop-header .hdr-actions .hdr-mobile-toggle:focus-visible {
        background: transparent !important;
        background-color: transparent !important;
        border: 0 none !important;
        border-color: transparent !important;
        outline: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    /* Les 3 barres (icône) : blanches, sans effet */
    html body.page-index .hdr-desktop-header .hdr-actions .hdr-mobile-toggle i,
    html body.page-index .hdr-desktop-header .hdr-actions .hdr-mobile-toggle:hover i,
    html body.page-index .hdr-desktop-header .hdr-actions .hdr-mobile-toggle:active i {
        color: #fff !important;
        background: transparent !important;
        font-size: 24px !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE INDEX — Même chose avec spécificité body.page-index
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    html body.page-index .hdr-desktop-header .hdr-actions .hdr-icon-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    html body.page-index .hdr-desktop-header .hdr-actions .hdr-icon-btn i {
        font-size: 18px !important;
    }

    html body.page-index .hdr-desktop-header .hdr-actions {
        gap: 4px !important;
    }

    html body.page-index .hdr-desktop-header .hdr-actions .hdr-mobile-toggle {
        margin-left: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HERO TAGLINE — Petit texte sur l'image (même font que covoit)
   ═══════════════════════════════════════════════════════════════ */
.hero-tagline {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 90%;
    pointer-events: none;
}

.hero-tagline p {
    font-family: 'Sora', 'Poppins', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}

/* Mobile : plus petit + plus haut */
@media (max-width: 768px) {
    .hero-tagline {
        top: 80px;
        max-width: 85%;
    }
    .hero-tagline p {
        font-size: 0.95rem;
        line-height: 1.35;
    }
}

/* Desktop : légèrement plus gros */
@media (min-width: 1024px) {
    .hero-tagline p {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — Image hero 60% de hauteur seulement
   Le reste (40%) = fond uni. Le form/tabs ne sont PAS touchés.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — Image uniquement sur le haut (bannière)
   Form + tabs cachés. Cadrage centré (voiture au milieu de l'image)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    body.page-index .hero-section {
        height: 470px !important;
        min-height: 470px !important;
        max-height: 470px !important;
        padding-top: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: transparent !important;
        overflow: hidden !important;
        aspect-ratio: auto !important;
    }

    /* Cacher le form + les 3 tabs (ils sont dans hero-container) */
    body.page-index .hero-section .tabs-container,
    body.page-index .hero-section .hero-container {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — Image 320px en haut (comme maintenant)
   Garder les 2 changements cover + top center que tu viens de faire
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — STRETCH (étirement) : image originale étirée pour
   remplir 100% largeur × 600px. Voitures légèrement aplaties.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — Réafficher form + tabs, chevauchement léger (-60px)
   On ne touche NI au background NI au padding du form
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {

    /* 1. Réafficher tabs + form (flex + center = tabs au milieu) */
    body.page-index .hero-section .tabs-container {
        display: flex !important;
        justify-content: center !important;
    }
    body.page-index .hero-section .hero-container {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 2. Autoriser le dépassement du contenu (sinon overflow:hidden coupe) */
    body.page-index .hero-section {
        overflow: visible !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }

    /* 3. Positionner le contenu sous l'image + chevauchement de 60px */
    body.page-index .hero-section .hero-container {
        margin-top: 285px !important;  /* 400px (image) - 60px (chevauchement) */
        margin-bottom: 0 !important;
        width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — Box shadow léger sur le form
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    body.page-index .hero-section .form-tab {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
        border-radius: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — Pousser le contenu suivant (covoit) en dessous du form
   Le form dépasse du hero-section (margin-top 365px + hauteur form)
   Donc on ajoute margin-bottom pour ne pas que covoit soit recouvert
   ═══════════════════════════════════════════════════════════════ */






/* ═══════════════════════════════════════════════════════════════
   MOBILE (< 769px) — Image moins haute + chevauchement visible
   Image 200px au lieu de 320px, overflow visible pour voir le form dépasser
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   MOBILE — FIX FINAL (règle unique à la fin, gagne tous les conflits)
   Image 280px + form chevauche de 80px en bas
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) and (orientation: portrait) {
    body.page-index .hero-section {
        padding-top: 280px !important;
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    body.page-index .hero-section .hero-container {
        margin: -80px 0 0 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — FIX FINAL (2026-11-10 v2)
   - Image : 200px de haut, ratio préservé (pas de distorsion)
   - background-size: auto 200px → image uniquement dans les 200px du haut
   - Form : margin -80px → chevauche le bas de l'image de 80px
   - Cette règle gagne car elle est à la FIN du fichier
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    body.page-index .hero-section {
        padding-top: 40vh !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        background-size: auto 200px !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        background-color: #f9fafb !important;
    }
    body.page-index .hero-section .hero-container {
        margin: -80px 0 0 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — Image full width, 200px haut, croppée si besoin (cover)
   Utilise un pseudo-element ::after (bat les anciennes règles)
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — Fond gris clair sous l'image (au lieu de blanc pur)
   Le form garde son fond blanc, mais les côtés deviennent gris clair
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — Hero full screen + form à gauche + tagline à droite
   (Cette règle à la FIN gagne sur les anciennes)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {

    /* 1. Hero prend tout l'écran visible */
    body.page-index .hero-section {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: transparent !important;
        overflow: hidden !important;
        position: relative !important;
        display: block !important;
        aspect-ratio: auto !important;
    }

    /* Neutraliser le ::after (image 200px du mobile) */
    body.page-index .hero-section::after {
        display: none !important;
    }

    /* 2. Form + tabs à GAUCHE, centrés verticalement */
    body.page-index .hero-section .hero-container {
        position: absolute !important;
        left: 5vw !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 560px !important;
        z-index: 2 !important;
    }

    /* Neutraliser les margin-top héritées sur hero-container */
    body.page-index .hero-section .hero-container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 3. Tagline à DROITE, centrée verticalement */
    body.page-index .hero-tagline {
        position: absolute !important;
        right: 5vw !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        text-align: right !important;
        max-width: 420px !important;
        padding: 0 !important;
        z-index: 2 !important;
    }

    body.page-index .hero-tagline p {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        line-height: 1.3 !important;
        text-shadow: 0 2px 12px rgba(0,0,0,0.65) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP intermédiaire (769-1100px) — form + tagline réduits
   pour tenir côte à côte sans dépasser
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1100px) {
    body.page-index .hero-section .hero-container {
        max-width: 420px !important;
        left: 3vw !important;
    }
    body.page-index .hero-tagline {
        max-width: 320px !important;
        right: 3vw !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    body.page-index .hero-tagline p {
        font-size: 1.6rem !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.7) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TAGLINE — Barre blanche verticale à gauche (toutes tailles desktop)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    body.page-index .hero-tagline {
        border-left: 6px solid #ffffff !important;
        padding-left: 12px !important;
        width: fit-content !important;
        max-width: 420px !important;
        text-align: left !important;
    }
    body.page-index .hero-tagline p {
        text-align: left !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TAGLINE plus petite sous 903px (form inchangé)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 903px) {
    body.page-index .hero-tagline {
        max-width: 280px !important;
        right: 2vw !important;
    }
    body.page-index .hero-tagline p {
        font-size: 1.3rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HOME — Bloc "Outils Lotooti"
   ═══════════════════════════════════════════════════════════════ */
.home-tools-section {
    padding: 3rem 1rem 4rem;
    background: #ffffff;
}
.home-tools-container {
    max-width: 1200px;
    margin: 0 auto;
}
.home-tools-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1D2E;
    margin: 0 0 0.5rem;
}
.home-tools-sub {
    color: #6B7280;
    font-size: 0.95rem;
    margin: 0 0 1.75rem;
}
.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.home-tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.home-tool-card:hover {
    border-color: #0066FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.08);
}
.home-tool-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0066FF 0%, #4D94FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}
.home-tool-content {
    flex: 1;
    min-width: 0;
}
.home-tool-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1A1D2E;
    margin: 0 0 0.25rem;
}
.home-tool-desc {
    font-size: 0.85rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}
.home-tool-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #0066FF;
    font-size: 0.85rem;
    font-weight: 600;
}
.home-tool-card:hover .home-tool-cta i {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}
@media (max-width: 640px) {
    .home-tools-section { padding: 2rem 1rem 3rem; }
    .home-tools-grid { grid-template-columns: 1fr; }
    .home-tool-card { padding: 1rem 1.25rem; }
    .home-tool-icon { width: 44px; height: 44px; font-size: 1.25rem; }
    .home-tool-cta { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   INDEX ONLY — Lien "Douane" du header en blanc
   (sur image hero transparente → doit ressortir comme les autres icônes)
   ═══════════════════════════════════════════════════════════════ */
body.page-index .hdr-tool-link,
body.page-index .hdr-tool-link i {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
body.page-index .hdr-tool-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}
body.page-index .hdr-tool-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO MOBILE — Hauteur augmentée (image plus longue)
   Override les règles existantes height: 100dvh + max-height
   S'applique sur tablette et mobile (< 1025px)
   ═══════════════════════════════════════════════════════════════ */

/* Mobile portrait (téléphones) : encore plus long pour respiration */

/* ═══════════════════════════════════════════════════════════════
   HERO — Hauteurs par plage SANS chevauchement (nettoyage final)
   Ces règles sont placées à la FIN → gagnent sur toutes les autres
   ═══════════════════════════════════════════════════════════════ */

/* Desktop ≥ 1025px : hero = 100vh (plein écran) */



@media (max-width: 768px) {
    body.page-index .hero-tagline {
        border-left: 4px solid #ffffff !important;
        padding-left: 12px !important;
        text-align: left !important;
        width: fit-content !important;
        max-width: 85% !important;
    }
    body.page-index .hero-tagline p {
        text-align: left !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TAGLINE MOBILE — Centrage vertical (Y) dans l'image 40vh
   Override toutes les règles précédentes avec !important
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    body.page-index .hero-tagline {
        top: 20vh !important;                              /* centre de l'image 40vh */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;      /* centre X ET Y */
        max-width: 90% !important;
        width: auto !important;
        text-align: left !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TAGLINE MOBILE — Font plus grande
   Override les règles précédentes
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    body.page-index .hero-tagline p {
        font-size: 1.15rem !important;      /* 0.95rem → 1.15rem (+21%) */
        line-height: 1.3 !important;
    }
}

/* Petit mobile : un peu plus grand quand même (mais ajusté) */

/* ═══════════════════════════════════════════════════════════════
   TAGLINE — Texte différent desktop / mobile
   Desktop : "Le meilleur endroit pour vendre son véhicule en Algérie."
   Mobile  : "Vendez. Louez. Roulez."
   ═══════════════════════════════════════════════════════════════ */

/* Par défaut (desktop) : afficher desktop, cacher mobile */
.hero-tagline .tagline-mobile {
    display: none !important;
}
.hero-tagline .tagline-desktop {
    display: block !important;
}

/* Sur mobile ≤ 768px : basculer */

/* Petit écran : un peu plus compact */

/* ═══════════════════════════════════════════════════════════════
   TAGLINE MOBILE — "Vendez. Louez. Roulez." sur 1 ligne (mobile)
   et max 2 lignes sur très petits écrans (< 380px)
   ═══════════════════════════════════════════════════════════════ */

/* Mobile standard : 1 seule ligne forcée */

/* Très petits écrans (< 380px) : autoriser 2 lignes max */

/* ═══════════════════════════════════════════════════════════════
   TAGLINE — Version FINALE (1 règle par élément, zéro conflit)
   Desktop : "Le meilleur endroit pour vendre son véhicule en Algérie."
   Mobile  : "Vendez. Louez. Roulez." (1 ligne)
   Petit   : "Vendez. Louez. Roulez." (2 lignes max)
   ═══════════════════════════════════════════════════════════════ */

/* Mobile ≤ 768px : basculer vers le texte court */
@media (max-width: 768px) {
    .hero-tagline .tagline-desktop {
        display: none !important;
    }
    .hero-tagline .tagline-mobile {
        display: block !important;
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
}

/* Petit ≤ 380px : autoriser 2 lignes max */
@media (max-width: 380px) {
    .hero-tagline .tagline-mobile {
        white-space: normal !important;
        font-size: 1.35rem !important;
        text-align: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — SUPPRIMER le min-height 110dvh / 120dvh (était pour l'image)
   L'image est dans ::after (40vh), donc min-height inutile = vide
   ═══════════════════════════════════════════════════════════════ */



/* ═══════════════════════════════════════════════════════════════
   ICONES VOITURE/MOTO/VELO — TAILLES PAR PALIER
   Override du width/height inline 20px des <img>
   - Mobile  (< 640px) : 28px
   - Tablet  (≥ 640px) : 32px
   - Desktop (≥ 1024px): 36px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .vehicle-type-group .vtype-btn img,
    .vehicle-type-group .rent-vtype-btn img,
    .vehicle-type-group .auction-vtype-btn img {
        width: 32px !important;
        height: 32px !important;
    }
}

@media (min-width: 641px) {
    .vehicle-type-group .vtype-btn img,
    .vehicle-type-group .rent-vtype-btn img,
    .vehicle-type-group .auction-vtype-btn img {
        width: 32px !important;
        height: 32px !important;
    }
}

@media (min-width: 1024px) {
    .vehicle-type-group .vtype-btn img,
    .vehicle-type-group .rent-vtype-btn img,
    .vehicle-type-group .auction-vtype-btn img {
        width: 36px !important;
        height: 36px !important;
    }
}
