:root {
  /* Layout: single quiet column, neutral surfaces, ink for selection, one deep green for brand marks only */
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #1b2340;
  --muted: #6b7083;
  --line: #e6e7ec;
  --accent: #222e59;
  --gold: #b8955a;
  --gold-hi: #d4b57c;
  --gold-soft: color-mix(in srgb, var(--gold) 16%, var(--surface));
  --soft: #f0f1f5;
  --brand: "Cormorant Garamond", Georgia, serif;
  --ok: #2e7d4f;
  --bad: #b3423b;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
/* BookyChat reste toujours en clair (blanc), même si le téléphone est en mode sombre */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.wrap { max-width: 520px; margin: 0 auto; padding: 20px 16px 120px; display: flex; flex-direction: column; gap: 20px; }
header.top { display: flex; align-items: center; gap: 16px; background: var(--accent); color: #fff; border-radius: 18px; padding: 18px 20px; border-bottom: 3px solid var(--gold); box-shadow: inset 0 0 0 1px rgba(184,149,90,.35); }
.logo { width: 64px; height: 64px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--gold); }
.salon-name { font-family: var(--brand); font-weight: 500; font-size: 28px; margin: 0; line-height: 1.05; letter-spacing: .01em; }
.tagline { color: var(--gold-hi); margin: 2px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.seg { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; cursor: pointer; }
.seg button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.stack { display: flex; flex-direction: column; gap: 28px; }
.sec { display: flex; flex-direction: column; gap: 12px; }
.lab { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0; }
h2 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.services { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.svc { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; cursor: pointer; }
.svc:first-child { border-top: 0; }
.svc .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c9ccc9; flex: none; display: grid; place-items: center; }
.svc[aria-pressed="true"] { background: var(--gold-soft); }
.svc[aria-pressed="true"] .radio { border-color: var(--gold); }
.svc[aria-pressed="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.svc .nm { font-weight: 600; }
.svc .meta { color: var(--muted); font-size: 13px; }
.svc .price { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 58px; padding: 10px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0; }
.day .dn { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day .dd { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.day .dm { display: none; }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--gold); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.day[aria-pressed="true"] .dn { color: var(--gold-hi); }
.month-lbl { font-size: 13px; color: var(--muted); text-transform: capitalize; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { padding: 11px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--gold-hi); border-color: var(--gold); }
.slot:disabled { color: #b9bcba; background: transparent; border-style: dashed; cursor: not-allowed; }
label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.btn { border: 0; border-radius: 12px; padding: 14px 18px; font: inherit; font-weight: 700; cursor: pointer; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1b2340; text-align: center; text-decoration: none; display: inline-block; }
.btn:disabled { opacity: .3; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--gold); }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn.wa { background: #1f8f4e; color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.empty { color: var(--muted); font-size: 14px; margin: 0; }
.err { color: var(--bad); font-size: 14px; margin: 0; }
.bar-bottom { position: fixed; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 5; }
.bar-bottom .in { max-width: 520px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.bar-bottom .sum { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.bar-bottom .sum strong { display: block; color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-top { display: flex; flex-direction: column; gap: 6px; }
.check-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); border: 1.5px solid var(--gold); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.recap { border-top: 1px solid var(--line); padding-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 600; text-align: right; text-transform: none; }
.bubble { background: var(--soft); border-left: 3px solid var(--gold); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 14px; white-space: pre-line; }
.wa-head { font-size: 13px; color: var(--muted); margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* gérante */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.kpi { padding: 16px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpis { border-top: 3px solid var(--gold); }
.kpi .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.kpi .l { font-size: 12px; color: var(--muted); line-height: 1.3; }
.dayline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dayline button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; width: 36px; height: 36px; font-size: 16px; cursor: pointer; }
.dayline .lbl { font-weight: 700; text-transform: capitalize; text-align: center; font-size: 15px; }
.dayline .lbl small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: none; }
.appt { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.appt:first-child { border-top: 0; padding-top: 2px; }
.appt .t { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.appt .t small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.appt .who { font-weight: 600; }
.appt .what { color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.confirme { color: var(--gold); }
.pill.venu { color: var(--ok); }
.pill.annule { color: var(--bad); }
.pill.new { color: var(--ink); background: var(--soft); padding: 1px 8px; border-radius: 99px; }
.pill.new::before { display: none; }
.appt.annule .who, .appt.annule .t { text-decoration: line-through; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.actions button, .actions a { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.actions .primary { background: var(--accent); color: var(--gold-hi); border-color: var(--accent); }
.clients { display: flex; flex-direction: column; }
.client { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.client:first-child { border-top: 0; padding-top: 0; }
.client .c2 { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.client a { color: var(--gold); font-weight: 600; font-size: 13px; text-decoration: none; }
.bar { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.toprow { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.toprow .r { display: flex; justify-content: space-between; }
.toprow .r span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.modal { position: fixed; inset: 0; background: rgba(10,12,11,.45); display: none; align-items: flex-end; justify-content: center; padding: 12px; z-index: 10; }
.modal.open { display: flex; }
.sheet { background: var(--surface); color: var(--ink); border-radius: 20px; width: 100%; max-width: 500px; max-height: 92%; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.invoice { border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 12px; }
.invoice .hd { display: flex; justify-content: space-between; gap: 12px; }
.invoice .ttl { font-size: 16px; font-weight: 700; }
.invoice table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.invoice td { padding: 8px 0; border-top: 1px solid var(--line); }
.invoice td:last-child { text-align: right; }
.invoice tr.total td { font-weight: 700; font-size: 16px; border-top: 1.5px solid var(--gold); }
.invoice { border-top: 3px solid var(--gold); }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.toast { position: fixed; left: 50%; top: 16px; transform: translate(-50%, -20px); background: var(--accent); color: #fff; border: 1px solid var(--gold); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 20; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.linkbox { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; word-break: break-all; }
.live { color: var(--ok); font-size: 12px; font-weight: 600; }
img.logo { object-fit: cover; background: #fff; }
.logo-ini { display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-family: var(--brand); font-size: 26px; font-weight: 600; }
.logo-prev { width: 72px; height: 72px; border-radius: 50%; flex: none; overflow: hidden; box-shadow: 0 0 0 2px var(--gold); display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-family: var(--brand); font-size: 28px; font-weight: 600; }
.logo-prev img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.svc-row { display: grid; grid-template-columns: 1fr 64px 84px 32px; gap: 6px; align-items: center; }
.svc-row input { padding: 10px; font-size: 15px; min-width: 0; }
.svc-row.head { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 480px) {
  .svc-row { grid-template-columns: 1fr 1fr 32px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .svc-row > :first-child { grid-column: 1 / -1; }
  .svc-row.head { border: 0; padding: 0; }
}
.svc-row .x { border: 0; background: none; color: var(--bad); font-size: 22px; cursor: pointer; padding: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.menu-btn { flex: none; width: 42px; height: 42px; margin: -4px 0 -4px -6px; border: 0; border-radius: 12px; background: none; cursor: pointer; display: grid; place-items: center; }
.menu-btn:hover { background: rgba(255,255,255,.08); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--gold-hi); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(10,12,20,.5); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); background: var(--surface); color: var(--ink); z-index: 31; transform: translateX(-102%); transition: transform .22s ease, visibility .22s; visibility: hidden; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0,0,0,.25); }
body.menu-open .drawer { transform: none; visibility: visible; }
body.menu-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer-head { background: var(--accent); color: #fff; padding: 20px 18px 18px; border-bottom: 3px solid var(--gold); display: flex; align-items: center; gap: 12px; }
.drawer-head .salon-name { font-size: 22px; }
.drawer-close { margin-left: auto; border: 0; background: none; color: var(--gold-hi); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.drawer nav { overflow-y: auto; padding: 10px 0 20px; flex: 1; }
.drawer .grp { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: 16px 20px 6px; margin: 0; }
.drawer .it { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; text-align: left; padding: 12px 20px; cursor: pointer; text-decoration: none; }
.drawer .it:hover, .drawer .it[aria-current="true"] { background: var(--gold-soft); }
.drawer .it .ic { width: 22px; text-align: center; color: var(--gold); flex: none; }
.drawer .it.out { color: var(--bad); }
.drawer .it.out .ic { color: var(--bad); }
.drawer .sep { height: 1px; background: var(--line); margin: 10px 20px; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-bg { transition: none; } }
textarea { resize: vertical; min-height: 96px; line-height: 1.45; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 99px; cursor: pointer; min-width: 44px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--gold-hi); border-color: var(--gold); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; position: relative; }
.sw[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-soft); }
.sw span { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface); }
.foot { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
@media (max-width: 380px) { .slots { grid-template-columns: repeat(3, 1fr); } .kpi .v { font-size: 17px; } }
@media (prefers-reduced-motion: no-preference) { .btn, .svc, .slot, .day { transition: background .15s, border-color .15s, color .15s; } }

/* ---------- icônes et petits éléments ---------- */
.ico { width: 18px; height: 18px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn .ico { width: 17px; height: 17px; }
.dayline button { display: grid; place-items: center; }
.check-ic .ico { width: 22px; height: 22px; }
.drawer .it .ico { color: var(--gold); width: 20px; height: 20px; }
.drawer .it.out .ico { color: var(--bad); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn.plain { border: 0; background: none; color: var(--muted); }
.icon-btn:hover { color: var(--ink); }
.muted-txt { color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--soft); padding: 1px 8px; border-radius: 99px; margin-left: 2px; }
.lien-fiche { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.lien-fiche:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.appt .who.lien-fiche { font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.badges:empty { display: none; }
.badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--ink); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
#agendaStaff { margin: 12px 0 2px; }

/* ---------- liste d'attente ---------- */
.wait-offer { border: 1px dashed var(--gold); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--gold-soft); }
.wait-offer p { margin: 0; font-size: 14px; }
.wait-offer .btn { align-self: flex-start; }
.wait-list { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.wait-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }

/* ---------- fiche client ---------- */
.fiche-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fiche-head h2 { margin-bottom: 2px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--soft); border-radius: 14px; }
.mini-kpis div { padding: 12px; display: flex; flex-direction: column; gap: 1px; border-left: 1px solid var(--line); }
.mini-kpis div:first-child { border-left: 0; }
.mini-kpis b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-kpis span { font-size: 12px; color: var(--muted); }
.fsec { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.fsec h3 { display: flex; align-items: center; gap: 8px; }
.fsec h3 .ico { width: 16px; height: 16px; }
.stamps { display: flex; flex-wrap: wrap; gap: 6px; }
.stamps span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gold); }
.stamps span.on { background: var(--gold); }
.frow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; font-size: 14px; }
.frest { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold); }
.frest small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.frest.fini { color: var(--muted); font-weight: 600; font-size: 13px; }
.form-in { display: flex; flex-direction: column; gap: 12px; background: var(--soft); border-radius: 14px; padding: 14px; }
.form-in input, .form-in select { background: var(--surface); }
.suivi { display: flex; flex-direction: column; gap: 10px; }
.suivi-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.diff { font-size: 12.5px; font-weight: 700; margin-left: 6px; font-variant-numeric: tabular-nums; }
.diff.baisse { color: var(--ok); }
.diff.hausse { color: var(--bad); }
.spark { flex: none; }
.mes-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mes-table th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 4px 4px 6px 0; }
.mes-table th small { font-weight: 400; }
.mes-table td { padding: 6px 4px 6px 0; border-top: 1px solid var(--line); }
.mes-table td:last-child { width: 34px; padding: 0; }
.hrow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.hrow span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- équipe ---------- */
.eq-row { display: grid; grid-template-columns: 34px 1fr 34px; gap: 8px; align-items: center; }
.eq-row input { padding: 10px 12px; font-size: 15px; min-width: 0; }
.sw.small { width: 30px; height: 30px; border-width: 2px; }

/* ---------- BookyChat ---------- */
.brand-k { font-family: var(--brand); font-size: 22px; font-weight: 600; letter-spacing: .02em; color: var(--gold); margin: 0; }
.drawer-foot { font-family: var(--brand); font-size: 17px; color: var(--muted); text-align: center; margin: 0; padding: 14px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

/* ---------- premier lancement et choix de langue ---------- */
.welcome { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-items: center; padding: 20px 16px; overflow-y: auto; }
body.welcome-open { overflow: hidden; }
.welcome-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 20px; padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; }
.welcome-card h2 { font-size: 24px; }
.welcome-card select { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.lang-choice { display: flex; flex-direction: column; gap: 8px; }
.lang-choice button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.lang-choice button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.lang-choice .ico { color: var(--gold); }
.foot-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.langues { display: flex; gap: 4px; }
.langues button { border: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.langues button[aria-pressed="true"] { color: var(--ink); border-color: var(--gold); }

/* =====================================================================
   Tableau de bord de la gérante (style clair BookyChat)
   ===================================================================== */
body.mode-gerante {
  --bg: #f4f6f8; --surface: #ffffff; --ink: #18212b; --muted: #667085; --line: #e4e7ec; --soft: #f2f4f7;
  --accent: #11698e; --gold: #11698e; --gold-hi: #3a8fb3; --gold-soft: #e5f1f6; --ok: #2e7d4f; --bad: #c2412d;
  background: var(--bg); color: var(--ink);
}
body.mode-gerante header.top, body.mode-gerante #mainSeg { display: none; }
body.mode-gerante .wrap { max-width: 1080px; padding: 0 16px 110px; gap: 0; }
body.mode-gerante .foot-row { margin-top: 28px; }

/* barre du haut */
.shell-top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 14px 0; background: var(--bg); }
.shell-top h1 { flex: 1; font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.shell-menu { flex: none; width: 40px; height: 40px; margin-left: -6px; border: 0; border-radius: 10px; background: none; cursor: pointer; display: grid; place-items: center; }
.shell-menu span, .shell-menu span::before, .shell-menu span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; }
.shell-menu span::before, .shell-menu span::after { content: ""; position: absolute; left: 0; }
.shell-menu span::before { top: -6px; } .shell-menu span::after { top: 6px; }

/* navigation : en bas sur téléphone */
.side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 2px 4px calc(2px + env(safe-area-inset-bottom)); }
.side-brand, .side-salon, .side-bottom { display: none; }
.side-items { display: flex; width: 100%; }
.side-it { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; padding: 8px 2px 6px; cursor: pointer; }
.side-it .ico { width: 22px; height: 22px; }
.side-it[aria-current="page"] { color: var(--accent); }
.side-it.bureau { display: none; }
.pastille { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

/* navigation : sur le côté sur ordinateur */
@media (min-width: 900px) {
  .side { top: 0; right: auto; width: 240px; flex-direction: column; border-top: 0; border-right: 1px solid var(--line); padding: 22px 12px 16px; }
  .side-brand, .side-salon, .side-bottom { display: flex; }
  .side-items { flex-direction: column; gap: 2px; flex: 1; }
  .side-it, .side-it.bureau { display: flex; flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
  .side-it .ico { width: 20px; height: 20px; color: var(--muted); }
  .side-it:hover { background: var(--soft); }
  .side-it[aria-current="page"] { background: var(--gold-soft); color: var(--accent); }
  .side-it[aria-current="page"] .ico { color: var(--accent); }
  .pastille { position: static; margin-left: auto; }
  body.mode-gerante .wrap { margin-left: 240px; max-width: none; padding: 0 36px 40px; }
  body.mode-gerante .wrap > * { max-width: 1000px; width: 100%; }
  .shell-menu { display: none; }
  .shell-top { padding: 26px 0 18px; }
  .shell-top h1 { font-size: 26px; }
}
.side-brand { padding: 0 12px 16px; }
.side-brand .brand-k { font-size: 27px; color: var(--accent); }
.side-salon { align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; }
.side-ini { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--gold-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.side-bottom { border-top: 1px solid var(--line); padding-top: 10px; }
.side-bottom .side-it { width: 100%; color: var(--muted); }

/* composants dans le tableau de bord */
body.mode-gerante .card { border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
body.mode-gerante h3 { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 15.5px; }
body.mode-gerante .lab { color: var(--muted); }
body.mode-gerante .btn { background: var(--accent); color: #fff; }
body.mode-gerante .btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
body.mode-gerante .btn.wa { background: #1f8f4e; color: #fff; }
body.mode-gerante .kpis { border-top: 1px solid var(--line); }
body.mode-gerante .actions .primary { background: var(--accent); color: #fff; border-color: var(--accent); }
body.mode-gerante .pill.confirme { color: var(--accent); }
.kpis.k4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; background: none; border: 0; }
.kpis.k4 .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.kpis.k4 .kpi:first-child { border-left: 1px solid var(--line); }
@media (min-width: 700px) { .kpis.k4 { grid-template-columns: repeat(4, 1fr); } }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.hello { font-size: 19px; font-weight: 700; margin: 0; }
.hello-sub { color: var(--muted); margin: 2px 0 0; font-size: 14px; }
.row.sb { justify-content: space-between; }
.lnk { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 0; }
.mini-rdv { display: grid; grid-template-columns: 52px 1fr auto; grid-template-areas: "h n p" "h s p"; gap: 0 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; font-size: 14px; }
.mini-rdv:first-child { border-top: 0; padding-top: 0; }
.mini-rdv .h { grid-area: h; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-rdv .lien-fiche { grid-area: n; font-weight: 600; }
.mini-rdv .muted-txt { grid-area: s; }
.mini-rdv .pill { grid-area: p; }
.todo-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.todo-it:first-child { border-top: 0; padding-top: 0; }
.todo-it b { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 9px; background: var(--gold-soft); color: var(--accent); display: grid; place-items: center; }
.todo-it span { flex: 1; font-size: 14px; }
.todo-it .ico { color: var(--muted); width: 16px; height: 16px; }
.msg-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.search { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--gold-soft); }
.fact-list { display: flex; flex-direction: column; }
.fact-row { display: grid; grid-template-columns: 82px 1fr auto; grid-template-areas: "d n m" "d c m"; gap: 0 12px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; align-items: center; font-size: 14px; }
.fact-row:first-child { border-top: 0; padding-top: 0; }
.fact-row .muted-txt { grid-area: d; }
.fact-row strong { grid-area: n; font-variant-numeric: tabular-nums; }
.fact-row span:nth-of-type(2) { grid-area: c; color: var(--muted); font-size: 13px; }
.fact-row .r { grid-area: m; font-weight: 700; font-variant-numeric: tabular-nums; }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
label.inline input { padding: 8px 10px; font-size: 15px; }
.set-nav { position: sticky; top: 62px; z-index: 3; background: var(--bg); padding: 6px 0 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.set-nav::-webkit-scrollbar { display: none; }
.set-nav .chip { white-space: nowrap; }
@media (min-width: 900px) { .set-nav { top: 78px; } }
.side-it { text-align: left; }
@media (min-width: 900px) {
  .side-bottom { flex-direction: column; }
  .side-bottom .side-it { width: 100%; align-items: center; }
  .side-bottom .side-it span { flex: 1; }
}
.set-nav .chip { flex: none; }

/* ---------- confidentialité ---------- */
label.check.consent { align-items: flex-start; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--ink); }
label.check.consent input { margin-top: 1px; flex: none; }
#voirConfid { align-self: flex-start; color: var(--gold); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.ghost.danger-txt { color: var(--bad); }
.confid-sec h3 { margin: 0 0 4px; }
.confid-sec p { margin: 0; font-size: 14px; line-height: 1.55; }

/* =====================================================================
   Page de connexion (gérante)
   ===================================================================== */
.connexion {
  --k: #11698e; --k-hi: #3a8fb3; --k-soft: #e5f1f6; --c-bg: #f4f6f8; --c-card: #fff; --c-ink: #18212b; --c-muted: #667085; --c-line: #e4e7ec;
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr; background: var(--c-bg); color: var(--c-ink); overflow-y: auto;
}
body.cnx-open { overflow: hidden; }
.cnx-art { position: relative; overflow: hidden; background: #0d4f6b; color: #fff; padding: 34px 24px 30px; min-height: 190px; display: flex; align-items: flex-end; }
.cnx-art .blob { position: absolute; border-radius: 50%; filter: blur(42px); opacity: .55; animation: flotte 16s ease-in-out infinite alternate; }
.cnx-art .b1 { width: 260px; height: 260px; background: #2fb3a6; top: -80px; left: -60px; }
.cnx-art .b2 { width: 220px; height: 220px; background: #e9b872; bottom: -110px; right: -40px; animation-duration: 19s; animation-delay: -4s; }
.cnx-art .b3 { width: 180px; height: 180px; background: #4f8fd6; top: 30%; right: 25%; animation-duration: 22s; animation-delay: -9s; }
@keyframes flotte { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 18px) scale(1.12); } 100% { transform: translate(-22px, 26px) scale(.94); } }
.cnx-art-txt { position: relative; }
.cnx-art .brand-k { color: #fff; font-size: 30px; margin-bottom: 14px; }
.cnx-mot { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.15; transition: opacity .35s, transform .35s; }
.cnx-mot.sort { opacity: 0; transform: translateY(8px); }
.cnx-sous { margin: 6px 0 0; color: rgba(255, 255, 255, .82); font-size: 15px; }
.cnx-form { display: grid; place-items: start center; padding: 22px 16px 40px; }
.cnx-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.cnx-card h1 { font-size: 24px; margin: 0; letter-spacing: -.01em; }
.cnx-card .empty { color: var(--c-muted); margin: -6px 0 0; }
.cnx-card label { color: var(--c-muted); }
.cnx-card input { background: var(--c-card); border-color: var(--c-line); color: var(--c-ink); }
.cnx-card input:focus { border-color: var(--k); box-shadow: 0 0 0 3px var(--k-soft); }
.cnx-card .btn { background: var(--k); color: #fff; padding: 14px 18px; }
.cnx-card .lnk { color: var(--k); align-self: flex-start; }
.cnx-card .lnk:disabled { color: var(--c-muted); cursor: default; }
.cnx-marque { display: none; }
.sso { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 16px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.sso:active { transform: scale(.985); }
.sso.google { background: var(--c-card); color: var(--c-ink); border: 1px solid var(--c-line); }
.sso.apple { background: #000; color: #fff; border: 1px solid #000; }
.sso:hover { box-shadow: 0 2px 10px rgba(16, 24, 40, .1); }
.sso-ico { width: 20px; height: 20px; flex: none; }
.ou { display: flex; align-items: center; gap: 12px; color: var(--c-muted); font-size: 13px; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.code-in { font-size: 28px !important; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; padding: 14px !important; }
.cnx-retour { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.cnx-retour .ico { width: 16px; height: 16px; }
.cnx-langues { justify-content: center; margin-top: 6px; }
.cnx-langues button { color: var(--c-muted); border-color: var(--c-line); }
.cnx-langues button[aria-pressed="true"] { color: var(--c-ink); border-color: var(--k); }
@media (min-width: 900px) {
  .connexion { grid-template-rows: none; grid-template-columns: 1.1fr 1fr; }
  .cnx-art { min-height: 100vh; padding: 56px; align-items: center; }
  .cnx-art .brand-k { font-size: 36px; }
  .cnx-mot { font-size: 46px; }
  .cnx-sous { font-size: 18px; }
  .cnx-art .b1 { width: 420px; height: 420px; }
  .cnx-art .b2 { width: 360px; height: 360px; }
  .cnx-art .b3 { width: 300px; height: 300px; }
  .cnx-form { place-items: center; padding: 40px; }
}
@media (prefers-reduced-motion: reduce) { .cnx-art .blob { animation: none; } .cnx-mot, .sso { transition: none; } }

/* ---------- paiement ---------- */
.pay-step { gap: 14px; }
.pay-retour { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 14px; color: var(--gold); }
.pay-retour .ico { width: 16px; height: 16px; }
.pay-modes { display: flex; flex-direction: column; gap: 8px; }
.pay-mode { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.pay-mode > .ico { width: 22px; height: 22px; color: var(--gold); }
.pay-mode span:not(.pay-radio) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pay-mode small { color: var(--muted); font-size: 13px; }
.pay-mode[aria-checked="true"] { border-color: var(--gold); background: var(--gold-soft); }
.pay-radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; display: grid; place-items: center; }
.pay-mode[aria-checked="true"] .pay-radio { border-color: var(--gold); }
.pay-mode[aria-checked="true"] .pay-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.pay-etapes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.pay-info { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); font-size: 14px; }
.badge.ok { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); }

/* ---------- MIPS ---------- */
.mips-zone { min-height: 200px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.mips-cadre { width: 100%; height: 540px; border: 0; display: block; }
.mips-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--soft); }
.mips-box input { background: var(--surface); }

/* ---------- Paramètres : liste claire, une partie à la fois ---------- */
.set-liste { display: flex; flex-direction: column; gap: 10px; }
.set-groupe { margin: 8px 0 0; }
.set-groupe-liste { padding: 4px 0; gap: 0; }
.set-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.set-row:first-child { border-top: 0; }
.set-row:hover { background: var(--soft); }
.set-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.set-ico .ico { width: 19px; height: 19px; }
.set-txt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.set-txt small { color: var(--muted); font-size: 13px; }
.set-row > .ico { color: var(--muted); width: 16px; height: 16px; }
.set-retour { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; align-self: flex-start; }
.set-retour .ico { width: 16px; height: 16px; }
.faq-it { border-top: 1px solid var(--line); padding: 12px 0; }
.faq-it:first-of-type { border-top: 0; padding-top: 0; }
.faq-it summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-it summary::-webkit-details-marker { display: none; }
.faq-it summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq-it[open] summary::after { content: "−"; }
.faq-it p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
/* menu ☰ : survol discret, une seule ligne marquée comme sélectionnée */
.drawer .it:hover { background: var(--soft); }
.drawer .it[aria-current="true"] { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.drawer .grp:not(:first-child) { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 18px; }

/* le menu ☰ (paramètres et service clients) reste visible sur ordinateur aussi */
@media (min-width: 900px) { .shell-menu { display: grid; margin-left: -8px; } }

/* cases à cocher : le texte ne coche pas, le carré est plus grand et facile à toucher */
label.check { cursor: default; }
label.check input[type="checkbox"] { width: 22px; height: 22px; cursor: pointer; flex: none; margin: 0; }

/* ---------- connexion : l'animation remplit tout l'écran, la connexion flotte par-dessus ---------- */
.connexion { background: #0d4f6b; isolation: isolate; }
.connexion .cnx-art { position: static; overflow: visible; background: none; min-height: 0; padding: 40px 24px 8px; }
.connexion .blob { position: fixed; z-index: -1; opacity: .6; }
.connexion .b1 { width: 70vmax; height: 70vmax; top: -25vmax; left: -20vmax; }
.connexion .b2 { width: 60vmax; height: 60vmax; bottom: -25vmax; right: -15vmax; }
.connexion .b3 { width: 45vmax; height: 45vmax; top: 35%; left: 35%; }
.connexion .cnx-art-txt, .connexion .cnx-form { position: relative; z-index: 1; }
.connexion .cnx-form { padding: 16px 16px 40px; }
.connexion .cnx-card { background: var(--c-card); border-radius: 22px; padding: 26px 22px; box-shadow: 0 24px 60px rgba(4, 30, 44, .35); }
@media (min-width: 900px) {
  .connexion .cnx-art { min-height: 100vh; padding: 56px; }
  .connexion .cnx-form { padding: 40px; }
  .connexion .cnx-card { padding: 34px 30px; }
}

/* ---------- « BookyChat au travail » : petite scène animée, sur ordinateur seulement ---------- */
.scene { display: none; }
@media (min-width: 900px) {
  .scene { display: block; position: relative; width: 430px; height: 330px; margin-top: 44px; }
  .sc { position: absolute; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px; color: #18212b;
        background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px rgba(4, 30, 44, .28); opacity: 0; will-change: transform, opacity; }
  .sc small { display: block; font-size: 11.5px; color: #667085; font-weight: 600; letter-spacing: .02em; }
  .sc strong { display: block; font-size: 15px; }
  .sc-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #e5f1f6; color: #11698e; flex: none; }
  .sc-ico .ico { width: 19px; height: 19px; }
  .sc-meta { font-size: 12.5px; color: #667085; }
  .sc-rdv { top: 0; left: 0; width: 300px; animation: sc-rdv 12s ease-in-out infinite; }
  .sc-wa { top: 92px; left: 120px; width: 290px; display: block; background: #dcf8c6; border-radius: 16px 16px 4px 16px; animation: sc-wa 12s ease-in-out infinite; }
  .sc-wa p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; }
  .sc-heure { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: #667085; }
  .sc-lu { display: inline-flex; color: #34b7f1; }
  .sc-lu .ico { width: 14px; height: 14px; margin-left: -8px; }
  .sc-lu .ico:first-child { margin-left: 0; }
  .sc-pay { top: 192px; left: 20px; width: 260px; animation: sc-pay 12s ease-in-out infinite; }
  .sc-pay .sc-ico { background: #e6f5ec; color: #1f8f4e; }
  .sc-etat { margin-left: auto; position: relative; font-size: 12px; font-weight: 700; min-width: 74px; text-align: right; }
  .sc-att, .sc-ok { position: absolute; right: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 3px 9px; border-radius: 99px; }
  .sc-att { background: #fdf0dc; color: #9a5b00; animation: sc-att 12s infinite; }
  .sc-ok { display: inline-flex; align-items: center; gap: 3px; background: #e6f5ec; color: #1f8f4e; opacity: 0; animation: sc-ok 12s infinite; }
  .sc-ok .ico { width: 13px; height: 13px; }
  .sc-fac { top: 254px; left: 170px; width: 250px; animation: sc-fac 12s ease-in-out infinite; }
  .sc-barre { display: block; width: 150px; height: 5px; border-radius: 3px; background: #e4e7ec; margin-top: 7px; overflow: hidden; }
  .sc-barre span { display: block; height: 100%; width: 0; background: #11698e; animation: sc-barre 12s infinite; }
}
/* chaque carte arrive à son tour, tout disparaît ensemble, puis ça recommence */
@keyframes sc-rdv { 0%, 2% { opacity: 0; transform: translateY(16px) scale(.97); } 7%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes sc-wa  { 0%, 20% { opacity: 0; transform: translateY(16px) scale(.97); } 25%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes sc-pay { 0%, 38% { opacity: 0; transform: translateY(16px) scale(.97); } 43%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes sc-att { 0%, 50% { opacity: 1; } 53%, 100% { opacity: 0; } }
@keyframes sc-ok  { 0%, 50% { opacity: 0; transform: translateY(-50%) scale(.8); } 54%, 100% { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes sc-fac { 0%, 58% { opacity: 0; transform: translateY(16px) scale(.97); } 63%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes sc-barre { 0%, 63% { width: 0; } 76%, 100% { width: 100%; } }
/* moins de mouvement demandé : la scène est figée, tout est visible */
@media (prefers-reduced-motion: reduce) {
  .sc, .sc-att, .sc-ok, .sc-barre span { animation: none !important; }
  .sc { opacity: 1; } .sc-att { opacity: 0; } .sc-ok { opacity: 1; } .sc-barre span { width: 100%; }
}

/* ---------- mot de passe : œil, jauge ; sécurité du compte ---------- */
.mdp { position: relative; display: block; }
.mdp input { width: 100%; padding-right: 48px; }
.oeil { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.oeil .ico { width: 20px; height: 20px; }
.oeil.on { color: var(--ink); }
.oeil.on .ico { opacity: .55; }
.cnx-card .oeil { color: var(--c-muted); }
.jauge { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -6px; }
.jauge span { height: 4px; border-radius: 2px; background: var(--line); transition: background .2s; }
.cnx-card .jauge span { background: var(--c-line); }
.jauge[data-f="1"] span:nth-child(-n+1) { background: var(--bad, #c2412d); }
.jauge[data-f="2"] span:nth-child(-n+2) { background: #d39b2a; }
.jauge[data-f="3"] span:nth-child(-n+3) { background: var(--ok); }
.jauge[data-f="4"] span { background: var(--ok); }
.jauge-txt { margin: -8px 0 0 !important; }
.cnx-oubli { margin-top: -6px; font-size: 13px !important; }
.cnx-bas { margin: 4px 0 0; font-size: 14px; color: var(--c-muted); text-align: center; }
.cnx-card .cnx-bas .lnk { display: inline; align-self: auto; font-size: 14px; }
.sec-ligne { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sec-ligne strong { font-size: 14.5px; }
.sec-ligne .btn { flex: none; }
.sec-journal summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.sec-journal ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.sec-journal li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.etapes-mfa { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.qr-mfa { align-self: center; width: 180px; height: 180px; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--line); }
.qr-mfa.vide { display: grid; place-items: center; text-align: center; font-size: 12.5px; color: #667085; }
.cle-mfa { font-size: 13px; background: var(--soft, #f2f4f7); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.cnx-mdp-bloc { display: flex; flex-direction: column; gap: 14px; }
.cnx-mdp-bloc[hidden] { display: none; }
.cnx-mdp-bloc.apparait { animation: apparait .35s ease-out; }
@keyframes apparait { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cnx-mdp-bloc.apparait { animation: none; } }

/* ---------- WhatsApp ---------- */
.wa-salon { display: inline-flex; align-items: center; gap: 8px; align-self: center; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; padding: 10px 4px; }
.wa-salon .ico { width: 18px; height: 18px; }
.wa-auto { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.wa-etat { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.wa-etat .pastille { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }

/* ---------- statistiques ---------- */
.histo { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; height: 170px; align-items: end; }
.histo-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.histo-b { width: 100%; max-width: 44px; min-height: 2px; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); border-radius: 6px 6px 2px 2px; }
.histo-col.cour .histo-b { background: var(--accent); }
.histo-v { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.histo-l { font-size: 12px; color: var(--muted); }
.histo-col.cour .histo-l { color: var(--ink); font-weight: 600; }
.jours-stats { display: flex; gap: 8px; height: 120px; align-items: flex-end; }
.jour-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.jour-b { width: 100%; max-width: 32px; min-height: 2px; background: var(--accent); border-radius: 6px 6px 2px 2px; opacity: .85; }
.jour-l { font-size: 12px; color: var(--muted); }
.top-clients { display: flex; flex-direction: column; }
.top-cl { display: flex; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: left; padding: 10px 0; cursor: pointer; }
.top-cl:last-child { border-bottom: 0; }
.top-cl span:first-child { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-cl span:last-child { flex: none; font-variant-numeric: tabular-nums; }
#stats .chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- abonnement et quota de rappels ---------- */
.quota { display: flex; flex-direction: column; gap: 8px; }
.quota-r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.quota-r span { color: var(--muted); font-size: 13px; }
.quota-b { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.quota-b span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.quota.alerte .quota-b span { background: #d39b2a; }
.quota.epuise .quota-b span { background: var(--bad); }
.quota-msg { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.quota.alerte .quota-msg { color: #9a6a10; font-weight: 600; }
.quota.epuise .quota-msg { color: var(--bad); font-weight: 600; }
.abo-mois-en-cours { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.abo-cartes { display: grid; gap: 14px; }
@media (min-width: 700px) { .abo-cartes { grid-template-columns: repeat(2, 1fr); } }
.abo-carte { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.abo-carte.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.abo-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.abo-tete h4 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.abo-pourqui { margin: -8px 0 0; font-size: 13.5px; color: var(--muted); }
.abo-gros { margin: 0; display: flex; align-items: baseline; gap: 4px; font-size: 40px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.abo-rs { font-size: 20px; font-weight: 600; }
.abo-mois { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.abo-an { margin: -6px 0 0; font-size: 13.5px; color: var(--muted); }
.abo-quota { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.abo-quota p { margin: 0; font-size: 14.5px; }
.abo-quota strong { font-size: 26px; letter-spacing: -.01em; margin-right: 4px; font-variant-numeric: tabular-nums; }
.abo-quota small { font-size: 13px; color: var(--muted); }
.abo-btn { width: 100%; justify-content: center; }
body .abo-carte .btn.abo-btn:disabled { background: var(--soft); color: var(--muted); border-color: var(--line); cursor: default; opacity: 1; }
.abo-inclus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.abo-inclus li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.abo-inclus .ico { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 1px; }

/* ---------- logo BookyChat ---------- */
.marque { display: inline-flex; align-items: center; gap: .3em; line-height: 1; }
.marque .logo-bc { flex: none; }
.marque-nom { font-family: "Bricolage Grotesque", var(--font); font-weight: 500; letter-spacing: -.02em; }
.marque-nom b { font-weight: 700; }
.brand-k .marque { font-size: 1em; }
