/* NorthDrive : feuille de style publique.
   1. Tokens  2. Base  3. Mise en page  4. Composants  5. Pages  6. Responsive  7. Préférences */

@font-face { font-family: "Figtree"; src: url("../fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

/* 1. Tokens */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --sand: #F5F5F3;
  --sand-line: #E6E5E1;
  --line: #E7E6E2;
  --line-soft: #F0EFEC;
  --input-line: #D4D2CC;
  --text: #26221D;
  --text-2: #463F37;
  --muted: #635B51;
  --accent: #1D3557;
  --accent-hover: #142640;
  --accent-soft: #EAEEF4;
  --warm: #A4562A;
  --warm-soft: #F7EEE6;
  --ok: #1D5C3A; --ok-bg: #E4F0E8;
  --warn: #7A4F0E; --warn-bg: #FBEFD6;
  --sold: #463F37; --sold-bg: #EEEDEA;
  --error: #A12622; --error-bg: #FBEAE8;
  --focus: #A4562A;

  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Schibsted Grotesk", "Figtree", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(38, 34, 29, .05);
  --shadow: 0 10px 30px rgba(38, 34, 29, .08);
  --container: 1200px;
  --tap: 48px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h3, .h4 { font-family: var(--font-display); color: var(--text); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 var(--s4); }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); font-weight: 700; }
h3, .h3 { font-size: 1.35rem; font-weight: 700; }
h4, .h4 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 var(--s3); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s4); color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 650; color: var(--text); margin-bottom: var(--s1); }
.center { text-align: center; justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.todo { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--sand); color: var(--muted); font-size: .8rem; font-weight: 600; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

/* 3. Mise en page */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--s5)); margin: 0 auto; padding: 0 var(--s5); }
.narrow { max-width: 780px; }
.section { padding-top: var(--s9); }
.section-sub { margin-top: var(--s7); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); margin-bottom: var(--s5); flex-wrap: wrap; }
.section-head h2 { margin-bottom: var(--s2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-head { padding: var(--s5) 0 var(--s6); max-width: 820px; }
.page-head h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); }
.center-block { text-align: center; padding: var(--s9) var(--s5); }
.center-block .icon-tile { margin: 0 auto var(--s5); }

/* 4. Composants */
.preview-banner { background: var(--text); color: #fff; text-align: center; font-size: .85rem; padding: 6px var(--s4); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.header-inner { display: flex; align-items: center; gap: var(--s5); min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin: 0; }
.logo-mark { width: 34px; height: 34px; }
.logo-mark rect { fill: var(--accent); }
.logo-mark path { fill: var(--bg); }
.logo-text { font: 700 1.35rem/1 var(--font-display); letter-spacing: -0.02em; }
.logo-text span { font-weight: 500; }
.menu-panel { display: flex; align-items: center; gap: var(--s5); flex: 1; justify-content: space-between; }
.nav-list { display: flex; gap: var(--s5); list-style: none; margin: 0 auto; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 550; padding: var(--s2) 0; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.header-actions { display: flex; gap: var(--s3); align-items: center; }
.menu-toggle, .header-call { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s5); border-radius: var(--r-sm); border: 1px solid transparent; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: #D4D2CC; }
.btn-secondary:hover { background: #F5F5F3; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--sand); }
.btn-sm { min-height: 44px; padding: 0 var(--s4); font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 0 var(--s6); }
.btn-block { width: 100%; }
.btn.is-todo { color: var(--muted); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.text-link { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.links-inline { display: flex; flex-wrap: wrap; gap: var(--s5); font-weight: 600; }

.eyebrow { display: inline-flex; align-items: center; gap: var(--s2); font-size: .85rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--warm); margin-bottom: var(--s4); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 560px; }
.lead-sm { font-size: 1.075rem; color: var(--text-2); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-sm); }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r); background: var(--warm-soft); color: var(--warm); }
.icon-tile-lg { width: 64px; height: 64px; }
.icon-tile-lg .icon { width: 30px; height: 30px; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.2; }
.badge-disponible { background: var(--ok-bg); color: var(--ok); }
.badge-reserve { background: var(--warn-bg); color: var(--warn); }
.badge-vendu { background: var(--sold-bg); color: var(--sold); }
.badge-brouillon { background: var(--sand); color: var(--muted); }
.badge-demo { background: rgba(255, 255, 255, .94); color: var(--text-2); border: 1px solid var(--line); border-radius: 6px; letter-spacing: .06em; font-size: .72rem; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--warm-soft); color: var(--warm); font-size: .82rem; font-weight: 700; height: fit-content; }

.critair { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.critair-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; font-weight: 800; color: #fff; }
.critair-0 .critair-dot { background: #1E8E4E; }
.critair-1 .critair-dot { background: #6E3F97; }
.critair-2 .critair-dot { background: #F2C200; color: var(--text); }
.critair-3 .critair-dot { background: #E8741E; color: var(--text); }
.critair-4 .critair-dot { background: #7A1F2B; }
.critair-5 .critair-dot { background: #6B6B6B; }

.price { font: 700 1.5rem/1.1 var(--font-display); color: var(--accent); margin: 0; }
.price span { font: 500 .8rem var(--font-body); color: var(--muted); }
.price-lg { font-size: 2.1rem; margin: var(--s3) 0; }
.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s3); font-size: .92rem; color: var(--text-2); }
.specs li { display: flex; align-items: center; gap: 6px; }
.specs .icon { width: 16px; height: 16px; color: var(--muted); }

.vcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.vcard:hover { box-shadow: var(--shadow); }
.vcard:focus-within { box-shadow: 0 0 0 2px var(--focus); }
.vcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--sand); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.vcard-media .badge { position: absolute; top: var(--s3); left: var(--s3); }
.vcard-media .badge-demo { left: auto; right: var(--s3); }
.vcard-nophoto, .hero-placeholder, .gallery-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); height: 100%; color: var(--muted); font-size: .9rem; text-align: center; padding: var(--s4); }
.vcard-nophoto .icon, .hero-placeholder .icon, .gallery-empty .icon { width: 36px; height: 36px; }
.vcard-body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4) var(--s4) var(--s3); flex: 1; }
.vcard-title { font: 650 1.12rem/1.25 var(--font-display); margin: 0; letter-spacing: -0.01em; }
.vcard-title a { color: var(--text); text-decoration: none; }
.vcard-title a::after { content: ""; position: absolute; inset: 0; }
.vcard-title a:focus-visible { outline: none; }
.vcard-version { margin: -6px 0 0; font-size: .9rem; color: var(--muted); }
.vcard-eco { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; padding-top: var(--s3); border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--muted); }
.vcard-link { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: var(--s3) var(--s4); border-top: 1px solid var(--line-soft); color: var(--accent); font-weight: 600; font-size: .95rem; }

.request-card { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); background: var(--sand); border: 1px solid var(--sand-line); border-radius: var(--r-lg); }
.request-card h3 { margin: 0; color: var(--accent); }
.request-card p { color: var(--text-2); }
.request-card .btn { margin-top: auto; white-space: normal; text-align: center; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s4); min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--text-2); }
.field legend { margin-bottom: 6px; padding: 0; }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--s4); }
.field .req { color: var(--error); }
.field .opt { font-weight: 400; color: var(--muted); }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1px solid var(--input-line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: 500 1rem/1.4 var(--font-body);
}
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #B9B6AE; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[type="file"] { font: inherit; padding: var(--s3); border: 1px dashed var(--input-line); border-radius: var(--r-sm); background: var(--bg); width: 100%; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.field-error { margin: 0; color: var(--error); font-size: .88rem; font-weight: 600; }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: var(--s3); }
.field-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.field-check label { flex: 1; font-weight: 400; }
.field-check .field-error { width: 100%; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--sand); border-radius: var(--r); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; color: var(--text-2); }
.segmented input:checked + span { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }

.alert { border-radius: var(--r); padding: var(--s4) var(--s5); margin: var(--s4) 0; border: 1px solid; }
.alert ul { margin: var(--s2) 0 0; }
.alert-error { background: var(--error-bg); border-color: #F0C8C4; color: var(--error); }
.alert-error a { color: var(--error); }
.alert-success { background: var(--ok-bg); border-color: #C5DECF; color: var(--ok); }
.alert-warning { background: var(--warn-bg); border-color: #EBD5A8; color: var(--warn); }
.alert-sold { background: var(--sold-bg); border-color: var(--sand-line); color: var(--text); }
.alert p:last-child { margin: 0; }
.notice { background: var(--sand); border-radius: var(--r); padding: var(--s4) var(--s5); margin: var(--s5) 0; }
.notice p:last-child { margin: 0; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: var(--s5) 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

.checks { list-style: none; padding: 0; margin: var(--s4) 0; display: flex; flex-direction: column; gap: var(--s3); }
.checks li { display: flex; gap: var(--s3); align-items: flex-start; }
.checks .icon { color: var(--warm); margin-top: 2px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: flex; flex-direction: column; gap: var(--s5); }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font: 700 .95rem var(--font-display); }
.steps-filled li::before { background: var(--accent); color: #fff; }
.steps p { margin: 0; color: var(--muted); }
.steps .strong { color: var(--text); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: var(--s2) 0 var(--s4); }
.progress span { height: 4px; border-radius: 4px; background: var(--line); }
.progress span.on { background: var(--accent); }

.facts, .contact-list { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line-soft); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.contact-list div { display: grid; grid-template-columns: 190px 1fr; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line-soft); }
.contact-list dt { display: flex; gap: var(--s2); align-items: center; color: var(--muted); }
.contact-list dt .icon { color: var(--warm); }
.contact-list dd { margin: 0; font-weight: 600; }

.faq-list details, .faq-item { border-bottom: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 64px; padding: var(--s3) 0; font-weight: 650; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] .chev { transform: rotate(180deg); }
.faq-list details > p, .faq-item p { color: var(--text-2); max-width: 680px; }
.faq-item { padding: var(--s5) 0; }

.chips { list-style: none; padding: 0; margin: 0 0 var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s3); border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

.pagination { display: flex; justify-content: center; align-items: center; gap: var(--s3); margin-top: var(--s7); flex-wrap: wrap; }
.pagination ol { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span[aria-current] { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; justify-content: center; padding: 0 var(--s3); border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; }
.pagination span[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }

.empty, .empty-inline { background: var(--surface); border: 1px dashed var(--sand-line); border-radius: var(--r-lg); padding: var(--s6); }
.empty-inline { grid-column: span 3; display: flex; flex-direction: column; justify-content: center; }

/* 5. Pages */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s8); align-items: center; padding-top: var(--s8); }
.hero h1 { margin-bottom: var(--s5); }
.hero-media { position: relative; border-radius: 20px; overflow: hidden; background: var(--sand); border: 1px solid var(--line); aspect-ratio: 1 / 1.02; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; left: var(--s4); bottom: var(--s4); display: inline-flex; align-items: center; gap: 6px; padding: var(--s2) var(--s3); background: rgba(255, 255, 255, .95); border-radius: var(--r-sm); font-weight: 600; font-size: .9rem; color: var(--text); text-decoration: none; }
.quick-search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--s3); align-items: end; margin-top: var(--s6); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.quick-search .field { margin: 0; }
.quick-search label { font-size: .8rem; }
.trust-strip { list-style: none; margin: var(--s8) 0 0; padding: var(--s5) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip li { display: flex; gap: var(--s3); }
.trust-strip p { margin: 0; font-size: .92rem; color: var(--muted); }
.trust-strip .strong { color: var(--text); font-size: 1rem; }

.buyback-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); padding: var(--s8); background: var(--sand); border: 1px solid var(--sand-line); border-radius: var(--r-xl); }
.buyback-start .field { margin-bottom: var(--s3); }
.about-grid, .grid-faq, .contact-grid { align-items: start; }
.grid-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s8); }
.contact-grid { padding-bottom: var(--s9); }
.zone-row { display: flex; gap: var(--s3); align-items: flex-start; margin-top: var(--s4); }
.zone-row p { margin: 0; color: var(--text-2); }
.steps-grid .card { height: 100%; }

.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s6); align-items: start; padding-bottom: var(--s9); }
.filters { position: sticky; top: 96px; }
.filters-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.filters-form .btn + .btn { margin-top: var(--s2); }
.filters-toggle { display: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.results-count { margin: 0; color: var(--text-2); }
.sort-form { display: flex; align-items: center; gap: var(--s2); }
.sort-form label { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.sort-form select { min-width: 210px; }
.js .js-hide { display: none; }

.vehicle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s6); align-items: start; padding-top: var(--s4); }
.vehicle-main { grid-column: 1; grid-row: 1; }
.vehicle-aside { position: sticky; top: 96px; grid-column: 2; grid-row: 1; }
.summary-badges { display: flex; gap: var(--s2); }
.vehicle-title { font-size: 1.9rem; margin: var(--s3) 0 0; }
.vehicle-title span { display: block; font: 500 1.05rem/1.4 var(--font-body); color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.specs-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--s4); font-size: 1rem; }
.specs-lg li { padding: var(--s2) var(--s3); background: var(--bg); border-radius: var(--r-sm); }
.summary .vcard-eco { border-top: 0; padding-top: 0; margin-bottom: var(--s4); }
.summary-actions { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s4); }
.summary-loc { display: flex; gap: var(--s2); color: var(--text-2); }
.summary-loc .icon { color: var(--warm); margin-top: 3px; }
.gallery-main { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-zoom, .gallery-count { position: absolute; bottom: var(--s3); display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-sm); background: rgba(38, 34, 29, .72); color: #fff; font-size: .85rem; font-weight: 600; }
.gallery-zoom { right: var(--s3); }
.gallery-count { left: var(--s3); }
.gallery-empty { aspect-ratio: 4 / 3; background: var(--sand); border-radius: var(--r-lg); }
.gallery-thumbs { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.gallery-thumbs a { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid transparent; }
.gallery-thumbs a[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vsection { padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.vsection h2 { font-size: 1.5rem; }
.vsection p { color: var(--text-2); }
.vsection-defects { }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s6); margin: 0; }
.spec-table div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; }
.equip-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--s6); }
.equip-list li { display: flex; gap: var(--s2); align-items: flex-start; padding: 6px 0; break-inside: avoid; color: var(--text-2); }
.equip-list .icon { color: var(--warm); margin-top: 4px; }
.form-card { max-width: 820px; }
.lead-section { padding-top: var(--s8); }
.mobile-bar { display: none; }

.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: var(--s5); border: 0; background: rgba(20, 18, 15, .94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: var(--r-sm); }
.lightbox button { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lightbox-close { top: var(--s4); right: var(--s4); }
.lightbox-nav.prev { left: var(--s4); top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: var(--s4); top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: var(--s4); left: 0; right: 0; text-align: center; margin: 0; }

.buyback-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: var(--s8); align-items: start; padding: var(--s5) 0 var(--s9); }
.buyback-intro h2 { margin-top: var(--s6); }
.buyback-form { position: sticky; top: 96px; }
.step { border: 0; padding: 0; margin: 0 0 var(--s5); }
.step legend { font: 700 1.15rem var(--font-display); margin-bottom: var(--s4); padding: 0; }
.step-status { margin: 0; font-weight: 600; color: var(--text-2); }
.step-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.step-actions [data-submit] { flex: 1; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); padding-bottom: var(--s9); }
.guide-card { position: relative; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.prose { padding-bottom: var(--s9); }
.prose h2 { margin-top: var(--s6); font-size: 1.6rem; }
.prose p, .prose li { color: var(--text-2); font-size: 1.05rem; }
.cta-card { margin-top: var(--s7); }

.site-footer { background: #F5F5F3; color: var(--text-2); padding: var(--s8) 0 var(--s5); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s7); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: var(--s3); }
.logo-footer { margin-bottom: var(--s3); }
.footer-bottom { border-top: 1px solid #E6E5E1; margin-top: var(--s7); padding-top: var(--s4); font-size: .85rem; color: var(--muted); }

/* 6. Responsive */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-list { gap: var(--s4); }
  .header-actions .btn-secondary span { display: none; }
  .vehicle-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 72px; }
  .header-inner { min-height: 64px; gap: var(--s2); }
  .logo { margin-right: auto; }
  .menu-toggle, .header-call { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text); cursor: pointer; }
  .header-call { color: var(--accent); order: 2; }
  .menu-toggle { order: 3; }
  .menu-panel { order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--s4); padding: var(--s3) 0 var(--s5); }
  .js .menu-panel { display: none; }
  .js .menu-panel.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; margin: 0; }
  .nav-list a { display: flex; min-height: 52px; align-items: center; border-bottom: 1px solid var(--line-soft); font-size: 1.1rem; }
  .header-actions { flex-direction: column; align-items: stretch; }
  .header-actions .btn-secondary span { display: inline; }
  .header-inner { flex-wrap: wrap; }

  .hero, .buyback-band, .grid-faq, .vehicle-layout, .buyback-layout, .catalog { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: var(--s6); padding-top: var(--s6); }
  .hero-media { aspect-ratio: 4 / 3; order: 2; }
  .buyback-band { padding: var(--s6) var(--s5); gap: var(--s6); }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid, .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empty-inline { grid-column: span 2; }
  .vehicle-aside, .buyback-form, .filters { position: static; }
  .vehicle-main { display: contents; }
  .gallery { order: 1; }
  .vehicle-aside { order: 2; grid-column: auto; grid-row: auto; }
  .vsection { order: 3; }
  .filters-toggle { display: none; }
  .js .filters-toggle { display: inline-flex; }
  .js .filters-form { display: none; margin-top: var(--s3); }
  .js .filters-form.is-open { display: block; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: var(--s8); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 var(--s4); }
  .grid-2, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: var(--s5); }
  .actions .btn, .hero .actions .btn { width: 100%; }
  .quick-search { grid-template-columns: minmax(0, 1fr); }
  .trust-strip { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .card-grid, .card-grid-3 { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .empty-inline { grid-column: auto; }
  .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .spec-table { grid-template-columns: minmax(0, 1fr); }
  .equip-list { columns: 1; }
  .gallery-thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .gallery-thumbs li { flex: 0 0 26%; scroll-snap-align: start; }
  .results-bar { align-items: stretch; }
  .sort-form { width: 100%; }
  .sort-form select { min-width: 0; flex: 1; }
  .footer-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .section { padding-top: var(--s7); }
  .segmented { display: flex; }
  .segmented label { flex: 1; }
  .segmented span { justify-content: center; width: 100%; text-align: center; }

  /* Barre de contact : fixe, discrète, et un espace réservé en bas de page pour ne rien masquer. */
  .has-mobile-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar { display: flex; gap: var(--s2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); transition: transform .2s; }
  .mobile-bar .btn { flex: 1; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
}

/* 8. Refonte v2 : pastilles, trait dessiné, grand cercle, cartes centrées, vague */
:root { --r-card: 22px; --band: #F6F6F7; --shadow-soft: 0 18px 50px rgba(29, 53, 87, .08); --glow: 0 12px 30px rgba(29, 53, 87, .28); }
.btn { border-radius: 999px; }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 1.05rem; }
.card, .vcard, .request-card, .filters-form, .empty, .empty-inline { border-radius: var(--r-card); }
.vcard { box-shadow: var(--shadow-soft); border-color: #EEEDEA; }
.vcard:hover { box-shadow: 0 22px 60px rgba(29, 53, 87, .14); }
.swash { position: relative; display: inline-block; white-space: nowrap; }
.swash::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: -.16em; height: .3em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M3 13C52 5 122 3 197 9' stroke='%23A4562A' stroke-width='4.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M24 18C74 12 128 11 178 15' stroke='%23A4562A' stroke-width='2.6' fill='none' stroke-linecap='round' opacity='.65'/%3E%3C/svg%3E") no-repeat center / 100% 100%; pointer-events: none; }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 650; font-size: .95rem; margin: 0 0 var(--s5); }
.center-title { text-align: center; max-width: 820px; margin: 0 auto var(--s7); }

.hero2 { padding: var(--s8) 0 var(--s6); overflow: hidden; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.hero2 h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.9rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: var(--s6); }
.hero2-lead { font-size: 1.2rem; color: var(--text-2); max-width: 560px; margin-bottom: var(--s6); }
.hero2-lead strong { color: var(--text); }
.hero2-actions { display: flex; align-items: center; gap: var(--s6); flex-wrap: wrap; }
.link-icon { display: inline-flex; align-items: center; gap: var(--s3); color: var(--text); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.link-icon span:last-child { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--line); }
.link-icon:hover span:last-child { text-decoration-color: var(--accent); }
.link-icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--accent); }
.hero2-visual { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.hero2-circle { position: absolute; width: min(560px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--accent); right: -40px; top: 50%; transform: translateY(-50%); }
.hero2-photo { position: relative; z-index: 1; width: 86%; margin-left: 10%; border-radius: var(--r-card); overflow: hidden; background: var(--sand); box-shadow: 0 30px 70px rgba(20, 38, 64, .35); border: 6px solid #fff; aspect-ratio: 4 / 3; }
.hero2-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero2-photo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); color: var(--muted); text-align: center; padding: var(--s5); }
.float-card { position: absolute; z-index: 2; left: 0; bottom: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 230px; padding: var(--s4) var(--s5); background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(38, 34, 29, .18); color: var(--text); text-decoration: none; }
.float-card:hover { color: var(--text); box-shadow: 0 24px 60px rgba(38, 34, 29, .24); }
.float-card-top { display: flex; gap: 6px; }
.float-card-name { font: 700 1.1rem var(--font-display); }
.float-card-price { font: 700 1.35rem var(--font-display); color: var(--accent); }
.float-card-price small { font: 500 .75rem var(--font-body); color: var(--muted); }
.float-card-eco { display: flex; gap: var(--s3); align-items: center; font-size: .85rem; color: var(--muted); }
.search-pill { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--s3); align-items: end; margin-top: var(--s7); padding: var(--s4) var(--s4) var(--s4) var(--s6); background: #fff; border: 1px solid #EEEDEA; border-radius: 28px; box-shadow: var(--shadow-soft); }
.search-pill .field { margin: 0; }
.search-pill label { font-size: .8rem; }
.search-pill select { border-radius: 14px; }
.search-pill .btn { min-height: 52px; }

.section-band { background: var(--band); padding: var(--s9) 0; margin-top: var(--s9); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.service-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: var(--r-card); padding: var(--s6) var(--s5); box-shadow: var(--shadow-soft); }
.service-card:nth-child(even) { transform: translateY(28px); }
.service-illu { position: relative; display: flex; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: var(--s5); }
.service-illu::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed rgba(164, 86, 42, .45); }
.service-illu .icon { width: 64px; height: 64px; stroke-width: 1.3; }
.service-card h3 { font-size: 1.2rem; margin-bottom: var(--s3); }
.service-card p { color: var(--text-2); margin-bottom: var(--s5); flex: 1; }

.buyback-band { background: var(--band); border: 0; border-radius: 28px; }
.buyback-start { border-radius: var(--r-card); }

.tabs-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow-soft); border: 1px solid #EEEDEA; padding: var(--s5) var(--s7) var(--s7); }
.tabs-list { display: flex; border-bottom: 1px solid var(--line); margin-bottom: var(--s7); }
.tabs-list button { flex: 1; min-height: 64px; background: none; border: 0; border-bottom: 4px solid transparent; font: 600 1.05rem var(--font-body); color: var(--text-2); cursor: pointer; }
.tabs-list button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.tabs-list button:focus-visible { outline-offset: -4px; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.tab-panel + .tab-panel { margin-top: var(--s8); }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel[hidden] { display: none; }
.tab-text h3 { font-size: 1.9rem; }
.tab-text .steps { margin-bottom: var(--s6); }
.mock { position: relative; display: grid; grid-template-columns: 76px 1fr; min-height: 320px; background: #fff; border-radius: 20px; box-shadow: 0 25px 60px rgba(29, 53, 87, .14); overflow: visible; }
.mock-side { display: flex; flex-direction: column; gap: 18px; padding: 26px 22px; background: var(--accent); border-radius: 20px 0 0 20px; }
.mock-side span { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .7); }
.mock-side span:first-child { width: 26px; height: 26px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .8); background: none; }
.mock-main { padding: 26px; }
.mock-title { font-weight: 700; margin-bottom: var(--s4); }
.mock-rows { display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.mock-rows i { display: block; height: 8px; border-radius: 4px; background: var(--line); position: relative; margin-left: 22px; }
.mock-rows i::before { content: ""; position: absolute; left: -22px; top: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.mock-rows i:nth-child(2) { width: 70%; } .mock-rows i:nth-child(3) { width: 85%; } .mock-rows i:nth-child(4) { width: 60%; }
.mock-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: var(--s4); }
.mock-steps b { height: 5px; border-radius: 4px; background: var(--line); }
.mock-steps b.on { background: var(--warm); }
.mock-float { position: absolute; right: -24px; bottom: 40px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(38, 34, 29, .16); font-weight: 700; }
.mock-float .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--warm-soft); color: var(--warm); }

.site-footer { position: relative; background: var(--accent); color: rgba(255, 255, 255, .82); margin-top: 140px; padding-top: var(--s7); }
.footer-wave { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: 110px; display: block; }
.footer-wave .w1 { fill: #DCE3EC; } .footer-wave .w2 { fill: #8FA3BC; } .footer-wave .w3 { fill: var(--accent); }
.site-footer .footer-grid a, .site-footer .footer-grid p { color: rgba(255, 255, 255, .82); }
.site-footer .footer-grid a:hover { color: #fff; }
.site-footer .footer-title, .site-footer .logo-text { color: #fff; }
.site-footer .muted { color: rgba(255, 255, 255, .65); }
.site-footer .logo-mark rect { fill: #fff; }
.site-footer .logo-mark path { fill: var(--accent); }
.site-footer .footer-bottom { border-top-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .65); }
.contact-grid { padding-bottom: var(--s6); }

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:nth-child(even) { transform: none; }
}
@media (max-width: 960px) {
  .hero2-grid, .tab-panel { grid-template-columns: minmax(0, 1fr); }
  .hero2-visual { min-height: 0; padding: var(--s5) 0 var(--s7); }
  .hero2-circle { width: 90%; right: -18%; }
  .hero2-photo { width: 92%; margin-left: 4%; }
  .float-card { left: 0; bottom: 0; }
  .search-pill { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--s4); }
  .search-pill .btn { grid-column: 1 / -1; }
  .tabs-card { padding: var(--s4) var(--s5) var(--s6); }
  .tab-visual { order: 2; }
  .mock-float { right: 8px; }
}
@media (max-width: 640px) {
  .hero2 { padding-top: var(--s6); }
  .hero2-actions { gap: var(--s4); }
  .hero2-actions .btn { width: 100%; }
  .search-pill { grid-template-columns: minmax(0, 1fr); border-radius: var(--r-card); }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-illu { width: 120px; height: 120px; }
  .tabs-list button { font-size: .95rem; min-height: 56px; }
  .tab-text h3 { font-size: 1.5rem; }
  .section-band { padding: var(--s8) 0; margin-top: var(--s8); }
  .footer-wave { height: 60px; }
  .site-footer { margin-top: 90px; }
}

.zone-item { display: flex; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line-soft); }
.zone-card h2 + .zone-item { border-top: 0; padding-top: var(--s2); }
.zone-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(29, 53, 87, .22); }
.zone-item h3 { margin: 0 0 4px; }
.zone-item p { margin: 0 0 6px; color: var(--text-2); }
.zone-item .text-link { font-size: .95rem; }

.footer-nap { font-style: normal; display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.footer-line { display: flex; gap: var(--s2); align-items: flex-start; color: rgba(255, 255, 255, .82); line-height: 1.45; }
.footer-line .icon { margin-top: 3px; color: #E8B48F; }
.site-footer .footer-nap a { color: #fff; text-decoration: none; }
.site-footer .footer-nap a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: var(--s5); margin: 0; padding: 0; }
.site-footer .footer-legal a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer .footer-legal a:hover { color: #fff; text-decoration: underline; }

/* 7. Préférences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .mobile-bar, .lead-section, .preview-banner { display: none; }
}
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vvideo { scroll-margin-top: 96px; }
.summary-video { margin: 0 0 var(--s4); }