:root {
  --bg: #111111;
  --page: #0A0A0B;
  --surface: #1A1A1C;
  --surface-2: #1C1C1E;
  --line: rgba(245, 244, 240, 0.09);
  --line-2: rgba(245, 244, 240, 0.16);
  --line-3: rgba(245, 244, 240, 0.22);
  --text: #F5F4F0;
  --soft: #CFCDC8;
  --muted: #9C9A98;
  --accent: #B85D43;
  --accent-text: #E39A80;
  --navy: #0E1B2A;
  --ok: #6FBF8A;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); position: relative; }
.boot { min-height: 100dvh; display: flex; align-items: center; justify-content: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent-text); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Typography helpers */
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.micro { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 500; }
.h1 { margin: 0; font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1.02; letter-spacing: -0.5px; }
.h1 em { font-style: italic; color: var(--accent-text); }
.h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.accent { color: var(--accent-text); }
.muted { color: var(--muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: calc(18px + var(--safe-top)) 22px 16px; background: linear-gradient(var(--bg) 78%, rgba(17,17,17,0)); }
.top .who { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.top .name { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--ok); box-shadow: 0 0 0 3px rgba(111,191,138,0.18); }
.dot.off { background: #7D7B7A; box-shadow: 0 0 0 3px rgba(125,123,122,0.15); }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: transparent; display: inline-flex; align-items: center; justify-content: center; position: relative; flex: none; }
.icon-btn .badge { position: absolute; top: 11px; right: 12px; width: 7px; height: 7px; border-radius: 4px; background: var(--accent); }

/* Main */
main { padding: 4px 22px calc(130px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.section { display: flex; flex-direction: column; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(245,244,240,0.12); border-bottom: 1px solid rgba(245,244,240,0.12); }
.kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: none; }
.kpi { padding: 18px 0 18px 16px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(245,244,240,0.12); }
.kpi:first-child { padding-left: 0; border-left: none; }
.kpis.two .kpi { border-bottom: 1px solid rgba(245,244,240,0.12); }
.kpis.two .kpi:nth-child(odd) { padding-left: 0; border-left: none; }
.kpi .num { font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 1; }

/* Rows */
.row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.row .time { font-family: var(--serif); font-size: 24px; font-weight: 500; width: 62px; flex: none; line-height: 1; }
.row .body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.row .title { font-size: 14px; font-weight: 600; }
.row .meta { font-size: 11px; color: var(--muted); }
.row .note { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent-text); }
.row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.row.dim { opacity: 0.45; }
.row.dim .title { text-decoration: line-through; }
.src { font-size: 8px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.src.lea { color: var(--accent-text); }
.empty { padding: 36px 16px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); border-top: 1px solid var(--line); }

/* Buttons */
.pill { height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line-2); background: transparent; font-size: 9px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; text-decoration: none; color: var(--text); }
.pill.on { background: var(--text); color: #111111; border-color: var(--text); }
.pill.warn { color: var(--accent-text); }
.pill.solid { background: var(--text); color: #111111; border-color: var(--text); }
.btn-primary { height: 54px; border-radius: 27px; border: none; background: var(--accent); color: #FFFFFF; font-size: 10px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; width: 100%; }
.btn-primary[disabled] { opacity: 0.6; }
.fab { width: 48px; height: 48px; border-radius: 24px; border: none; background: var(--accent); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Callback banner */
.callout { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 18px; border: 1px solid rgba(184,93,67,0.45); background: rgba(184,93,67,0.08); text-align: left; color: var(--text); width: 100%; }
.callout .body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.callout .big { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.circle { width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--line-3); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* Day picker */
.days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin: 0 -22px; padding-left: 22px; padding-right: 22px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { width: 66px; height: 76px; border-radius: 18px; border: 1px solid var(--line-2); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none; color: var(--text); }
.day .n { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; }
.day.on { background: var(--text); color: #111111; border-color: var(--text); }

/* Calls */
.call { border-top: 1px solid var(--line); }
.call-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 0; border: none; background: transparent; text-align: left; color: var(--text); }
.tag { font-size: 8px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 10px; border-radius: 20px; border: 1px solid var(--line-3); color: #E8E6E1; flex: none; }
.tag.callback { border-color: rgba(184,93,67,0.55); background: rgba(184,93,67,0.14); color: var(--accent-text); }
.tag.info { border-color: rgba(245,244,240,0.12); color: var(--muted); }
.tag.done { border-color: rgba(111,191,138,0.4); color: var(--ok); }
.call-body { padding: 0 0 18px; display: flex; flex-direction: column; gap: 14px; }
.quote { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.4; color: #E8E6E1; }
.call-body audio { width: 100%; height: 40px; }

/* Clients */
.search { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 18px; border-radius: 25px; background: var(--surface); border: 1px solid rgba(245,244,240,0.10); }
.search input { flex: 1; border: none; outline: none; background: transparent; font-size: 16px; min-width: 0; }
.search input::placeholder { color: #7F7D7B; }
.avatar { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-3); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; font-weight: 600; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-tag { font-size: 8px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--soft); }
.chip-tag.warn { border-color: rgba(184,93,67,0.6); color: var(--accent-text); }
.visits { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--accent-text); flex: none; }

/* Léa card */
.lea-card { border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 18px; background: var(--navy); border: 1px solid rgba(245,244,240,0.08); }
.lea-card .head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lea-card .big { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; }
.lea-card .desc { font-size: 12px; color: #B7BFC8; line-height: 1.5; margin-top: 6px; }
.lea-card .foot { padding-top: 16px; border-top: 1px solid rgba(245,244,240,0.10); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.switch { width: 60px; height: 44px; border: none; background: transparent; padding: 0; flex: none; display: flex; align-items: center; }
.switch .track { width: 54px; height: 30px; border-radius: 15px; background: #3A4552; display: flex; align-items: center; padding: 3px; transition: background 0.2s; }
.switch .knob { width: 24px; height: 24px; border-radius: 12px; background: var(--text); transition: transform 0.2s; }
.switch[aria-checked="true"] .track { background: var(--accent); }
.switch[aria-checked="true"] .knob { transform: translateX(24px); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.setting:last-child { border-bottom: 1px solid var(--line); }
.setting .k { font-size: 13px; color: var(--soft); }
.setting .v { font-family: var(--serif); font-size: 20px; font-weight: 500; text-align: right; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: transparent; font-size: 18px; }
.stepper .val { width: 34px; text-align: center; font-family: var(--serif); font-size: 24px; font-weight: 500; }

/* Nav */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-bottom)); z-index: 4; width: calc(min(480px, 100vw) - 28px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px; border-radius: 30px; background: rgba(28,28,30,0.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(245,244,240,0.10); box-shadow: 0 20px 40px rgba(0,0,0,0.45); }
.nav button { height: 54px; border: none; border-radius: 24px; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav button span { font-size: 8px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.nav button[aria-current="page"] { background: var(--text); color: #111111; }

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(84px + var(--safe-top)); z-index: 6; width: calc(min(480px, 100vw) - 32px); display: flex; align-items: center; gap: 14px; padding: 14px 8px 14px 16px; border-radius: 20px; background: var(--surface-2); border: 1px solid rgba(245,244,240,0.10); box-shadow: 0 24px 48px rgba(0,0,0,0.5); animation: drop 0.35s ease-out; }
.toast .body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.toast .t { font-size: 13px; font-weight: 500; }
.toast.error .micro { color: var(--accent-text); }
.ring { width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--accent); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Sheet */
.scrim { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,0.6); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.sheet { width: min(480px, 100vw); max-height: 92dvh; overflow-y: auto; background: #18181A; border-top: 1px solid rgba(245,244,240,0.10); border-radius: 28px 28px 0 0; padding: 22px 22px calc(28px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; animation: rise 0.3s ease-out; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.field input, .field select { height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(245,244,240,0.14); background: var(--bg); font-size: 16px; color: var(--text); width: 100%; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-error { font-size: 12px; font-weight: 600; color: var(--accent-text); }

/* Login */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: calc(40px + var(--safe-top)) 28px calc(32px + var(--safe-bottom)); }
.login form { display: flex; flex-direction: column; gap: 14px; }
.login .links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.linkbtn { background: none; border: none; padding: 12px 0; font-size: 12px; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal { font-size: 11px; color: var(--muted); line-height: 1.6; }
.demo-flag { position: fixed; top: calc(8px + var(--safe-top)); left: 50%; transform: translateX(-50%); z-index: 7; font-size: 8px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; padding: 4px 10px; border-radius: 12px; background: var(--accent); color: #FFFFFF; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===== Cockpit admin ===== */
.app.wide { max-width: 1280px; }
.adm { display: flex; min-height: 100dvh; }
.adm-side { width: 240px; flex: none; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 22px; padding: calc(26px + var(--safe-top)) 16px 22px; border-right: 1px solid var(--line); background: #0E0E0F; }
.adm-brand { display: flex; flex-direction: column; gap: 10px; padding: 0 10px; }
.adm-brand img { width: 180px; height: auto; display: block; }
.nf-sign { display: flex; align-items: center; gap: 14px; opacity: .75; padding: 6px 0 4px; }
.nf-sign img { width: 130px; height: auto; display: block; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.adm-nav button { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border: none; border-radius: 14px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; }
.adm-nav button:hover { color: var(--text); background: rgba(245,244,240,0.04); }
.adm-nav button[aria-current="page"] { background: var(--text); color: #111111; }
.adm-nav button em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; min-width: 20px; text-align: center; border-radius: 10px; background: var(--accent); color: #FFFFFF; padding: 2px 6px; }
.adm-nav button em:empty { display: none; }
.adm-foot { display: flex; flex-direction: column; gap: 8px; }
.adm-foot .pill { justify-content: flex-start; }
.adm-main { flex: 1; min-width: 0; padding: calc(30px + var(--safe-top)) 40px 80px; display: flex; flex-direction: column; gap: 28px; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line-2); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: transparent; color: var(--text); text-align: left; min-width: 0; }
button.tile:hover { border-color: var(--line-3); background: rgba(245,244,240,0.03); }
.tile .num { font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1; }
.tile .meta { font-size: 12px; color: var(--muted); }
.linktile .chips { margin-top: auto; }
.adm-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.rowbtn { width: 100%; background: transparent; border: none; color: var(--text); text-align: left; }
button.row.rowbtn { border-top: 1px solid var(--line); }
.row .rowbtn.body { padding: 0; }
.checkline { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; color: var(--soft); }
.checkline input { width: 20px; height: 20px; accent-color: var(--accent); }
.field textarea { padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(245,244,240,0.14); background: var(--bg); font-size: 15px; color: var(--text); width: 100%; font-family: var(--sans); resize: vertical; }
.code { display: block; margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,0.35); color: var(--text); font-size: 12px; word-break: break-all; font-family: ui-monospace, Menlo, monospace; }
@media (min-width: 960px) {
  .scrim.right { flex-direction: row; justify-content: flex-end; align-items: stretch; }
  .sheet.panel { width: 520px; max-height: none; height: 100dvh; border-radius: 0; border-top: none; border-left: 1px solid rgba(245,244,240,0.10); animation: slidein 0.25s ease-out; }
}
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 959px) {
  .adm { flex-direction: column; }
  .adm-side { width: 100%; height: auto; position: sticky; z-index: 3; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: calc(12px + var(--safe-top)) 12px 10px; border-right: none; border-bottom: 1px solid var(--line); }
  .adm-brand { display: flex; flex-direction: row; align-items: baseline; gap: 10px; padding: 0 4px; }
  .adm-brand img { width: 120px; }
  .adm-foot { margin-left: auto; }
  .adm-nav { order: 3; width: 100%; flex: none; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px; }
  .tile .num { font-size: 30px; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav button { flex: none; height: 40px; }
  .adm-nav button svg { display: none; }
  .adm-foot { flex-direction: row; }
  .adm-foot .pill { padding: 0 12px; }
  .adm-main { padding: 22px 18px 80px; }
  .adm-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Push notifications card */
.push-box { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; border: 1px solid var(--line-2); }

/* ---------- Agenda (cockpit · Rendez-vous) ---------- */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cal-title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1; margin: 0 0 0 10px; text-transform: capitalize; white-space: nowrap; }
.cal-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.cal-seg button { border: 0; background: none; color: var(--muted); font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.cal-seg button.on { background: var(--text); color: var(--bg); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; color: var(--muted); margin-top: -14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.cal-wrap { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.cal-scroll { height: max(460px, calc(100vh - 290px)); overflow: auto; overscroll-behavior: contain; }
.cal-inner { min-width: 100%; }
.cal-wrap.seven .cal-inner { min-width: 760px; }
.cal-heads { display: grid; grid-template-columns: 58px repeat(var(--n), 1fr); position: sticky; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); }
.cal-dh { background: none; border: 0; border-left: 1px solid var(--line); color: var(--muted); padding: 10px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.cal-dh b { font: 500 24px/1 var(--serif); color: var(--text); letter-spacing: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.cal-dh.today { color: var(--accent-text); }
.cal-dh.today b { background: var(--accent); color: #fff; }
.cal-body { display: grid; grid-template-columns: 58px 1fr; position: relative; }
.cal-body > .cal-gut { position: relative; }
.cal-h { position: absolute; left: 0; right: 0; height: 0; }
.cal-h span { position: absolute; right: 10px; top: -7px; font: 500 10px/1 var(--sans); color: var(--muted); }
.cal-cols { display: grid; grid-template-columns: repeat(var(--n), 1fr); position: relative;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px), linear-gradient(to bottom, rgba(245,244,240,.035) 1px, transparent 1px);
  background-size: 100% 48px, 100% 24px; }
.cal-col { position: relative; border-left: 1px solid var(--line); cursor: copy; }
.cal-col.today { background: rgba(184, 93, 67, 0.05); }
.cal-col:hover { background-color: rgba(245, 244, 240, 0.015); }
.cal-now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--accent); z-index: 3; pointer-events: none; }
.cal-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.cal-ev { position: absolute; z-index: 2; box-sizing: border-box; padding: 6px 8px; border-radius: 8px; overflow: hidden; cursor: grab; user-select: none;
  background: color-mix(in srgb, var(--c) 18%, #17171a); border-left: 3px solid var(--c); color: var(--text); box-shadow: 0 1px 0 rgba(0,0,0,.3); transition: box-shadow .15s, transform .15s; }
@media (pointer: fine) { .cal-ev { touch-action: none; } }
.cal-ev:hover { box-shadow: 0 6px 20px rgba(0,0,0,.45); z-index: 3; }
.cal-ev .t { font: 600 12px/1.25 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev .m { font: 500 11px/1.3 var(--sans); color: color-mix(in srgb, var(--c) 65%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.short { padding: 2px 8px; display: flex; gap: 6px; align-items: center; }
.cal-ev.short .m { order: -1; }
.cal-ev.off { opacity: .45; } .cal-ev.off .t { text-decoration: line-through; }
.cal-ev.done { filter: saturate(.55); }
.cal-ev.dragging { cursor: grabbing; z-index: 5; box-shadow: 0 12px 30px rgba(0,0,0,.6); transform: scale(1.02); opacity: .95; }
.cal-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; touch-action: none; }
.cal-ev:hover .cal-resize::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: color-mix(in srgb, var(--c) 70%, #fff); opacity: .7; }

.cal-month { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.cal-mh { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.cal-mh span { padding: 10px 12px; font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cal-mg { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(112px, auto); }
.cal-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { background: rgba(0,0,0,.18); } .cal-cell.out .cal-num { color: var(--muted); opacity: .5; }
.cal-num { align-self: flex-start; background: none; border: 0; color: var(--soft); font: 500 18px/1 var(--serif); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.cal-num:hover { background: rgba(245,244,240,.06); }
.cal-cell.today .cal-num { background: var(--accent); color: #fff; }
.cal-chip { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; background: color-mix(in srgb, var(--c) 14%, transparent); border: 0; border-radius: 6px; padding: 4px 6px; color: var(--text); font: 500 11px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-chip i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.cal-chip.off { opacity: .45; text-decoration: line-through; }
.cal-more { background: none; border: 0; color: var(--accent-text); font: 600 11px/1 var(--sans); text-align: left; padding: 3px 6px; cursor: pointer; }
.cal-lt { display: flex; flex-direction: column; gap: 4px; min-width: 54px; }
.cal-lt b { font: 500 20px/1 var(--serif); } .cal-lt span { font-size: 11px; color: var(--muted); }

@media (max-width: 759px) {
  .cal-nav { flex-wrap: wrap; width: 100%; }
  .cal-title { order: -1; width: 100%; font-size: 24px; margin: 0 0 4px; }
  .cal-bar { gap: 10px; }
  .cal-seg { width: 100%; } .cal-seg button { flex: 1; padding: 9px 6px; }
  .cal-legend { display: none; }
  .cal-scroll { height: calc(100vh - 250px); }
  .cal-mg { grid-auto-rows: minmax(72px, auto); }
  .cal-chip { font-size: 0; padding: 0; background: none; width: auto; } .cal-chip i { width: 7px; height: 7px; }
  .cal-cell { flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 4px; padding: 4px; }
  .cal-num { width: 100%; font-size: 15px; height: 24px; text-align: left; }
  .cal-more { font-size: 10px; padding: 0; }
}

/* ---------- Prise de RDV (appli client) ---------- */
.row.bk { align-items: flex-start; }
.row.bk .time { display: flex; flex-direction: column; gap: 3px; }
.row.bk .time small { font-family: var(--sans); font-size: 11px; color: var(--muted); font-weight: 500; }
.row.bk .chips { gap: 6px; }
.row.bk .pill { height: 32px; padding: 0 12px; font-size: 10px; }
.linkbox { font: 500 13px/1.4 ui-monospace, Menlo, monospace; color: var(--text); background: rgba(245,244,240,0.06); border: 1px solid rgba(245,244,240,0.12); border-radius: 12px; padding: 12px 14px; word-break: break-all; }
.day .dots { font-size: 9px; line-height: 1; letter-spacing: 1px; color: var(--accent-text); height: 9px; }
.day.on .dots { color: var(--accent); }

/* ---------- install hint ---------- */
.install-hint { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--safe-bottom)); z-index: 30; width: calc(min(480px, 100vw) - 28px); display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 16px 14px; border-radius: 20px; background: rgba(28,28,30,0.97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(227,154,128,0.35); box-shadow: 0 20px 50px rgba(0,0,0,0.55); animation: ihIn .35s ease-out; }
.install-hint img { border-radius: 11px; flex: none; }
.install-hint .ih-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.install-hint .ih-t { font: 600 14px/1.3 var(--sans); color: var(--text); }
.install-hint .ih-s { font: 400 13px/1.55 var(--sans); color: var(--soft); }
.install-hint .ih-k { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); font-weight: 600; white-space: nowrap; vertical-align: -3px; }
.install-hint .ih-go { align-self: flex-start; margin-top: 4px; }
.install-hint .ih-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
@keyframes ihIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.install-hint.top { bottom: auto; top: calc(12px + var(--safe-top)); }

/* ---------- options : nav à 6 onglets, commandes, rapport ---------- */
.nav { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.nav.many button span { font-size: 8.5px; letter-spacing: .06em; }
.row-acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.row.order { align-items: flex-start; }
.row.order .time { display: flex; flex-direction: column; gap: 3px; }
.row.order .time small { font-family: var(--sans); font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.row.order .items { font-size: 13px; line-height: 1.5; color: var(--text); margin-top: 4px; }
.row.order .pill { height: 32px; padding: 0 12px; font-size: 10px; }
.title .chip-tag { vertical-align: 2px; margin-left: 4px; }
.setting.opt { align-items: center; gap: 14px; padding: 14px 0; }
.sheet.report { gap: 16px; }
.report-kpis .num { font-size: 34px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; align-items: end; height: 120px; padding: 6px 0 0; }
.bars.week { grid-template-columns: repeat(7, 1fr); height: 90px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i { width: 100%; min-height: 2px; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, var(--accent), var(--accent-text)); }
.bar span { font-size: 9px; color: var(--muted); }
@media print {
  body.printing-report * { visibility: hidden !important; }
  body.printing-report .sheet.report, body.printing-report .sheet.report * { visibility: visible !important; }
  body.printing-report .sheet.report { position: absolute; inset: 0; max-height: none; overflow: visible; background: #111; }
  body.printing-report .sheet.report .chips, body.printing-report .sheet.report .icon-btn { display: none !important; }
}
.chip-tag { white-space: nowrap; }

/* ---------- cockpit : mémo ---------- */
.row.memo { align-items: flex-start; gap: 14px; }
.memo-check { flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 8px; border: 1.5px solid var(--accent-text); background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }
.memo-check.on { background: var(--accent); border-color: var(--accent); }
.row.memo .meta { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-top: 4px; }

/* ---------- devis et factures ---------- */
.nav.scroll { display: flex; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.nav.scroll::-webkit-scrollbar { display: none; }
.nav.scroll button { flex: 0 0 62px; }
.line { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.line input, .line select { width: 100%; background: rgba(245,244,240,0.05); border: 1px solid rgba(245,244,240,0.12); border-radius: 12px; color: var(--text); font: 500 14px var(--sans); padding: 11px 12px; }
.line-nums { display: grid; grid-template-columns: 1fr 1.3fr 1.1fr 40px; gap: 8px; align-items: end; }
.line-nums label { display: flex; flex-direction: column; gap: 4px; }
.line-nums label span { font: 600 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.line-nums .icon-btn { width: 40px; height: 42px; }
.totals { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); padding: 4px 0; }
.totals .ttc { color: var(--text); font-size: 16px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.tag.warn { color: var(--accent-text); border-color: rgba(227,154,128,.5); }
.delta { display: inline-block; margin-left: 4px; font: 600 10px/1 var(--sans); letter-spacing: .04em; color: var(--muted); text-transform: none; }
.delta.up { color: var(--ok); } .delta.down { color: var(--accent-text); }

/* ---------- cockpit : marketing et SEO Next Flow ---------- */
.nfcharts .tile { gap: 12px; }
.nfbars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.nfbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.nfbar .b { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent-text), var(--accent)); }
.nfbar:last-child .b { box-shadow: 0 0 0 1px rgba(227,154,128,.6); }
.nfbar .v { font: 600 10px/1 var(--sans); color: var(--soft); white-space: nowrap; }
.nfbar .l { font: 600 9px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seopos { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 600 15px/1 var(--sans); color: var(--muted); border: 1px solid var(--line); }
.seopos.p1 { color: var(--text); border-color: rgba(245,244,240,.25); }
.seopos.top { color: #fff; background: var(--accent); border-color: var(--accent); }
select.pill { appearance: none; -webkit-appearance: none; cursor: pointer; }

/* =====================================================================
   NATIVE SKIN — appli restaurateur (look iOS : SF, listes groupées, tab bar)
   ===================================================================== */
.native {
  --serif: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Inter, system-ui, 'Segoe UI', Roboto, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, system-ui, 'Segoe UI', Roboto, sans-serif;
  --page: #000; --bg: #000; --card: #1C1C1E; --card-2: #2C2C2E; --sep: rgba(84,84,88,0.55);
  --label: #FFFFFF; --label-2: rgba(235,235,245,0.62); --label-3: rgba(235,235,245,0.32);
  --muted: rgba(235,235,245,0.6); --soft: rgba(235,235,245,0.82);
  --accent: #C4654A; --accent-text: #EE9A7E; --ok: #30D158; --red: #FF453A;
  background: #000; font-family: var(--sans); letter-spacing: -0.01em;
}
html:has(.native), body:has(.native) { background: #000; }
.native em { font-style: normal; }

/* Type */
.native .h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.native .h1 em { color: var(--label); }
.native .h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.native .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--accent-text); }
.native .micro { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--label-2); }
.native .micro.accent { color: var(--accent-text); font-weight: 600; }

/* Nav bar (compact, se floute au défilement) */
.native .top { padding: calc(10px + var(--safe-top)) 16px 10px; gap: 10px; background: rgba(0,0,0,0); transition: background .2s, border-color .2s; border-bottom: 0.5px solid transparent; }
.native .top.scrolled { background: rgba(18,18,20,0.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--sep); }
.native .top > svg, .native .top > .mascot, .native .top > img { width: 30px !important; height: 30px !important; }
.native .top .name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.native .top .status { gap: 6px; }
.native .top .status span { font-size: 12px; }
.native .dot { width: 7px; height: 7px; background: var(--ok); box-shadow: none; }
.native .icon-btn { width: 36px; height: 36px; border: 0; background: var(--card); color: var(--label); }
.native .icon-btn .badge { top: 7px; right: 8px; background: var(--red); }
.native .pill[data-act="backToCockpit"] { height: 32px; }

/* Contenu */
.native main { padding: 6px 16px calc(100px + var(--safe-bottom)); gap: 24px; }
.native .section-head { padding: 0 4px 8px; align-items: baseline; }
.native .section-head .h2 { font-size: 20px !important; }

/* Listes groupées */
.native .section > .row, .native .section > .call, .native .section > .empty, .native .section > a.row, .native .section > button.row,
.native #clientList > .row, .native #clientList > button { position: relative; background: var(--card); border-top: 0; padding: 12px 16px; margin: 0; }
.native .section > .row:not(:first-child)::before, .native .section > .call:not(:first-child)::before, .native #clientList > *:not(:first-child)::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--sep); }
.native .section-head + .row::before, .native .section-head + .call::before, .native .section-head + .empty::before, .native .section > .chips + .row::before { display: none; }
.native .section > .section-head + *, .native .section > .chips + *, .native .section > :first-child:not(.section-head):not(.chips), .native #clientList > :first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.native .section > :last-child, .native #clientList > :last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.native .row { gap: 14px; min-height: 56px; }
.native .row.tap { cursor: pointer; transition: background .12s; }
.native .row.tap:active, .native button.row:active, .native .call-head:active { background: var(--card-2); }
.native .row .time { font-size: 17px; font-weight: 600; width: 52px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.native .row .title { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.native .row .meta { font-size: 13px; color: var(--label-2); }
.native .row .note { font-size: 13px; font-style: normal; color: var(--accent-text); }
.native .row .side { flex-direction: row; align-items: center; gap: 8px; }
.native .row .pax { min-width: 30px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--card-2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.native .row .pax::after { content: ''; width: 11px; height: 11px; margin-left: 4px; background: currentColor; opacity: .7; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5 0-9 2.5-9 6v2h18v-2c0-3.5-4-6-9-6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5 0-9 2.5-9 6v2h18v-2c0-3.5-4-6-9-6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.native .chev { font-size: 22px; line-height: 1; color: var(--label-3); font-weight: 400; margin-left: 2px; }
.native .src { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--label-3); width: 44px; text-align: right; }
.native .src.lea { color: var(--accent-text); }
.native .row.dim { opacity: .5; }
.native .empty { font-size: 15px; font-style: normal; color: var(--label-2); padding: 28px 16px; border-top: 0; }

/* Boutons */
.native .pill { height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: var(--card-2); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--label); }
.native .pill.on, .native .pill.solid { background: var(--label); color: #000; }
.native .pill.warn { color: var(--red); }
.native .btn-primary { height: 50px; border-radius: 14px; background: var(--accent); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; transition: transform .1s, opacity .1s; }
.native .btn-primary:active, .native .pill:active, .native .fab:active { transform: scale(.97); opacity: .85; }
.native .fab { width: 36px; height: 36px; border-radius: 18px; background: var(--accent); }
.native .chips { gap: 8px; }
.native .linkbtn { font-size: 15px; font-weight: 500; text-decoration: none; }

/* Tags */
.native .tag, .native .chip-tag { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 3px 8px; border-radius: 6px; border: 0; background: var(--card-2); color: var(--soft); }
.native .tag.callback, .native .chip-tag.warn { background: rgba(255,159,10,0.18); color: #FFB340; }
.native .tag.done { background: rgba(48,209,88,0.16); color: var(--ok); }
.native .tag.info { background: var(--card-2); color: var(--label-2); }

/* Widgets chiffres */
.native .kpis { gap: 10px; border: 0; }
.native .kpi { background: var(--card); border: 0 !important; border-radius: 16px; padding: 14px !important; gap: 4px; }
.native .kpis.two .kpi { border: 0; }
.native .kpi .num { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.native .kpi .num.accent { color: var(--accent-text); }
.native .kpi .micro { font-size: 12px; }

/* Bandeaux d'action */
.native .callout { border: 0; border-radius: 14px; background: var(--card); padding: 14px 14px 14px 16px; gap: 12px; }
.native .callout .big { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.native .callout .micro.accent { font-size: 12px; }
.native .callout .circle { width: 28px; height: 28px; border: 0; background: rgba(196,101,74,0.18); color: var(--accent-text); }
.native button.callout::before { content: ''; width: 4px; align-self: stretch; border-radius: 2px; background: var(--accent); margin-left: -6px; }

/* Sélecteur de jour */
.native .days { gap: 6px; margin: 0 -16px; padding: 2px 16px 4px; }
.native .day { width: 50px; height: 62px; border: 0; border-radius: 14px; background: var(--card); gap: 3px; }
.native .day .micro { font-size: 11px; font-weight: 600; }
.native .day .n { font-size: 20px; font-weight: 600; }
.native .day.on { background: var(--accent); color: #fff; }
.native .day.on .micro { color: rgba(255,255,255,.85); }

/* Tab bar */
.native .nav { left: 0; right: 0; transform: none; bottom: 0; width: 100%; max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); padding: 6px 4px calc(4px + var(--safe-bottom)); border-radius: 0; border: 0; border-top: 0.5px solid var(--sep); background: rgba(18,18,20,0.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: none; }
.native .nav button { height: 49px; border-radius: 0; gap: 3px; color: rgba(235,235,245,0.45); flex: 1; }
.native .nav button span { font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.native .nav button[aria-current="page"] { background: transparent; color: var(--accent-text); }

/* Toast façon notification */
.native .toast { top: calc(8px + var(--safe-top)); border-radius: 18px; border: 0; background: rgba(44,44,46,0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 12px 8px 12px 14px; }
.native .toast .ring { width: 30px; height: 30px; border: 0; background: var(--accent); color: #fff; }
.native .toast .micro { font-size: 13px; font-weight: 600; color: var(--label); }
.native .toast .t { font-size: 14px; color: var(--label-2); font-weight: 400; }
.native .toast .icon-btn { background: transparent; }

/* Feuilles */
.native .scrim { background: rgba(0,0,0,0.5); }
.native .sheet { background: var(--card); border: 0; border-radius: 14px 14px 0 0; padding: 26px 16px calc(24px + var(--safe-bottom)); position: relative; }
.native .sheet::before { content: ''; position: absolute; top: 7px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(235,235,245,0.3); }
.native .sheet .h2 { font-size: 22px !important; }
.native .field { gap: 6px; }
.native .field > span { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--label-2); padding-left: 4px; }
.native .field input, .native .field select, .native .field textarea { height: 46px; border: 0; border-radius: 10px; background: var(--card-2); font-size: 17px; }
.native .field textarea { height: auto; }
.native .form-error { font-size: 14px; color: var(--red); font-weight: 500; }

/* Menus d'action (feuille iOS) */
.native .sheet.menu { background: transparent; padding: 0 8px calc(8px + var(--safe-bottom)); gap: 8px; }
.native .sheet.menu::before { display: none; }
.native .menu-head, .native .menu-title { background: rgba(44,44,46,0.96); border-radius: 14px 14px 0 0; padding: 14px 16px; text-align: center; margin-bottom: -8px; border-bottom: 0.5px solid var(--sep); }
.native .menu-title { font-size: 13px; font-weight: 600; color: var(--label-2); }
.native .mh-t { font-size: 15px; font-weight: 600; }
.native .mh-m { font-size: 13px; color: var(--label-2); margin-top: 3px; }
.native .group { background: rgba(44,44,46,0.96); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.native .menu-head + .group, .native .menu-title + .group { border-top-left-radius: 0; border-top-right-radius: 0; }
.native .group-row { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; border: 0; background: transparent; color: #0A84FF; color: var(--accent-text); font-size: 19px; font-weight: 400; text-decoration: none; position: relative; }
.native .group-row + .group-row::before { content: ''; position: absolute; top: 0; left: 0; right: 0; border-top: 0.5px solid var(--sep); }
.native .group-row.danger { color: var(--red); }
.native .group-row:active { background: rgba(255,255,255,0.08); }
.native .menu-title + .group .group-row { justify-content: flex-start; color: var(--label); font-size: 17px; }
.native .group-row .gi { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.native .group-row .gl { flex: 1; text-align: inherit; }
.native .menu-title + .group .group-row .gl { text-align: left; }
.native .menu-cancel { min-height: 56px; border: 0; border-radius: 14px; background: #2C2C2E; color: var(--accent-text); font-size: 19px; font-weight: 600; }

/* Divers */
.native .search { height: 38px; border-radius: 10px; border: 0; background: var(--card); padding: 0 10px; gap: 8px; }
.native .search input { font-size: 17px; }
.native .avatar { width: 40px; height: 40px; border: 0; background: linear-gradient(180deg, #5E5E63, #3A3A3E); font-size: 15px; font-weight: 600; }
.native .visits { font-size: 17px; font-weight: 600; }
.native .quote { font-size: 15px; line-height: 1.45; color: var(--soft); }
.native .lea-card { border-radius: 16px; background: var(--card); border: 0; }
.native .lea-card .big { font-size: 20px; font-weight: 700; }
.native .lea-card .desc { color: var(--label-2); font-size: 13px; }
.native .setting { border-top: 0.5px solid var(--sep); }
.native .setting .k { font-size: 15px; color: var(--label); }
.native .setting .v { font-size: 17px; font-weight: 400; color: var(--label-2); }
.native .switch .track { width: 51px; height: 31px; border-radius: 16px; background: #39393D; padding: 2px; }
.native .switch .knob { width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.native .switch[aria-checked="true"] .track { background: var(--ok); }
.native .switch[aria-checked="true"] .knob { transform: translateX(20px); }
.native .push-box { border: 0; border-radius: 14px; background: var(--card); }
.native .install-hint { bottom: calc(70px + var(--safe-bottom)); border-radius: 16px; }
.native .demo-flag { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 600; top: calc(4px + var(--safe-top)); }

/* Connexion */
.native .login .h1 { font-size: 34px; }
.native .login .h1 em { color: var(--accent-text); }
.native .login .eyebrow { color: var(--label-2); }
.native .kpis.money .kpi .num { font-size: 21px; letter-spacing: -0.02em; white-space: nowrap; }
.native .group-row .gl { text-align: center; }
.native .menu-head, .native .menu-title, .native .group { background: #2C2C2E; }
.native .call-head { padding: 2px 0; }
.native .nav button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* =====================================================================
   DIRECTION « MIDNIGHT » — bleu nuit, verre, halo terracotta, chiffres mono
   ===================================================================== */
.native {
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --night: #0B1521; --night-2: #0E1B2A;
  --glass: rgba(245,244,240,0.045); --glass-2: rgba(245,244,240,0.08); --edge: rgba(245,244,240,0.10);
  --label-2: #A9B4C0; --muted: #A9B4C0; --label-3: #6E7B88;
  --card: rgba(245,244,240,0.045); --card-2: rgba(245,244,240,0.09); --sep: rgba(245,244,240,0.08);
  --accent: #B85D43; --accent-text: #E39A80; --ok: #6FBF8A;
  background-color: var(--night);
  background-image: radial-gradient(rgba(245,244,240,0.055) 1px, transparent 1px);
  background-size: 22px 22px; background-attachment: fixed;
}
html:has(.native), body:has(.native) { background: var(--night); }
.native::before { content: ''; position: fixed; top: -160px; right: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(184,93,67,0.32), rgba(184,93,67,0) 68%); pointer-events: none; z-index: 0; }
.native > * { position: relative; z-index: 1; }
.native .top, .native .nav, .native #sheet, .native #toast { z-index: 5; }
.native .nav { position: fixed; }
.native .top { position: sticky; }

/* Chiffres et repères en monospace */
.native .eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.native .row .time, .native .kpi .num, .native .pax, .native .day .n, .native .visits, .native .w-n, .native .hc-n, .native .hc-split b, .native .lea-stats b, .native .setting .v, .native .stepper .val { font-family: var(--mono); letter-spacing: -0.02em; }
.native .top .status span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok); }
.native .top.scrolled { background: rgba(11,21,33,0.78); }
.native .dot { animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(111,191,138,.55); } 70% { box-shadow: 0 0 0 7px rgba(111,191,138,0); } 100% { box-shadow: 0 0 0 0 rgba(111,191,138,0); } }
.native .icon-btn { border-radius: 13px; border: 1px solid var(--edge); background: var(--glass); width: 40px; height: 40px; }

/* Surfaces en verre */
.native .section > .row, .native .section > .call, .native .section > .empty, .native #clientList > .row, .native #clientList > button,
.native .kpi, .native .callout, .native .lea-card, .native .push-box, .native .search, .native .day { background: var(--glass); }
.native .section > .section-head + *, .native .section > :first-child:not(.section-head):not(.chips) { box-shadow: inset 0 1px 0 rgba(245,244,240,0.06); }
.native .section > .row, .native .section > .call, .native .section > .empty, .native #clientList > * { border-left: 1px solid var(--edge); border-right: 1px solid var(--edge); }
.native .section > .section-head + *, .native .section > .chips + *, .native .section > :first-child:not(.section-head):not(.chips), .native #clientList > :first-child { border-top: 1px solid var(--edge); border-radius: 18px 18px 0 0; }
.native .section > :last-child, .native #clientList > :last-child { border-bottom: 1px solid var(--edge); border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }
.native .section > .section-head + :last-child { border-radius: 18px; }
.native .kpi, .native .callout, .native .lea-card, .native .push-box, .native .day { border: 1px solid var(--edge) !important; }
.native .kpi { border-radius: 18px; }

/* Carte héros + widgets (Aujourd'hui) */
.native .hero-card { padding: 18px; border-radius: 22px; border: 1px solid var(--edge); background: linear-gradient(180deg, rgba(245,244,240,0.075), rgba(245,244,240,0.02)); display: flex; flex-direction: column; gap: 14px; }
.native .hc-top { display: flex; align-items: flex-end; justify-content: space-between; }
.native .hc-l { font-size: 12px; color: var(--label-2); margin-bottom: 4px; }
.native .hc-n { font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.native .hc-split { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-family: var(--mono); font-size: 11px; color: var(--label-2); }
.native .hc-split b { color: var(--text); font-weight: 600; }
.native .hc-bar { display: flex; gap: 3px; height: 6px; }
.native .hc-bar i { border-radius: 3px; background: var(--accent-text); }
.native .hc-bar i.s { background: var(--accent); }
.native .hc-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--label-2); }
.native .widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -14px; }
.native .widget { padding: 14px; border-radius: 18px; border: 1px solid var(--edge); background: var(--glass); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; color: var(--text); }
.native .widget:active { background: var(--glass-2); }
.native .w-l { font-size: 12px; color: var(--label-2); }
.native .w-n { font-size: 26px; font-weight: 600; }
.native .w-n small { font-family: var(--sans); font-size: 11px; color: var(--label-2); font-weight: 400; margin-left: 4px; }
.native .callout { background: rgba(184,93,67,0.15) !important; border-color: rgba(227,154,128,0.35) !important; border-radius: 18px; }
.native button.callout::before { display: none; }
.native .callout .circle { background: var(--accent); color: #F5F4F0; width: 34px; height: 34px; }

/* Frise du jour (Réservations) */
.native .day { border-radius: 16px; width: 52px; height: 66px; }
.native .day.on { background: rgba(184,93,67,0.22) !important; border-color: var(--accent-text) !important; color: var(--text); box-shadow: 0 0 18px rgba(184,93,67,0.35); }
.native .now-line { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 2px; background: transparent !important; border: 0 !important; }
.native .now-line span { font-family: var(--mono); font-size: 11px; color: var(--accent-text); }
.native .now-line i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent-text), rgba(227,154,128,0)); position: relative; }
.native .now-line i::before { content: ''; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 12px var(--accent-text); }
.native .section.timeline > .row { border-radius: 16px !important; border: 1px solid var(--edge) !important; margin-bottom: 8px; }
.native .section.timeline > .row::before { display: none; }
.native .section.timeline > .now-line + .row { border-color: rgba(227,154,128,0.45) !important; background: rgba(184,93,67,0.13); }

/* Tab bar flottante + sphère Léa */
.native .nav { left: 14px; right: 14px; bottom: calc(14px + var(--safe-bottom)); width: auto; max-width: 452px; padding: 0 4px; height: 64px; border-radius: 22px; border: 1px solid var(--edge); background: rgba(14,27,42,0.84); align-items: center; }
.native .nav button { height: 60px; color: #7F8B98; }
.native .nav button[aria-current="page"] { color: var(--accent-text); }
.native .orb-tab { display: grid !important; place-items: center; }
.native .orb { width: 46px; height: 46px; border-radius: 50%; display: block; background: radial-gradient(circle at 35% 30%, #F2B9A4 0%, #E39A80 18%, #B85D43 58%, #5A2618 100%); box-shadow: 0 0 22px rgba(184,93,67,0.6); animation: breathe 3.2s ease-in-out infinite; }
.native .orb.off { filter: grayscale(1) brightness(.6); box-shadow: none; animation: none; }
.native .orb-tab[aria-current="page"] .orb { box-shadow: 0 0 0 3px rgba(227,154,128,0.35), 0 0 28px rgba(184,93,67,0.75); }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.native main { padding-bottom: calc(110px + var(--safe-bottom)); }
.native .install-hint { bottom: calc(92px + var(--safe-bottom)); }

/* Écran Léa */
.native .lea-hero { position: relative; height: 200px; display: grid; place-items: center; }
.native .lea-hero .orb { width: 128px; height: 128px; box-shadow: 0 0 60px rgba(184,93,67,0.55), inset 0 -14px 30px rgba(14,27,42,0.55); position: relative; z-index: 1; }
.native .lea-hero .ring { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(227,154,128,0.45); animation: ringout 2.6s ease-out infinite; }
.native .lea-hero .ring.r2 { animation-delay: 1.3s; }
.native .lea-hero.off .orb { filter: grayscale(1) brightness(.55); box-shadow: none; animation: none; }
.native .lea-hero.off .ring { display: none; }
@keyframes ringout { 0% { transform: scale(.85); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.native .lea-stats { display: flex; gap: 14px; font-size: 12px; color: var(--label-2); margin-top: 6px; }
.native .lea-stats b { color: var(--text); font-weight: 600; }
.native .lea-card { border-radius: 20px; }

/* Feuilles et menus sur fond nuit */
.native .sheet { background: #101D2C; border-top: 1px solid var(--edge); }
.native .menu-head, .native .menu-title, .native .group { background: #15253A; }
.native .menu-cancel { background: #15253A; }
.native .field input, .native .field select, .native .field textarea { background: rgba(245,244,240,0.07); border: 1px solid var(--edge); }
.native .toast { background: rgba(21,37,58,0.92); border: 1px solid var(--edge); }
.native .pill { background: var(--glass-2); }
.native .pill.on, .native .pill.solid { background: var(--text); color: var(--night); }
@media (prefers-reduced-motion: reduce) { .native .orb, .native .lea-hero .ring, .native .dot { animation: none !important; } }

/* =====================================================================
   COCKPIT · DIRECTION « MIDNIGHT » (version ordinateur)
   ===================================================================== */
.app.wide {
  --serif: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Montserrat, system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Montserrat, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --night: #0B1521; --glass: rgba(245,244,240,0.045); --glass-2: rgba(245,244,240,0.08); --edge: rgba(245,244,240,0.10);
  --bg: #0B1521; --surface: rgba(245,244,240,0.045); --line: rgba(245,244,240,0.08); --line-2: rgba(245,244,240,0.12); --line-3: rgba(245,244,240,0.2);
  --muted: #A9B4C0; --soft: #C9D1D9; --accent: #B85D43; --accent-text: #E39A80; --ok: #6FBF8A;
  max-width: none; background-color: var(--night);
  background-image: radial-gradient(rgba(245,244,240,0.05) 1px, transparent 1px); background-size: 22px 22px; background-attachment: fixed;
  font-family: var(--sans); letter-spacing: -0.01em;
}
html:has(.app.wide), body:has(.app.wide) { background: var(--night); }
.app.wide::before { content: ''; position: fixed; top: -200px; right: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(184,93,67,0.26), rgba(184,93,67,0) 68%); pointer-events: none; z-index: 0; }
.app.wide .adm { position: relative; z-index: 1; }
.app.wide em { font-style: normal; }

/* Typo */
.app.wide .h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.app.wide .h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.app.wide .eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--accent-text); }
.app.wide .micro { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); }
.app.wide .micro.accent { color: var(--accent-text); }

/* Barre latérale */
.app.wide .adm-side { background: rgba(8,16,26,0.72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-right: 1px solid var(--edge); }
.app.wide .adm-brand .micro { color: var(--accent-text); }
.app.wide .adm-nav button { height: 40px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: #8E9AA7; position: relative; }
.app.wide .adm-nav button:hover { background: var(--glass); color: #F5F4F0; }
.app.wide .adm-nav button[aria-current="page"] { background: rgba(184,93,67,0.16); color: #F5F4F0; box-shadow: inset 0 0 0 1px rgba(227,154,128,0.3); }
.app.wide .adm-nav button[aria-current="page"] svg { color: var(--accent-text); }
.app.wide .adm-nav button[aria-current="page"]::before { content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-text); box-shadow: 0 0 10px var(--accent-text); }
.app.wide .adm-nav button em { background: var(--accent); font-family: var(--mono); }

/* Boutons */
.app.wide .pill { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--edge); background: var(--glass); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: #F5F4F0; }
.app.wide .pill:hover { background: var(--glass-2); }
.app.wide .pill.on, .app.wide .pill.solid { background: #F5F4F0; color: var(--night); border-color: #F5F4F0; }
.app.wide .pill.warn { color: #FF7A6B; }
.app.wide .fab { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 24px rgba(184,93,67,0.4); }
.app.wide .btn-primary { height: 46px; border-radius: 12px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; box-shadow: 0 8px 24px rgba(184,93,67,0.3); }
.app.wide .adm-foot .pill { justify-content: flex-start; }

/* Tuiles chiffres */
.app.wide .tiles { gap: 12px; }
.app.wide .tile { border: 1px solid var(--edge); border-radius: 18px; background: linear-gradient(180deg, rgba(245,244,240,0.065), rgba(245,244,240,0.02)); padding: 18px; position: relative; overflow: hidden; }
.app.wide button.tile:hover { border-color: rgba(227,154,128,0.35); background: linear-gradient(180deg, rgba(245,244,240,0.09), rgba(245,244,240,0.03)); }
.app.wide .tile .num { font-family: var(--mono); font-size: 32px; font-weight: 600; letter-spacing: -0.04em; }
.app.wide .tile .num.accent { color: var(--accent-text); text-shadow: 0 0 24px rgba(227,154,128,0.35); }
.app.wide .tile .meta { font-size: 12px; color: var(--muted); }
.app.wide .tile .delta { font-family: var(--mono); }

/* Listes groupées en verre */
.app.wide .section > .row, .app.wide #adm-list > .row, .app.wide .section > button.row { background: var(--glass); border-top: 0; padding: 14px 16px; position: relative; border-left: 1px solid var(--edge); border-right: 1px solid var(--edge); }
.app.wide .section > .row:not(:first-child)::before, .app.wide #adm-list > .row:not(:first-child)::before { content: ''; position: absolute; top: 0; left: 16px; right: 16px; border-top: 1px solid var(--line); }
.app.wide .section-head + .row::before, .app.wide .chips + .row::before { display: none; }
.app.wide .section > .section-head + .row, .app.wide #adm-list > .row:first-child, .app.wide .section > .row:first-child { border-top: 1px solid var(--edge); border-radius: 16px 16px 0 0; }
.app.wide .section > .row:last-child, .app.wide #adm-list > .row:last-child { border-bottom: 1px solid var(--edge); border-radius: 0 0 16px 16px; }
.app.wide .section > .section-head + .row:last-child, .app.wide #adm-list > .row:only-child { border-radius: 16px; }
.app.wide .row:hover { background: var(--glass-2); }
.app.wide .row .title { font-size: 14.5px; font-weight: 600; }
.app.wide .row .meta { font-size: 12.5px; color: var(--muted); }
.app.wide .empty { font-style: normal; font-size: 14px; color: var(--muted); border: 1px dashed var(--edge); border-radius: 16px; }

/* Tags */
.app.wide .tag { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--edge); background: var(--glass); color: var(--soft); }
.app.wide .tag.done { background: rgba(111,191,138,0.12); border-color: rgba(111,191,138,0.35); color: var(--ok); }
.app.wide .tag.callback { background: rgba(227,154,128,0.14); border-color: rgba(227,154,128,0.4); color: var(--accent-text); }
.app.wide .tag.info { color: #7F8B98; }

/* Recherche, champs, panneaux */
.app.wide .search { height: 44px; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); }
.app.wide .search input { font-size: 15px; }
.app.wide .sheet { background: #0F1C2B; border-color: var(--edge); }
.app.wide .sheet.panel { box-shadow: -30px 0 60px rgba(0,0,0,0.45); }
.app.wide .field > span { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); }
.app.wide .field input, .app.wide .field select, .app.wide .field textarea, .app.wide .line input, .app.wide .line select { border-radius: 10px; border: 1px solid var(--edge); background: rgba(245,244,240,0.06); font-size: 15px; color: #F5F4F0; }
.app.wide .field input:focus, .app.wide .field select:focus, .app.wide .field textarea:focus { outline: none; border-color: rgba(227,154,128,0.6); box-shadow: 0 0 0 3px rgba(184,93,67,0.2); }
.app.wide .scrim { background: rgba(4,9,15,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.app.wide .toast { background: rgba(21,37,58,0.94); border: 1px solid var(--edge); border-radius: 16px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.app.wide .totals .ttc { font-family: var(--mono); }
.app.wide .code { background: rgba(0,0,0,0.35); border: 1px solid var(--edge); }

/* Graphiques et SEO */
.app.wide .nfbar .b { box-shadow: 0 0 14px rgba(184,93,67,0.25); }
.app.wide .nfbar .v, .app.wide .nfbar .l { font-family: var(--mono); }
.app.wide .seopos { font-family: var(--mono); border-radius: 12px; background: var(--glass); border-color: var(--edge); }
.app.wide .seopos.top { background: var(--accent); box-shadow: 0 0 18px rgba(184,93,67,0.45); }

/* Agenda */
.app.wide .cal-wrap, .app.wide .cal-month { background: rgba(245,244,240,0.035); border-color: var(--edge); }
.app.wide .cal-heads { background: rgba(11,21,33,0.95); }
.app.wide .cal-dh b, .app.wide .cal-num, .app.wide .cal-lt b, .app.wide .cal-h span { font-family: var(--mono); font-weight: 500; }
.app.wide .cal-dh b { font-size: 18px; }
.app.wide .cal-seg { background: var(--glass); border-color: var(--edge); }
.app.wide .cal-seg button { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 13px; }
.app.wide .cal-seg button.on { background: #F5F4F0; color: var(--night); }
.app.wide .cal-title { font-weight: 700; letter-spacing: -0.02em; }
.app.wide .cal-ev { background: color-mix(in srgb, var(--c) 20%, #0E1B2A); border-radius: 9px; }
.app.wide .cal-now { box-shadow: 0 0 10px var(--accent); }

@media (max-width: 959px) {
  .app.wide .adm-side { background: rgba(8,16,26,0.86); border-right: 0; border-bottom: 1px solid var(--edge); }
  .app.wide .adm-nav button[aria-current="page"]::before { display: none; }
  .app.wide .tile .num { font-size: 26px; }
}
.legal-links { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 0; line-height: 1.8; }
.legal-links a, .legal a { color: var(--muted); }
.legal-links a:hover, .legal a:hover { color: var(--text); }

/* « Léa vous a rapporté » */
.setting.tap { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.roi-card { flex-shrink: 0; position: relative; overflow: hidden; width: 100%; text-align: left; color: var(--text, #F5F4F0); font: inherit; cursor: pointer; padding: 18px; border-radius: 22px; border: 1px solid rgba(227,154,128,0.38); background: radial-gradient(120% 140% at 100% 0%, rgba(184,93,67,0.30), rgba(184,93,67,0) 60%), linear-gradient(180deg, rgba(184,93,67,0.14), rgba(245,244,240,0.02)); display: flex; flex-direction: column; gap: 6px; }
.roi-card.static { cursor: default; margin-bottom: 4px; }
.roi-card:active:not(.static) { transform: scale(.99); }
.roi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.roi-l { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #E39A80; }
.roi-x { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(111,191,138,0.16); color: #8FD3A6; }
.roi-n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 38px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.roi-f { font-size: 12px; color: var(--soft, #C9D1D9); line-height: 1.45; }
.roi-big { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 44px; font-weight: 600; letter-spacing: -0.04em; color: #E39A80; margin: 4px 0 8px; }
@media print { .roi-card { border-color: #ccc; background: none; color: #111; } .roi-l, .roi-f { color: #333; } }
.roi-n .cur, .roi-big .cur { font-family: var(--sans, system-ui); font-size: .55em; font-weight: 600; margin-left: 4px; opacity: .85; }
.sheet.report > * { flex-shrink: 0; }

/* Parrainage */
.ref-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; border: 1px solid rgba(111,191,138,0.35); background: radial-gradient(120% 140% at 100% 0%, rgba(111,191,138,0.16), rgba(111,191,138,0) 60%), rgba(245,244,240,0.03); }
.ref-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ref-card .big { font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; margin-top: 4px; }
.ref-n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(111,191,138,0.16); color: #8FD3A6; white-space: nowrap; }
.ref-link { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; padding: 11px 12px; border-radius: 12px; background: rgba(11,21,33,0.6); border: 1px solid rgba(245,244,240,0.1); color: #E39A80; word-break: break-all; }

/* Bien démarrer */
.ob-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; border: 1px solid rgba(227,154,128,0.4); background: radial-gradient(120% 140% at 100% 0%, rgba(184,93,67,0.2), rgba(184,93,67,0) 60%), rgba(245,244,240,0.03); }
.ob-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ob-card .big { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.ob-n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; padding: 4px 9px; border-radius: 999px; background: rgba(227,154,128,0.16); color: #E39A80; }
.ob-bar { height: 6px; border-radius: 3px; background: rgba(245,244,240,0.08); overflow: hidden; }
.ob-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #B85D43, #E39A80); }
.ob-list { display: flex; flex-direction: column; }
.ob-step { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(245,244,240,0.08); }
.ob-dot { width: 20px; height: 20px; border-radius: 10px; border: 1.5px solid rgba(245,244,240,0.25); display: grid; place-items: center; font-size: 11px; color: #0B1521; }
.ob-step.done .ob-dot { background: #6FBF8A; border-color: #6FBF8A; }
.ob-step.done .t { color: var(--muted, #8E9AA7); text-decoration: line-through; text-decoration-color: rgba(245,244,240,0.3); }
.ob-txt .t { font-size: 14px; font-weight: 600; }
.ob-txt .d { font-size: 12px; color: var(--muted, #8E9AA7); line-height: 1.4; margin-top: 2px; }
.ob-step .pill { white-space: nowrap; }

/* Plan de salle 3D */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(245,244,240,0.06); border: 1px solid rgba(245,244,240,0.1); gap: 2px; }
.seg button { border: 0; background: none; color: var(--soft, #C9D1D9); font: 600 13px/1 inherit; font-family: inherit; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: #F5F4F0; color: #0B1521; }
.seg.wide { display: flex; } .seg.wide button { flex: 1; }
.floor-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.floor-wrap { perspective: 1100px; perspective-origin: 50% 30%; padding: 0; margin: -46px -8px -40px; overflow: hidden; }
.floor-wrap.flat { margin: 0; }
.floor { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; transform-style: preserve-3d; transform: rotateX(54deg) rotateZ(-30deg) scale(0.8); transition: transform .6s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(rgba(245,244,240,0.05) 1px, transparent 1px) 0 0 / 8.333% 11.11%, linear-gradient(90deg, rgba(245,244,240,0.05) 1px, transparent 1px) 0 0 / 8.333% 11.11%, radial-gradient(120% 90% at 30% 20%, #1C2C42, #0E1A29);
  border: 1px solid rgba(245,244,240,0.12); box-shadow: 0 40px 60px rgba(0,0,0,0.45), inset 0 0 0 6px rgba(245,244,240,0.03); }
.floor-wrap.flat { perspective: none; padding-top: 4px; }
.floor-wrap.flat .floor { transform: none; }
.floor-door { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); font: 600 9px/1 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #E39A80; padding: 4px 10px; border-radius: 6px 6px 0 0; background: rgba(184,93,67,0.22); }
.tbl { position: absolute; transform: translate(-50%, -50%); transform-style: preserve-3d; border: 0; padding: 0; background: none; cursor: pointer; touch-action: none; transition: opacity .2s; }
.tbl .l1, .tbl .l2, .tbl .top { position: absolute; inset: 0; border-radius: 10px; }
.tbl.round .l1, .tbl.round .l2, .tbl.round .top { border-radius: 50%; }
.tbl .l1 { transform: translateZ(4px); background: #142134; }
.tbl .l2 { transform: translateZ(8px); background: #1A2A40; }
.tbl .top { transform: translateZ(12px); background: linear-gradient(160deg, #34485F, #26384D); border: 1px solid rgba(245,244,240,0.18); display: grid; place-items: center; box-shadow: 0 0 0 0 transparent; }
.tbl .num { font: 600 12px/1 'JetBrains Mono', monospace; color: #F5F4F0; }
.tbl.booked .l1 { background: #5E2B1E; } .tbl.booked .l2 { background: #7E3B29; }
.tbl.booked .top { background: linear-gradient(160deg, #E39A80, #B85D43); border-color: rgba(255,255,255,0.3); }
.tbl.seated .l1 { background: #2C5A3D; } .tbl.seated .l2 { background: #3D774F; }
.tbl.seated .top { background: linear-gradient(160deg, #9EDDB4, #5FAE7C); border-color: rgba(255,255,255,0.3); }
.tbl.seated .num, .tbl.booked .num { color: #0B1521; }
.tbl.fit .top { box-shadow: 0 0 0 3px #F5F4F0, 0 0 24px rgba(245,244,240,0.6); animation: fitPulse 1.2s ease-in-out infinite; }
.tbl.dim { opacity: .3; }
@keyframes fitPulse { 50% { box-shadow: 0 0 0 3px #F5F4F0, 0 0 8px rgba(245,244,240,0.3); } }
.tbl .ch { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%) translateZ(1px); background: rgba(245,244,240,0.22); }
.tbl .tag3d { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; transform: translateX(-50%) translateZ(26px) rotateZ(30deg) rotateX(-54deg); white-space: nowrap; font: 500 10px/1 inherit; font-family: inherit; color: #F5F4F0; background: rgba(11,21,33,0.88); border: 1px solid rgba(245,244,240,0.14); padding: 4px 7px; border-radius: 8px; pointer-events: none; }
.tbl.free .tag3d { color: var(--muted, #8E9AA7); }
.tbl .tag3d b { font-family: 'JetBrains Mono', monospace; color: #E39A80; font-weight: 600; }
.floor-wrap.flat .tbl .top { transform: none; } .floor-wrap.flat .tbl .l1, .floor-wrap.flat .tbl .l2 { display: none; }
.floor-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--soft, #C9D1D9); }
.floor-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.floor-legend i.free { background: #34485F; } .floor-legend i.booked { background: #D47C62; } .floor-legend i.seated { background: #7FC79A; }
@media (prefers-reduced-motion: reduce) { .floor { transition: none; } .tbl.fit .top { animation: none; } }
.floor-bar { position: relative; z-index: 2; }
.floor-wrap:not(.flat) { pointer-events: none; } .floor-wrap:not(.flat) .tbl { pointer-events: auto; }

/* Atelier / salon / studio 3D : formes par métier */
.tbl.ws .top { border-radius: 10px; }
.tbl.ws .l1, .tbl.ws .l2 { border-radius: 10px; }
.tbl.bowl .l1, .tbl.bowl .l2, .tbl.bowl .top { border-radius: 50%; }
.tbl.chair .l1, .tbl.chair .l2, .tbl.chair .top { border-radius: 12px 12px 16px 16px; }
.tbl .deco { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.tbl.chair .deco::before { content: ''; position: absolute; left: 10%; right: 10%; top: 6%; height: 26%; border-radius: 8px; background: rgba(11,21,33,0.35); }
.tbl.bowl .deco::before { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: rgba(11,21,33,0.35); box-shadow: inset 0 2px 4px rgba(0,0,0,0.4); }
.tbl.cabin .deco::before { content: ''; position: absolute; left: 14%; right: 14%; top: 18%; bottom: 18%; border-radius: 8px; border: 1.5px solid rgba(245,244,240,0.28); }
.tbl.lift .deco::before, .tbl.lift .deco::after { content: ''; position: absolute; top: 6%; bottom: 6%; width: 14%; border-radius: 4px; background: repeating-linear-gradient(45deg, #E8B931 0 6px, #2A2A2A 6px 12px); opacity: .85; }
.tbl.lift .deco::before { left: 8%; } .tbl.lift .deco::after { right: 8%; }
.tbl.zone .top { background: rgba(245,244,240,0.05) !important; border: 1.5px dashed rgba(245,244,240,0.35); }
.tbl.zone .l1, .tbl.zone .l2 { display: none; }
.tbl.zone.booked .top { border-color: #E39A80; background: rgba(184,93,67,0.18) !important; }
.tbl.zone.seated .top { border-color: #7FC79A; background: rgba(111,191,138,0.2) !important; }
.tbl.zone .num, .tbl.zone.booked .num, .tbl.zone.seated .num { color: #F5F4F0; }
.tbl.van .deco::before { content: ''; position: absolute; left: 8%; right: 8%; top: 4%; height: 26%; border-radius: 10px 10px 4px 4px; background: rgba(11,21,33,0.45); }
.tbl.van .deco::after { content: ''; position: absolute; left: 18%; right: 18%; top: 8%; height: 12%; border-radius: 4px; background: rgba(160,200,230,0.45); }
.tbl.mat .deco::before { content: ''; position: absolute; inset: 14%; border-radius: 6px; background: rgba(11,21,33,0.22); }
.tbl.room .deco { background: radial-gradient(circle, rgba(11,21,33,0.28) 22%, transparent 24%) 0 0 / 25% 33%; }
.tbl.ws .num { font-size: 10.5px; font-family: inherit; font-weight: 700; position: relative; text-align: center; padding: 0 4px; line-height: 1.15; }
.tbl.lift .num, .tbl.van .num { writing-mode: vertical-rl; transform: rotate(180deg); }
.ws-floor.garage { background: linear-gradient(90deg, transparent 49.6%, rgba(232,185,49,0.35) 49.6% 50.4%, transparent 50.4%) 0 0 / 30% 100%, radial-gradient(120% 90% at 30% 20%, #2A3138, #171C22); }
.ws-floor.coiffeur { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 18px, transparent 18px 36px), radial-gradient(120% 90% at 30% 20%, #3A2A24, #1E1714); }
.ws-floor.coach { background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 14px, transparent 14px 28px), radial-gradient(120% 90% at 30% 20%, #2D2A22, #18160F); }
.ws-floor.artisan { background: linear-gradient(rgba(245,244,240,0.05) 1px, transparent 1px) 0 0 / 20% 25%, radial-gradient(120% 90% at 30% 20%, #232B33, #12171C); }
.tbl .tag3d { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- cockpit : revenus ---------- */
.rev-wrap { position: relative; width: 100%; }
.rev-chart { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.rev-ax { font: 500 11px/1 var(--sans); fill: var(--muted); }
.rev-ax.f { fill: var(--soft); font-style: italic; }
.rev-tip { position: absolute; pointer-events: none; z-index: 5; min-width: 170px; padding: 10px 12px; border-radius: 12px; background: #16212E; border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0,0,0,.35); font: 400 12px/1.5 var(--sans); color: var(--soft); }
.rev-tip b { color: var(--text); font-weight: 600; }
.rev-tip i, .rev-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.rev-legend { display: flex; gap: 16px; flex-wrap: wrap; font: 500 12px/1.3 var(--sans); color: var(--soft); }
.rev-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rev-table-wrap { overflow-x: auto; }
.rev-table { width: 100%; border-collapse: collapse; font: 400 13px/1.4 var(--sans); color: var(--soft); }
.rev-table th { text-align: right; font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.rev-table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rev-table th:first-child, .rev-table td:first-child { text-align: left; color: var(--text); }
.rev-table td.up { color: var(--ok); } .rev-table td.down { color: #8DB4E6; }
@media (max-width: 760px) { .rev-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wsteps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font: 400 13.5px/1.5 var(--sans); color: var(--soft); }
.wsteps b { color: var(--text); font-weight: 600; }

/* Minutes incluses (onglet Léa) */
.usage-num{font-size:15px;color:var(--soft)}.usage-num b{font-family:var(--mono,ui-monospace,monospace);font-size:28px;color:var(--text,#fff);font-weight:600;letter-spacing:-.03em}
.usage-bar{height:8px;border-radius:999px;background:rgba(245,244,240,.08);overflow:hidden}.usage-bar i{display:block;height:100%;border-radius:inherit;background:var(--accent,#B85D43);transition:width .4s ease}
.usage.warn .usage-bar i{background:#D9A441}.usage.over .usage-bar i{background:#E06C6C}

/* Renvoi d'appel (onboarding) */
.fwd-code{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:16px;border:1px solid var(--line2,rgba(245,244,240,.14));background:rgba(245,244,240,.04)}
.fwd-code code{display:block;margin-top:4px;font:600 20px/1.2 var(--mono,ui-monospace,monospace);letter-spacing:.02em;color:var(--text);white-space:nowrap}

.upsell{display:flex;flex-direction:column;gap:10px;margin-top:4px;padding:16px;border-radius:18px;border:1px solid rgba(227,154,128,.45);background:linear-gradient(180deg,rgba(184,93,67,.18),rgba(184,93,67,.04))}
.upsell ul{margin:0;padding:0 0 0 18px;color:var(--soft);font-size:13px;display:flex;flex-direction:column;gap:4px}

/* Prospection : réponses aux objections */
.ps-obj{border:1px solid var(--line);border-radius:12px;padding:10px 14px;background:rgba(245,244,240,.03)}
.ps-obj summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--accent-text)}
.ps-obj div{margin-top:10px}.ps-obj b{font-size:13px;color:var(--text)}.ps-obj p{margin:3px 0 0;font-size:13px;line-height:1.5;color:var(--soft)}

/* Avis client */
.stars{display:flex;gap:6px}.star{width:46px;height:46px;border-radius:14px;border:1px solid var(--line2,rgba(245,244,240,.14));background:rgba(245,244,240,.04);color:rgba(245,244,240,.28);font-size:24px;cursor:pointer}
.star.on{color:#E3B04B;border-color:rgba(227,176,75,.5);background:rgba(227,176,75,.10)}
