/* CarsCentrum — la plaque jaune luxembourgeoise comme signature : prix, marque et appels à l'action. */
:root {
  --bg: #F1F3F5;
  --surface: #FFFFFF;
  --surface-2: #E7EAEE;
  --ink: #14171C;
  --ink-2: #4E5663;
  --line: #D8DCE2;
  --plate: #FFCC00;
  --plate-ink: #111214;
  --btn: #14171C;
  --btn-ink: #FFFFFF;
  --focus: #2B59FF;
  --lvl-0: #0E7A3C;
  --lvl-1: #4E9F2F;
  --lvl-2: #6C7685;
  --lvl-3: #D9831A;
  --lvl-4: #CC3326;
  --danger: #CC3326;
  --ok: #0E7A3C;
  --shadow: 0 1px 2px rgba(20, 23, 28, .06), 0 6px 20px rgba(20, 23, 28, .06);
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-data: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --r: 12px;
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1013;
    --surface: #171A1F;
    --surface-2: #21252C;
    --ink: #EEF0F3;
    --ink-2: #A4ABB7;
    --line: #2C313A;
    --btn: #EEF0F3;
    --btn-ink: #0E1013;
    --focus: #7D9BFF;
    --lvl-0: #3DBE6E;
    --lvl-1: #8BCB5A;
    --lvl-2: #8E97A5;
    --lvl-3: #F0A040;
    --lvl-4: #F0614F;
    --danger: #F0614F;
    --ok: #3DBE6E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-body);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 900; font-stretch: 125%; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 800; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.eyebrow { font: 600 .78rem/1.45 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }

.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.section { padding-block: 28px; display: flex; flex-direction: column; gap: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.section-head a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--plate); }

/* ---------- top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 1200px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 20px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.footer .brand-logo { height: 34px; }
.brand-plate {
  background: var(--plate); color: var(--plate-ink); font: 700 1.05rem/1 var(--f-data); letter-spacing: .08em;
  padding: 5px 8px 4px 22px; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px var(--plate-ink);
  position: relative;
}
.brand-plate::before {
  content: "L"; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 13px; border-radius: 2px;
  background: #003DA5; color: #fff; font: 700 .62rem/1 var(--f-data); letter-spacing: 0;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px;
}
.brand-word { font: 900 1.15rem/1 var(--f-display); font-stretch: 125%; letter-spacing: .02em; }
.topnav { display: none; gap: 4px; flex: 1; }
.topnav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--ink-2); position: relative; }
.topnav a:hover { color: var(--ink); background: var(--surface-2); }
.topnav a[aria-current="page"] { color: var(--ink); }
.topnav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--plate); border-radius: 2px; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lang { background: var(--surface-2); border: 0; border-radius: 8px; padding: 8px 6px; font-weight: 600; font-size: .9rem; }
.top-sell { display: none; }
@media (min-width: 900px) { .topnav { display: flex; } .top-sell { display: inline-flex; } }

/* ---------- tab bar (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.tabbar a { height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: .72rem; font-weight: 600; color: var(--ink-2); position: relative; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar .tab-sell span.ic { width: 46px; height: 34px; border-radius: 10px; background: var(--plate); color: var(--plate-ink); display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px var(--plate-ink); }
.tabbar .badge { position: absolute; top: 8px; left: calc(50% + 6px); }
@media (min-width: 900px) { .tabbar { display: none; } }

.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font: 700 .7rem/18px var(--f-body); text-align: center; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1.5px solid transparent; background: var(--btn); color: var(--btn-ink);
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sell { background: var(--plate); color: var(--plate-ink); box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px var(--plate-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .9rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.on { color: var(--danger); }
.icon-btn.on svg { fill: currentColor; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-size: .9rem; }
.link-btn.danger-link { color: var(--danger); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--ink-2); font-weight: 400; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 16px;
}
textarea.input { min-height: 130px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--ink); outline: none; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .9rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip svg { width: 22px; height: 22px; }
.seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 9px 8px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- plate (price) ---------- */
.plate {
  display: inline-flex; align-items: center; gap: 2px; background: var(--plate); color: var(--plate-ink);
  font: 700 1.25rem/1 var(--f-data); letter-spacing: .03em; padding: 6px 10px 5px; border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px var(--plate-ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.plate-lg { font-size: 2rem; padding: 9px 14px 8px; border-radius: 8px; box-shadow: inset 0 0 0 3px var(--plate), inset 0 0 0 5px var(--plate-ink); }
.plate .old { text-decoration: line-through; font-size: .7em; opacity: .6; margin-left: 6px; }

/* ---------- hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { padding-block: 34px 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.hero-inner > * { min-width: 0; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: 56px 50px; } }
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--plate) 58%, var(--plate) 92%, transparent 92%); padding: 0 .08em; }
.hero-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.hero-search { display: flex; gap: 8px; background: var(--bg); padding: 6px; border-radius: 14px; border: 1.5px solid var(--line); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 10px; font-size: 16px; outline: none; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta .btn { max-width: 100%; white-space: normal; text-align: left; }
.counters { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.counters b { font: 700 1.3rem/1 var(--f-data); color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } * { transition: none !important; } }

/* hero card: sell in 3 steps */
.steps-card { background: var(--ink); color: var(--bg); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.steps-card h2 { color: var(--bg); }
.steps-card ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps-card li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; counter-increment: s; }
.steps-card li::before {
  content: counter(s); width: 44px; height: 32px; display: grid; place-items: center; background: var(--plate); color: var(--plate-ink);
  font: 700 1.1rem/1 var(--f-data); border-radius: 6px; box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px var(--plate-ink);
}
.steps-card li span { opacity: .8; font-size: .9rem; display: block; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(7, 1fr); } }
.cat-tile { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; text-align: center; }
.cat-tile:hover { border-color: var(--ink); }
.cat-tile svg { width: 54px; height: 34px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; text-decoration: none; min-width: 0; }
.card-media { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.card-media .ph svg { width: 45%; height: auto; opacity: .55; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.card-title { font-weight: 700; font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.card-sub { color: var(--ink-2); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 500 .95rem/1.2 var(--f-data); color: var(--ink-2); letter-spacing: .01em; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.loc { font-size: .82rem; color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; }
.flag { font: 700 .7rem/1 var(--f-data); border: 1.5px solid currentColor; border-radius: 3px; padding: 2px 3px 1px; letter-spacing: .05em; }
.card .fav { position: absolute; top: 10px; right: 10px; z-index: 2; }
.ribbons { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; right: 60px; }
.ribbon { font: 700 .72rem/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); }
.ribbon.feat { background: var(--plate); color: var(--plate-ink); }
.ribbon.drop { background: var(--lvl-0); color: #fff; }
.ribbon.example { background: var(--surface); color: var(--ink); border: 1.5px dashed var(--ink-2); }
.sold-veil { position: absolute; inset: 0; background: rgba(14, 16, 19, .55); display: grid; place-items: center; z-index: 1; }
.sold-veil span { font: 900 1.6rem/1 var(--f-display); font-stretch: 125%; color: #fff; border: 3px solid #fff; padding: 6px 14px; transform: rotate(-8deg); letter-spacing: .06em; }
.card.is-featured { box-shadow: 0 0 0 2.5px var(--plate), var(--shadow); }

/* price label */
.plabel { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.plabel i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lvl-0 { color: var(--lvl-0); } .lvl-0 i { background: var(--lvl-0); }
.lvl-1 { color: var(--lvl-1); } .lvl-1 i { background: var(--lvl-1); }
.lvl-2 { color: var(--lvl-2); } .lvl-2 i { background: var(--lvl-2); }
.lvl-3 { color: var(--lvl-3); } .lvl-3 i { background: var(--lvl-3); }
.lvl-4 { color: var(--lvl-4); } .lvl-4 i { background: var(--lvl-4); }
.gauge { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.gauge span { height: 10px; border-radius: 3px; opacity: .25; }
.gauge span:nth-child(1) { background: var(--lvl-0); } .gauge span:nth-child(2) { background: var(--lvl-1); }
.gauge span:nth-child(3) { background: var(--lvl-2); } .gauge span:nth-child(4) { background: var(--lvl-3); }
.gauge span:nth-child(5) { background: var(--lvl-4); }
.gauge span.on { opacity: 1; height: 14px; margin-top: -2px; }
.gauge-legend { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-2); }

/* ad card */
.ad-card { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.ad-card img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ad-tag { font: 600 .7rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ad-banner { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 700px) { .ad-banner { grid-template-columns: 200px 1fr auto; } }
.ad-banner img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- search ---------- */
.search-layout { display: grid; gap: 20px; padding-block: 20px; }
@media (min-width: 980px) { .search-layout { grid-template-columns: 290px 1fr; align-items: start; } }
.filters { background: var(--surface); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.search-layout > .filters { display: none; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
@media (min-width: 980px) { .search-layout > .filters { display: flex; } .only-mobile { display: none !important; } }
.results-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.searchbox { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 48px; flex: 1 1 260px; }
.searchbox input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; font-size: 16px; }
.searchbox svg { width: 20px; height: 20px; color: var(--ink-2); }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filters .chip { font-size: .8rem; padding: 5px 10px; }

/* ---------- listing page ---------- */
.listing { display: grid; gap: 22px; padding-block: 18px 40px; }
@media (min-width: 980px) { .listing { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.gallery { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > * { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(14, 16, 19, .7); color: #fff; font: 600 .85rem/1 var(--f-data); padding: 6px 9px; border-radius: 6px; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; }
.thumbs button { flex: 0 0 76px; height: 56px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; background: var(--surface-2); }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--surface); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 980px) { .side { position: sticky; top: 76px; } }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.spec-grid div { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.spec-grid dt { font-size: .78rem; color: var(--ink-2); }
.spec-grid dd { margin: 0; font: 600 1.15rem/1.2 var(--f-data); font-variant-numeric: tabular-nums; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.cond-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cond { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.cond svg { width: 16px; height: 16px; color: var(--ok); }
.seller { display: flex; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--plate); color: var(--plate-ink); display: grid; place-items: center; font: 800 1.2rem/1 var(--f-display); flex: none; }
.sticky-actions {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 15;
  background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: 8px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
}
.sticky-actions .btn { flex: 1; }
@media (min-width: 980px) { .sticky-actions { display: none; } }
.has-sticky { padding-bottom: 80px; }
@media (min-width: 980px) { .has-sticky { padding-bottom: 0; } }
.owner-bar { background: var(--plate); color: var(--plate-ink); border-radius: 12px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-weight: 600; }
.owner-bar .btn { background: var(--plate-ink); color: #fff; }
.tips { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; }
.tips ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.history { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.history div { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
details.acc { border-top: 1px solid var(--line); padding-top: 12px; }
details.acc summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details.acc summary::after { content: "+"; font-weight: 700; }
details.acc[open] summary::after { content: "–"; }
.result-box { background: var(--surface-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.big-num { font: 700 2rem/1 var(--f-data); font-variant-numeric: tabular-nums; }

/* ---------- sell wizard ---------- */
.wizard { max-width: 760px; margin: 0 auto; padding-block: 20px 40px; display: flex; flex-direction: column; gap: 18px; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress div { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.progress div::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); }
.progress div.on { color: var(--ink); }
.progress div.on::before { background: var(--plate); box-shadow: inset 0 0 0 1px var(--plate-ink); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.photo-slot { aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative; background: var(--surface-2); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .x { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; }
.photo-slot .cover { position: absolute; left: 5px; bottom: 5px; }
.photo-slot.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.photo-add { aspect-ratio: 1; border-radius: 10px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink-2); background: var(--surface); }
.photo-add svg { width: 28px; height: 28px; }
.wiz-nav { display: flex; gap: 10px; justify-content: space-between; }
.success { text-align: center; align-items: center; }
.success .plate-lg { margin: 4px auto; }
.copy-row { display: flex; gap: 8px; width: 100%; }
.copy-row input { flex: 1; min-width: 0; }

/* ---------- pricing ---------- */
.price-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.price-card { background: var(--surface); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); border: 2px solid transparent; }
.price-card.hot { border-color: var(--plate); }
.price-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: .93rem; flex: 1; }
.price-card .amount { font: 700 2.2rem/1 var(--f-data); font-variant-numeric: tabular-nums; }
.price-card .amount small { font-size: .9rem; color: var(--ink-2); font-weight: 600; }

/* ---------- messages ---------- */
.thread-list { display: flex; flex-direction: column; gap: 8px; }
.thread-item { display: flex; gap: 12px; align-items: center; background: var(--surface); padding: 12px; border-radius: 12px; text-decoration: none; box-shadow: var(--shadow); min-width: 0; }
.thread-item img, .thread-item .ph { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-2); }
.thread-item .t { flex: 1; min-width: 0; }
.thread-item .t div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat { display: flex; flex-direction: column; gap: 8px; padding-block: 12px; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble time { display: block; font-size: .72rem; opacity: .65; margin-top: 4px; }
.composer { display: flex; gap: 8px; position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px); background: var(--bg); padding-block: 8px; }
@media (min-width: 900px) { .composer { bottom: 8px; } }
.composer textarea { min-height: 48px; height: 48px; }

/* ---------- compare ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; }
table.cmp th, table.cmp td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
table.cmp th { font-size: .82rem; color: var(--ink-2); font-weight: 600; width: 150px; }
table.cmp td img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 180px; }

/* ---------- sheet / toast ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 12, 15, .5); z-index: 40; }
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--surface);
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column; gap: 14px;
  padding: 18px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
}
@media (min-width: 700px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, 94vw); border-radius: 18px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet .viewer { max-height: 75vh; object-fit: contain; width: 100%; border-radius: 10px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 50;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* ---------- misc ---------- */
.empty { background: var(--surface); border: 2px dashed var(--line); border-radius: 16px; padding: 28px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty svg { width: 64px; height: 40px; color: var(--ink-2); }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.feature { background: var(--surface); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.feature .k { font: 700 1.6rem/1 var(--f-data); }
.feature .k.plate-txt { display: inline-block; background: var(--plate); color: var(--plate-ink); padding: 4px 8px 3px; border-radius: 5px; align-self: flex-start; box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px var(--plate-ink); font-size: 1.15rem; }
.install { background: var(--ink); color: var(--bg); border-radius: 16px; padding: 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.install .btn { background: var(--plate); color: var(--plate-ink); }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 12px; line-height: 1.65; }
.prose h2 { margin-top: 14px; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 30px; }
.footer-inner { padding-block: 26px; display: flex; flex-direction: column; gap: 14px; }
.footer-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.footer-links a:hover { color: var(--ink); }
.page-head { padding-block: 22px 6px; display: flex; flex-direction: column; gap: 8px; }
.admin-row { background: var(--surface); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow); }
.admin-row > div { min-width: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 14px; height: 300px; }
@keyframes sk { to { background-position: -200% 0; } }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.bar .track { background: var(--surface-2); height: 12px; border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--plate); box-shadow: inset 0 0 0 1px var(--plate-ink); border-radius: 6px; }
.notice { background: var(--surface-2); border-left: 4px solid var(--plate); padding: 12px 14px; border-radius: 8px; font-size: .92rem; }
.error-text { color: var(--danger); font-weight: 600; font-size: .9rem; }

@media print {
  .topbar, .tabbar, .footer, .no-print, .toast, body::before { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .panel { box-shadow: none; padding: 0; }
  .contract .input { border: 0; border-bottom: 1px solid #000; border-radius: 0; min-height: 30px; padding: 4px 0; background: transparent; color: #000; }
}

/* ---------- estimation IA ---------- */
.ai-box { border-radius: 14px; padding: 14px; background: linear-gradient(135deg, color-mix(in srgb, #00A3E0 10%, var(--surface)), color-mix(in srgb, #0A2463 8%, var(--surface))); border: 1.5px solid color-mix(in srgb, #00A3E0 35%, var(--line)); }
.ai-box b svg { width: 18px; height: 18px; vertical-align: -3px; color: #00A3E0; }
.btn-ai { background: linear-gradient(135deg, #00A3E0, #0A2463); color: #fff; }
.ai-loading { display: flex; gap: 12px; align-items: center; }
.ai-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid color-mix(in srgb, #00A3E0 25%, transparent); border-top-color: #00A3E0; animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-spinner { animation-duration: 3s; } }
.ai-conf { font-size: .75rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); }
.ai-conf.conf-high { color: var(--lvl-0); } .ai-conf.conf-medium { color: var(--lvl-3); } .ai-conf.conf-low { color: var(--lvl-4); }
.ai-comp { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 10px; padding: 8px 10px; }
.ai-comp a { color: var(--ink); overflow-wrap: anywhere; }

.vat { font-size: .72rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; border: 1.5px solid var(--ink-2); color: var(--ink-2); white-space: nowrap; }
.bb-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: b; }
.bb-steps li { counter-increment: b; background: var(--surface); border-radius: 12px; padding: 12px 14px 12px 52px; position: relative; font-size: .92rem; font-weight: 600; }
.bb-steps li::before { content: counter(b); position: absolute; left: 12px; top: 10px; width: 30px; height: 26px; display: grid; place-items: center; background: var(--plate); color: var(--plate-ink); font: 700 1rem/1 var(--f-data); border-radius: 5px; box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px var(--plate-ink); }

.push-card { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 2px solid var(--plate); border-radius: 14px; padding: 12px 14px; }
.push-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--plate); color: var(--plate-ink); display: grid; place-items: center; flex: none; }
.push-ic svg { width: 22px; height: 22px; }
.offer-tag { font-size: .72rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: #0A2463; color: #fff; white-space: nowrap; }

.ai-extremes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ai-ext { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.ai-ext:hover { border-color: var(--ink); }
.ai-ext b { font: 700 1.3rem/1.1 var(--f-data); }

/* Vente / location / leasing : étiquette claire sur chaque annonce */
.offer-tag.offer-vente { background: var(--surface-2); color: var(--ink); }
.offer-tag.offer-location { background: #0E7A3C; color: #fff; }
.offer-tag.offer-leasing, .offer-tag.offer-reprise-leasing { background: #0A2463; color: #fff; }
@media (prefers-color-scheme: dark) { .offer-tag.offer-leasing, .offer-tag.offer-reprise-leasing { background: #2B4C9B; } .offer-tag.offer-location { background: #1F8F4E; } }
.hero-mode { max-width: 420px; }
.hero-mode button, .offer-tabs button { font-size: .95rem; }
.offer-tabs { flex-wrap: wrap; }
.seg-big button { padding: 12px 8px; font-size: 1rem; }
.chip-rent { border-color: #0E7A3C; }
.rent-panel h3 svg { width: 18px; height: 18px; vertical-align: -3px; }
.rent-rates { display: grid; gap: 6px; margin: 0; }
.rent-rates div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.rent-rates dt { color: var(--ink-2); }
.rent-rates dd { margin: 0; font: 700 1.15rem var(--f-data); }
.rent-conds { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.bubble a.small { display: block; margin-top: 6px; color: inherit; text-decoration: underline; }
.inspect td, .inspect th { padding: 6px; }
.inspect td .input { min-height: 34px; }
input[type="date"].input { min-width: 0; }

/* Petits téléphones : rien ne doit dépasser de l'écran */
.listing { grid-template-columns: minmax(0, 1fr); }
.listing > *, .search-layout > *, .wizard > * { min-width: 0; }
.btn { max-width: 100%; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 6px; }
  .link-btn { text-align: left; }
}
.search-layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .search-layout { grid-template-columns: 290px minmax(0, 1fr); } }

/* Choix de la langue au premier lancement */
.lang-gate { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; padding: 16px; }
.lang-box { width: 100%; max-width: 380px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 28px 22px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.lang-box h1 { font-size: 1.6rem; margin: 6px 0 0; }
.lang-box p { margin: 0; }
.lang-logo { width: 220px; max-width: 80%; height: auto; margin: 0 auto 6px; display: block; }
.lang-box .btn { min-height: 52px; font-size: 1.1rem; }
.hero-mode { max-width: 520px; }

/* Onglet leasing */
.lease-line { color: var(--ink-2); line-height: 1.35; }
.lease-line b { color: var(--ink); }
.lease-bar { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.lease-bar .chips { align-items: center; }
.chips-label { font-size: .85rem; font-weight: 700; color: var(--ink-2); margin-right: 2px; }
.lease-sub { flex-wrap: wrap; }
.lease-panel h3 svg { width: 18px; height: 18px; vertical-align: -3px; }
.lease-big small { font-size: .7em; font-weight: 600; }
.lease-real { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lease-real > div { background: var(--surface-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.lease-real b { font: 700 1.2rem var(--f-data); }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll > * { flex: none; }
.lease-more summary { cursor: pointer; font-weight: 700; font-size: .95rem; }

/* Mots très longs (allemand) : coupure propre au lieu de dépasser de l'écran */
h1, h2, h3, .prose li, .prose p, .btn, .chip, .seg button { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }

/* En-tête : le bouton « Vendre / Verkaufen » ne se coupe jamais, le logo rétrécit si besoin */
.top-sell { white-space: nowrap; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; flex-shrink: 0; }
.brand { min-width: 0; flex-shrink: 1; }
.brand-logo { max-width: 100%; height: auto; max-height: 40px; }
@media (max-width: 360px) { .top-sell { padding-left: 10px; padding-right: 10px; } .top-actions { gap: 6px; } }
