/* =====================================================================
   Le Carnet d'Alfred — interface de l'équipe
   Lisible de loin, au pouce, en salle tamisée.
   ===================================================================== */
:root {
  --bg: #120d0b; --bg-2: #1a1310; --bg-3: #231a15; --bg-4: #2e231d;
  --tx: #f3ebdf; --tx-2: rgba(243, 235, 223, .72); --tx-3: rgba(243, 235, 223, .5);
  --line: rgba(243, 235, 223, .12); --line-2: rgba(243, 235, 223, .22);
  --rouge: #d0392f; --rouge-bg: rgba(208, 57, 47, .16);
  --laiton: #d2ae72; --laiton-bg: rgba(210, 174, 114, .14);
  --vert: #6fbf73; --vert-bg: rgba(111, 191, 115, .15);
  --bleu: #84a9d6; --bleu-bg: rgba(132, 169, 214, .15);
  --gris-bg: rgba(243, 235, 223, .07);
  --f-d: "Bodoni Moda", Georgia, serif;
  --f-b: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --top-h: 68px; --rail-w: 96px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font: 400 15px/1.5 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--laiton); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
[hidden] { display: none !important; }

/* ---------- petits éléments ---------- */
.ibtn { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; transition: background-color 200ms ease, transform 160ms var(--ease); }
.ibtn:active { transform: scale(.94); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-3); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease), opacity 200ms ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn--main { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.btn--vert { background: var(--vert); color: #0d1a0e; border-color: var(--vert); }
.btn--rouge { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.btn--ghost { background: none; }
.btn--danger { background: none; color: #ff8a80; border-color: rgba(255, 138, 128, .35); }
.btn--sm { min-height: 38px; padding: 0 12px; font-size: .82rem; border-radius: 11px; }
.btn--wide { width: 100%; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: none; font-weight: 600; font-size: .88rem; color: var(--tx-2); transition: background-color 250ms ease, color 250ms ease; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--tx); color: var(--bg); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: none; font-size: .84rem; font-weight: 500; color: var(--tx-2); display: inline-flex; align-items: center; gap: 6px; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.chip b { font-weight: 700; color: var(--tx); }
.chip[aria-pressed="true"] { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.chip[aria-pressed="true"] b { color: var(--bg); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; background: var(--gris-bg); color: var(--tx-2); }
.pill--vert { background: var(--vert-bg); color: var(--vert); }
.pill--rouge { background: var(--rouge-bg); color: #ff8a80; }
.pill--laiton { background: var(--laiton-bg); color: var(--laiton); }
.pill--bleu { background: var(--bleu-bg); color: var(--bleu); }
.empty { padding: 34px 20px; text-align: center; color: var(--tx-3); border: 1px dashed var(--line); border-radius: 18px; }
.empty b { display: block; font: 400 1.5rem/1.2 var(--f-d); color: var(--tx-2); margin-bottom: 6px; }
.h { font: 400 1.9rem/1.1 var(--f-d); margin: 0; letter-spacing: -.01em; }
.sub { margin: 4px 0 0; color: var(--tx-3); font-size: .88rem; }
.loading { display: grid; place-items: center; min-height: 160px; color: var(--tx-3); }
.loading::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--laiton); animation: spin 700ms linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- connexion ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(80% 60% at 50% 0%, rgba(208, 57, 47, .16), transparent 70%), var(--bg); }
.auth__card { width: min(100%, 420px); }
.auth__logo { width: 190px; margin: 0 auto 18px; }
.auth__kicker { text-align: center; margin: 0 0 28px; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--laiton); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 16px; transition: border-color 200ms ease; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--laiton); }
.field small { color: var(--tx-3); font-size: .78rem; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--gris-bg); color: var(--tx-2); font-size: .9rem; }
.msg--err { background: var(--rouge-bg); color: #ffb3ab; }
.msg--ok { background: var(--vert-bg); color: #b9e6bb; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--laiton); text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }

/* ---------- structure ---------- */
.app { min-height: 100dvh; display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.top { grid-column: 2; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 12px 22px; padding-top: max(12px, env(safe-area-inset-top)); background: rgba(18, 13, 11, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); min-width: 0; }
.top__date { display: flex; align-items: center; gap: 8px; min-width: 0; position: relative; }
.top__day { border: 0; background: none; text-align: left; padding: 2px 6px; border-radius: 10px; min-width: 0; }
.top__day span { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--laiton); font-weight: 600; }
.top__day b { display: block; font: 400 1.35rem/1.15 var(--f-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__day b::first-letter { text-transform: uppercase; }
.top__date input { position: absolute; left: 50px; bottom: 0; }
.seg--svc { margin-left: auto; }
.seg--svc button { min-width: 74px; }
.top__end { display: flex; align-items: center; gap: 14px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--tx-3); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px var(--vert-bg); }
.live.is-off i { background: #ff8a80; box-shadow: 0 0 0 4px var(--rouge-bg); }
.clock { font: 400 1.6rem/1 var(--f-d); font-variant-numeric: tabular-nums; }
.me { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-3); font-weight: 700; }

.rail { grid-column: 1; grid-row: 1 / -1; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 10px; border-right: 1px solid var(--line); background: var(--bg); z-index: 31; }
.rail__logo { width: 64px; margin: 4px auto 18px; opacity: .9; }
.rail button { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border: 0; border-radius: 14px; background: none; color: var(--tx-3); font-size: .68rem; font-weight: 600; letter-spacing: .04em; transition: background-color 200ms ease, color 200ms ease; }
.rail button svg { width: 24px; height: 24px; }
.rail button[aria-current="page"] { background: var(--bg-3); color: var(--tx); }
.rail button[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--laiton); }
.rail .rail__plus { display: none; }
.badge { position: absolute; top: 4px; right: 14px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--rouge); color: #fff; font: 700 .7rem/20px var(--f-b); font-style: normal; text-align: center; }

.main { grid-column: 2; padding: 22px 22px 130px; min-width: 0; outline: none; }
.view { animation: viewIn 380ms var(--ease) both; max-width: 1280px; margin: 0 auto; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.vhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }

.fab { position: fixed; z-index: 40; right: 22px; bottom: max(22px, env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.fab__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px; border-radius: 99px; border: 0; background: var(--tx); color: var(--bg); font-weight: 700; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); transition: transform 160ms var(--ease); }
.fab__btn:active { transform: scale(.96); }
.fab__btn svg { width: 22px; height: 22px; }
.fab__btn--ghost { background: var(--bg-3); color: var(--tx); border: 1px solid var(--line-2); }

/* ---------- téléphone ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .top { grid-column: 1; flex-wrap: wrap; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
  .top__date { flex: 1 1 100%; order: 1; }
  .top__day { flex: 1; text-align: center; }
  .top__day b { font-size: 1.2rem; }
  .seg--svc { order: 2; margin-left: 0; flex: 1; }
  .seg--svc button { flex: 1; min-width: 0; }
  .top__end { order: 3; gap: 10px; }
  .live span { display: none; }
  .clock { font-size: 1.3rem; }
  .rail { grid-column: 1; grid-row: auto; position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; justify-content: space-around; gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: rgba(18, 13, 11, .94); backdrop-filter: blur(14px); z-index: 50; }
  .rail__logo, .rail .rail__more { display: none; }
  .rail .rail__plus { display: grid; }
  .rail button { flex: 1; padding: 8px 2px; font-size: .64rem; min-width: 0; }
  .rail button[aria-current="page"]::before { left: 22%; right: 22%; top: -6px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .badge { right: calc(50% - 22px); }
  .main { grid-column: 1; padding: 16px 14px calc(170px + env(safe-area-inset-bottom)); }
  .fab { right: 14px; left: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); }
  .fab__btn { flex: 1; justify-content: center; min-height: 52px; padding: 0 14px; font-size: .9rem; }
  .h { font-size: 1.6rem; }
}

/* ---------- service : indicateurs ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.kpi span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; font: 400 2.1rem/1.1 var(--f-d); font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi small { color: var(--tx-3); font-size: .78rem; }
.kpi--main { background: var(--bg-3); }
.gauge { height: 6px; border-radius: 6px; background: var(--gris-bg); overflow: hidden; margin-top: 8px; }
.gauge i { display: block; height: 100%; background: var(--laiton); border-radius: 6px; transition: width 600ms var(--ease); }
.gauge.is-full i { background: var(--rouge); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi--hide-m { display: none; } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .kpi--main { grid-column: 1 / -1; } .kpi { padding: 12px; } .kpi b { font-size: 1.7rem; } .kpi span { font-size: .62rem; letter-spacing: .08em; } }

.brief { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--laiton-bg); border: 1px solid rgba(210, 174, 114, .3); margin-bottom: 16px; }
.brief svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--laiton); margin-top: 2px; }
.brief__t { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--laiton); margin: 0 0 2px; }
.brief__x { margin: 0; white-space: pre-wrap; }
.brief__x:empty::before { content: "Ajouter une note pour l'équipe (plat du jour, table privatisée, client important…)"; color: var(--tx-3); }
.brief button { margin-left: auto; }

.tools { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; min-width: 0; }
.tools .chips { flex: 1; min-width: 0; }
.search { position: relative; flex: 0 0 240px; }
.search input { width: 100%; min-height: 40px; padding: 0 14px 0 38px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); font-size: 16px; }
.search svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; color: var(--tx-3); }
@media (max-width: 760px) { .tools { flex-direction: column; align-items: stretch; } .search { flex: 1 1 auto; } }

/* ---------- service : chronologie ---------- */
.slot-g { margin-bottom: 18px; }
.slot-g__h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; position: sticky; top: var(--top-h); z-index: 5; padding: 6px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.slot-g__h b { font: 400 1.5rem/1 var(--f-d); font-variant-numeric: tabular-nums; }
.slot-g__h span { font-size: .78rem; color: var(--tx-3); }
.slot-g__h.is-now b { color: var(--laiton); }
.slot-g__h.is-now::after { content: "maintenant"; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--laiton); }
.list { display: grid; gap: 8px; }
.card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color 250ms ease, background-color 250ms ease, opacity 250ms ease; animation: viewIn 400ms var(--ease) both; }
.card.is-flash { animation: flash 1.6s ease both; }
@keyframes flash { 0%, 40% { background: var(--laiton-bg); border-color: var(--laiton); } }
.card__party { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 16px; background: var(--bg-3); display: grid; place-items: center; align-content: center; text-align: center; }
.card__party b { font: 400 1.9rem/1 var(--f-d); }
.card__party small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.card__main { min-width: 0; }
.card__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-weight: 700; font-size: 1.08rem; }
.card__name .vip { color: var(--laiton); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.card__note { grid-column: 2 / -1; margin: 4px 0 0; font-size: .86rem; color: var(--tx-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.card__note b { color: var(--laiton); font-weight: 600; }
.card__act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.tbl { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 12px; border: 1px dashed var(--line-2); background: none; font: 400 1.3rem/1 var(--f-d); }
.tbl small { font: 600 .56rem/1 var(--f-b); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.tbl.is-set { border-style: solid; border-color: var(--laiton); color: var(--laiton); }
.tbl.is-none { color: #ff8a80; border-color: rgba(255, 138, 128, .5); font-size: .7rem; font-family: var(--f-b); font-weight: 700; }
.card.st-arrivee { border-color: rgba(111, 191, 115, .4); }
.card.st-arrivee .card__party { background: var(--vert-bg); color: var(--vert); }
.card.st-partie, .card.st-annulee, .card.st-absente { opacity: .55; }
.card.st-annulee .card__name span:first-child, .card.st-absente .card__name span:first-child { text-decoration: line-through; }
.card.is-late { border-color: rgba(255, 138, 128, .45); }
.more { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: none; font-size: 1.2rem; }
@media (max-width: 640px) {
  .card { grid-template-columns: 54px minmax(0, 1fr); padding: 12px; gap: 8px 12px; }
  .card__party { width: 54px; height: 54px; grid-row: 1; }
  .card__party b { font-size: 1.6rem; }
  .card__act { grid-column: 1 / -1; justify-content: stretch; }
  .card__act .btn { flex: 1; }
  .card__note { grid-column: 1 / -1; }
}

/* ---------- plan de salle ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; color: var(--tx-2); margin-bottom: 16px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.zone { margin-bottom: 26px; }
.zone__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.zone__h h3 { margin: 0; font: 400 1.35rem/1.1 var(--f-d); }
.zone__h span { font-size: .8rem; color: var(--tx-3); }
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.t { position: relative; min-width: 0; overflow: hidden; min-height: 112px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); text-align: left; display: grid; grid-template-columns: minmax(0, 1fr); align-content: space-between; gap: 6px; transition: border-color 250ms ease, background-color 250ms ease, transform 160ms var(--ease); }
.t:active { transform: scale(.97); }
.t--6, .t--8 { grid-column: span 2; }
.t--10, .t--12 { grid-column: span 2; min-height: 124px; }
.t > * { min-width: 0; }
.t__n { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.t__n b { font: 400 1.7rem/1 var(--f-d); }
.t__n small { font-size: .72rem; color: var(--tx-3); }
.t__s { font-size: .78rem; font-weight: 600; line-height: 1.3; }
.t__s span { display: block; font-weight: 500; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t.is-libre .t__s { color: var(--vert); }
.t.is-bientot { border-color: rgba(210, 174, 114, .55); background: linear-gradient(var(--laiton-bg), var(--laiton-bg)), var(--bg-2); }
.t.is-bientot .t__s { color: var(--laiton); }
.t.is-occupee { border-color: rgba(208, 57, 47, .55); background: linear-gradient(var(--rouge-bg), var(--rouge-bg)), var(--bg-2); }
.t.is-occupee .t__s { color: #ffb3ab; }
.t.is-depasse { border-color: #ff8a80; }
.t.is-off { opacity: .45; }
.t__bar { height: 4px; border-radius: 4px; background: var(--gris-bg); overflow: hidden; }
.t__bar i { display: block; height: 100%; background: #ffb3ab; }
.when { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.when input[type="range"] { flex: 1; min-width: 160px; accent-color: var(--laiton); }
.when b { font: 400 1.4rem/1 var(--f-d); font-variant-numeric: tabular-nums; min-width: 3.2em; }
@media (max-width: 560px) { .floor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .t { min-height: 100px; padding: 12px; } .t--6, .t--8, .t--10, .t--12 { grid-column: span 2; } }

/* ---------- agenda ---------- */
.agenda { display: grid; gap: 8px; }
.aday { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); text-align: left; transition: border-color 200ms ease; width: 100%; }
.aday:hover { border-color: var(--line-2); }
.aday.is-closed { opacity: .5; }
.aday__d b { display: block; font: 400 1.5rem/1 var(--f-d); }
.aday__d span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.aday__d em { font-style: normal; font-size: .7rem; color: var(--laiton); font-weight: 700; }
.asvc { min-width: 0; }
.asvc p { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; }
.asvc p span { color: var(--tx-3); }
.asvc p b { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .aday { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 10px 12px; } .aday__d b { font-size: 1.3rem; } }

/* ---------- clients ---------- */
.guests { display: grid; gap: 8px; }
.guest { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); text-align: left; width: 100%; }
.guest b { font-size: 1rem; }
.guest span { color: var(--tx-3); font-size: .84rem; }
.hist { display: grid; gap: 6px; margin-top: 8px; }
.hist div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-3); font-size: .86rem; }

/* ---------- bilan ---------- */
.bk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (max-width: 760px) { .bk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 16px; position: relative; }
.chart__h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chart__h h3 { margin: 0; font: 400 1.25rem/1.2 var(--f-d); }
.lg { display: flex; gap: 14px; font-size: .78rem; color: var(--tx-2); }
.lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 200px; overflow-x: auto; scrollbar-width: thin; padding-top: 10px; }
.bar { flex: 1 0 14px; max-width: 40px; display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; justify-content: flex-start; position: relative; border: 0; background: none; padding: 0; }
.bar i { display: block; border-radius: 4px 4px 0 0; min-height: 0; }
.bar i + i { border-radius: 4px 4px 0 0; }
.bar .m { background: var(--laiton); }
.bar .s { background: #b8483f; }
.bar:hover i, .bar:focus-visible i { filter: brightness(1.2); }
.axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--tx-3); margin-top: 6px; }
.tip { position: absolute; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: var(--tx); color: var(--bg); font-size: .78rem; line-height: 1.4; white-space: nowrap; transform: translate(-50%, -100%); z-index: 3; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.table td:not(:first-child), .table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- réglages ---------- */
.set { display: grid; gap: 14px; }
.box { padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.box h3 { margin: 0 0 4px; font: 400 1.35rem/1.15 var(--f-d); }
.box > p { margin: 0 0 14px; color: var(--tx-3); font-size: .86rem; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.stepper-row:first-of-type { border-top: 0; }
.stepper-row > div:first-child { min-width: 0; }
.stepper-row b { display: block; font-weight: 600; }
.stepper-row small { color: var(--tx-3); font-size: .8rem; }
.stepper { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.stepper button { width: 42px; height: 42px; border-radius: 10px; border: 0; background: var(--bg-3); font-size: 1.2rem; font-weight: 700; }
.stepper output { min-width: 3.4em; text-align: center; font: 400 1.3rem/1 var(--f-d); font-variant-numeric: tabular-nums; }
.tlist { display: grid; gap: 6px; }
.trow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--bg-3); }
.trow input, .trow select { min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-size: 16px; min-width: 0; width: 100%; }
.trow .stepper button { width: 34px; height: 34px; }
.trow .stepper output { min-width: 2.2em; font-size: 1.1rem; }
@media (max-width: 640px) { .trow { grid-template-columns: 64px minmax(0, 1fr) auto auto; } .trow > select { grid-column: 2 / -1; } .trow .stepper { grid-column: 1 / 3; justify-self: start; } .trow .stepper button { width: 40px; height: 40px; } }
.sw { position: relative; width: 54px; height: 32px; flex: 0 0 auto; border-radius: 99px; border: 0; background: var(--bg-4); transition: background-color 250ms ease; }
.sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--tx); transition: transform 300ms var(--ease); }
.sw[aria-checked="true"] { background: var(--vert); }
.sw[aria-checked="true"]::after { transform: translateX(22px); }
.hrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.hrow:first-of-type { border-top: 0; }
.hrow b { text-transform: capitalize; font-weight: 600; }
.hcell { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.hcell input[type="time"] { min-height: 40px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); font-size: 15px; min-width: 0; flex: 1 1 74px; }
.hcell .sw { width: 50px; height: 32px; }
.hcell .sw::after { width: 24px; height: 24px; }
.hcell .sw[aria-checked="true"]::after { transform: translateX(18px); }
@media (max-width: 640px) { .hrow { grid-template-columns: minmax(0, 1fr); } }
.dates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.member { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.member:first-of-type { border-top: 0; }
.member b { display: block; }
.member small { color: var(--tx-3); }
.member select { min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); font-size: 15px; }

/* ---------- feuille latérale ---------- */
.sheet { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--tx); overflow: hidden; }
.sheet::backdrop { background: rgba(5, 3, 2, .62); backdrop-filter: blur(4px); }
.sheet[open] { display: flex; justify-content: flex-end; }
.sheet__panel { width: min(100%, 520px); height: 100%; display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); animation: sheetIn 420ms var(--ease) both; }
@keyframes sheetIn { from { transform: translateX(30px); opacity: 0; } }
.sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; padding-top: max(16px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.sheet__top h2 { margin: 0; font: 400 1.5rem/1.15 var(--f-d); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.sheet__body > * { flex-shrink: 0; }
.sheet .grid-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.picker button { min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-3); display: grid; place-items: center; align-content: center; gap: 2px; }
.picker button b { font: 400 1.3rem/1 var(--f-d); }
.picker button small { font-size: .68rem; color: var(--tx-3); }
.picker button.is-best { border-color: var(--vert); }
.picker button.is-busy { opacity: .4; }
.picker button[aria-pressed="true"] { background: var(--tx); color: var(--bg); }
.picker button[aria-pressed="true"] small { color: var(--bg); }
.kv { display: grid; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: .9rem; }
.kv div:first-child { border-top: 0; }
.kv span { color: var(--tx-3); }
.kv b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 600px) { .sheet__panel { width: 100%; border-left: 0; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 200; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translate(-50%, -160%); max-width: calc(100% - 24px); padding: 14px 18px; border-radius: 16px; background: var(--tx); color: var(--bg); font-weight: 600; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); transition: transform 450ms var(--ease); display: flex; align-items: center; gap: 12px; }
.toast.is-on { transform: translate(-50%, 0); }
.toast button { border: 0; background: var(--bg); color: var(--tx); border-radius: 10px; min-height: 34px; padding: 0 12px; font-weight: 600; }

/* ---------- impression de la liste ---------- */
@media print {
  body { background: #fff; color: #000; }
  .rail, .top, .fab, .tools, .brief button, .card__act, .vhead .btn { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .card { break-inside: avoid; background: none; border: 1px solid #999; color: #000; }
  .card__party { background: #eee; }
  .kpi { background: none; border-color: #999; color: #000; }
  .slot-g__h { position: static; background: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
