/* =====================================================================
   MAZADDZ — DESIGN SYSTEM V1
   Couleurs : bleu profond #082D5B · or #D4AF37 · blanc #F5F7FA · anthracite #1A1A1A
   Polices  : Montserrat (titres, prix, boutons) · Inter (texte, interface) · Cairo (arabe)
   ===================================================================== */
:root {
  /* couleurs officielles */
  --blue: #082D5B;
  --gold: #D4AF37;
  --bg: #F5F7FA;
  --ink: #1A1A1A;
  /* dérivées validées */
  --blue-900: #061F40;
  --gold-hover: #C29F2E;
  --gold-text: #8A6D1D;
  --white: #FFFFFF;
  --muted: #5B6472;
  --subtle: #8A93A0;
  --border: #E3E7EE;
  --field: #CBD2DC;
  --neutral: #EEF1F5;
  /* états (badges et messages uniquement) */
  --ok-bg: #E8EEF6;   --ok: #082D5B;   /* succès : bleu (consigne « aucun vert sauf WhatsApp ») */
  --warn-bg: #FDF3DC; --warn: #8A5A00;
  --bad-bg: #FBE9E9;  --bad: #A12626;
  --info-bg: #E8EEF6; --info: #082D5B;
  --neu-bg: #EEF1F5;  --neu: #4A5566;
  --prem-bg: #F7EFD6; --prem: #7A5F14;
  --wa: #0E7C43;      --wa-hover: #0B6A39;   /* bouton WhatsApp uniquement */
  /* formes */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(8, 45, 91, .06);
  --sh-md: 0 6px 20px rgba(8, 45, 91, .10);
  --sh-lg: 0 16px 40px rgba(8, 45, 91, .16);
  --ease: 180ms ease-out;
  /* polices */
  --f-title: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --f-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --f-ar: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --header-h: 72px;
  /* compatibilité : variables utilisées par le Manager (admin.html) */
  --cadre: var(--blue); --lisere: var(--gold); --main: var(--blue);
  --page-text: var(--ink); --page-muted: var(--muted); --panel: var(--white);
  --input-bg: var(--white); --line: var(--border); --card: var(--white); --card-text: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--f-body); font-size: 16px; line-height: 1.65; color: var(--ink);
  background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Icônes (Lucide, trait 1,5 px) ---------- */
.i { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
body.rtl .i-dir { transform: scaleX(-1); }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
main.container { padding-block: 48px 0; }
.overline {
  font-family: var(--f-title); font-weight: 600; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-text); line-height: 1.4;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font-family: var(--f-title); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; transform: none; cursor: default; }
.btn-primary { background: var(--gold); color: var(--blue); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-secondary { background: var(--blue); color: var(--white); }
.btn-secondary:hover { background: var(--blue-900); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0;
  font-family: var(--f-title); font-weight: 600; font-size: 14px; color: var(--blue); text-decoration: none;
  border-bottom: 2px solid transparent; transition: border-color var(--ease);
}
.btn-link:hover { border-bottom-color: var(--gold); }
/* anciens noms conservés (Manager) */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: var(--r-sm); border: 0; background: var(--gold); color: var(--blue); text-decoration: none;
  font-family: var(--f-title); font-weight: 600; font-size: 15px; transition: background var(--ease);
}
.btn-main:hover { background: var(--gold-hover); }
.btn-main:disabled { opacity: .45; cursor: wait; }
.btn-light {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  background: transparent; border: 1.5px solid var(--blue); color: var(--blue);
  font-family: var(--f-title); font-weight: 600; font-size: 14px; transition: background var(--ease), color var(--ease);
}
.btn-light:hover { background: var(--blue); color: var(--white); }

/* ---------- Badges ---------- */
.pill, .st-badge, .pl {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-family: var(--f-body); font-weight: 600; font-size: 12px; line-height: 1; white-space: nowrap;
}
.st-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pl-ok, .st-ok { background: var(--ok-bg); color: var(--ok); }
.pl-warn, .st-wait { background: var(--warn-bg); color: var(--warn); }
.pl-bad { background: var(--bad-bg); color: var(--bad); }
.pl-muted, .st-sold { background: var(--neu-bg); color: var(--neu); }
.st-live { background: var(--info-bg); color: var(--info); }
.st-live::before { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.pl .i { width: 14px; height: 14px; }
/* état moteur (Run & Drive...) */
.rd-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 12px; line-height: 1; white-space: nowrap;
}
.rd-badge .i { width: 14px; height: 14px; }
.rd-ok { background: var(--ok-bg); color: var(--ok); }
.rd-starts { background: var(--warn-bg); color: var(--warn); }
.rd-no { background: var(--bad-bg); color: var(--bad); }
.rd-big { height: 28px; font-size: 13px; padding: 0 12px; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--blue); border-bottom: 1px solid rgba(212, 175, 55, .25); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: clamp(16px, 1.8vw, 32px); max-width: 1800px; margin-inline: auto; padding-inline: clamp(16px, 1.6vw, 28px); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(4px, .6vw, 12px); flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
.nav-link {
  position: relative; background: none; border: 0; padding: 8px clamp(10px, 1vw, 16px); white-space: nowrap;
  font-family: var(--f-body); font-weight: 600; font-size: clamp(15px, 1.1vw, 16.5px); color: rgba(255, 255, 255, .8);
  transition: color var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link::after { content: ''; position: absolute; inset-inline: clamp(10px, 1vw, 16px); bottom: -4px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform var(--ease); }
.nav-link.active { color: var(--white); }
.nav-link.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: clamp(12px, 1vw, 18px); margin-inline-start: auto; flex-shrink: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; }
.lang-switch .sep { color: rgba(255, 255, 255, .35); padding-inline: 2px; }
.lang-btn {
  background: none; border: 0; padding: 6px 10px; border-radius: 6px; font-weight: 600; font-size: 15px;
  color: rgba(255, 255, 255, .65); transition: color var(--ease);
}
.lang-btn[data-lang="ar"] { font-family: var(--f-ar); font-size: 16.5px; }
.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.menu-btn .i { width: 26px; height: 26px; }
/* compatibilité Manager */
.header-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ctrl-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-sm);
  background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .35); font-weight: 600; font-size: 14px; text-decoration: none;
}
.ctrl-btn:hover { background: rgba(255, 255, 255, .1); }
.site-header > .logo, .site-header .logo { display: inline-flex; align-items: center; }
.site-header .logo img { height: 36px; width: auto; }
.site-header:has(> .logo) { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; flex-wrap: wrap; }

/* tiroir de navigation (mobile / tablette) */
.drawer { position: fixed; inset: 0; z-index: 300; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 31, 64, .55); }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(360px, 88vw); background: var(--blue);
  display: flex; flex-direction: column; padding: 16px 20px 24px; box-shadow: var(--sh-lg); overflow-y: auto;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 8px; }
.drawer-head img { height: 32px; width: auto; }
.drawer-close { background: none; border: 0; color: var(--white); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.drawer-nav { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .12); }
.drawer-nav .nav-link { text-align: start; padding: 16px 4px; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.drawer-nav .nav-link::after { display: none; }
.drawer-nav .nav-link.active { color: var(--gold); }
.drawer-foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
body.drawer-open { overflow: hidden; }

/* =====================================================================
   HERO (texte HTML, bilingue — aucune image contenant du texte)
   ===================================================================== */
/* ===== HERO : bannière pleine largeur (image validée, non traduite) ===== */
.hero { background: var(--blue-900); border-bottom: 1px solid rgba(212, 175, 55, .35); }
/* Banniere : 3 slides superposees, ratio fige sur l'image source -> aucun saut de mise en page */
.hero-banner { position: relative; width: 100%; line-height: 0; overflow: hidden; aspect-ratio: 2048 / 851; background: var(--blue-900); }
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 1.4s;
}
.hero-slide.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.hero-banner picture { display: block; position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Profondeur : vignette tres legere, elle ne touche pas le centre de l'image */
.hero-slide::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(118% 150% at 50% 42%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .13) 100%);
}
/* Lumiere : reflet diagonal tres discret qui traverse lentement */
.hero-sheen {
  position: absolute; inset: -20% -40%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(104deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .055) 50%, rgba(255, 255, 255, 0) 58%);
}
.hero-slide.is-on .hero-sheen { animation: heroSheen 9s ease-in-out .6s both; }
@keyframes heroSheen {
  0%   { opacity: 0; transform: translate3d(-26%, 0, 0); }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(26%, 0, 0); }
}

/* Ken Burns : zoom tres lent + parallaxe horizontale legere.
   L'amplitude est calee sur les marges reelles des images (3,7 % sous les textes) :
   le rognage maximal est de 1,4 % par bord, jamais sur un texte ni sur le logo. */
@media (min-width: 768px) {
  .hero-slide .hero-img { will-change: transform; backface-visibility: hidden; }
  .hero-slide.is-on .hero-img { animation: heroKen 11s cubic-bezier(.33, 0, .25, 1) both; }
  .hero-slide.is-on[data-slide="2"] .hero-img { animation-name: heroKenRev; }
}
@keyframes heroKen {
  from { transform: scale(1.010) translate3d(-0.30%, 0, 0); }
  to   { transform: scale(1.028) translate3d(0.30%, 0, 0); }
}
@keyframes heroKenRev {
  from { transform: scale(1.028) translate3d(0.30%, 0, 0); }
  to   { transform: scale(1.010) translate3d(-0.30%, 0, 0); }
}

/* Fleches : bureau uniquement, revelees au survol */
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border: 0; border-radius: 50%; display: none;
  align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255, 255, 255, .88); color: var(--blue);
  box-shadow: 0 2px 10px rgba(8, 45, 91, .22); opacity: 0; transition: opacity var(--ease), background var(--ease);
}
.hero-prev { inset-inline-start: 18px; }
.hero-next { inset-inline-end: 18px; }
.hero-banner:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover { background: #fff; }
@media (hover: hover) and (min-width: 1024px) { .hero-nav { display: inline-flex; } }

/* Indicateurs : sous la banniere, ils ne recouvrent jamais l'image */
.hero-dots { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 13px 16px 3px; background: var(--blue-900); }
.hero-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .34); transition: background var(--ease), width var(--ease);
}
.hero-dot:hover { background: rgba(255, 255, 255, .6); }
.hero-dot.is-on { background: var(--gold); width: 24px; border-radius: 999px; }
.hero-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Les zones cliquables ne valent que pour l'image 1, seule a comporter des boutons dessines */
.hero-hits { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity var(--ease); }
.hero-hits > * { pointer-events: auto; }
.hero-hits[hidden] { display: none; }

/* Accessibilite : aucun mouvement automatique si la personne l'a demande */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity .2s linear, visibility 0s linear .2s; }
  .hero-slide.is-on { transition: opacity .2s linear, visibility 0s; }
  .hero-slide.is-on .hero-img { animation: none; transform: none; }
  .hero-slide.is-on .hero-sheen { animation: none; opacity: 0; }
}
/* zones cliquables posées sur les boutons dessinés (mesurés sur l'image 2400x998) */
.hero-hit { position: absolute; display: block; border-radius: 999px; z-index: 2; -webkit-tap-highlight-color: transparent; }
/* la zone tactile déborde du bouton dessiné pour rester visable au doigt ;
   l'écart grandit quand l'image rétrécit, sans jamais empiéter sur le bouton voisin */
.hero-hit::before { content: ''; position: absolute; inset: -10px -6px; }
@media (max-width: 1023px) { .hero-hit::before { inset: -16px -2px; } }
@media (max-width: 767px)  { .hero-hit::before { inset: -22px 0; } }
.hero-hit::after { content: ''; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid transparent; transition: border-color var(--ease), background var(--ease); }
.hero-hit:hover::after { border-color: var(--gold); }
.hero-hit:focus-visible { outline: none; }
.hero-hit:focus-visible::after { border-color: var(--gold); background: rgba(212, 175, 55, .18); }
.hero-hit-1 { left: 34.75%; top: 43.19%; width: 15.54%; height: 6.61%; }
.hero-hit-2 { left: 51.54%; top: 43.09%; width: 15.25%; height: 6.71%; }
/* mobile : vrais boutons, repris du style de ceux dessinés dans la bannière */
.hero-ctas-mob { display: none; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 16px 16px 20px; background: var(--blue-900); }
.hcta {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px;
  font-family: var(--f-title); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.hcta-dark { background: #0F3460; color: #fff; }
.hcta-light { background: #fff; color: var(--blue); }
.hcta .i { flex-shrink: 0; }
@media (max-width: 1023px) {
  .hero-ctas-mob { display: flex; }   /* vrais boutons lisibles, en plus des zones de l'image */
}
/* Sous 768px les zones dessinees dans l'image deviennent trop petites pour le doigt :
   elles sont desactivees, seuls les vrais boutons sous la banniere restent actifs. */
@media (max-width: 767px) {
  .hero-hit { display: none; }
}
@media (max-width: 399px) {
  .hero-ctas-mob { flex-direction: column; }
  .hcta { justify-content: center; }
}
/* boutons visibles sous l'image : seule façon fiable de cliquer sur petit écran */

/* =====================================================================
   FILTRES / FORMULAIRES
   ===================================================================== */
.filters { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); padding: 24px; margin-bottom: 32px; }
.filters h2 { display: flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 700; font-size: 18px; color: var(--blue); margin-bottom: 16px; }
.filters-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea {
  height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--white);
  color: var(--ink); transition: border-color var(--ease), box-shadow var(--ease); width: 100%;
}
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 45, 91, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.field .error-msg { color: var(--bad); font-size: 13px; }
.field .hint { color: var(--muted); font-size: 13px; }
input[type="tel"], .ltr { direction: ltr; unicode-bidi: isolate; }
/* nombres : toujours saisis de gauche à droite, alignés à droite en arabe */
.field input[type="number"] { direction: ltr; }
body.rtl .field input[type="number"] { text-align: right; }
.filters-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.count { color: var(--muted); font-size: 14px; font-weight: 500; }

/* =====================================================================
   CARTES VÉHICULES
   ===================================================================== */
.vehicles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--neutral); display: flex; align-items: center; justify-content: center; color: var(--subtle); }
/* ----- galerie de la carte : defilement au doigt, fleches, points ----- */
.cg { position: absolute; inset: 0; }
.cg-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.cg-track::-webkit-scrollbar { display: none; }
.cg-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.cg-empty { display: flex; align-items: center; justify-content: center; color: var(--subtle); }
.cg-empty .i { width: 48px; height: 48px; }
.cg-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--blue); display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(8, 45, 91, .2); opacity: 0; transition: opacity var(--ease);
}
.cg-prev { inset-inline-start: 8px; } .cg-next { inset-inline-end: 8px; }
.card:hover .cg-nav { opacity: 1; }
.cg-dots { position: absolute; inset-inline: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.cg-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: background var(--ease); }
.cg-dot.on { background: #fff; }
.cg-count {
  position: absolute; inset-inline-end: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(26, 26, 26, .62); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.card-trim { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: -4px; }
@media (hover: hover) and (min-width: 1024px) { .cg-nav { display: inline-flex; } }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img > .i { width: 48px; height: 48px; }
.badge-actif {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92); color: var(--blue); font-weight: 600; font-size: 12px;
}
.badge-actif::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-actif.st-ok { color: var(--ok); } .badge-actif.st-wait { color: var(--warn); } .badge-actif.st-sold { color: var(--neu); }
.card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-family: var(--f-title); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--blue); }
.card-year { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; }
.chips span { display: inline-flex; align-items: center; gap: 6px; }
.chips .i { width: 16px; height: 16px; color: var(--subtle); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.price-block { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.price-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.price { font-family: var(--f-title); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--blue); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.card-actions .btn-link { white-space: nowrap; font-size: 13.5px; }
.card-actions .btn { height: 40px; padding: 0 12px; font-size: 14px; gap: 6px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .i { width: 40px; height: 40px; color: var(--subtle); margin: 0 auto 12px; }

/* =====================================================================
   SECTIONS (titres communs)
   ===================================================================== */
.info-section { padding-top: 96px; }
.info-title { font-family: var(--f-title); font-weight: 700; font-size: 34px; line-height: 1.2; color: var(--blue); margin-bottom: 16px; }
.info-text { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 820px; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 32px; }
.section-head .info-text { margin-inline: auto; }

/* ----- Pourquoi MAZADDZ ----- */
.why-section { padding-top: 96px; }
.why-title { margin-bottom: 32px; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.why-card {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm);
  padding: 28px 24px 24px; display: flex; flex-direction: column; transition: box-shadow var(--ease), transform var(--ease);
}
.why-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.why-num { position: absolute; top: 20px; inset-inline-end: 20px; font-family: var(--f-title); font-weight: 700; font-size: 13px; color: var(--gold-text); letter-spacing: .08em; }
.why-icon { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--neutral); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 { font-family: var(--f-title); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--blue); margin-bottom: 10px; }
.why-card p { font-size: 16px; line-height: 1.65; color: var(--muted); margin-bottom: 20px; }
.why-highlight, .why-route { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--blue); }
.why-highlight { display: flex; align-items: center; gap: 8px; }
.why-highlight .i { width: 16px; height: 16px; color: var(--gold-text); }
.why-route { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.why-route .i { width: 14px; height: 14px; color: var(--gold); }
.why-closing { max-width: 760px; margin: 40px auto 0; text-align: center; font-family: var(--f-title); font-weight: 600; font-size: 18px; line-height: 1.6; color: var(--blue); }
.why-cta { text-align: center; margin-top: 24px; }

/* ----- Qui sommes-nous ----- */
#qui-sommes-nous { max-width: 820px; margin-inline: auto; }
#qui-sommes-nous .info-title { text-align: center; }
#qui-sommes-nous .info-text { color: var(--ink); }

/* ----- Comment acheter ? (étapes) ----- */
.steps-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.steps-track::before { content: ''; position: absolute; top: 46px; inset-inline: 10%; height: 1px; background: rgba(212, 175, 55, .4); }
.step-card {
  position: relative; z-index: 1; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); padding: 24px 18px 22px; text-align: center; transition: box-shadow var(--ease), transform var(--ease);
}
.step-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.step-number-badge {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--gold); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-family: var(--f-title); font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 6px var(--bg);
}
.step-icon-big { color: var(--blue); margin-bottom: 10px; display: flex; justify-content: center; }
.step-icon-big .i { width: 24px; height: 24px; }
.step-card h3 { font-family: var(--f-title); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--blue); margin-bottom: 8px; }
.step-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.steps-cta { text-align: center; margin-top: 32px; }

/* ----- Tout savoir avant d'acheter (accordéon) ----- */
.avant-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.avant-group-title { font-family: var(--f-title); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.avant-group > .acc-list, .avant-group { }
.acc-item { background: var(--white); border: 1px solid var(--border); border-bottom-width: 0; }
.avant-group .acc-item:first-of-type { border-radius: var(--r-md) var(--r-md) 0 0; }
.avant-group .acc-item:last-of-type { border-bottom-width: 1px; border-radius: 0 0 var(--r-md) var(--r-md); }
.avant-group .acc-item:only-of-type { border-radius: var(--r-md); }
.acc-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover .acc-q { color: var(--blue); }
.acc-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--gold); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-family: var(--f-title); font-weight: 700; font-size: 12px;
}
.acc-q { flex: 1; font-family: var(--f-title); font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--ink); transition: color var(--ease); }
.acc-chevron { color: var(--blue); display: inline-flex; transition: transform var(--ease); }
.acc-item[open] .acc-chevron { transform: rotate(180deg); }
.acc-item[open] summary { border-bottom: 1px solid var(--border); }
.acc-body { padding: 16px 20px 20px 62px; max-width: 760px; }
.acc-body p, .acc-body li { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 8px; }
.acc-body ul { padding-inline-start: 20px; margin-bottom: 8px; }
.acc-body strong { font-weight: 600; color: var(--blue); }

/* ----- Philosophie ----- */
.philosophy-section { margin-top: 96px; padding: 64px 32px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--blue-900), var(--blue)); color: var(--white); }
.philosophy-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.philosophy-eyebrow { font-family: var(--f-title); font-weight: 700; font-size: 22px; color: var(--gold); margin-bottom: 18px; }
.philosophy-text { font-size: 17px; line-height: 1.8; color: rgba(255, 255, 255, .86); margin-bottom: 12px; }
.philosophy-tagline { margin-top: 20px; font-family: var(--f-title); font-weight: 700; font-size: 20px; color: var(--white); }

/* ----- Contact ----- */
#contact-section { text-align: center; padding-bottom: 96px; }
#contact-section .info-text { margin: 0 auto 24px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--blue-900); color: rgba(255, 255, 255, .78); border-top: 1px solid rgba(212, 175, 55, .3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-sig { font-family: var(--f-title); font-style: italic; font-weight: 600; font-size: 17px; color: var(--gold); margin-bottom: 18px; }
.footer-pillars { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-pillars span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.footer-pillars .i { color: var(--gold); width: 18px; height: 18px; }
.footer-col h3 { font-family: var(--f-title); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links button, .footer-links a { background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .78); font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; text-align: start; }
.footer-links button:hover, .footer-links a:hover { color: var(--white); }
.footer-links .i { width: 18px; height: 18px; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .6); }
.footer-bottom .overline { color: rgba(212, 175, 55, .85); font-size: 12px; }

/* =====================================================================
   FICHE VÉHICULE (fenêtre plein écran défilante)
   ===================================================================== */
#detailsModal { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(6, 31, 64, .72); overflow-y: auto; }
#detailsModal.open { display: block; }
.modal-content.fiche-modal { position: relative; max-width: 1200px; margin: 24px auto; background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.modal-close {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--blue); box-shadow: var(--sh-md); display: inline-flex; align-items: center; justify-content: center;
}
.fiche { padding: 32px; color: var(--ink); }
.fiche-head { padding-inline-end: 60px; }
.fiche-title { font-family: var(--f-title); font-weight: 800; font-size: 32px; line-height: 1.2; color: var(--blue); }
.fiche-sub { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--muted); font-weight: 500; font-size: 15px; }
.fiche-sub span { display: inline-flex; align-items: center; gap: 6px; }
.fiche-sub .i { width: 16px; height: 16px; color: var(--gold-text); }
.fiche-mzd { color: var(--subtle); font-weight: 600; letter-spacing: .02em; }
.fiche-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.fbadge { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-pill); font-weight: 600; font-size: 14px; color: var(--ink); }
.fbadge .i { width: 16px; height: 16px; color: var(--blue); }
.fiche-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "gallery side" "rest side"; gap: 24px; align-items: start; }
.area-gallery { grid-area: gallery; min-width: 0; }
.area-side { grid-area: side; position: sticky; top: 16px; }
.area-rest { grid-area: rest; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* galerie */
.fg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fg-chip { height: 32px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--field); background: var(--white); color: var(--ink); font-weight: 600; font-size: 13px; transition: all var(--ease); }
.fg-chip:hover { border-color: var(--blue); }
.fg-chip.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.fg-stage { position: relative; aspect-ratio: 16 / 10; background: var(--ink); border-radius: var(--r-md); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fg-main { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .25s ease; user-select: none; }
.fg-main.zoomed { transform: scale(2); cursor: zoom-out; }
.fg-empty { color: var(--subtle); font-weight: 500; text-align: center; padding: 20px; }
.fg-nav, .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--blue); box-shadow: var(--sh-md); display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.fg-nav:hover, .nav-btn:hover { background: var(--white); }
.fg-prev, .nav-prev { inset-inline-start: 12px; }
.fg-next, .nav-next { inset-inline-end: 12px; }
.fg-count { position: absolute; inset-inline-start: 12px; bottom: 12px; z-index: 2; background: rgba(26, 26, 26, .7); color: var(--white); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.fg-full { position: absolute; inset-inline-end: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--blue); font-weight: 600; font-size: 13px; }
/* En arabe, le compteur est ancre a gauche (il force le sens latin pour les chiffres) :
   le bouton reste donc a droite, comme en francais, pour ne pas le chevaucher. */
body.rtl .fg-full { inset-inline-end: auto; inset-inline-start: 12px; }
.fg-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; }
.fg-thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm); cursor: pointer; border: 2px solid transparent; opacity: .7; flex-shrink: 0; transition: all var(--ease); }
.fg-thumbs img.active, .fg-thumbs img:hover { opacity: 1; border-color: var(--gold); }
.fg-setmain { display: none; margin-top: 8px; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: transparent; border: 1px dashed var(--field); border-radius: var(--r-pill); color: var(--blue); font-weight: 600; font-size: 13px; }
/* blocs */
.fcard { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.fcard-pad { padding: 24px; }
.fcard h2, .fs-acc summary { font-family: var(--f-title); font-weight: 700; font-size: 20px; color: var(--blue); }
.fcard h2 { margin-bottom: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.info-cell { background: var(--neutral); border-radius: var(--r-sm); padding: 10px 14px; }
.info-cell span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.info-cell strong { font-weight: 600; font-size: 15px; color: var(--ink); }
.er { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.er:last-child { border-bottom: 0; }
.er-l { font-weight: 600; color: var(--ink); }
.er-v { text-align: end; font-weight: 500; max-width: 62%; line-height: 1.5; color: var(--ink); }
.er-small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.fs-acc { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; }
.fs-acc summary { list-style: none; padding: 18px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fs-acc summary::-webkit-details-marker { display: none; }
.fs-acc summary::after { content: ''; width: 10px; height: 10px; border-inline-end: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform var(--ease); margin-top: -4px; }
.fs-acc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.fs-acc[open] summary { border-bottom: 1px solid var(--border); }
.fs-body { padding: 20px 24px 24px; }
.tech-group { margin-bottom: 18px; }
.tech-group:last-child { margin-bottom: 0; }
.tech-group h4 { font-family: var(--f-title); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
.dmg-card { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dmg-card:last-of-type { border-bottom: 0; }
.dmg-card b { display: block; color: var(--ink); font-weight: 600; }
.dmg-card .t { color: var(--muted); line-height: 1.5; }
.dmg-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.dmg-photos img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm); cursor: pointer; border: 2px solid transparent; }
.dmg-photos img:hover { border-color: var(--gold); }
.fnote { margin-top: 16px; padding: 12px 16px; background: var(--prem-bg); border-inline-start: 3px solid var(--gold); border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--prem); line-height: 1.55; }
.muted-note { font-weight: 500; color: var(--muted); }
.doc-link { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--blue); font-weight: 600; text-decoration: none; }
.doc-link:last-child { border-bottom: 0; }
.doc-link .open { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.doc-link:hover .open { text-decoration: underline; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* encadré estimation */
.est-card { background: var(--blue); color: var(--white); border-radius: var(--r-md); padding: 24px; box-shadow: var(--sh-md); }
.est-title { font-family: var(--f-title); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.est-label { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.est-price { font-family: var(--f-title); font-size: 26px; font-weight: 800; line-height: 1.25; margin: 4px 0 16px; }
.est-list { list-style: none; margin: 0 0 14px; }
.est-list li { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.est-list b { display: block; font-weight: 600; }
.est-list span { color: rgba(255, 255, 255, .78); }
.est-note { font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .78); margin-bottom: 8px; }
.btn-fiche {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; margin-top: 10px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; font-family: var(--f-title); font-weight: 600; font-size: 15px; transition: background var(--ease), transform var(--ease);
}
.btn-fiche:hover { transform: translateY(-1px); }
.btn-fiche.primary { background: var(--gold); color: var(--blue); }
.btn-fiche.primary:hover { background: var(--gold-hover); }
.btn-fiche.secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-fiche.secondary:hover { background: rgba(255, 255, 255, .1); }
.fs-body .btn-fiche.primary { max-width: 340px; }
.fiche-mobilebar { display: none; }
/* galerie plein écran */
.fullscreen { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(26, 26, 26, .97); flex-direction: column; align-items: center; justify-content: center; }
.fullscreen.open { display: flex; }
.fullscreen img { max-width: 94vw; max-height: 82vh; object-fit: contain; }
.fs-counter { color: var(--white); margin-top: 14px; font-weight: 600; }
.fullscreen .modal-close { position: fixed; }

/* ---------- Messages ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 4000; display: none; max-width: 90vw; background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: var(--r-sm); font-weight: 500; box-shadow: var(--sh-lg); text-align: center; }
.toast.show { display: block; }
.toast.error { background: var(--bad); }

/* ---------- Manager : éléments partagés (fiche détaillée) ---------- */
.fiche-group-title { font-family: var(--f-title); font-weight: 700; color: var(--blue); margin: 20px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.dmg-row { display: grid; grid-template-columns: 1fr 1.3fr .9fr 1.2fr 1.3fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.doc-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.dmg-row input, .dmg-row select, .doc-row input, .doc-row select { height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--white); min-width: 0; }
.dm-del { background: var(--bad-bg); color: var(--bad); border: 0; border-radius: var(--r-sm); width: 40px; height: 40px; font-weight: 700; }
.add-row-btn { background: transparent; border: 1.5px dashed var(--blue); color: var(--blue); border-radius: var(--r-sm); padding: 9px 16px; font-weight: 600; }
.cat-sel { position: absolute; top: 4px; left: 4px; max-width: calc(100% - 40px); font-size: 11px; padding: 1px 2px; border-radius: 4px; z-index: 3; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 1; transform: none; }
.reveal:not(.visible) { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.why-grid .why-card:nth-child(2) { transition-delay: .06s; }
.why-grid .why-card:nth-child(3) { transition-delay: .12s; }
.why-grid .why-card:nth-child(4) { transition-delay: .18s; }

/* =====================================================================
   ARABE (RTL)
   ===================================================================== */
body.rtl { font-family: var(--f-ar); font-size: 17px; line-height: 1.75; }
body.rtl .overline, body.rtl .avant-group-title, body.rtl .footer-col h3, body.rtl .est-title, body.rtl .tech-group h4,
body.rtl .price-label, body.rtl .fiche-group-title { text-transform: none; letter-spacing: 0; font-size: 15px; }
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl .info-title, body.rtl .card-title, body.rtl .price, body.rtl .btn, body.rtl .btn-main,
body.rtl .btn-fiche, body.rtl .btn-link, body.rtl .pillar, body.rtl .acc-q, body.rtl .step-card h3, body.rtl .why-card h3, body.rtl .fiche-title,
body.rtl .est-price, body.rtl .philosophy-eyebrow, body.rtl .philosophy-tagline, body.rtl .why-closing, body.rtl .nav-link, body.rtl .footer-sig,
body.rtl .step-number-badge, body.rtl .acc-num, body.rtl .why-num, body.rtl .fcard h2, body.rtl .fs-acc summary, body.rtl .filters h2 {
  font-family: var(--f-ar); letter-spacing: 0;
}
body.rtl .hero h1 { font-size: 44px; line-height: 1.45; }
body.rtl .hero-sub { font-size: 19px; line-height: 1.8; }
body.rtl .footer-sig { font-style: normal; }
body.rtl .info-text, body.rtl .why-card p, body.rtl .step-card p, body.rtl .acc-body p, body.rtl .acc-body li { line-height: 1.85; }
body.rtl .acc-body { padding: 16px 62px 20px 20px; }
body.rtl .toast { direction: rtl; }
bdi, .num { unicode-bidi: isolate; }
.fg-count, .fs-counter { direction: ltr; unicode-bidi: isolate; }   /* « 1 / 3 » reste dans ce sens en arabe */

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* Menu ☰ aussi sur ordinateur : la barre complète n'apparaît que si elle tient
   confortablement, sans réduire la police ni serrer les rubriques. */
@media (max-width: 1599px) {
  .main-nav.desktop { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1023px) {
  .header-actions .lang-switch.desktop, .header-actions .btn-wa.desktop { display: none; }
}
@media (max-width: 1279px) {
  .vehicles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .steps-track { grid-template-columns: 1fr; gap: 14px; }
  .steps-track::before { display: none; }
  .step-card { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; text-align: start; padding: 18px 20px; }
  .step-number-badge { margin: 0; grid-row: span 2; }
  .step-icon-big { display: none; }
  .fiche-grid { grid-template-columns: 1fr; grid-template-areas: "gallery" "side" "rest"; }
  .area-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* confort tactile : liens du pied de page et logo assez hauts pour le doigt */
  .footer-links { gap: 2px; }
  .footer-links button, .footer-links a, .footer-offices { min-height: 44px; display: inline-flex; align-items: center; }
  .brand { min-height: 44px; }
  .lang-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Tablette : 2 colonnes, sinon les cartes sont trop étroites et le bouton « Intéressé » déborde */
@media (min-width: 700px) and (max-width: 900px) {
  .vehicles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .container { padding-inline: 16px; }
  .header-inner { padding-inline: 16px; gap: 12px; }
  .brand img { height: 32px; }
  .info-section, .why-section { padding-top: 56px; }
  .info-title { font-size: 26px; }
  .info-text { font-size: 17px; }
  .filters { padding: 18px; }
  .filters-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vehicles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .philosophy-section { margin-top: 56px; padding: 44px 20px; }
  #contact-section { padding-bottom: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; }
  .modal-content.fiche-modal { margin: 0; border-radius: 0; padding-bottom: 84px; min-height: 100%; }
  .fiche { padding: 20px 16px 32px; }
  .fiche-title { font-size: 24px; }
  .er { flex-direction: column; gap: 4px; }
  .er-v { text-align: start; max-width: 100%; }
  #detailsModal.open .fiche-mobilebar {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 2100; gap: 10px; padding: 12px 16px;
    background: var(--white); box-shadow: 0 -6px 20px rgba(8, 45, 91, .16);
  }
  .fiche-mobilebar .btn { flex: 1 1 0; min-width: 0; height: 48px; padding-inline: 12px; }
  /* tres petits ecrans : le libelle le plus long depassait de la barre */
  .fiche-mobilebar .btn span { overflow: hidden; text-overflow: ellipsis; }
  .dmg-row { grid-template-columns: 1fr 1fr; }
  .doc-row { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .vehicles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .fiche-mobilebar { padding-inline: 12px; gap: 8px; }
  .fiche-mobilebar .btn { font-size: 14px; padding-inline: 8px; gap: 6px; }
  /* 3 vignettes de 96px ne tenaient pas dans la bande a cette largeur */
  .fg-thumbs img { width: 84px; height: 63px; }
}
@media (max-width: 479px) {
  .filters-grid { grid-template-columns: 1fr; }
  .card-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.footer-offices { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.footer-offices .i { width: 18px; height: 18px; color: var(--gold); }

/* bandeau informatif du preremplissage (Manager) */
.ref-bandeau { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #E8EEF6; color: #082D5B; font-size: 0.92rem; font-weight: 600; }
.ref-bandeau.ref-ambigu { background: #FDF3DC; color: #8A5A00; }



/* =====================================================================
   « COMMENT ACHETER ? » — 5 etapes illustrees, bandes a coupe diagonale
   Les photos et les textes alternent ; la diagonale se retourne en arabe.
   ===================================================================== */
.parcours { display: flex; flex-direction: column; gap: 26px; margin-top: 44px; }

.etape {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #FFFFFF 0%, #F7F9FC 58%, #EEF3F9 100%);
  box-shadow: var(--sh-sm); border: 1px solid var(--border);
  min-height: 330px; display: flex; align-items: center;
  transition: box-shadow var(--ease), transform var(--ease);
}
.etape:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }

/* ---------- décor : trame de points, halo bleu, arc bronze ---------- */
.deco { position: absolute; pointer-events: none; }
.deco-dots {
  width: 104px; height: 62px; opacity: .5;
  background-image: radial-gradient(var(--gold) 1.6px, transparent 1.7px);
  background-size: 15px 15px;
  top: 18px; inset-inline-start: 18px;
}
.deco-halo {
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(8,45,91,.07) 0%, rgba(8,45,91,0) 70%);
  bottom: -130px; inset-inline-start: 18%;
}
.deco-arc {
  width: 340px; height: 340px; border-radius: 50%;
  border: 2px solid rgba(212,175,55,.38); border-top-color: transparent; border-inline-end-color: transparent;
  bottom: -238px; inset-inline-start: -58px;
}

/* decor du cote du texte quand la photo est a gauche */
.etape.vg .deco-dots { inset-inline-start: auto; inset-inline-end: 18px; }
.etape.vg .deco-halo { inset-inline-start: auto; inset-inline-end: 18%; }
.etape.vg .deco-arc  { inset-inline-start: auto; inset-inline-end: -58px;
  border: 2px solid rgba(212,175,55,.38); border-top-color: transparent; border-inline-start-color: transparent; border-inline-end-color: rgba(212,175,55,.38); }

/* ---------- visuel : coupe en diagonale + liseré bronze ---------- */
.etape-visual { position: absolute; inset-block: 0; width: 56%; }
.etape-visual .bord { position: absolute; inset: 0; background: var(--gold); }
.etape-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* photo à droite (étapes impaires en français) */
.etape.vd .etape-visual { inset-inline-end: 0; }
.etape.vd .etape-visual .bord { clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%); }
.etape.vd .etape-visual img  { clip-path: polygon(calc(13% + 6px) 0, 100% 0, 100% 100%, 6px 100%); }
/* photo à gauche (étapes paires) */
.etape.vg .etape-visual { inset-inline-start: 0; }
.etape.vg .etape-visual .bord { clip-path: polygon(0 0, 87% 0, 100% 100%, 0 100%); }
.etape.vg .etape-visual img  { clip-path: polygon(0 0, calc(87% - 6px) 0, calc(100% - 6px) 100%, 0 100%); }

/* ---------- texte ---------- */
.etape-txt { position: relative; z-index: 3; width: 46%; padding: 40px 44px; display: flex; flex-direction: column; gap: 10px; }
.etape.vd .etape-txt { margin-inline-end: auto; }
.etape.vg .etape-txt { margin-inline-start: auto; text-align: end; }
.etape.vg .etape-head { justify-content: flex-end; }
.etape.vg .etape-rule { margin-inline-start: auto; }

.etape-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.etape-num {
  width: 62px; height: 62px; border-radius: 50%; background: var(--blue); color: var(--white);
  border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-title); font-weight: 700; font-size: 24px; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(8, 45, 91, .22);
}
.etape-head .i { width: 30px; height: 30px; color: var(--blue); }
.etape-txt h3 { font-family: var(--f-title); font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--blue); }
.etape-rule { width: 64px; height: 3px; border-radius: 2px; background: var(--gold); }
.etape-txt p { font-size: 16.5px; line-height: 1.75; color: var(--muted); max-width: 46ch; }
.etape.vg .etape-txt p { margin-inline-start: auto; }

/* ---------- arabe : la diagonale se retourne ---------- */
body.rtl .etape.vd .etape-visual .bord { clip-path: polygon(0 0, 87% 0, 100% 100%, 0 100%); }
body.rtl .etape.vd .etape-visual img  { clip-path: polygon(0 0, calc(87% - 6px) 0, calc(100% - 6px) 100%, 0 100%); }
body.rtl .etape.vg .etape-visual .bord { clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%); }
body.rtl .etape.vg .etape-visual img  { clip-path: polygon(calc(13% + 6px) 0, 100% 0, 100% 100%, 6px 100%); }
body.rtl .deco-arc { border: 2px solid rgba(212,175,55,.38); border-top-color: transparent; border-inline-end-color: transparent; }

/* ---------- mobile : la coupe passe à l'horizontale ---------- */
@media (max-width: 899px) {
  .parcours { gap: 18px; }
  .etape { flex-direction: column; min-height: 0; align-items: stretch; }
  .etape-visual, .etape.vd .etape-visual, .etape.vg .etape-visual {
    position: relative; inset: auto; width: 100%; height: 215px;
  }
  .etape .etape-visual .bord { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%) !important; }
  .etape .etape-visual img  { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 0 calc(88% - 6px)) !important; }
  .etape.vg .etape-visual .bord { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%) !important; }
  .etape.vg .etape-visual img  { clip-path: polygon(0 0, 100% 0, 100% calc(88% - 6px), 0 calc(100% - 6px)) !important; }
  .etape-txt, .etape.vd .etape-txt, .etape.vg .etape-txt {
    width: 100%; margin: 0; padding: 18px 20px 26px; text-align: start;
  }
  .etape.vg .etape-head { justify-content: flex-start; }
  .etape.vg .etape-rule, .etape.vg .etape-txt p { margin-inline-start: 0; }
  /* la photo passe toujours au-dessus du texte */
  .etape .etape-visual { order: -1; }
  /* le numero reste avant l'icone, quel que soit le sens de la bande */
  .etape.vg .etape-head { flex-direction: row-reverse; justify-content: flex-end; }
  .etape-num { width: 50px; height: 50px; font-size: 20px; }
  .etape-head .i { width: 24px; height: 24px; }
  .etape-txt h3 { font-size: 20px; }
  .etape-txt p { font-size: 16px; }
  .deco-dots, .deco-halo, .deco-arc { display: none; }
}

/* =====================================================================
   « POURQUOI MAZADDZ ? »
   Cartes a fond degrade, pastille d'icone en relief, arc bronze interieur.
   Le decor de section est purement decoratif (aria-hidden) et clippe.
   ===================================================================== */
/* le decor deborde volontairement jusqu'aux bords de l'ecran ;
   la page est clippee horizontalement pour qu'aucune barre n'apparaisse */
html, body { overflow-x: clip; }
.why-section { position: relative; }
.why-section > * { position: relative; z-index: 1; }

.sec-deco { position: absolute; inset-block: -40px; inset-inline: calc(50% - 50vw); z-index: 0; pointer-events: none; overflow: hidden; }
.sec-deco b, .sec-deco i { position: absolute; display: block; }
/* voile diagonal bleu tres pale */
.sec-deco { background: linear-gradient(118deg, #EFF4FA 0%, #FBFCFE 32%, #FFFFFF 55%, #F3F7FC 100%); }
/* coins bleu nuit, discrets */
.sec-deco b:nth-of-type(1), .sec-deco b:nth-of-type(2) {
  top: 0; bottom: 0; width: 124px; background: linear-gradient(180deg, var(--blue) 0%, var(--blue-900) 100%); opacity: .93;
}
.sec-deco b:nth-of-type(1) { left: 0; clip-path: polygon(0 0, 100% 0, 0 74%); }
.sec-deco b:nth-of-type(2) { right: 0; clip-path: polygon(100% 100%, 100% 26%, 0 100%); }
/* courbes bronze */
.sec-deco i:nth-of-type(1), .sec-deco i:nth-of-type(2) {
  width: 900px; height: 900px; border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, .30); border-block-end-color: transparent; border-inline-start-color: transparent;
}
.sec-deco i:nth-of-type(1) { top: -640px; left: -260px; transform: rotate(-16deg); }
.sec-deco i:nth-of-type(2) { bottom: -660px; right: -240px; transform: rotate(168deg); }
/* trames de points */
.sec-deco i:nth-of-type(3), .sec-deco i:nth-of-type(4) {
  width: 150px; height: 96px; opacity: .5;
  background-image: radial-gradient(var(--gold) 1.6px, transparent 1.7px); background-size: 16px 16px;
}
.sec-deco i:nth-of-type(3) { top: 54px; left: 32px; }
.sec-deco i:nth-of-type(4) { bottom: 70px; right: 32px; }

/* ---------------------------------------------------------- titre ---- */
.why-title .or { color: var(--gold); }
.why-lead {
  max-width: 820px; margin: 0 auto 36px; text-align: center;
  font-size: 18px; line-height: 1.7; color: var(--muted);
}

/* ---------------------------------------------------------- cartes --- */
.why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.why-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start; gap: 0 18px; padding: 26px 28px 24px;
  background: linear-gradient(142deg, #FFFFFF 0%, #FAFCFE 48%, #EDF3FA 100%);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
/* arc bronze interieur, du cote de l'icone */
.why-card::before {
  content: ''; position: absolute; inset-block: 16px; inset-inline-end: 14px; width: 64px;
  border: 2px solid rgba(212, 175, 55, .70); border-inline-start: 0;
  border-start-end-radius: 34px; border-end-end-radius: 34px; pointer-events: none;
}

.why-body { grid-column: 1; display: flex; flex-direction: column; min-width: 0; }
.why-card h3 { font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
.why-rule { width: 46px; height: 3px; border-radius: 2px; background: var(--gold); margin-bottom: 14px; }
.why-card p { font-size: 15.5px; line-height: 1.7; margin-bottom: 18px; }

/* pastille d'icone en relief */
.why-icon {
  grid-column: 2; width: 66px; height: 66px; margin: 2px 0 0; border-radius: 20px;
  background: linear-gradient(145deg, #FFFFFF 0%, #EEF3F9 100%);
  box-shadow: 0 6px 16px rgba(8, 45, 91, .13), inset 0 1px 0 rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0;
}
.why-icon svg { width: 30px; height: 30px; }

.why-num {
  position: static; grid-column: 3; align-self: start; margin-top: 10px;
  font-family: var(--f-title); font-weight: 700; font-size: 16px; letter-spacing: .06em; color: var(--gold-text);
}

.why-highlight, .why-route { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(8, 45, 91, .10); }

/* -------------------------------------------- carte pleine largeur --- */
.why-grid .why-card.why-wide {
  grid-column: 1 / -1; align-items: start; gap: 0 18px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  background: linear-gradient(142deg, #FEFBF3 0%, #FBF4E2 52%, #F7EBCF 100%);
  border-color: rgba(212, 175, 55, .42);
}
.why-grid .why-card.why-wide::before { border-color: rgba(212, 175, 55, .85); }
.why-grid .why-card.why-wide .why-icon { background: linear-gradient(145deg, #FFFFFF 0%, #F7EEDB 100%); }
@media (min-width: 768px) {
  .why-grid .why-card.why-wide .why-body { display: flex; flex-direction: column; }
  .why-grid .why-card.why-wide p { max-width: 88ch; }
}

@media (max-width: 767px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card, .why-grid .why-card.why-wide { padding: 20px 20px 18px; gap: 0 12px; }
  .why-card::before { inset-block: 12px; inset-inline-end: 10px; width: 46px; }
  .why-icon { width: 54px; height: 54px; border-radius: 16px; }
  .why-icon svg { width: 25px; height: 25px; }
  .why-num { font-size: 14px; margin-top: 6px; }
  .why-card h3 { font-size: 19px; }
  .why-lead { font-size: 16.5px; margin-bottom: 26px; }
  .sec-deco b:nth-of-type(1), .sec-deco b:nth-of-type(2) { width: 64px; }
  .sec-deco i:nth-of-type(3), .sec-deco i:nth-of-type(4) { width: 96px; height: 64px; opacity: .4; }
}

/* ---- grands titres : un mot en or + trait bronze centre dessous ---- */
.info-title .or { color: var(--gold); }
.why-title::after,
#qui-sommes-nous .info-title::after,
#comment-ca-marche .info-title::after,
#avant-acheter .info-title::after,
#contact-section .info-title::after {
  content: ''; display: block; width: 64px; height: 3px; border-radius: 2px;
  background: var(--gold); margin: 16px auto 0;
}

/* ---- decor de fond, commun a toutes les sections ---- */
.sec-deco { position: absolute; inset-block: -40px; inset-inline: calc(50% - 50vw); z-index: 0; pointer-events: none; overflow: hidden; }
.sec-deco { background: linear-gradient(118deg, #EFF4FA 0%, #FBFCFE 32%, #FFFFFF 55%, #F3F7FC 100%); }
.sec-deco b, .sec-deco i { position: absolute; display: block; }
.sec-deco b:nth-of-type(1), .sec-deco b:nth-of-type(2) {
  top: 0; bottom: 0; width: 124px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-900) 100%); opacity: .93;
}
.sec-deco b:nth-of-type(1) { left: 0; clip-path: polygon(0 0, 100% 0, 0 74%); }
.sec-deco b:nth-of-type(2) { right: 0; clip-path: polygon(100% 100%, 100% 26%, 0 100%); }
/* une section sur deux inverse les coins : la page garde un rythme */
.sec-deco.rev b:nth-of-type(1) { clip-path: polygon(0 100%, 100% 100%, 0 26%); }
.sec-deco.rev b:nth-of-type(2) { clip-path: polygon(100% 0, 100% 74%, 0 0); }
.sec-deco i:nth-of-type(1), .sec-deco i:nth-of-type(2) {
  width: 900px; height: 900px; border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, .30);
  border-block-end-color: transparent; border-inline-start-color: transparent;
}
.sec-deco i:nth-of-type(1) { top: -640px; left: -260px; transform: rotate(-16deg); }
.sec-deco i:nth-of-type(2) { bottom: -660px; right: -240px; transform: rotate(168deg); }
.sec-deco i:nth-of-type(3), .sec-deco i:nth-of-type(4) {
  width: 150px; height: 96px; opacity: .5;
  background-image: radial-gradient(var(--gold) 1.6px, transparent 1.7px); background-size: 16px 16px;
}
.sec-deco i:nth-of-type(3) { top: 54px; left: 32px; }
.sec-deco i:nth-of-type(4) { bottom: 70px; right: 32px; }
.info-section, .why-section { position: relative; }
.info-section > *, .why-section > * { position: relative; z-index: 1; }
@media (max-width: 767px) {
  .sec-deco b:nth-of-type(1), .sec-deco b:nth-of-type(2) { width: 64px; }
  .sec-deco i:nth-of-type(3), .sec-deco i:nth-of-type(4) { width: 96px; height: 64px; opacity: .4; }
}

/* =====================================================================
   FILTRE ENCASTRE — barre repliee par defaut, ouverte au clic
   ===================================================================== */
.filtres {
  position: relative; margin-bottom: 32px; overflow: hidden;
  background: linear-gradient(142deg, #FFFFFF 0%, #FAFCFE 48%, #EDF3FA 100%);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.filtres::before {                      /* petit coin bronze */
  content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 52px; height: 52px;
  background: var(--gold); opacity: .92; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
body.rtl .filtres::before { clip-path: polygon(100% 0, 0 0, 100% 100%); }

.filtres-tete {
  position: relative; z-index: 1; width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; background: none; border: 0; text-align: start; cursor: pointer;
}
.filtres-tete:hover .filtres-titre { color: var(--blue-900); }
.filtres-ico {
  width: 46px; height: 46px; border-radius: 15px; flex-shrink: 0;
  background: linear-gradient(145deg, #FFFFFF 0%, #EEF3F9 100%);
  box-shadow: 0 5px 14px rgba(8, 45, 91, .13), inset 0 1px 0 rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.filtres-ico .i { width: 22px; height: 22px; }
.filtres-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.filtres-titre { font-family: var(--f-title); font-weight: 700; font-size: 17px; color: var(--blue); transition: color var(--ease); }
.filtres-sous { font-size: 13.5px; color: var(--muted); }
.filtres-badge {
  flex-shrink: 0; background: rgba(212, 175, 55, .16); color: var(--gold-text);
  padding: 3px 11px; border-radius: 999px; font-weight: 700; font-size: 12.5px; white-space: nowrap;
}
.filtres-tete .count { flex-shrink: 0; font-weight: 600; }
.filtres-chev { flex-shrink: 0; color: var(--blue); display: inline-flex; transition: transform var(--ease); }
.filtres.ouvert .filtres-chev { transform: rotate(180deg); }

/* pastilles des filtres actifs : visibles meme barre repliee */
.filtres-puces { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 16px; }
.puce {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 5px 0 12px;
  border-radius: 999px; background: rgba(8, 45, 91, .07); color: var(--blue);
  font-weight: 600; font-size: 13px; white-space: nowrap;
}
.puce b { font-weight: 600; color: var(--muted); }
.puce button {
  width: 20px; height: 20px; border: 0; border-radius: 50%; flex-shrink: 0;
  background: rgba(8, 45, 91, .13); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.puce button:hover { background: var(--blue); color: var(--white); }
.puce button .i { width: 12px; height: 12px; }

/* corps depliant */
.filtres-corps { position: relative; z-index: 1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.filtres.ouvert .filtres-corps { grid-template-rows: 1fr; }
.filtres-inner { overflow: hidden; }
.filtres-grille {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  padding: 20px 22px 0; border-top: 1px solid var(--border);
}
.filtres-pied { display: flex; justify-content: flex-end; padding: 18px 22px 20px; }

@media (max-width: 899px) { .filtres-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  .filtres-grille { grid-template-columns: 1fr; }
  .filtres-tete { padding: 14px 16px; gap: 12px; }
  .filtres-ico { width: 40px; height: 40px; border-radius: 13px; }
  .filtres-titre { font-size: 16px; }
  .filtres-sous { display: none; }
  .filtres-tete .count { display: none; }
  .filtres-puces, .filtres-grille, .filtres-pied { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .filtres-corps { transition: none; }
}

/* =====================================================================
   PAGE DES VEHICULES — bandeau de titre et cartes a l'horizontale
   ===================================================================== */
.liste-tete {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--sh-sm);
  background: linear-gradient(142deg, #FFFFFF 0%, #FAFCFE 46%, #EDF3FA 100%);
  display: grid; grid-template-columns: minmax(0, 1fr) 38%; align-items: center;
  min-height: 190px; margin-bottom: 26px;
}
.liste-txt { padding: 30px 34px; }
.liste-txt h1 { font-family: var(--f-title); font-weight: 800; font-size: 40px; line-height: 1.15; color: var(--blue); }
.liste-txt h1 .or { color: var(--gold); }
.liste-txt p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 46ch; }

.liste-visuel { position: absolute; inset-block: 0; inset-inline-end: 0; width: 42%; }
.liste-visuel .bord { position: absolute; inset: 0; background: var(--gold);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.liste-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 34% center; clip-path: polygon(calc(16% + 6px) 0, 100% 0, 100% 100%, 6px 100%); }
body.rtl .liste-visuel .bord { clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%); }
body.rtl .liste-visuel img  { clip-path: polygon(0 0, calc(84% - 6px) 0, calc(100% - 6px) 100%, 0 100%); }

/* ---------------------------------------------------- cartes --------- */
.vehicles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.card {
  flex-direction: row; align-items: stretch;
  background: linear-gradient(142deg, #FFFFFF 0%, #FBFCFE 52%, #F1F5FB 100%);
}
.card-img { flex: 0 0 40%; aspect-ratio: auto; align-self: stretch; min-height: 210px; }
.card-body { flex: 1 1 0; min-width: 0; padding: 16px 18px 14px; gap: 7px; }
.card-title { font-size: 17px; }
.card-trim { margin-top: -2px; font-size: 13.5px; }
.card .chips { gap: 5px 12px; font-size: 13.5px; }
.card-tags { min-height: 0; }
.price-block { padding-top: 9px; }
.price-label { font-size: 11.5px; }
.card .price { color: var(--gold-text); font-size: 19px; }
.card-actions { padding-top: 10px; border-top: 1px solid var(--border); margin-top: 2px; flex-wrap: wrap; gap: 8px 10px; }
.card-actions .btn-link { flex: 0 0 auto; }
.card-actions .btn { flex: 1 1 128px; justify-content: center; }
.card-actions .btn-link { font-size: 13px; }
.card-actions .btn { height: 36px; font-size: 13px; padding: 0 12px; }
.card .cg-count { background: rgba(8, 45, 91, .78); }

/* 3 cartes par ligne seulement sur les grands ecrans : en dessous, la photo
   deviendrait une bande trop etroite pour montrer le vehicule. */
@media (min-width: 1500px) { .vehicles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .vehicles-grid { grid-template-columns: 1fr; } }
@media (max-width: 899px) and (min-width: 600px) { .card-img { flex-basis: 38%; } }

/* sous 600 px la carte repasse a la verticale : la photo prend toute la largeur */
@media (max-width: 599px) {
  .card { flex-direction: column; }
  .card-img { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .card-body { padding: 14px 16px 14px; }
}

@media (max-width: 899px) {
  .liste-tete { grid-template-columns: 1fr; min-height: 0; }
  .liste-txt { padding: 22px 20px 18px; order: 2; }
  .liste-txt h1 { font-size: 29px; }
  .liste-txt p { font-size: 16px; }
  .liste-visuel { position: relative; inset: auto; width: 100%; height: 150px; order: 1; }
  .liste-visuel .bord { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%) !important; }
  .liste-visuel img  { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 0 calc(86% - 6px)) !important; }
}
