/* Polices hébergées sur notre serveur (licence SIL OFL, voir web/fonts) : aucun appel à Google, affichage plus rapide, conforme RGPD. */
@font-face{font-family:"Cinzel";src:url("/fonts/cinzel.woff") format("woff");font-weight:400 900;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/fonts/jetbrains-mono.woff") format("woff");font-weight:100 800;font-style:normal;font-display:swap}
/* MyBusinessPro — interface claire et sobre : fond gris très clair, cartes blanches, une seule couleur d'accent (indigo).
   Les noms de variables historiques (--gold…) sont conservés : ils désignent désormais la couleur d'accent.
   Thème sombre facultatif (graphite neutre) via <html data-theme="dark">. */
/* MyBusinessPro — style « Noir & Or » par défaut (barre latérale noire, dorure, fond crème).
   L'établissement choisit son thème (Noir & Or, Clair, Sombre) et sa couleur d'accent dans Réglages → Apparence :
   ui.js/applyAppearance pose <html data-theme> et recalcule --gold, --gold-hi, --accent-soft, --grad à partir de la couleur choisie.
   Les noms historiques (--gold…) désignent la couleur d'accent. */
:root {
  --ink: #f6f5f2;            /* fond crème */
  --panel: #ffffff;
  --panel-2: #f1efe9;
  --line: #e7e4dd;
  --line-soft: #efece6;
  --gold: #c9a24b;           /* accent (or par défaut) */
  --gold-hi: #8a6a22;        /* accent lisible sur fond clair (textes, liens) */
  --gold-ink: #141210;       /* texte posé sur l'accent */
  --gold-soft-text: #e7cd86; /* accent clair sur fond noir */
  --accent-soft: #f7efdc;
  --accent-line: #e4d09f;
  --grad: linear-gradient(135deg, #e7cd86, #c9a24b 55%, #9a7a33);
  --black: #0e0e10;
  --text: #0e0e10;
  --muted: #6f6b63;
  --faint: #6f6a62;
  --side-bg: #0e0e10; --side-text: #9b978f; --side-hover: #232327; --side-active: #26262b; --side-title: #ffffff;
  --top-bg: rgba(255, 255, 255, .92);
  --ok: #157a40; --ok-bg: #e7f6ed;
  --warn: #9e5005; --warn-bg: #fff3e0;
  --bad: #d64545; --bad-bg: #fdecec;
  --info: #6b5420; --info-bg: #f7efdc;
  --paper: #ffffff; --paper-ink: #1b1b18;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .3);
  --f-display: "Cinzel", Georgia, serif;
  --f-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 18px; --r-sm: 12px;
  color-scheme: light;
}
/* Thème « Clair » : barre latérale blanche, même accent */
:root[data-theme="clair"] { --ink: #f7f7f5; --side-bg: #ffffff; --side-text: #6f6b63; --side-hover: #f1efe9; --side-active: #0e0e10; --side-title: #0e0e10; }
/* Thème « Sombre » : graphite, accent conservé */
:root[data-theme="dark"] {
  --ink: #0f0f12; --panel: #17171b; --panel-2: #1f1f24; --line: #2e2e35; --line-soft: #25252b;
  --text: #eeede9; --muted: #a8a49b; --faint: #908c84; --black: #0e0e10;
  --side-bg: #0a0a0c; --side-hover: #1c1c21; --side-active: #26262b;
  --top-bg: rgba(23, 23, 27, .92);
  --ok: #4ccf8e; --ok-bg: rgba(76, 207, 142, .12); --warn: #f0ae55; --warn-bg: rgba(240, 174, 85, .12);
  --bad: #f07a6e; --bad-bg: rgba(240, 122, 110, .12); --info: #e7cd86; --info-bg: rgba(201, 162, 75, .12);
  --shadow: none; --shadow-lg: 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.2; }
h1 { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: .96rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.num, .tab { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: .88em; letter-spacing: .01em; word-break: break-all; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.eyebrow { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.gold { color: var(--gold-hi); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.hidden { display: none !important; }

/* bandeau démo */
.demo-band { background: var(--accent-soft); color: var(--gold-hi); font-size: .78rem; font-weight: 600; text-align: center; padding-block: 6px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line-soft); }
.demo-band button { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; margin-left: 8px; cursor: pointer; color: var(--gold-hi); font-size: .75rem; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; box-shadow: var(--shadow); }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--grad); color: var(--gold-ink); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 16px -8px rgba(0, 0, 0, .45); }
.btn-gold:hover { filter: brightness(1.05); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { background: var(--panel-2); border-color: transparent; color: var(--text); }
.btn-danger { border-color: #f3c4c4; color: var(--bad); background: var(--panel); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn-lg { min-height: 54px; font-size: 1.02rem; padding: 0 24px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { background: none; border: 0; color: var(--gold-hi); cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* champs */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); min-width: 0; }
.in, select.in, textarea.in { width: 100%; min-height: 46px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; color: var(--text); font-size: 1rem; font-weight: 500; }
textarea.in { min-height: 90px; resize: vertical; }
.in::placeholder { color: var(--faint); }
.in:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(184, 137, 47, .2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text); font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-top: 1px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* cartes et listes */
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px; min-width: 0; box-shadow: var(--shadow); }
.card-gold { border-color: var(--accent-line); background: var(--accent-soft); }
.card h2 + *, .card h3 + * { margin-top: 10px; }
.list { display: flex; flex-direction: column; }
.li { display: flex; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li-btn { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; color: inherit; border-radius: 0; }
.li-btn:hover { background: var(--panel-2); }
.li .grow > * { overflow: hidden; text-overflow: ellipsis; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--panel-2); }
details summary { cursor: pointer; font-weight: 600; }

/* pastilles d'état */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-ok { color: var(--ok); background: var(--ok-bg); } .p-warn { color: var(--warn); background: var(--warn-bg); }
.p-bad { color: var(--bad); background: var(--bad-bg); } .p-info { color: var(--info); background: var(--info-bg); }
.p-gold { color: var(--gold-hi); background: var(--accent-soft); } .p-mute { color: var(--muted); background: var(--panel-2); }

/* KPI */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.kpi { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi span { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* écrans d'accueil / connexion */
.hero { min-height: 100%; display: grid; place-items: center; padding-block: 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: var(--ink); }
.hero-inner { width: min(100%, 440px); display: flex; flex-direction: column; gap: 20px; }
.brand-logo { width: 96px; height: 96px; border-radius: 24px; background: #000; margin: 0 auto; display: block; box-shadow: var(--shadow-lg); }
.hero-inner .brand-logo[width="148"], .hero-inner .brand-logo[width="120"] { width: 88px !important; height: 88px !important; }
.brand-name { font-family: var(--f-display); font-size: 1.9rem; text-align: center; letter-spacing: .04em; font-weight: 700; }
.brand-name em { font-style: normal; color: var(--gold); }
.tagline { text-align: center; font-size: .92rem; color: var(--muted); }
.choice { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); cursor: pointer; text-align: left; width: 100%; color: inherit; box-shadow: var(--shadow); }
.choice:hover { border-color: var(--line); }
.choice .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--gold); flex: none; }
.choice .ico svg { width: 24px; height: 24px; }
.ico-tile { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--gold); flex: none; }
.ico-tile svg { width: 22px; height: 22px; }
.otp { letter-spacing: .5em; text-align: center; font-size: 1.5rem; font-family: var(--f-mono); }
.notice { font-size: .85rem; padding: 10px 12px; border-radius: var(--r-sm); background: var(--info-bg); color: var(--info); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-bad { background: var(--bad-bg); color: var(--bad); }
.notice-ok { background: var(--ok-bg); color: var(--ok); }

/* page d'accueil */
.landing { min-height: 100%; background: radial-gradient(900px 420px at 50% -120px, var(--accent-soft), transparent 70%), var(--ink); }
.landing-top { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px max(16px, env(safe-area-inset-left, 0px)); }
.landing-brand { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.landing-brand img { border-radius: 9px; }
.landing-main { max-width: 1040px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-left, 0px)) 40px; display: flex; flex-direction: column; gap: 28px; }
.landing-hero { text-align: center; max-width: 720px; margin: 10px auto 0; display: grid; gap: 12px; }
.landing-hero h1 { font-family: var(--f-display); font-size: clamp(1.6rem, 4.2vw, 2.5rem); line-height: 1.18; }
.landing-hero p { font-size: 1.05rem; }
.landing-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.landing-card { padding: 24px; }
.landing-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.landing-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.landing-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; background: var(--panel); }
.lang-switch button { border: 0; background: none; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.s-side .lang-switch { align-self: flex-start; margin: 0 8px 6px; }

/* espace client */
.c-app { min-height: 100%; padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.c-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--top-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.c-head-in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.c-head img { width: 34px; height: 34px; border-radius: 9px; }
.c-head .wordmark { font-weight: 800; letter-spacing: -.01em; }
.c-main { max-width: 720px; margin: 0 auto; padding-block: 18px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 16px; }
.c-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--top-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

.c-nav-in { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.c-nav button { background: none; border: 0; color: var(--faint); padding: 10px 2px 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 600; cursor: pointer; }
.c-nav button svg { width: 22px; height: 22px; }
.c-nav button[aria-current="page"] { color: var(--gold-hi); }
.pass { position: relative; border: 1.5px solid #c9a14a; border-radius: 20px; padding: 20px; background: linear-gradient(150deg, #22201b 0%, #0f0e0c 75%); color: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.pass .muted, .pass .faint { color: rgba(255, 255, 255, .78); }
.pass .crown { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; color: rgba(255, 255, 255, .9); }
.pass-name { font-size: 1.7rem; color: var(--gold-soft-text); letter-spacing: -.02em; font-weight: 800; margin-top: 6px; }
.bars { display: flex; gap: 6px; margin-top: 6px; }
.bars i { flex: 1; height: 7px; border-radius: 99px; background: var(--gold); }
.pass .bars i { background: var(--gold-soft-text); }
.bars i.used { background: rgba(184, 137, 47, .2); }
.pass .bars i.used { background: rgba(255, 255, 255, .28); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cats button { flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 600; font-size: .86rem; cursor: pointer; }
.cats button[aria-pressed="true"] { background: var(--text); color: var(--panel); border-color: transparent; }
.svc { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line-soft); cursor: pointer; width: 100%; text-align: left; color: inherit; box-shadow: var(--shadow); }
.svc[aria-pressed="true"] { border-color: var(--gold); background: var(--accent-soft); }
.svc .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; }
.svc[aria-pressed="true"] .tick { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.svc .tick svg { width: 14px; height: 14px; }
.qr-frame { background: #fff; border-radius: 20px; padding: 14px; width: min(100%, 300px); margin: 0 auto; box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-lg); }
.qr-frame svg { display: block; width: 100%; height: auto; }
.code-chip { font-family: var(--f-mono); font-size: 1.35rem; letter-spacing: .25em; text-align: center; color: var(--gold-hi); font-weight: 700; }
.paid-stamp { display: grid; place-items: center; width: min(100%, 300px); aspect-ratio: 1; max-width: 100%; margin: 0 auto; border-radius: 20px; border: 2px solid var(--ok); color: var(--ok); text-align: center; gap: 4px; background: var(--ok-bg); }
.paid-stamp svg { width: 72px; height: 72px; }

/* espace professionnel */
.s-app { display: grid; grid-template-columns: 232px 1fr; min-height: 100%; }
.s-side { position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; overflow-y: auto; background: var(--side-bg); border-right: 1px solid var(--line-soft); padding: 18px 12px; padding-left: max(12px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 2px; }
.s-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.s-brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.s-brand b { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; color: var(--side-title); line-height: 1.15; }
.s-brand small { display: block; font-weight: 600; font-size: .72rem; color: var(--side-text); letter-spacing: 0; }
.s-nav-btn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 0; background: none; color: var(--side-text); font-weight: 600; cursor: pointer; text-align: left; font-size: .92rem; white-space: nowrap; }
.s-nav-btn svg { width: 19px; height: 19px; flex: none; }
.s-nav-btn:hover { color: var(--side-title); background: var(--side-hover); }
.s-nav-btn[aria-current="page"] { color: var(--gold-soft-text); background: var(--side-active); }
.s-nav-btn[aria-current="page"] svg { color: var(--gold-soft-text); }
.s-nav-btn .badge { margin-left: auto; background: var(--bad); color: #fff; border-radius: 99px; font-size: .7rem; padding: 0 7px; }
.s-main { min-width: 0; display: flex; flex-direction: column; }
.s-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--top-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.s-content { padding-block: 22px 48px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 18px; max-width: 1240px; width: 100%; }
.s-mobnav { display: none; }
@media (max-width: 900px) {
  .s-app { grid-template-columns: 1fr; }
  .s-side { display: none; }
  .s-content { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .s-mobnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--side-bg); backdrop-filter: blur(14px); border-top: 1px solid var(--line-soft); }
  .s-mobnav .s-nav-btn { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .68rem; border-radius: 12px; justify-content: center; }
  .s-mobnav .s-nav-btn svg { width: 22px; height: 22px; }
  .s-mobnav .s-nav-btn[aria-current="page"] { background: var(--side-active); color: var(--gold-soft-text); }
  .s-content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
.scan-box { display: flex; gap: 8px; }
.scan-box .in { font-size: 1rem; min-height: 48px; }
.lines { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lines td, .lines th { padding: 9px 6px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.lines th { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.lines .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines tfoot td { font-weight: 800; border-bottom: 0; font-size: 1.05rem; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.total-big { font-size: 2.3rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.change { font-size: 1.9rem; font-weight: 800; color: var(--ok); font-variant-numeric: tabular-nums; }
.paybtns { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.paybtns .btn { min-height: 68px; flex-direction: column; gap: 2px; border-radius: 14px; font-size: .92rem; white-space: normal; text-align: center; }
.paybtns .btn small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.paybtns .btn svg { width: 22px; height: 22px; color: var(--gold); }
.pay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; background: var(--panel-2); border-radius: 12px; padding: 10px; }
.pay-sum span { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; }
.pay-sum b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.pay-sum .due b { color: var(--gold-hi); font-size: 1.25rem; }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; cursor: pointer; background: var(--panel); }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt .switch { width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.pay-opt .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.pay-opt input:checked ~ .switch { background: var(--gold); }
.pay-opt input:checked ~ .switch::after { transform: translateX(18px); }
.pay-opt input:focus-visible ~ .switch { outline: 2px solid var(--gold); outline-offset: 2px; }
.pay-opt:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.promo-ok { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 8px 10px; font-size: .88rem; }
.promo-ok svg { width: 16px; height: 16px; vertical-align: -3px; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.quick .btn { min-height: 48px; border-radius: 12px; }
.pos-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: start; }
.cart-panel { position: sticky; top: 76px; }
@media (max-width: 900px) { .pos-grid { grid-template-columns: 1fr; } .cart-panel { position: static; } }
.catalog { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); cursor: pointer; text-align: left; color: inherit; min-height: 92px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tile:hover { border-color: var(--line); }
.tile:active { transform: scale(.98); }
.tile small { color: var(--faint); font-size: .72rem; font-weight: 600; }
.tile b { font-size: .92rem; line-height: 1.25; font-weight: 600; }
.tile .price { margin-top: auto; color: var(--text); }
.tile .catbar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; height: auto; border-radius: 0; opacity: .9; }
.transfer-qr { display: grid; gap: 18px; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); align-items: start; }
@media (max-width: 560px) { .transfer-qr { grid-template-columns: 1fr; } .li:not(.li-btn) { flex-wrap: wrap; } .li:not(.li-btn) > .grow { flex-basis: 100%; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.bar-row { display: grid; grid-template-columns: minmax(0, 150px) 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.bar-row .track { height: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--gold); border-radius: 99px; }

/* ticket de caisse */
.ticket { background: var(--paper); color: var(--paper-ink); font-family: var(--f-mono); font-size: .8rem; line-height: 1.45; padding: 20px 18px 26px; border-radius: 6px; width: min(100%, 340px); margin: 0 auto; box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-lg); position: relative; }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 6px, var(--paper) 6.5px) repeat-x; background-size: 12px 8px; }
.ticket .c { text-align: center; } .ticket hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.ticket .tr { display: flex; justify-content: space-between; gap: 8px; } .ticket .tr span:last-child { white-space: nowrap; }
.ticket .big { font-size: 1.05rem; font-weight: 700; }
.ticket .hash { font-size: .62rem; color: #666; word-break: break-all; }

/* fenêtre modale et notifications */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(15, 18, 30, .45); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.modal { width: min(100%, 560px); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-wide { width: min(100%, 860px); }
.toasts { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; width: min(calc(100% - 32px), 460px); pointer-events: none; }
.toast { background: var(--text); color: var(--panel); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: tin .2s ease-out; }
.toast.err { background: var(--bad); color: #fff; }
.toast.ok { background: var(--black); color: var(--gold-soft-text); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; min-height: 40vh; }

/* confirmation visuelle d'un paiement reçu */
.pay-alert { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(15, 18, 30, .5); padding: 16px; animation: tin .2s ease-out; }
.pay-alert-in { background: var(--panel); border: 2px solid var(--ok); border-radius: 22px; padding: 28px 24px; max-width: 440px; width: 100%; text-align: center; display: grid; gap: 10px; box-shadow: var(--shadow-lg); }
.pay-alert-check { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.pay-alert-check svg { width: 52px; height: 52px; }
.pay-alert-amt { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pay-ok { color: var(--ok); display: inline-grid; }
.pay-ok svg { width: 20px; height: 20px; }

.legal-en { margin: 0 0 6px; font-size: .8rem; }
.legal-text { white-space: pre-wrap; font: inherit; font-size: .84rem; line-height: 1.5; max-height: 60vh; overflow: auto; margin: 0; }
.bankpay .total-big { font-size: 2.8rem; }
.bankpay-steps { text-align: left; margin: 0 auto; max-width: 380px; padding-left: 20px; display: grid; gap: 4px; font-size: .92rem; }

.s-nav-group { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 4px; font-weight: 700; }
.bar-pair { display: grid; grid-template-columns: 54px 1fr 92px; gap: 8px; align-items: center; font-size: .82rem; }
.bar-pair .bars2 { display: grid; gap: 3px; }
.bar-pair .bin { height: 8px; border-radius: 4px; background: var(--ok); }
.bar-pair .bout { height: 8px; border-radius: 4px; background: var(--bad); opacity: .8; }
.kpi b.neg { color: var(--bad); }

/* mini-site public de l'établissement */
.site { min-height: 100vh; }
.site-preview { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--gold-soft-text); font-weight: 600; padding: 8px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.site-hero { text-align: center; padding: 64px 16px 40px; background: radial-gradient(110% 80% at 50% 0%, #f1e3bd, transparent 70%); }
.site-hero h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: -.03em; color: var(--text); margin: 6px 0; }
.site-tag { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0 auto; }
.site-main { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; display: grid; gap: 18px; }
.site-cat { margin-top: 14px; color: var(--gold-hi); font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; }
.site-team { display: flex; flex-wrap: wrap; gap: 18px; }
.site-member { display: grid; justify-items: center; gap: 4px; width: 120px; text-align: center; }
.site-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; background: var(--accent-soft); color: var(--gold-hi); }
.site-foot { border-top: 1px solid var(--line-soft); padding: 18px 16px 30px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: .82rem; color: var(--muted); text-align: center; }
.poster-print { background: #fff; color: #111; border-radius: 16px; padding: 28px; text-align: center; display: grid; gap: 10px; justify-items: center; border: 1px solid var(--line-soft); }
.poster-print h2 { color: #111; font-size: 1.6rem; }
@media print {
  body.print-poster * { visibility: hidden; } body.print-poster .poster-print, body.print-poster .poster-print * { visibility: visible; } body.print-poster .poster-print { position: fixed; inset: 0; border-radius: 0; }
  body.print-ticket * { visibility: hidden; } body.print-ticket .modal .ticket, body.print-ticket .modal .ticket * { visibility: visible; } body.print-ticket .modal .ticket { position: fixed; left: 0; top: 0; width: 80mm; box-shadow: none; }
}

/* horaires de réservation */
.bk-grid { display: grid; grid-template-columns: minmax(110px, 1fr) repeat(4, minmax(0, 1fr)); gap: 8px 10px; align-items: center; }
.bk-grid .in { min-height: 38px; padding: 6px 8px; }
@media (max-width: 640px) { .bk-grid { grid-template-columns: 1fr 1fr; } .bk-grid > span:nth-child(-n+5) { display: none; } .bk-grid > label { grid-column: 1 / -1; margin-top: 6px; } }

/* salle & cuisine */
.tables-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.table-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--panel); cursor: pointer; text-align: left; color: inherit; min-height: 104px; box-shadow: var(--shadow); }
.table-tile.busy { border-color: var(--gold); background: var(--accent-soft); }
.table-tile b { font-size: 1.1rem; }
.kitchen-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.kt { border-radius: 14px; padding: 14px; background: var(--panel); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.kt.ready { border-color: var(--ok); }
.wo-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.wo-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-soft); cursor: pointer; }

/* écran « Tous les outils » */
.tool-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.tool-item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--panel); cursor: pointer; text-align: left; color: inherit; width: 100%; box-shadow: var(--shadow); }
.tool-item:hover { border-color: var(--line); }
.tool-item .gold { color: var(--faint); }
/* pavé numérique (montant libre) */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { min-height: 62px; font-size: 1.5rem; font-weight: 600; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--panel); color: var(--text); cursor: pointer; font-variant-numeric: tabular-nums; box-shadow: var(--shadow); }
.keypad button:active { background: var(--panel-2); }
.keypad-amount { text-align: center; font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
/* graphique de la semaine */
.week-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 150px; padding-top: 10px; }
.week-chart .col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.week-chart .bar { width: 64%; border-radius: 6px 6px 2px 2px; background: var(--gold); min-height: 3px; }
.week-chart .col.zero .bar { background: var(--line-soft); }
.week-chart .lbl { font-size: .78rem; color: var(--muted); font-weight: 600; }
.week-chart .col.today .lbl { color: var(--gold-hi); }

.btn-wrap { white-space: normal; height: auto; min-height: 44px; padding: 10px 18px; text-align: center; line-height: 1.3; }
.update-band, .announce-band { padding: 8px 16px; text-align: center; font-weight: 600; font-size: .86rem; }
.update-band { background: var(--black); color: var(--gold-soft-text); position: sticky; top: 0; z-index: 80; }
.update-band button { margin-left: 8px; border: 0; border-radius: 99px; padding: 3px 12px; font-weight: 700; background: #fff; color: var(--gold-hi); cursor: pointer; }
.announce-band { border-radius: var(--r-sm); text-align: left; }
.cart-fab { display: none; }
@media (max-width: 900px) {
  .cart-fab { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); min-height: 52px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--black); color: var(--gold-soft-text); font-weight: 600; box-shadow: var(--shadow-lg); cursor: pointer; }
}

/* identité noir & or : boutons secondaires noirs, onglets actifs noirs, logo d'origine */
.btn-dark { background: var(--black); color: var(--gold-soft-text); border-color: var(--black); }
.btn-dark:hover { background: #2a2620; border-color: #2a2620; }
.cats button[aria-pressed="true"] { background: var(--black); color: var(--gold-soft-text); }
.lang-switch button[aria-pressed="true"] { background: var(--black); color: var(--gold-soft-text); }
.s-brand b, .landing-brand b, .c-head .wordmark { font-family: var(--f-display); letter-spacing: .04em; font-weight: 700; }
.s-brand .gold, .landing-brand .gold, .c-head .gold { color: var(--gold); }
.ico-tile, .choice .ico { background: var(--black); color: var(--gold-soft-text); }
.paybtns .btn svg { color: var(--gold); }
.week-chart .bar, .bar-row .fill { background: var(--grad); }
.landing-logo { width: 132px; height: 132px; border-radius: 30px; background: #000; display: block; margin: 0 auto; box-shadow: 0 18px 40px -16px rgba(60, 40, 5, .55); }
.landing-card .ico-tile { width: 48px; height: 48px; }
.landing-card.holding { background: linear-gradient(160deg, #1c1a16, #0f0e0c); color: #f5efe0; border-color: #3a3121; }
.landing-card.holding .muted { color: #c9bfa6; }
.landing-card.holding h2 { color: var(--gold-soft-text); }
.landing-card.holding .ico-tile { background: var(--gold-soft-text); color: #141210; }
.landing-card.holding .btn:not(.btn-gold) { background: transparent; color: var(--gold-soft-text); border-color: #5b4a2a; }
.mobile-hidden { }
/* sortie toujours visible : déconnexion en haut, retour vers « Tous les outils » */
.top-logout svg { width: 16px; height: 16px; }
.top-mark { display: none; width: 32px; height: 32px; border-radius: 8px; }
.back-link { align-self: flex-start; text-decoration: none; font-size: .9rem; }
.a-mobnav { display: none; }
@media (max-width: 900px) {
  .top-mark { display: block; }
  .top-logout span { display: none; }
  .top-logout { padding: 0 10px; }
  .a-mobnav { display: flex; gap: 6px; overflow-x: auto; padding: 8px max(12px, env(safe-area-inset-left, 0px)); background: var(--panel); border-bottom: 1px solid var(--line-soft); scrollbar-width: none; position: sticky; top: 56px; z-index: 19; }
  .a-mobnav .s-nav-btn { flex: none; padding: 8px 12px; font-size: .84rem; border: 1px solid var(--line-soft); border-radius: 99px; }
  .a-mobnav .s-nav-btn svg { width: 16px; height: 16px; }
}
/* écran client (montant tourné vers le client) */
.cust-screen { position: fixed; inset: 0; z-index: 95; background: radial-gradient(900px 700px at 50% 20%, #ffffff, #f4ecdc); display: grid; place-items: center; padding: 24px; }
.cust-in { width: min(100%, 560px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.cust-in img { border-radius: 18px; box-shadow: var(--shadow-lg); }
.cust-total { font-size: clamp(3.4rem, 14vw, 6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--black); font-variant-numeric: tabular-nums; }
.cust-lines { width: 100%; display: grid; gap: 6px; font-size: 1rem; color: var(--muted); }
.cust-tap { display: grid; gap: 10px; justify-items: center; padding: 22px; border-radius: 22px; background: var(--black); color: var(--gold-soft-text); width: 100%; font-size: 1.1rem; }

/* ── Agenda par collaborateur ── */
.ag-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ag { display: grid; gap: 0 6px; min-width: 100%; }
.ag-h { position: sticky; top: 0; z-index: 2; background: var(--panel); font-weight: 700; font-size: .86rem; padding: 6px 4px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-times { position: relative; margin-top: 10px; }
.ag-times span { position: absolute; left: 0; transform: translateY(-50%); font-size: .72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.ag-col { position: relative; background: var(--panel-2); border-radius: 8px; margin-top: 10px; }
.ag-col > i { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.ag-appt { position: absolute; left: 3px; right: 3px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 7px; border-radius: 7px; border: 1px solid var(--accent-line); border-left: 4px solid var(--gold); background: var(--accent-soft); color: var(--text); text-align: left; font-size: .76rem; line-height: 1.2; overflow: hidden; cursor: pointer; font-family: inherit; }
.ag-appt b { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ag-appt span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ag-appt em { font-style: normal; font-size: .68rem; color: var(--gold-hi); }
.ag-appt.paid { border-left-color: var(--ok); background: var(--ok-bg); border-color: #9fd7b9; }
.ag-appt.done { opacity: .62; }
.ag-block { position: absolute; left: 3px; right: 3px; border-radius: 7px; border: 1px dashed var(--faint); background: repeating-linear-gradient(135deg, var(--panel-2) 0 6px, var(--line-soft) 6px 12px); color: var(--muted); font-size: .74rem; font-weight: 600; cursor: pointer; font-family: inherit; }

/* ── Vitrine : logo, réalisations, réservation sans compte ── */
.site-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 22px; background: #fff; border: 1px solid var(--line); padding: 6px; margin: 0 auto 10px; display: block; }
.site-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.site-gallery figure, .gallery-grid figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.site-gallery img, .gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-soft); }
.site-gallery figcaption, .gallery-grid figcaption { font-size: .78rem; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .8rem; cursor: pointer; text-align: center; padding: 8px; }
.gallery-add svg, .gallery-add .ico { width: 22px; height: 22px; }
.site-logo-thumb { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.empty-thumb { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: .78rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 600; font-size: .9rem; cursor: pointer; font-family: inherit; }
.chip.on, .chip:has(input:checked) { background: var(--black); color: #fff; border-color: var(--black); }
.chip input { accent-color: var(--gold); }
.gb-steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: .76rem; color: var(--faint); }
.gb-steps span { padding: 3px 9px; border-radius: 99px; background: var(--panel-2); }
.gb-steps .on { background: var(--black); color: #fff; } .gb-steps .ok { color: var(--ok); }
.gb-body { min-height: 120px; }
.gb-pick { cursor: pointer; } .gb-pick input { width: 20px; height: 20px; accent-color: var(--gold); }
.gb-chips, .gb-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-slots { margin-top: 12px; }
.gb-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.gb-day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0; width: 58px; padding: 6px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-family: inherit; color: var(--text); font-size: .74rem; }
.gb-day b { font-size: 1.15rem; } .gb-day.on { background: var(--black); color: #fff; border-color: var(--black); }
.gb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb-ok { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.gb-ok svg { width: 34px; height: 34px; }
.poster-cta { margin: 0; font-family: var(--f-display, Georgia, serif); font-size: 1.9rem; font-weight: 700; letter-spacing: .02em; }

/* ── Carte de fidélité ── */
.loy-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #1c1813, #3a2d17); color: #f6e7c4; border: 1px solid #8a6420; }
.loy-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.loy-dots span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9a24f; }
.loy-dots span.on { background: var(--grad); }
.week-chart.m12 { gap: 3px; } .week-chart.m12 .col { min-width: 0; } .week-chart.m12 span { font-size: .6rem; overflow: hidden; max-width: 100%; }
.site-member .btn { white-space: normal; text-align: center; }

/* Photos : prestations, produits, collaborateurs */
.pic { width: 52px; height: 52px; flex: none; border-radius: 10px; object-fit: cover; background: var(--accent-soft); }
img.site-avatar { object-fit: cover; padding: 0; }
.pro-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pro { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 12px 8px; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: var(--panel); color: inherit; cursor: pointer; font-family: inherit; text-align: center; min-width: 0; }
.pro b { font-size: .9rem; overflow-wrap: anywhere; }
.pro .faint { font-size: .74rem; overflow-wrap: anywhere; }
.pro.on { border-color: var(--gold); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--gold) inset; }
.pro-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; background: var(--accent-soft); color: var(--gold-hi); }
@media (max-width: 560px) { .li:has(> .pic) { flex-wrap: nowrap; } .li:has(> .pic) > .grow { flex-basis: auto; } .pic { width: 46px; height: 46px; } }
/* Afficheur client */
.disp { min-height: 100vh; display: flex; flex-direction: column; gap: 20px; padding: clamp(16px, 4vw, 48px); background: var(--bg); }
.disp-head { display: flex; align-items: center; gap: 14px; font-size: clamp(1.2rem, 3vw, 2rem); }
.disp-head img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; }
.disp-idle { flex: 1; display: grid; place-content: center; text-align: center; gap: 10px; }
.disp-big { font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 800; margin: 0; font-family: var(--f-display); }
.disp-total { font-size: clamp(1.4rem, 4vw, 2.4rem); margin: 0; }
.disp-change { font-size: clamp(1.3rem, 3.6vw, 2.2rem); margin: 0; color: var(--ok); }
.disp-lines { flex: 1; overflow: auto; }
.disp-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: clamp(1.1rem, 2.6vw, 1.7rem); }
.disp-sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 3px solid var(--gold); font-size: clamp(1.4rem, 4vw, 2.4rem); }
.disp-sum b { font-size: clamp(2.2rem, 7vw, 4.4rem); }
/* Roue des cadeaux */
.wheel-wrap { position: relative; width: min(78vw, 300px); aspect-ratio: 1; margin: 8px auto; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid var(--black, #111); box-shadow: var(--shadow); }
.wheel-pin { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 1.6rem; color: var(--gold); z-index: 2; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
/* Liste des établissements */
.salon-row { padding-block: 0; }
.salon-open { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; padding-block: 12px; border-bottom: 0; }
.fav { font-size: 1.3rem; color: var(--gold); min-width: 44px; }
@media (max-width: 560px) { .li.salon-row { flex-wrap: nowrap; } .li.salon-row > .salon-open { flex-basis: auto; } }
.wheel-leg { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: .86rem; }
.wheel-leg .grow { flex: 1; min-width: 0; }
/* Stories */
.story-bar { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.story-bar::-webkit-scrollbar { display: none; }
.story-bub { display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-family: inherit; width: 72px; flex: none; }
.story-ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--gold), #f3d98b, var(--gold)); display: grid; place-items: center; }
.story-ring img, .story-ini { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); background: var(--panel); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--gold-hi); }
.story-name { font-size: .74rem; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-modal { padding: 8px; background: rgba(0,0,0,.85); }
.story-modal .modal { padding: 0; background: #000; overflow: hidden; width: min(100%, 440px); max-height: calc(100vh - 16px); border-radius: 16px; border: 0; }
.story-view { position: relative; color: #fff; aspect-ratio: 9 / 16; max-height: calc(100vh - 16px); width: 100%; display: flex; flex-direction: column; background: #000; }
.sbars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.sbar { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.sbar i { display: block; height: 100%; width: 0; background: #fff; }
.sbar.done i { width: 100%; }
.story-top { position: absolute; top: 18px; left: 12px; right: 8px; display: flex; align-items: center; gap: 6px; z-index: 3; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.story-top .grow { flex: 1; }
.sbtn { background: rgba(0,0,0,.35); color: #fff; border: 0; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1rem; }
.story-media { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; }
.story-media img, .story-media video { width: 100%; height: 100%; object-fit: contain; }
.story-prev, .story-next { position: absolute; top: 0; bottom: 0; width: 35%; background: none; border: 0; cursor: pointer; z-index: 2; }
.story-prev { left: 0; } .story-next { right: 0; }
.story-foot { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.75)); z-index: 3; display: grid; gap: 10px; }
.story-foot p { margin: 0; font-size: 1rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.story-prev-box video, .story-prev-box img { max-width: 220px; max-height: 360px; border-radius: 12px; background: #000; }
.story-thumb { width: 48px; height: 64px; border-radius: 8px; overflow: hidden; background: #000; flex: none; }
.story-thumb video, .story-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* File sans rendez-vous */
.queue-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; background: var(--accent-soft); color: var(--gold-hi); flex: none; }
.queue-num.on { background: var(--gold); color: var(--gold-ink); }
.ticket-num { font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
@media (max-width: 560px) { .li.queue-row > .grow { flex-basis: calc(100% - 60px); flex: 1; } .li.queue-row > .row { flex-basis: 100%; justify-content: flex-start !important; } }

/* ═════ caisse façon maquette : tuiles avec photo, bouton « Encaisser » noir et or ═════ */
:root[data-tiles="photo"] .catalog-pos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 14px; }
:root[data-tiles="photo"] .catalog-pos .tile { padding: 0; min-height: 0; gap: 0; border-radius: 18px; border-color: var(--line); transition: transform .12s, box-shadow .12s; }
:root[data-tiles="photo"] .catalog-pos .tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 14px 30px rgba(0, 0, 0, .09); }
:root[data-tiles="photo"] .catalog-pos .tile .catbar { display: none; }
.tile-ph { display: none; }
:root[data-tiles="photo"] .catalog-pos .tile-ph { display: grid; place-items: center; height: 104px; position: relative; color: rgba(255, 255, 255, .92); overflow: hidden; }
.tile-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-ph svg { width: 36px; height: 36px; }
.tile-ph .ini { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.tile-ph .badge { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); color: #0e0e10; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.tile-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
:root[data-tiles="photo"] .catalog-pos .tile-body { padding: 11px 13px 13px; }
:root[data-tiles="photo"] .catalog-pos .tile-body b { font-size: .95rem; font-weight: 650; }
:root[data-tiles="photo"] .catalog-pos .tile-body .det { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 6px; }
:root[data-tiles="photo"] .catalog-pos .tile-body .price { font-weight: 800; font-size: 1.05rem; }
.tile-body .det { display: contents; }
.tile-add { border: 2px dashed var(--line) !important; background: transparent !important; box-shadow: none !important; display: grid !important; place-items: center; text-align: center !important; color: var(--muted); font-weight: 600; align-content: center; gap: 4px !important; padding: 16px !important; min-height: 92px; }
:root[data-tiles="photo"] .catalog-pos .tile-add { min-height: 176px; }
.tile-add small { font-weight: 500; }
.btn-pay { background: var(--black); color: #fff; border-color: var(--black); font-weight: 700; font-size: 1.05rem; min-height: 58px; border-radius: 16px; }
.btn-pay:hover { background: #24242a; border-color: #24242a; }
.btn-pay .amt { color: var(--gold-soft-text); }
:root[data-theme="dark"] .btn-pay { background: var(--grad); color: var(--gold-ink); border-color: transparent; }
:root[data-theme="dark"] .btn-pay .amt { color: inherit; }

/* ═════ Réglages → Apparence ═════ */
.ap-themes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.ap-theme { border: 2px solid var(--line); border-radius: 16px; padding: 10px; background: var(--panel); cursor: pointer; text-align: left; color: inherit; display: grid; gap: 8px; }
.ap-theme[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); }
.ap-mini { height: 74px; border-radius: 10px; display: grid; grid-template-columns: 22% 1fr; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); }
.ap-mini i { display: block; }
.ap-mini .m { padding: 8px; display: grid; gap: 5px; grid-template-columns: 1fr 1fr; align-content: start; }
.ap-mini .m span { height: 18px; border-radius: 5px; }
.ap-mini .m em { grid-column: 1 / -1; height: 10px; border-radius: 4px; }
.ap-swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ap-sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.ap-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
.ap-sw-custom { position: relative; overflow: hidden; background: conic-gradient(#e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c); }
.ap-sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ap-theme { align-content: start; }
.tile-add svg { width: 28px; height: 28px; }
:root[data-theme="dark"] .cats button[aria-pressed="true"], :root[data-theme="dark"] .lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
@media (max-width: 560px) { :root[data-tiles="photo"] .catalog-pos { grid-template-columns: 1fr 1fr; gap: 10px; } :root[data-tiles="photo"] .catalog-pos .tile-ph { height: 80px; } :root[data-tiles="photo"] .catalog-pos .tile-add { min-height: 150px; } }
/* applis des stores : pas de retour vers l'accueil du site depuis la page de connexion */
html[data-app="pro"][data-area="staff-login"] [data-act="goLanding"] { display: none; }
/* appli client : grande barre de recherche façon moteur de réservation */
.search-hero { display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); }
.search-hero svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.search-hero .in { border: 0; box-shadow: none; background: transparent; min-height: 44px; padding: 0 4px; }
.search-hero .in:focus { outline: none; }
.search-hero .btn { min-height: 44px; }
@media (max-width: 420px) { .search-hero .btn { padding: 0 12px; } }
/* petits écrans : la page de connexion ne déborde jamais ; l'en-tête client garde le bouton Connexion visible */
.hero { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.hero-inner .btn { white-space: normal; text-align: center; }
@media (max-width: 420px) { .c-head .wordmark { display: none; } }
/* ═════ messagerie ═════ */
.chat-fab { position: fixed; z-index: 34; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 52px; border-radius: 999px; border: 0; background: var(--black); color: var(--gold-soft-text); font-weight: 700; box-shadow: var(--shadow-lg); cursor: pointer; }
.chat-fab svg { width: 22px; height: 22px; }
.chat-box { max-height: min(55vh, 520px); overflow-y: auto; padding: 4px 2px; }
section.chat-box { max-height: none; }
.chat-list { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .bubble { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--panel-2); color: var(--text); font-size: .94rem; line-height: 1.4; overflow-wrap: anywhere; }
.msg.mine .bubble { border-radius: 18px 18px 6px 18px; background: var(--black); color: #fff; }
.msg .bubble.hidden-msg { font-style: italic; opacity: .6; }
.msg .meta { font-size: .72rem; color: var(--faint); margin-top: 3px; padding: 0 6px; }
.msg .meta .link { font-size: .72rem; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { resize: vertical; min-height: 48px; }
:root[data-theme="dark"] .msg.mine .bubble { background: var(--gold); color: var(--gold-ink); }
.msg.bot .bubble { background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent-line); }
.msg.mine.bot .bubble { background: var(--accent-soft); color: var(--text); }

/* Abonnement protégé : bande animée sous le QR (figée sur une capture d'écran) */
.live-band { position: relative; height: 8px; border-radius: 4px; background: rgba(201, 162, 74, .18); overflow: hidden; }
.live-band span { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; border-radius: 4px; background: var(--gold, #c9a24a); animation: live-band 1.6s linear infinite; }
@keyframes live-band { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .live-band span { animation-duration: 4s; } }
