/* =====================================================================
   SENRESTODIGITAL — charte graphique et composants
   Anthracite · blanc · noir · or — mode clair et mode sombre
   ===================================================================== */

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gold: #A87B3E;
  --gold-strong: #8E6630;
  --gold-soft: #D9B47A;
  --gold-tint: rgba(168, 123, 62, .12);
  --on-gold: #FFFFFF;

  --bg: #FAF8F4;
  --bg-2: #F2EEE7;
  --surface: #FFFFFF;
  --surface-2: #F7F4EF;
  --line: #E6E0D6;
  --line-strong: #D5CCBE;
  --text: #121212;
  --text-2: #4F555B;
  --text-3: #7A8087;

  --ok: #1F8A5B;      --ok-tint: rgba(31, 138, 91, .12);
  --warn: #B7791F;    --warn-tint: rgba(183, 121, 31, .14);
  --late: #C93035;    --late-tint: rgba(201, 48, 53, .12);
  --info: #2F6FB3;    --info-tint: rgba(47, 111, 179, .12);
  --sim: #6D5BD0;     --sim-tint: rgba(109, 91, 208, .13);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(18, 18, 18, .05), 0 6px 24px rgba(18, 18, 18, .06);
  --shadow-lg: 0 18px 50px rgba(18, 18, 18, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side-w: 256px;
  color-scheme: light;
}

[data-theme="dark"] {
  --gold: #C9A063;
  --gold-strong: #E0BC83;
  --gold-soft: #E6C58F;
  --gold-tint: rgba(201, 160, 99, .14);
  --on-gold: #17130D;

  --bg: #151B1F;
  --bg-2: #1B2126;
  --surface: #20282E;
  --surface-2: #262F36;
  --line: #2F3940;
  --line-strong: #3B4750;
  --text: #F5F3EF;
  --text-2: #BCC2C7;
  --text-3: #8C959C;

  --ok: #3FB27F;      --ok-tint: rgba(63, 178, 127, .16);
  --warn: #E8A33D;    --warn-tint: rgba(232, 163, 61, .16);
  --late: #F0585D;    --late-tint: rgba(240, 88, 93, .16);
  --info: #5B9BE0;    --info-tint: rgba(91, 155, 224, .16);
  --sim: #9D8FFA;     --sim-tint: rgba(157, 143, 250, .16);

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .28);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h1, h2, .display { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
h2 { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
small, .small { font-size: .84rem; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.num, .tabnum { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.hidden, [hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; }
.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: inline-block; }
[data-theme="dark"] .only-light { display: none; }

/* Logos officiels */
.brand-logo { display: inline-block; height: 52px; }
.brand-logo img { height: 100%; width: auto; }
.brand-logo-sm { height: 44px; }
.brand-logo-lg { height: clamp(90px, 14vw, 150px); }
.logo-on-dark { display: none !important; }
[data-theme="dark"] .logo-on-dark { display: block !important; }
[data-theme="dark"] .logo-on-light { display: none !important; }

/* ------------------------------------------------------------------ */
/* Boutons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .94rem;
  cursor: pointer; white-space: nowrap; transition: background .18s var(--ease), transform .12s var(--ease), border-color .18s, color .18s;
}
.btn:hover { color: inherit; background: var(--line); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-strong); color: var(--on-gold); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { color: var(--bg); opacity: .9; background: var(--text); }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: var(--ok); color: #fff; filter: brightness(1.08); }
.btn-warn { background: var(--warn); color: #fff; }
.btn-warn:hover { background: var(--warn); color: #fff; filter: brightness(1.08); }
.btn-danger { background: transparent; color: var(--late); border-color: color-mix(in srgb, var(--late) 40%, transparent); }
.btn-danger:hover { background: var(--late-tint); color: var(--late); }
.btn-sim { background: var(--sim); color: #fff; }
.btn-sim:hover { background: var(--sim); color: #fff; filter: brightness(1.08); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: .86rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn-xl { min-height: 64px; padding: 0 28px; font-size: 1.1rem; border-radius: 18px; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.link { color: var(--gold); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Formulaires                                                         */
/* ------------------------------------------------------------------ */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: .84rem; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: .8rem; color: var(--text-3); }
.input, .select, .textarea, input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
input[type=file] { font-size: .88rem; color: var(--text-2); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.row-3 { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.inline-form { display: inline; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg label, .seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--text-2); border: 0; background: none; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span, .seg .is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg label span { display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.seg label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ */
/* Cartes, badges, tableaux                                            */
/* ------------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; }
.card-flat { box-shadow: none; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; } }
.stack > * + * { margin-top: 16px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 16px; } .mb-0 { margin-bottom: 0; }
.right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; }

.badge { font-family: var(--font-ui); vertical-align: middle; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.badge-sim { background: var(--sim-tint); color: var(--sim); border-color: transparent; }
.badge-real { background: var(--ok-tint); color: var(--ok); border-color: transparent; }
.badge-gold { background: var(--gold-tint); color: var(--gold); border-color: transparent; }
.badge-late { background: var(--late-tint); color: var(--late); border-color: transparent; }
.badge-warn { background: var(--warn-tint); color: var(--warn); border-color: transparent; }
.badge-info { background: var(--info-tint); color: var(--info); border-color: transparent; }

.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-kitchen-nouvelle, .st-delivery-a_attribuer { background: var(--info-tint); color: var(--info); }
.st-kitchen-en_preparation, .st-delivery-attribuee, .st-payment-en_attente { background: var(--warn-tint); color: var(--warn); }
.st-kitchen-prete, .st-delivery-prete_au_retrait, .st-delivery-en_livraison, .st-delivery-recuperee { background: var(--gold-tint); color: var(--gold); }
.st-kitchen-servie, .st-payment-paye, .st-delivery-livree { background: var(--ok-tint); color: var(--ok); }
.st-kitchen-annulee, .st-delivery-annulee, .st-payment-rembourse { background: var(--late-tint); color: var(--late); }
.st-kitchen-attente_paiement, .st-payment-non_paye { background: var(--surface-2); color: var(--text-2); }

.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .num { text-align: right; }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl .actions > * + * { margin-left: 6px; }
.empty { padding: 34px 20px; text-align: center; color: var(--text-3); }
.empty .ico { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--gold); }

.kpi { padding: 18px 20px; }
.kpi .kpi-l { font-size: .8rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; display: flex; gap: 8px; align-items: center; }
.kpi .kpi-v { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .kpi-s { font-size: .82rem; color: var(--text-2); margin-top: 2px; }
.kpi-gold { background: linear-gradient(135deg, var(--gold-tint), transparent 70%), var(--surface); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }

.chart svg { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--text-3); font-size: 11px; font-family: var(--font-ui); }
.chart .bar { fill: var(--gold); }
.chart .bar-sim { fill: var(--sim); opacity: .85; }
.chart-legend { display: flex; gap: 18px; font-size: .82rem; color: var(--text-2); margin-top: 6px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-real { background: var(--gold); } .lg-sim { background: var(--sim); }
.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }

/* Messages */
.flashes { position: relative; z-index: 5; width: min(1200px, 100% - 32px); margin: 14px auto 0; display: grid; gap: 8px; }
.shell .flashes, .ops .flashes { width: auto; margin: 14px 24px 0; }
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 500; }
.flash-success { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); } .flash-success .ico { color: var(--ok); }
.flash-error { border-color: color-mix(in srgb, var(--late) 45%, var(--line)); } .flash-error .ico { color: var(--late); }
.flash-info .ico { color: var(--info); }
.flash span { flex: 1; }
.flash-x { border: 0; background: none; cursor: pointer; color: var(--text-3); }
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(420px, 100% - 32px); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 600; animation: toastIn .3s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.is-error { background: var(--late); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.notice .ico { margin-top: 2px; color: var(--gold); }
.notice-sim { background: var(--sim-tint); border-color: transparent; }
.notice-sim .ico { color: var(--sim); }
.notice-warn { background: var(--warn-tint); border-color: transparent; } .notice-warn .ico { color: var(--warn); }
.demo-ribbon { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--sim-tint); color: var(--sim); font-size: .84rem; font-weight: 600; }
.demo-ribbon .ico { width: 16px; height: 16px; }

/* Fenêtres et tiroirs */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 16px; background: rgba(10, 12, 14, .55); backdrop-filter: blur(4px); }
.modal.is-open { display: grid; animation: fade .2s; }
.modal-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: pop .25s var(--ease); }
.modal-box.wide { width: min(820px, 100%); }
.modal-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-h h2 { margin: 0; font-size: 1.3rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ------------------------------------------------------------------ */
/* Marketplace publique                                                */
/* ------------------------------------------------------------------ */
.pub-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.pub-header-in { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.pub-brand .brand-logo { height: 60px; }
.pub-nav { display: flex; gap: 4px; margin-left: 10px; }
.pub-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--text-2); font-size: .94rem; }
.pub-nav a:hover, .pub-nav a.is-active { color: var(--text); background: var(--surface-2); }
.pub-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.cart-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--gold); color: var(--on-gold); border: 0; font-weight: 700; cursor: pointer; }
@media (max-width: 760px) {
  .pub-nav { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; z-index: 45; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .pub-nav a { font-size: .86rem; }
  .pub-brand .brand-logo { height: 42px; }
  .pro-link { display: none; }
  body.public { padding-bottom: 70px; }
}

.hero { position: relative; overflow: hidden; background: #1B2126; color: #F5F3EF; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(900px 400px at 85% -10%, rgba(201, 160, 99, .32), transparent 60%),
  radial-gradient(700px 360px at -10% 120%, rgba(201, 160, 99, .18), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .07; background-image: repeating-linear-gradient(135deg, #C9A063 0 1px, transparent 1px 22px); }
.hero-in { position: relative; z-index: 1; padding: clamp(36px, 6vw, 72px) 0 clamp(30px, 5vw, 56px); display: grid; gap: 20px; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); max-width: 18ch; color: #F5F3EF; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.hero-logo img { width: 100%; max-width: 460px; margin-left: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { display: none; } }
.hero h1 em { font-style: normal; color: #E6C58F; }
.hero p { color: #C9CED2; max-width: 52ch; font-size: 1.06rem; }
.searchbar { display: flex; gap: 8px; padding: 8px; background: #FFFFFF; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); max-width: 760px; flex-wrap: wrap; }
.searchbar .s-in { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #4F555B; }
.searchbar input { border: 0; box-shadow: none !important; background: transparent; color: #121212; min-height: 48px; padding: 0; font-size: 1rem; }
.searchbar .btn { min-height: 48px; border-radius: 14px; }
.searchbar .btn-ghost { color: #121212; border-color: #E6E0D6; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; color: #C9CED2; font-size: .9rem; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #F5F3EF; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 26px 0 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: .86rem; color: var(--text-2); cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--gold); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .ico { width: 16px; height: 16px; }

.r-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.r-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column; }
.r-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.r-cover { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2) center / cover no-repeat; }
.r-cover .r-state { position: absolute; left: 12px; top: 12px; }
.r-logo { position: absolute; left: 16px; bottom: -24px; width: 56px; height: 56px; border-radius: 16px; background: var(--surface); border: 3px solid var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--gold); }
.r-logo img { width: 100%; height: 100%; object-fit: cover; }
.r-body { padding: 32px 16px 16px; display: grid; gap: 6px; flex: 1; }
.r-body h3 { font-size: 1.12rem; margin: 0; font-family: var(--font-display); }
.r-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--text-2); font-size: .85rem; }
.r-meta span { display: inline-flex; gap: 5px; align-items: center; }
.r-meta .ico { width: 15px; height: 15px; color: var(--gold); }
.r-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--text-2); gap: 8px; }
.r-fav { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #4F555B; cursor: pointer; }
.r-fav.is-on { color: #C93035; }
.r-fav.is-on svg { fill: currentColor; }
.r-compare { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; cursor: pointer; }
.r-compare input { accent-color: var(--gold); width: 17px; height: 17px; }
.pill-open { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: rgba(20, 24, 27, .78); color: #fff; backdrop-filter: blur(6px); }
.pill-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3FB27F; }
.pill-open.is-closed::before { background: #F0585D; }
.compare-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; gap: 12px; align-items: center; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 600; }
@media (max-width: 760px) { .compare-bar { bottom: 84px; } }

.map-box { height: 360px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 34px 0 16px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }

/* Page restaurant */
.r-hero { position: relative; min-height: 260px; background: #1B2126 center / cover no-repeat; color: #fff; }
.r-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 14, .15) 0%, rgba(10, 12, 14, .82) 100%); }
.r-hero-in { position: relative; z-index: 1; display: flex; gap: 18px; align-items: flex-end; min-height: 260px; padding: 28px 0; }
.r-hero .r-logo { position: static; width: 86px; height: 86px; border-radius: 22px; font-size: 2rem; }
.r-hero h1 { color: #fff; margin-bottom: 4px; }
.r-hero .r-meta { color: rgba(255, 255, 255, .85); }
.r-hero .r-meta .ico { color: #E6C58F; }
.table-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); background: var(--gold-tint); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); margin: 18px 0; }
.table-banner strong { font-size: 1.1rem; }
.menu-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; gap: 26px; align-items: start; margin-top: 24px; }
.cat-nav { position: sticky; top: 92px; display: grid; gap: 2px; }
.cat-nav a { padding: 9px 12px; border-radius: 10px; font-weight: 600; color: var(--text-2); font-size: .92rem; }
.cat-nav a.is-active, .cat-nav a:hover { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.menu-sec { scroll-margin-top: 140px; margin-bottom: 30px; }
.menu-sec h2 { font-size: 1.35rem; margin-bottom: 14px; }
.items { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.item { display: flex; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-items: stretch; transition: border-color .15s, box-shadow .2s; }
.item:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); box-shadow: var(--shadow); }
.item-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-body h3 { margin: 0; font-size: 1rem; }
.item-body p { margin: 0; font-size: .86rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { margin-top: auto; padding-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.item-img { width: 104px; height: 104px; border-radius: 12px; flex: none; background: var(--bg-2) center / cover; position: relative; display: grid; place-items: center; color: var(--gold); }
.item-img .ico { width: 34px; height: 34px; opacity: .6; }
.item.is-out { opacity: .55; }
.item .add { position: absolute; right: -6px; bottom: -6px; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); background: var(--gold); color: var(--on-gold); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.item .add:disabled { background: var(--line-strong); cursor: not-allowed; }
.item .qty-badge { position: absolute; left: -6px; top: -6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--text); color: var(--bg); font-weight: 700; font-size: .8rem; display: grid; place-items: center; border: 2px solid var(--surface); }
.featured { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }

.cart { position: sticky; top: 92px; display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.cart-lines { overflow: auto; margin: 0 -6px; padding: 0 6px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-line .n { font-weight: 600; }
.cart-line .p { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.stepper button .ico { width: 16px; height: 16px; }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.totals { display: grid; gap: 6px; margin: 14px 0; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.2rem; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); }
.cart-empty { text-align: center; color: var(--text-3); padding: 26px 10px; }
.cart-empty .ico { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--gold); }
.mobile-cart { display: none; }
@media (max-width: 1100px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr); }
  .cat-nav { position: sticky; top: 72px; z-index: 30; display: flex; overflow-x: auto; gap: 6px; padding: 10px 0; margin: 0 -16px; padding-inline: 16px; background: var(--bg); scrollbar-width: none; }
  .cat-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); }
  .cart-col { position: fixed; inset: auto 0 0 0; z-index: 60; transform: translateY(105%); transition: transform .3s var(--ease); }
  .cart-col.is-open { transform: none; }
  .cart { position: static; max-height: 82vh; border-radius: 24px 24px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .mobile-cart { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 55; }
  body.public .mobile-cart { bottom: 82px; }
  body.table-mode .mobile-cart { bottom: 16px; }
  .mobile-cart .btn { width: 100%; justify-content: space-between; box-shadow: var(--shadow-lg); }
}
@media (max-width: 760px) { .items { grid-template-columns: 1fr; } .item-img { width: 88px; height: 88px; } }
.cart-scrim { position: fixed; inset: 0; z-index: 58; background: rgba(10, 12, 14, .5); display: none; }
.cart-scrim.is-open { display: block; }

.pay-choices { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.pay-opt:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); }
.pay-opt input { accent-color: var(--gold); width: 18px; height: 18px; }
.pay-opt .pay-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.pay-logo.wave { background: #1DC8F2; color: #06303B; }
.pay-logo.om { background: #FF7900; color: #1A1A1A; }
.pay-logo.cash { background: var(--surface-2); color: var(--gold); }
.pay-opt .t { flex: 1; }
.pay-opt .t strong { display: block; }
.pay-opt .t small { color: var(--text-3); }

/* Paiement simulé */
.sim-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(800px 400px at 50% -10%, var(--gold-tint), transparent), var(--bg); }
.sim-phone { width: min(400px, 100%); background: var(--surface); border-radius: 34px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.sim-top { padding: 22px 22px 26px; color: #fff; text-align: center; }
.sim-top.wave { background: linear-gradient(160deg, #1DC8F2, #0E8FB8); }
.sim-top.orange_money { background: linear-gradient(160deg, #FF8A1F, #E05A00); }
.sim-top .amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 6px 0; }
.sim-body { padding: 22px; display: grid; gap: 14px; }
.sim-flag { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--sim); background: var(--sim-tint); padding: 8px; border-radius: 10px; }

/* Suivi */
.track { width: min(720px, 100% - 32px); margin: 24px auto 60px; display: grid; gap: 16px; }
.track-hero { text-align: center; padding: 28px 20px; }
.track-hero .big { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; margin: 22px 0 6px; }
.steps .s { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: .8rem; color: var(--text-3); font-weight: 600; }
.steps .s i { display: block; width: 100%; height: 6px; border-radius: 99px; background: var(--line); }
.steps .s.done { color: var(--text); } .steps .s.done i { background: var(--gold); }
.steps .s.now i { background: linear-gradient(90deg, var(--gold) 0 50%, var(--line) 50%); background-size: 200% 100%; animation: progress 1.6s linear infinite; }
@keyframes progress { from { background-position: 100% 0; } to { background-position: 0 0; } }
.code-box { display: inline-flex; gap: 8px; font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: .2em; padding: 8px 18px; border-radius: 14px; background: var(--gold-tint); color: var(--gold); }
.timeline { display: grid; gap: 0; }
.timeline .ev { display: grid; grid-template-columns: 58px 16px 1fr; gap: 10px; align-items: start; padding: 6px 0; font-size: .9rem; }
.timeline .ev time { color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.timeline .ev .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 6px; box-shadow: 0 0 0 4px var(--gold-tint); }

/* Comparateur */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; }
.cmp th, .cmp td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { position: sticky; top: 72px; background: var(--bg); z-index: 1; }
.cmp tbody th { color: var(--text-3); font-weight: 600; font-size: .84rem; width: 170px; }
.cmp .best { color: var(--ok); font-weight: 700; }

/* Pied de page public */
.pub-footer { margin-top: 70px; border-top: 1px solid var(--line); background: var(--bg-2); }
.pub-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 26px; padding: 34px 0 40px; }
.pub-footer-links { display: grid; gap: 8px; font-weight: 600; color: var(--text-2); }
@media (max-width: 760px) { .pub-footer-in { grid-template-columns: 1fr; } }

/* Connexion */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; background: #1B2126; color: #F5F3EF; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 80% 0%, rgba(201, 160, 99, .3), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(201, 160, 99, .16), transparent 60%); }
.auth-art::after { content: ""; position: absolute; inset: 0; opacity: .06; background-image: repeating-linear-gradient(135deg, #C9A063 0 1px, transparent 1px 22px); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand-logo { height: clamp(110px, 16vw, 170px); }
.auth-art h2 { color: #F5F3EF; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.3rem); max-width: 18ch; }
.auth-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #C9CED2; }
.auth-art li { display: flex; gap: 10px; align-items: center; }
.auth-art li .ico { color: #E6C58F; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.auth-form .card { width: min(420px, 100%); padding: 30px; }
.auth-form h1 { font-size: 1.8rem; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { padding: 26px; min-height: 0; } .auth-art ul, .auth-art h2 { display: none; } .auth-art .brand-logo { height: 90px; } }
.demo-accounts { margin-top: 18px; font-size: .84rem; }
.demo-accounts summary { cursor: pointer; font-weight: 600; color: var(--gold); }
.demo-accounts table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.demo-accounts td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.demo-accounts button { border: 0; background: none; color: var(--gold); cursor: pointer; font-weight: 600; padding: 0; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.center-card { width: min(460px, 100%); text-align: center; display: grid; gap: 12px; justify-items: center; padding: 34px; }

/* ------------------------------------------------------------------ */
/* Espaces de gestion                                                  */
/* ------------------------------------------------------------------ */
.shell-wrap { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.side-brand { padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.side-logo .brand-logo { height: 64px; }
.side-tag { display: block; margin-top: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.side-resto { display: flex; gap: 12px; align-items: center; }
.side-resto strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.side-resto small { color: var(--text-3); }
.resto-avatar { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--gold-tint); color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; border: 1px solid var(--line); }
.resto-avatar img { width: 100%; height: 100%; object-fit: cover; }
.resto-avatar.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
.side-nav, .side-ops { display: grid; gap: 2px; }
.side-nav a, .side-ops a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.side-nav a:hover, .side-ops a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.is-active { background: var(--gold-tint); color: var(--gold); }
.side-nav .ico, .side-ops .ico { width: 19px; height: 19px; }
.side-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 12px 12px 4px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-user { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.side-user strong { display: block; font-size: .9rem; }
.side-user small { color: var(--text-3); }
.side-user .ico { color: var(--gold); }
.side-foot-actions { display: flex; gap: 8px; padding: 0 6px; }
.side-powered { font-size: .72rem; color: var(--text-3); padding: 0 6px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 16px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); }
.topbar-title { flex: 1; min-width: 0; }
.crumb { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--text-3); font-weight: 600; }
.crumb .ico { width: 15px; height: 15px; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.side-toggle { display: none; }
.content { padding: 24px 28px 60px; }
.side-scrim { display: none; }
@media (max-width: 980px) {
  .shell-wrap { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 70; left: 0; top: 0; width: 280px; transform: translateX(-105%); transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
  .side.is-open { transform: none; }
  .side-scrim.is-open { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(10, 12, 14, .5); }
  .side-toggle { display: inline-grid; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 60px; }
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.is-active { color: var(--gold); border-color: var(--gold); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 150px; }
.toggle { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: .2s; cursor: pointer; }
.toggle span::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.toggle input:checked + span { background: var(--ok); }
.toggle input:checked + span::before { transform: translateX(18px); }
.thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--bg-2); display: grid; place-items: center; color: var(--gold); flex: none; }
.thumb .ico { width: 22px; height: 22px; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.qr-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.qr-card { text-align: center; }
.qr-card img { width: 160px; height: 160px; margin: 10px auto; image-rendering: pixelated; background: #fff; padding: 6px; border-radius: 12px; }

/* ------------------------------------------------------------------ */
/* Postes opérationnels                                                */
/* ------------------------------------------------------------------ */
.ops { min-height: 100vh; }
.opsbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.opsbar-l { display: flex; gap: 12px; align-items: center; min-width: 0; }
.opsbar-l strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.opsbar-l small { color: var(--text-3); }
.opsbar-c { flex: 1; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.opsbar-r { display: flex; gap: 8px; align-items: center; }
.clock { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: live 2s infinite; }
.live-dot.is-off { background: var(--late); animation: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ops-main { padding: 18px; }
@media (max-width: 640px) { .opsbar { padding: 8px 12px; flex-wrap: wrap; } .opsbar-c { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; } .clock { display: none; } }
.counter { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.counter b { font-family: var(--font-display); font-size: 1.1rem; }

/* Cuisine (KDS) */
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; height: calc(100vh - 62px); }
.ops-cuisine .demo-ribbon + .kds, .ops-cuisine .flashes + .kds { height: auto; min-height: calc(100vh - 100px); }
.kds-col { display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.kds-col-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.kds-col-h h2 { margin: 0; font-family: var(--font-ui); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 10px; align-items: center; }
.kds-col-h h2 i { width: 10px; height: 10px; border-radius: 50%; }
.kds-col[data-col="nouvelle"] h2 i { background: var(--info); }
.kds-col[data-col="en_preparation"] h2 i { background: var(--warn); }
.kds-col[data-col="prete"] h2 i { background: var(--gold); }
.kds-col-h .n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.kds-list { flex: 1; overflow-y: auto; padding: 12px; display: grid; gap: 12px; align-content: start; }
.ticket { background: var(--surface); border-radius: 18px; border: 1px solid var(--line); border-top: 6px solid var(--ok); box-shadow: var(--shadow); overflow: hidden; animation: pop .35s var(--ease); }
.ticket.is-warn { border-top-color: var(--warn); }
.ticket.is-late { border-top-color: var(--late); box-shadow: 0 0 0 2px var(--late-tint), var(--shadow); }
.ticket.is-new { animation: arrive 1.2s var(--ease) 2; }
@keyframes arrive { 0%, 100% { box-shadow: var(--shadow); } 40% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 45%, transparent), var(--shadow); } }
.ticket-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px 8px; }
.ticket-no { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.ticket-origin { font-weight: 700; font-size: 1.02rem; margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ticket-origin .tag { font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ticket-origin .tag.online { background: var(--info-tint); color: var(--info); }
.ticket-origin .tag.deliv { background: var(--gold-tint); color: var(--gold); }
.timer { text-align: right; }
.timer .t { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ok); }
.timer small { display: block; color: var(--text-3); font-size: .74rem; margin-top: 4px; }
.is-warn .timer .t { color: var(--warn); }
.is-late .timer .t { color: var(--late); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .45; } }
.ticket-lines { list-style: none; margin: 0; padding: 4px 14px 10px; display: grid; gap: 6px; }
.ticket-lines li { display: flex; gap: 10px; font-size: 1.05rem; font-weight: 600; }
.ticket-lines .q { min-width: 34px; height: 30px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.ticket-lines .note { display: block; font-size: .84rem; color: var(--warn); font-weight: 600; }
.ticket-note { margin: 0 14px 10px; padding: 8px 10px; border-radius: 10px; background: var(--warn-tint); color: var(--warn); font-weight: 600; font-size: .9rem; }
.ticket-f { display: flex; gap: 8px; padding: 10px 14px 14px; align-items: center; }
.ticket-f .btn { flex: 1; min-height: 56px; font-size: 1.02rem; border-radius: 14px; }
.ticket-f .btn-ghost { flex: 0 0 56px; padding: 0; }
.ticket-pay { font-size: .78rem; }
@media (max-width: 900px) { .kds { grid-template-columns: 1fr; height: auto; } .kds-col { max-height: none; } }
.sound-gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10, 12, 14, .7); backdrop-filter: blur(6px); }
.sound-gate .card { text-align: center; max-width: 420px; }

/* Serveur */
.srv-tabs { display: flex; gap: 6px; padding: 12px 16px 0; overflow-x: auto; }
.srv-tabs button { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--text-2); display: inline-flex; gap: 8px; align-items: center; }
.srv-tabs button.is-active { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.srv-tabs .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--late); color: #fff; font-size: .78rem; display: inline-grid; place-items: center; }
.srv-tabs .n:empty, .srv-tabs .n[data-zero] { display: none; }
.tables-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tbl-tile { position: relative; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-height: 118px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.tbl-tile .name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.tbl-tile .state { font-size: .82rem; font-weight: 700; }
.tbl-tile.libre .state { color: var(--text-3); }
.tbl-tile.occupee { border-color: color-mix(in srgb, var(--info) 50%, var(--line)); } .tbl-tile.occupee .state { color: var(--info); }
.tbl-tile.a-servir { border-color: var(--gold); background: linear-gradient(160deg, var(--gold-tint), transparent), var(--surface); } .tbl-tile.a-servir .state { color: var(--gold); }
.tbl-tile.appel { border-color: var(--late); } .tbl-tile.appel .state { color: var(--late); }
.tbl-tile .call { position: absolute; right: 12px; top: 12px; color: var(--late); animation: blink 1s steps(2) infinite; }
.srv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.srv-card-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.calls { display: grid; gap: 10px; margin-bottom: 16px; }
.call-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--late-tint); border: 1px solid color-mix(in srgb, var(--late) 30%, transparent); font-weight: 700; }
.call-row .ico { color: var(--late); }
.call-row span { flex: 1; }

/* Caisse */
.cash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; padding: 16px; align-items: start; }
@media (max-width: 1000px) { .cash-layout { grid-template-columns: 1fr; } }
.cash-list { display: grid; gap: 10px; }
.cash-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; text-align: left; width: 100%; box-shadow: var(--shadow); transition: border-color .15s; }
.cash-row:hover, .cash-row.is-selected { border-color: var(--gold); }
.cash-row .no { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; min-width: 60px; }
.cash-row .amt { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cash-panel { position: sticky; top: 76px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method-grid .btn { min-height: 64px; border-radius: 16px; flex-direction: column; gap: 2px; }
.method-grid .btn small { font-weight: 500; opacity: .8; font-size: .74rem; }

/* Livreur */
.courier-wrap { width: min(640px, 100%); margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
.avail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.avail button { min-height: 58px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; color: var(--text-2); }
.avail button.is-on.ok { border-color: var(--ok); background: var(--ok-tint); color: var(--ok); }
.avail button.is-on.off { border-color: var(--late); background: var(--late-tint); color: var(--late); }
.mission { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.mission-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface-2); }
.mission-b { padding: 14px 16px; display: grid; gap: 10px; }
.mission-b .addr { font-size: 1.05rem; font-weight: 600; }
.mission-f { display: grid; gap: 8px; padding: 0 16px 16px; }
.mission-f .btn { min-height: 58px; border-radius: 16px; font-size: 1.05rem; }

/* Impression (QR, factures) */
.print-only { display: none; }
@media print {
  body { background: #fff !important; color: #000 !important; }
  .no-print, .side, .topbar, .opsbar, .pub-header, .pub-footer, .toasts, .demo-ribbon, .flashes { display: none !important; }
  .print-only { display: block; }
  .shell-wrap { display: block; }
  .content { padding: 0 !important; }
  .card { box-shadow: none !important; border-color: #ccc !important; }
  a { color: #000 !important; }
  .logo-on-dark { display: none !important; } .logo-on-light { display: block !important; }
}
.qr-sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14mm; }
.qr-tent { border: 1px solid #DDD; border-radius: 18px; padding: 18px; text-align: center; break-inside: avoid; background: #fff; color: #121212; }
.qr-tent .brand-logo { height: 46px; margin: 0 auto; }
.qr-tent .rname { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 6px 0 0; }
.qr-tent .tname { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: #A87B3E; line-height: 1; margin: 6px 0; }
.qr-tent img.qr { width: 200px; height: 200px; margin: 6px auto; image-rendering: pixelated; }
.qr-tent .how { font-size: .9rem; color: #4F555B; }
.qr-tent .powered { font-size: .72rem; color: #7A8087; margin-top: 8px; }
.invoice { width: min(760px, 100% - 32px); margin: 24px auto; background: #fff; color: #121212; padding: 36px; border-radius: 18px; border: 1px solid #E6E0D6; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice th, .invoice td { padding: 9px 6px; border-bottom: 1px solid #EEE; text-align: left; }
.invoice .r { text-align: right; }
.invoice .stamp { display: inline-block; padding: 6px 14px; border-radius: 10px; font-weight: 800; letter-spacing: .1em; border: 2px solid currentColor; }
.invoice .stamp.paid { color: #1F8A5B; } .invoice .stamp.due { color: #C93035; } .invoice .stamp.sim { color: #6D5BD0; }
@media print { .invoice { border: 0; margin: 0; width: 100%; padding: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.mobile-only { display: none; }
@media (max-width: 1100px) { .mobile-only { display: inline-grid; } }
.grid > .card, .grid-2 > .card, .grid-3 > .card, .grid-4 > .card, .r-grid > .card { margin-top: 0; }
@media (max-width: 760px) {
  .pub-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .toolbar .chips { flex-wrap: nowrap; margin-left: 0 !important; }
  .chip { white-space: nowrap; }
}
.r-infos > summary { list-style: none; display: none; }
.r-infos > summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) {
  .r-infos > summary { display: flex; }
  .r-infos[open] > summary { margin-bottom: 12px; }
  .r-hero-in { flex-wrap: wrap; align-items: flex-end; gap: 12px; }
  .r-hero .r-logo { width: 62px; height: 62px; border-radius: 16px; font-size: 1.5rem; }
  .r-hero .r-meta { gap: 4px 12px; font-size: .82rem; }
  .r-hero [data-fav] { position: absolute; right: 0; top: 20px; min-height: 36px; padding: 0 12px; }
}
.grid-wide { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .grid-wide { grid-template-columns: minmax(0, 1fr); } }
.grid-wide > .card { margin-top: 0; }
.qr-grid > .card, .track > .card, .stack > .card { margin-top: 0; }
.stack > * + * { margin-top: 16px; }
