@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #14171a;
  --ink-2: #252a2e;
  --ground: #eef0ef;
  --paper: #ffffff;
  --rule: #cfd4d2;
  --rule-strong: #9aa3a0;
  --text: #171b1e;
  --muted: #545d5a;
  --on-ink: #f4f6f5;
  --on-ink-muted: #b4bcb9;
  --accent: #c2410c;
  --accent-press: #9c3208;
  --accent-tint: #fbe9e1;
  --ok: #1c7c4a;
  --ok-tint: #e3f2e9;
  --wait: #8a5a06;
  --wait-tint: #fbf0d9;
  --bad: #b42318;
  --bad-tint: #fbe6e3;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-1: 0 1px 2px rgba(20, 23, 26, 0.06), 0 2px 8px rgba(20, 23, 26, 0.05);
  --shadow-2: 0 10px 30px rgba(20, 23, 26, 0.18), 0 2px 6px rgba(20, 23, 26, 0.08);
  --shell-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; background: var(--ground); color: var(--text);
  font-family: "Archivo", system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  font-variant-numeric: tabular-nums; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
svg { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-num { font-variant-numeric: tabular-nums; }
.meta { color: var(--muted); font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); padding: 8px 12px; border-radius: var(--r-s); z-index: 100; }
.skip:focus { top: 12px; }
* { scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }

/* icons */
.ico, .btn svg, .icon-btn svg, .tabbar svg, .demo-btn svg, .inline-ico {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: var(--r-s); border: 1px solid transparent;
  font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform 120ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.dark { background: var(--ink); color: var(--on-ink); }
.btn.ghost { background: var(--paper); border-color: var(--rule); color: var(--text); }
.btn.danger { background: var(--paper); border-color: var(--bad); color: var(--bad); }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn.loading { pointer-events: none; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); border: 1px solid var(--rule); background: var(--paper); transition: transform 120ms var(--ease-out); }
.icon-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { background: var(--accent-press); }
  .btn.ghost:hover { border-color: var(--rule-strong); }
  .btn.dark:hover { background: var(--ink-2); }
  .card-link:hover .card-art { background: #f6f7f6; }
  .card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
  .topnav a:hover { color: #fff; }
  .conv:hover { background: #f6f7f6; }
}

/* shell */
.shell { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--on-ink); }
.shell-in { max-width: 1320px; margin: 0 auto; height: var(--shell-h); padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.brand circle { fill: none; stroke: var(--accent); stroke-width: 2.4; }
.brand text { fill: #fff; font: 700 12px "Archivo", sans-serif; }
.topsearch { position: relative; flex: 1; max-width: 520px; }
.topsearch .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--on-ink-muted); pointer-events: none; }
.topsearch input { width: 100%; height: 40px; border-radius: var(--r-s); border: 1px solid #3a4146; background: #1f2427; color: #fff; padding: 0 12px 0 40px; }
.topsearch input::placeholder { color: #98a19e; }
.topsearch input:focus { outline: none; border-color: var(--accent); }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { text-decoration: none; color: var(--on-ink-muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.count[hidden] { display: none; }
.demo-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid #3a4146; background: transparent; color: var(--on-ink); font-weight: 600; transition: transform 120ms var(--ease-out); }
.demo-btn svg { width: 16px; height: 16px; fill: var(--accent); stroke: none; }
.demo-btn:active { transform: scale(0.97); }

main { max-width: 1320px; margin: 0 auto; padding: 24px 24px 40px; min-height: calc(100vh - var(--shell-h) - 60px); }
main:focus { outline: none; }
.view { display: none; }
.view.on { display: block; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 18px 16px 28px; border-top: 1px solid var(--rule); max-width: 1320px; margin: 0 auto; }

/* recherche */
.search-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 18px; position: sticky; top: calc(var(--shell-h) + 20px); max-height: calc(100vh - var(--shell-h) - 40px); overflow-y: auto; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.filters-head h2 { font-size: 16px; }
.filters fieldset { border: 0; margin: 0; padding: 14px 0; border-top: 1px solid var(--rule); min-width: 0; }
.filters legend, .field > label { font-weight: 650; font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 8px; display: block; }
.field { padding: 14px 0; border-top: 1px solid var(--rule); }
.filters select, .pair input, .form input, .form select, .form textarea, .thread-input textarea {
  width: 100%; height: 40px; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--paper); padding: 0 10px;
}
.filters select:focus, .pair input:focus, .form input:focus, .form select:focus, .form textarea:focus, .thread-input textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.18); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); }
.pair input[aria-invalid="true"], .form [aria-invalid="true"] { border-color: var(--bad); }
.f-err { color: var(--bad); font-size: 13px; margin-top: 6px; min-height: 0; }
.f-err:empty { display: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border-radius: 16px; border: 1px solid var(--rule); font-size: 14px; font-weight: 550; background: var(--paper); transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.checks { display: grid; gap: 2px; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 14px; cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.check-line .n { margin-left: auto; color: var(--muted); font-size: 13px; }
.filters > .check-line { border-top: 1px solid var(--rule); padding-top: 12px; }
.sheet-grip, .only-m { display: none; }

.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.results-head .meta { margin-top: 6px; }
.results-tools { display: flex; align-items: center; gap: 10px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { height: 40px; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--paper); padding: 0 10px; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 11px; border-radius: 15px; background: var(--paper); border: 1px solid var(--rule); font-size: 13px; font-weight: 550; }
.chip button { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--ground); padding: 0; }
.chip button svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.2; fill: none; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; position: relative; }
.card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-art { position: relative; aspect-ratio: 3 / 2; background: #f9faf9; border-bottom: 1px solid var(--rule); color: var(--ink); transition: background-color 150ms ease; }
.card-art svg { width: 100%; height: 100%; display: block; }
.card-art .photos { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; background: rgba(20, 23, 26, 0.82); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.card-art .photos svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.badge-vitrine { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.badge-vitrine svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.card-body { padding: 11px 13px 13px; display: grid; gap: 4px; }
.card-ref { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; display: flex; justify-content: space-between; gap: 8px; }
.card h3 { font-size: 15px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-price { font-size: 18px; font-weight: 750; margin-top: 2px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.vt { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 12px; font-weight: 650; border: 1px solid var(--rule); color: var(--text); background: var(--paper); }
.vt.pro { background: var(--ink); color: #fff; border-color: var(--ink); }
.secure-flag { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; }
.secure-flag svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.empty { background: var(--paper); border: 1px dashed var(--rule-strong); border-radius: var(--r-m); padding: 40px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.empty[hidden] { display: none; }
.empty svg { width: 120px; height: 80px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.empty svg text { fill: var(--accent); stroke: none; font: 700 18px "Archivo", sans-serif; }
.empty p { color: var(--muted); max-width: 46ch; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* drawing */
.drw { stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.drw .fill { fill: #e7eae9; }
.drw .ground { stroke: var(--rule); stroke-dasharray: 3 4; }
.callout circle { fill: var(--paper); stroke: var(--accent); stroke-width: 1.4; }
.callout line { stroke: var(--accent); stroke-width: 1; }
.callout text { fill: var(--accent); stroke: none; font: 700 8px "Archivo", sans-serif; text-anchor: middle; }
.callout.lit circle { fill: var(--accent); }
.callout.lit text { fill: #fff; }
.callout { cursor: pointer; }

/* annonce */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 14px; }
.back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.ad { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.ad-main { display: grid; gap: 18px; min-width: 0; }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 18px; min-width: 0; }
.plate { background: #fafbfa; border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.plate-art { color: var(--ink); aspect-ratio: 16 / 9; }
.plate-art svg { width: 100%; height: 100%; display: block; }
.plate-thumbs { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--rule); background: var(--paper); overflow-x: auto; }
.plate-thumbs button { width: 72px; height: 50px; flex: none; border: 1px solid var(--rule); border-radius: var(--r-s); background: #f6f7f6; padding: 2px; color: var(--ink); }
.plate-thumbs button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plate-thumbs svg { width: 100%; height: 100%; }
.ad-title { display: grid; gap: 6px; }
.ad-title .ref { color: var(--muted); font-size: 13px; }
.ad-title h1 { font-size: 28px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; background: var(--paper); }
.specs div { padding: 12px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.specs div:nth-child(3n) { border-right: 0; }
.specs div:nth-last-child(-n+3) { border-bottom: 0; }
.specs dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.specs dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.controls { width: 100%; border-collapse: collapse; }
.controls th, .controls td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--rule); vertical-align: top; font-size: 14px; }
.controls th { width: 40px; }
.controls tr { transition: background-color 120ms ease; cursor: default; }
.controls tr.lit { background: var(--accent-tint); }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.4px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 12px; }
tr.lit .num { background: var(--accent); color: #fff; }
.controls .state { color: var(--muted); }
.desc { color: var(--text); max-width: 68ch; white-space: pre-line; }
.buybox { position: sticky; top: calc(var(--shell-h) + 20px); display: grid; gap: 14px; }
.buybox .price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.buybox .ship { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.buybox .ship svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; margin-top: 2px; }
.secure-note { display: flex; gap: 10px; padding: 12px; border-radius: var(--r-s); background: var(--ok-tint); color: #12502f; font-size: 14px; }
.secure-note svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.seller { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; flex: none; }
.seller .meta { font-size: 13px; }
.report { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.report svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* paiement */
.pay { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.pay h1 { margin-bottom: 4px; }
.steps-line { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.steps-line b { color: var(--text); }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .row3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form label.l { font-size: 13px; font-weight: 650; color: var(--muted); display: block; margin-bottom: 5px; }
.form textarea { height: auto; min-height: 110px; padding: 10px; resize: vertical; line-height: 1.45; }
.form .err { color: var(--bad); font-size: 13px; margin-top: 5px; }
.form .err:empty { display: none; }
.form .hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--paper); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.opt input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt .t { font-weight: 650; }
.opt .s { color: var(--muted); font-size: 13px; }
.opt .p { font-weight: 700; }
.card-field { position: relative; }
.card-field svg { position: absolute; right: 10px; top: 33px; width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.7; }
.summary { position: sticky; top: calc(var(--shell-h) + 20px); display: grid; gap: 12px; }
.sum-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; }
.sum-item .mini { aspect-ratio: 3 / 2; border: 1px solid var(--rule); border-radius: var(--r-s); background: #f9faf9; color: var(--ink); }
.sum-item .mini svg { width: 100%; height: 100%; display: block; }
.lines { display: grid; gap: 8px; border-top: 1px solid var(--rule); padding-top: 12px; font-size: 14px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.lines .total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--rule); padding-top: 10px; }
.lines .sub { color: var(--muted); font-size: 13px; }
.split { background: var(--ground); border-radius: var(--r-s); padding: 12px; font-size: 13px; display: grid; gap: 6px; }
.split div { display: flex; justify-content: space-between; gap: 12px; }
.split .h { font-weight: 700; font-size: 13px; }
.pay-err { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r-s); background: var(--bad-tint); color: #7d1810; font-size: 14px; }
.pay-err[hidden] { display: none; }

/* commande : frise de repères */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.track { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.track::before, .track .fill { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 2px; background: var(--rule); }
.track .fill { background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform 700ms var(--ease-in-out); right: 12.5%; }
.track li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 0 4px; }
.track .rp { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.6px solid var(--rule-strong); color: var(--muted); font-weight: 750; font-size: 14px; position: relative; z-index: 1; transition: background-color 200ms ease 300ms, border-color 200ms ease 300ms, color 200ms ease 300ms; }
.track li.done .rp { background: var(--accent); border-color: var(--accent); color: #fff; }
.track li.now .rp { border-color: var(--accent); color: var(--accent); }
.track li.stop .rp { background: var(--bad); border-color: var(--bad); color: #fff; }
.track .lb { font-weight: 650; font-size: 14px; }
.track .dt { color: var(--muted); font-size: 12px; }
.status-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-m); font-size: 14px; }
.status-box svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.status-box.wait { background: var(--wait-tint); color: #5c3d04; }
.status-box.ok { background: var(--ok-tint); color: #12502f; }
.status-box.bad { background: var(--bad-tint); color: #7d1810; }
.status-box b { display: block; margin-bottom: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dispute { display: grid; gap: 12px; border-top: 1px solid var(--rule); padding-top: 16px; }
.dispute[hidden] { display: none; }
.uploads { display: flex; gap: 8px; flex-wrap: wrap; }
.up { width: 72px; height: 56px; border-radius: var(--r-s); border: 1px solid var(--rule); background: #f6f7f6; display: grid; place-items: center; color: var(--muted); }
.up svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.up.add { border-style: dashed; background: var(--paper); cursor: pointer; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.history li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.history time { color: var(--muted); font-size: 13px; }

/* messages */
.msg-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; height: calc(100vh - var(--shell-h) - 130px); min-height: 520px; }
.conv-list { overflow-y: auto; min-width: 0; }
.conv-list h1 { font-size: 20px; padding: 16px 16px 12px; border-bottom: 1px solid var(--rule); }
.conv-list ul { list-style: none; margin: 0; padding: 0; }
.conv { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; transition: background-color 120ms ease; }
.conv[aria-current="true"] { background: var(--ground); }
.conv .mini { aspect-ratio: 3 / 2; border: 1px solid var(--rule); border-radius: var(--r-s); background: #f9faf9; color: var(--ink); }
.conv .mini svg { width: 100%; height: 100%; display: block; }
.conv .top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.conv .who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv time { color: var(--muted); font-size: 12px; flex: none; }
.conv .what { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .last { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .last { font-weight: 700; }
.conv.unread .who::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.thread { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); min-width: 0; }
.thread-head .who { font-weight: 700; }
.thread-head .ad-link { display: flex; align-items: center; gap: 10px; margin-left: auto; text-decoration: none; padding: 6px 8px; border: 1px solid var(--rule); border-radius: var(--r-s); min-width: 0; max-width: 50%; }
.thread-head .ad-link .mini { width: 54px; aspect-ratio: 3 / 2; color: var(--ink); flex: none; }
.thread-head .ad-link .mini svg { width: 100%; height: 100%; display: block; }
.thread-head .ad-link span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.thread-head .ad-link b { display: block; font-size: 14px; }
.thread-head .back-m { display: none; }
.bubbles { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f7f8f7; }
.day { align-self: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.bubble { max-width: min(76%, 520px); padding: 9px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); font-size: 14px; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.bubble time { display: block; font-size: 11px; opacity: 0.7; margin-top: 3px; }
.bubble.sys { align-self: center; background: var(--wait-tint); border-color: transparent; color: #5c3d04; font-size: 13px; max-width: 92%; }
.bubble.new { animation: pop-in 220ms var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.typing { align-self: flex-start; color: var(--muted); font-size: 13px; }
.thread-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.thread-input textarea { height: 44px; min-height: 44px; max-height: 120px; padding: 11px 12px; resize: none; line-height: 1.4; }
.thread-input .btn { min-height: 44px; }
.thread-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

/* vendeur */
.vendor-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.vendor-head .meta { margin-top: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 650; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.kyc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--wait-tint); color: #5c3d04; margin-bottom: 16px; font-size: 14px; flex-wrap: wrap; }
.kyc.ok { background: var(--ok-tint); color: #12502f; }
.kyc svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.kyc .btn { margin-left: auto; min-height: 36px; }
.subfilter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tbl-wrap { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: #fafbfa; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .ad-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.tbl .ad-cell .mini { width: 54px; aspect-ratio: 3 / 2; border: 1px solid var(--rule); border-radius: 4px; background: #f9faf9; color: var(--ink); flex: none; }
.tbl .ad-cell .mini svg { width: 100%; height: 100%; display: block; }
.tbl .ad-cell b { display: block; font-weight: 650; }
.tbl .ad-cell span { color: var(--muted); font-size: 12px; }
.st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.ok { background: var(--ok-tint); color: var(--ok); }
.st.wait { background: var(--wait-tint); color: var(--wait); }
.st.bad { background: var(--bad-tint); color: var(--bad); }
.st.off { background: var(--ground); color: var(--muted); }
.opt-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; color: var(--accent); white-space: nowrap; }
.opt-tag svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; }
.tbl .acts .btn { min-height: 34px; padding: 0 10px; font-size: 13px; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); margin-bottom: 16px; }
.figures div { padding: 14px 16px; border-right: 1px solid var(--rule); }
.figures div:last-child { border-right: 0; }
.figures dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.figures dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.figures dd small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; }
.deposit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.aside-note { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.aside-note h3 { color: var(--text); }
.aside-note ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* demo */
.demo { position: fixed; right: 20px; top: calc(var(--shell-h) + 10px); z-index: 50; width: 340px; max-width: calc(100vw - 24px); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-2); padding: 14px; transform-origin: top right; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.demo[hidden] { display: block; visibility: hidden; opacity: 0; transform: scale(0.96) translateY(-4px); pointer-events: none; transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s 150ms; }
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.demo-head h2 { font-size: 16px; }
.demo-list { list-style: none; counter-reset: d; margin: 0 0 8px; padding: 0; display: grid; }
.demo-list li { counter-increment: d; }
.demo-list button { width: 100%; text-align: left; display: flex; gap: 10px; align-items: center; padding: 9px 6px; border: 0; border-top: 1px solid var(--rule); background: none; font-weight: 550; border-radius: 0; }
.demo-list button::before { content: counter(d); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.4px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 700; flex: none; }
@media (hover: hover) and (pointer: fine) { .demo-list button:hover { background: var(--ground); } }
.demo .reset { margin: 4px 6px 2px; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--on-ink); padding: 12px 14px; border-radius: var(--r-m); box-shadow: var(--shadow-2); font-size: 14px; display: flex; gap: 10px; align-items: center; transition: opacity 400ms ease, transform 400ms ease; }
.toast svg { width: 18px; height: 18px; stroke: #7fd3a4; fill: none; stroke-width: 2; }
.toast.in-start { opacity: 0; transform: translateY(10px); }
.toast.out { opacity: 0; transform: translateY(6px); transition-duration: 250ms; }

.tabbar { display: none; }

/* tablette */
@media (max-width: 1100px) {
  .ad, .pay, .order { grid-template-columns: minmax(0, 1fr) 320px; }
  .topnav { gap: 16px; }
  .two, .deposit { grid-template-columns: minmax(0, 1fr); }
}

/* mobile */
@media (max-width: 900px) {
  :root { --shell-h: 56px; }
  body { font-size: 15px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .shell-in { padding: 0 14px; gap: 10px; }
  .brand span { display: none; }
  .topsearch input { height: 38px; font-size: 16px; }
  .topnav { display: none; }
  .demo-btn { padding: 0 10px; }
  main { padding: 16px 14px 24px; }
  h1 { font-size: 22px; }
  .only-m { display: inline-flex; }
  .search-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 45; max-height: 86vh; border-radius: 18px 18px 0 0; border: 0;
    padding: 6px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-2);
    transform: translateY(105%); transition: transform 240ms var(--ease-drawer); visibility: hidden; touch-action: pan-y;
  }
  .filters.open { transform: translateY(0); visibility: visible; transition: transform 380ms var(--ease-drawer); }
  .filters.open.dragging { transition: none; }
  .sheet-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--rule-strong); margin: 4px auto 10px; }
  .filters-head .link { margin-left: auto; }
  .sheet-apply { width: 100%; margin-top: 12px; position: sticky; bottom: 0; }
  .filters-scrim { position: fixed; inset: 0; background: rgba(20, 23, 26, 0.42); z-index: 44; opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
  .filters-scrim.open { opacity: 1; pointer-events: auto; }
  .results-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .results-tools { justify-content: space-between; }
  .sort span { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 9px 10px 11px; }
  .card h3 { font-size: 14px; }
  .card-price { font-size: 16px; }
  .card-foot .vt { display: none; }
  .ad, .pay, .order { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .buybox, .summary { position: static; }
  .ad-title h1 { font-size: 22px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs div:nth-child(3n) { border-right: 1px solid var(--rule); }
  .specs div:nth-child(2n) { border-right: 0; }
  .specs div:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .specs div:nth-last-child(-n+2) { border-bottom: 0; }
  .form .row, .form .row3 { grid-template-columns: minmax(0, 1fr); }
  .form .row3.keep { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .msg-layout { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--shell-h) - 64px - 110px); min-height: 440px; }
  .msg-layout .thread { display: none; }
  .msg-layout.in-thread .conv-list { display: none; }
  .msg-layout.in-thread .thread { display: grid; }
  .thread-head .back-m { display: inline-grid; }
  .thread-head .ad-link { max-width: 55%; }
  .thread-head .ad-link .mini { display: none; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .figures div:last-child { border-bottom: 0; }
  .tbl.stack thead { display: none; }
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr { padding: 12px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .tbl.stack tr:last-child { border-bottom: 0; }
  .tbl.stack td { border: 0; padding: 0; }
  .tbl.stack td[data-l]::before { content: attr(data-l) " : "; color: var(--muted); font-size: 12px; }
  .tbl.stack td.full { grid-column: 1 / -1; }
  .tbl.stack .ad-cell { min-width: 0; }
  .tbl.stack .acts { justify-content: flex-start; grid-column: 1 / -1; }
  .tbl.stack .r { text-align: left; }
  .demo { right: 12px; left: 12px; width: auto; max-width: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: var(--paper); border-top: 1px solid var(--rule); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 650; padding: 4px 0; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar .dot { position: absolute; top: 2px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  .tabbar .dot[hidden] { display: none; }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .filters, .filters.open { transition: opacity 200ms ease, visibility 0s; transform: none; opacity: 0; }
  .filters.open { opacity: 1; }
  .track .fill { transition: opacity 200ms ease; }
  .demo, .demo[hidden] { transform: none; }
  .toast, .toast.in-start, .toast.out { transform: none; }
  .bubble.new { animation: none; }
  .btn:active, .icon-btn:active, .demo-btn:active { transform: none; }
}
@media (max-width: 900px) { .hide-s { display: none; } .thread-input .btn { padding: 0 14px; } }
.tabs .sm { display: none; }
@media (max-width: 900px) {
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: visible; }
  .tabs a { padding: 10px 4px; text-align: center; font-size: 14px; }
  .tabs .lg { display: none; }
  .tabs .sm { display: inline; }
  .plate-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; gap: 6px; padding: 8px; }
  .plate-thumbs button { width: auto; height: auto; aspect-ratio: 3 / 2; }
}
/* correctifs de mise en page */
.filters-scrim { display: none; }
.filters legend { float: left; width: 100%; }
.filters legend + * { clear: both; }
.drw path, .drw circle, .callout line { vector-effect: non-scaling-stroke; }
.plate-art .drw { stroke-width: 1.6; }
.card-art .drw, .mini .drw, .plate-thumbs .drw { stroke-width: 1.3; }
.card-ref span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-ref span:first-child { flex: none; }
.plate-art { padding: 8px 4%; }
@media (max-width: 900px) {
  .filters-scrim { display: block; }
  .card-ref { flex-direction: column; gap: 0; }
}
.plate-art { max-height: 440px; aspect-ratio: auto; height: min(440px, 56vw); }
.track li { align-content: start; }
@media (max-width: 900px) {
  .sheet-apply { box-shadow: 0 0 0 12px var(--paper); }
  .thread-head { gap: 8px; padding: 10px 12px; }
  .thread-head .avatar { display: none; }
  .thread-head .meta { display: none; }
  .thread-head .who { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.conv-list, .thread { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.conv-list { overflow-y: auto; }
.thread { overflow: hidden; }
