/* Wevi Order — app client v2. Design épuré inspiré d'iOS : aéré, typographie système, matières translucides.
   Mouvement : ease-in-out sur tout, durées courtes (120–300 ms) pour une app vive et fluide. */
:root {
  --brand: #1F3A2B;
  --accent: #8DB255;
  --cream: #F4EFE4;
  --bg: #F6F5F2;
  --card: #FFFFFF;
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .08);
  --label: #1D1D1F;
  --label-2: #6E6E73;
  --label-3: #A1A1A6;
  --sep: rgba(60, 60, 67, .13);
  --ok: #2E9A55;
  --warn: #B86E00;
  --bad: #E0402E;
  --tint: color-mix(in srgb, var(--accent) 16%, white);
  /* Boutons d'action : dégradé vert matcha, texte blanc */
  --cta-1: #86B83E;
  --cta-2: #4E8A20;
  --cta: linear-gradient(135deg, var(--cta-1) 0%, var(--cta-2) 100%);
  --r-s: 12px;
  --r: 16px;
  --r-l: 22px;
  --r-xl: 30px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .02);
  --sh-2: 0 10px 30px -12px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .04);
  --sh-3: 0 24px 60px -20px rgba(0, 0, 0, .35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  /* Courbes ease-in-out (douces au départ et à l'arrivée), vitesses dynamiques */
  --ease: cubic-bezier(.45, 0, .2, 1);
  --ease-sym: cubic-bezier(.65, 0, .35, 1);
  --t1: 120ms;
  --t2: 200ms;
  --t3: 280ms;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: calc(56px + var(--safe-b));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--label); font: 17px/1.4 var(--font);
  letter-spacing: -.012em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; text-align: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
body.lock { overflow: hidden; }

#app { max-width: 600px; margin: 0 auto; min-height: 100dvh; position: relative; background: var(--bg); }
@media (min-width: 680px) { html, body { background: #ECEAE4; } #app { box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 40px 100px -40px rgba(0,0,0,.25); } }

.boot { min-height: 60dvh; display: grid; place-items: center; }
.boot-dot { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--fill); border-top-color: var(--brand); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Retour tactile : instantané à l'appui */
button, .btn, a.opt { transition: transform var(--t1) var(--ease), opacity var(--t1) var(--ease), background-color var(--t2) var(--ease), color var(--t2) var(--ease); }
.press:not([disabled]) { transform: scale(.97); }
.tile.press, .prow.press, .feat.press, .teaser.press, .live.press { transform: scale(.98); }
.opt.press, .hr-main.press { transform: none; background-color: var(--fill-2); }

/* Entrée de vue (changement d'onglet) */
.view.enter { animation: viewIn var(--t3) var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------------- Barre de navigation + grand titre ---------------- */
.nav { position: sticky; top: 0; z-index: 30; height: calc(48px + var(--safe-t)); padding-top: var(--safe-t); }
.nav::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); opacity: 0; transition: opacity var(--t2) var(--ease); box-shadow: 0 .5px 0 var(--sep); }
.nav.on::before { opacity: 1; }
.nav-in { position: relative; height: 48px; display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; padding: 0 12px; }
.nav-title { text-align: center; font-weight: 600; font-size: 17px; opacity: 0; transform: translateY(4px); transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav.on .nav-title { opacity: 1; transform: none; }
.nav-r { justify-self: end; opacity: 0; transition: opacity var(--t2) var(--ease); }
.nav.on .nav-r { opacity: 1; }
.iconbtn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--brand); }
.iconbtn svg { width: 20px; height: 20px; }

.lt { padding: 0 20px 6px; margin-top: -4px; }
.lt-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lt h1 { margin: 0; font: 700 34px/1.08 var(--font-d); letter-spacing: -.028em; }
.mark { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: var(--sh-1); }
.mark svg { width: 25px; height: 25px; }
.mark img { width: 100%; height: 100%; object-fit: cover; }
.mark.sm { width: 30px; height: 30px; border-radius: 9px; }
.mark.sm svg { width: 18px; height: 18px; }
.mark.lg { width: 64px; height: 64px; border-radius: 18px; }
.mark.lg svg { width: 36px; height: 36px; }
.status { margin: 6px 0 0; display: flex; align-items: center; gap: 7px; color: var(--label-2); font-size: 15px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status.closed i { background: var(--bad); }
.status.paused i { background: var(--warn); }

.pad { padding: 0 20px; margin-top: 16px; }
.pad0 { padding: 0 16px; }
.mt { margin-top: 16px; }
.sp24 { height: 24px; }
.tabspace { height: calc(var(--tab-h) + 32px); }
.center { text-align: center; }
.muted { color: var(--label-3); font-size: 15px; padding: 9px 2px; }
.fine { color: var(--label-2); font-size: 13px; margin: 10px 20px 0; line-height: 1.4; }
.fine.center { text-align: center; }

.note { background: var(--card); border-radius: var(--r); padding: 13px 15px; font-size: 15px; color: var(--label-2); box-shadow: var(--sh-1); }
.note.warn { color: #7A4A00; background: #FFF6E5; box-shadow: none; }

/* ---------------- Contrôle segmenté ---------------- */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); border-radius: 10px; padding: 2px; }
.seg button { position: relative; z-index: 1; height: 34px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--label); text-align: center; white-space: nowrap; }
.seg button.on { font-weight: 600; }
.seg-ind { position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / var(--n)); border-radius: 8px; background: var(--card); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04); transform: translateX(calc(var(--i) * 100%)); transition: transform var(--t3) var(--ease); }

.tablechip { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh-1); }
.tc-n { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 19px var(--font-d); flex: none; }
.tablechip b { display: block; font-size: 16px; font-weight: 600; }
.tablechip small { color: var(--label-2); font-size: 13px; }
.link { color: var(--brand); font-weight: 600; font-size: 15px; margin-left: auto; padding: 6px 2px; }
.link.center-b { display: block; margin: 18px auto 0; }

/* ---------------- Mise en avant ---------------- */
.feat { width: 100%; display: flex; align-items: stretch; border-radius: var(--r-l); overflow: hidden; min-height: 172px; background: color-mix(in oklab, var(--t) 30%, white); box-shadow: var(--sh-1); text-align: left; }
.feat-txt { flex: 1; padding: 18px 4px 18px 18px; display: flex; flex-direction: column; min-width: 0; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); opacity: .8; }
.feat b { font: 700 22px/1.12 var(--font-d); letter-spacing: -.02em; margin-top: 4px; }
.feat p { margin: 6px 0 12px; font-size: 14px; color: var(--label-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { margin-top: auto; align-self: flex-start; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 99px; }
.feat-vis { width: 40%; display: grid; place-items: center; padding: 10px 10px 10px 0; }
.feat-vis svg { width: 100%; height: 150px; filter: drop-shadow(0 12px 14px rgba(0,0,0,.14)); }
.feat-vis img { width: 100%; height: 100%; object-fit: cover; }

/* Teaser Club / lignes cliquables */
.teaser { width: 100%; display: flex; align-items: center; gap: 13px; background: var(--card); border-radius: var(--r); padding: 13px 14px; box-shadow: var(--sh-1); text-align: left; }
.t-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.t-ico svg { width: 22px; height: 22px; }
.t-txt { flex: 1; min-width: 0; }
.t-txt b { display: block; font-size: 16px; font-weight: 600; }
.t-txt small { display: block; color: var(--label-2); font-size: 13.5px; margin-top: 1px; }
.chevr { color: var(--label-3); width: 18px; flex: none; margin-left: auto; }
.chevr svg { width: 16px; height: 16px; }
.ring { --p: 0; width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--fill) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--card); }
.ring b { position: relative; font-size: 11px; font-weight: 700; }

.reorder { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 12px 12px 12px 14px; box-shadow: var(--sh-1); }
.ro-vis { display: flex; flex: none; }
.ro-vis .vis { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--card); margin-left: -10px; }
.ro-vis .vis:first-child { margin-left: 0; }
.ro-vis .vis svg { width: 80%; height: 80%; filter: none; }
.ro-txt { flex: 1; min-width: 0; }
.ro-txt small { display: block; color: var(--label-2); font-size: 12.5px; }
.ro-txt b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- Boutons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 600; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn.grow { flex: 1; width: 100%; }
.btn.sm { height: 34px; padding: 0 14px; border-radius: 99px; font-size: 14px; }
.btn.sm svg { width: 15px; height: 15px; }
.btn:not(.tinted):not(.plain):not(.danger) { background: var(--cta); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 22px -10px color-mix(in srgb, var(--cta-2) 80%, transparent); }
.btn.tinted { background: var(--tint); color: var(--brand); }
.btn.plain { background: var(--fill-2); color: var(--label-2); }
.btn.danger { background: var(--bad); }
.btn[disabled] { opacity: .4; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.tinted.loading::after, .btn.plain.loading::after { border-color: rgba(0,0,0,.15); border-top-color: var(--brand); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.duo .btn { height: 44px; font-size: 15px; border-radius: 12px; }
.duo .btn.tinted svg { width: 16px; }

/* ---------------- Catégories + filtres ---------------- */
.cats { position: sticky; top: calc(48px + var(--safe-t)); z-index: 25; margin-top: 22px; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); }
.cats-in, .filters { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; padding: 6px 20px; }
.cats-in::-webkit-scrollbar, .filters::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.cat { flex: none; height: 34px; padding: 0 14px; border-radius: 99px; font-size: 15px; font-weight: 500; color: var(--label-2); transition: background-color var(--t2) var(--ease), color var(--t2) var(--ease); }
.cat.on { background: var(--label); color: #fff; font-weight: 600; }
.filters { padding-top: 2px; padding-bottom: 10px; box-shadow: 0 .5px 0 var(--sep); }
.fchip { flex: none; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13.5px; font-weight: 500; color: var(--label-2); background: var(--card); box-shadow: inset 0 0 0 .5px var(--sep); }
.fchip.on { background: var(--brand); color: #fff; box-shadow: none; }

/* ---------------- Carte des produits ---------------- */
.sec { padding: 26px 0 0; scroll-margin-top: calc(140px + var(--safe-t)); }
.sec-h { padding: 0 20px 12px; }
.sec-h h2 { margin: 0; font: 700 22px/1.2 var(--font-d); letter-spacing: -.022em; }
.sec-h p { margin: 3px 0 0; color: var(--label-2); font-size: 14.5px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px; }
.tile { background: var(--card); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1); text-align: left; display: flex; flex-direction: column; animation: rise var(--t3) var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.tile .vis { aspect-ratio: 1 / 1; }
.tile-b { padding: 10px 13px 13px; }
.tile-b b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.tile-b span { display: block; color: var(--label-2); font-size: 14.5px; margin-top: 3px; }
.plist { margin: 0 20px; background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh-1); overflow: hidden; }
.prow { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; text-align: left; position: relative; animation: rise var(--t3) var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.prow + .prow::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.prow-t { flex: 1; min-width: 0; }
.prow-t b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.prow-t p { margin: 3px 0 0; color: var(--label-2); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow-p { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 500; }
.prow-p em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--brand); background: var(--tint); padding: 2px 8px; border-radius: 99px; }
.prow .vis { width: 92px; height: 92px; border-radius: 14px; flex: none; }
.out { opacity: .45; }
.out .add { display: none; }

.vis { position: relative; display: grid; place-items: center; overflow: hidden; background: color-mix(in oklab, var(--t, var(--accent)) 24%, #FBFAF7); }
.vis svg { width: 76%; height: 76%; filter: drop-shadow(0 8px 10px rgba(0,0,0,.12)); }
.vis img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.85); color: var(--label); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.add { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--brand); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 14px; font-weight: 700; transition: background-color var(--t2) var(--ease), color var(--t2) var(--ease), transform var(--t2) var(--ease); }
.add svg { width: 15px; height: 15px; filter: none; }
.add.n { background: var(--brand); color: #fff; }

.findcard { margin: 0 20px; background: var(--card); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1); }
.pad0 .findcard { margin: 0; }
.find-body { padding: 14px 16px 16px; }
.find-body b { display: block; font-size: 16px; font-weight: 600; }
.find-body > span { display: block; color: var(--label-2); font-size: 14px; margin-top: 2px; }
.foot { text-align: center; color: var(--label-3); font-size: 12.5px; padding: 26px 20px calc(var(--tab-h) + 96px); line-height: 1.6; }

.empty { text-align: center; padding: 60px 30px; }
.empty .e-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--fill-2); color: var(--label-3); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .e-ico svg { width: 30px; height: 30px; }
.empty b { display: block; font: 600 20px var(--font-d); letter-spacing: -.02em; }
.empty p { color: var(--label-2); margin: 6px 0 18px; }

/* ---------------- Barre d'onglets (verre) ---------------- */
.tabbar {
  position: fixed; left: 50%; bottom: 0; z-index: 40; width: min(600px, 100%); transform: translateX(-50%);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--tab-h); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px); box-shadow: 0 -.5px 0 var(--sep);
}
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--label-3); font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
.tabbar button svg { width: 25px; height: 25px; }
.tabbar button.on { color: var(--brand); }
.tabbar button.on svg { stroke-width: 2.2; }
.tb-dot { position: absolute; top: 7px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); transform: scale(0); transition: transform var(--t2) var(--ease); }
.tb-dot.on { transform: scale(1); }

.cartfab { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 10px); z-index: 39; width: min(600px, 100%); padding: 0 16px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform var(--t3) var(--ease), opacity var(--t2) var(--ease); }
.cartfab.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cartfab button { width: 100%; height: 54px; border-radius: 16px; background: var(--cta); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px; font-size: 16px; font-weight: 600; box-shadow: var(--sh-3); }
.cf-n { min-width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 14px; padding: 0 6px; }
.cf-t { margin-left: auto; font-weight: 600; }
.cartfab.bump button { animation: bump var(--t3) var(--ease); }
@keyframes bump { 50% { transform: scale(1.03); } }

/* ---------------- Feuilles (sheets) ---------------- */
.veil { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.32); opacity: 0; transition: opacity var(--t3) var(--ease); }
.veil.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 61; left: 50%; bottom: 0; width: min(600px, 100%); max-height: calc(100dvh - 44px - var(--safe-t));
  background: var(--bg); border-radius: 14px 14px 0 0; transform: translate(-50%, 100%); transition: transform var(--t3) var(--ease);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--sh-3); will-change: transform;
}
.sheet.show { transform: translate(-50%, 0); }
.sheet.dragging { transition: none; }
.sheet::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 4; pointer-events: none; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 .5px 0 var(--sep); opacity: 0; transition: opacity var(--t2) var(--ease); }
.sheet.scrolled::before { opacity: 1; }
.product.scrolled .sx, .info.scrolled .sx { background: var(--fill); }
.sheet.tall { height: calc(100dvh - 44px - var(--safe-t)); }
.sheet.small { border-radius: 22px 22px 0 0; }
.grab { position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 9px; background: rgba(0,0,0,.18); z-index: 5; }
.sx { position: absolute; top: 12px; right: 12px; z-index: 6; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--label-2); display: grid; place-items: center; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sx svg { width: 15px; height: 15px; }
.product .sx, .info .sx { background: rgba(255,255,255,.75); color: var(--label); }
.sheet .scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sh-head { padding: 28px 20px 8px; }
.sh-head.center { text-align: center; }
.sh-head h3 { margin: 0; font: 700 28px/1.12 var(--font-d); letter-spacing: -.026em; }
.sh-head p { margin: 6px 0 0; color: var(--label-2); font-size: 15px; }
.sh-head .mark { margin: 0 auto; }
.sh-foot { display: flex; gap: 10px; align-items: center; padding: 10px 16px calc(10px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 -.5px 0 var(--sep); }
.sh-foot.col { flex-direction: column; align-items: stretch; }
.sh-foot .btn { height: 52px; }

/* Groupes façon Réglages iOS */
.glabel { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 36px 7px; color: var(--label-2); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.glabel small { text-transform: none; letter-spacing: 0; font-size: 13px; }
.glabel small.req { color: var(--brand); font-weight: 600; }
.group { margin: 0 16px; background: var(--card); border-radius: 12px; overflow: hidden; }
.group.mt { margin-top: 16px; }
.group.bad, .frow.bad { box-shadow: inset 0 0 0 1.5px var(--bad); }
.opt { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 11px 16px; text-align: left; position: relative; font-size: 16px; }
.opt + .opt::before, .frow + .frow::before, .opt + .frow::before, .cline + .cline::before, .offer + .offer::before, .logrow + .logrow::before, .hrow + .hrow::before, .perk + .perk::before, .map + .frow::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.row-ico + .row-ico::before, .offer + .offer::before, .perk + .perk::before { left: 60px; }
.o-l { flex: 1; min-width: 0; }
.o-l small { display: block; color: var(--label-2); font-size: 13.5px; margin-top: 1px; }
.o-p { color: var(--label-2); font-size: 15px; }
.o-c { width: 20px; color: var(--brand); opacity: 0; transform: scale(.6); transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease); flex: none; }
.o-c svg { width: 18px; height: 18px; }
.opt.on .o-c { opacity: 1; transform: none; }
.opt.multi .o-c { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--label-3); opacity: 1; transform: none; display: grid; place-items: center; color: #fff; }
.opt.multi .o-c svg { width: 13px; height: 13px; opacity: 0; transition: opacity var(--t1) var(--ease); }
.opt.multi.on .o-c { background: var(--brand); box-shadow: none; }
.opt.multi.on .o-c svg { opacity: 1; }
.opt.danger { color: var(--bad); }
.ri { width: 30px; height: 30px; border-radius: 8px; background: var(--tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.ri svg { width: 18px; height: 18px; }
.danger .ri { background: #FDECEA; color: var(--bad); }
.frow { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 16px; }
.frow > span:first-child { min-width: 96px; flex: none; color: var(--label); white-space: nowrap; }
.frow .val { margin-left: auto; color: var(--label-2); }
.frow.today { font-weight: 600; color: var(--brand); }
.frow.today > span:first-child, .frow.today .val { color: var(--brand); }
.field-in { width: 100%; min-height: 48px; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 0; -webkit-appearance: none; appearance: none; }
.group > .field-in { padding: 0 16px; }
.field-in::placeholder { color: var(--label-3); }
.field-in.ta { min-height: 84px; padding: 13px 16px; resize: none; display: block; }
.sel { color: var(--label); background: transparent; text-align: right; direction: rtl; cursor: pointer; }
.sel option { direction: ltr; }
.frow .field-in { text-align: right; }
.frow .field-in.sel { text-align: right; }

/* Interrupteur iOS */
.ios { -webkit-appearance: none; appearance: none; width: 51px; height: 31px; border-radius: 99px; background: var(--fill); position: relative; flex: none; cursor: pointer; transition: background-color var(--t2) var(--ease); margin: 0; }
.ios::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.06); transition: transform var(--t2) var(--ease); }
.ios:checked { background: #34C759; }
.ios:checked::after { transform: translateX(20px); }
.sw-row { cursor: pointer; }

/* Fiche produit */
.p-hero { height: 290px; border-radius: 0; }
.p-hero svg { width: 60%; height: 80%; }
.p-body { padding: 18px 20px 4px; }
.p-body h3 { margin: 0; font: 700 28px/1.12 var(--font-d); letter-spacing: -.026em; }
.p-price { margin: 6px 0 0; font-size: 17px; font-weight: 500; }
.p-price span { color: var(--label-2); font-size: 14px; font-weight: 400; margin-left: 4px; }
.p-desc { margin: 10px 0 0; color: var(--label-2); font-size: 15.5px; line-height: 1.45; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mchip { font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 99px; background: var(--card); color: var(--label-2); box-shadow: inset 0 0 0 .5px var(--sep); }
.p-all { margin: 10px 0 0; color: var(--label-3); font-size: 13px; }
.stepper { display: flex; align-items: center; background: var(--card); border-radius: 14px; height: 52px; padding: 0 4px; box-shadow: inset 0 0 0 .5px var(--sep); flex: none; }
.stepper button { width: 42px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); }
.stepper button svg { width: 18px; height: 18px; }
.stepper b { min-width: 22px; text-align: center; font-size: 17px; font-weight: 600; }

/* Panier */
.cline { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 12px 16px; }
.cline .vis { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.cline .vis svg { width: 82%; height: 82%; filter: none; }
.cl-t { flex: 1; min-width: 0; }
.cl-t b { display: block; font-size: 15.5px; font-weight: 600; }
.cl-t small { display: block; color: var(--label-2); font-size: 13px; line-height: 1.35; margin-top: 1px; }
.cl-t small.bad { color: var(--bad); }
.cl-t .link { font-size: 13.5px; padding: 4px 0 0; margin: 0; }
.cl-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cl-r > span { font-size: 15px; font-weight: 500; white-space: nowrap; }
.mini { display: flex; align-items: center; gap: 2px; background: var(--fill-2); border-radius: 99px; padding: 2px; }
.mini button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); }
.mini button svg { width: 13px; height: 13px; }
.mini b { min-width: 18px; text-align: center; font-size: 14px; font-weight: 600; }
.addmore { width: 100%; display: flex; align-items: center; gap: 8px; padding: 13px 16px; color: var(--brand); font-size: 15.5px; font-weight: 500; position: relative; }
.addmore::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.addmore svg { width: 16px; height: 16px; }
.slots { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 0 16px 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.chip { flex: none; height: 38px; padding: 0 15px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 .5px var(--sep); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background-color var(--t2) var(--ease), color var(--t2) var(--ease); }
.chip.on { background: var(--brand); color: #fff; box-shadow: none; }
.zone { padding: 8px 36px 0; font-size: 13.5px; }
.zone.ok { color: var(--ok); } .zone.bad { color: var(--bad); } .zone.wait { color: var(--label-2); }
.applied { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 14.5px; color: var(--ok); }
.applied b { white-space: nowrap; font-weight: 600; }
.applied::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.totals { margin: 16px 20px 0; }
.totals > div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--label-2); font-size: 15px; }
.totals > div.good { color: var(--ok); }
.totals > div.grand { color: var(--label); font-size: 20px; font-weight: 700; padding-top: 10px; margin-top: 6px; box-shadow: 0 -.5px 0 var(--sep); letter-spacing: -.02em; }
.totals .hint { font-size: 13px; color: var(--brand); margin: 6px 0 4px; }
.totals .hint i { display: block; height: 4px; border-radius: 9px; background: var(--fill); margin-top: 6px; overflow: hidden; }
.totals .hint i::after { content: ""; display: block; height: 100%; width: var(--p); background: var(--accent); border-radius: 9px; transition: width var(--t3) var(--ease); }
.earn { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13.5px; color: var(--brand); font-weight: 500; }
.earn svg { width: 15px; height: 15px; }
.err { margin: 14px 20px 0; color: var(--bad); font-size: 14.5px; font-weight: 500; text-align: center; }

/* Connexion */
.club-hero { padding: 40px 20px 0; display: grid; place-items: center; }
.club-hero.big { padding: 0; }
.ch-card { width: 220px; height: 136px; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 60%, var(--brand)), var(--brand) 60%); color: #fff; box-shadow: var(--sh-2); transform: rotate(-4deg); animation: cardIn var(--t3) var(--ease) both; }
.club-hero.big .ch-card { width: 100%; height: 190px; transform: none; border-radius: 22px; padding: 20px; }
.ch-card span { font: 600 18px var(--font-d); letter-spacing: -.01em; }
.ch-card em { font-style: normal; font-size: 13px; opacity: .8; }
.ch-card .mark { background: rgba(255,255,255,.14); box-shadow: none; width: 40px; height: 40px; }
@keyframes cardIn { from { opacity: 0; transform: rotate(-4deg) translateY(12px) scale(.96); } }
.perks .perk { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.perk b { display: block; font-size: 15.5px; font-weight: 600; }
.perk small { display: block; color: var(--label-2); font-size: 13.5px; }
.otp { padding: 20px 20px 0; }
.otp input { width: 100%; height: 64px; border: 0; outline: 0; border-radius: 14px; background: var(--card); text-align: center; font: 600 30px var(--font-d); letter-spacing: .5em; text-indent: .5em; box-shadow: inset 0 0 0 .5px var(--sep); }
.otp input:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.devcode { text-align: center; color: var(--warn); font-size: 13.5px; margin: 12px 0 0; }

/* ---------------- Club ---------------- */
.mcard { position: relative; border-radius: 22px; padding: 18px 20px 16px; color: #fff; overflow: hidden; background: radial-gradient(130% 120% at 100% 0%, color-mix(in srgb, var(--accent) 55%, var(--brand)), var(--brand) 62%); box-shadow: var(--sh-2); animation: cardIn2 var(--t3) var(--ease) both; }
@keyframes cardIn2 { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.18), transparent 40%); pointer-events: none; }
.mc-top { display: flex; align-items: center; gap: 10px; }
.mc-top .mark { background: rgba(255,255,255,.16); box-shadow: none; }
.mc-top span { font: 600 17px var(--font-d); }
.mc-top em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 99px; }
.mc-mid { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; gap: 12px; }
.mc-mid small { display: block; font-size: 12.5px; opacity: .75; }
.mc-mid b { font: 700 40px/1 var(--font-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.qr { width: 104px; height: 104px; border-radius: 12px; background: #fff; padding: 8px; flex: none; }
.qr svg { width: 100%; height: 100%; }
.qr path, .qr rect[fill="black"] { fill: #111; }
.mc-bot { display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; opacity: .9; }
.mc-bot .code { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.tier { padding: 14px 16px; }
.tier-row { display: flex; align-items: baseline; justify-content: space-between; }
.tier-row b { font-size: 17px; font-weight: 600; }
.tier-row em { font-style: normal; color: var(--brand); font-size: 14px; font-weight: 500; }
.bar { height: 6px; border-radius: 9px; background: var(--fill); margin: 10px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p); background: var(--accent); border-radius: 9px; animation: grow 600ms var(--ease) both; }
@keyframes grow { from { width: 0; } }
.tier small { color: var(--label-2); font-size: 13.5px; }
.passes { display: grid; gap: 10px; padding: 0 16px; }
.pass { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 15px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.pass::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.pass.welcome::before { background: #E8A33A; } .pass.reward::before { background: #D86B8E; }
.pass-t small { display: block; font-size: 12px; color: var(--label-2); text-transform: uppercase; letter-spacing: .03em; }
.pass-t b { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; }
.pass-t > span { display: block; color: var(--label-2); font-size: 13.5px; margin-top: 2px; }
.pass-e { color: var(--label-3); font-size: 12.5px; white-space: nowrap; }
.dots { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--fill); }
.dots i.on { background: var(--accent); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 0 16px 4px; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 16px; }
.reward { flex: none; width: 150px; background: var(--card); border-radius: 16px; padding: 10px; box-shadow: var(--sh-1); scroll-snap-align: start; display: flex; flex-direction: column; }
.reward .vis { height: 110px; border-radius: 12px; }
.reward b { display: block; font-size: 14.5px; font-weight: 600; margin-top: 8px; line-height: 1.25; }
.reward small { color: var(--label-2); font-size: 13px; margin: 2px 0 10px; }
.reward .btn { margin-top: auto; width: 100%; }
.offer { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 16px; }
.logrow { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; font-size: 15px; }
.logrow small { display: block; color: var(--label-3); font-size: 12.5px; }
.logrow b { font-weight: 600; font-variant-numeric: tabular-nums; }
.logrow b.pos { color: var(--ok); } .logrow b.neg { color: var(--label-2); }
.emptyrow { margin: 0; padding: 14px 16px; color: var(--label-2); font-size: 14.5px; }

/* ---------------- Commandes ---------------- */
.live { width: 100%; background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh-1); text-align: left; display: block; }
.live-h { display: flex; justify-content: space-between; align-items: center; }
.live-h b { font-size: 17px; font-weight: 600; }
.st { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--fill-2); }
.st.new { background: #FFF3DC; color: #8A5300; } .st.preparing { background: #E4EEFD; color: #1F5BBF; } .st.ready, .st.delivering { background: #E2F4E7; color: #1E7A3F; }
.live small { display: block; color: var(--label-2); font-size: 13.5px; margin-top: 10px; }
.live-eta { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--label); }
.live-eta + small { margin-top: 4px; }
.steps { display: flex; gap: 5px; margin-top: 12px; }
.steps i { flex: 1; height: 4px; border-radius: 9px; background: var(--fill); position: relative; overflow: hidden; }
.steps i.done { background: var(--accent); }
.steps i.now::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: load 1.2s var(--ease-sym) infinite alternate; }
@keyframes load { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
.steps.big { margin: 22px 36px 0; }
.steps.big i { height: 5px; }
.steps-l { display: flex; justify-content: space-between; margin: 8px 36px 0; font-size: 12px; color: var(--label-2); }
.hrow { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 0; }
.hr-main { flex: 1; min-width: 0; padding: 12px 0 12px 16px; display: block; }
.hr-main b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-main small { display: block; color: var(--label-2); font-size: 13px; margin-top: 2px; }
.hrow .btn.sm { width: 36px; padding: 0; }

/* ---------------- Compte ---------------- */
.profile { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh-1); }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 22px var(--font-d); flex: none; }
.profile b { display: block; font-size: 18px; font-weight: 600; }
.profile small { color: var(--label-2); font-size: 14px; }

/* ---------------- Vue poussée : suivi ---------------- */
.push { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform var(--t3) var(--ease); max-width: 600px; margin: 0 auto; box-shadow: -10px 0 30px rgba(0,0,0,.08); }
.push.show { transform: none; }
body.pushed .view { transform: translateX(-24%); opacity: .6; }
.view { transition: transform var(--t3) var(--ease), opacity var(--t3) var(--ease); }
.pnav { position: sticky; top: 0; z-index: 5; height: calc(48px + var(--safe-t)); padding: var(--safe-t) 8px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); }
.back { display: flex; align-items: center; gap: 2px; color: var(--brand); font-size: 17px; height: 44px; padding-right: 10px; }
.back svg { width: 24px; height: 24px; }
.pnav-t { font-weight: 600; font-size: 17px; }
.t-hero { text-align: center; padding: 16px 20px 6px; }
.t-ref { display: inline-block; font-size: 13px; font-weight: 600; color: var(--label-2); background: var(--fill-2); padding: 5px 11px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.t-hero h2 { margin: 14px 0 0; font: 700 32px/1.08 var(--font-d); letter-spacing: -.03em; }
.t-hero p { margin: 8px auto 0; max-width: 30ch; color: var(--label-2); font-size: 16px; }
.t-art { width: 200px; height: 180px; margin: 10px auto 0; }
.t-art svg { width: 100%; height: 100%; }
.whisk { transform-origin: 110px 30px; animation: whisk .45s var(--ease-sym) infinite alternate; }
@keyframes whisk { from { transform: rotate(-12deg) translateX(-6px); } to { transform: rotate(12deg) translateX(6px); } }
.t-hero.ok h2 { color: var(--brand); }
.tick { stroke-dasharray: 80; stroke-dashoffset: 80; animation: tick 420ms 120ms var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.pulse { transform-origin: center; animation: pulseR 1.8s var(--ease-sym) infinite; }
@keyframes pulseR { 50% { transform: scale(1.08); opacity: .28; } }
.ride { animation: ride .5s var(--ease-sym) infinite alternate; }
@keyframes ride { to { transform: translateY(-3px); } }
.leaf { position: fixed; top: -30px; z-index: 80; width: 20px; height: 20px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

/* Paiement de démonstration */
.amount { font: 700 44px var(--font-d); letter-spacing: -.03em; margin: 4px 0 6px; }
.demo-note { display: inline-block; font-size: 12.5px; font-weight: 600; color: #8A5300; background: #FFF3DC; padding: 5px 10px; border-radius: 99px; }
.paylogo { width: 52px; height: 32px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: #111; flex: none; }
.paylogo.card { background: linear-gradient(135deg, #1a1f71, #3949ab); }

/* Toast */
.toast { position: fixed; left: 50%; top: calc(10px + var(--safe-t)); z-index: 90; transform: translate(-50%, -140%); opacity: 0; background: rgba(30, 30, 32, .92); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14.5px; box-shadow: var(--sh-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: transform var(--t3) var(--ease), opacity var(--t2) var(--ease); max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast b { font-weight: 600; }

/* ---------------- Cartes (Leaflet) ---------------- */
.map { position: relative; height: 180px; background: color-mix(in oklab, var(--accent) 10%, #FBFAF7); overflow: hidden; isolation: isolate; z-index: 0; }
.map.sm { height: 150px; }
.map.top { height: 220px; }
.map.off { display: none; }
.map .leaflet-tile-pane { filter: grayscale(.9) brightness(1.05) contrast(.92); }
.map.leaflet-container { font-family: var(--font); background: color-mix(in oklab, var(--accent) 8%, #FBFAF7); }
.map .leaflet-control-attribution { font-size: 9px; background: rgba(255,255,255,.7); border-radius: 6px 0 0 0; padding: 1px 6px; }
.map .leaflet-control-attribution a { color: var(--label-2); }
.wvo-pin { background: none; border: 0; }
.pin { position: relative; width: 52px; height: 52px; display: grid; place-items: center; }
.pin span { position: relative; z-index: 2; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(0,0,0,.45), 0 0 0 3px #fff; overflow: hidden; }
.pin span svg { width: 23px; height: 23px; }
.pin span img { width: 100%; height: 100%; object-fit: cover; }
.pin i { position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--accent) 50%, transparent); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.me { width: 20px; height: 20px; border-radius: 50%; background: #0A84FF; box-shadow: 0 0 0 4px #fff, 0 6px 12px rgba(0,0,0,.25); }
.me.bad { background: var(--bad); }

/* Accessibilité : mouvement réduit, transparence réduite */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .sheet, .push, .veil { transition: opacity 160ms linear !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav::before, .tabbar, .cats, .sh-foot, .pnav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ================================================================== */
/* Mode intégré au thème du site (html.wvo-embed)                      */
/* ================================================================== */
.wvo-embed .cats { top: var(--wvo-stick, 64px); margin-top: 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.wvo-embed .sec { scroll-margin-top: calc(var(--wvo-stick, 64px) + 104px); }
.wvo-app .pad { padding: 0; }
.wvo-app .cats-in, .wvo-app .filters { padding-left: 0; padding-right: 0; }
.wvo-app .sec-h { padding-left: 0; padding-right: 0; }
.wvo-app .pgrid { padding: 0; }
.wvo-app .plist { margin: 0; }
.wvo-app .boot { min-height: 240px; }
@media (min-width: 760px) {
  .wvo-app .pgrid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
  .wvo-app .tile { transition: transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease); }
  .wvo-app .tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
  .wvo-app .tile:hover .vis svg { transform: scale(1.04); }
  .wvo-app .vis svg { transition: transform var(--t3) var(--ease); }
  .wvo-app .tile-b { padding: 14px 16px 16px; }
  .wvo-app .tile-b b { font-size: 16.5px; }
  .wvo-app .sec-h h2 { font-size: 28px; }
  .wvo-app .modes, .wvo-app .seg { max-width: 460px; }
  .wvo-app .teaser, .wvo-app .reorder, .wvo-app .tablechip, .wvo-app .note { max-width: 560px; }
}
.wvo-embed body.pushed .view { transform: none; opacity: 1; }
.wvo-embed .cartfab { bottom: calc(16px + var(--safe-b)); }
.panel-view .nav { display: none; }
.panel-view .lt { padding-top: 30px; }
.panel-view .tabspace { height: 28px; }
.panel-view .pad { padding: 0 20px; }
.panel-view .empty .btn { display: inline-flex; }

@media (min-width: 860px) {
  /* Sur ordinateur : tiroir latéral, comme une app native */
  .wvo-embed .sheet { left: auto; right: 0; top: 0; bottom: 0; width: 460px; max-height: none; height: 100%; border-radius: 0; transform: translateX(100%); box-shadow: -30px 0 80px -30px rgba(0,0,0,.35); }
  .wvo-embed .sheet.show { transform: none; }
  .wvo-embed .sheet .grab { display: none; }
  .wvo-embed .sheet.small { top: 50%; bottom: auto; left: 50%; right: auto; height: auto; width: 420px; border-radius: 22px; transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform var(--t3) var(--ease), opacity var(--t2) var(--ease); }
  .wvo-embed .sheet.small.show { transform: translate(-50%, -50%); opacity: 1; }
  .wvo-embed .sheet .sh-foot { padding-bottom: 16px; }
  .wvo-embed .cartfab { left: auto; right: 28px; bottom: 28px; width: auto; padding: 0; transform: translateY(24px); }
  .wvo-embed .cartfab.show { transform: none; }
  .wvo-embed .cartfab button { width: auto; min-width: 320px; }
  .wvo-embed .push { inset: 0 0 0 auto; width: 520px; max-width: none; margin: 0; box-shadow: -30px 0 80px -30px rgba(0,0,0,.35); }
  .wvo-embed .toast { top: calc(var(--wvo-stick, 64px) + 12px); }
}

/* Choix de la table en un appui */
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 4px 16px 0; }
.sh-head + .tgrid { padding: 4px 20px 0; }
.tgrid button { height: 60px; border-radius: 16px; background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 .5px var(--sep); font: 600 22px var(--font-d); color: var(--label); text-align: center; font-variant-numeric: tabular-nums; transition: transform var(--t1) var(--ease), background-color var(--t2) var(--ease), color var(--t2) var(--ease); }
.tgrid button:active { transform: scale(.94); }
.tgrid.bad button { box-shadow: inset 0 0 0 1.5px var(--bad); }
.sp12 { height: 12px; }
.tgrid button.on { background: var(--cta, var(--brand)); color: #fff; box-shadow: none; }
@media (min-width: 420px) { .tgrid { grid-template-columns: repeat(5, 1fr); } }

/* Stock bas */
.lowtag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: #FFF0DB; color: #9A5A00; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: 0; vertical-align: 1px; }
.prow-p .lowtag { margin-left: 0; margin-right: 6px; }
.pnum { white-space: nowrap; }
.prow-p { flex-wrap: wrap; row-gap: 4px; }

/* Passage automatique vers la commande en cours */
.hopbar { position: sticky; margin: 0 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(29, 29, 31, .92); color: #fff; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 14px 40px -12px rgba(0,0,0,.45); transform: translateY(20px); opacity: 0; transition: transform var(--t3) var(--ease), opacity var(--t3) var(--ease); }
.hopbar.show { transform: none; opacity: 1; }
.hopbar span { flex: 1; font-size: 14.5px; line-height: 1.35; } .hopbar i { font-style: normal; font-variant-numeric: tabular-nums; }
.hopbar [data-hop] { height: 38px; padding: 0 16px; border-radius: 12px; background: var(--cta, var(--accent)); color: #fff; font-weight: 700; font-size: 15px; }
.hopbar .x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; }
.hopbar .x svg { width: 16px; height: 16px; }
.toast .tlink { margin-left: 8px; padding: 4px 12px; border-radius: 99px; background: var(--cta, var(--accent)); color: #fff; font-weight: 700; font-size: 13.5px; pointer-events: auto; }
.toast.show { pointer-events: auto; }
.pad.col2 { display: grid; gap: 10px; }
.paylogo.counter { background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.paylogo.counter svg { width: 20px; height: 20px; }
.pad.tomenu .fine { margin: 0 0 10px; }
.tgrid .tbar { grid-column: 1 / -1; height: 64px; display: flex; align-items: center; justify-content: center; gap: 12px; font: 600 17px var(--font); }
.tgrid .tbar svg { width: 24px; height: 24px; flex: none; }
.tgrid .tbar span { text-align: left; line-height: 1.2; } .tgrid .tbar small { display: block; font-size: 12.5px; font-weight: 500; color: var(--label-2); }
.tgrid .tbar.on small { color: rgba(255,255,255,.8); }
.tablechip .tc-n svg { width: 22px; height: 22px; }
