:root {
  --night: #140704; --coffee: #2A0E07; --mid: #3B1209; --cream: #F6EFE4; --crema: #E2A45C; --dim: #C9B8A6;
  --disp: "Gloock", Georgia, serif; --body: "Figtree", system-ui, sans-serif;
  --expo: cubic-bezier(.16, 1, .3, 1);
  --z-beans: 0; --z-main: 1; --z-top: 30; --z-dock: 40; --z-curtain: 1000; --z-cursor: 1100;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--night); }
html.locked { overflow: hidden; }
body { background: var(--night); color: var(--cream); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, canvas { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--disp); font-weight: 400; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--crema); outline-offset: 3px; }
main { position: relative; z-index: var(--z-main); }

/* Ouverture : deux pans en dents de scie, les triangles du logo */
.curtain { position: fixed; inset: 0; z-index: var(--z-curtain); pointer-events: none; }
.cur { position: absolute; inset: 0; background: var(--coffee); transition: transform 1.15s var(--expo); will-change: transform; }
.cur-mark { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; transition: opacity .35s; }
.cur-mark img { width: 132px; height: 132px; animation: mark-in 1.1s var(--expo) both; }
.cur-mark span { font: 400 clamp(2.2rem, 10vw, 3.4rem)/1 var(--disp); animation: word-in .9s .28s var(--expo) both; }
@keyframes mark-in { from { transform: scale(.72) rotate(-70deg); opacity: 0; } }
@keyframes word-in { from { transform: translateY(16px); opacity: 0; } }
.curtain.open .cur-a { transform: translateY(-104%); }
.curtain.open .cur-b { transform: translateY(104%); }
.curtain.open .cur-mark { opacity: 0; }
.curtain.gone { display: none; }

.grain { position: fixed; inset: 0; z-index: calc(var(--z-dock) - 1); pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

.cursor { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none; display: none; }
.cursor span { display: block; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 1.5px solid var(--cream); border-radius: 50%; transition: transform .35s var(--expo), background .25s; mix-blend-mode: difference; }
.cursor.on-cup span { transform: scale(3.4); background: rgba(246, 239, 228, .16); }
.cursor.on-btn span { transform: scale(2); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* Haut de page. Le sélecteur de versions (partagé) reste en haut à droite. */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-top); height: calc(56px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); pointer-events: none; }
.brand { position: absolute; left: 14px; top: max(9px, env(safe-area-inset-top)); pointer-events: auto; transition: opacity .3s; }
.brand img { width: 42px; height: 42px; }
.lang { position: absolute; right: 14px; top: max(11px, env(safe-area-inset-top)); width: 38px; height: 38px; border-radius: 50%; font-size: 12px; font-weight: 600; background: rgba(38, 13, 7, .82); border: 1px solid rgba(246, 239, 228, .22); pointer-events: auto; transition: opacity .3s; }
.rail { position: absolute; left: 0; right: 0; top: max(11px, env(safe-area-inset-top)); display: flex; gap: 6px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .5s var(--expo);
  }
.rail::-webkit-scrollbar { display: none; }
.rail button:first-child { margin-left: auto; }
.rail button:last-child { margin-right: auto; }
.rail button { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(38, 13, 7, .86); border: 1px solid rgba(246, 239, 228, .2); transition: background .25s, color .25s; }
.rail button.on { background: var(--cream); color: var(--mid); border-color: rgba(59, 18, 9, .22); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); }
.past-hero .rail { opacity: 1; transform: none; pointer-events: auto; }
.past-hero .brand, .past-hero .lang { opacity: 0; pointer-events: none; }

/* La tasse */
.hero { height: 185dvh; position: relative; }
.hero-pin { position: sticky; top: 0; height: 100dvh; overflow: hidden; background: #0C0403; }
.ghost { position: absolute; top: 15%; left: 50%; z-index: 2; transform: translateX(-50%); font: 400 44vw/1 var(--disp); color: transparent; -webkit-text-stroke: 1px rgba(246, 239, 228, .16); letter-spacing: .01em; white-space: nowrap; pointer-events: none; }
.cup-wrap { position: absolute; inset: 0; z-index: 1; transform-origin: 50% 62%; will-change: transform; }
.cup-still, #cup { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
#cup { opacity: 0; transition: opacity .5s; }
#cup.live { opacity: 1; }
.stir { position: absolute; left: 0; right: 0; top: 37%; bottom: 8%; touch-action: pan-y; }
.veil { position: absolute; inset: 0; z-index: 4; background: var(--night); opacity: 0; pointer-events: none; }
.hero-pin::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(12, 4, 3, .78), rgba(12, 4, 3, .46) 62%, transparent); }
.hero-copy { position: absolute; z-index: 3; left: 20px; right: 20px; top: calc(68px + env(safe-area-inset-top)); will-change: transform, opacity; }
.status { font-size: 14px; font-weight: 500; color: var(--cream); display: flex; align-items: center; gap: 8px; }
.status::before { content: ""; flex: none; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--crema); }
.status.closed::before { border-bottom-color: var(--dim); }
h1 { font-size: clamp(3rem, 13vw, 6rem); line-height: 1.01; margin-top: 10px; letter-spacing: -.012em; }
h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
h1 .ln > span { display: block; }
h1 em { font-style: normal; color: var(--crema); }
.boot h1 .ln > span { animation: line-up 1.1s var(--expo) both; }
.boot h1 .ln:nth-child(2) > span { animation-delay: .1s; }
@keyframes line-up { from { transform: translateY(108%); } }
.hero-cta { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .35s var(--expo), background .25s, color .25s; text-decoration: none; }
.btn:active { transform: scale(.96); }
.btn.solid { background: var(--cream); color: var(--mid); }
.btn.crema { background: var(--crema); color: #2A0E07; }
.btn.line { border: 1px solid rgba(246, 239, 228, .55); background: rgba(20, 7, 4, .35); }
.btn.dark { background: var(--mid); color: var(--cream); }
.hint { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(88px + env(safe-area-inset-bottom)); text-align: center; font-size: 15px; font-weight: 600; pointer-events: none; text-shadow: 0 1px 12px rgba(20, 7, 4, .85); transition: opacity .6s; animation: hint-pulse 2.6s ease-in-out infinite; }
.hint.off { opacity: 0; animation: none; }
@keyframes hint-pulse { 50% { transform: translateY(-5px); } }

/* Laisse ton avis, dans le hero : cinq triangles du logo qui se remplissent en vague */
.hero-rate { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 42px; padding: 0 16px 0 13px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(20, 7, 4, .38); border: 1px solid rgba(246, 239, 228, .24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s, border-color .3s, transform .35s var(--expo); }
.hero-rate:hover { background: rgba(20, 7, 4, .6); border-color: rgba(226, 164, 92, .7); }
.hero-rate:active { transform: scale(.96); }
.boot .hero-rate { animation: word-in .9s .45s var(--expo) both; }
.hr-tris { display: inline-flex; gap: 3px; }
.hr-tris i { width: 12px; height: 11px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: rgba(246, 239, 228, .28); position: relative; overflow: hidden; }
.hr-tris i::after { content: ""; position: absolute; inset: 0; background: var(--crema); transform: translateY(102%); animation: tri-wave 4.2s var(--expo) infinite; }
.hr-tris i:nth-child(2)::after { animation-delay: .1s; } .hr-tris i:nth-child(3)::after { animation-delay: .2s; }
.hr-tris i:nth-child(4)::after { animation-delay: .3s; } .hr-tris i:nth-child(5)::after { animation-delay: .4s; }
@keyframes tri-wave { 0%, 62%, 100% { transform: translateY(102%); } 14%, 46% { transform: none; } }
.hero-rate:hover .hr-tris i::after, .hero-rate:focus-visible .hr-tris i::after { animation: none; transform: none; }
.hr-t { text-decoration: underline; text-decoration-color: rgba(246, 239, 228, .35); text-underline-offset: 4px; }

.guide-cta h2 { font-size: clamp(2.3rem, 10vw, 4.4rem); line-height: 1.04; }

/* Tu hésites ? En crème, juste après le hero. Les trois photos s'ouvrent comme des articles. */
.guide-cta { background: var(--cream); color: var(--mid); padding: 60px 20px 64px; display: grid; gap: 30px; position: relative; overflow: hidden; }
.gc-fan { position: relative; height: 250px; width: min(100%, 360px); justify-self: center; }
.gc-card { position: absolute; top: 10px; left: 50%; width: 52%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: 0 26px 40px -20px rgba(59, 18, 9, .7); transition: transform 1s var(--expo), translate .5s var(--expo), box-shadow .4s; }
.gc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--expo); }
.gc-card:nth-child(1) { transform: translateX(-104%) rotate(-11deg) translateY(16px); }
.gc-card:nth-child(2) { transform: translateX(4%) rotate(10deg) translateY(16px); }
.gc-card:nth-child(3) { transform: translateX(-50%); z-index: 1; }
.guide-cta:hover .gc-card:nth-child(1) { transform: translateX(-118%) rotate(-15deg) translateY(10px); }
.guide-cta:hover .gc-card:nth-child(2) { transform: translateX(18%) rotate(14deg) translateY(10px); }
.gc-card:hover { translate: 0 -10px; z-index: 2; box-shadow: 0 34px 46px -20px rgba(59, 18, 9, .85); }
.gc-card:hover img { transform: scale(1.06); }
.gc-card:active { translate: 0 -4px; }
.gc-plus { position: absolute; right: 9px; bottom: 9px; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); color: var(--mid); display: grid; place-items: center; font: 600 21px/1 var(--body); box-shadow: 0 8px 16px -8px rgba(20, 7, 4, .8); transition: transform .45s var(--expo), background .25s, color .25s; }
.gc-card:hover .gc-plus { transform: rotate(90deg) scale(1.08); background: var(--crema); color: var(--coffee); }
.gc-copy p { margin-top: 12px; max-width: 42ch; }
.gc-copy .btn { margin-top: 20px; }
.g-kick { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--crema); }
.g-kick.dark { color: #8A4B22; margin-bottom: 10px; }

.clip-in { animation: clip-in 1s var(--expo) backwards; }
@keyframes clip-in { from { clip-path: inset(14% 0 0 0); transform: translateY(26px); } to { clip-path: inset(0); transform: none; } }

/* Ton avis : une feuille ouverte depuis le hero. Les avis des autres ne sont plus affichés. */
.pour-sub { margin-top: 8px; color: var(--dim); font-size: 15px; max-width: 40ch; }
.rate { display: flex; gap: 6px; margin-top: 18px; }
.rate button { flex: 1; max-width: 76px; aspect-ratio: 1.1; position: relative; }
.rate button::before, .rate button::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 4%, 100% 100%, 0 100%); }
.rate button::before { background: rgba(246, 239, 228, .17); }
.rate button::after { background: var(--crema); transform: translateY(102%); transition: transform .7s var(--expo); }
.rate button { overflow: hidden; }
.rate button.on::after { transform: none; }
.mood { min-height: 26px; margin-top: 10px; font-weight: 600; color: var(--crema); }
.field { display: block; width: 100%; margin-top: 10px; padding: 14px; border-radius: 10px; border: 1px solid rgba(246, 239, 228, .28); background: rgba(246, 239, 228, .05); color: var(--cream); font: inherit; }
.field::placeholder { color: var(--dim); opacity: 1; }
textarea.field { min-height: 88px; resize: vertical; }
.pour .btn { margin-top: 10px; }
.pour .err { min-height: 22px; margin-top: 8px; font-size: 14px; color: var(--crema); }

/* Fin */
.finale { position: relative; }
.finale-film { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.finale-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); transform: scale(1.25); will-change: transform; }
.finale-in { position: relative; z-index: 1; margin-top: -100dvh; padding: 86px 20px calc(120px + env(safe-area-inset-bottom)); }
.finale h2 { font-size: clamp(4rem, 20vw, 6rem); line-height: .96; }
.finale .about { font: 400 1.4rem/1.28 var(--disp); margin-top: 18px; max-width: 26ch; }
.arc-wrap { margin-top: 42px; max-width: 460px; }
.arc-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.arc-wrap p { font-weight: 600; margin-top: 6px; }
.facts { margin-top: 30px; max-width: 460px; display: grid; gap: 0; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(246, 239, 228, .24); }
.fact span:first-child { color: var(--dim); }
.fact span:last-child { text-align: right; font-weight: 500; }
.finale-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.demo-note { margin-top: 26px; font-size: 13.5px; color: var(--dim); max-width: 46ch; }

/* En bas : le plateau et le serveur */
.dock { position: fixed; z-index: var(--z-dock); right: 12px; left: 12px; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; justify-content: flex-end; gap: 8px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.call-pill, .tray-pill { min-height: 54px; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; transition: transform .4s var(--expo); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .85); }
.call-pill { background: var(--cream); color: var(--mid); padding: 0 20px 0 12px; }
.call-pill .dr { width: 34px; height: 34px; }
.tray-pill { background: var(--mid); border: 1px solid rgba(246, 239, 228, .28); padding: 0 16px 0 9px; margin-right: auto; }
.tray-pill[hidden] { display: none; }
.tray-pill .stack { display: flex; }
.tray-pill .stack img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--mid); margin-left: -14px; }
.tray-pill .stack img:first-child { margin-left: 0; }
.bump { animation: bump .55s var(--expo); }
@keyframes bump { 30% { transform: scale(1.12); } }
.flyer { position: fixed; z-index: var(--z-cursor); left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 10px 26px rgba(0, 0, 0, .55); }

/* Couches */
dialog.layer { border: 0; padding: 0; color: var(--cream); background: var(--night); max-width: none; max-height: none; overscroll-behavior: contain; }
dialog.layer::backdrop { background: rgba(10, 3, 2, .7); }
.x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 7, 4, .78); color: var(--cream); z-index: 3; border: 1px solid rgba(246, 239, 228, .25); }

/* Détail : la photo grandit depuis la tuile */
dialog.detail { width: 100vw; height: 100dvh; inset: 0; margin: 0; overflow-y: auto; }
.d-photo { position: relative; height: 56dvh; overflow: hidden; transform-origin: 0 0; background: var(--coffee); touch-action: pan-y; }
.d-photo img { width: 100%; height: 100%; object-fit: cover; }
.d-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, var(--night)); }
.d-body { position: relative; padding: 0 20px calc(30px + env(safe-area-inset-bottom)); margin-top: -40px; z-index: 1; }
.d-body h2 { font-size: clamp(2.8rem, 13vw, 4.6rem); line-height: 1; }
.d-desc { margin-top: 10px; font-size: 17px; max-width: 42ch; }
.d-facts { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.brew { flex: none; width: 76px; height: 76px; position: relative; }
.brew svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.brew circle { fill: none; stroke-width: 5; }
.brew .bg { stroke: rgba(246, 239, 228, .17); }
.brew .fg { stroke: var(--crema); stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 201; }
.brew b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 400 1.4rem/1 var(--disp); }
.brew b small { display: block; font: 500 11.5px/1.2 var(--body); }
.d-price { font: 400 1.9rem/1.1 var(--disp); color: var(--crema); }
.d-ready { font-size: 14.5px; margin-top: 3px; }
.d-add { width: 100%; margin-top: 22px; min-height: 56px; font-size: 16px; }
.d-pair { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(246, 239, 228, .2); width: 100%; text-align: left; }
.d-pair img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; }
.d-pair small { display: block; color: var(--dim); font-size: 13.5px; }
.d-pair b { font: 400 1.2rem/1.2 var(--disp); }
.d-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(20, 7, 4, .7); display: none; place-items: center; border: 1px solid rgba(246, 239, 228, .25); }
.d-nav.prev { left: 12px; } .d-nav.next { right: 12px; }
@media (hover: hover) { .d-nav { display: grid; } }

/* Feuilles du bas */
dialog.sheet { width: 100vw; max-width: 560px; margin: auto auto 0; inset: auto 0 0; border-radius: 18px 18px 0 0; max-height: 90dvh; overflow-y: auto; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--coffee); }
dialog.sheet h2 { font-size: 2.2rem; line-height: 1.05; padding-right: 52px; }
.sheet .x { background: var(--mid); }
.line-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(246, 239, 228, .15); }
.line-item img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.line-item b { font-weight: 600; display: block; line-height: 1.25; }
.line-item small { font-size: 13.5px; color: var(--dim); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(246, 239, 228, .34); font-size: 18px; line-height: 1; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font: 400 1.6rem/1.2 var(--disp); }
.sum small { font: 500 14px/1.4 var(--body); color: var(--dim); display: block; text-align: right; }
.sheet .wide-btn { width: 100%; margin-top: 18px; min-height: 54px; }
.empty { margin-top: 12px; color: var(--dim); }
.label { font-weight: 600; font-size: 14.5px; margin-top: 18px; }
.tables { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px; scrollbar-width: none; margin: 0 -2px; scroll-snap-type: x proximity; }
.tables::-webkit-scrollbar { display: none; }
.tables button { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(246, 239, 228, .34); font-weight: 600; scroll-snap-align: center; font-variant-numeric: tabular-nums; }
.tables .on { background: var(--cream); color: var(--mid); border-color: var(--cream); }
.tables.need { animation: need .5s; }
@keyframes need { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.reasons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.reasons button { min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(246, 239, 228, .34); font-weight: 500; font-size: 14.5px; transition: background .2s, color .2s; }
.reasons .on { background: var(--cream); color: var(--mid); border-color: var(--cream); font-weight: 600; }
.drum-wrap { display: grid; justify-items: center; margin-top: 18px; position: relative; }
.drum { width: min(58vw, 230px); aspect-ratio: 1; border-radius: 50%; position: relative; transition: transform .22s var(--expo); touch-action: manipulation; }
.drum svg { width: 100%; height: 100%; display: block; }
.drum b { position: absolute; inset: 0; display: grid; place-content: center; font: 400 1.6rem/1.04 var(--disp); color: var(--mid); text-align: center; padding: 0 22%; }
.drum .skin { transform-box: fill-box; transform-origin: center; }
.drum-glow { position: absolute; inset: 12%; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(226, 164, 92, .9), rgba(226, 164, 92, .38) 48%, transparent 72%); }
.drum b { z-index: 1; }
.ring { position: fixed; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid var(--crema); pointer-events: none; }
.ring.alt { border: 1.5px dashed rgba(246, 239, 228, .85); }
.ring.fat { border-width: 5px; }
.spark { position: fixed; left: 0; top: 0; z-index: 5; width: 14px; height: 12px; margin: -6px 0 0 -7px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--crema); pointer-events: none; }
.spark.cream { background: var(--cream); }
.spark.dark { background: #B86A35; }
.track { list-style: none; padding: 0; margin-top: 20px; }
.track li { display: flex; gap: 12px; padding-bottom: 20px; position: relative; opacity: .42; transition: opacity .5s; font-weight: 500; }
.track li.on { opacity: 1; }
.track li::before { content: ""; flex: none; margin-top: 5px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--crema); transform: scale(.55); transition: transform .6s var(--expo); }
.track li.on::before { transform: none; }
.track li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 26px; bottom: 2px; width: 2px; background: rgba(246, 239, 228, .25); }
.demo { font-size: 13.5px; color: var(--dim); margin-top: 12px; }
.note-field { margin-top: 10px; }
.text-link { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* Toute la carte */
.all-cat { font: 400 1.5rem/1.2 var(--disp); margin-top: 22px; color: var(--crema); }
.all-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid rgba(246, 239, 228, .15); }
.all-row span:last-child { white-space: nowrap; font-weight: 500; }
.all-row small { display: block; font-size: 13.5px; color: var(--dim); }

.rise { animation: rise .9s var(--expo) both; }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }


/* Choisis pour moi : plein écran, trois questions */
dialog.guide { width: 100vw; height: 100dvh; inset: 0; margin: 0; overflow-y: auto; background: #1B0A05; isolation: isolate; }
dialog.guide::before { content: ""; position: fixed; inset: -40px; z-index: -1; background: var(--g-bg) center / cover no-repeat; filter: blur(26px) brightness(.38) saturate(1.1); transform: scale(1.1); transition: opacity .6s; }
.g-prog { position: absolute; top: max(26px, calc(env(safe-area-inset-top) + 14px)); left: 20px; display: flex; gap: 5px; }
.g-prog i { width: 16px; height: 14px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: rgba(246, 239, 228, .22); transition: background .5s; }
.g-prog i.on { background: var(--crema); }
.g-back { position: absolute; top: max(16px, calc(env(safe-area-inset-top) + 4px)); left: 112px; min-height: 44px; font-weight: 600; font-size: 14.5px; color: var(--dim); }
.g-in { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(84px + env(safe-area-inset-top)) 20px calc(34px + env(safe-area-inset-bottom)); max-width: 620px; margin: 0 auto; }
.g-in h2 { font-size: clamp(2.3rem, 10.5vw, 3.8rem); line-height: 1.02; margin-top: 8px; }
.g-budget { margin-top: 30px; }
.g-budget output { display: block; font: 400 clamp(3.2rem, 16vw, 5.4rem)/1 var(--disp); color: var(--crema); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.g-budget p { margin-top: 6px; font-weight: 600; min-height: 26px; }
.g-budget input { --f: .41; -webkit-appearance: none; appearance: none; width: 100%; height: 56px; margin-top: 18px; background: transparent; touch-action: pan-y; cursor: pointer; }
.g-budget input::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--crema) calc(var(--f) * 100%), rgba(246, 239, 228, .2) 0); }
.g-budget input::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(246, 239, 228, .2); }
.g-budget input::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--crema); }
.g-budget input::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; margin-top: -16px; border-radius: 50%; background: var(--cream) url("../assets/logo.png") center / 84% no-repeat; box-shadow: 0 6px 18px rgba(0, 0, 0, .55), 0 0 0 6px rgba(226, 164, 92, .25); }
.g-budget input::-moz-range-thumb { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream) url("../assets/logo.png") center / 84% no-repeat; box-shadow: 0 6px 18px rgba(0, 0, 0, .55); }
.g-ticks { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.g-next { margin-top: 30px; min-height: 56px; align-self: flex-start; padding: 0 28px; }
.g-opts { display: grid; gap: 10px; margin-top: 26px; }
.g-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 10px 16px 10px 10px; border-radius: 18px; text-align: left; background: rgba(246, 239, 228, .07); border: 1px solid rgba(246, 239, 228, .16); overflow: hidden; transition: background .3s, border-color .3s, transform .4s var(--expo); animation: rise .8s var(--expo) both; animation-delay: calc(var(--i) * 70ms); }
.g-opt img, .g-none { flex: none; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; transition: transform .6s var(--expo); }
.g-none { border: 1.5px dashed rgba(246, 239, 228, .35); }
.g-opt b { display: block; font: 400 1.45rem/1.1 var(--disp); }
.g-opt small { display: block; font-size: 14px; color: var(--dim); margin-top: 2px; }
.g-opt:hover { background: rgba(246, 239, 228, .12); }
.g-opt:hover img { transform: scale(1.08) rotate(-4deg); }
.g-opt.picked { background: var(--crema); color: var(--coffee); border-color: var(--crema); transform: scale(.98); }
.g-opt.picked small { color: rgba(42, 14, 7, .75); }
.g-result { margin-top: 10px; }
.g-plates { display: flex; height: 190px; align-items: center; justify-content: center; margin-bottom: 18px; }
.g-plate { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 24px 46px -16px #000, 0 0 0 4px rgba(246, 239, 228, .9); animation: plate-in 1s var(--expo) both; animation-delay: calc(var(--i) * 140ms); }
.g-plate + .g-plate { margin-left: -38px; }
.g-plate img { width: 100%; height: 100%; object-fit: cover; }
@keyframes plate-in { from { transform: translateY(40px) scale(.7) rotate(-20deg); opacity: 0; } }
.g-result h2 { text-align: center; }
.g-result h2 em { font-style: normal; color: var(--crema); }
.g-why { text-align: center; margin-top: 10px; color: var(--dim); }
.g-sum { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.g-sum span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(246, 239, 228, .3); font-weight: 600; font-variant-numeric: tabular-nums; }
.g-sum span:first-child { background: var(--cream); color: var(--mid); border-color: var(--cream); }
.g-take { width: 100%; margin-top: 22px; min-height: 58px; font-size: 16px; }
.g-alt-t { margin-top: 28px; font-weight: 600; color: var(--dim); }
.g-alts { display: grid; gap: 8px; margin-top: 10px; }
.g-alt { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(246, 239, 228, .06); text-align: left; }
.g-alt .duo { display: flex; flex: none; }
.g-alt .duo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #1B0A05; }
.g-alt .duo img + img { margin-left: -14px; }
.g-alt b { display: block; font-weight: 600; line-height: 1.25; }
.g-alt small { color: var(--crema); font-weight: 600; }
.g-again { align-self: center; margin-top: 18px; }

/* Le petit bouton du milieu, les notifications et le ticket */
.live-pill { position: relative; min-height: 54px; min-width: 54px; border-radius: 999px; display: inline-grid; grid-auto-flow: column; align-items: center; justify-content: center; gap: 8px; background: var(--mid); border: 1px solid rgba(246, 239, 228, .28); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .85); font-weight: 600; font-size: 14.5px; transition: transform .4s var(--expo), background .3s; }
.live-pill.has-order { padding: 0 16px 0 14px; }
.live-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--crema); box-shadow: 0 0 0 0 rgba(226, 164, 92, .6); animation: pulse 1.6s infinite; }
.live-pill.st-ready { background: var(--crema); color: var(--coffee); border-color: var(--crema); }
.live-pill.st-ready .dot { background: var(--coffee); }
.live-pill .badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--crema); color: var(--coffee); font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--night); animation: bump .55s var(--expo); }
.live-pill.st-ready .badge { background: var(--cream); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(226, 164, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 164, 92, 0); } }
.dock.full .call-pill span { display: none; }
.dock.full .call-pill { padding: 0 10px; }
.toasts { position: fixed; z-index: calc(var(--z-curtain) - 1); top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 440px; width: 100%; padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--cream); color: var(--mid); text-align: left; font-weight: 600; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8); }
.toast img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.ticket { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); width: 180px; padding: 16px 14px 18px; background: var(--cream); color: var(--mid); text-align: center; pointer-events: none; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 90% 94%, 80% 100%, 70% 94%, 60% 100%, 50% 94%, 40% 100%, 30% 94%, 20% 100%, 10% 94%, 0 100%); }
.ticket b { display: block; font: 400 1.6rem/1 var(--disp); }
.ticket span { font-size: 13px; font-weight: 600; }

/* Ma commande + le chat */
dialog.sheet.tall { height: 90dvh; display: none; flex-direction: column; overflow: hidden; padding-bottom: 0; }
dialog.sheet.tall[open] { display: flex; }
.o-head { display: flex; justify-content: space-between; gap: 12px; padding-right: 58px; }
.o-status { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.02; margin-top: 4px; }
.o-status.st-ready { color: var(--crema); }
.o-eta { color: var(--dim); font-size: 14.5px; margin-top: 4px; }
.o-plates { display: flex; flex: none; align-self: center; }
.o-plates img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--coffee); }
.o-plates img + img { margin-left: -16px; }
.o-track { list-style: none; padding: 0; margin: 18px 0 4px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.o-track::before, .o-track::after { content: ""; position: absolute; top: 6px; left: 12.5%; height: 2px; background: rgba(246, 239, 228, .2); right: 12.5%; }
.o-track::after { background: var(--crema); right: auto; width: calc(75% * var(--p)); transition: width 1s var(--expo); }
.o-track li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--dim); line-height: 1.2; }
.o-track li i { width: 16px; height: 14px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #5A3A2E; transition: background .5s, transform .6s var(--expo); }
.o-track li.on { color: var(--cream); }
.o-track li.on i { background: var(--crema); }
.o-track li.now i { transform: scale(1.35); animation: tri-pulse 1.4s ease-in-out infinite; }
@keyframes tri-pulse { 50% { transform: scale(1.1); } }
.o-items { margin-top: 10px; font-size: 14px; border-top: 1px solid rgba(246, 239, 228, .14); }
.o-items summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--dim); }
.o-items p { display: flex; justify-content: space-between; padding: 3px 0; }
.o-items .o-note { color: var(--dim); font-style: italic; }
#oDone { margin-top: 8px; min-height: 48px; }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 12px -20px 0; padding: 0 20px; border-top: 1px solid rgba(246, 239, 228, .14); }
.c-who { display: flex; align-items: center; gap: 10px; padding: 12px 0 8px; }
.c-who img { width: 34px; height: 34px; border-radius: 50%; }
.c-who b { display: block; font-size: 14.5px; line-height: 1.2; }
.c-who small { font-size: 12.5px; color: var(--dim); }
.c-list { flex: 1; min-height: 90px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 6px 0 10px; overscroll-behavior: contain; }
.c-empty { margin: auto 0; color: var(--dim); text-align: center; padding: 10px 20px; font-size: 14.5px; }
.bub { max-width: 82%; padding: 10px 14px 7px; border-radius: 18px; }
.bub.enter { animation: rise .5s var(--expo) both; }
.bub p { line-height: 1.38; overflow-wrap: anywhere; }
.bub time { display: block; font-size: 11px; opacity: .62; margin-top: 3px; }
.bub.me { align-self: flex-end; background: var(--crema); color: var(--coffee); border-bottom-right-radius: 5px; }
.bub.them { align-self: flex-start; background: #4A2015; border-bottom-left-radius: 5px; }
.c-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: #4A2015; margin-bottom: 8px; }
.c-typing[hidden] { display: none; }
.c-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: dots 1.1s infinite; }
.c-typing i:nth-child(2) { animation-delay: .15s; } .c-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { transform: translateY(-5px); opacity: 1; } 0%, 60%, 100% { opacity: .45; } }
.c-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.c-quick::-webkit-scrollbar { display: none; }
.c-quick button { flex: none; min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(246, 239, 228, .3); font-size: 13.5px; font-weight: 500; }
.c-form { display: flex; gap: 8px; padding: 4px 0 calc(14px + env(safe-area-inset-bottom)); }
.c-form .field { margin: 0; border-radius: 999px; padding: 12px 18px; }
.c-form button { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--crema); color: var(--coffee); display: grid; place-items: center; }

/* Le plateau : où es-tu, et envoyer */
.tables .counter { width: auto; padding: 0 16px; border-radius: 999px; }
.label.warn { color: var(--crema); }
.field.note { min-height: 0; height: 50px; margin-top: 14px; resize: none; }
.send-btn { justify-content: space-between; padding: 0 22px; }
.send-btn b { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  h1 { font-size: clamp(3rem, 4.9vw, 6rem); white-space: nowrap; }
  .cup-wrap { left: 42vw; }
  .cup-wrap::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22%; z-index: 1; background: linear-gradient(90deg, #0C0403, transparent); pointer-events: none; }
  .stir { top: 18%; bottom: 4%; }
  .hero-pin::after { display: none; }
  .ghost { top: 60%; left: 22%; font-size: 24vw; }
  .hero-copy { left: 5vw; right: auto; width: 42vw; top: 24%; }
  .hint { left: 42vw; bottom: 40px; }
  .guide-cta { grid-template-columns: 1fr 1fr; align-items: center; padding: 100px 6vw; }
  .gc-fan { height: 340px; }
  .finale-in { padding-inline: 6vw; padding-top: 120px; }
  .rail { right: auto; left: 50%; transform: translate(-50%, -8px); width: max-content; max-width: calc(100vw - 160px); }
  .past-hero .rail { transform: translateX(-50%); }
  dialog.detail { display: none; }
  dialog.detail[open] { display: grid; grid-template-columns: 56vw 1fr; overflow: hidden; }
  .d-photo { height: 100dvh; }
  .d-photo::after { display: none; }
  .d-body { margin: 0; padding: 12vh 4vw 40px; overflow-y: auto; }
  .d-nav { display: grid; }
  dialog.sheet { border-radius: 18px; margin: auto; inset: 0; }
  dialog.sheet.tall { height: min(86dvh, 820px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .curtain { display: none; }
  .hint { display: none; }
}

/* ---------- Pages pleines : le plateau et le chat avec l'équipe ---------- */
dialog.page { position: fixed; inset: 0; top: var(--vvt, 0px); width: 100vw; height: var(--vvh, 100dvh); margin: 0; display: none; flex-direction: column; overflow: hidden; background: var(--coffee); --pad: max(18px, calc((100vw - 640px) / 2)); }
dialog.page[open] { display: flex; }
dialog.page::backdrop { background: var(--night); }
.pg-top { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px; padding-left: max(8px, calc(var(--pad) - 10px)); border-bottom: 1px solid rgba(246, 239, 228, .1); background: var(--coffee); }
.pg-top h2 { font-size: 1.7rem; line-height: 1.1; flex: 1; padding: 0; }
.pg-count { font-size: 13.5px; font-weight: 600; color: var(--dim); }
dialog.page .x.pg-back { position: static; flex: none; width: 44px; height: 44px; background: transparent; border: 0; }
dialog.page .x.pg-back:active { background: rgba(246, 239, 228, .08); }
.pg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px var(--pad) 18px; }
.pg-foot { flex: none; padding: 10px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: var(--coffee); border-top: 1px solid rgba(246, 239, 228, .1); display: grid; gap: 10px; }
.pg-body .empty { margin: 40px 0 18px; color: var(--dim); text-align: center; }
.pg-body .wide-btn { width: 100%; min-height: 54px; }
.pg-body .line-item:last-child { border-bottom: 0; }
.tr-items { border-bottom: 1px solid rgba(246, 239, 228, .15); }

/* Le mot pour le barista, comme un message */
.nb-ask { display: flex; align-items: flex-end; gap: 8px; margin-top: 22px; }
.nb-ask img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.nb-ask p { background: #4A2015; padding: 9px 14px; border-radius: 18px 18px 18px 5px; font-size: 14.5px; line-height: 1.38; max-width: 82%; }
.nb { display: flex; align-items: flex-end; min-height: 46px; padding: 0 6px 0 18px; border-radius: 24px; background: rgba(246, 239, 228, .08); border: 1px solid rgba(246, 239, 228, .16); transition: border-color .25s, background .25s; }
.nb:focus-within { border-color: var(--crema); background: rgba(246, 239, 228, .11); }
.nb textarea { flex: 1; min-width: 0; height: 44px; min-height: 44px; max-height: 132px; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--cream); font: 400 16px/1.25 var(--body); resize: none; }
.nb textarea::placeholder { color: var(--dim); opacity: 1; }
.pg-foot .send-btn { width: 100%; min-height: 54px; display: flex; align-items: center; }

/* Le chat */
.c-top img { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.c-top span { flex: 1; min-width: 0; }
.c-top b { display: block; font-size: 16px; line-height: 1.2; }
.c-top small { display: block; font-size: 12.5px; color: var(--dim); }
dialog.page .c-list { flex: 1; min-height: 0; padding: 14px var(--pad) 10px; }
dialog.page .c-typing { margin: 0; }
.c-foot { gap: 8px; }
.c-foot .c-quick { padding-bottom: 0; }
.c-foot .c-form { padding: 0; }
.c-foot .c-form .field { background: rgba(246, 239, 228, .08); border-color: rgba(246, 239, 228, .16); min-height: 48px; }
.c-foot .c-form .field:focus { border-color: var(--crema); outline: 0; }

/* La commande en cours : une petite bande, on la déplie si on veut */
.ot-wrap { flex: none; padding: 10px var(--pad) 0; }
.ot { border-radius: 16px; background: rgba(246, 239, 228, .06); border: 1px solid rgba(246, 239, 228, .12); transition: background .4s, border-color .4s; }
.ot summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.ot summary::-webkit-details-marker { display: none; }
.ot-tris { display: flex; gap: 3px; flex: none; }
.ot-tris i { width: 11px; height: 10px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #5A3A2E; transition: background .5s; }
.ot-tris i.on { background: var(--crema); }
.ot-tris i.now { animation: tri-pulse 1.4s ease-in-out infinite; }
.ot-txt { flex: 1; min-width: 0; }
.ot-txt b { display: block; font-size: 15px; line-height: 1.2; }
.ot-txt small, .ot-no small { display: block; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-no { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ot-chev { flex: none; color: var(--dim); transition: transform .35s var(--expo); }
.ot[open] .ot-chev { transform: rotate(180deg); }
.ot-more { padding: 2px 12px 10px; font-size: 14px; border-top: 1px solid rgba(246, 239, 228, .1); }
.ot-more p { display: flex; align-items: center; gap: 10px; padding: 6px 0 0; }
.ot-more p span:nth-child(2) { flex: 1; }
.ot-more img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ot-more .o-note { color: var(--dim); font-style: italic; }
.ot-more .ot-tot { justify-content: space-between; font-weight: 600; }
.ot-more .ot-tot span:nth-child(2) { flex: none; }
.ot.st-ready { background: var(--crema); color: var(--coffee); border-color: var(--crema); }
.ot.st-ready small, .ot.st-ready .ot-chev, .ot.st-ready .o-note { color: rgba(42, 14, 7, .72); }
.ot.st-ready .ot-tris i { background: var(--coffee); }
.ot.st-ready .ot-more { border-color: rgba(42, 14, 7, .15); }
.ot-done { width: 100%; min-height: 50px; margin-top: 8px; font-size: 15.5px; }
.ot-done:disabled { opacity: .6; }
.ot-auto { margin-top: 6px; font-size: 12.5px; color: var(--dim); text-align: center; }
/* Remise : la commande est entre les mains du client, il confirme */
.ot.st-handed { border-color: rgba(226, 164, 92, .55); background: rgba(226, 164, 92, .1); }
.ot.st-handed .ot-tris i { background: var(--crema); }
.live-pill.st-handed .dot { animation: none; }

/* Les onglets « N° … » : une discussion par commande en cours */
.c-tabs { flex: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--pad) 0; }
.c-tabs::-webkit-scrollbar { display: none; }
.c-tabs button { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(246, 239, 228, .22); color: var(--dim); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .25s, color .25s, border-color .25s; }
.c-tabs button.on { background: var(--cream); color: var(--coffee); border-color: var(--cream); }
.c-tabs button i { width: 9px; height: 8px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: currentColor; opacity: .55; }
.c-tabs button.st-ready i, .c-tabs button.st-handed i { background: var(--crema); opacity: 1; }
.c-tabs button.on.st-ready i, .c-tabs button.on.st-handed i { background: #9A5A22; }
.c-tabs .badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--crema); color: var(--coffee); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Le bouton du chat, bien visible */
.live-pill { padding: 0 16px 0 13px; }
.live-pill .lt { white-space: nowrap; }
@media (max-width: 370px) { .dock.full .live-pill:not(.has-order) .lt { display: none; } .dock.full .live-pill:not(.has-order) { padding: 0; } }

@media (min-width: 900px) {
  .pg-top h2 { font-size: 2rem; }
}

/* ---------- Menu réel (Supabase), 2026-11-13 : À emporter, frais, erreurs, commande annulée ---------- */
.tables button.emp { width: auto; padding: 0 18px 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; border-color: var(--crema); color: var(--crema); }
.tables button.emp svg { width: 19px; height: 19px; }
.tables button.emp.on { background: var(--cream); color: var(--mid); border-color: var(--cream); }
.label-sub { font-size: 14px; color: var(--dim); margin-top: 2px; }
.fee-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(226, 164, 92, .12); border: 1px solid rgba(226, 164, 92, .35); font-size: 14px; line-height: 1.45; }
.fee-note svg { width: 19px; height: 19px; color: var(--crema); flex: none; margin-top: 1px; }
.fee-note b { color: var(--crema); }
.sum-lines { margin-top: 18px; display: grid; gap: 6px; }
.sum-lines p { display: flex; justify-content: space-between; font-size: 15px; color: var(--dim); }
.sum-lines p span:last-child { font-variant-numeric: tabular-nums; color: var(--cream); }
.sum-lines p.fee span { color: var(--crema) !important; font-weight: 600; }
.sum-lines + .sum { border-top: 1px solid rgba(246, 239, 228, .24); padding-top: 12px; margin-top: 10px; }
.send-err { color: #F0A08A; font-size: 13.5px; font-weight: 600; text-align: center; }
.send-err:empty { display: none; }
.pg-foot .send-err { margin-bottom: 8px; }
#callSheet .send-err { margin-top: 10px; }
.send-btn.busy { opacity: .7; }
.ot-more .ot-fee { justify-content: space-between; color: var(--crema); }
.ot-more .ot-fee span:nth-child(2) { flex: none; }
.ot-cancel { margin-top: 8px; font-size: 14px; color: var(--dim); text-align: center; }
.ot.st-cancelled .ot-tris i { background: #5A3A2E; }
.live-pill[hidden] { display: none; }
.fact.new { border-top-color: var(--crema); }
.fact.new span:first-child { color: var(--crema); display: inline-flex; gap: 8px; align-items: center; }
.fact.new svg { width: 18px; height: 18px; flex: none; }
.fact.new small { display: block; font-size: 12.5px; color: var(--dim); font-weight: 400; }
.new-tag { display: inline-block; margin-left: 2px; font: 700 10px/1 var(--body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; background: var(--crema); color: var(--mid); padding: 3px 6px; border-radius: 99px; }
/* Pas de connexion au tout premier chargement : message et bouton sur le rideau */
.cur-net { font-size: 15px; color: var(--dim); text-align: center; max-width: 26ch; }
#netRetry { pointer-events: auto; }
