html, body { margin: 0; }
/* Layout: app-style cards (hero with shortcuts, rounded service tiles, announcement pill, banners, product cards), bottom tab bar on phones, top navigation on desktop */
:root {
  --bg: #fbf3ef; --surface: #ffffff; --fg: #4a2518; --muted: #805f53; --line: #f0dccb;
  --accent: #d1366b; --accent-fg: #ffffff; --accent2: #f08a3c;
  --brown: #5a2b1c; --brown-fg: #fff6ec; --gold: #b9751f; --gold-soft: #fbe8c4;
  --tile: color-mix(in srgb, var(--accent) 7%, var(--surface));
  --icon-bg: color-mix(in srgb, var(--fg) 8%, var(--surface));
  --bar: color-mix(in srgb, var(--accent) 35%, var(--surface));
  --good: #1f6b36; --bad: #c0264f;
  --s-new-bg: #fbdce5; --s-new-fg: #a11f4d; --s-paid-bg: #fbe8c4; --s-paid-fg: #8a5413;
  --s-prep-bg: #dbe7f7; --s-prep-fg: #264f86; --s-done-bg: #d9efdc; --s-done-fg: #1f6b36;
  --s-cancel-bg: #ece5e2; --s-cancel-fg: #6c5b55;
  --ob-h: 0px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1311; --surface: #2a1b18; --fg: #f8e9e0; --muted: #c9a99d; --line: #46302b;
    --accent: #f06c97; --accent-fg: #2b0f19; --accent2: #ffb066; --brown: #f2d3bd; --brown-fg: #2b1710;
    --gold: #efb25b; --gold-soft: #45351b; --good: #9ad8a8; --bad: #ff8fa8;
    --s-new-bg: #4b2632; --s-new-fg: #f6a3bd; --s-paid-bg: #45351b; --s-paid-fg: #f1c27a;
    --s-prep-bg: #1f3350; --s-prep-fg: #a7c6f0; --s-done-bg: #1f3b27; --s-done-fg: #9ad8a8;
    --s-cancel-bg: #3a2e2b; --s-cancel-fg: #bda79f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1311; --surface: #2a1b18; --fg: #f8e9e0; --muted: #c9a99d; --line: #46302b;
  --accent: #f06c97; --accent-fg: #2b0f19; --accent2: #ffb066; --brown: #f2d3bd; --brown-fg: #2b1710;
  --gold: #efb25b; --gold-soft: #45351b; --good: #9ad8a8; --bad: #ff8fa8;
  --s-new-bg: #4b2632; --s-new-fg: #f6a3bd; --s-paid-bg: #45351b; --s-paid-fg: #f1c27a;
  --s-prep-bg: #1f3350; --s-prep-fg: #a7c6f0; --s-done-bg: #1f3b27; --s-done-fg: #9ad8a8;
  --s-cancel-bg: #3a2e2b; --s-cancel-fg: #bda79f;
  color-scheme: dark;
}
/* Palettes du propriétaire : chaque palette redéfinit les mêmes jetons en clair et en sombre. */
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 96px;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 90; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
svg.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* owner toolbar */
.ob { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 80; margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); background: var(--brown); color: var(--brown-fg); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.ob strong { margin-right: auto; }
.ob button { background: color-mix(in srgb, var(--brown-fg) 16%, transparent); color: var(--brown-fg); border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
.ob button.on { background: var(--accent); color: var(--accent-fg); }
.ob button:disabled { opacity: 0.55; cursor: default; }

/* announcement pill */
.s-ticker { display: flex; align-items: center; gap: 12px; background: var(--tile); border-radius: 18px; padding: 0 16px; overflow: hidden; margin-block: 16px; }
.s-ticker .ic { color: var(--accent2); width: 26px; height: 26px; }
.s-ticker .vp { overflow: hidden; white-space: nowrap; flex: 1; min-width: 0; padding-block: 14px; }
.s-track { display: inline-flex; animation: s-scroll var(--dur, 40s) linear infinite; will-change: transform; }
.s-ticker:hover .s-track { animation-play-state: paused; }
.s-item { display: inline-flex; align-items: center; font-size: 1rem; }
.s-item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); margin: 0 26px; }
@keyframes s-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .s-ticker .vp { overflow-x: auto; } .s-track { animation: none; } }

/* header */
.s-wrap { max-width: 1160px; margin: 0 auto; }
.s-head { position: sticky; top: calc(var(--ob-h) + env(safe-area-inset-top, 0px)); z-index: 40; background: var(--bg); display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.s-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0; margin-right: auto; }
.s-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff6ec; }
.s-nav { display: none; gap: 22px; font-weight: 500; }
.s-nav a { text-decoration: none; color: var(--muted); }
.s-nav a:hover { color: var(--accent); }
.s-cartbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--tile); border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
.s-count { position: absolute; top: -5px; right: -3px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); font-size: 0.74rem; display: grid; place-items: center; padding: 0 5px; }

/* hero card */
.s-hero { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--accent2)) 55%, var(--accent2)); color: var(--accent-fg); border-radius: 28px; padding: clamp(20px, 4vw, 40px); display: grid; gap: 24px; grid-template-columns: 1fr; position: relative; overflow: hidden; }
.s-hero .hi { opacity: 0.9; font-weight: 500; }
.s-hero h1 { font-size: clamp(1.9rem, 5.5vw, 3.4rem); font-weight: 800; letter-spacing: 0; margin-top: 4px; }
.s-hero p.lead { margin-top: 12px; max-width: 46ch; opacity: 0.95; font-size: 1.05rem; }
.s-hero-media { display: none; border-radius: 22px; overflow: hidden; background: #fff6ec; }
.s-hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.s-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 4px; }
.s-quick a, .s-quick button { background: color-mix(in srgb, #fff 92%, var(--accent)); color: var(--fg); border: 0; border-radius: 18px; padding: 12px 6px; display: grid; justify-items: center; gap: 6px; font-size: 0.85rem; font-weight: 500; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.15; }
.s-quick .ic { color: var(--accent); width: 28px; height: 28px; }
.s-quick .badge { position: absolute; }
:root[data-theme="dark"] .s-quick a, :root[data-theme="dark"] .s-quick button { background: color-mix(in srgb, var(--surface) 92%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-quick a, :root:not([data-theme="light"]) .s-quick button { background: color-mix(in srgb, var(--surface) 92%, #fff); } }
.s-occ { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 16px 0 0; list-style: none; }
.s-occ li { background: color-mix(in srgb, #fff 22%, transparent); padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; }

/* sections */
.s-sec { padding-block: 18px 8px; scroll-margin-top: 80px; }
.s-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.s-sh h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: 0; }
.s-sh a, .s-sh button { color: var(--accent); font-weight: 700; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.s-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.s-tile { background: var(--tile); border-radius: 24px; padding: 20px 12px 16px; display: grid; justify-items: center; align-content: start; gap: 12px; text-align: center; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.2; min-height: 168px; transition: transform .18s ease; }
.s-tile:hover { transform: translateY(-3px); }
.s-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--icon-bg); overflow: hidden; display: grid; place-items: center; font: 800 2rem var(--font-display); color: var(--accent); }
.s-ico img { width: 100%; height: 100%; object-fit: cover; }
.s-tile small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

/* offers */
.s-banners { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 380px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.s-banner { scroll-snap-align: start; border-radius: 24px; padding: 24px; min-height: 190px; display: grid; align-content: space-between; gap: 14px; background: linear-gradient(135deg, var(--brown), color-mix(in srgb, var(--brown) 60%, var(--accent))); color: var(--brown-fg); }
.s-banner:nth-child(2n) { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-fg); }
.s-banner:nth-child(3n) { background: linear-gradient(135deg, var(--accent2), var(--gold)); color: #2b1400; }
.s-banner .t { font: 800 clamp(1.3rem, 3vw, 1.7rem)/1.1 var(--font-display); }
.s-banner .k { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; opacity: 0.85; }
.s-banner .e { font-size: 0.85rem; opacity: 0.9; }
@media (min-width: 900px) { .s-banners { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-auto-columns: auto; overflow: visible; } }

/* products */
.s-cat { padding-block: 18px 6px; scroll-margin-top: 90px; }
.s-cat-head { margin-bottom: 14px; }
.s-cat-head h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; }
.s-cat-head p { color: var(--muted); margin-top: 4px; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.s-card { background: var(--surface); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 1px 0 var(--line), 0 6px 22px -14px color-mix(in srgb, var(--fg) 40%, transparent); }
.s-card.out { opacity: 0.7; }
.s-media { aspect-ratio: 4 / 3; background: var(--icon-bg); overflow: hidden; }
.s-media img { width: 100%; height: 100%; object-fit: cover; }
.s-ph { display: grid; place-items: center; width: 100%; height: 100%; font: 800 3rem var(--font-display); color: var(--accent); background: var(--tile); }
.s-cbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.s-cbody h3 { font-size: 1.1rem; font-weight: 700; }
.s-desc { color: var(--muted); font-size: 0.92rem; }
.s-hint { color: var(--muted); font-size: 0.8rem; }
.s-cfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.s-price { background: var(--accent); color: var(--accent-fg); font-weight: 700; padding: 4px 14px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-price.quote { background: var(--gold-soft); color: var(--fg); }
.s-add { background: var(--tile); color: var(--accent); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.s-add:hover { background: var(--accent); color: var(--accent-fg); }
.s-soldout { color: var(--muted); font-weight: 700; }
.s-step { display: inline-flex; align-items: center; background: var(--tile); border-radius: 999px; padding: 2px; }
.s-step button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); color: var(--accent); font-size: 1.2rem; font-weight: 700; cursor: pointer; line-height: 1; }
.s-step input { width: 46px; text-align: center; border: 0; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.s-step input::-webkit-outer-spin-button, .s-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* gallery, reviews, faq, info */
.s-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.s-gal figure { margin: 0; }
.s-gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.s-gal figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.s-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.s-reviews blockquote { margin: 0; background: var(--tile); border-radius: 22px; padding: 18px 20px; }
.s-reviews cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.s-faq { display: grid; gap: 10px; max-width: 800px; }
.s-faq details { background: var(--tile); border-radius: 18px; padding: 14px 18px; }
.s-faq summary { font-weight: 700; cursor: pointer; }
.s-faq details p { color: var(--muted); margin-top: 8px; }
.s-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.s-info > div { background: var(--tile); border-radius: 22px; padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.s-info b { font-family: var(--font-display); font-size: 1.1rem; }
.s-info .muted, .muted { color: var(--muted); }
.s-orders { display: grid; gap: 10px; }
.s-orders > div { background: var(--tile); border-radius: 20px; padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.s-orders b { display: block; }
.s-foot { padding-block: 28px 8px; color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.s-foot a { margin-left: 12px; }

/* buttons */
.s-btn { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.s-btn:hover { filter: brightness(1.07); }
.s-btn.ghost { background: transparent; color: var(--fg); border: 2px solid var(--line); padding: 11px 22px; }
.s-btn.block { display: block; width: 100%; }

/* tab bar (phones) */
.s-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px -14px color-mix(in srgb, var(--fg) 45%, transparent);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.s-tabs a, .s-tabs button { background: none; border: 0; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; color: var(--muted); font-size: 0.78rem; font-weight: 500; text-decoration: none; cursor: pointer; position: relative; }
.s-tabs [aria-current="true"] { color: var(--accent); font-weight: 700; }
.s-tabs .s-count { top: 0; right: calc(50% - 22px); }

/* cart drawer */
.s-overlay { position: fixed; inset: 0; background: rgba(15, 8, 6, 0.55); z-index: 100; display: flex; justify-content: flex-end; }
.s-drawer { background: var(--bg); width: min(480px, 100%); height: 100%; overflow-y: auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px; display: grid; gap: 14px; align-content: start; }
.s-dh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-dh h2 { font-size: 1.5rem; font-weight: 800; }
.s-x { background: var(--tile); border: 0; border-radius: 50%; width: 38px; height: 38px; font-size: 1.2rem; cursor: pointer; }
.s-line { background: var(--tile); border-radius: 18px; padding: 12px 14px; display: grid; gap: 8px; }
.s-line .r { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.s-line b { overflow-wrap: anywhere; }
.s-sum { display: grid; gap: 6px; background: var(--surface); border-radius: 18px; padding: 14px 16px; }
.s-sum .r { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.s-sum .big { font: 800 1.2rem var(--font-display); }
.s-form { display: grid; gap: 12px; }
.s-form label { display: grid; gap: 5px; font-weight: 700; font-size: 0.88rem; min-width: 0; }
.s-form input, .s-form select, .s-form textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; width: 100%; min-width: 0; font-weight: 400; }
.s-form textarea { min-height: 84px; resize: vertical; }
.s-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.s-err { color: var(--bad); min-height: 1.3em; font-size: 0.9rem; }
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.s-steps li { display: flex; gap: 12px; align-items: flex-start; }
.s-steps li::before { counter-increment: st; content: counter(st); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--icon-bg); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.s-steps li.done::before { content: "✓"; background: var(--accent); color: var(--accent-fg); }
.s-steps li.cur::before { background: var(--accent2); color: #2b1400; }
.s-pay { background: var(--gold-soft); border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; color: var(--fg); }
.s-pay .r { display: flex; align-items: center; gap: 12px; }
.s-pay .r span { width: 3.5em; }
.s-pay .r b { flex: 1; font: 800 1.15rem var(--font-display); font-variant-numeric: tabular-nums; }
.s-link { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; padding: 0; }
.s-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); background: var(--brown); color: var(--brown-fg); padding: 10px 18px; border-radius: 999px; z-index: 120; font-weight: 500; max-width: calc(100% - 32px); }

/* owner editor */
.e-overlay { position: fixed; inset: 0; background: rgba(15, 8, 6, 0.55); z-index: 110; display: flex; justify-content: flex-end; }
.e-panel { background: var(--bg); width: min(760px, 100%); height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; }
.e-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 8px; }
.e-top h2 { font-size: 1.3rem; }
.e-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 16px; border-bottom: 1px solid var(--line); }
.e-tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.e-tabs button[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.e-body { overflow-y: auto; padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.e-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.e-help { color: var(--muted); font-size: 0.92rem; }
.e-pals { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.e-pal { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 12px; display: grid; gap: 6px; text-align: left; cursor: pointer; }
.e-pal[aria-pressed="true"] { border-color: var(--accent); }
.e-pal .sw { display: flex; height: 34px; border-radius: 10px; overflow: hidden; }
.e-pal .sw i { flex: 1; }
.e-pal small { color: var(--muted); }
.e-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.e-card h3 { font-size: 1.05rem; }
.e-f { display: grid; gap: 4px; font-size: 0.82rem; font-weight: 700; min-width: 0; }
.e-f input, .e-f textarea, .e-f select { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; min-width: 0; font-weight: 400; font-size: 0.95rem; }
.e-r2 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.e-r3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.e-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.e-row > .e-f { flex: 1; min-width: 160px; }
.e-photo { display: flex; gap: 12px; align-items: center; }
.e-th { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--icon-bg); display: grid; place-items: center; font-size: 0.75rem; color: var(--muted); flex: none; }
.e-btn { background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 10px; padding: 7px 14px; font-weight: 700; cursor: pointer; font-size: 0.88rem; }
.e-btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.e-btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.e-chk { display: flex; gap: 6px; align-items: center; font-size: 0.9rem; }
.e-st { font-size: 0.8rem; color: var(--muted); margin-left: 8px; }
@media (min-width: 640px) {
  .s-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  body { padding-block: 0 24px; }
  .s-nav { display: flex; }
  .s-tabs { display: none; }
  .s-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .s-hero { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .s-hero-media { display: block; }
  .s-quick { grid-template-columns: repeat(4, minmax(0, 120px)); }
  .s-toast { bottom: 24px; }
}
@media (max-width: 560px) { .s-f2, .e-r2, .e-r3 { grid-template-columns: 1fr; } .s-overlay { align-items: flex-end; } .s-drawer { height: 94%; border-radius: 24px 24px 0 0; } }

/* Ticket de commande */
.tk { background: #fff; color: #2b1a14; width: min(100%, 340px); margin: 0 auto; padding: 22px 20px; border: 1px dashed #c9b3a8; border-radius: 6px; font: 14px/1.4 "DM Sans", system-ui, sans-serif; }
.tk * { box-sizing: border-box; }
.tk-head { text-align: center; display: grid; gap: 2px; justify-items: center; }
.tk-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 4px; }
.tk-name { font: 700 1.35rem "Playfair Display", Georgia, serif; }
.tk-sub { font-size: 0.78rem; color: #6c5b55; }
.tk-no { text-align: center; margin: 14px 0 10px; font-weight: 700; letter-spacing: 0.08em; font-size: 0.9rem; border-block: 1px solid #2b1a14; padding: 6px 0; }
.tk-meta { display: grid; gap: 3px; }
.tk-row, .tk-l { display: flex; justify-content: space-between; gap: 12px; }
.tk-row b, .tk-l b { text-align: right; font-weight: 600; }
.tk-row.big { font-size: 1.05rem; margin-top: 4px; }
.tk-row.big b { font-weight: 800; }
.tk-sep { border-top: 1px dashed #b9a79e; margin: 10px 0; }
.tk-item { margin-bottom: 6px; }
.tk-d { font-size: 0.78rem; color: #6c5b55; margin-top: 2px; }
.tk-st { text-align: center; margin: 12px 0 6px; padding: 6px; border: 2px solid #2b1a14; font-weight: 800; letter-spacing: 0.1em; font-size: 0.9rem; }
.tk-foot { text-align: center; font: italic 0.95rem "Playfair Display", Georgia, serif; margin-top: 8px; }
#ticket-print { display: none; }
.tk-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
@media print {
  body > *:not(#ticket-print) { display: none !important; }
  #ticket-print { display: block !important; }
  html, body { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  .tk { border: 0; width: 80mm; padding: 4mm; margin: 0 auto; }
}
.s-prec { display: grid; gap: 10px; background: var(--tile); border-radius: 18px; padding: 14px; }
.s-prec select { width: 100%; }
.s-bal { display: inline-block; background: var(--gold-soft); color: var(--fg); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 0.8rem; }

/* Fêtes du Togo, bonnet de Noël, WhatsApp, calendrier, suggestions */
.hat-wrap { position: relative; display: inline-block; line-height: 0; flex: none; }
.hat-wrap .hat { position: absolute; top: -42%; left: -14%; width: 82%; height: auto; transform: rotate(-16deg); pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.s-hero-media.badge .hat-wrap { display: grid; place-items: center; width: 100%; height: 100%; }
.s-hero-media.badge .hat-wrap img { max-height: 100%; }
.s-hero-media.badge .hat-wrap .hat { top: 17%; left: 47%; width: 24%; transform: rotate(10deg); }
.sym { flex: none; }
.s-fest { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, var(--brown), color-mix(in srgb, var(--brown) 55%, var(--accent))); color: var(--brown-fg); border-radius: 22px; padding: 14px 18px; text-decoration: none; margin-bottom: 16px; }
.s-fest > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.s-fest b { font: 700 1.1rem var(--font-display); }
.s-fest span { font-size: 0.9rem; opacity: 0.9; }
.s-fest .go { background: var(--accent2); color: #2b1400; padding: 8px 16px; border-radius: 999px; font-weight: 700; flex: none; opacity: 1; }
.s-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.s-calc { background: var(--tile); border-radius: 22px; padding: 16px; display: grid; gap: 6px; justify-items: start; text-decoration: none; }
.s-calc b { font: 700 1.05rem var(--font-display); }
.s-calc .tag { background: var(--gold-soft); color: var(--fg); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 700; }
.s-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.s-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 500; }
.s-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.s-wa { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; border-radius: 50%; background: #25d366; display: grid; place-items: center; z-index: 60; box-shadow: 0 6px 18px -6px rgba(0,0,0,.5); }
@media (min-width: 900px) { .s-wa { bottom: 24px; } }
.s-sug { display: grid; gap: 8px; background: var(--tile); border-radius: 18px; padding: 12px 14px; }
.s-sug .r { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 0.9rem; }
.fine.s-err { margin: 0; }
/* reçu / facture */
.inv { background: #fff; color: #2b1a14; width: min(100%, 640px); max-width: 100%; overflow: hidden; margin: 0 auto; padding: 24px; border: 1px solid #d9c7bd; border-radius: 6px; font: 14px/1.45 "DM Sans", system-ui, sans-serif; display: grid; gap: 14px; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.inv-head .tk-name, .inv-head .tk-sub { text-align: left; }
.inv-head .tk-logo { margin-bottom: 4px; display: block; }
.inv-ref { display: grid; gap: 2px; text-align: right; }
.inv-ref b { font: 800 1.4rem "Playfair Display", Georgia, serif; letter-spacing: .06em; }
.inv-cli { display: grid; gap: 1px; background: #faf3ee; border-radius: 6px; padding: 10px 12px; }
.inv-t { width: 100%; border-collapse: collapse; }
.inv-t th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid #2b1a14; padding: 6px 4px; }
.inv-t td { padding: 7px 4px; border-bottom: 1px solid #eadfd8; vertical-align: top; }
.inv-t .r, .inv-t th.r { text-align: right; white-space: nowrap; }
.inv-t tr.tot td { font-weight: 800; border-top: 2px solid #2b1a14; }
@media print { #ticket-print .inv { width: 100%; border: 0; padding: 0; } @page { margin: 12mm; } }
.prod-sheet { background: #fff; color: #2b1a14; padding: 16px; font: 13px/1.4 system-ui, sans-serif; width: 100%; }
.prod-sheet h2 { font: 700 1.3rem "Playfair Display", Georgia, serif; margin: 0 0 4px; }
.prod-sheet table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.prod-sheet th { text-align: left; font-size: .72rem; text-transform: uppercase; border-bottom: 2px solid #2b1a14; padding: 4px; }
.prod-sheet td { border-bottom: 1px solid #ddd; padding: 5px 4px; vertical-align: top; }
.prod-sheet .r { text-align: right; white-space: nowrap; }
.prod-sheet .al { background: #fde8e8; color: #9b1c1c; border-radius: 4px; padding: 0 6px; font-weight: 700; }

/* Palettes supplémentaires (la palette Framboise reste la palette par défaut) */
:root[data-palette="rose"] {
  --bg: light-dark(#fdf1f3, #1e1316); --surface: light-dark(#ffffff, #2b1b20); --fg: light-dark(#4a2230, #fbe9ee); --muted: light-dark(#85606c, #cfa9b5); --line: light-dark(#f4d9e0, #48303a);
  --accent: light-dark(#c2557a, #f08fb0); --accent-fg: light-dark(#ffffff, #2d0f1b); --accent2: light-dark(#e9a23b, #ffc46b);
  --brown: light-dark(#5b2a3c, #f6d5df); --brown-fg: light-dark(#fff1f4, #2d1520); --gold: light-dark(#b9751f, #efb25b); --gold-soft: light-dark(#fbe8c4, #45351b);
}
:root[data-palette="chocolat"] {
  --bg: light-dark(#f7f0e8, #181210); --surface: light-dark(#ffffff, #261c18); --fg: light-dark(#3b2416, #f5e8dc); --muted: light-dark(#7d6552, #c9b29f); --line: light-dark(#e6d6c4, #3f302a);
  --accent: light-dark(#8a4b25, #e3a26b); --accent-fg: light-dark(#ffffff, #2a1608); --accent2: light-dark(#d9a441, #f2c66d);
  --brown: light-dark(#3b2416, #f1dcc8); --brown-fg: light-dark(#fbf1e6, #24150b); --gold: light-dark(#b8862b, #f0c36b); --gold-soft: light-dark(#f6e4bd, #46371b);
}
:root[data-palette="fetes"] {
  --bg: light-dark(#fbf4ee, #14201a); --surface: light-dark(#ffffff, #1e2e25); --fg: light-dark(#2a1c17, #f4efe4); --muted: light-dark(#6f5d52, #b9c9bd); --line: light-dark(#eadccf, #2f453a);
  --accent: light-dark(#c4242f, #ff7b83); --accent-fg: light-dark(#ffffff, #2a0508); --accent2: light-dark(#e0a82e, #f6cc6b);
  --brown: light-dark(#14502f, #cfe9d8); --brown-fg: light-dark(#f4fbf6, #0e2417); --gold: light-dark(#b8862b, #f0c36b); --gold-soft: light-dark(#f8e7b8, #42391a);
}

.s-gal .s-vid, .s-gal .s-yt { width: 100%; aspect-ratio: 1; border-radius: 20px; background: #000; object-fit: cover; border: 0; display: block; }
.s-yt { position: relative; padding: 0; cursor: pointer; overflow: hidden; }
.s-yt img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.s-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--accent, #b0124f); display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }

.s-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 99px; font-size: .72rem; font-weight: 800; background: var(--accent, #d1366b); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.s-badge.best { background: #b8860b; }
.s-media { position: relative; }
.s-ophoto { margin: 8px 0; } .s-ophoto img { width: 100%; border-radius: 14px; } .s-ophoto figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.s-remind { padding: 10px 12px; border-radius: 12px; background: #fff3d6; color: #6b4a00; font-weight: 600; margin: 8px 0; }
.s-remind.rv { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fde7ee; color: #8a1230; }
.s-about { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); } @media (min-width: 640px) { .s-about { grid-template-columns: 220px minmax(0, 1fr); } }
.s-about img { width: 100%; border-radius: 20px; aspect-ratio: 1; object-fit: cover; }
.s-vals { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; } .s-vals li { padding: 6px 12px; border-radius: 99px; background: #fde7ee; color: #8a1230; font-weight: 700; font-size: .85rem; }
.s-install { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px; border-radius: 18px; background: #fde7ee; } .s-install span { display: block; color: var(--muted); font-size: .88rem; }
.s-ref .code { font-size: 1.1rem; letter-spacing: .06em; padding: 8px 12px; border-radius: 12px; background: #fde7ee; }

/* Tickets et reçus : centrés, lisibles, sans débordement */
.tk, .inv { box-sizing: border-box; margin-inline: auto; font-size: 15px; }
.tk { width: min(100%, 380px); }
.tk-row, .tk-l { align-items: baseline; } .tk-row > :first-child, .tk-l > :first-child { flex: none; }
.tk-row b, .tk-l b { overflow-wrap: anywhere; min-width: 0; }
.inv-head { flex-direction: column; align-items: center; text-align: center; }
.inv-head .tk-name, .inv-head .tk-sub { text-align: center; } .inv-head .tk-logo { margin-inline: auto; }
.inv-ref { text-align: center; justify-items: center; }
.inv-lines { display: grid; }
.inv-lh { display: flex; justify-content: space-between; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; border-bottom: 2px solid #2b1a14; padding: 6px 0; }
.inv-li, .inv-tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eadfd8; }
.inv-li .n { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; } .inv-li .a { font-weight: 700; white-space: nowrap; }
.inv-tr b { white-space: nowrap; } .inv-tr.tot { font-weight: 800; border-top: 2px solid #2b1a14; font-size: 1.05rem; }
.s-modal .inv, .s-drawer .inv, .s-modal .tk, .s-drawer .tk { width: 100%; }
@media (min-width: 640px) { .inv-head { flex-direction: row; justify-content: space-between; align-items: flex-start; text-align: left; } .inv-head .tk-name, .inv-head .tk-sub { text-align: left; } .inv-head .tk-logo { margin-inline: 0; } .inv-ref { text-align: right; justify-items: end; } }
@media print { .tk, .inv { margin-inline: auto !important; } #ticket-print { display: flex !important; justify-content: center; } #ticket-print .inv { max-width: 190mm; } }

.s-payamt { display: grid; gap: 4px; font-weight: 700; font-size: .88rem; } .s-payamt input { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: 800 1.2rem var(--font-display); width: 100%; }
.s-pay .s-btn { flex: 1 1 100%; }

.opl { height: 34px; width: auto; max-width: 96px; border-radius: 8px; object-fit: contain; flex: none; background: #fff; }
.opl.yas { background: #f9e400; } .opl.moov { background: transparent; height: 38px; }
.s-pay .r .opl { margin-right: 2px; }
.s-pay .r { gap: 10px; } .s-pay .r > b { flex: 1; }
.s-info > div > .opl { margin-bottom: 6px; justify-self: start; height: 42px; max-width: 120px; }
.s-btn.paybtn { display: flex; align-items: center; justify-content: center; gap: 10px; } .s-btn.paybtn .opl { height: 28px; border-radius: 6px; }

.s-ussd { display: grid; gap: 10px; } .s-ussd .u { background: var(--surface); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.s-ussd .uh { display: flex; align-items: center; gap: 10px; } .s-ussd code { display: block; font: 700 1rem ui-monospace, monospace; word-break: break-all; background: var(--tile); padding: 8px 10px; border-radius: 10px; }

.oplbox { display: flex; margin-top: 6px; } .oplbox .opl { height: 36px; }

/* Lot 4 : avis photo, niveaux, devis et aperçu du gâteau */
.s-rvph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.s-alg { color: #8a5413; }
.s-tier { background: var(--tile); border-radius: 22px; padding: 18px; display: grid; gap: 8px; max-width: 680px; }
.s-lvl { justify-self: start; background: var(--gold-soft); color: var(--fg); font: 800 1.1rem var(--font-display); border-radius: 999px; padding: 6px 16px; }
.s-cake { display: grid; place-items: center; background: var(--surface); border-radius: 18px; padding: 10px; }
.s-form input[type=color] { padding: 2px; height: 44px; }
.s-chips a.s-chip { display: inline-block; }
