/* MWR Auto Sport — feuille de style unique. Titres : Michroma. Texte : Montserrat. */
@font-face { font-family: "Michroma"; src: url("../fonts/michroma.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --cream: #F5F0E6;
  --tint: #ECE5D7;                 /* fond alterné (crème plus soutenu) */
  --pill: #E4DCCB;                 /* pastilles claires */
  --card: #FBF8F2;                 /* fond des cartes */
  --navy: #130E48;
  --navy-soft: #3A3577;            /* « bleu nuit clair » : emplacements photo, survols */
  --navy-deep: #0C0934;            /* barre basse du pied de page */
  --white: #FFFFFF;
  --muted: rgba(19, 14, 72, .7);
  --line: rgba(19, 14, 72, .16);
  --line-light: rgba(255, 255, 255, .14);
  --head: "Michroma", "Arial Black", sans-serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 1500px;
  --gutter: 24px;
  --pad-x: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --block: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; } /* ancres visibles sous l'en-tête fixe */
body { margin: 0; background: var(--cream); color: var(--navy); font: 400 16px/1.6 var(--sans); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--navy-soft); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; overflow-wrap: break-word; hyphens: manual; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
svg { flex: none; }
.break { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: var(--white); }
.skip:focus { top: 16px; color: var(--white); }
:focus-visible { outline: 2px solid var(--navy-soft); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 900px; }
.todo { color: var(--muted); font-style: italic; }

/* ---------- Titres ---------- */
.h2 { font-size: 34px; line-height: 1.5; color: var(--navy); }
.h2--caps { text-transform: uppercase; }
.h-caps { font-size: 20px; line-height: 1.5; text-transform: uppercase; }

/* ---------- Boutons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.btns--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 7px 18px; border: 1px solid var(--navy); border-radius: 3px; background: var(--navy); color: var(--white);
  font: 400 18px/1.6 var(--sans); text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--white); box-shadow: 0 15px 25px -7px rgba(19, 14, 72, .25); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--pill { border-radius: 9999px; padding: 12px 28px; font: 700 13px/1.4 var(--head); letter-spacing: .04em; }
.btn--sm { font-size: 15px; padding: 6px 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font: 700 13px/1.4 var(--head); text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: inherit; }
.link-arrow svg { width: 26px; height: 11px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--cream); box-shadow: 0 1px 0 var(--line); } /* reste en haut de l'écran au défilement */
.header-row { display: flex; align-items: center; gap: 16px; height: 80px; padding: 0 var(--gutter); }
.logo { display: block; flex: none; }
.logo img { height: 58px; width: auto; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav > ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a { text-decoration: none; }
.nav > ul > li > a, .nav .nav__row > a {
  display: block; padding: 8px 7px; font: 700 12px/1.6 var(--sans); letter-spacing: .02em; text-transform: uppercase; color: var(--navy); white-space: nowrap;
  transition: color .2s;
}
.nav > ul > li > a:hover, .nav .nav__row > a:hover { color: var(--navy-soft); }
.nav [aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 9px; }
.nav__row { display: flex; align-items: center; }
.nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 24px; margin-left: -6px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.nav__toggle svg { width: 11px; height: 11px; transition: transform .2s; }
.open > .nav__row .nav__toggle svg { transform: rotate(180deg); }
.nav .sub {
  position: absolute; left: 0; top: 100%; min-width: 240px; margin: 0; padding: 0; list-style: none; background: var(--navy);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav li.open > .sub, .nav li.has-sub:hover > .sub, .nav li.has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 13px; color: var(--white); font: 700 13px/1.6 var(--sans); letter-spacing: .06em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.nav .sub a:hover { background: var(--cream); color: var(--navy); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; flex: none; font: 700 12px/1.6 var(--head); color: var(--navy); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.header-phone svg { width: 16px; height: 16px; }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; }
.burger::before { content: "☰"; font-size: 26px; line-height: 1; }
.burger__lines { display: none; }

/* ---------- Menu mobile (panneau à droite) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility .3s; }
.drawer.open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(12, 9, 52, .55); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 90%); overflow-y: auto;
  display: flex; flex-direction: column; padding: 16px 24px 32px; background: var(--navy); color: var(--white);
  transform: translateX(100%); transition: transform .3s ease;
}
.drawer.open .drawer__panel { transform: none; }
.drawer__top { display: flex; justify-content: flex-end; }
.drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--white); font-size: 24px; cursor: pointer; }
.drawer__close::before { content: "✕"; }
.drawer__logo { display: block; margin: 4px 0 20px; }
.drawer__logo img { width: 220px; }
.dnav ul { list-style: none; margin: 0; padding: 0; }
.dnav a { text-decoration: none; }
.dnav > ul > li > a, .dnav .nav__row > a { display: block; flex: 1; padding: 13px 0; font: 700 16px/1.4 var(--head); color: var(--white); }
.dnav a:hover { color: rgba(255, 255, 255, .75); }
.dnav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.dnav .nav__toggle { width: 44px; height: 44px; margin: 0; color: var(--white); }
.dnav .nav__toggle svg { width: 16px; height: 16px; }
.dnav .sub { display: none; padding: 0 0 10px 16px; }
.dnav li.open > .sub { display: block; }
.dnav .sub a { display: block; padding: 8px 0; color: rgba(255, 255, 255, .82); font: 600 14px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; }
.drawer__rule { width: 50%; margin: 20px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .45); }
.drawer__contact { display: grid; gap: 12px; font-size: 15px; }
.drawer__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.drawer__contact svg { width: 18px; height: 18px; }

/* ---------- Bandeau d'accueil : photo en fond + dégradé bleu nuit + texte ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: calc(100vh - 80px); min-height: calc(100svh - 80px);
  background: var(--navy); color: var(--cream);
}
/* Photo : version large (≥ 768 px) et version verticale centrée sur la voiture (mobile), via srcset.
   Les personnes de gauche restent sous la partie la plus foncée du dégradé. */
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { max-width: none; object-fit: cover; object-position: 55% 55%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(19, 14, 72, .45) 0%, rgba(19, 14, 72, .25) 30%, rgba(19, 14, 72, 0) 55%); }
.hero__inner { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.hero__content { max-width: 50%; }
.hero__title { margin: 0; font: 700 22px/1.5 var(--head); text-transform: uppercase; color: var(--cream); overflow-wrap: break-word; text-shadow: 0 1px 3px rgba(12, 9, 52, .55); }
.hero__sub { margin: 16px 0 0; font: 500 14px/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 3px rgba(12, 9, 52, .55); }
.hero .btn--light { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.hero .btn--outline-light { background: transparent; border-color: var(--cream); color: var(--cream); }
.hero .btn--outline-light:hover { background: var(--cream); color: var(--navy); }

/* ---------- En-tête des pages ---------- */
.page-hero { background: var(--navy); color: var(--white); }
.page-hero .wrap { min-height: 400px; display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 48px; }
.page-hero--center .wrap { align-items: center; text-align: center; }
.page-hero--short .wrap { min-height: 260px; }
.page-hero h1 { font-size: 48px; line-height: 1.5; text-transform: uppercase; color: var(--white); }
.page-hero__sub { margin: 4px 0 0; font: 400 24px/1.6 var(--sans); text-transform: uppercase; color: var(--white); }
.crumbs { padding-top: 28px; font-size: 16px; }
.crumbs a { text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.block { padding: var(--block) 0; }
.block--tight { padding-top: 48px; }
.block__title { margin-bottom: 40px; }
.center-text { text-align: center; max-width: 820px; margin: 24px auto 0; }
.cta { text-align: center; }
.cta .btns { margin-top: 24px; }

/* Bloc image + texte (50/50) */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  padding: var(--block) var(--pad-x);
}
.split--tint { background: var(--tint); }
.split--reverse .split__media { order: 2; }
.split--form { align-items: start; }
.split__text .h2, .split__text .h-caps { margin-bottom: 24px; }
.split__text { max-width: 690px; }

/* Emplacement photo 4:3 — une vraie photo y garde son format d'origine (aucun recadrage) */
.photo { position: relative; background: var(--navy-soft); overflow: hidden; }
.photo--empty { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.photo--empty span { font: 700 13px/1.4 var(--head); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.photo img { width: 100%; height: auto; }

/* ---------- Cartes véhicules ---------- */
.cars { list-style: none; margin: 0; padding: 0; }
.cars--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 40px; }
.car { display: flex; flex-direction: column; background: var(--card); box-shadow: 0 10px 25px -10px rgba(19, 14, 72, .18); }
.car__body { padding: 20px 24px 28px; }
.car__brand { margin: 0 0 6px; font: 700 13px/1.5 var(--head); text-transform: uppercase; }
.car__model { margin-bottom: 16px; font-size: 20px; line-height: 1.5; text-transform: uppercase; }
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.pill { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 6px 8px; border-radius: 9999px; background: var(--pill); text-align: center; }
.pill dt { font: 600 9px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.pill dd { margin: 0; font: 700 11px/1.4 var(--sans); white-space: nowrap; }
.pill--dark { background: var(--navy); color: var(--white); }

/* Carrousel (accueil) */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 3); gap: 40px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 24px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > li { scroll-snap-align: start; }
.carousel__btn {
  position: absolute; top: calc((100% - 24px - 60px) / 2 - 80px); z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 3px; background: rgba(19, 14, 72, .85); color: var(--white); cursor: pointer; transition: background-color .2s;
}
.carousel__btn:hover { background: var(--navy-soft); }
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.carousel__dots span.on { background: var(--navy); }

/* ---------- Bande des services (accueil) ---------- */
.svc-band { display: grid; grid-template-columns: 1.3fr repeat(6, 1fr); background: var(--navy); color: var(--white); }
.svc-band__intro { padding: 56px 30px; }
.svc-band__intro .h2 { color: var(--white); font-size: 28px; margin-bottom: 24px; }
.svc-band__intro .link-arrow { margin-top: 16px; font-size: 11px; }
.svc-tile {
  position: relative; display: flex; flex-direction: column; min-height: 480px; padding: 56px 24px 32px;
  border-left: 1px solid var(--line-light); color: var(--white); text-decoration: none; transition: background-color .35s;
}
.svc-tile h3 { font-size: 16px; line-height: 1.6; color: var(--white); hyphens: auto; }
.svc-tile p { margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.svc-tile .link-arrow { margin-top: auto; opacity: 0; transition: opacity .35s; }
.svc-tile:hover, .svc-tile:focus-visible { background: var(--navy-soft); color: var(--white); }
.svc-tile:hover p, .svc-tile:focus-visible p, .svc-tile:hover .link-arrow, .svc-tile:focus-visible .link-arrow { opacity: 1; transform: none; }

/* ---------- Tuiles (bande bleu nuit : services, étapes) ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--navy); color: var(--white); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tile { display: flex; flex-direction: column; gap: 16px; padding: 48px 30px 56px; border-left: 1px solid var(--line-light); transition: background-color .35s; }
.tile:first-of-type { border-left: 0; }
.tile:hover { background: var(--navy-soft); }
.tile h2, .tile h3 { font-size: 18px; line-height: 1.5; text-transform: uppercase; color: var(--white); }
.tiles--3 .tile h3, .tiles--4 .tile h3 { font-size: 20px; }
.tile p { margin: 0; color: rgba(255, 255, 255, .85); }
.tile__num { font: 700 14px/1 var(--head); color: rgba(255, 255, 255, .6); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.checks svg { width: 18px; height: 18px; }
.tile__btns { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; padding-top: 8px; }
.tile .btn:not(.btn--light) { background: rgba(255, 255, 255, .1); border-color: transparent; }
.tile .btn:not(.btn--light):hover { background: var(--cream); color: var(--navy); }

/* ---------- Chiffres (Pourquoi nous choisir) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 56px var(--pad-x); background: var(--navy-deep); color: var(--white); text-align: center; }
.stat strong { display: block; font: 700 24px/1.5 var(--head); }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .8); }

/* ---------- Pastilles (barre sous le fil d'Ariane) ---------- */
.chips { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 64px; text-align: center; }
.chips p { margin: 0; }
.chips__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 3px; background: var(--pill); font: 700 14px/1.6 var(--sans); text-decoration: none; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--navy); color: var(--white); }
.chip--dark { background: var(--navy); color: var(--white); }
.chip--dark:hover { background: var(--navy-soft); color: var(--white); }

/* ---------- Encadré stock Leboncoin (accueil, Nos véhicules) ---------- */
.stock-box { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 56px 32px; background: var(--card); box-shadow: 0 10px 25px -10px rgba(19, 14, 72, .18); text-align: center; }
.stock-box__title { margin: 0; font: 700 22px/1.5 var(--head); text-transform: uppercase; }

/* ---------- Avantages du dépôt-vente ---------- */
.block--flush { padding-bottom: 0; }
.block--flush .chips { margin-bottom: 0; }
.perks { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 22px; }
.perks li { display: flex; gap: 16px; }
.perks svg { width: 26px; height: 26px; margin-top: 1px; }
.perks strong { display: block; margin-bottom: 2px; }
.perks__lead { font-weight: 600; }
.modes { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 14px; }
.modes li { padding-left: 16px; border-left: 2px solid var(--navy); }
.modes strong { display: block; }

/* ---------- Offres (Vendre votre véhicule) ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.offer { padding: 40px; background: var(--card); box-shadow: 0 10px 25px -10px rgba(19, 14, 72, .18); scroll-margin-top: 24px; }
.offer__kicker { display: block; margin-bottom: 8px; font: 700 13px/1.5 var(--head); text-transform: uppercase; }
.offer__title { margin-bottom: 16px; font-size: 26px; line-height: 1.5; text-transform: uppercase; }

/* ---------- Coordonnées ---------- */
.contact-card { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.contact-card li { display: flex; gap: 16px; }
.contact-card svg { width: 22px; height: 22px; margin-top: 2px; }
.contact-card strong { display: block; font: 700 12px/1.6 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.contact-card a { text-decoration: none; }
.split__media .contact-card { padding: 48px; background: var(--navy); color: var(--white); }
.split__media .contact-card a { color: var(--white); }
.split__text .contact-card { margin-top: 40px; }

/* ---------- Formulaires ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 40px; border-radius: 20px; background: var(--card); box-shadow: 0 10px 25px -10px rgba(19, 14, 72, .18); }
.form fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend { grid-column: 1 / -1; margin-bottom: 14px; padding: 0; font: 700 15px/1.5 var(--head); text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full, .actions, .choices, .form__subject { grid-column: 1 / -1; }
.field label { font: 600 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; padding: 11px 18px; border: 1px solid rgba(19, 14, 72, .28); border-radius: 9999px; background: var(--white);
  color: var(--navy); font: 400 15px/1.4 var(--sans); transition: border-color .2s;
}
.field textarea { min-height: 140px; border-radius: 20px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field select {
  width: 100%; padding: 11px 40px 11px 18px; border: 1px solid rgba(19, 14, 72, .28); border-radius: 9999px; color: var(--navy); font: 400 15px/1.4 var(--sans);
  -webkit-appearance: none; appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23130E48' stroke-width='1.5' d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center / 12px;
}
.field select:focus { outline: none; border-color: var(--navy); }
.field__label { font: 600 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.field__help { font-size: 12px; color: var(--muted); }

/* Formulaire en tête de page (Recherche personnalisée, Importation, Carte grise) */
.form-block__wrap { max-width: 1000px; }
.form-block__wrap > .h2 { margin-bottom: 12px; }
.form-block__wrap > p { margin-bottom: 28px; }

/* Calculateur de carte grise */
.cg-result { margin-top: 40px; padding: 40px; border-radius: 20px; background: var(--card); box-shadow: 0 10px 25px -10px rgba(19, 14, 72, .18); scroll-margin-top: 16px; }
.cg-result .h-caps { margin-bottom: 20px; }
.cg-cv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 4px; font: 700 15px/1.5 var(--head); text-transform: uppercase; }
.cg-cv strong { font-size: 24px; }
.cg-meta { font-size: 14px; color: var(--muted); }
.cg-table { width: 100%; margin: 20px 0; border-collapse: collapse; }
.cg-table th, .cg-table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.cg-table th { font-weight: 700; padding-right: 16px; }
.cg-table th span { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.cg-table td { text-align: right; white-space: nowrap; font-weight: 600; }
.cg-table tfoot th, .cg-table tfoot td { border-bottom: 0; padding-top: 18px; font: 800 20px/1.4 var(--sans); text-transform: uppercase; } /* Michroma n'a pas le signe € */
.cg-legal { font-size: 13px; color: var(--muted); }
.cg-legal a { color: var(--navy); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9999px; background: var(--pill); font-weight: 600; font-size: 14px; cursor: pointer; }
.choice input { accent-color: var(--navy); margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.note { margin: 0; font-size: 13px; color: var(--muted); }
.form__req { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.req { font-weight: 700; }
.opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.hp { display: none !important; }
.form__status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.form__status:empty { display: none; }
.form.is-error .form__status { padding: 12px 16px; border-left: 3px solid var(--navy); background: var(--pill); }
.btn[disabled] { opacity: .6; cursor: progress; }
.form__subject { margin: 0; font: 700 15px/1.5 var(--head); text-transform: uppercase; }

/* ---------- Mentions légales ---------- */
.prose { max-width: 900px; }
.prose h2 { margin: 40px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose dl { display: grid; grid-template-columns: 240px 1fr; gap: 10px 24px; margin: 0; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter) 56px; }
.footer-logo img { width: 240px; }
.footer-brand p { margin-top: 20px; color: rgba(255, 255, 255, .85); max-width: 300px; }
.footer-title { margin-bottom: 20px; font: 700 26px/1.5 var(--head); color: var(--white); }
.footer-list, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-list li { display: flex; gap: 12px; }
.footer-list svg { width: 18px; height: 18px; margin-top: 3px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: rgba(255, 255, 255, .7); }
.footer-bottom { padding: 16px var(--gutter); background: var(--navy-deep); text-align: center; font-size: 13px; color: rgba(255, 255, 255, .85); }
.footer-bottom a { text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- Véhicules du CRM (Nos véhicules, carrousel d'accueil, fiche) — js/vehicules.js, js/fiche-vehicule.js ---------- */
[hidden] { display: none !important; }
:root { --ok: #2F6B45; --amber: #A3661E; --blue: #2C5A94; --wa: #1E7A44; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 3px; font: 700 11px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--navy); white-space: nowrap; }
.badge--disponible { background: var(--ok); }
.badge--reserve { background: var(--amber); }
.badge--bientot { background: var(--blue); }
.badge--vendu { background: var(--navy); }
.v-status { margin: 0; padding: 24px 0; color: var(--muted); }
.v-status:empty { display: none; }

/* Cartes */
.car--live { transition: box-shadow .2s; }
.car--live:hover { box-shadow: 0 18px 32px -12px rgba(19, 14, 72, .32); }
.car__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.car__photo { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: var(--navy-soft); }
.car__photo { overflow: hidden; }
.car__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } /* photo entière, jamais recadrée */
.car__photo .badge { position: absolute; top: 12px; left: 12px; }
.car__nophoto { font: 700 13px/1.4 var(--head); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.car__title { margin: 0 0 8px; font-size: 17px; line-height: 1.45; text-transform: uppercase; }
.car__meta { margin: 0; font-size: 14px; color: var(--muted); }
.car__price { margin: 12px 0 0; font: 800 20px/1.3 var(--sans); } /* Michroma n'a pas le signe € */
.carousel--static .carousel__btn, .carousel--static .carousel__dots { display: none; }
.carousel .car__photo + .car__body { flex: 1; }
.voir-tout { margin: 24px 0 0; text-align: center; }

/* Nos véhicules : filtres */
.vfilters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; margin: 0 0 16px; }
.vfilters__count { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.vfilters__empty { margin: 0; padding: 40px 0; text-align: center; }
.linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Fiche */
.fiche { padding-bottom: var(--block); }
.fiche .crumbs { padding-bottom: 24px; }
.fiche__missing { padding-top: 24px; padding-bottom: 48px; }
.fiche__missing .h2 { margin-bottom: 12px; }
.fiche__top { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: 40px; align-items: start; }
.gal { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-soft); }
.gal__main { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal__main[disabled] { cursor: default; }
.gal__main img { width: 100%; height: 100%; object-fit: contain; }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(19, 14, 72, .75); color: var(--white); cursor: pointer; transition: background-color .2s; }
.gal__nav:hover { background: var(--navy); }
.gal__nav svg { width: 20px; height: 20px; }
.gal__nav--prev { left: 12px; }
.gal__nav--next { right: 12px; }
.gal__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 12px; border-radius: 9999px; background: rgba(19, 14, 72, .75); color: var(--white); font: 600 13px/1.4 var(--sans); }
.gal--single .gal__nav, .gal--single .gal__count { display: none; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.thumbs button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: var(--navy-soft); cursor: pointer; overflow: hidden; }
.thumbs button.on { border-color: var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.thumbs__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(19, 14, 72, .62); color: var(--white); font: 700 18px/1 var(--sans); }

.fiche__side { display: grid; gap: 24px; }
.fcard { padding: 28px; background: var(--white); box-shadow: 0 10px 25px -10px rgba(19, 14, 72, .18); }
.fcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.fcard__version { font-size: 14px; color: var(--muted); }
.fcard__title { margin: 0 0 14px; font-size: 22px; line-height: 1.45; text-transform: uppercase; }
.fcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 22px; }
.fcard__amount { font: 800 28px/1.2 var(--sans); }
.fcard__ask { font: 800 22px/1.2 var(--sans); }
.fcard__ttc { font: 700 13px/1 var(--sans); color: var(--muted); }
.fcard__sep { color: var(--muted); }
.fcard__km { font: 600 17px/1.2 var(--sans); }
.fcard__actions { display: grid; gap: 12px; }
.fcard .btn { min-height: 50px; font-size: 16px; }
.fcard .btn svg { width: 20px; height: 20px; flex: none; }
.fcard__main { width: 100%; }
.fcard__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn--wa { background: transparent; border-color: var(--wa); color: var(--wa); }
.btn--wa:hover { background: var(--wa); border-color: var(--wa); color: var(--white); }
.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.fsec__title { margin: 0; font-size: 15px; line-height: 1.5; text-transform: uppercase; }
.fspecs { padding: 24px 28px; background: var(--white); box-shadow: 0 10px 25px -10px rgba(19, 14, 72, .18); }
.fspecs__list { margin: 10px 0 0; }
.fspecs__list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fspecs__list div:last-child { border-bottom: 0; padding-bottom: 0; }
.fspecs__list dt { color: var(--muted); }
.fspecs__list dd { margin: 0; font-weight: 700; text-align: right; }

.crit { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.crit li { display: flex; flex-direction: column; gap: 2px; min-width: 120px; padding: 10px 16px; border-radius: 3px; background: var(--pill); }
.crit span { font: 600 11px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.crit strong { font-size: 15px; }

.fold { margin-top: 24px; background: var(--white); box-shadow: 0 10px 25px -10px rgba(19, 14, 72, .18); }
.fold + .fold { margin-top: 12px; }
.fold summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: -5px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s, margin .2s; }
.fold[open] summary::after { margin-top: 5px; transform: rotate(-135deg); }
.fold__body { padding: 0 28px 28px; }
.opts { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.opts li { display: flex; gap: 10px; padding: 5px 0; font-weight: 700; break-inside: avoid; }
.opts svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.fold__rule { margin: 20px 0; border: 0; border-top: 1px solid var(--line); }
.fold__more { margin: 0; line-height: 1.8; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hist li { position: relative; padding-left: 20px; }
.hist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }

.fsearch { display: grid; justify-items: start; gap: 16px; margin-top: 48px; padding: 48px; background: var(--navy); color: var(--white); }
.fsearch__title { font-size: 24px; line-height: 1.4; color: var(--white); }
.fsearch p { margin: 0; max-width: 760px; color: rgba(255, 255, 255, .88); }
.fsearch .btn { margin-top: 8px; }
.fothers { margin-top: 64px; }
.fothers__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.fiche__legal { margin-top: 48px; margin-bottom: 0; font-size: 12px; color: var(--muted); }

/* Visionneuse plein écran */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(8, 6, 36, .97); }
.lightbox__img { width: auto; height: auto; max-width: calc(100vw - 150px); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); object-fit: contain; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--white); font-size: 26px; cursor: pointer; }
.lightbox__close::before, .rappel__close::before { content: "✕"; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--white); cursor: pointer; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--white); font: 600 14px/1 var(--sans); }
.lightbox--single .lightbox__nav, .lightbox--single .lightbox__count { display: none; }

/* Fenêtre « Être rappelé » */
.rappel { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--card); color: var(--navy); box-shadow: 0 20px 40px -12px rgba(19, 14, 72, .4); }
.rappel::backdrop { background: rgba(12, 9, 52, .55); }
.rappel__in { position: relative; padding: 28px; }
.rappel__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--navy); font-size: 20px; cursor: pointer; }
.rappel .fsec__title { margin: 0 44px 18px 0; }
.form--compact { grid-template-columns: 1fr; padding: 0; border-radius: 0; background: none; box-shadow: none; }

@media (max-width: 1024px) {
  .fiche__top { grid-template-columns: 1fr; gap: 24px; }
  .vfilters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .vfilters { gap: 12px; }
  .car__title { font-size: 16px; }
  .thumbs { gap: 6px; }
  .gal__nav { width: 38px; height: 38px; }
  .fcard, .fspecs { padding: 22px 20px; }
  .fcard__title { font-size: 19px; }
  .fcard__amount { font-size: 26px; }
  .fcard .btn { min-height: 52px; }
  .crit { margin-top: 24px; gap: 8px; }
  .crit li { min-width: 0; flex: 1 1 calc(50% - 4px); }
  .fold summary { padding: 18px 20px; }
  .fold__body { padding: 0 20px 22px; }
  .opts { columns: 1; }
  .fsearch { padding: 32px 20px; }
  .fsearch__title { font-size: 19px; }
  .fothers { margin-top: 48px; }
  .lightbox__img { max-width: 100vw; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); }
  .lightbox__nav { top: auto; bottom: 10px; transform: none; }
  .lightbox__count { bottom: 28px; }
}

/* ---------- Écrans moyens ---------- */
@media (max-width: 1340px) {
  .nav, .header-phone { display: none; }
  .burger { display: inline-flex; }
  .svc-band { grid-template-columns: repeat(3, 1fr); }
  .svc-band__intro { grid-column: 1 / -1; padding-bottom: 24px; }
  .svc-tile { min-height: 300px; border-top: 1px solid var(--line-light); }
  .svc-tile p, .svc-tile .link-arrow { opacity: 1; transform: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .tile { border-top: 1px solid var(--line-light); }
}
@media (max-width: 1024px) {
  :root { --block: 72px; }
  .cars--grid { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { grid-auto-columns: calc((100% - 40px) / 2); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .split--form .split__media { order: 2; }
  .split__text { max-width: none; }
  .offers { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --block: 56px; }
  .hero { align-items: flex-start; }
  .hero__media img { object-position: 50% 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(19, 14, 72, .5) 0%, rgba(19, 14, 72, .45) 40%, rgba(19, 14, 72, .35) 58%, rgba(19, 14, 72, .35) 100%); }
  .hero__inner { padding-top: 40px; padding-bottom: 48px; }
  .hero__content { max-width: none; }
  .hero__title { font-size: 14px; letter-spacing: -.03em; } /* titre sur 4 lignes maximum */
  .hero__sub { font-size: 12px; }
  .hero .btns { flex-direction: column; align-items: flex-start; }
  .page-hero .wrap { min-height: 300px; }
  .page-hero--short .wrap { min-height: 200px; }
  .page-hero h1 { font-size: 24px; }
  .page-hero__sub { font-size: 17px; }
  .h2 { font-size: 22px; }
  .svc-band__intro .h2 { font-size: 22px; }
  .h-caps { font-size: 17px; }
  .btn { font-size: 16px; }
  .cars--grid { grid-template-columns: 1fr; gap: 40px; }
  .carousel__track { grid-auto-columns: 100%; gap: 24px; }
  .car__model { font-size: 18px; }
  .svc-band, .tiles, .tiles--3, .tiles--4 { grid-template-columns: 1fr; }
  .svc-band__intro { padding: 48px var(--gutter) 24px; }
  .svc-tile { min-height: 0; padding: 32px var(--gutter); border-left: 0; }
  .svc-tile .link-arrow { margin-top: 20px; }
  .tile { padding: 36px var(--gutter) 40px; border-left: 0; }
  .tile:first-of-type { border-top: 0; }
  .stats { grid-template-columns: 1fr; padding: 40px var(--gutter); }
  .stat strong { font-size: 18px; }
  .offer { padding: 32px 24px; }
  .stock-box { padding: 40px 20px; }
  .stock-box__title { font-size: 17px; }
  .offer__title { font-size: 20px; }
  .form, .form fieldset { grid-template-columns: 1fr; }
  .form { padding: 28px 20px; }
  .cg-result { padding: 28px 20px; }
  .cg-table tfoot th, .cg-table tfoot td { font-size: 15px; }
  .split__media .contact-card { padding: 32px 20px; font-size: 14px; }
  .contact-card a.break { overflow-wrap: normal; word-break: normal; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .footer-logo img { margin: 0 auto; width: 200px; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-list li { justify-content: center; }
  .footer-title { font-size: 22px; }
}
@media (max-width: 375px) { .hero__title { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
