:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #5B6473;
  --bg: #FFFFFF;
  --canvas: #F3F6F4;
  --line: #E4E9E6;

  --green: #00875A;
  --green-2: #006B47;
  --green-50: #E2F8EE;
  --green-100: #C2F0DA;
  --orange: #FF7A00;
  --orange-2: #F06A00;
  --orange-ink: #B54708;
  --orange-50: #FFEEDB;
  --blue: #1D6FEB;
  --blue-ink: #1849A9;
  --blue-50: #E0ECFF;
  --yellow-ink: #8A5A00;
  --yellow-50: #FFF4CC;
  --red: #D92D20;
  --red-ink: #912018;
  --red-50: #FEE4E2;
  --lilac-50: #EDE7FF;
  --pink-50: #FFE2EA;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --shadow: 0 8px 24px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 30px 60px -24px rgba(16, 24, 40, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --app-w: 720px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(80px + var(--safe-b));
}
body.no-tabs { padding-bottom: 0; }
body.no-tabs .tabbar, body.no-tabs .appbar-right, body.no-tabs .fab { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* App bar */
.appbar { position: sticky; top: 0; z-index: 30; background: rgba(243, 246, 244, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: var(--safe-t); }
.appbar-in { max-width: var(--app-w); margin: 0 auto; height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--green); color: #fff; display: grid; place-items: center; }
.logo-mark .icon { width: 18px; height: 18px; }
img.logo-mark { background: none; }
.appbar-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.demo-pill { font-size: 12px; font-weight: 700; color: var(--orange-ink); background: var(--orange-50); padding: 6px 10px; border-radius: 999px; }

main#view { max-width: var(--app-w); margin: 0 auto; padding: 4px 16px 96px; outline: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 15.5px; transition: transform .15s var(--ease), background-color .2s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-cta { background: var(--orange); color: var(--ink); }
.btn-cta:hover { background: var(--orange-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-soft:hover { background: #F8FAF9; }
.btn-danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px #FDA29B; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 0; }

/* Cards */
.card { background: #fff; border-radius: var(--r-lg); padding: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-head h2 { font-size: 19px; font-weight: 800; }
.section-head a { font-weight: 700; font-size: 14px; color: var(--green); padding: 10px 0; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 16px; }
.page-title h1 { font-size: 28px; font-weight: 800; }
.page-title p { color: var(--muted); font-size: 14px; }

/* Home */
.hello { margin: 10px 0 18px; }
.hello p { font-size: 14px; text-transform: capitalize; }
.hello h1 { font-size: 28px; font-weight: 800; margin-top: 2px; }
.alert-card { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer; background: var(--red-50); color: var(--red-ink); border: 1.5px solid #FDA29B; border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.alert-card .icon { color: var(--red); margin-top: 1px; }
.alert-card b { display: block; color: var(--red-ink); }
.alert-card span { font-size: 14px; }
.alert-card .go { margin-left: auto; align-self: center; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { border-radius: var(--r); padding: 16px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kpi .k-top .icon { width: 18px; height: 18px; }
.kpi strong { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.k-blue { background: var(--blue-50); } .k-blue .icon { color: var(--blue); }
.k-green { background: var(--green-50); } .k-green .icon { color: var(--green); }
.k-orange { background: var(--orange-50); } .k-orange .icon { color: var(--orange-ink); }
.k-yellow { background: var(--yellow-50); } .k-yellow .icon { color: var(--yellow-ink); }

.share-card { margin-top: 14px; border-radius: var(--r-lg); padding: 18px; color: #fff; background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%); position: relative; overflow: hidden; }
.share-card::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.share-card h2 { font-size: 18px; font-weight: 800; }
.share-card p { font-size: 14px; color: #D1F5E4; margin-top: 4px; }
.link-box { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .14); font-weight: 600; font-size: 14.5px; word-break: break-all; position: relative; z-index: 1; }
.share-card .btn-row { position: relative; z-index: 1; }
.share-card .btn-soft { box-shadow: none; }
.share-card .btn-ghost-w { background: rgba(255, 255, 255, .16); color: #fff; }

.recap-cta { margin-top: 14px; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--r-lg); padding: 16px 18px; }
.recap-cta .ri { width: 48px; height: 48px; border-radius: 15px; background: var(--yellow-50); color: var(--yellow-ink); display: grid; place-items: center; flex-shrink: 0; }
.recap-cta b { display: block; }
.recap-cta small { color: var(--muted); font-size: 13.5px; }
.recap-cta .go { margin-left: auto; color: var(--muted); }

/* Lists */
.list { display: grid; gap: 8px; }
.order-row { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 0; border-radius: var(--r); padding: 12px 14px; text-align: left; cursor: pointer; transition: transform .3s var(--ease), box-shadow .35s var(--ease); }
.order-row:active { transform: scale(.99); }
.av { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--ink); }
.or-main { min-width: 0; }
.or-main b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-main b small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.or-main > small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.or-side b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zone-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 4px 6px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; stroke-width: 3; }
.b-green { background: var(--green-50); color: var(--green-2); }
.b-orange { background: var(--orange-50); color: var(--orange-ink); }
.b-red { background: var(--red-50); color: var(--red-ink); }
.b-blue { background: var(--blue-50); color: var(--blue-ink); }
.b-yellow { background: var(--yellow-50); color: var(--yellow-ink); }
.b-grey { background: #EEF1F3; color: var(--ink-2); }

.empty { text-align: center; padding: 40px 20px; background: #fff; border-radius: var(--r-lg); }
.empty .ei { width: 64px; height: 64px; border-radius: 20px; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .ei .icon { width: 28px; height: 28px; }
.empty h3 { font-size: 18px; font-weight: 800; }
.empty p { color: var(--muted); margin: 6px auto 18px; max-width: 320px; }

/* Filters + search */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip-btn .n { font-size: 12px; font-weight: 700; background: var(--canvas); padding: 1px 7px; border-radius: 999px; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip-btn[aria-pressed="true"] .n { background: rgba(255, 255, 255, .2); }
.chip-btn.danger .n { background: var(--red-50); color: var(--red-ink); }
.search { position: relative; margin-bottom: 12px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 48px; border: 0; border-radius: 999px; padding: 0 16px 0 44px; font: inherit; font-size: 16px; background: #fff; }
.search input:focus { outline: 3px solid var(--blue); outline-offset: 0; }

/* Products */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { background: #fff; border-radius: var(--r); padding: 8px 8px 12px; display: flex; flex-direction: column; position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) {
  .pcard:hover, .order-row:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(16, 24, 40, .35); }
}
.pcard:active { transform: scale(.985); }
.pcard-open { border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; display: block; width: 100%; }
.pcard .ph { aspect-ratio: 1 / .82; border-radius: 14px; overflow: hidden; display: grid; place-items: center; margin-bottom: 10px; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .icon { width: 40px; height: 40px; stroke-width: 1.5; }
.pcard h3 { font-size: 14.5px; font-weight: 700; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .price { font-weight: 800; padding: 2px 4px 0; font-variant-numeric: tabular-nums; }
.pcard .meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 4px 0; font-size: 12.5px; color: var(--muted); }
.pcard.off .ph, .pcard.off h3, .pcard.off .price { opacity: .5; }
.switch { position: relative; width: 52px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; flex-shrink: 0; }
.switch::before { content: ""; position: absolute; left: 4px; top: 9px; width: 44px; height: 26px; border-radius: 999px; background: #CDD3D8; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; left: 7px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch[aria-checked="true"]::before { background: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

/* FAB */
.fab { position: fixed; z-index: 25; right: max(16px, calc((100vw - var(--app-w)) / 2 + 16px)); bottom: calc(88px + var(--safe-b)); min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; cursor: pointer; background: var(--orange); color: var(--ink); font-weight: 800; font-size: 15.5px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 12px 28px -10px rgba(255, 122, 0, .7); }
.fab .icon { stroke-width: 2.6; }
.fab:active { transform: scale(.97); }

/* Tab bar */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px max(8px, calc((100vw - var(--app-w)) / 2)) calc(6px + var(--safe-b)); display: grid; grid-template-columns: repeat(4, 1fr); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; font-size: 11.5px; font-weight: 600; color: var(--muted); border-radius: 14px; }
.tab .icon { width: 24px; height: 24px; }
.tab.active { color: var(--green); }
.tab.active .icon { stroke-width: 2.4; }
.tab .count[hidden] { display: none; }
.tab .count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.tab.dock-extra { display: none; }

/* Dock à loupe (ordinateur, souris) : activé par dock.js, qui agrandit chaque icône selon la distance du curseur.
   Sur téléphone et tablette tactile, la barre d'onglets ci-dessus reste inchangée. */
html.dock-on .tabbar {
  left: 50%; right: auto; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 12px; height: 68px; padding: 0 16px 9px; overflow: visible;
  border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 50px -22px rgba(16, 24, 40, .4);
}
html.dock-on .tab.dock-extra { display: flex; }
html.dock-on .tab {
  flex: 0 0 auto; width: 50px; height: 50px; min-height: 0; gap: 0; border-radius: 50%; padding: 0;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: 0 8px 18px -10px rgba(16, 24, 40, .45);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
html.dock-on .tab .icon { width: 44%; height: 44%; }
html.dock-on .tab.active { color: var(--green); background: var(--green-50); border-color: rgba(0, 135, 90, .35); }
/* Point sous l'onglet actif, comme une application ouverte */
html.dock-on .tab.active::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--green); }
html.dock-on .tab .count { top: -3px; left: auto; right: -3px; }
/* Infobulle : apparaît au survol ou au clavier, en montant de 6 px */
html.dock-on .tab-label {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  white-space: nowrap; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 600; box-shadow: 0 6px 14px -8px rgba(16, 24, 40, .35);
  transition: opacity .2s ease, transform .2s var(--ease);
}
html.dock-on .tab:hover .tab-label, html.dock-on .tab:focus-visible .tab-label { opacity: 1; transform: translate(-50%, 0); }
html.dock-on .tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
html.dock-on main#view { padding-bottom: 120px; }
html.dock-on .fab { bottom: calc(104px + var(--safe-b)); }

/* Forms */
.form { display: grid; gap: 14px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; border: 1px solid #D0D5DD; border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 88px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6473' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 135, 90, .16); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field .err { font-size: 13px; font-weight: 600; color: var(--red); margin-top: 6px; }
.field .err:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-section { background: #fff; border-radius: var(--r-lg); padding: 18px; display: grid; gap: 14px; }
.form-section h2 { font-size: 17px; font-weight: 800; }
.form-section > p { color: var(--muted); font-size: 14px; margin-top: -8px; }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.opt span { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 14px; font-size: 14px; font-weight: 600; transition: border-color .2s, background-color .2s; }
.opt span i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.opt input:checked + span { border-color: var(--green); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green); }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.zone-row { display: grid; grid-template-columns: 1fr 112px 44px; gap: 8px; align-items: center; }
.zone-row input { min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; border: 1px solid #D0D5DD; border-radius: 12px; width: 100%; }
.zone-row input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 135, 90, .16); }
.zone-row .icon-btn { box-shadow: none; background: var(--canvas); }

.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-pick .ph { width: 88px; height: 88px; border-radius: 18px; background: var(--canvas); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; color: var(--muted); }
.photo-pick .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick label.btn { cursor: pointer; }
.photo-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-pick input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }

.qty-list { display: grid; gap: 8px; }
.qty-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 14px; }
.qty-row b { display: block; font-size: 14.5px; }
.qty-row small { color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--canvas); border-radius: 999px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }
.stepper button .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper.on { background: var(--green); color: #fff; }
.stepper.on button { background: rgba(255, 255, 255, .2); color: #fff; }

/* Sheet */
dialog.sheet { border: 0; padding: 0; width: min(560px, 100%); max-height: 92dvh; border-radius: 26px; box-shadow: var(--shadow-lg); color: var(--ink); background: #fff; overflow: hidden; }
dialog.sheet::backdrop { background: rgba(16, 24, 40, .5); }
.sheet-in { display: flex; flex-direction: column; max-height: 92dvh; }
.sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 8px; }
.sheet-head h2 { font-size: 20px; font-weight: 800; }
.sheet-head .icon-btn { background: var(--canvas); box-shadow: none; flex-shrink: 0; }
.sheet-body { padding: 8px 20px 20px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; }
.sheet-foot { padding: 12px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.sheet-foot:empty { display: none; }

.info-block { background: var(--canvas); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; }
.info-block h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.info-block .big { font-size: 17px; font-weight: 800; }
.contact-row { display: flex; gap: 8px; margin-top: 10px; }
.contact-row .btn { flex: 1; min-height: 46px; }
.lines { display: grid; gap: 6px; font-size: 15px; }
.lines div { display: flex; justify-content: space-between; gap: 10px; }
.lines .tot { border-top: 1px solid #DCE1DE; padding-top: 8px; margin-top: 2px; font-weight: 800; font-size: 16px; }
.warn-box { display: flex; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--red-50); color: var(--red-ink); font-size: 14.5px; }
.warn-box .icon { color: var(--red); margin-top: 1px; }
.note-box { display: flex; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--blue-50); color: var(--blue-ink); font-size: 14px; }
.note-box .icon { color: var(--blue); margin-top: 1px; }
.steps-line { display: flex; gap: 6px; }
.steps-line span { flex: 1; height: 6px; border-radius: 999px; background: #DCE1DE; transition: background-color .45s var(--ease); }
.steps-line span.on { background: var(--green); }

/* Recap */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg button { min-height: 44px; border: 0; background: transparent; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.wa-preview { background: #EFE9E1; border-radius: var(--r-lg); padding: 16px 12px; }
.bubble { background: #D9FDD3; border-radius: 4px 16px 16px 16px; padding: 12px 14px 8px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); max-width: 100%; overflow-wrap: anywhere; }
.bubble time { display: block; text-align: right; font-size: 11px; color: #667085; margin-top: 4px; }

/* Welcome */
.welcome { text-align: center; padding: 8px 0 40px; position: relative; }
.wordmark { font-family: "Anton", Impact, sans-serif; font-size: clamp(88px, 26vw, 180px); line-height: .9; background: linear-gradient(180deg, rgba(0, 135, 90, .28), rgba(0, 135, 90, .03) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-bottom: -18px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--green-2); background: var(--green-50); padding: 6px 12px; border-radius: 999px; }
.kicker .icon { width: 15px; height: 15px; }
.welcome h1 { font-size: clamp(28px, 7vw, 38px); font-weight: 800; margin: 14px auto 10px; max-width: 480px; }
.welcome > p { max-width: 420px; margin: 0 auto 22px; }
.welcome .card { text-align: left; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* Numéros de produits et partage */
.pcard .ph { position: relative; }
.pnum { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pcard .stock { font-size: 12.5px; color: var(--muted); padding: 2px 4px 0; }
.btn-xs { min-height: 36px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-xs .icon { width: 15px; height: 15px; }
.menu-head { display: flex; gap: 14px; align-items: center; }
.menu-head .ph { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; }
.menu-head .ph img { width: 100%; height: 100%; object-fit: cover; }
.menu-head b { display: block; font-size: 17px; }
.menu-head span { color: var(--muted); font-size: 14px; }
.link-text { font-weight: 600; word-break: break-all; }
.archived { margin-top: 18px; background: #fff; border-radius: var(--r); padding: 4px 16px; }
.archived summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }
.arch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }


/* Vitrine : logo, couverture, vidéos */
.media-row { display: flex; gap: 12px; flex-wrap: wrap; }
.media-pick { display: grid; gap: 8px; justify-items: start; }
.media-pick.grow { flex: 1; min-width: 180px; }
.logo-prev { width: 84px; height: 84px; border-radius: 22px; background: var(--canvas); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.cover-prev { width: 100%; aspect-ratio: 16 / 7; border-radius: 16px; background: var(--canvas); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.logo-prev img, .cover-prev img { width: 100%; height: 100%; object-fit: cover; }
.media-pick label { cursor: pointer; }
.sub-h { font-size: 15px; font-weight: 800; margin: 4px 0 10px; }
.video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
.video-item { display: grid; gap: 6px; }
.video-item video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #101828; }
label.btn { cursor: pointer; }

/* Zones de livraison et points de retrait */
.zone-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.zone-top { display: grid; grid-template-columns: minmax(0, 1fr) 128px 44px; gap: 8px; align-items: center; }
.zone-card input, .zone-card select { min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; border: 1px solid #D0D5DD; border-radius: 12px; width: 100%; background: #fff; }
.zone-card .icon-btn { box-shadow: none; background: var(--canvas); }
.zone-card[data-kind="delivery"] .if-pickup, .zone-card[data-kind="pickup"] .if-delivery { display: none; }

/* Plusieurs photos par produit */
.label-like { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pp-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--canvas); }
.pp-item.main { box-shadow: 0 0 0 2px var(--green); }
.pp-item img { width: 100%; height: 100%; object-fit: cover; }
.pp-tag, .pp-main { position: absolute; left: 4px; bottom: 4px; font-size: 10.5px; font-weight: 700; padding: 3px 6px; border-radius: 999px; border: 0; }
.pp-tag { background: var(--green); color: #fff; }
.pp-main { background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; min-height: 24px; }
.pp-del { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(16, 24, 40, .7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pp-del .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.pp-add { aspect-ratio: 1; border-radius: 14px; border: 2px dashed #CDD3D8; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; }

/* Lives */
.live-card { width: 100%; text-align: left; border: 0; cursor: pointer; background: #fff; border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; transition: transform .3s var(--ease), box-shadow .35s var(--ease); }
.live-card.live { box-shadow: inset 0 0 0 2px var(--red); }
.live-card b { font-size: 16px; }
.live-card .lc-meta { font-size: 13.5px; color: var(--muted); }
@media (hover: hover) { .live-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(16, 24, 40, .35); } }
.live-card:active { transform: scale(.985); }
.lc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.btn .live-dot { background: #fff; }
.live-cta .ri { background: var(--red-50); color: var(--red); }
.live-cta.on { box-shadow: inset 0 0 0 2px var(--red); }
.pick-list { display: grid; gap: 6px; max-height: 46dvh; overflow-y: auto; overscroll-behavior: contain; }
.pick-row { display: grid; grid-template-columns: 30px auto 1fr; gap: 10px; align-items: center; text-align: left; width: 100%; min-height: 52px; padding: 8px 12px; border: 1px solid #D0D5DD; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .25s ease, background-color .25s ease; }
.pick-row.on { border-color: var(--green); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green); }
.pick-row .rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--canvas); color: var(--muted); }
.pick-row.on .rank { background: var(--green); color: #fff; }
.pnum-s { background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pick-name { display: grid; font-weight: 700; font-size: 14.5px; min-width: 0; }
.pick-name small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.cheat { display: grid; gap: 6px; }
.cheat-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--canvas); }
.cheat-row.off { opacity: .5; }
.cheat-n { font-size: 24px; font-weight: 800; letter-spacing: -.02em; background: var(--ink); color: #fff; border-radius: 12px; padding: 4px 10px; font-variant-numeric: tabular-nums; }
.cheat-name { display: grid; min-width: 0; }
.cheat-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cheat-name small { color: var(--muted); font-size: 12.5px; }
.cheat-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.live-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.live-kpis div { background: var(--canvas); border-radius: 14px; padding: 10px; display: grid; }
.live-kpis strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.live-kpis span { font-size: 12.5px; color: var(--muted); }
.check-line { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 10px 12px; border-radius: 14px; background: var(--red-50); color: var(--red-ink); font-weight: 600; font-size: 14px; }
.check-line input { width: 20px; height: 20px; accent-color: var(--red); }
.b-red { background: var(--red-50); color: var(--red-ink); }

/* Paiement Wave Business */
.wave-box h2 { display: flex; align-items: center; gap: 8px; }
.wave-box h2 .icon { color: #1DC8FF; }
.wave-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.wave-steps a { color: var(--green); font-weight: 700; }
.ok-box { background: var(--green-50); color: var(--green-2); }
.wave-more { background: var(--canvas); border-radius: 14px; padding: 4px 14px; }
.wave-more summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }
.wave-more[open] { display: grid; gap: 8px; padding-bottom: 12px; }
.wave-more p { font-size: 14px; color: var(--muted); }
.wave-box .err { color: var(--red); font-weight: 600; }
.wz-progress { font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; }
.wz-progress b { color: var(--green-2); }
.wz-bar { height: 6px; border-radius: 999px; background: #DCE1DE; overflow: hidden; }
.wz-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .45s var(--ease); }
.wz-title { font-size: 18px; font-weight: 800; outline: none; }
.wz-lead { font-size: 15px; }
.wz-choices { display: grid; gap: 8px; }
.wz-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.wz-list code, .wz-safe code { background: var(--canvas); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.wz-paste { min-height: 58px; font-size: 16.5px; }
.wz-safe { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); background: var(--canvas); border-radius: 14px; padding: 12px 14px; }
.wz-safe .icon { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.wz-done { display: flex; gap: 12px; align-items: flex-start; background: var(--green-50); color: var(--green-2); border-radius: var(--r); padding: 16px; }
.wz-done > .icon { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 3; flex-shrink: 0; }
.wz-done b { display: block; font-size: 18px; }
.wz-done span { font-size: 14.5px; color: var(--ink-2); }

/* Prévenir le client après chaque étape */
.notify-box { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--green-50); color: var(--green-2); }
.notify-box > .icon { margin-top: 2px; }
.notify-box div { display: grid; gap: 4px; justify-items: start; }
.notify-box span { font-size: 14px; color: var(--ink-2); }
.notify-box .btn { margin-top: 6px; }

@media (max-width: 640px) {
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 26px 26px 0 0; }
  dialog.sheet[open] { animation: sheet-up .38s var(--ease-sheet); }
  dialog.sheet.closing { animation: sheet-down .24s cubic-bezier(.4, 0, 1, 1) forwards; }
  .sheet-head::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: #D0D5DD; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@media (min-width: 600px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 360px) {
  .opts { grid-template-columns: 1fr; }
  .zone-row { grid-template-columns: 1fr 92px 44px; }
}
/* Animations courtes (150–300 ms) */
.chip-btn, .stepper button, .switch { transition: transform .2s var(--ease), background-color .25s ease, color .25s ease; }
.chip-btn:active, .stepper button:active, .icon-btn:active { transform: scale(.94); }
@keyframes bump { 45% { transform: scale(1.15); } }
.bump { animation: bump .35s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
main#view.enter { animation: view-in .38s var(--ease); }
@keyframes sheet-in-d { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes sheet-out-d { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
dialog.sheet[open] { animation: sheet-in-d .36s var(--ease-sheet); }
dialog.sheet[open]::backdrop { animation: fade-in .3s ease; }
dialog.sheet.closing { animation: sheet-out-d .24s cubic-bezier(.4, 0, 1, 1) forwards; }
dialog.sheet.closing::backdrop { animation: fade-out .24s ease forwards; }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } }
.err:not(:empty) { animation: err-in .3s var(--ease); }
.field input.is-valid { border-color: var(--green); padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300875A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.spinner.small { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: currentColor; display: inline-block; animation: spin .8s linear infinite; flex-shrink: 0; }
.btn-soft .spinner.small, .btn-ghost-w .spinner.small { border-color: rgba(16, 24, 40, .15); border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-done { color: var(--green-2); background: var(--green-50); box-shadow: inset 0 0 0 1.5px var(--green); }
@media (max-width: 640px) {
  dialog.sheet[open] { animation: sheet-up .38s var(--ease-sheet); }
  dialog.sheet.closing { animation: sheet-down .24s cubic-bezier(.4, 0, 1, 1) forwards; }
}

/* Squelettes de chargement */
@keyframes shimmer { to { background-position: -200% 0; } }
.skel { background: linear-gradient(90deg, #E7ECE9 25%, #F3F6F4 50%, #E7ECE9 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 12px; }
.skel.line { height: 14px; margin-top: 6px; }
.skel.line.short { width: 55%; }
.skel-row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: #fff; border-radius: var(--r); padding: 12px 14px; }
.skel-row .av { width: 44px; height: 44px; border-radius: 14px; }
.skel-card { background: #fff; border-radius: var(--r); padding: 8px 8px 12px; display: grid; gap: 4px; }
.skel-card .ph { aspect-ratio: 1 / .82; border-radius: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .skel { background: #E7ECE9; }
}

/* Équipe (offre Business) */
.team-row { display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.team-row:first-child { border-top: 0; }
.team-row .av .icon { width: 20px; height: 20px; color: var(--muted); }
.team-row.pending .av { background: #EEF1F3; }
.tr-main { display: grid; gap: 3px; min-width: 0; }
.tr-main b { font-size: 15px; }
.tr-main b small, .tr-main > small { font-weight: 500; color: var(--muted); font-size: 13px; }
.tr-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tr-acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }

/* Options d'un produit (taille, couleur…) */
.opt-section { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.opt-section .sub-h { margin: 0; }
.opt-section .sub-h .muted { font-weight: 500; font-size: 14px; }
.opt-section .hint { margin: 0; }
.opt-card { display: grid; gap: 8px; padding: 10px; background: #F6F8F7; border-radius: 12px; }
.opt-head { display: flex; gap: 8px; align-items: center; }
.opt-card input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.opt-head input { font-weight: 700; }
.icon-btn.sm { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.icon-btn.sm .icon { width: 18px; height: 18px; }
.var-table { display: grid; gap: 6px; }
.var-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 104px; gap: 8px; align-items: center; font-size: 14.5px; }
.var-row > span { font-weight: 700; overflow-wrap: anywhere; }
.var-row.head { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.var-row.head > span { font-weight: 700; }
.var-row input { min-height: 44px; width: 100%; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }

/* Consentement (inscription, nouvelle version des CGU) */
.consent-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; cursor: pointer; text-align: left; }
.consent-line input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--green); }
.consent-line a { color: var(--green); font-weight: 700; }
.consent-line input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
#uConsent-err:empty, #tConsent-err:empty { display: none; }
.legal-links { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.legal-links a { color: var(--muted); }

/* Abonnement */
.sub-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.sub-lines li { display: flex; gap: 8px; align-items: center; }
.sub-lines .icon { width: 16px; height: 16px; color: var(--green); }

/* Code reçu par SMS */
.code-box { display: grid; gap: 10px; }
.code-box[hidden] { display: none; }
.code-box .btn { justify-self: start; }
#lCode, #uCode { letter-spacing: .3em; font-size: 20px; font-weight: 700; }
