/* ==========================================================
   Chromeconcept
   ========================================================== */

:root {
  --bg: #F3F2EE;
  --surface: #FFFFFF;
  --sunk: #E8E7E2;
  --ink: #0E0F10;
  --ink-2: #45474B;
  --mute: #84868A;
  --rule: rgba(14, 15, 16, .1);
  --rule-2: rgba(14, 15, 16, .2);
  --signal: #FF4F12;
  --ok: #138A47;
  --eu: #0B3C9E;
  --dark: #0E0F10;

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --plate: "Barlow Condensed", "Arial Narrow", sans-serif;

  --gut: 32px;
  --max: 1360px;
  --hdr: 64px;
  --r: 14px;
  --ease: cubic-bezier(.2, .75, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--mute); }
.small { font-size: 12px; }
body.locked { overflow: hidden; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--signal); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--signal); }
.btn-ghost { border: 1px solid var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; transition: background .2s, box-shadow .2s; }
.pill:hover { box-shadow: 0 0 0 1px var(--rule-2) inset; }
.pill-ink { background: var(--ink); color: #fff; }
.pill-ink:hover { box-shadow: none; background: #26282b; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background .35s, box-shadow .35s, color .35s; }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 20px; }
body[data-view="home"] .hdr:not(.solid) { color: #fff; }
body[data-view="home"] .hdr:not(.solid) .wm-chrome { background-image: linear-gradient(180deg, #fff 0%, #c9ccd0 46%, #8b8f94 54%, #e9eaec 100%); }
body[data-view="home"] .hdr:not(.solid) .addr-btn { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body[data-view="home"] .hdr:not(.solid) .cart-btn { background: #fff; color: var(--ink); }
.hdr.solid { background: rgba(243,242,238,.9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--rule); }
.wordmark { display: inline-flex; align-items: center; font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.wm-mark { width: 18px; height: 18px; margin-right: 9px; border-radius: 50%; border: 3.5px solid var(--signal); }
.wm-chrome { background-image: linear-gradient(180deg, #2a2c2f 0%, #8d9196 46%, #1a1b1d 54%, #5b5f64 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr-car { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); min-width: 0; animation: pop .5s var(--ease); }
.hdr-car img { width: 48px; height: 32px; border-radius: 999px; object-fit: cover; }
.hdr-car span { display: grid; line-height: 1.15; min-width: 0; }
.hdr-car b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-car small { font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.hdr-car em { font-style: normal; font-size: 12px; color: var(--mute); margin-left: 6px; text-decoration: underline; text-underline-offset: 2px; }
.hdr-car:hover em { color: var(--signal); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } }

.addr { position: relative; }
.addr-btn { max-width: 260px; }
.addr-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; padding: 6px; background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35), 0 0 0 1px var(--rule); }
.addr-menu li { padding: 10px 12px; display: grid; gap: 2px; cursor: pointer; font-size: 14px; border-radius: 8px; }
.addr-menu li span { color: var(--mute); font-size: 12.5px; }
.addr-menu li:hover, .addr-menu li[aria-selected="true"] { background: var(--bg); }
.addr-menu li b { font-weight: 600; }
.cart-btn [data-count] { font-variant-numeric: tabular-nums; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; flex-direction: column; color: #fff; overflow: hidden; background: #111; }
.hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroIn 2.4s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,12,.55) 0%, rgba(10,11,12,.15) 35%, rgba(10,11,12,.35) 60%, rgba(10,11,12,.9) 100%); }
.hero-in { position: relative; margin-top: auto; padding-top: calc(var(--hdr) + 80px); padding-bottom: 40px; width: 100%; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; opacity: .9; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #3CDB7F; box-shadow: 0 0 0 0 rgba(60,219,127,.6); animation: live 2.2s infinite; }
@keyframes live { 70%, 100% { box-shadow: 0 0 0 7px rgba(60,219,127,0); } }
.hero h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 24px; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split .w > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { transform: none; } }

.finder { display: flex; gap: 10px; align-items: stretch; max-width: 720px; padding: 8px; background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: up .9s .25s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }
.plate { flex: 1; display: grid; grid-template-columns: 44px 1fr; height: 68px; background: #F7F7F4; border: 2px solid #0b0b0b; border-radius: 9px; overflow: hidden; cursor: text; transition: box-shadow .25s; min-width: 0; }
.plate:focus-within { box-shadow: 0 0 0 3px rgba(255,79,18,.45); }
.plate-eu { background: var(--eu); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 8px 0 6px; }
.plate-eu b { font-family: var(--plate); font-size: 20px; line-height: 1; }
.eu-stars { width: 22px; height: 22px; }
.plate-input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; text-align: center; text-transform: uppercase; font-family: var(--plate); font-weight: 600; font-size: 46px; letter-spacing: .04em; color: #0b0b0b; caret-color: var(--signal); }
.plate-input::placeholder { color: rgba(0,0,0,.18); }
.finder-go { height: auto; border-radius: 12px; padding: 0 28px; }
.finder-err { min-height: 22px; margin-top: 8px; font-size: 13px; color: #FFB199; }
.alts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; animation: up .9s .4s var(--ease) both; }
.alts > span { opacity: .75; margin-right: 6px; }
.alt { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; color: #fff; font-weight: 500; transition: background .25s, color .25s; }
.alt svg { width: 18px; height: 18px; }
.alt:hover { background: #fff; color: var(--ink); }
.hero-foot { position: relative; border-top: 1px solid rgba(255,255,255,.14); }
.marquee { overflow: hidden; height: 52px; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-t { display: flex; gap: 56px; white-space: nowrap; animation: marq 40s linear infinite; font-weight: 600; font-size: 15px; letter-spacing: -.01em; opacity: .7; padding-left: 56px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Blocs accueil ---------- */
.block { padding-top: 88px; }
.block-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }

.cars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.car { text-align: left; display: flex; flex-direction: column; gap: 10px; }
.car-m { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--sunk); }
.car-m img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.car:hover .car-m img { transform: scale(1.06); }
.car-m::after { content: "Voir les pièces →"; position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.car:hover .car-m::after { opacity: 1; transform: none; }
.car b { font-size: 15px; font-weight: 600; display: block; }
.car small { font-size: 13px; color: var(--mute); }

.how-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-c { position: relative; background: var(--surface); border-radius: calc(var(--r) + 4px); padding: 10px 10px 22px; display: flex; flex-direction: column; gap: 6px; }
.how-m { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--sunk); margin-bottom: 14px; }
.how-m img, .how-m video { width: 100%; height: 100%; object-fit: cover; }
.how-tag { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(14,15,16,.78); color: #fff; font-size: 12px; font-weight: 500; backdrop-filter: blur(6px); }
.how-n { position: absolute; top: 20px; left: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.how-c h3 { font-size: 17px; font-weight: 600; padding: 0 12px; }
.how-c p { color: var(--ink-2); padding: 0 12px; }

.pro { position: relative; margin-top: 96px; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #111; }
.pro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pro-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,12,.9) 0%, rgba(10,11,12,.5) 50%, rgba(10,11,12,.1) 100%); }
.pro-in { position: relative; padding-top: 80px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.pro h2 { max-width: 24ch; font-size: 26px; }
.pro ul { display: grid; gap: 6px; }
.pro li { padding-left: 22px; position: relative; opacity: .9; }
.pro li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--signal); }

/* ---------- Boutique ---------- */
.banner { position: relative; height: 420px; overflow: hidden; background: #111; color: #fff; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: bannerIn 1.4s var(--ease); }
@keyframes bannerIn { from { transform: scale(1.08); filter: blur(6px); } }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,12,.55) 0%, rgba(10,11,12,0) 30%, rgba(10,11,12,.1) 55%, rgba(10,11,12,.85) 100%); }
.banner-img { object-position: 50% 62%; }
.hdr-car-chev { display: none; }
.cart-h .sh-t { color: var(--ink); font-size: 21px; margin: 0; }
.search svg { flex: none; }
.pack-m { grid-template-rows: 100%; overflow: hidden; }
.pack-m img { min-height: 0; }
.banner-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--hdr) + 16px); padding-bottom: 32px; }
.back { align-self: flex-start; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.back:hover { background: #fff; color: var(--ink); }
.banner-k { font-size: 13px; font-weight: 500; opacity: .85; display: flex; align-items: center; gap: 8px; }
.banner-k::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center/100% no-repeat; }
.banner-t { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 4px; }
.banner-s { opacity: .85; }

.meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.meta-l { display: flex; gap: 28px; flex-wrap: wrap; }
.meta-i { display: grid; line-height: 1.25; }
.meta-i b { font-weight: 600; font-size: 15px; }
.meta-i small { color: var(--mute); font-size: 13px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sunk); }
.seg button { height: 36px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .25s, color .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(0,0,0,.15); }

.snav { position: sticky; top: var(--hdr); z-index: 30; background: rgba(243,242,238,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.snav-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); width: 240px; flex: none; color: var(--mute); transition: box-shadow .2s; }
.search:focus-within { box-shadow: 0 0 0 2px var(--ink); color: var(--ink); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); font-size: 14px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.tab:hover { background: var(--sunk); }
.tab.on { background: var(--ink); color: #fff; }

.store-body { padding-top: 12px; padding-bottom: 140px; }
.sec { padding-top: 40px; scroll-margin-top: calc(var(--hdr) + 72px); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-h small { color: var(--mute); font-size: 13px; }

/* Rail « les plus commandés » */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* Cartes packs */
.pack { position: relative; text-align: left; border-radius: calc(var(--r) + 4px); background: var(--ink); color: #fff; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; transition: transform .5s var(--ease); }
.pack:hover { transform: translateY(-3px); }
.pack-m { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 2px; height: 170px; background: #222; }
.pack-m img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pack:hover .pack-m img { transform: scale(1.06); }
.pack-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pack-b b { font-size: 17px; font-weight: 600; }
.pack-b p { font-size: 13.5px; opacity: .7; }
.pack-f { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; gap: 10px; }
.pack-f strong { font-size: 18px; font-weight: 600; }
.pack-f s { opacity: .5; font-size: 13px; }
.pack-off { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: var(--signal); color: var(--ink); font-size: 12px; font-weight: 700; }

/* Cartes pièces */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.item { position: relative; text-align: left; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.item-m { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--surface); margin-bottom: 10px; }
.rail .item-m { aspect-ratio: 16 / 11; }
.item-m img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.item:hover .item-m img { transform: scale(1.05); }
.item-m .badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11.5px; font-weight: 600; }
.plus { position: absolute; right: 10px; bottom: 10px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 14px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); transition: transform .3s var(--ease), background .2s, color .2s; }
.plus svg { width: 16px; height: 16px; }
.plus:hover { transform: scale(1.08); background: var(--ink); color: #fff; }
.plus.has { background: var(--ink); color: #fff; }
.item-n { font-size: 15px; font-weight: 600; line-height: 1.3; }
.item-p { font-size: 14.5px; }
.item-p small { color: var(--mute); font-size: 13px; }
.item-e { font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.item-e i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.item-e.late i { background: var(--mute); }

.empty { padding: 72px 0; text-align: center; color: var(--ink-2); display: grid; gap: 8px; justify-items: center; }
.empty b { font-size: 17px; color: var(--ink); }

/* Images de secours */
.ph { background: linear-gradient(135deg, var(--sunk), #f6f5f2); display: grid; place-items: center; color: var(--mute); font-size: 12px; }

/* ---------- Barre panier ---------- */
.cartbar { position: fixed; z-index: 45; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100% - 32px)); height: 60px; padding: 0 10px 0 10px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 15.5px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.55); animation: barIn .6s var(--ease); transition: background .25s; }
.cartbar:hover { background: #222427; }
.cartbar > span:nth-child(2) { flex: 1; text-align: left; }
.cartbar [data-cb-total] { padding-right: 14px; font-variant-numeric: tabular-nums; }
.cartbar-n { min-width: 40px; height: 40px; border-radius: 999px; background: var(--signal); color: var(--ink); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cartbar.bump .cartbar-n { animation: bump .5s var(--ease); }
@keyframes barIn { from { transform: translate(-50%, 140%); } }

/* ---------- Fenêtres ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(10,11,12,.5); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 48px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 20px; animation: sheetIn .5s var(--ease); scrollbar-width: thin; }
@keyframes sheetIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }
.sheet.wide { width: min(880px, calc(100% - 32px)); }
.sheet.side { left: auto; right: 0; top: 0; bottom: 0; transform: none; width: min(460px, 100%); max-height: none; border-radius: 0; animation: sideIn .5s var(--ease); display: flex; flex-direction: column; }
@keyframes sideIn { from { transform: translateX(100%); } }
.sheet.side .sheet-c { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sheet-x { position: absolute; z-index: 3; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 2px 10px -2px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.sheet-x:hover { transform: rotate(90deg); }
.sh-p { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.sh-t { font-size: 21px; font-weight: 600; letter-spacing: -.015em; padding-right: 40px; }
.sh-s { color: var(--ink-2); margin-top: -8px; }

/* Identification */
.drop { position: relative; display: grid; place-items: center; gap: 8px; text-align: center; aspect-ratio: 16 / 10; border-radius: var(--r); border: 1.5px dashed var(--rule-2); background: var(--bg); cursor: pointer; padding: 20px; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--signal); background: #fff6f2; }
.drop svg { width: 40px; height: 40px; color: var(--ink-2); }
.drop b { font-weight: 600; }
.drop small { color: var(--mute); }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: #000; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.scan { position: absolute; left: 0; right: 0; height: 45%; top: -45%; background: linear-gradient(180deg, transparent, rgba(255,79,18,.25) 92%, rgba(255,79,18,.95)); border-bottom: 2px solid var(--signal); animation: scan 1.3s linear infinite; }
.shot.done .scan { display: none; }
@keyframes scan { to { top: 100%; } }
.bbox { position: absolute; left: 10%; top: 18%; width: 80%; height: 66%; border: 2px solid var(--signal); border-radius: 6px; animation: boxIn .5s var(--ease); }
.bbox span { position: absolute; top: -28px; left: -2px; background: var(--signal); color: var(--ink); padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
@keyframes boxIn { from { opacity: 0; transform: scale(1.08); } }
.log { display: grid; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.log p { display: flex; justify-content: space-between; gap: 10px; animation: fade .3s; }
.log .ok { color: var(--ok); }
.log .wait::after { content: "···"; animation: blink .7s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.searching { display: grid; gap: 18px; padding: 8px 0 4px; }
.searching .plate { height: 60px; pointer-events: none; flex: none; }
.searching .plate-input { font-size: 40px; }

.confirm-m { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.confirm-m img { width: 100%; height: 100%; object-fit: cover; animation: bannerIn 1s var(--ease); }
.confirm-m .ok-chip { position: absolute; left: 16px; top: 16px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ok-chip i { width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center/100% no-repeat; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.specs span { padding: 6px 11px; border-radius: 999px; background: var(--bg); font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1; }

.field { height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--rule-2); background: var(--surface); width: 100%; outline: 0; font-family: var(--mono); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s; }
.field:focus { border-color: var(--ink); }
.cg { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.cg-doc { background: #E4ECE4 repeating-linear-gradient(45deg, transparent 0 9px, rgba(40,90,60,.05) 9px 10px); color: #1d2a22; border-radius: 10px; padding: 14px; font-family: var(--mono); font-size: 11px; display: grid; gap: 2px; transform: rotate(-1.5deg); box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); }
.cg-doc p { display: grid; grid-template-columns: 34px 1fr; padding: 4px; border-radius: 4px; }
.cg-doc p b { opacity: .55; font-weight: 500; }
.cg-doc p span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cg-doc .hot { background: rgba(255,79,18,.18); outline: 1px solid rgba(255,79,18,.6); }
.cg-top { display: flex; justify-content: space-between; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid rgba(29,42,34,.2); }
.linkish { text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; color: var(--ink-2); align-self: flex-start; }
.linkish:hover { color: var(--signal); }

.steps-ind { display: flex; gap: 6px; }
.steps-ind i { flex: 1; height: 3px; border-radius: 3px; background: var(--sunk); }
.steps-ind i.on { background: var(--ink); }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--bg); text-align: left; transition: background .2s, box-shadow .2s; }
.choice:hover { box-shadow: 0 0 0 1.5px var(--ink) inset; background: #fff; }
.choice img { width: 64px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.choice .mk { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.choice b { display: block; font-weight: 600; font-size: 14.5px; }
.choice small { color: var(--mute); font-size: 12.5px; }

/* Fiche article */
.it-m { position: relative; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.it-m img { width: 100%; height: 100%; object-fit: cover; }
.fit { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #EAF6EF; color: #0d5c30; font-size: 14px; font-weight: 500; }
.fit i { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center/100% no-repeat; }
.opt-h { display: flex; justify-content: space-between; align-items: baseline; }
.opt-h b { font-size: 16px; font-weight: 600; }
.opt-h small { padding: 3px 8px; border-radius: 999px; background: var(--sunk); font-size: 11.5px; font-weight: 600; }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule-2) inset; cursor: pointer; transition: box-shadow .2s, background .2s; }
.opt:has(input:checked) { box-shadow: 0 0 0 2px var(--ink) inset; background: var(--bg); }
.opt input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--rule-2); margin: 0; display: grid; place-items: center; }
.opt input:checked { border: 6px solid var(--ink); }
.opt b { font-weight: 600; display: block; }
.opt small { color: var(--mute); font-size: 12.5px; }
.opt .tier { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--sunk); margin-left: 6px; vertical-align: 1px; }
.opt .tier.t-o { background: var(--ink); color: #fff; }
.opt .pr { font-weight: 600; font-variant-numeric: tabular-nums; }
.add-row { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 16px 28px 24px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); }
.stepper { display: inline-flex; align-items: center; height: 52px; border-radius: 999px; background: var(--bg); flex: none; }
.stepper button { width: 46px; height: 100%; font-size: 20px; border-radius: 999px; }
.stepper button:hover { background: var(--sunk); }
.stepper span { min-width: 20px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.sm { height: 34px; }
.stepper.sm button { width: 32px; font-size: 16px; }
.add-row .btn { flex: 1; }

/* Panier */
.cart-h { padding: 22px 24px 14px; border-bottom: 1px solid var(--rule); }
.cart-h p { color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.cart-b { flex: 1; overflow-y: auto; padding: 4px 24px 24px; }
.ln { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: center; animation: fade .35s; }
.ln img, .ln .ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.ln b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.ln small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.ln-r { display: grid; justify-items: end; gap: 6px; }
.ln-r strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.up-h { margin: 22px 0 10px; font-weight: 600; }
.ups { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.up { text-align: left; display: grid; gap: 4px; font-size: 13px; }
.up .item-m { aspect-ratio: 1; margin: 0 0 4px; background: var(--bg); }
.up .plus { width: 32px; min-width: 32px; height: 32px; padding: 0; right: 6px; bottom: 6px; }
.up b { font-weight: 600; line-height: 1.25; }
.box { margin-top: 18px; border-radius: 14px; background: var(--bg); padding: 4px 14px; }
.box-r { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.box-r:last-child { border: 0; }
.box-r > svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.box-r > div { flex: 1; min-width: 0; }
.box-r b { display: block; font-weight: 600; }
.box-r small { color: var(--mute); font-size: 12.5px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { padding: 9px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule-2) inset; text-align: left; font-size: 13px; line-height: 1.25; }
.chip b { display: block; font-weight: 600; font-size: 13.5px; }
.chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink) inset; }
.cart-f { padding: 16px 24px 24px; border-top: 1px solid var(--rule); display: grid; gap: 6px; background: var(--surface); }
.sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.sum.tot { font-size: 17px; font-weight: 600; color: var(--ink); padding: 6px 0 8px; }
.free { height: 4px; border-radius: 4px; background: var(--sunk); overflow: hidden; margin: 2px 0 2px; }
.free i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .6s var(--ease); }
.cart-f .btn { height: 56px; }

/* ---------- Suivi ---------- */
.track { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 100svh; padding-top: var(--hdr); }
.track-map { position: relative; background: #17181a; overflow: hidden; }
.track-map svg, .track-done-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.track-done-v { animation: fade .8s; }
.streets path { stroke: rgba(255,255,255,.08); fill: none; }
.streets path.big { stroke: rgba(255,255,255,.16); stroke-width: 4; }
.river { fill: none; stroke: rgba(70,110,150,.35); stroke-width: 22; }
.route { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; }
.route-done { fill: none; stroke: var(--signal); stroke-width: 5; stroke-linecap: round; }
.pin circle { fill: #fff; }
.pin-to circle:first-child { fill: rgba(255,255,255,.15); stroke: #fff; stroke-width: 2; }
.pin text { fill: #fff; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.courier circle { fill: var(--signal); stroke: #17181a; stroke-width: 4; }
.track-panel { padding: 40px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); }
.track-h { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.track-eta { color: var(--ink-2); }
.track-eta b { color: var(--ink); }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bars i { height: 5px; border-radius: 5px; background: var(--sunk); overflow: hidden; position: relative; }
.bars i::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--ink); border-radius: inherit; transition: width .3s linear; }
.bars i.live::after { background: var(--signal); }
.tsteps { display: grid; gap: 4px; font-size: 14px; color: var(--mute); }
.tsteps li { padding-left: 20px; position: relative; }
.tsteps li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--sunk); }
.tsteps li.done { color: var(--ink); }
.tsteps li.done::before { background: var(--ink); }
.tsteps li.now { color: var(--ink); font-weight: 600; }
.tsteps li.now::before { background: var(--signal); box-shadow: 0 0 0 4px rgba(255,79,18,.2); }
.courier-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg); }
.courier-card > div { flex: 1; display: grid; }
.courier-card b { font-weight: 600; }
.courier-card small { color: var(--mute); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; font-weight: 700; }
.track-items { display: flex; gap: 8px; flex-wrap: wrap; }
.track-items img, .track-items .ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.track-panel .btn { align-self: flex-start; margin-top: auto; }
body[data-view="track"] .footer { display: none; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--rule); margin-top: 0; }
body[data-view="home"] .footer { border-top: 0; }
.footer-g { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gut); }
.footer-g > div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-g a:hover { color: var(--signal); }
.credits { margin-top: 40px; }
.credits summary { cursor: pointer; }
.credits-l { columns: 2; column-gap: 32px; font-size: 11.5px; color: var(--mute); margin-top: 12px; }
.credits-l p { break-inside: avoid; margin-bottom: 4px; }
.credits-l a { text-decoration: underline; }
.footer-b { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: calc(var(--hdr) + 12px); z-index: 90; transform: translate(-50%, -20px); opacity: 0; visibility: hidden; background: var(--ink); color: #fff; padding: 10px 16px 10px 10px; border-radius: 999px; font-size: 14px; display: flex; gap: 10px; align-items: center; transition: transform .45s var(--ease), opacity .3s, visibility .3s; pointer-events: none; max-width: calc(100% - 32px); box-shadow: 0 16px 30px -12px rgba(0,0,0,.4); }
.toast img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Apparitions ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.75,.1,1); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cars { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --gut: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .how-g { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .track-map { min-height: 46svh; }
  .track-panel { padding: 24px var(--gut) 40px; }
  .search { width: 44px; padding: 0 13px; transition: width .35s var(--ease); }
  .search:focus-within { width: 220px; }
  .footer-g { grid-template-columns: 1fr 1fr; }
  .footer-g > div:first-child { grid-column: 1 / -1; }
  .credits-l { columns: 1; }
  .sheet:not(.side) { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 92svh; border-radius: 20px 20px 0 0; animation: upIn .5s var(--ease); }
  @keyframes upIn { from { transform: translateY(100%); } }
}
@media (max-width: 620px) {
  :root { --gut: 16px; --hdr: 58px; }
  .addr { display: none; }
  .hdr-car small, .hdr-car em { display: none; }
  .hdr-car-chev { display: block; margin-left: -2px; }
  .meta-i:nth-child(3), .sec-h small { display: none; }
  .meta { gap: 14px; }
  .banner-s { font-size: 14px; }
  .hdr-car { padding-right: 12px; }
  .hdr-car img { width: 40px; height: 28px; }
  body[data-view="store"] .hdr .wm-chrome, body[data-view="store"] .hdr .wordmark > span:last-child { display: none; }
  .hero { min-height: 100svh; }
  .hero h1 { font-size: 27px; }
  .finder { flex-direction: column; padding: 6px; border-radius: 16px; }
  .plate { height: 64px; flex: none; }
  .finder-go { height: 52px; }
  .alts > span { width: 100%; }
  .cars { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .banner { height: 340px; }
  .banner-t { font-size: 25px; }
  .meta-l { gap: 18px; }
  .meta { padding-top: 16px; padding-bottom: 16px; }
  .rail { grid-auto-columns: 78%; }
  .sh-p { padding: 22px 18px; }
  .add-row { padding: 14px 18px 20px; }
  .cg { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .pro { min-height: 520px; }
  .pro-shade { background: linear-gradient(180deg, rgba(10,11,12,.2), rgba(10,11,12,.9) 70%); }
}
/* Mouvement réduit : on coupe les boucles et les grands déplacements, on garde fondus et transitions */
@media (prefers-reduced-motion: reduce) {
  .marquee-t, .live, .scan, .hero-v { animation: none !important; }
  .rv { transform: none; }
}
