: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: #0D4F6B; --gold: #0D4F6B; --gold-hi: #2E7896; --gold-soft: #EAF3F5; --ok: #2e7d4f; --bad: #c2412d;   /* bleu lagon de DESIGN.md */
  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: 21px; color: #16202A; letter-spacing: 0; }   /* logo en noir, à la taille de la barre */
.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 : voir le bloc « Connexion BookyChat » plus bas */

/* ---------- 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; }


/* 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; }

/* ---------- 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; }

/* =====================================================================
   Connexion BookyChat : calme et pro (voir DESIGN.md)
   Formulaire sur fond blanc ; sur ordinateur, panneau lagon à gauche
   avec un aperçu de l'app. Pas de flou ni de dégradé.
   ===================================================================== */
.connexion {
  --k: #0D4F6B; --k-hi: #0A4058; --k-soft: #EAF3F5; --corail: #E86F51;
  --c-bg: #FFFFFF; --c-card: #FFFFFF; --c-ink: #16202A; --c-muted: #5B6672; --c-line: #DCE3E8;
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; display: grid; grid-template-columns: 1fr;
  background: var(--c-bg); color: var(--c-ink); font-family: var(--font);
}
body.cnx-open { overflow: hidden; }
.cnx-form { display: flex; flex-direction: column; min-height: 100%; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.cnx-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cnx-tete .marque { font-size: 20px; color: var(--c-ink); }
.cnx-langues { display: flex; gap: 4px; margin: 0; }
.cnx-langues button { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--c-muted); background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.cnx-langues button[aria-pressed="true"] { color: var(--c-ink); border-color: var(--c-line); background: #F6F8F9; }
.cnx-card { width: 100%; max-width: 380px; margin: auto; padding: 40px 0 32px; display: flex; flex-direction: column; gap: 16px; background: none; box-shadow: none; border-radius: 0; }
.cnx-card h1 { font-family: "Bricolage Grotesque", var(--font); font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0; }
.cnx-card .empty { color: var(--c-muted); font-size: 15px; margin: -6px 0 6px; line-height: 1.5; }
.cnx-card label { color: var(--c-ink); font-size: 13.5px; font-weight: 600; gap: 7px; }
.cnx-card input { height: 48px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1px solid var(--c-line); color: var(--c-ink); font-size: 16px; }
.cnx-card input:hover { border-color: #C4CFD6; }
.cnx-card input:focus { border-color: var(--k); box-shadow: 0 0 0 3px var(--k-soft); outline: none; }
.cnx-card .code-in { height: 60px; }
.cnx-card .btn { height: 48px; padding: 0 18px; border-radius: 10px; background: var(--k); color: #fff; border: 0; font-weight: 600; font-size: 15.5px; box-shadow: none; transition: background .15s; }
.cnx-card .btn:hover { background: var(--k-hi); }
.cnx-card .btn:focus-visible, .cnx-card .lnk:focus-visible, .sso:focus-visible, .cnx-langues button:focus-visible { outline: 2px solid var(--k); outline-offset: 2px; }
.cnx-card .btn:disabled { opacity: .6; }
.cnx-card .lnk { color: var(--k); font-weight: 600; font-size: 14px; align-self: flex-start; text-underline-offset: 3px; }
.cnx-card .lnk:hover { text-decoration: underline; }
.cnx-card .lnk:disabled { color: var(--c-muted); cursor: default; text-decoration: none; }
.sso { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s; }
.sso.google { background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); }
.sso.google:hover { background: #F6F8F9; border-color: #C4CFD6; }
.sso.apple { background: #000; color: #fff; border: 1px solid #000; }
.sso.apple:hover { background: #1d1d1f; }
.sso-ico { width: 19px; height: 19px; flex: none; }
.ou { display: flex; align-items: center; gap: 12px; color: var(--c-muted); font-size: 13px; margin: 2px 0; }
.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; }
.cnx-retour { display: inline-flex; align-items: center; gap: 4px; }
.cnx-retour .ico { width: 16px; height: 16px; }
.cnx-demo { margin: 0; text-align: center; font-size: 12.5px; color: var(--c-muted); }
.cnx-pied { margin: 0; text-align: center; font-size: 12.5px; color: var(--c-muted); }

/* panneau lagon (ordinateur) */
.cnx-cote { display: none; }
@media (min-width: 960px) {
  .connexion { grid-template-columns: minmax(380px, 0.72fr) minmax(480px, 1fr); }
  .cnx-cote { order: -1; }   /* panneau lagon à gauche, connexion à droite */
  .cnx-form { padding: 32px 48px; }
  .cnx-cote { display: flex; align-items: center; background: var(--k); color: #fff; padding: 48px 44px; position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .cnx-cote-in { max-width: 440px; margin: 0 auto; width: 100%; }
  .cnx-accroche { font-family: "Bricolage Grotesque", var(--font); font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
  .cnx-accroche span { display: block; color: #9FD3E3; text-wrap: balance; }
  .cnx-sous { margin: 16px 0 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .78); max-width: 440px; }
}

/* aperçu de l'app dans le panneau */
/* diaporama du panneau : les écrans se remplacent en fondu, toutes les 5 secondes */
.diapo { position: relative; margin-top: 36px; max-width: 420px; }
.slide { margin: 0; display: grid; gap: 14px; position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateX(14px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.slide.on { position: relative; opacity: 1; transform: none; }
.slide figcaption { font-size: 14px; font-weight: 600; color: #9FD3E3; }
.ap-agenda, .ap-carte, .ap-chat { background: #fff; color: var(--c-ink); border-radius: 16px; padding: 18px 20px 8px; min-height: 258px; box-sizing: border-box; }
.ap-carte ul, .ap-agenda ul { list-style: none; margin: 0; padding: 0; }
.ap-carte li, .ap-agenda li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #EEF2F4; font-size: 13px; color: var(--c-muted); }
.ap-carte li:first-child, .ap-agenda li:first-child { border-top: 0; }
.ap-chat { background: #EFE7DD; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ap-chat-tete { margin: -2px 0 4px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.ap-av { width: 26px; height: 26px; border-radius: 50%; background: #222e59; color: #d4b57c; font-size: 10px; display: grid; place-items: center; }
.ap-bulle { max-width: 82%; padding: 8px 11px 6px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.ap-bulle.moi { align-self: flex-end; background: #DCF8C6; border-top-right-radius: 3px; }
.ap-bulle.elle { align-self: flex-start; background: #fff; border-top-left-radius: 3px; min-width: 70px; }
.ap-bulle .ap-wa-h { margin-top: 2px; }
.ap-fac { padding-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.ap-fac-l { margin: 0; display: flex; justify-content: space-between; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ap-mute { color: var(--c-muted); }
.ap-total { border-top: 1px solid #EEF2F4; padding-top: 10px; font-weight: 700; font-size: 15px; }
.ap-fac-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; background: #1f8f4e; color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 8px; padding: 7px 11px; }
.ap-fac-btn .ico { width: 14px; height: 14px; }
.ap-barres { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin: 10px 0 14px; }
.ap-barres span { flex: 1; background: #CFE3EA; border-radius: 5px 5px 2px 2px; }
.ap-barres span.cour { background: var(--k); }
.diapo-points { display: flex; gap: 8px; margin-top: 18px; }
.diapo-points button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .3s, background .3s; }
.diapo-points button.on { width: 22px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
.ap-titre { margin: 0 0 6px; font-weight: 700; font-size: 15px; }
.ap-titre span { font-weight: 500; color: var(--c-muted); font-size: 13px; margin-left: 6px; }
.ap-h { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--c-ink); width: 44px; flex: none; }
.ap-n { flex: 1; min-width: 0; }
.ap-n strong { display: block; color: var(--c-ink); font-size: 14px; font-weight: 600; }
.ap-ok { width: 24px; height: 24px; border-radius: 50%; background: #E6F4EC; color: #1F7A4A; display: grid; place-items: center; flex: none; }
.ap-ok .ico { width: 14px; height: 14px; }
.ap-att { font-size: 11.5px; font-weight: 600; color: var(--k); background: var(--k-soft); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.ap-wa-h { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: #5D6B60; }
.ap-lu { display: inline-flex; color: #34B7F1; }
.ap-lu .ico { width: 14px; height: 14px; margin-left: -8px; }
.ap-lu .ico:first-child { margin-left: 0; }

/* ---------- accueil gérante (revue du 21/11) ---------- */
.kpi.zero .v { color: var(--muted); font-weight: 600; }
.todo-vide { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 14px; }
.todo-vide .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #E6F4EC; color: var(--ok); flex: none; }
.prenom-ligne { display: flex; align-items: flex-end; gap: 10px; }
.prenom-ligne label { flex: 1; min-width: 0; }
.side-bottom { gap: 6px; }
.side-share { width: 100%; justify-content: center; gap: 8px; height: 42px; font-size: 14px; }
.side-share .ico { width: 18px; height: 18px; }
.mod-aide { margin: -10px 0 4px 32px !important; font-size: 12.5px; }

/* ---------- assistant de démarrage ---------- */
.welcome:has(.dm-carte) { place-items: start center; padding-top: 28px; }
.dm-carte { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 10px; color: #16202A; }
.dm-haut { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.dm-retour, .dm-passer { border: 0; background: none; font: inherit; font-weight: 600; font-size: 15px; color: #5B6672; cursor: pointer; padding: 8px 4px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.dm-retour .ico { width: 18px; height: 18px; }
.dm-retour:hover, .dm-passer:hover { color: #16202A; }
.dm-progres { height: 4px; background: #DCE3E8; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.dm-progres span { display: block; height: 100%; background: #0D4F6B; border-radius: 4px; transition: width .25s; }
.dm-etape { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #5B6672; }
.dm-carte h2 { font-family: "Bricolage Grotesque", var(--font, sans-serif); font-weight: 700; font-size: 26px; line-height: 1.15; margin: 8px 0 0; color: #16202A; outline: none; }
.dm-sous { margin: 0 0 6px; color: #5B6672; font-size: 15px; line-height: 1.45; }
.dm-corps { display: flex; flex-direction: column; gap: 14px; }
.dm-lab { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #5B6672; text-transform: uppercase; letter-spacing: .04em; }
.dm-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-opt { border: 1px solid #DCE3E8; background: #fff; color: #16202A; font: inherit; font-weight: 600; font-size: 15px; padding: 12px 16px; border-radius: 12px; cursor: pointer; text-align: left; min-height: 48px; }
.dm-opt:hover { border-color: #0D4F6B; }
.dm-opt.on { border-color: #0D4F6B; background: #fff; box-shadow: inset 0 0 0 1px #0D4F6B; }
.dm-deux .dm-opt { flex: 1; text-align: center; }
.dm-liste { flex-direction: column; }
.dm-liste .dm-opt { width: 100%; }
.dm-input, .dm-heures select, .dm-svc input { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid #DCE3E8; background: #fff; color: #16202A; width: 100%; box-sizing: border-box; }
.dm-input:focus, .dm-heures select:focus, .dm-svc input:focus { outline: 2px solid #0D4F6B; outline-offset: -1px; border-color: #0D4F6B; }
.dm-champ { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #5B6672; }
.dm-champ[hidden] { display: none; }
.dm-jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dm-jour { border: 1px solid #DCE3E8; background: #fff; color: #5B6672; font: inherit; font-weight: 700; font-size: 14px; padding: 12px 0; border-radius: 10px; cursor: pointer; min-height: 48px; }
.dm-jour[aria-pressed="true"] { background: #0D4F6B; border-color: #0D4F6B; color: #fff; }
.dm-heures { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dm-heures label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #5B6672; }
.dm-svc-tete, .dm-svc { display: grid; grid-template-columns: minmax(0, 1fr) 64px 78px 40px; gap: 6px; align-items: center; }
.dm-svc-tete { font-size: 12px; font-weight: 700; color: #5B6672; text-transform: uppercase; letter-spacing: .04em; margin-bottom: -6px; }
#dmSvc { display: flex; flex-direction: column; gap: 8px; }
.dm-svc input { padding: 11px 10px; font-size: 15px; }
.dm-svc input[type=number] { padding: 11px 6px; text-align: right; }
.dm-suppr { border: 0; background: none; color: #5B6672; cursor: pointer; width: 40px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.dm-suppr:hover { background: #F4F6F8; color: #16202A; }
.dm-suppr .ico { width: 18px; height: 18px; }
.dm-ajout { align-self: flex-start; border: 1px dashed #DCE3E8; background: #fff; font: inherit; font-weight: 600; font-size: 14px; color: #0D4F6B; padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.dm-tel { display: flex; align-items: stretch; border: 1px solid #DCE3E8; border-radius: 12px; overflow: hidden; background: #fff; }
.dm-tel span { padding: 13px 12px; background: #F4F6F8; color: #5B6672; font-weight: 600; border-right: 1px solid #DCE3E8; }
.dm-tel .dm-input { border: 0; border-radius: 0; }
.dm-note { margin: 0; font-size: 14px; color: #5B6672; }
.dm-resume { list-style: none; margin: 0; padding: 0; border: 1px solid #DCE3E8; border-radius: 14px; }
.dm-resume li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid #DCE3E8; font-size: 15px; }
.dm-resume li:first-child { border-top: 0; }
.dm-resume span { color: #5B6672; }
.dm-resume b { text-align: right; font-weight: 700; }
.dm-suivant { margin-top: 10px; border: 0; border-radius: 12px; padding: 15px 18px; font: inherit; font-weight: 700; font-size: 16px; background: #16202A; color: #fff; cursor: pointer; min-height: 52px; }
.dm-suivant:hover { background: #0D4F6B; }
.dm-carte .err { margin: 0; }
@media (max-width: 420px) { .dm-svc-tete, .dm-svc { grid-template-columns: minmax(0, 1fr) 56px 70px 36px; gap: 4px; } .dm-carte h2 { font-size: 23px; } }

.abo-periode { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; background: #fff; border: 1px solid #DCE3E8; border-radius: 12px; }
.abo-periode button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; color: #5B6672; padding: 9px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.abo-periode button span { font-size: 11.5px; font-weight: 700; color: #0D4F6B; }
.abo-periode button[aria-pressed="true"] { background: #16202A; color: #fff; }
.abo-periode button[aria-pressed="true"] span { color: #fff; }
