/* Reglady — feuille de style unique (pas de build). Couleurs reprises du logo. */
:root {
  --ink: #2b0d2b;
  --ink-2: #4a2449;
  --ink-soft: #6f5a6e;
  --cream: #faebd7;
  --cream-2: #fdf5ea;
  --bg: #fffaf4;
  --card: #ffffff;
  --gold: #c8a66b;
  --gold-dark: #9c7a3f;
  --line: #eadfd2;
  --green: #2f8f5b;
  --green-bg: #e6f4ec;
  --red: #b3261e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 13, 43, .06), 0 12px 32px -12px rgba(43, 13, 43, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fredoka", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__word { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em; }
.logo--light { color: #fff; --logo-ink: #6b4468; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 1rem/1 var(--font); padding: 15px 24px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(43, 13, 43, .6); }
.btn--primary:hover { background: var(--ink-2); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--lg { padding: 19px 30px; font-size: 1.08rem; }
.btn--sm { padding: 10px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* En-tête public */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 244, .88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__login { text-decoration: none; font-weight: 600; padding: 10px 12px; }
@media (max-width: 900px) { .site-nav { display: none; } }
@media (max-width: 520px) { .site-header__login { display: none; } .site-header .btn { padding: 11px 16px; font-size: .9rem; } .logo__word { font-size: 1.35rem; } }

/* Hero */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 166, 107, .22), transparent 65%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--gold-dark);
  background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold-dark); display: inline-block; position: relative; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .16em; background: var(--cream); z-index: -1; border-radius: 4px; }
.hero__lead { font-size: 1.2rem; color: var(--ink-2); max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 28px; }
.hero__cta-note { font-size: .95rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.zero-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.zero-chips li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; font-weight: 600; font-size: .95rem; }
.zero-chips svg { color: var(--green); flex: none; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 32px; } }

/* Téléphone de démonstration */
/* Scène 3D : perspective + inclinaison pilotée par --rx / --ry (souris, voir reglady.js) */
.phone-stage { --rx: 8deg; --ry: -20deg; --sx: -20; perspective: 1500px; position: relative; padding: 10px 0 30px; }
.phone-stage__floor { position: absolute; left: 50%; bottom: -6px; width: 260px; height: 46px; margin-left: -130px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 13, 43, .38), rgba(43, 13, 43, 0)); transform: translateX(calc(var(--sx) * -1.2px)); }
.phone { width: 300px; max-width: 100%; aspect-ratio: 71.6 / 147.6; display: flex; margin: 0 auto; border-radius: 50px; padding: 11px; position: relative;
  background: linear-gradient(135deg, #4a2147 0%, #2b0d2b 38%, #1e081e 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 2px 1px rgba(255, 255, 255, .18);
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(2deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1); animation: phone-float 6s ease-in-out infinite; }
.phone-stage.is-tilting .phone { transition: transform .12s linear; }
@keyframes phone-float { 50% { translate: 0 -10px; } }
.phone__depth, .phone__depth span { position: absolute; inset: 0; border-radius: inherit; transform-style: preserve-3d; pointer-events: none; }
.phone__depth span { transform: translateZ(calc(var(--z) * -1px));
  background: linear-gradient(135deg, #5b2c57, #1a061a 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.phone__depth span:nth-child(14) { box-shadow: 0 50px 70px -30px rgba(43, 13, 43, .6); }
.phone__btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #1a061a, #5b2c57); transform: translateZ(-7px); }
.phone__btn--power { right: -3px; top: 150px; height: 78px; }
.phone__btn--vol1 { left: -3px; top: 120px; height: 46px; }
.phone__btn--vol2 { left: -3px; top: 176px; height: 46px; }
.phone__screen { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); border-radius: 40px; overflow: hidden; padding: 12px 16px 24px; position: relative;
  transform: translateZ(1px); box-shadow: inset 0 0 0 1px rgba(43, 13, 43, .25); }
.phone__glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 28%, rgba(255, 255, 255, 0) 46%);
  mix-blend-mode: soft-light; transform: translateX(calc(var(--sx) * 1.5px)); }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; transition: none; } }
.phone__status { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 30px; margin: 0 4px 12px; font-size: .78rem; font-weight: 700; }
.phone__time { width: 64px; padding-left: 8px; }
.phone__island { width: 92px; height: 27px; border-radius: 999px; background: #0d020d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.phone__sys { width: 64px; display: flex; justify-content: flex-end; align-items: center; gap: 5px; padding-right: 6px; }
.phone__signal { width: 16px; height: 10px; background: linear-gradient(to right, currentColor 0 3px, transparent 3px 4px, currentColor 4px 7px, transparent 7px 8px, currentColor 8px 11px, transparent 11px 12px, currentColor 12px 15px, transparent 15px); clip-path: polygon(0 75%, 25% 75%, 25% 50%, 50% 50%, 50% 25%, 75% 25%, 75% 0, 100% 0, 100% 100%, 0 100%); }
.phone__battery { width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3.5px; position: relative; padding: 1.5px; box-sizing: border-box; }
.phone__battery::before { content: ""; display: block; height: 100%; width: 75%; background: currentColor; border-radius: 1.5px; }
.phone__battery::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }
.phone__home { position: absolute; left: 50%; bottom: 8px; width: 112px; height: 4.5px; margin-left: -56px; border-radius: 999px; background: var(--ink); opacity: .85; }
.phone__resto { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.phone__resto strong { font-family: var(--display); font-size: 1.15rem; }
.phone__table { background: var(--cream); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 5px 10px; border-radius: 999px; }
.phone__items { background: #fff; border-radius: 16px; padding: 6px 14px; margin-bottom: 12px; font-size: .9rem; }
.phone__items div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.phone__items div:last-child { border-bottom: 0; font-weight: 700; }
.phone__split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.phone__split span { text-align: center; font-size: .78rem; font-weight: 600; padding: 8px 4px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.phone__split .is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.phone__tip { font-size: .8rem; color: var(--ink-soft); margin-bottom: 6px; }
.phone__tips { display: flex; gap: 6px; margin-bottom: 14px; }
.phone__tips span { flex: 1; text-align: center; font-size: .8rem; font-weight: 600; padding: 7px 0; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.phone__tips .is-on { border-color: var(--gold); background: #fbf3e4; }
.phone__pay { display: block; margin-top: auto; text-align: center; background: var(--ink); color: #fff; font-weight: 700; padding: 14px; border-radius: 14px; }
.phone__fine { text-align: center; font-size: .7rem; color: var(--ink-soft); margin-top: 8px; }
.phone__badge { position: absolute; left: -64px; bottom: -58px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 24px 40px -18px rgba(43, 13, 43, .45), var(--shadow); display: flex; align-items: center; gap: 10px; transform: translateZ(70px) rotate(-4deg); font-size: .85rem; }
.phone__badge b { display: block; font-size: 1rem; }
.phone__badge .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex: none; }

/* ===== Scène 3D du hero : plaque QR sur la table + téléphone qui scanne, puis paie (boucle de 12 s) ===== */
.scan-scene { --rx: 4deg; --ry: -14deg; --sx: -14; --loop: 12s; perspective: 1600px; height: 650px; padding: 0; }
/* Deux calques 3D indépendants (plaque, téléphone) peints dans l'ordre : le téléphone passe toujours devant,
   même sur Safari / iOS qui trie mal les éléments 3D qui se croisent. L'inclinaison s'applique à chaque calque. */
.scan-scene__world { position: absolute; inset: 0; perspective: 1600px; transform-style: flat; }
.scene-layer { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.scene-layer--plate { z-index: 1; }
.scene-layer--phone { z-index: 2; }
.scan-scene.is-tilting .scene-layer { transition: transform .12s linear; }

/* Plaque posée sur la table */
.plate { position: absolute; left: 50%; bottom: 0; width: 330px; height: 330px; margin-left: -110px; transform-style: preserve-3d;
  transform: translateY(40px) rotateX(60deg) rotateZ(-20deg); }
.plate__depth, .plate__depth span { position: absolute; inset: 0; border-radius: 34px; transform-style: preserve-3d; }
.plate__depth span { transform: translateZ(calc(var(--z) * -1px)); background: linear-gradient(135deg, #e9d6bc, #b89d79); }
.plate__top { position: absolute; inset: 0; border-radius: 34px; padding: 22px 22px 18px; display: grid; justify-items: center; align-content: space-between;
  background: linear-gradient(145deg, #fffaf2, #f6e7d2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(43, 13, 43, .06); }
.plate__brand { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.plate__qr { width: 128px; height: 128px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 2px 0 rgba(43, 13, 43, .08); }
.plate__qr svg, .pv-scan__qr svg { width: 100%; height: 100%; display: block; }
.plate__cta { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.plate__table { font-size: .75rem; font-weight: 700; background: var(--ink); color: #fff; padding: 4px 12px; border-radius: 999px; }
.plate__shadow { position: absolute; inset: 6% -4% -10% 4%; border-radius: 40px; background: rgba(43, 13, 43, .28); filter: blur(22px);
  transform: translateZ(-14px); }

/* Téléphone au-dessus de la plaque */
.scan-scene .phone { position: absolute; left: 50%; top: 34px; width: 256px; margin-left: -190px; animation: scene-phone var(--loop) infinite cubic-bezier(.45, 0, .25, 1);
  transform: translateZ(70px) rotateZ(4deg); transition: none; }
.scan-scene .phone__screen { padding: 10px 14px 22px; border-radius: 36px; }
/* Safari iOS ne rogne pas les coins arrondis d'un écran transformé en 3D : on force le découpage, et l'appareil photo a ses propres coins */
.scan-scene .phone__screen { -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); isolation: isolate; }
.scan-scene .phone { border-radius: 46px; padding: 10px; }
.scan-scene .phone__split span { font-size: .72rem; padding: 7px 2px; }
.scan-scene .phone__items { font-size: .84rem; }
@keyframes scene-phone {
  0%, 4%    { transform: translate3d(-10px, 40px, 120px) rotateX(38deg) rotateZ(-6deg); }   /* penché vers la plaque */
  20%       { transform: translate3d(-10px, 34px, 120px) rotateX(36deg) rotateZ(-6deg); }
  30%, 92%  { transform: translate3d(0, 0, 70px) rotateX(0deg) rotateZ(4deg); }            /* redressé, face au client */
  100%      { transform: translate3d(-10px, 40px, 120px) rotateX(38deg) rotateZ(-6deg); }
}

/* Barre d'état : blanche sur l'appareil photo, foncée ensuite */
.scan-scene .phone__status { animation: status-tone var(--loop) infinite; }
@keyframes status-tone { 0%, 24% { color: #fff; } 28%, 96% { color: var(--ink); } 100% { color: #fff; } }

/* Écrans successifs */
.phone__views { position: relative; flex: 1; min-height: 0; }
.pv { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; }
.pv--scan { animation: pv-scan var(--loop) infinite; }
.pv--bill { animation: pv-bill var(--loop) infinite; }
.pv--paid { animation: pv-paid var(--loop) infinite; }
@keyframes pv-scan { 0%, 24% { opacity: 1; } 28%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pv-bill { 0%, 25% { opacity: 0; transform: translateY(14px); } 30%, 70% { opacity: 1; transform: none; } 74%, 100% { opacity: 0; } }
@keyframes pv-paid { 0%, 71% { opacity: 0; transform: scale(.94); } 75%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* 1. Appareil photo */
.pv--scan { border-radius: 36px; margin: -52px -14px -22px; padding: 70px 22px 30px; align-items: center; gap: 18px; color: #fff;
  background: radial-gradient(120% 70% at 50% 40%, #6d5a4a, #2a1f1a 70%); }
.pv-scan__frame { position: relative; width: 170px; height: 170px; margin-top: 40px; display: grid; place-items: center; }
.pv-scan__frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; border-radius: 6px; }
.pv-scan__frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.pv-scan__frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.pv-scan__frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.pv-scan__frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.pv-scan__qr { width: 118px; height: 118px; padding: 6px; background: #fff; border-radius: 10px; transform: perspective(300px) rotateX(24deg) rotate(-8deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.pv-scan__line { position: absolute; left: 10px; right: 10px; height: 2px; top: 12%; background: var(--gold); box-shadow: 0 0 14px 3px rgba(200, 166, 107, .8);
  animation: scan-line var(--loop) infinite; }
@keyframes scan-line { 0% { top: 12%; } 6% { top: 86%; } 12% { top: 14%; } 17%, 100% { top: 50%; opacity: 0; } }
.pv-scan__frame i { animation: scan-lock var(--loop) infinite; }
@keyframes scan-lock { 0%, 15% { border-color: #fff; transform: none; } 18%, 100% { border-color: var(--gold); transform: scale(.9); } }
.pv-scan__hint { font-size: .8rem; font-weight: 600; background: rgba(0, 0, 0, .45); padding: 6px 12px; border-radius: 999px; }
.pv-scan__found { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: auto; background: rgba(255, 255, 255, .95); color: var(--ink);
  font-size: .78rem; font-weight: 600; padding: 10px 12px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  opacity: 0; animation: scan-found var(--loop) infinite; }
.pv-scan__found b { margin-left: auto; color: #1a73e8; }
@keyframes scan-found { 0%, 16% { opacity: 0; transform: translateY(12px); } 19%, 26% { opacity: 1; transform: none; } 30%, 100% { opacity: 0; } }

/* 2. Addition : le pourboire se sélectionne, puis le bouton est pressé */
.pv--bill .phone__pay { animation: pay-press var(--loop) infinite; }
@keyframes pay-press { 0%, 60% { transform: none; box-shadow: none; } 63% { transform: scale(.95); box-shadow: 0 0 0 6px rgba(200, 166, 107, .35); } 67%, 100% { transform: none; box-shadow: none; } }
.pv--bill .phone__tips .is-on { animation: tip-pick var(--loop) infinite; }
@keyframes tip-pick { 0%, 44% { border-color: var(--line); background: #fff; } 47%, 100% { border-color: var(--gold); background: #fbf3e4; } }

/* 3. Paiement accepté */
.pv--paid { align-items: center; justify-content: center; text-align: center; gap: 6px; }
.pv-paid__check { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green); margin-bottom: 10px;
  animation: paid-pop var(--loop) infinite; }
@keyframes paid-pop { 0%, 73% { transform: scale(.4); } 77% { transform: scale(1.12); } 80%, 100% { transform: none; } }
.pv--paid strong { font-family: var(--display); font-size: 1.35rem; }
.pv--paid > span:not(.pv-paid__check) { color: var(--ink-soft); font-size: .9rem; }
.pv-paid__left { margin-top: 18px; font-size: .78rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }

/* Badge « serveur prévenu » à la fin */
.scan-scene .phone__badge { left: -70px; bottom: 30px; opacity: 0; animation: scene-badge var(--loop) infinite; }
@keyframes scene-badge { 0%, 76% { opacity: 0; transform: translateZ(70px) translateY(16px) rotate(-4deg); } 80%, 93% { opacity: 1; transform: translateZ(70px) rotate(-4deg); } 97%, 100% { opacity: 0; transform: translateZ(70px) rotate(-4deg); } }

@media (max-width: 520px) {
  .scan-scene { height: 540px; --rx: 3deg; --ry: -8deg; --sx: -8; }
  .scan-scene__world { transform: scale(.8); transform-origin: 50% 20%; }
  .scan-scene .phone { margin-left: -150px; }
  .plate { margin-left: -60px; bottom: -40px; }
  .scan-scene .phone__badge { left: -24px; bottom: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-scene .phone, .scan-scene .phone__badge, .pv, .pv *, .pv-scan__line { animation: none !important; }
  .scan-scene .phone { transform: translateZ(70px) rotateZ(4deg); }
  .pv--bill { opacity: 1; }
}
@media (max-width: 520px) { .phone__badge { left: -6px; bottom: -52px; } .phone-stage { --rx: 6deg; --ry: -12deg; --sx: -12; } .phone { width: 280px; border-radius: 46px; } .phone__screen { border-radius: 36px; padding: 10px 13px 22px; } .phone__items { font-size: .82rem; } }

/* Sections */
.section { padding: 88px 0; }
.section--cream { background: var(--cream-2); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.section__head p { font-size: 1.12rem; color: var(--ink-soft); }
.section--ink .section__head p { color: #d9c9d8; }
.kicker { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 12px; }
.section--ink .kicker { color: var(--gold); }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* Bandeau des zéros */
.zeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.zero { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.zero__big { font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--ink); }
.zero__big small { font-size: 1.4rem; }
.zero__label { font-weight: 700; margin: 10px 0 4px; }
.zero p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .zeros { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .zeros { grid-template-columns: 1fr; } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); position: relative; }
.step-card__num { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 18px; }
.step-card h3 { font-size: 1.3rem; }
.step-card p { color: var(--ink-soft); margin: 0; }
.step-card__time { display: inline-block; margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--gold-dark); background: #fbf3e4; padding: 5px 10px; border-radius: 999px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Tarifs */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.price-card { border-radius: 24px; padding: 34px; }
.price-card--you { background: #fff; color: var(--ink); }
.price-card--guest { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.price-card__who { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; opacity: .75; margin-bottom: 14px; }
.price-card__big { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; margin-bottom: 6px; }
.price-card__big small { font-size: 1.1rem; font-weight: 600; opacity: .8; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 0; }
.price-card li { display: flex; gap: 10px; padding: 7px 0; }
.price-card li svg { flex: none; margin-top: 3px; }
.price-card--you li svg { color: var(--green); }
.price-card--guest li svg { color: var(--gold); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* Simulateur */
.sim { margin-top: 28px; background: var(--cream); color: var(--ink); border-radius: 24px; padding: 30px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; }
.sim h3 { font-size: 1.4rem; margin-bottom: 6px; }
.sim label { font-weight: 600; display: block; margin: 16px 0 8px; }
.sim__input { display: flex; align-items: center; background: #fff; border-radius: 14px; border: 2px solid transparent; padding: 0 16px; max-width: 240px; }
.sim__input:focus-within { border-color: var(--ink); }
.sim__input input { border: 0; outline: 0; font: 700 1.8rem var(--display); width: 100%; padding: 10px 0; color: var(--ink); background: transparent; }
.sim__input span { font: 700 1.5rem var(--display); color: var(--ink-soft); }
.sim__range { width: 100%; max-width: 240px; margin-top: 14px; accent-color: var(--ink); }
.sim__result { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sim__box { background: #fff; border-radius: 18px; padding: 20px; }
.sim__box--you { background: var(--ink); color: #fff; }
.sim__box small { display: block; font-weight: 600; opacity: .7; margin-bottom: 6px; }
.sim__box strong { font: 700 2rem/1.1 var(--display); display: block; }
.sim__box p { margin: 10px 0 0; font-size: .88rem; opacity: .8; }
.sim__fine { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .sim__result { grid-template-columns: 1fr; } }

/* Avantages */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefit { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.benefit__icon { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--cream); display: grid; place-items: center; color: var(--ink); }
.benefit h3 { font-size: 1.2rem; margin-bottom: 6px; }
.benefit p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; } }

/* Aperçu des 4 questions */
.questions { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.questions ol { list-style: none; padding: 0; margin: 0; counter-reset: q; }
.questions li { counter-increment: q; display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: 1.05rem; }
.questions li::before { content: counter(q); width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.questions li em { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: .9rem; margin-left: auto; }
.questions h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
@media (max-width: 860px) { .questions { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; padding: 20px 30px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 600 1.5rem var(--display); color: var(--gold-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* Appel final */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); color: #fff; }
.final p { color: #d9c9d8; font-size: 1.15rem; max-width: 600px; margin: 0 auto 30px; }
.final .zero-chips { justify-content: center; margin-top: 26px; }
.final .zero-chips li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.final .zero-chips svg { color: var(--gold); }

/* Pied de page */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer a { text-decoration: none; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Formulaires */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.input, select.input { width: 100%; font: 500 1.05rem var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(43, 13, 43, .08); }
.input.is-invalid { border-color: var(--red); }
.error { color: var(--red); font-size: .9rem; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.alert { border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-weight: 500; }
.alert--ok { background: var(--green-bg); color: #1e5e3c; }
.alert--err { background: #fdecea; color: var(--red); }

/* Parcours d'inscription */
.ob { min-height: 100vh; display: grid; grid-template-columns: 1fr 420px; }
.ob__main { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); }
.ob__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ob__progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.ob__progress span { display: block; height: 100%; width: 25%; background: var(--ink); border-radius: 999px; transition: width .35s ease; }
.ob__count { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.ob__form { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 560px; width: 100%; margin: 0 auto; padding: 32px 0; }
.ob__step { display: none; animation: obIn .35s ease; }
.ob__step.is-active { display: block; }
@keyframes obIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ob__step h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.ob__step > p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 28px; }
.ob__nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.ob__back { background: none; border: 0; font: 600 1rem var(--font); color: var(--ink-soft); cursor: pointer; padding: 12px 8px; }
.ob__back:hover { color: var(--ink); }
.ob__enter { font-size: .85rem; color: var(--ink-soft); margin-left: auto; }
.ob__enter kbd { font: 600 .8rem var(--font); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.ob__aside { background: var(--ink); color: #fff; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.ob__aside::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 166, 107, .35), transparent 70%); }
.ob__aside h2 { font-size: 1.7rem; color: #fff; }
.ob__aside ul { list-style: none; padding: 0; margin: 20px 0 0; }
.ob__aside li { display: flex; gap: 12px; padding: 10px 0; color: #eadbe9; }
.ob__aside li svg { color: var(--gold); flex: none; margin-top: 3px; }
.ob__aside li b { color: #fff; }
.ob__price { margin-top: 28px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 20px; position: relative; z-index: 1; }
.ob__price strong { font: 700 2.4rem/1 var(--display); color: #fff; display: block; }
.ob__price p { margin: 8px 0 0; color: #d9c9d8; font-size: .92rem; }
.counter { display: flex; align-items: center; gap: 14px; }
.counter button { width: 56px; height: 56px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font: 600 1.6rem var(--display); color: var(--ink); cursor: pointer; }
.counter button:hover { border-color: var(--ink); }
.counter input { width: 110px; text-align: center; font: 700 2.2rem var(--display); }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.choice input:checked + span { border-color: var(--ink); background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.reassure { display: flex; gap: 10px; align-items: flex-start; background: var(--green-bg); color: #1e5e3c; border-radius: 14px; padding: 12px 14px; font-size: .92rem; margin-top: 18px; }
.reassure svg { flex: none; margin-top: 2px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 980px) { .ob { grid-template-columns: 1fr; } .ob__aside { display: none; } }
@media (max-width: 520px) { .choices, .grid-2 { grid-template-columns: 1fr; } }

/* Pages d'authentification */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.auth__card { width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.auth__card .logo { margin-bottom: 26px; }
.auth__card h1 { font-size: 1.8rem; }
.auth__links { margin-top: 18px; font-size: .95rem; text-align: center; color: var(--ink-soft); }

/* Espace restaurateur */
.dash-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.dash-title h1 { font-size: 2rem; margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.card h2 { font-size: 1.3rem; }
.welcome { background: var(--ink); color: #fff; border-radius: 24px; padding: 32px; margin-bottom: 24px; display: flex; gap: 24px; align-items: center; }
.welcome h2 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.welcome p { color: #e2d3e1; margin: 0; }
.welcome .logo-mark { --logo-ink: #6b4468; flex: none; }
.checklist__bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 18px; }
.checklist__bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.checklist__item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.checklist__icon { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line); color: var(--ink-soft); font-weight: 700; }
.checklist__item.is-done .checklist__icon { background: var(--green); border-color: var(--green); color: #fff; }
.checklist__body { flex: 1; }
.checklist__body h3 { font: 600 1.05rem var(--font); margin: 4px 0 2px; }
.checklist__body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fbf3e4; color: var(--gold-dark); vertical-align: middle; margin-left: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat small { color: var(--ink-soft); font-weight: 600; }
.stat strong { display: block; font: 700 1.8rem var(--display); margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .welcome { flex-direction: column; align-items: flex-start; } }

/* Tables */
.room { margin-bottom: 26px; }
.room__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.room__head h2 { margin: 0; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.table-tile { background: var(--cream-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; }
.table-tile__label { font: 700 1.6rem var(--display); }
.table-tile__meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 10px; }
.table-tile__actions { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.table-tile__actions a, .table-tile__actions button { font: 600 .8rem var(--font); color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; cursor: pointer; text-decoration: none; }
.table-tile__actions button.danger { color: var(--red); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1; min-width: 140px; }

/* Page client (QR code) */
.guest { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 28px 20px; background: var(--bg); }
.guest__card { width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); text-align: center; margin-top: 24px; }
.guest__table { display: inline-block; background: var(--cream); font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.guest__card h1 { font-size: 1.8rem; }
.guest__powered { margin-top: auto; padding-top: 28px; font-size: .85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Compatibilité de la caisse */
.choice__ok { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-size: .75rem; margin-left: 6px; vertical-align: 1px; }
.pos-other { margin-top: 16px; }
.pos-result { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 16px 18px; margin-top: 18px; font-size: .97rem; animation: obIn .3s ease; }
.pos-result[hidden] { display: none; }
.pos-result b { display: block; margin-bottom: 2px; }
.pos-result__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.pos-result--ok { background: var(--green-bg); color: #1e5e3c; }
.pos-result--ok .pos-result__icon { background: var(--green); color: #fff; }
.pos-result--warn { background: #fdf3e2; color: #6b4a12; }
.pos-result--warn .pos-result__icon { background: var(--gold); color: var(--ink); }
.pos-result--info { background: #f1ecf1; color: var(--ink-2); }
.pos-result--info .pos-result__icon { background: var(--ink); color: #fff; }

/* Fin d'inscription (paiements, c'est prêt) */
.ob-simple { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 28px 20px 48px; }
.ob-simple__top { width: 100%; max-width: 620px; margin-bottom: 26px; }
.ob-simple__card { width: 100%; max-width: 620px; background: #fff; border-radius: 26px; padding: clamp(24px, 5vw, 44px); box-shadow: var(--shadow); }
.ob-simple__card h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.ob-simple__card .lead { font-size: 1.08rem; color: var(--ink-2); }
.ob-simple__card--done { text-align: center; }
.ob-simple__later { text-align: center; margin-top: 16px; }
.ob-simple__later a { color: var(--ink-soft); font-weight: 600; }
.ob-simple__note { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: .9rem; margin-top: 18px; text-align: center; }
.ob-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 22px; flex-wrap: wrap; justify-content: center; }
.ob-steps li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); padding: 7px 14px 7px 8px; border-radius: 999px; }
.ob-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: .8rem; }
.ob-steps li.is-done span { background: var(--green); color: #fff; }
.ob-steps li.is-current { color: var(--ink); border-color: var(--ink); }
.ob-steps li.is-current span { background: var(--ink); color: #fff; }
.prep { background: var(--cream-2); border-radius: 18px; padding: 18px 22px; margin: 22px 0; }
.prep h2 { font: 600 1rem var(--font); margin-bottom: 8px; }
.prep ul { list-style: none; padding: 0; margin: 0; }
.prep li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.prep svg { color: var(--gold-dark); flex: none; }
.fine { text-align: center; font-size: .88rem; color: var(--ink-soft); margin: 10px 0 0; }
.done-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 10px var(--green-bg); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done-steps { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.done-steps li { background: var(--cream-2); border-radius: 16px; padding: 16px 10px; font-size: .92rem; }
.done-steps li span { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.done-steps b { display: block; font-size: 1rem; }
@media (max-width: 520px) { .done-steps { grid-template-columns: 1fr; } }

/* Caisse et menu */
.pos-card__status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--cream-2); color: var(--ink-soft); margin-bottom: 12px; }
.pos-card__status.is-on { background: var(--green-bg); color: var(--green); }
.pos-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.menu-list { display: grid; }
.menu-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.menu-row:first-child { border-top: 0; }
.menu-row .muted { font-size: .85rem; }
.menu-row.is-off { opacity: .45; }

/* Page client (paiement) */
.page-guest .guest { padding: 0 0 24px; align-items: stretch; }
.g-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--ink); color: #fff; --logo-ink: #6b4468; }
.g-head__resto { font: 600 1.35rem var(--display); }
.g-head__table { display: inline-block; margin-top: 4px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 999px; }
.g-main { width: 100%; max-width: 520px; margin: 0 auto; padding: 16px; }
.g-card { background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 1px 2px rgba(43,13,43,.06), 0 8px 24px -14px rgba(43,13,43,.25); margin-bottom: 14px; }
.g-title { font-size: 1.15rem; margin-bottom: 12px; }
.g-empty { text-align: center; padding: 32px 22px; }
.g-empty h1 { font-size: 1.5rem; }
.g-empty__icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--cream); color: var(--ink); }
.g-empty__icon.is-ok { background: var(--green); color: #fff; }
.g-items { list-style: none; padding: 0; margin: 0; }
.g-items li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.g-items li.is-paid { color: var(--ink-soft); text-decoration: line-through; }
.g-items li em { font-style: normal; text-decoration: none; display: inline-block; font-size: .72rem; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.g-totals > div { display: flex; justify-content: space-between; padding: 6px 0; }
.g-totals__remaining { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px !important; font-size: 1.15rem; }
.g-totals__remaining strong { font: 700 1.4rem var(--display); }
.g-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--cream-2); border-radius: 14px; padding: 4px; gap: 4px; }
.g-seg button { border: 0; background: none; font: 600 .95rem var(--font); color: var(--ink-2); padding: 11px 6px; border-radius: 11px; cursor: pointer; }
.g-seg button.is-on { background: var(--ink); color: #fff; }
.g-mode { margin-top: 14px; }
.g-mode > label { display: block; font-weight: 600; margin-bottom: 8px; }
.counter--sm button { width: 46px; height: 46px; font-size: 1.3rem; }
.counter--sm input { width: 80px; font-size: 1.6rem; padding: 8px; }
.g-pick { list-style: none; padding: 0; margin: 0; }
.g-pick li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.g-pick small { display: block; color: var(--ink-soft); font-size: .82rem; }
.g-qty { display: inline-flex; align-items: center; gap: 10px; }
.g-qty button { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: 600 1.1rem var(--display); color: var(--ink); cursor: pointer; }
.g-qty b { min-width: 16px; text-align: center; }
.g-tips { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 8px; }
.g-tips button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 4px; font: 600 .92rem var(--font); color: var(--ink); cursor: pointer; }
.g-tips button.is-on { border-color: var(--gold-dark); background: #fbf3e4; box-shadow: inset 0 0 0 1px var(--gold-dark); }
.g-fine { font-size: .8rem; color: var(--ink-soft); margin: 10px 0 0; text-align: center; }
.g-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.g-summary__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; font-size: 1.1rem; }
.g-summary__total strong { font: 700 1.4rem var(--display); }
.g-email { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0; }
.g-email .input { margin-top: 6px; }
.g-summary .alert { margin-top: 10px; }
[data-payment-element] { margin-bottom: 16px; min-height: 120px; }

/* Écran Service (serveurs) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.svc-table { display: block; text-decoration: none; border-radius: 18px; padding: 16px; border: 2px solid var(--line); background: #fff; text-align: center; color: var(--ink); }
.svc-table__label { font: 700 1.7rem var(--display); }
.svc-table__state { font-size: .8rem; font-weight: 700; margin-top: 4px; }
.svc-table__amount { font-size: .9rem; color: var(--ink-soft); margin-top: 2px; min-height: 1.3em; }
.svc-table.is-open { border-color: var(--ink); background: var(--cream-2); }
.svc-table.is-partial { border-color: var(--gold); background: #fbf3e4; }
.svc-table.is-paid { border-color: var(--green); background: var(--green-bg); }
.svc-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--ink-soft); margin-bottom: 16px; }
.svc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--line); }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .svc-cols { grid-template-columns: 1fr; } }
.svc-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.svc-line:first-child { border-top: 0; }
.svc-line small { display: block; color: var(--ink-soft); }
.svc-line button { background: none; border: 0; color: var(--red); cursor: pointer; font-weight: 600; }
.svc-menu-row { display: grid; grid-template-columns: 1fr auto 70px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.svc-menu-row input { padding: 8px; text-align: center; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--cream-2); color: var(--ink-soft); }
.tag--ok { background: var(--green-bg); color: var(--green); }

/* Équipe */
.team-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .team-cols { grid-template-columns: 1fr; } }
.team-steps { padding-left: 20px; margin: 0 0 16px; color: var(--ink-2); }
.team-steps li { margin-bottom: 8px; }
.team-code { display: flex; align-items: center; gap: 18px; background: var(--cream-2); border-radius: 16px; padding: 14px; }
.team-code img { border-radius: 10px; background: #fff; }
.team-code small { display: block; color: var(--ink-soft); font-weight: 600; }
.team-code b { font: 700 2rem var(--display); letter-spacing: .12em; }
.team-row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.team-row:first-of-type { border-top: 0; }
.team-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.team-name small { display: block; color: var(--ink-soft); font-size: .85rem; }
.pin-reveal { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--ink); color: #fff; border-radius: 18px; padding: 18px 22px; margin-bottom: 22px; }
.pin-reveal strong { display: block; font-size: 1.05rem; }
.pin-reveal span { color: #e2d3e1; font-size: .9rem; }
.pin-reveal b { font: 700 2.4rem var(--display); letter-spacing: .3em; color: var(--gold); }

/* Pages légales */
.legal { max-width: 780px; padding-top: 40px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 6px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.guest__powered a { color: inherit; }

/* Récapitulatif du jour */
.recap-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.recap-nav form { margin: 0; }
.recap-date { padding: 8px 12px; width: auto; }
.recap-z { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 22px; padding: 24px 28px; margin-bottom: 18px; }
.recap-z small { display: block; color: #e2d3e1; font-weight: 600; }
.recap-z strong { display: block; font: 700 2.6rem/1.1 var(--display); margin: 4px 0; }
.recap-z span { color: #e2d3e1; font-size: .92rem; }
.recap-z p { max-width: 320px; margin: 0; color: #f3e8f2; }
.recap-z p b { color: var(--gold); }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stats--4 { grid-template-columns: repeat(2, 1fr); } }
.stat span { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: 2px; }
.stat--dark { background: var(--green-bg); border-color: var(--green); }
.stat--link { text-decoration: none; color: inherit; }
.stat--link:hover { border-color: var(--ink); }
.recap-table-wrap { overflow-x: auto; }
.recap-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.recap-table th { text-align: left; font-size: .8rem; color: var(--ink-soft); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.recap-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.recap-table tr.is-other td { color: var(--ink-soft); }

/* Factures */
.invoice-current { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.invoice-current small { display: block; color: var(--ink-soft); font-weight: 600; }
.invoice-current strong { display: block; font: 700 2rem var(--display); }
.invoice-current span { color: var(--ink-soft); }
.invoice-actions a { margin-right: 10px; font-weight: 600; }

/* Page « bientôt disponible » (erreur 403) */
.errpage { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px;
  background: radial-gradient(circle at 80% 10%, rgba(200, 166, 107, .2), transparent 45%), var(--bg); }
.errpage__card { width: 100%; max-width: 560px; background: #fff; border-radius: 28px; padding: 40px 36px; box-shadow: var(--shadow); text-align: center; }
.errpage__card .logo { margin-bottom: 26px; }
.errpage__mark { display: grid; place-items: center; width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 50%; background: var(--cream);
  animation: errpage-float 4s ease-in-out infinite; }
@keyframes errpage-float { 50% { transform: translateY(-6px); } }
.errpage h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 10px 0 12px; }
.errpage p { color: var(--ink-2); margin: 0 auto 26px; max-width: 440px; }
.errpage__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.errpage__fine { font-size: .85rem; color: var(--ink-soft) !important; margin-bottom: 0 !important; }
@media (prefers-reduced-motion: reduce) { .errpage__mark { animation: none; } }

/* ===== Back-office restaurateur : sidebar ===== */
.page-dash { background: var(--bg); }
.dash-shell { --side: 264px; min-height: 100vh; }
.dash-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; display: flex; flex-direction: column; gap: 18px;
  padding: 22px 16px 18px; background: linear-gradient(180deg, #2b0d2b 0%, #230a23 100%); color: #e9dbe8; overflow-y: auto; }
.dash-sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.dash-sidebar__head .logo__word { font-size: 1.45rem; }
.dash-sidebar__close { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.dash-resto { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.dash-resto__avatar, .dash-me__avatar { flex: none; display: grid; place-items: center; border-radius: 12px; font-weight: 700; }
.dash-resto__avatar { width: 40px; height: 40px; background: var(--gold); color: var(--ink); font-family: var(--display); font-size: 1.2rem; }
.dash-resto__text { min-width: 0; }
.dash-resto strong { display: block; color: #fff; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-resto small { display: block; color: #bfa9bd; font-size: .8rem; }
.dash-side-nav { display: flex; flex-direction: column; gap: 3px; }
.dash-side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none;
  color: #d9c8d8; font-weight: 600; font-size: .96rem; position: relative; transition: background .15s, color .15s; }
.dash-side-nav a svg { flex: none; opacity: .8; }
.dash-side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.dash-side-nav a.is-active { background: var(--cream); color: var(--ink); }
.dash-side-nav a.is-active svg { opacity: 1; color: var(--gold-dark); }
.dash-sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.dash-side-waiter { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .9rem;
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.dash-side-waiter:hover { background: rgba(255, 255, 255, .07); }
.dash-me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; border-top: 1px solid rgba(255, 255, 255, .1); }
.dash-me__avatar { width: 34px; height: 34px; border-radius: 50%; background: #4a2147; color: #fff; font-size: .9rem; }
.dash-me__name { flex: 1; color: #fff; font-weight: 600; font-size: .92rem; }
.dash-me button { background: none; border: 0; color: #bfa9bd; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; }
.dash-me button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.dash-main { margin-left: var(--side); min-height: 100vh; }
.dash-main__inner { max-width: 1120px; margin: 0 auto; padding: 40px 40px 72px; }
.dash-topbar, .dash-scrim { display: none; }

@media (max-width: 960px) {
  .dash-main { margin-left: 0; }
  .dash-main__inner { padding: 24px 18px 64px; }
  .dash-topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; height: 60px; padding: 0 12px;
    background: rgba(255, 250, 244, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .dash-topbar__menu { background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; display: grid; border-radius: 10px; }
  .dash-sidebar { transform: translateX(-100%); transition: transform .25s cubic-bezier(.2, .7, .2, 1); box-shadow: 20px 0 40px -20px rgba(0, 0, 0, .5); }
  .dash-sidebar__close { display: grid; }
  .dash-shell.is-open .dash-sidebar { transform: none; }
  .dash-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(43, 13, 43, .4); }
  .dash-shell.is-open .dash-scrim { display: block; }
}

/* Scène 3D — addition : « Tout » d'abord, puis le client choisit « Ma part (1/4) », puis 5 % de pourboire.
   L'état final (ma part + pourboire) est l'état statique, utilisé si les animations sont coupées. */
.scan-scene .phone__pay, .scan-scene .phone__fine { display: grid; }
.scan-scene .pay-v { grid-area: 1 / 1; opacity: 0; }
.scan-scene .pay-v3 { opacity: 1; }
.scan-scene .pay-v1 { animation: pay-v1 var(--loop) infinite; }
.scan-scene .pay-v2 { animation: pay-v2 var(--loop) infinite; }
.scan-scene .pay-v3 { animation: pay-v3 var(--loop) infinite; }
@keyframes pay-v1 { 0%, 39% { opacity: 1; } 41%, 100% { opacity: 0; } }
@keyframes pay-v2 { 0%, 39% { opacity: 0; } 41%, 46% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes pay-v3 { 0%, 46% { opacity: 0; } 48%, 100% { opacity: 1; } }
.scan-scene .phone__split .sp-all { animation: split-all var(--loop) infinite; }
.scan-scene .phone__split .sp-part { animation: split-part var(--loop) infinite; }
@keyframes split-all { 0%, 39% { background: var(--ink); color: #fff; border-color: var(--ink); } 41%, 100% { background: #fff; color: var(--ink); border-color: var(--line); } }
@keyframes split-part { 0%, 39% { background: #fff; color: var(--ink); border-color: var(--line); } 41%, 100% { background: var(--ink); color: #fff; border-color: var(--ink); } }

/* Toucher du doigt : un cercle apparaît sur « Ma part », sur 5 %, puis sur « Payer » */
.scan-scene .sp-part, .scan-scene .phone__tips .is-on, .scan-scene .phone__pay { position: relative; }
.scan-scene .sp-part::after, .scan-scene .phone__tips .is-on::after, .scan-scene .phone__pay::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: rgba(200, 166, 107, .55); box-shadow: 0 0 0 6px rgba(200, 166, 107, .2); opacity: 0; transform: scale(.4); pointer-events: none; }
.scan-scene .sp-part::after { animation: tap-part var(--loop) infinite; }
.scan-scene .phone__tips .is-on::after { animation: tap-tip var(--loop) infinite; }
.scan-scene .phone__pay::after { animation: tap-pay var(--loop) infinite; }
@keyframes tap-part { 0%, 37% { opacity: 0; transform: scale(.4); } 39% { opacity: 1; transform: scale(1); } 43%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes tap-tip { 0%, 44% { opacity: 0; transform: scale(.4); } 46% { opacity: 1; transform: scale(1); } 50%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes tap-pay { 0%, 60% { opacity: 0; transform: scale(.4); } 62% { opacity: 1; transform: scale(1); } 66%, 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) {
  .scan-scene .pay-v, .scan-scene .phone__split span, .scan-scene .sp-part::after, .scan-scene .phone__tips .is-on::after, .scan-scene .phone__pay::after { animation: none !important; }
}
