/*
Theme Name: Nayef Clarté
Theme URI: https://nayefcar.be/
Description: Thème du site Nayef Car (voitures d'occasion à Dilbeek), bilingue FR/NL. Fonctionne avec l'extension « Nayef Stock ».
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Author: Nayef Car
License: GPL-2.0-or-later
Text Domain: nayef-clarte
*/

/* Polices hébergées sur le site (aucun appel à des serveurs tiers). Licence SIL OFL, voir assets/fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-tight-latin-wght.woff2") format("woff2"); }

/* Mise en page : en-tête collant, colonne 1280 px, cartes en grille fluide ; mobile = une colonne + barre d'action collante en bas. */
:root {
  --bg: #FFFFFF;
  --surface: #F4F5F6;
  --surface-2: #EEF0F2;
  --line: #E5E7EB;
  --ink: #0F1115;
  --ink-2: #3E4651;
  --muted: #5E6672;
  --faint: #8A93A0;
  --accent: #2047D6;
  --accent-hover: #16339F;
  --accent-soft: #EEF2FF;
  --on-accent: #FFFFFF;
  --ok: #137A3F;
  --ok-soft: #E8F5EC;
  --warn: #8A4B00;
  --warn-soft: #FFF4E0;
  --err: #B42318;
  --sold: #4B5563;
  --wa: #25D366;
  --wa-ink: #06301A;
  --wa-soft: #E9FBEF;
  --wa-soft-ink: #0B6B33;
  --night: #0F1115;
  --night-2: #0B0C0F;
  --night-line: #1E2228;
  --night-ink: #FFFFFF;
  --night-muted: #C9CED6;
  --stage-a: #F7F7F6;
  --stage-b: #E7E8E6;
  --shadow: 0 12px 32px rgba(15, 17, 21, 0.07);
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 16px;
  --head-h: 72px;
  --admin-bar: 0px;
  color-scheme: light;
}
@media (max-width: 899px) { :root { --head-h: 60px; } }
body.admin-bar { --admin-bar: 32px; }
@media (max-width: 782px) { body.admin-bar { --admin-bar: 46px; } }
@media (max-width: 600px) { body.admin-bar { --admin-bar: 0px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; text-wrap: balance; margin: 0; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--night-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--night-ink); }
.nw { white-space: nowrap; }

/* Barre utilitaire + en-tête */
.util { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.util .left { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.util .left span { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 899px) { .util { display: none; } }
.lang { display: inline-flex; align-items: center; gap: 4px; }
.lang a { padding: 6px 6px; color: var(--muted); font-size: 14px; text-decoration: none; border-radius: 6px; }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang span { color: #A0A7B1; }
header.site { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--admin-bar)); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
header.site > .wrap { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo i { font-style: normal; color: var(--accent); }
.logo:hover { color: var(--ink); }
nav.main { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
nav.main a { color: var(--ink); text-decoration: none; padding: 8px 0; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--accent); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; white-space: nowrap; background: none; color: inherit; }
.btn svg { flex: none; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { color: var(--ink); border-color: #C9CED5; }
.btn-wa-soft { background: var(--wa-soft); color: var(--wa-soft-ink); }
.btn-wa-soft:hover { color: var(--wa-soft-ink); filter: brightness(0.97); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { color: var(--wa-ink); filter: brightness(0.96); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-dark { background: var(--ink); color: var(--night-ink); }
.btn-dark:hover { color: var(--night-ink); background: #262A31; }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { color: var(--ink); background: var(--surface); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); background: var(--bg); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 12px; padding: 0 20px; }
.btn-block { width: 100%; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); align-items: center; justify-content: center; }
@media (max-width: 899px) {
  nav.main, .head-actions .hide-m { display: none; }
  .menu-btn { display: inline-flex; }
  .logo { font-size: 21px; }
}
@media (min-width: 900px) { .only-m { display: none !important; } }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.mobile-menu .meta { padding: 14px 0 18px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
[id] { scroll-margin-top: calc(var(--head-h) + var(--admin-bar) + 16px); }

/* Éléments communs */
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; line-height: 1.2; }
.pill-ok { color: var(--ok); background: var(--ok-soft); }
.pill-warn { color: var(--warn); background: var(--warn-soft); }
.pill-sold { color: #FFFFFF; background: var(--sold); }
.pill-white { background: var(--bg); color: var(--ok); }
.pill-white.pill-warn { color: var(--warn); background: var(--warn-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.section { padding-block: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 6px; }
.h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; gap: 8px; }
.crumbs li + li::before { content: "/"; color: #A0A7B1; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }

/* Cartes véhicule */
.grid-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.card:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.stage { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: linear-gradient(180deg, var(--stage-a) 0%, var(--stage-b) 100%); overflow: hidden; }
.stage > img, .stage > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage > img.ill { inset: auto 4% 8% 4%; width: 92%; height: auto; object-fit: contain; opacity: 0.55; }
.stage .pill { position: absolute; left: 12px; top: 12px; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .name { font-weight: 600; font-size: 17px; }
.card .ver { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 21px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.card .meta span + span::before { content: "·"; color: #C5CAD1; margin-right: 8px; }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--surface-2); }
.price { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-old { font-family: var(--body); font-weight: 500; font-size: 0.6em; color: var(--muted); text-decoration: line-through; margin-right: 6px; letter-spacing: 0; }
.card .price { font-size: 22px; }
.card .see { font-size: 14px; font-weight: 600; color: var(--accent); }

/* Accueil */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; padding-block: 56px 40px; }
.hero .copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 600px; }
.search { border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: var(--bg); }
.search .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .search { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field select, .field input, .field textarea, .input { height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 500 16px var(--body); color: var(--ink); background: var(--bg); width: 100%; min-width: 0; }
.field textarea { height: auto; padding: 12px; resize: vertical; font-weight: 400; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: #C9CED5; color: var(--ink); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.feature { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.feature:hover { color: var(--ink); box-shadow: var(--shadow); }
.feature .stage { aspect-ratio: auto; flex: 1; min-height: 300px; }
.feature .stage .tag { position: absolute; left: 18px; top: 18px; background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; z-index: 1; }
.feature .info { padding: 18px 22px 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.feature .info strong { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; display: block; }
.feature .info span { font-size: 14px; color: var(--muted); }
.feature .info .price { font-size: 28px; color: var(--ink); }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.trust > div { background: var(--bg); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.trust svg { color: var(--accent); flex: none; }
.trust strong { display: block; font-size: 16px; }
.trust span { font-size: 14px; color: var(--muted); }
.trust a { color: inherit; text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.tile:hover { color: var(--ink); border-color: #C9CED5; box-shadow: var(--shadow); }
.tile small { font-size: 14px; color: var(--muted); }
.tile b { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.03em; }
.tile em { font-style: normal; font-size: 14px; color: var(--accent); font-weight: 600; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.types .tile { padding: 14px 14px 16px; }
.types .tile img { width: 100%; height: auto; aspect-ratio: 800 / 360; }
.types .tile b { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; counter-reset: s; padding: 0; margin: 0; }
.steps li { list-style: none; border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 15px; }
.steps strong { font-size: 20px; letter-spacing: -0.01em; }
.steps p { color: var(--ink-2); line-height: 1.6; }
.about { display: flex; flex-wrap: wrap; gap: 40px; }
.about .text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about .text > p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.about-facts small { display: block; font-size: 13px; color: var(--muted); }
.about-facts b { font-weight: 600; overflow-wrap: anywhere; }
.about-facts a { color: var(--ink); text-decoration: none; }
.rating { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; flex-wrap: wrap; }
.rating .big { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; }
.rating .big small { font-size: 20px; color: var(--muted); }
.rating .txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.stars { display: flex; gap: 2px; color: var(--ink); }
.stars .off { color: #C5CAD1; }
.map { flex: 1 1 480px; min-width: 0; position: relative; border-radius: 20px; overflow: hidden; min-height: 420px; border: 1px solid var(--line); background: #ECEEE9; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map .card-addr { position: absolute; left: 20px; right: 20px; bottom: 20px; background: var(--bg); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: var(--shadow); flex-wrap: wrap; }
.map .card-addr div { font-size: 14px; color: var(--muted); }
.map .card-addr strong { color: var(--ink); font-size: 16px; display: block; }
.contact { background: var(--night); color: var(--night-ink); }
.contact > .wrap { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 72px; }
.contact .side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.05; }
.contact .side p { color: var(--night-muted); font-size: 17px; }
.callrow { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: 14px; font-weight: 600; font-size: 17px; text-decoration: none; gap: 12px; }
.callrow.white { background: var(--bg); color: var(--ink); }
.callrow.white:hover { color: var(--ink); background: var(--surface); }
.callrow.wa { background: var(--wa); color: var(--wa-ink); }
.callrow.wa:hover { color: var(--wa-ink); filter: brightness(0.96); }
.contact .number { font-size: 14px; color: var(--night-muted); }
.contact .number a { color: var(--night-muted); }
.form { background: var(--bg); color: var(--ink); border-radius: 20px; padding: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form .field > span { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.form-in-dark { flex: 1 1 520px; min-width: 0; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.consent.invalid { color: var(--err); }
.form-ok { border-radius: 12px; background: var(--ok-soft); color: var(--ok); padding: 14px 16px; font-weight: 600; }
.form-err { border-radius: 12px; background: #FEF3F2; color: var(--err); padding: 12px 14px; font-size: 14px; font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
footer.site { background: var(--night-2); color: var(--night-muted); }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; padding-block: 52px 28px; font-size: 15px; }
footer.site strong { color: var(--night-ink); display: block; margin-bottom: 8px; }
footer.site a { color: var(--night-muted); text-decoration: none; display: block; padding: 4px 0; }
footer.site a:hover { color: var(--night-ink); }
footer.site .logo { color: var(--night-ink); font-size: 22px; display: inline-block; padding: 0; }
footer.site .logo i { color: #7B95FF; }
footer.site .tag { margin: 10px 0; }
footer.site .legal { border-top: 1px solid var(--night-line); padding-block: 20px 28px; font-size: 13px; color: #8B929C; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.site .lang a { display: inline-block; color: var(--night-muted); }
footer.site .lang a[aria-current="true"] { color: var(--night-ink); }

/* Sur téléphone, les sélections de l'accueil et les voitures similaires défilent à l'horizontale. */
@media (max-width: 600px) {
  .grid-cars.rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r)); padding: 0 var(--gutter-r) 6px var(--gutter-l); scroll-padding-left: var(--gutter-l); }
  .grid-cars.rail::-webkit-scrollbar { display: none; }
  .grid-cars.rail .card { scroll-snap-align: start; }
  .grid-cars.rail .card:hover { transform: none; }
}

/* Catalogue */
.cat-head { padding-block: 28px 8px; display: flex; flex-direction: column; gap: 12px; }
.cat-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cat-title h1 { font-size: clamp(30px, 5vw, 44px); }
.cat-title p { color: var(--ink-2); font-size: 17px; margin-top: 6px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 600 15px var(--body); color: var(--ink); background: var(--bg); }
.js .sort .sort-go { display: none; }
.filterbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--admin-bar) + var(--head-h)); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.filterbar .wrap { display: flex; gap: 8px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.filterbar .wrap::-webkit-scrollbar { display: none; }
.filterbar .chip { flex: none; }
.chip-dark { background: var(--ink); color: var(--night-ink); border-color: var(--ink); font-weight: 600; }
.chip-dark:hover { color: var(--night-ink); border-color: var(--ink); }
.no-js .filterbar { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; }
.active-filters a { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; font-size: 14px; border-radius: 999px; padding: 7px 12px; text-decoration: none; }
.results { padding-block: 24px 56px; }
.empty { border: 1px dashed #C9CED5; border-radius: 16px; padding: 40px 24px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cta-dark { border-radius: 20px; background: var(--night); color: var(--night-ink); padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 56px; }
.cta-dark strong { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; display: block; }
.cta-dark span { color: var(--night-muted); }
.cta-dark .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* Tiroir de filtres */
.scrim { position: fixed; inset: 0; background: rgba(15, 17, 21, 0.5); z-index: 80; }
.drawer { position: fixed; z-index: 90; background: var(--bg); display: flex; flex-direction: column; box-shadow: -20px 0 48px rgba(15, 17, 21, 0.18); }
.js .drawer:not(.open), .js .scrim:not(.open) { display: none; }
@media (min-width: 900px) { .drawer { top: 0; right: 0; bottom: 0; width: min(440px, 100%); padding-top: env(safe-area-inset-top, 0px); } }
@media (max-width: 899px) { .drawer { left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); } }
.no-js .drawer { position: static; box-shadow: none; border: 1px solid var(--line); border-radius: 16px; margin-top: 16px; max-height: none; width: auto; }
.no-js .scrim { display: none; }
.drawer .dh { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer .dh strong { font-size: 18px; }
.drawer .db { overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 24px; overscroll-behavior: contain; }
.drawer .df { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.drawer fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.drawer legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.drawer .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.histo { display: flex; align-items: flex-end; gap: 3px; height: 56px; }
.histo div { flex: 1; border-radius: 3px 3px 0 0; background: var(--accent); }
.histo div.off { background: var(--line); }
.chipcheck { position: relative; display: inline-flex; }
.chipcheck input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chipcheck span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.chipcheck input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.chipcheck input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chipcheck small { color: var(--muted); margin-left: 6px; }
.chipcheck.zero span { opacity: 0.45; }
.check-line { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check-line input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Fiche */
.v-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 18px; font-size: 14px; }
.v-nav .pn { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.v-nav .pn a { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.v-nav .pn a:hover { border-color: #C9CED5; }
.sold-banner { border-radius: 16px; background: var(--sold); color: #FFFFFF; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sold-banner strong { font-family: var(--display); font-size: 22px; display: block; }
.note-reserved { border-radius: 12px; background: var(--warn-soft); color: var(--warn); padding: 12px 14px; font-size: 14px; font-weight: 600; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 8px; border-radius: 20px; overflow: hidden; }
.gallery > button { border: none; padding: 0; position: relative; background: var(--surface-2); color: var(--ink-2); overflow: hidden; }
.gallery > button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery > button:hover img { transform: scale(1.02); }
.gallery .main { grid-row: 1 / 3; background: linear-gradient(180deg, var(--stage-a) 0%, #E4E5E3 100%); }
.gallery .main img.ill { inset: auto 6% 10% 6%; width: 88%; height: auto; object-fit: contain; opacity: 0.55; }
.gallery .count { position: absolute; left: 16px; bottom: 16px; background: var(--ink); color: var(--night-ink); font-weight: 600; font-size: 14px; border-radius: 10px; padding: 10px 14px; display: inline-flex; gap: 8px; align-items: center; }
.gallery .main .pill { position: absolute; left: 16px; top: 16px; }
.gallery .more { position: absolute; inset: 0; background: rgba(15, 17, 21, 0.55); color: #FFFFFF; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 480px; }
.gallery.n2 { grid-template-columns: 2fr 1fr; }
.gallery.n2 .thumb { grid-row: 1 / 3; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 .thumb:last-child { grid-column: 2 / 4; }
.gallery .soon { position: absolute; left: 16px; bottom: 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--bg); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 899px) {
  .gallery, .gallery.n1, .gallery.n2, .gallery.n3 { grid-template-columns: 1fr; grid-template-rows: auto; border-radius: 16px; }
  .gallery .main { grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery .thumb { display: none; }
}
.thumbs-m { display: none; }
@media (max-width: 899px) {
  .thumbs-m { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; scrollbar-width: none; }
  .thumbs-m::-webkit-scrollbar { display: none; }
  .thumbs-m button { flex: none; width: 96px; aspect-ratio: 4 / 3; border: none; padding: 0; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
  .thumbs-m img { width: 100%; height: 100%; object-fit: cover; }
}
.v-body { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 32px 64px; }
.v-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.v-side { flex: 1 1 340px; min-width: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--admin-bar) + var(--head-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 899px) { .v-side { position: static; order: -1; } .v-body { gap: 28px; padding-top: 20px; } }
.pricecard { border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); background: var(--bg); }
.pricecard h1 { font-size: 32px; margin-top: 10px; }
.pricecard .sub { color: var(--muted); font-size: 16px; margin-top: 4px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.tags span { padding: 6px 10px; border-radius: 8px; background: var(--surface); }
.pricerow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--surface-2); flex-wrap: wrap; }
.pricerow .price { font-size: 40px; letter-spacing: -0.03em; }
.pricerow small { color: var(--muted); font-size: 14px; display: block; }
.ref { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ref code { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }
.box { border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.box .ok { color: var(--ok); font-weight: 600; }
.checks { display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.checks span { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { color: var(--accent); flex: none; margin-top: 1px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts > div { background: var(--bg); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.facts small { font-size: 13px; color: var(--muted); }
.facts b { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.v-main h2 { font-size: 26px; font-weight: 700; }
.v-sec { display: flex; flex-direction: column; gap: 14px; }
.brief { display: flex; gap: 10px; flex-wrap: wrap; }
.brief span { padding: 10px 14px; border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 500; }
.equip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .equip { grid-template-columns: minmax(0, 1fr); } }
.equip > div { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.equip ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 15px; }
.equip li { display: flex; gap: 8px; align-items: flex-start; }
.equip li svg { color: var(--accent); flex: none; margin-top: 2px; }
.desc { color: var(--ink-2); line-height: 1.7; font-size: 16px; }
.desc p + p { margin-top: 12px; }
.rows { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows > div:last-child { border-bottom: none; }
.rows span { color: var(--ink-2); }
.rows b { font-weight: 600; text-align: right; }
.req { border-radius: 20px; background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.req .form { padding: 0; background: transparent; }
.req .lead-line { color: var(--ink-2); font-size: 15px; }
.segs { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.segs legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.segs label { position: relative; }
.segs input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segs span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid #DADDE2; background: var(--bg); font-size: 14px; font-weight: 500; color: var(--ink); }
.segs input:checked + span { background: var(--ink); color: var(--night-ink); border-color: var(--ink); font-weight: 600; }
.segs input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--night); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Barre d'action mobile */
.actionbar { display: none; }
@media (max-width: 899px) {
  .actionbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 17, 21, 0.08); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .actionbar .btn { min-height: 52px; border-radius: 12px; padding: 0 10px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 11, 13, 0.96); display: flex; flex-direction: column; color: #FFFFFF; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lightbox .lh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: 14px; }
.lightbox button { background: rgba(255, 255, 255, 0.12); border: none; color: #FFFFFF; border-radius: 999px; min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox .lb { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px 24px; min-height: 0; }
.lightbox .slide { flex: 1; height: 100%; max-width: 1400px; display: flex; align-items: center; justify-content: center; min-width: 0; touch-action: pan-y; }
.lightbox .slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
@media (max-width: 600px) { .lightbox .nav { display: none; } }

/* Pages simples */
.page { max-width: 820px; padding-block: 40px 72px; display: flex; flex-direction: column; gap: 20px; }
.page h1 { font-size: clamp(30px, 5vw, 44px); }
.page h2 { font-size: 22px; margin-top: 12px; }
.page p, .page li { color: var(--ink-2); line-height: 1.65; }
.page dl { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.page dt { color: var(--muted); }
.page dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 560px) { .page dl { grid-template-columns: minmax(0, 1fr); } .page dd { margin-bottom: 8px; } }
.contact-page { display: flex; flex-wrap: wrap; gap: 40px; padding-block: 8px 72px; }
.contact-page .side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-page .side .callrow.white { border: 1px solid var(--line); }
.contact-page .form { border: 1px solid var(--line); flex: 1 1 480px; min-width: 0; align-self: flex-start; }
.contact-page .map { min-height: 300px; flex: none; }
.nf { padding-block: 72px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.nf h1 { font-size: clamp(32px, 5vw, 48px); }
.nf p { font-size: 18px; color: var(--ink-2); max-width: 640px; }
