/* ==========================================================
   RC AUTOMATE — Mandataire automobile
   Identité : bleu confiance + vert sérénité, formes douces
   ========================================================== */
:root {
  --blue-900: #0a1f3c;
  --blue-800: #1240a8;
  --blue-700: #1a56db;
  --blue-600: #3b76ea;
  --blue-100: #d6e4ff;
  --blue-50: #eef4ff;
  --green-700: #0b8043;   /* boutons d'action « feu vert » (contraste AA) */
  --green-800: #086b37;
  --green-500: #16b364;   /* décoratif */
  --amber: #ffc83d;       /* badges « bonne affaire » (texte bleu nuit) */
  --amber-50: #fff7e0;
  --green-100: #c9f0da;
  --green-50: #e7f6ee;
  --ink: #1c2733;
  --muted: #5a6878;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-warm: #faf8f4;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 60, .06);
  --shadow: 0 12px 32px rgba(10, 31, 60, .08);
  --shadow-lg: 0 24px 60px rgba(10, 31, 60, .14);
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

[hidden] { display: none !important; }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.18;
  margin: 0 0 .55em;
  color: var(--blue-900);
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--blue { background: var(--blue-900); color: #cfdcec; }
.section--blue h2, .section--blue h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
.section--blue .eyebrow { background: rgba(255,255,255,.08); color: var(--amber); }

.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--blue .section-head p { color: #a9bbd1; }

.skip-link { position: absolute; left: -9999px; top: 10px; background: var(--blue-700); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 10px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px;
  font-weight: 700; font-size: .98rem; font-family: inherit;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(11,128,67,.28); }
.btn--primary:hover { background: var(--green-800); }
.btn--blue { background: var(--blue-700); color: #fff; }
.btn--blue:hover { background: var(--blue-800); }
.btn--outline { border-color: var(--blue-100); color: var(--blue-800); background: #fff; }
.btn--outline:hover { border-color: var(--blue-700); }
.btn--light { background: #fff; color: var(--blue-800); }
.btn--light:hover { background: var(--blue-50); }
.btn--sm { padding: 10px 16px; font-size: .9rem; border-radius: 10px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.topbar { background: var(--blue-900); color: #b9c8da; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span { display: inline-flex; gap: 6px; align-items: center; }
.topbar svg { width: 15px; height: 15px; color: var(--green-500); }

.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand__name { display: block; font-family: var(--font-title); font-weight: 800; font-size: 1.28rem; color: var(--blue-800); line-height: 1.05; letter-spacing: -.01em; }
.brand__tag { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-top: 3px; }

.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--blue-900); padding: 10px 14px; border-radius: 10px; }
.nav a:not(.btn):hover { background: var(--blue-50); }
.nav a[aria-current="page"] { color: var(--green-700); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--blue-900); margin: 6px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% 10%, rgba(26,86,219,.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255,200,61,.16), transparent 60%),
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
  padding: 80px 0 90px;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--blue-700); background: linear-gradient(transparent 62%, rgba(255,200,61,.55) 62%); border-radius: 4px; }
.hero .lead { font-size: 1.18rem; color: var(--muted); margin-bottom: 30px; max-width: 580px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--blue-900); }
.trust-row svg { width: 20px; height: 20px; color: var(--green-700); flex: 0 0 20px; }

/* carte « exemple d'offre » du hero */
.offer-demo {
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 26px; margin-top: 18px;
  border: 1px solid var(--line); position: relative;
}
.offer-demo__media { border-radius: 16px; overflow: hidden; background: linear-gradient(#f3f7fb, #e3ebf4); aspect-ratio: 16/10; margin-bottom: 18px; }
.offer-demo__media img, .offer-demo__media svg { width: 100%; height: 100%; object-fit: cover; }
.offer-demo__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.offer-demo h3 { margin: 0; font-size: 1.2rem; }
.offer-demo small { color: var(--muted); }
.price-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 16px; }
.price-box { border-radius: 12px; padding: 12px 14px; background: var(--bg-soft); }
.price-box span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.price-box strong { font-family: var(--font-title); font-size: 1.25rem; color: var(--blue-900); }
.price-box--old strong { text-decoration: line-through; text-decoration-thickness: 2px; color: #7a8796; font-weight: 600; }
.price-box--new { background: var(--green-50); box-shadow: inset 0 0 0 2px var(--green-100); }
.price-box--new strong { color: var(--green-700); font-size: 1.45rem; }
.saving-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--amber); color: var(--blue-900); font-weight: 800; font-size: .9rem; padding: 6px 12px; border-radius: 999px; font-family: var(--font-title); white-space: nowrap; }
.offer-demo__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.offer-demo__badge {
  position: absolute; right: 22px; top: -24px; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-size: .86rem; border: 1px solid var(--line);
}
.offer-demo__badge svg { width: 30px; height: 30px; color: var(--green-700); }
.offer-demo__badge strong { display: block; color: var(--blue-900); }

/* ---------- Bandeau réassurance ---------- */
.reassure { margin-top: -38px; position: relative; z-index: 2; }
.reassure__grid {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.reassure__item { padding: 26px 24px; display: flex; gap: 14px; align-items: flex-start; }
.reassure__item + .reassure__item { border-left: 1px solid var(--line); }
.reassure__item h3 { font-size: 1rem; margin-bottom: 4px; }
.reassure__item p { font-size: .9rem; color: var(--muted); margin: 0; }

.icon-bubble {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--green-50); color: var(--green-700);
}
.icon-bubble svg { width: 24px; height: 24px; }
.icon-bubble--blue { background: var(--blue-50); color: var(--blue-700); }

/* ---------- Grilles / cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon-bubble { margin-bottom: 18px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Mandataire : explication ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.compare { background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--blue-50); color: var(--blue-900); font-family: var(--font-title); }
.compare thead th:last-child { background: var(--green-50); color: var(--green-700); }
.compare td:last-child { font-weight: 600; color: var(--blue-900); }
.compare tr:last-child td { border-bottom: 0; }
.ok { color: var(--green-700); font-weight: 800; margin-right: 6px; }
.ko { color: #9aa6b4; font-weight: 800; margin-right: 6px; }

.checklist { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: 0 0 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23177356' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px 24px; }
.step__num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--amber); color: var(--blue-900); font-weight: 800; font-family: var(--font-title); font-size: 1.15rem; margin-bottom: 18px;
}
.step p { color: #a9bbd1; margin: 0; font-size: .95rem; }

/* ---------- Véhicules / offres ---------- */
.vehicle-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.vehicle-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.vehicle-card__media { position: relative; aspect-ratio: 16/10; background: linear-gradient(#f3f7fb, #e3ebf4); overflow: hidden; }
.vehicle-card__media img, .vehicle-card__media svg { width: 100%; height: 100%; object-fit: cover; }
.tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.tag { background: #fff; color: var(--blue-900); font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.tag--green { background: var(--amber); color: var(--blue-900); }
.vehicle-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.vehicle-card__title { font-size: 1.12rem; margin: 0 0 2px; }
.vehicle-card__version { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.spec { font-size: .78rem; background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; color: var(--blue-800); font-weight: 600; }
.vehicle-card__prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.price { font-family: var(--font-title); font-size: 1.5rem; font-weight: 800; color: var(--blue-900); }
.price small { font-size: .72rem; color: var(--muted); font-weight: 600; margin-left: 3px; }
.price-old { color: #6b7886; text-decoration: line-through; font-size: .92rem; }
.saving { color: var(--green-800); font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.vehicle-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.delay { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.delay::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.delay--order::before { background: #e3a93b; }

/* ---------- Catalogue ---------- */
.catalogue { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 98px; }
.filters h2 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.filters__reset { background: none; border: 0; color: var(--green-700); font-weight: 700; cursor: pointer; font-size: .85rem; font-family: inherit; }
.filters__close { display: none; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 8px; color: var(--blue-900); }
.field fieldset { border: 0; margin: 0; padding: 0; }
.field select, .field input[type="search"], .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #d3dce7; border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { outline: 3px solid var(--green-100); border-color: var(--green-700); }
.field input[type="range"] { width: 100%; accent-color: var(--green-700); }
.range-value { font-size: .85rem; color: var(--muted); float: right; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid #d3dce7; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--blue-800); user-select: none; background: #fff; }
.chip input:checked + span { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--green-500); outline-offset: 2px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.results-bar p { margin: 0; color: var(--muted); }
.results-bar strong { color: var(--blue-900); }
.results-bar select { padding: 10px 12px; border: 1px solid #d3dce7; border-radius: var(--radius-sm); font: inherit; background: #fff; }
.filters-toggle { display: none; }
.empty { text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,31,60,.6); backdrop-filter: blur(2px); }
.modal__dialog { position: relative; background: #fff; border-radius: 24px; max-width: 940px; width: 100%; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.05fr 1fr; }
.modal__media { background: linear-gradient(#f3f7fb, #e3ebf4); min-height: 320px; display: flex; align-items: center; }
.modal__media svg, .modal__media img { width: 100%; height: auto; }
.modal__body { padding: 32px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); cursor: pointer; font-size: 1.4rem; line-height: 1; z-index: 2; color: var(--blue-900); }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: .93rem; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 600; width: 46%; }
.equip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.note { font-size: .8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; color: var(--blue-900); position: relative; font-family: var(--font-title); font-size: 1.03rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Devis / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 16px; }
.info-list strong { display: block; color: var(--blue-900); }
.info-list a { color: var(--green-700); font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .field--full { grid-column: 1 / -1; }
.req { color: #b42318; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 4px 0 18px; }
.consent input { margin-top: 4px; accent-color: var(--green-700); width: 16px; height: 16px; flex: 0 0 16px; }
.form-msg { margin-top: 14px; font-size: .9rem; padding: 12px 14px; border-radius: 10px; background: var(--green-50); color: var(--green-800); }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 260px; background: var(--bg-soft); position: relative; }
.map-box iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 10px; color: var(--muted); font-size: .9rem; }
.map-placeholder p { max-width: 360px; margin: 0; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%); border-radius: 28px; padding: 56px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,200,61,.22); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; color: #d6e4ff; max-width: 560px; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--blue-50), #fff); padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue-700); text-decoration: none; font-weight: 600; }

/* ---------- Pages légales ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal p, .legal li { color: #3b4655; }
.legal a { color: var(--blue-700); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .93rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); }
.legal .box { background: var(--green-50); border-left: 4px solid var(--green-500); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; }
.todo { background: #fff4c2; padding: 1px 6px; border-radius: 4px; font-weight: 700; color: #7a5a00; }
.legal-toc { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; }
.legal-toc ol { margin: 0; padding-left: 20px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--blue-900); color: #a9bbd1; padding: 70px 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: #d0dcea; }
.footer a:hover { color: var(--amber); }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: var(--amber); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #d0dcea; cursor: pointer; }
.linklike:hover { color: var(--amber); }

/* ---------- Bandeau cookies ---------- */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 500; max-width: 760px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(10,31,60,.28); padding: 26px 28px; border: 1px solid var(--line); display: none; }
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: 8px; }
.cookie-banner p { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.cookie-banner p a { color: var(--blue-700); font-weight: 600; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__actions .btn { flex: 1 1 150px; padding: 12px 18px; font-size: .92rem; white-space: normal; }
.btn--neutral { background: var(--blue-800); color: #fff; }
.btn--neutral:hover { background: var(--blue-700); }
.cookie-panel { display: none; margin: 4px 0 18px; border-top: 1px solid var(--line); }
.cookie-panel.is-open { display: block; }
.cookie-cat { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cookie-cat h3 { font-size: .95rem; margin: 0 0 4px; }
.cookie-cat p { margin: 0; font-size: .84rem; }
.switch { position: relative; flex: 0 0 48px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cdd5e1; border-radius: 999px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green-700); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:disabled + span { opacity: .6; cursor: not-allowed; }
.switch input:focus-visible + span { outline: 3px solid var(--green-500); outline-offset: 2px; }

/* ---------- Divers ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .reassure__grid { grid-template-columns: repeat(2, 1fr); }
  .reassure__item:nth-child(3) { border-left: 0; }
  .reassure__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .catalogue { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); z-index: 300; border-radius: 0; overflow-y: auto; transform: translateX(-105%); transition: transform .25s; top: 0; }
  .filters.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .filters-toggle { display: inline-flex; }
  .filters__close { display: inline-flex; }
}
@media (max-width: 900px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .offer-demo__badge { right: 12px; top: -22px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; top: 78px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .nav a:not(.btn) { display: block; padding: 12px; }
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__media { min-height: 200px; }
  .section { padding: 68px 0; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 600px) {
  .topbar { display: none; }
  .grid--4, .grid--3, .grid--2, .steps, .reassure__grid, .form-grid { grid-template-columns: 1fr; }
  .reassure__item + .reassure__item { border-left: 0; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 26px; }
  .hero { padding: 48px 0 70px; }
  .form-card { padding: 24px; }
  .brand__name { font-size: 1.1rem; }
  .compare th, .compare td { padding: 12px 10px; font-size: .88rem; }
  .legal table { display: block; overflow-x: auto; }
}
.hero__grid > *, .split > *, .contact-grid > *, .catalogue > * { min-width: 0; }
.compare { overflow-x: auto; }

/* Crédit photo (licences Creative Commons) */
.vehicle-card__media, .offer-demo__media, .modal__media { position: relative; }
.photo-credit { position: absolute; right: 8px; bottom: 6px; font-size: .62rem; line-height: 1.3; color: #fff; background: rgba(10,31,60,.6); padding: 2px 7px; border-radius: 5px; max-width: calc(100% - 16px); }
.vehicle-card__media img, .offer-demo__media img { object-position: center; }

/* ==========================================================
   V4 — STYLE « PLACE DE MARCHÉ PREMIUM »
   Inspiré de Chrono24 (bleu nuit, gris chaud, sobriété)
   et de La Centrale (blanc, anthracite, UN seul accent vif).
   Règle : l'accent rouge = actions uniquement ; le vert = économies uniquement.
   ========================================================== */
:root {
  --blue-900: #1a253c;   /* bleu nuit Chrono24 : titres, en-tête, aplats */
  --blue-800: #26344f;
  --blue-700: #374e80;   /* liens */
  --blue-600: #4a639a;
  --blue-100: #d7dce6;
  --blue-50: #f4f4f7;
  --accent: #d9003f;     /* boutons d'action (blanc dessus : 5,2:1) */
  --accent-dark: #b80035;
  --ink: #22212a;
  --muted: #6d6d83;
  --line: #e4e4ea;
  --bg-soft: #f4f4f7;    /* gris froid La Centrale */
  --bg-warm: #efecea;    /* gris chaud Chrono24 */
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(26, 37, 60, .08);
  --shadow: 0 6px 18px rgba(26, 37, 60, .08);
  --shadow-lg: 0 14px 36px rgba(26, 37, 60, .12);
  --font-title: "Inter", system-ui, sans-serif;
}

h1, h2 { font-weight: 700; letter-spacing: -.02em; }
h3 { font-weight: 700; }

/* Boutons : un seul accent, formes nettes */
.btn { border-radius: 8px; box-shadow: none; }
.btn--sm { border-radius: 8px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--blue, .btn--neutral { background: var(--blue-900); color: #fff; }
.btn--blue:hover, .btn--neutral:hover { background: var(--blue-800); }
.btn--outline { background: #fff; border: 1px solid var(--blue-900); color: var(--blue-900); }
.btn--outline:hover { background: var(--blue-900); color: #fff; }
.btn--light { background: #fff; color: var(--blue-900); }
.btn--light:hover { background: var(--bg-warm); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline-color: var(--blue-600); }

/* Pastilles de section : discrètes */
.eyebrow { background: none; padding: 0; color: var(--muted); letter-spacing: .1em; font-weight: 600; }
.eyebrow::before { width: 18px; height: 2px; border-radius: 0; background: var(--accent); }

/* En-tête */
.topbar { background: var(--blue-900); color: #c9cfdb; }
.topbar svg { color: #fff; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.brand__name { color: var(--blue-900); font-weight: 800; }
.brand__tag { color: var(--muted); }
.nav a:not(.btn) { color: var(--ink); font-weight: 500; border-radius: 8px; }
.nav a:not(.btn):hover { background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--blue-900); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

/* Hero : grand aplat bleu nuit façon Chrono24 */
.hero { background: var(--blue-900); color: #c9cfdb; }
.hero h1 { color: #fff; }
.hero h1 em { color: #fff; background: none; box-shadow: inset 0 -.14em 0 var(--accent); border-radius: 0; }
.hero .lead { color: #c9cfdb; }
.hero .eyebrow { color: #c9cfdb; }
.hero .btn--outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.hero .btn--outline:hover { background: #fff; color: var(--blue-900); }
.trust-row li { color: #fff; font-weight: 500; }
.trust-row svg { color: #fff; }
.offer-demo { border: 0; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.offer-demo__media { border-radius: 8px; background: var(--bg-soft); }
.offer-demo__badge { border-radius: 10px; }
.price-box { border-radius: 8px; }
.saving-pill { background: var(--green-700); color: #fff; border-radius: 6px; }

/* Bandeau réassurance : icônes monochromes */
.reassure__grid { border: 1px solid var(--line); box-shadow: var(--shadow); }
.icon-bubble, .icon-bubble--blue { border-radius: 10px; background: var(--bg-warm); color: var(--blue-900); }

/* Sections : blanc / gris froid / gris chaud, pas de dégradés */
.section--soft, .section--tint { background: var(--bg-soft); }
.section--warm, .section--warmv { background: var(--bg-warm); }
.section--blue, .section--brand { background: var(--blue-900); color: #c9cfdb; }
.section--blue h2, .section--blue h3, .section--brand h2, .section--brand h3 { color: #fff; }
.section--blue .eyebrow, .section--brand .eyebrow { background: none; color: #c9cfdb; }
.section--blue .section-head p, .section--brand p { color: #c9cfdb !important; }
.section--brand .info-list strong { color: #fff; }
.section--brand .info-list li { color: #c9cfdb; }
.section--brand .info-list a { color: #fff; text-decoration: underline; }
.section--brand .icon-bubble--blue { background: rgba(255,255,255,.1); color: #fff; }
.section--brand .hours td { border-color: rgba(255,255,255,.15); color: #c9cfdb; }
.section--brand .map-box { border: 0; }
.section--brand .form-card { border: 0; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.section--brand .form-card p, .section--brand .form-card .note { color: var(--muted) !important; }
.section--brand .form-card .form-msg { color: var(--green-800) !important; }
.step { border-radius: 10px; background: rgba(255,255,255,.05); }
.step__num { background: #fff; color: var(--blue-900); border-radius: 8px; }
.step p { color: #b3bccb; }

/* Cartes */
.card, .faq details { border: 1px solid var(--line); box-shadow: none; }
.card:hover { box-shadow: var(--shadow); transform: none; }
.faq details { border-radius: 10px; }
.faq summary::after { background: var(--bg-soft); color: var(--blue-900); }
.compare { border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.compare thead th { background: var(--bg-soft); color: var(--blue-900); }
.compare thead th:last-child { background: var(--blue-900); color: #fff; }
.checklist li::before { background-color: var(--green-50); }
.split__media img { border-radius: 12px; }
.form-card { border-radius: 12px; }

/* Offres : cartes « annonce » sobres, prix en avant */
.vehicle-card { border: 1px solid var(--line); box-shadow: none; }
.vehicle-card:hover { box-shadow: var(--shadow-lg); transform: none; }
.vehicle-card__media { background: var(--bg-soft); }
.tag { border-radius: 6px; box-shadow: none; font-weight: 600; }
.tag--green { background: var(--green-700); color: #fff; }
.spec { background: var(--bg-soft); border-color: transparent; color: var(--ink); border-radius: 6px; font-weight: 500; }
.price { font-weight: 800; }
.saving { display: inline-block; background: var(--green-50); color: var(--green-800); padding: 4px 10px; border-radius: 6px; }
.vehicle-card .btn--outline { background: var(--blue-900); color: #fff; border-color: var(--blue-900); }
.vehicle-card .btn--outline:hover { background: var(--blue-800); }

/* Catalogue / filtres */
.filters { border: 1px solid var(--line); box-shadow: none; }
.filters__reset { color: var(--blue-700); }
.chip span { border-radius: 6px; color: var(--ink); font-weight: 500; }
.chip input:checked + span { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.field select:focus, .field input:focus, .field textarea:focus { outline: 3px solid var(--blue-100); border-color: var(--blue-900); }
.field input[type="range"], .consent input { accent-color: var(--blue-900); }
.info-list a { color: var(--blue-700); }
.modal__dialog { border-radius: 12px; }
.modal__media { background: var(--bg-soft); }
.modal__backdrop { background: rgba(26,37,60,.6); }

/* CTA final : bleu nuit, bouton accent */
.cta { background: var(--blue-900); border-radius: 12px; }
.cta::after { display: none; }
.cta h2 { color: #fff; }
.cta p { color: #c9cfdb; }
.cta .btn--light { background: var(--accent); color: #fff; }
.cta .btn--light:hover { background: var(--accent-dark); }

/* En-têtes des pages intérieures : gris chaud, texte bleu nuit */
.page-hero { background: var(--bg-warm); border-bottom: 0; }
.page-hero h1 { color: var(--blue-900); }
.page-hero p { color: var(--muted); }
.breadcrumb a { color: var(--blue-700); }

/* Pied de page */
.footer { background: var(--blue-900); color: #b3bccb; }
.footer a, .linklike { color: #dfe3ea; }
.footer a:hover, .linklike:hover { color: #fff; text-decoration: underline; }
.footer .brand__tag { color: #b3bccb; }
.legal .box { border-left-color: var(--blue-900); background: var(--bg-soft); }
.cookie-banner { border-radius: 12px; }
.switch input:checked + span { background: var(--blue-900); }
.photo-credit { background: rgba(26,37,60,.65); }
.offer-demo, .offer-demo__badge { color: var(--ink); }
.offer-demo small, .offer-demo__foot { color: var(--muted); }
/* CTA posé sur le bleu nuit (entre le devis et le pied de page) */
.section--cta { background: var(--blue-900); }
.section--cta .cta { background: var(--blue-800); border: 1px solid rgba(255,255,255,.1); border-left: 4px solid var(--accent); }

/* ==========================================================
   V5 — MISE EN PAGE « CATALOGUE D'ABORD » (inspirée La Centrale / Chrono24)
   ========================================================== */

/* Hero : recherche au premier plan */
.hero { padding: 56px 0 84px; }
.hero__grid { align-items: start; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero .lead { margin-bottom: 22px; }
.hero .trust-row { margin-top: 22px; }
.search-box { background: #fff; color: var(--ink); border-radius: 12px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-width: 600px; }
.search-box__tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.search-box__tabs::-webkit-scrollbar { display: none; }
.search-box__tabs label { cursor: pointer; flex: 0 0 auto; }
.search-box__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.search-box__tabs span { display: block; padding: 8px 12px 10px; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.search-box__tabs input:checked + span { color: var(--blue-900); border-bottom-color: var(--accent); }
.search-box__tabs input:focus-visible + span { outline: 3px solid var(--blue-100); }
.search-box__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.search-box select { width: 100%; padding: 12px 12px; border: 1px solid #d4d4de; border-radius: 8px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; }
.search-box select:focus { outline: 3px solid var(--blue-100); border-color: var(--blue-900); }
.search-box__submit { width: 100%; font-size: 1.02rem; padding: 15px 20px; }

/* Rayons du catalogue (titres à barre rouge + « Voir tout ») */
.section--catalog { padding: 72px 0 64px; }
.reassure + .section--catalog { padding-top: 64px; }
.shelf + .shelf { margin-top: 52px; }
.shelf__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.shelf__title { position: relative; padding-left: 16px; margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.shelf__title::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; border-radius: 2px; background: var(--accent); }
.shelf__more { font-weight: 600; color: var(--blue-900); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-size: .95rem; }
.shelf__more:hover { color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; text-align: center; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.tile:hover { border-color: var(--blue-900); box-shadow: var(--shadow); }
.tile strong { color: var(--blue-900); font-size: 1rem; }
.tile small { color: var(--muted); font-size: .84rem; }
.tiles--brands .tile { background: var(--bg-warm); border-color: transparent; box-shadow: none; }
.tiles--brands .tile:hover { border-color: var(--blue-900); }
.tile--photo { padding: 0 0 14px; overflow: hidden; }
.tile__img { display: block; aspect-ratio: 16/9; margin-bottom: 10px; background: var(--bg-soft); overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile--photo:hover .tile__img img { transform: scale(1.04); }

.shelf-note { margin-top: 52px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--bg-soft); border-radius: 12px; padding: 28px 32px; }
.shelf-note h3 { margin-bottom: 4px; font-size: 1.2rem; }
.shelf-note p { margin: 0; color: var(--muted); max-width: 640px; }

/* Cartes offres plus compactes sur 4 colonnes */
.grid--4 .vehicle-card__body { padding: 16px 16px 18px; }
.grid--4 .price { font-size: 1.35rem; }
.grid--4 .vehicle-card__foot .btn { padding: 9px 12px; }

/* Page Offres : en-tête compact */
.catalog-head { padding: 28px 0 0; }
.catalog-head .breadcrumb { margin-bottom: 12px; }
.catalog-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.catalog-head__count { color: var(--muted); font-weight: 500; }
.catalog-head p { color: var(--muted); max-width: 760px; margin: 0; }

/* Filtres en blocs séparés */
.filters { padding: 0; border: 0; background: none; box-shadow: none; }
.filters form > h2 { padding: 0 2px 12px; margin: 0; }
.filters .field { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.filters .field > label, .filters .field legend { font-size: .95rem; }
@media (max-width: 1024px) {
  .filters { background: var(--bg-soft); padding: 20px; }
}

/* Barre de résultats */
.results-bar__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.view-toggle { display: inline-flex; border: 1px solid #d4d4de; border-radius: 8px; overflow: hidden; }
.view-toggle button { border: 0; background: #fff; padding: 9px 14px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.view-toggle button + button { border-left: 1px solid #d4d4de; }
.view-toggle button[aria-pressed="true"] { background: var(--blue-900); color: #fff; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -8px 0 18px; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--blue-900); background: #fff; color: var(--blue-900); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.active-filter span { font-size: 1.05rem; line-height: 1; }
.active-filter:hover { background: var(--blue-900); color: #fff; }
.active-filters__clear { background: none; border: 0; font: inherit; font-size: .85rem; font-weight: 600; color: var(--blue-700); text-decoration: underline; cursor: pointer; }

/* Liste / grille */
.vehicle-list--grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.vehicle-list--rows { grid-template-columns: 1fr; gap: 14px; }
.vehicle-list--rows .vehicle-card { flex-direction: row; }
.vehicle-list--rows .vehicle-card__media { flex: 0 0 min(38%, 320px); aspect-ratio: auto; min-height: 200px; }
.vehicle-list--rows .vehicle-card__body { padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title prices" "version prices" "specs saving" "foot foot"; column-gap: 20px; align-content: start; }
.vehicle-list--rows .vehicle-card__title { grid-area: title; font-size: 1.2rem; }
.vehicle-list--rows .vehicle-card__version { grid-area: version; margin-bottom: 10px; }
.vehicle-list--rows .specs { grid-area: specs; margin-bottom: 0; align-self: start; }
.vehicle-list--rows .vehicle-card__prices { grid-area: prices; flex-direction: column; align-items: flex-end; gap: 0; }
.vehicle-list--rows .price { font-size: 1.6rem; }
.vehicle-list--rows .saving { grid-area: saving; justify-self: end; align-self: start; margin-bottom: 0; }
.vehicle-list--rows .saving:empty { display: none; }
.vehicle-list--rows .vehicle-card__foot { grid-area: foot; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.vehicle-list--rows .empty { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .vehicle-list--rows .vehicle-card { flex-direction: column; }
  .vehicle-list--rows .vehicle-card__media { flex: none; aspect-ratio: 16/10; min-height: 0; }
  .vehicle-list--rows .vehicle-card__body { grid-template-columns: 1fr; grid-template-areas: "title" "version" "specs" "prices" "saving" "foot"; }
  .vehicle-list--rows .vehicle-card__prices { flex-direction: row; align-items: baseline; gap: 10px; margin-top: 12px; }
  .vehicle-list--rows .saving { justify-self: start; }
}

@media (max-width: 900px) {
  .search-box { max-width: none; }
}
@media (max-width: 600px) {
  .hero { padding: 36px 0 64px; }
  .search-box { padding: 14px; }
  .search-box__fields { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shelf__head { flex-wrap: wrap; }
  .shelf-note { padding: 22px; }
  .view-toggle { display: none; }
}
@media (max-width: 600px) {
  #featured-vehicles > :nth-child(n+5) { display: none; }
}

/* ==========================================================
   V6 — galerie photos (fiche détail) + compteur de photos sur les cartes
   ========================================================== */
.photo-count { position: absolute; right: 8px; bottom: 8px; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(26,37,60,.72); padding: 3px 8px; border-radius: 6px; }
.modal__media { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.gallery { width: 100%; }
.gallery__main { position: relative; aspect-ratio: 4/3; background: #10151f; overflow: hidden; touch-action: pan-y; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--blue-900); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); display: grid; place-items: center; padding-bottom: 3px; }
.gallery__nav:hover { background: #fff; }
.gallery__nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__count { position: absolute; left: 10px; bottom: 10px; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(26,37,60,.72); padding: 3px 9px; border-radius: 6px; }
.gallery__thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: var(--bg-soft); scrollbar-width: thin; }
.gallery__thumbs button { flex: 0 0 auto; width: 76px; aspect-ratio: 4/3; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-demo[data-vehicle] .offer-demo__media img { transition: transform .4s ease; }
.offer-demo[data-vehicle]:hover .offer-demo__media img { transform: scale(1.03); }
@media (max-width: 760px) {
  .gallery__nav { width: 34px; height: 34px; font-size: 1.3rem; }
  .gallery__thumbs button { width: 60px; }
}
.vehicle-card .saving:empty { display: none; }
.modal__dialog > * { min-width: 0; }
.gallery, .gallery__thumbs { min-width: 0; max-width: 100%; }

/* ==========================================================
   V7 — accueil allégé (onglets critères, étapes compactes, FAQ 2 colonnes, recherches populaires)
   ========================================================== */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 10px; }
.tabs [role="tab"] { border: 0; background: none; padding: 8px 16px; border-radius: 7px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--blue-900); box-shadow: var(--shadow-sm); }
.tabs [role="tab"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

.how .shelf__head { margin-bottom: 22px; }
.how__steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: none; }
.how__steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.how__num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--blue-900); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.how__steps strong { display: block; color: var(--blue-900); margin-bottom: 4px; }
.how__steps p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }

.faq--cols { max-width: none; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px 16px; }
.faq--cols summary { font-size: .98rem; padding: 16px 40px 16px 0; }

.seo-links { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 40px 0 34px; }
.seo-links h2 { font-size: 1.05rem; margin: 0 0 18px; color: var(--blue-900); }
.seo-links__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.seo-links h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.seo-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.seo-links a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.seo-links a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 960px) {
  .how__steps { grid-template-columns: repeat(2, 1fr); }
  .seo-links__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .shelf__head:has(.tabs) { flex-direction: column; align-items: flex-start; }
  .how__steps, .faq--cols { grid-template-columns: 1fr; }
}
.how .shelf-note { margin-top: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.how.section, #faq.section { padding: 64px 0; }

/* ==========================================================
   V8 — fiche détail « annonce » (galerie + carte prix collante, façon La Centrale / AutoScout24)
   ========================================================== */
.modal__dialog--vd { display: flex; flex-direction: column; max-width: 1140px; height: calc(100vh - 40px); max-height: 920px; overflow: hidden; padding: 0; }
.modal__dialog--vd .modal__close { top: 14px; right: 14px; }
.modal__content { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.ico { width: 20px; height: 20px; flex: 0 0 auto; }

.vd { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "gallery side" "details side"; gap: 0 28px; padding: 24px 28px 28px; align-items: start; }
.vd__gallery { grid-area: gallery; }
.vd__side { grid-area: side; position: sticky; top: 0; padding-top: 44px; }
.vd__details { grid-area: details; }
.vd > * { min-width: 0; }

.vd .gallery { border-radius: 10px; overflow: hidden; }
.vd .gallery__thumbs { background: none; padding: 8px 0 0; }
.vd .gallery__thumbs button { width: 88px; }
.vd__gallery > img { border-radius: 10px; width: 100%; height: auto; display: block; }
.gallery__full { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: rgba(26,37,60,.72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.gallery__full:hover { background: rgba(26,37,60,.9); }
.gallery__main:fullscreen { background: #000; }
.gallery__main:fullscreen img { object-fit: contain; }

/* Carte prix */
.vd__card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow-sm); background: #fff; }
.vd__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.vd__tag { font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--bg-soft); color: var(--blue-900); }
.vd__tag--ok { background: #e7f4ec; color: #0b6b38; }
.vd__tag--order { background: #fff4dc; color: #7a5200; }
.vd__title { font-size: 1.45rem; line-height: 1.2; margin: 0 0 4px; }
.vd__version { color: var(--muted); margin: 0 0 6px; font-size: .95rem; }
.vd__meta { font-size: .85rem; color: var(--muted); margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.vd__price { font-family: var(--font-title); font-weight: 800; font-size: 2rem; color: var(--blue-900); line-height: 1.1; letter-spacing: -.01em; }
.vd__price small { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.vd__old { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.vd__old strong { color: #0b8043; }
.vd__price-note { font-size: .8rem; color: var(--muted); margin: 4px 0 18px; }
.vd__cta { width: 100%; justify-content: center; display: flex; align-items: center; gap: 8px; }
.vd__cta + .vd__cta { margin-top: 8px; }
.vd__trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.vd__trust li { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.vd__trust .ico { color: var(--blue-900); margin-top: 1px; }
.vd__trust strong { display: block; color: var(--ink); font-size: .88rem; }
.vd__ref { font-size: .75rem; color: var(--muted); margin: 14px 0 0; text-align: right; }

/* Sections détaillées */
.vd__sec { padding: 26px 0 0; }
.vd__sec + .vd__sec { margin-top: 26px; border-top: 1px solid var(--line); }
.vd__sec h3 { font-size: 1.1rem; margin: 0 0 16px; color: var(--blue-900); }
.vd__keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vd__keys li { background: var(--bg-soft); border-radius: 10px; padding: 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.vd__keys .ico { grid-row: span 2; width: 24px; height: 24px; color: var(--blue-900); }
.vd__keys span { font-size: .78rem; color: var(--muted); }
.vd__keys strong { font-size: .95rem; color: var(--ink); }
.vd__equip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.vd__equip li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.vd__equip .ico { width: 18px; height: 18px; color: #0b8043; margin-top: 1px; }
.vd__dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.vd__dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.vd__dl dt { color: var(--muted); }
.vd__dl dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }
.vd__how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: vd; }
.vd__how li { counter-increment: vd; border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 14px 52px; position: relative; font-size: .85rem; color: var(--muted); }
.vd__how li::before { content: counter(vd); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-900); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .82rem; }
.vd__how strong { display: block; color: var(--ink); font-size: .92rem; }
.vd__legal { margin: 22px 0 0; }
.vd__bar { display: none; }

@media (max-width: 900px) {
  .modal:has(.modal__dialog--vd) { padding: 0; }
  .modal__dialog--vd { height: 100%; max-height: none; border-radius: 0; }
  .vd { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "side" "details" "bar"; padding: 0; }
  .vd .gallery { border-radius: 0; }
  .vd .gallery__thumbs { padding: 8px 16px 0; }
  .vd__gallery > img { border-radius: 0; }
  .vd__side { position: static; padding: 16px 16px 0; }
  .vd__card { border: 0; box-shadow: none; padding: 0; }
  .vd__details { padding: 0 16px 24px; }
  .vd__keys { grid-template-columns: 1fr 1fr; }
  .vd__dl, .vd__how ol { grid-template-columns: 1fr; }
  .vd__bar { display: flex; position: sticky; bottom: 0; z-index: 3; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(26,37,60,.08); grid-area: bar; }
  .vd__bar strong { display: block; font-family: var(--font-title); font-size: 1.2rem; color: var(--blue-900); }
  .vd__bar span { font-size: .75rem; color: var(--muted); }
  .vd__bar .btn { white-space: nowrap; }
  .modal__dialog--vd .modal__close { top: 10px; right: 10px; }
}
@media (max-width: 520px) {
  .vd__equip { grid-template-columns: 1fr; }
  .vd__price { font-size: 1.7rem; }
}

/* ===== Prix sur devis (stock réel sans prix affiché) ===== */
.price.price--quote { font-size: 1.05rem; letter-spacing: 0; }
.vd__price.vd__price--quote { font-size: 1.6rem; }
