.guided-setup.phase-images #settings-organization,.guided-setup.phase-publication #settings-organization{display:block}
.guided-setup.phase-images #organization-edit,.guided-setup.phase-publication #organization-edit,.guided-setup.phase-images #settings-organization>summary,.guided-setup.phase-publication #settings-organization>summary{display:none}
:root {
  /* Fondation partagee avec le mini-site : six pas, deux familles, une palette. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --font-ui: ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-ui);
  --font: var(--font-ui);
  --text-micro: .6875rem;
  --text-small: .8125rem;
  --text-body: .9375rem;
  /* Densité du 02/11/2026 (demande de Fahd) : une seule échelle de titres pour tout le tableau de bord. */
  --text-title: 1.125rem;
  --text-display: 1.5rem;
  --page-title: 1.375rem;
  --section-title: 1.0625rem;
  --card-title: .9375rem;
  --page-gap: 12px;
  --panel-pad: 14px 16px;
  --control-height: 36px;
  --brand: #245b4b;
  --brand-strong: color-mix(in srgb, var(--brand), #000 20%);
  --brand-2: var(--brand);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-ink: color-mix(in srgb, var(--brand), #000 28%);
  --accent: #c8871a;
  --accent-soft: #fff6e2;
  --paper: #fffdf8;
  --canvas: #f4f7f5;
  --surface: #fff;
  --surface-2: var(--paper);
  --soft: #eef4f0;
  --ink: #17221f;
  --muted: #5c6b66;
  --line: #d8e1dc;
  --line-soft: #edf1ee;
  --danger: #9b3b2e;
  --warning: var(--accent);
  --success: #27704d;
  --shadow: 0 10px 28px rgba(23, 34, 31, .06);
  --shadow-strong: 0 24px 70px rgba(23, 34, 31, .18);
  --radius-small: 12px;
  --radius: 18px;
  --radius-pill: 999px;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--canvas);
  font-size: var(--text-body); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { min-height: 44px; }
button { border: 1px solid var(--line); border-radius: var(--radius-small); padding: var(--space-2) var(--space-3);
  color: var(--ink); background: var(--surface); cursor: pointer; }
button:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--soft); }
.primary { min-height: 46px; border-color: var(--brand); color: #fff; background: var(--brand);
  font-weight: 800; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent); }
.primary:hover { border-color: var(--brand-strong); background: var(--brand-strong); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3, p { margin-top: 0; }
h1,h2,.display-number{font-family:var(--font-display);font-weight:700}
h1 { margin-bottom: var(--space-2); font-size: var(--text-display); line-height: 1.04; letter-spacing: -.035em; }
h2 { margin-bottom: var(--space-1); font-size: var(--text-title); line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: 1rem; }
.eyebrow, .section-kicker { display: block; margin: 0 0 .42rem; color: var(--brand-2);
  font-size: var(--text-micro); font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }

/* Compte : identité personnelle, réglages métier et crédit restent distincts. */
.profile-screen,.settings-screen,.subscription-screen{max-width:1200px;margin-inline:auto}
.account-status{display:inline-flex;align-items:center;min-height:32px;padding:6px 12px;border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--soft);color:var(--brand-ink);font-size:var(--text-small);font-weight:800;overflow-wrap:anywhere}
.profile-screen .profile-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:24px}
.profile-screen .account-card{overflow:hidden;padding:0 24px 24px}
.profile-identity{margin:0 -24px 24px;padding:28px 24px;background:var(--brand-strong);color:#fff}
.profile-identity .eyebrow{color:#cbded5}.profile-identity h2{font-size:1.8rem;overflow-wrap:anywhere;margin-bottom:16px}
.profile-identity .account-status{border-color:#ffffff30;background:#ffffff12;color:#fff}
.profile-screen .panel{border-radius:20px}.profile-screen .account-card dl{margin-bottom:20px}
.profile-screen .setting-explainer{padding:14px 0;border:0;background:transparent;box-shadow:none}
.profile-screen .setting-explainer p{margin-bottom:0}
.profile-security{padding:28px}.profile-security>p:not(.eyebrow){color:var(--muted);margin:12px 0 24px}
.profile-security .form-grid{gap:20px}.profile-security input{min-height:48px}
.profile-security label{display:grid;gap:8px;font-size:var(--text-small);font-weight:700}
.profile-security input{width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:12px}
.profile-security .form-action{justify-self:start;margin-top:8px}
.profile-screen .danger-zone{margin-top:24px;background:#fffaf8;padding:18px 24px}
.profile-screen .danger-zone summary{cursor:pointer}.profile-screen .danger-zone summary h2{display:inline;font-size:1.1rem}
.profile-screen .danger-zone[open] summary{margin-bottom:20px}
.settings-screen{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px 24px;align-items:start}
.settings-screen>.page-head,.settings-context{grid-column:1/-1}
.settings-context{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:18px 24px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.settings-context>div{flex:1;min-width:150px}.settings-context strong{font-family:var(--font-display);font-size:1.25rem}
.settings-context a{display:inline-flex;align-items:center;color:var(--brand);font-size:var(--text-small);font-weight:700}
.settings-screen>.section-nav{grid-column:1;grid-row:3/span 8;position:sticky;top:86px;display:flex;flex-direction:column;align-items:stretch;margin:0;padding:8px;gap:6px;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:visible}
.settings-screen>.section-nav button{text-align:left;white-space:normal;min-height:48px;border-radius:12px;border-color:transparent;padding:12px 16px;font-size:var(--text-small)}
.settings-screen>.section-nav button.active{color:#fff;background:var(--brand);box-shadow:0 5px 12px #245b4b18}
.settings-screen>.section-panel{grid-column:2;margin:0;border-radius:18px;scroll-margin-top:84px}
.settings-screen>.section-panel>summary{min-height:48px}.settings-screen>.section-panel[open]>summary{padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid var(--line-soft)}
.settings-screen fieldset{min-width:0;margin:0;padding:16px 0 20px;border:0;border-bottom:1px solid var(--line-soft)}
.settings-screen legend{padding:0;font-size:var(--text-small);font-weight:850;color:var(--brand)}
.settings-screen label small{font-weight:400;color:var(--muted);line-height:1.45}
.settings-screen textarea{min-height:88px}.settings-screen input{min-height:46px}
.settings-screen .form-action{justify-self:start;min-width:190px}
.settings-screen .check{gap:10px}.settings-screen .check input{width:20px;height:20px;min-height:20px;flex-shrink:0;accent-color:var(--brand)}
.settings-screen #notifications-edit{margin-bottom:24px}
.settings-screen #settings-assistant{border-top:3px solid var(--brand)}
.subscription-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start}
.subscription-layout>.panel{margin:0;padding:24px;border-radius:20px}
.subscription-usage{border-top:4px solid var(--brand)!important}
.subscription-usage>h2{font-size:2rem}.subscription-usage .billing{gap:24px;margin-top:24px}
.subscription-usage .billing-head strong{font-family:var(--font-display);font-size:4rem;color:var(--brand-ink)}
.subscription-usage .billing-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.subscription-usage .billing-facts li{padding:16px;background:var(--paper)}
.subscription-usage .billing-facts strong{font-family:var(--font-display);font-size:1.6rem}
.subscription-usage .billing-state{display:none}
.subscription-usage [data-billing-definition]{border:0;background:transparent;padding:12px 0;margin-bottom:0}
.subscription-usage [data-billing-definition] p{font-size:var(--text-small);margin-bottom:0}
.subscription-layout>.subscription-continuity{background:var(--soft)}
.account-facts{margin:24px 0}.account-facts>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.account-facts dt{font-size:var(--text-small)}.account-facts dd{margin:0;font-size:var(--text-small);font-weight:800;color:var(--muted)}
.account-facts dd[data-enabled=true]{color:var(--brand)}
.subscription-continuity>p:not(.eyebrow){color:var(--muted);font-size:var(--text-small)}
.subscription-history{grid-column:1/-1}.subscription-history .list li{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
@media(max-width:850px){.settings-screen{grid-template-columns:minmax(0,1fr)}.settings-screen>.section-nav{grid-column:1;grid-row:auto;position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.settings-screen>.section-panel{grid-column:1}.settings-screen>.section-nav button{text-align:center;padding:10px 6px}.profile-screen .profile-grid,.subscription-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.profile-screen .profile-grid,.subscription-layout{gap:16px}.profile-security,.subscription-layout>.panel{padding:20px}.settings-screen{gap:12px}.settings-context{padding:16px}.settings-context .account-status{font-size:.7rem}.settings-screen>.section-nav{gap:4px;padding:6px}.settings-screen .form-action{width:100%}.subscription-usage .billing-head{flex-wrap:wrap}.subscription-usage .billing-head strong{font-size:3.2rem}.profile-screen .danger-zone{margin-top:16px}}

/* Deux lectures analytiques : comportements clients / activité établissement. */
.analysis-screen{max-width:1240px;margin:0 auto;display:grid;gap:var(--space-5)}
.analysis-screen .page-head{margin:0;align-items:center}
.analysis-screen .page-head p:last-child{margin-bottom:0}
.analysis-period{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);padding:var(--space-4);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.analysis-period small{display:block;color:var(--muted);font-size:var(--text-small);margin-top:var(--space-1)}
.analysis-switch{display:flex;gap:var(--space-1);padding:var(--space-1);border-radius:var(--radius-pill);background:var(--canvas);flex-shrink:0}
.analysis-switch button,.analysis-switch a{display:grid;place-items:center;min-height:44px;border-radius:var(--radius-pill);border-color:transparent;background:transparent;min-width:82px;font-weight:700;text-decoration:none}
.analysis-switch button[aria-pressed=true],.analysis-switch a[aria-pressed=true]{background:var(--brand);color:#fff}
.analysis-client-overview,.analysis-business-overview{display:grid;grid-template-columns:1.15fr 2fr;gap:var(--space-4)}
.analysis-focus{padding:var(--space-5);background:var(--brand-strong);color:white;border-radius:var(--radius);display:flex;flex-direction:column;justify-content:center;min-width:0}
.analysis-focus .section-kicker{color:#d8e9df}
.analysis-focus h2{font-size:clamp(2rem,4vw,3.5rem);margin:var(--space-2) 0;line-height:1.05}
.analysis-focus h2 small{font-size:1.2rem;color:#d8e9df}
.analysis-focus p{margin:var(--space-2) 0;font-size:var(--text-small);line-height:1.6}
.analysis-focus>small{color:#d8e9df;font-size:var(--text-small)}
.analysis-focus a{color:#fff;font-size:var(--text-small);margin-top:var(--space-2);display:flex;align-items:center}
.analysis-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-3)}
.analysis-metric{padding:var(--space-5) var(--space-4);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.analysis-metric>span{display:block;font-weight:800;font-size:var(--text-small);min-height:2.8em}
.analysis-metric>strong{font:700 2.6rem var(--font-display);display:block;margin:var(--space-3) 0;color:var(--brand-ink)}
.analysis-metric p{font-size:var(--text-small);color:var(--muted);margin:0;line-height:1.55}
.analysis-metric.tone-rose{border-top:4px solid #b66f66;background:#fffafa}
.analysis-metric.tone-amber{border-top:4px solid var(--accent);background:#fffdf6}
.analysis-metric.tone-blue{border-top:4px solid #6b8b9b;background:#fafcfd}
.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4);align-items:stretch}
.analysis-grid>.panel{margin:0;padding:var(--space-5);min-width:0}
.analysis-grid h2{font-size:1.5rem;line-height:1.2;margin-bottom:var(--space-2)}
.analysis-grid p,.analysis-grid small{font-size:var(--text-small);color:var(--muted)}
.analysis-breakdown{margin:var(--space-5) 0 0}
.analysis-breakdown>div{display:flex;justify-content:space-between;gap:var(--space-3);padding:var(--space-3) 0;border-top:1px solid var(--line-soft)}
.analysis-breakdown dt{font-size:var(--text-body)}
.analysis-breakdown dd{font:700 1.5rem var(--font-display);margin:0;color:var(--brand-ink)}
.analysis-ranking ul{list-style:none;margin:var(--space-5) 0 0;padding:0;display:grid;gap:var(--space-5)}
.analysis-ranking li>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-3);margin-bottom:var(--space-2)}
.analysis-ranking li strong{font-size:var(--text-body);overflow-wrap:anywhere}
.analysis-ranking li span{white-space:nowrap;color:var(--muted);font-size:var(--text-small)}
.analysis-ranking li b{font-size:1.25rem;color:var(--ink)}
.analysis-track{height:8px;background:var(--soft);border-radius:var(--radius-pill);overflow:hidden}
.analysis-track i{display:block;height:100%;background:var(--brand);border-radius:inherit}
.analysis-boundary{background:var(--paper)}
.analysis-boundary .button-link{margin-top:var(--space-3)}
.analysis-screen .button-link.primary{color:#fff}
.analysis-daily{margin:0!important;padding:var(--space-4)!important}
.analysis-daily summary{font-weight:800;cursor:pointer;min-height:44px;align-content:center}
.analysis-daily summary span{font-size:var(--text-small);color:var(--muted);font-weight:400;margin-left:var(--space-3)}
.analysis-daily table{width:100%;border-collapse:collapse;margin-top:var(--space-3);font-size:var(--text-small)}
.analysis-daily caption{text-align:left;color:var(--muted);padding:var(--space-3) 0}
.analysis-daily th,.analysis-daily td{padding:var(--space-3);text-align:right;border-bottom:1px solid var(--line-soft)}
.analysis-daily th:first-child{text-align:left;white-space:nowrap}
.analysis-footnote,.analysis-empty{padding:var(--space-4);background:var(--accent-soft);border-radius:var(--radius-small);font-size:var(--text-small);margin:0}
@media(max-width:1100px){.analysis-client-overview,.analysis-business-overview{grid-template-columns:1fr}.analysis-focus h2{font-size:2.6rem}.analysis-focus{min-height:180px}.analysis-metric>span{min-height:0}}
@media(max-width:600px){
 .analysis-screen{gap:var(--space-3)}.analysis-screen .page-head{align-items:start;gap:var(--space-2)}
 .analysis-screen .page-head h1{font-size:1.65rem}.analysis-screen .page-head>.button-link{font-size:var(--text-micro);padding:var(--space-2)}
 .analysis-period{align-items:start;flex-direction:column;padding:var(--space-3)}.analysis-period>div:first-child>strong{font-size:var(--text-small)}
 .analysis-switch{width:100%}.analysis-switch button,.analysis-switch a{flex:1}.analysis-focus{padding:var(--space-4);min-height:0}
 .analysis-three{gap:var(--space-2)}.analysis-metric{padding:var(--space-3) var(--space-2)}.analysis-metric>span{font-size:var(--text-micro);min-height:2.8em}
 .analysis-metric>strong{font-size:2rem}.analysis-metric p{font-size:var(--text-micro)}
 .analysis-grid{grid-template-columns:1fr;gap:var(--space-3)}.analysis-grid>.panel{padding:var(--space-4)}
 .analysis-grid h2{font-size:1.25rem}.analysis-daily summary span{display:block;margin:var(--space-1) 0}
}

/* Connexion portée de la dernière coquille IBTISSAM, sans dépendance ni donnée démo. */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); }
.login-scene { position: relative; display: grid; align-items: end; overflow: hidden; padding: clamp(2rem, 6vw, 5.5rem);
  color: #fff; background: var(--brand-strong); }
.login-scene::before { content: ""; position: absolute; inset: 8% -12% auto auto; width: 32rem; height: 32rem;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(255,255,255,.035),
  0 0 0 8rem rgba(255,255,255,.025); }
.login-scene::after { content: ""; position: absolute; inset: auto auto -14rem -10rem; width: 30rem; height: 30rem;
  border-radius: 50%; background: rgba(255,255,255,.055); filter: blur(2px); }
.login-scene-copy { position: relative; z-index: 1; max-width: 660px; }
.login-scene .eyebrow { color: #a9dce5; }
.login-scene h1 { margin: 1.25rem 0 1.1rem; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .98; }
.login-scene p:not(.eyebrow) { max-width: 34rem; color: #d9eef1; font-size: 1.04rem; }
.security-note { display: inline-flex; margin-top: 1.5rem; padding: .55rem .8rem; border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; color: #e8f7f8; background: rgba(255,255,255,.08); font-size: .78rem; }
.login-side { display: grid; place-items: center; padding: clamp(1.5rem, 6vw, 5.5rem); background: #fbfcfc; }
.login-card { width: min(440px, 100%); }
.auth-panel{width:min(480px,100%)}.auth-panel .login-card{width:100%}
.auth-switch{display:flex;padding:5px;background:#edf3ef;border:1px solid #dce6df;border-radius:14px;margin-bottom:24px}
.auth-switch button{flex:1;background:transparent;border:0;color:#4a6357;padding:12px 10px;border-radius:10px;min-height:44px}
.auth-switch button[aria-pressed=true]{background:#fff;color:#184c3a;box-shadow:0 2px 7px #183c3214}
.auth-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.auth-side{padding:clamp(24px,4vw,56px)}.auth-panel h2{font-size:clamp(26px,2.5vw,34px);letter-spacing:-.03em}
.auth-panel .eyebrow{color:#386552}.auth-panel .login-card label{font-size:13px;font-weight:650;margin:12px 0}
.auth-panel input,.auth-panel select{font-size:15px;min-height:46px}.auth-panel select{width:100%;padding:12px;border-radius:10px;border:1px solid var(--line);background:#f3f7f4;color:var(--ink)}
.auth-panel .auth-consent{display:flex;gap:10px;align-items:flex-start;font-weight:400;line-height:1.5}
.auth-consent input[type=checkbox]{width:18px;height:18px;min-height:18px;margin-top:2px;flex-shrink:0;accent-color:#245b4b}
.auth-panel .auth-reassurance{text-align:center;font-size:12px;line-height:1.6;margin:16px 0 0}
.auth-panel .error:empty{display:none}.auth-panel .login-card[hidden]{display:none}
.auth-panel .primary{min-height:48px}.auth-panel button:disabled{opacity:.65;cursor:wait}
.google-signin{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:16px 0 4px;padding:10px 16px;border:1px solid #cfd9d3;border-radius:12px;background:#fff;color:#1f2d27;font-weight:650;text-decoration:none}
.google-signin:hover,.google-signin:focus-visible{border-color:#245b4b;box-shadow:0 2px 8px #183c321a}
.google-mark{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;border:1px solid #dadce0;color:#4285f4;font-weight:800;font-size:14px}
.auth-separator{display:flex;align-items:center;gap:12px;margin:14px 0 2px;color:#6b7f75;font-size:12px}
.auth-separator::before,.auth-separator::after{content:'';flex:1;height:1px;background:#dce6df}
.auth-panel input[readonly]{background:#eef3f0;color:#3c5147}
@media(max-width:800px){.auth-field-pair{grid-template-columns:1fr;gap:0}.auth-side{padding:24px 20px}.auth-panel .login-card input,.auth-panel select{font-size:16px}}
.login-card h2 { margin: 1rem 0 .4rem; font-size: 2rem; }
.login-card > p:not(.eyebrow, .error) { margin-bottom: 1.6rem; color: var(--muted); }
.login-card label, .detail label, .dialog-card label { display: grid; gap: .42rem; margin: .8rem 0;
  color: #42545d; font-size: .78rem; font-weight: 750; }
.login-card input, .detail input, .detail select, .detail textarea, .dialog-card input,
.dialog-card select, .dialog-card textarea, .search input, .toolbar input, .toolbar select,
.agenda-filters input, .agenda-filters select, details input, details select, details textarea {
  width: 100%; padding: .72rem .78rem; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); background: var(--surface); }
.login-card .primary { width: 100%; margin-top: .35rem; }
.brand-mark { width: 42px; height: 42px; display: inline-grid; place-items: center; flex: 0 0 auto;
  border-radius: 13px; color: #fff; background: var(--brand);
  font-size: 1.15rem; font-weight: 950; box-shadow: 0 10px 24px rgba(4, 47, 57, .2); }
.brand-mark.large { width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.14); box-shadow: none; font-size: 1.5rem; }
.error { min-height: 1.4rem; color: var(--danger); font-size: .82rem; }

/* Coquille applicative IBTISSAM adaptée aux six entrées RdvPilot. */
.app-shell { min-height: 100vh; display: flex; background: var(--canvas); }
.sidebar { position: sticky; top: 0; z-index: 30; width: 252px; height: 100vh; display: flex; flex-direction: column;
  gap: 1rem; padding: 1.15rem .9rem; color: #d9eef1; background: #082f39; box-shadow: 8px 0 30px rgba(6, 38, 46, .12); }
.sidebar-brand { min-height: 52px; display: flex; align-items: center; gap: .7rem; padding: 0 .35rem; }
.sidebar-brand strong { display: block; color: #fff; font-size: .98rem; }
.sidebar-brand small { display: block; margin-top: .08rem; color: #88bcc6; font-size: .62rem;
  font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.workspace-card { display: grid; gap: .28rem; padding: .85rem; border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px; background: rgba(255,255,255,.06); }
.workspace-card > span { color: #75adba; font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.workspace-card strong { color: #fff; font-size: .85rem; }
.workspace-card small { color: #a9cbd2; font-size: .67rem; }
.sidebar-nav { display: grid; gap: .34rem; overflow-y: auto; }
.sidebar-nav a { min-height: 46px; display: flex; align-items: center; gap: .72rem; padding: .58rem .72rem;
  border-radius: 10px; color: #b9d0d5; text-decoration: none; font-size: .82rem; font-weight: 720; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-nav a.active { color: #fff; background: var(--brand-2); box-shadow: 0 8px 20px rgba(23, 135, 158, .24); }
.nav-icon { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 8px;
  color: #9ac9d2; background: rgba(255,255,255,.07); font-size: 1rem; }
.sidebar-nav a.active .nav-icon { color: #fff; background: rgba(255,255,255,.13); }
.sidebar-footer { display: grid; gap: .45rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer > a { min-height: 44px; display: flex; align-items: center; padding: 0 .5rem; overflow: hidden;
  border-radius: 9px; color: #b9d0d5; font-size: .7rem; text-decoration: none; text-overflow: ellipsis; }
.sidebar-footer > a:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-footer button { display: flex; align-items: center; gap: .65rem; border: 0; color: #efb7b2; background: transparent;
  font-size: .78rem; text-align: left; }
.sidebar-footer button:hover { color: #fff; background: rgba(255,255,255,.07); }
.main-area { min-width: 0; flex: 1; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: .75rem 1.75rem; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.91); backdrop-filter: blur(14px); }
.topbar-title { display: flex; align-items: center; gap: .75rem; }
.topbar-title small { display: block; color: var(--muted); font-size: .65rem; }
.topbar-title strong { display: block; font-size: 1rem; }
.mobile-menu { display: none; width: 42px; padding: 0; font-size: 1.1rem; }
.live-status { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.live-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px #e7f3ec; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 25; min-height: 0; border: 0; border-radius: 0;
  background: rgba(7, 30, 36, .45); }

/* Pages et composants opérationnels. */
.page { max-width: 1120px; margin: 0 auto; padding: var(--space-5) var(--space-5) calc(var(--space-6) * 2); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1rem; }
.page-head p:not(.eyebrow) { max-width: 44rem; margin: .35rem 0 0; color: var(--muted); font-size: .82rem; }
.date-chip, .count-badge { display: inline-grid; place-items: center; min-height: 34px; padding: .35rem .7rem;
  border: 1px solid #c8dadd; border-radius: 999px; color: var(--brand-ink); background: var(--brand-soft);
  font-size: .72rem; font-weight: 850; white-space: nowrap; }
.metric-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: .9rem; }
.metric-ribbon a { min-height: 116px; display: grid; align-content: center; gap: .2rem; padding: 1rem;
  border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface);
  text-decoration: none; box-shadow: var(--shadow); }
.metric-ribbon a:hover { border-color: #b9d1d6; transform: translateY(-1px); }
.metric-ribbon span { color: var(--muted); font-size: .7rem; font-weight: 800; }
.metric-ribbon strong { color: var(--brand-ink); font-size: 1.75rem; line-height: 1; }
.metric-ribbon small { color: #7a888e; font-size: .65rem; }
.action-bar, .agenda-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: .9rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); }
.action-bar > div:last-child, .agenda-filters, .view-switch { display: flex; align-items: center; gap: .5rem; }
.action-bar strong { display: block; font-size: .82rem; }
.action-bar small { color: var(--muted); font-size: .68rem; }
.home-grid, .conversation-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: .9rem; }
.surface-card,.panel { margin: 0 0 var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); }
.filter-pill,.chip,.summary-pill { border-radius: var(--radius-pill); }
.empty-state,.empty,.empty-canvas,.catalogue-empty { border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--muted); background: var(--paper); }
.attention-banner,.warning-card,.onboarding-banner { border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-left: 3px solid var(--accent); background: var(--accent-soft); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.panel-head h2 { margin: 0; }
.text-link { min-height: 32px; display: inline-grid; place-items: center; color: var(--brand); font-size: .72rem;
  font-weight: 800; text-decoration: none; }
.timeline, .list, .work-list, .client-list, .messages { margin: 0; padding: 0; list-style: none; }
.appointment { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto auto; gap: .65rem;
  align-items: center; padding: .78rem .1rem; border-top: 1px solid var(--line-soft); }
.appointment:first-child { border-top: 0; }
.appointment time { color: var(--brand-ink); font-size: .84rem; font-weight: 900; }
.appointment div { min-width: 0; }
.appointment div strong { display: block; overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.appointment small, .list small { display: block; overflow: hidden; color: var(--muted); font-size: .68rem;
  text-overflow: ellipsis; white-space: nowrap; }
.status { border-color: #c8dadd; color: var(--brand-ink); background: var(--brand-soft); font-size: .7rem; font-weight: 850; }
.work-list li, .list li, .client-list li { border-top: 1px solid var(--line-soft); }
.work-list li:first-child, .list li:first-child, .client-list li:first-child { border-top: 0; }
.work-list button, .list button { width: 100%; text-align: left; border: 0; background: transparent; }
.work-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .18rem .55rem; padding: .72rem .25rem; }
.work-list button strong { font-size: .78rem; }
.work-list button > span:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #819096; }
.work-label { color: var(--brand); font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.priority { border-color: #e5cf9e; background: #fffdf7; }
.empty { padding: var(--space-6) var(--space-4); text-align: center; font-size: var(--text-small); }
.agenda-filters label { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .68rem; }
.agenda-filters input, .agenda-filters select { width: auto; min-width: 9.5rem; }
.chip { border-radius: 999px; font-size: .72rem; }
.chip.active { border-color: var(--brand); color: #fff; background: var(--brand); }
.search { display: flex; gap: .55rem; max-width: 720px; margin: 0 0 .9rem; }
.search input { min-width: 0; flex: 1; }
.client-panel { padding: .35rem 1rem; }
.client-row button { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center; gap: .75rem; padding: .78rem .15rem; border: 0; background: transparent; text-align: left; }
.client-avatar { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px;
  color: var(--brand-ink); background: var(--brand-soft); font-size: .78rem; font-weight: 900; }
.client-copy { min-width: 0; }
.client-copy strong, .client-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-copy strong { font-size: .82rem; }
.client-copy small, .client-meta { color: var(--muted); font-size: .68rem; }
.quick, .toolbar, .subnav { display: flex; gap: .5rem; margin: .9rem 0; overflow-x: auto; }
.subnav button { white-space: nowrap; }
.section-nav { position: sticky; top: 78px; z-index: 8; padding: .35rem; border: 1px solid var(--line);
  border-radius: 13px; background: rgba(244,247,247,.94); backdrop-filter: blur(12px); }
.section-nav button { flex: 0 0 auto; border-color: transparent; background: transparent; font-weight: 760; }
.section-nav button.active { border-color: #b8d4da; color: var(--brand-ink); background: var(--brand-soft); }
.section-panel { scroll-margin-top: 145px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem;
  max-width: 920px !important; padding-top: .35rem; }
.form-grid > label { min-width: 0; margin: 0 !important; }
.form-heading, .form-wide { grid-column: 1 / -1; }
.form-action { align-self: end; justify-self: start; }
.detail { margin-top: 1rem; }
.detail form, details form { max-width: 680px; }
.check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.check input { width: auto; min-height: 22px; }
.button { display: inline-grid; place-items: center; padding: .58rem .8rem; border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink); background: var(--surface); text-decoration: none; }
.danger { border-color: #e0b7b4; color: var(--danger); background: #fffafa; }
details.panel > summary { cursor: pointer; }
details summary h2 { display: inline; }
details[open] > summary { margin-bottom: 1rem; }
.messages { display: grid; gap: .5rem; }
.message { max-width: 86%; padding: .65rem .8rem; border-radius: 13px 13px 13px 4px; background: #eef3f4; }
.message.equipe, .message.assistant, .message.notification { justify-self: end; border-radius: 13px 13px 4px 13px; background: var(--brand-soft); }
.message p { margin: .2rem 0 0; white-space: pre-wrap; }
.message small { color: var(--muted); font-size: .62rem; }
dialog { width: min(540px, calc(100% - 1.25rem)); max-height: calc(100vh - 1.5rem); padding: 0;
  border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-strong); }
dialog::backdrop { background: rgba(7, 30, 36, .58); backdrop-filter: blur(3px); }
.dialog-card { padding: 1.2rem; overflow-y: auto; }
.dialog-card .close { float: right; width: 42px; padding: 0; }
#toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 100; max-width: calc(100% - 2rem);
  transform: translateX(-50%); padding: .6rem .9rem; border-radius: 999px; color: #fff;
  background: #122b33; box-shadow: var(--shadow-strong); font-size: .76rem; }
#toast:empty { display: none; }

@media (max-width: 1100px) {
  .metric-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid, .conversation-grid { grid-template-columns: 1fr; }
  .work-panel { order: -1; }
}

@media (max-width: 860px) {
  .login-page { grid-template-columns: 1fr; }
  .login-scene { min-height: 36vh; padding: 2rem 1.5rem; }
  .login-scene h1 { font-size: clamp(2.25rem, 10vw, 3.6rem); }
  .login-side { padding: 2rem 1.25rem; }
  .sidebar { position: fixed; left: 0; transform: translateX(-105%); transition: transform .2s ease;
    box-shadow: var(--shadow-strong); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-grid; place-items: center; }
  .topbar { padding: .65rem 1rem; }
  .page { padding: 1.15rem 1rem 4.5rem; }
  .section-nav { top: 72px; }
  .live-status { font-size: 0; }
  .live-status i { margin-right: .2rem; }
  .agenda-bar { align-items: stretch; flex-direction: column; }
  .agenda-filters { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .login-scene { min-height: 31vh; }
  .login-scene p:not(.eyebrow), .security-note { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head > .primary { width: 100%; }
  .metric-ribbon { gap: .55rem; }
  .metric-ribbon a { min-height: 102px; padding: .8rem; }
  .metric-ribbon strong { font-size: 1.45rem; }
  .action-bar { align-items: stretch; flex-direction: column; }
  .action-bar > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .appointment { grid-template-columns: 3rem minmax(0, 1fr); }
  .appointment .status, .appointment [data-action=report] { grid-column: 2; justify-self: start; }
  .agenda-filters label { width: 100%; justify-content: space-between; }
  .agenda-filters input, .agenda-filters select { min-width: 0; flex: 1; }
  .search { display: grid; grid-template-columns: 1fr; }
  .client-row button { grid-template-columns: 38px minmax(0, 1fr) auto; gap: .6rem; }
  .client-meta { grid-column: 2; }
  .client-row button > span:last-child { grid-column: 3; grid-row: 1 / span 2; }
  .panel { padding: .85rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-heading, .form-wide { grid-column: auto; }
  .form-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Poste de travail compact : densité réception, lecture rapide et surfaces métier distinctes. */
.topbar { min-height: 60px; padding-block: var(--space-2); }
.page { max-width: 1120px; padding-top: var(--space-3); }
.page-head { align-items: center; margin-bottom: .75rem; }
.compact-head { min-height: 62px; }
.compact-head .eyebrow { margin-bottom: .24rem; }
.compact-head h1 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.panel { border-radius: 18px; box-shadow: 0 8px 24px rgba(22, 47, 56, .055); }
.nav-icon { width: 30px; color: #9ed1d9; font-size: 1.05rem; font-weight: 400; letter-spacing: 0; line-height: 1; }
.sidebar-nav a.active .nav-icon { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Rendez-vous : le statut informe, les boutons agissent. */
.timeline { display: grid; }
.appointment { grid-template-columns: 4.4rem minmax(180px, 1fr) auto minmax(0, auto); gap: .8rem;
  min-height: 76px; padding: .7rem .25rem; }
.appointment time { display: grid; gap: .08rem; font-size: .88rem; }
.appointment time span { color: var(--muted); font-size: .64rem; font-weight: 700; }
.appointment-copy strong { font-size: .86rem !important; }
.appointment-copy small { margin-top: .16rem; font-size: .7rem; }
.status { display: inline-grid; place-items: center; min-height: 30px; padding: .3rem .6rem;
  border: 1px solid transparent; border-radius: 999px; font-size: .66rem; font-weight: 850; white-space: nowrap; }
.status-demande { color: #805815; background: #fff4d7; border-color: #f1d58f; }
.status-confirme { color: #185a43; background: #e7f5ee; border-color: #b7ddcc; }
.status-termine { color: #315c87; background: #eaf2fb; border-color: #c4d9ee; }
.status-annule { color: #8c413b; background: #fff0ef; border-color: #e9c3bf; }
.status-no_show { color: #6b536e; background: #f5edf6; border-color: #d9c4dc; }
.appointment-actions { display: flex; justify-content: flex-end; gap: .34rem; }
.appointment-actions button { min-height: 44px; padding: .5rem .7rem; font-size: .72rem; font-weight: 760; }
.action-positive { border-color: #a9d7c3; color: #176145; background: #edf8f3; }
.action-positive:hover { border-color: #77b99c; background: #e1f3eb; }
.danger.subtle { min-height: 36px; padding: .4rem .58rem; box-shadow: none; }
.agenda-surface { padding: .9rem 1.1rem; overflow: hidden; }
.agenda-day-heading { position: sticky; top: 60px; z-index: 3; padding: .55rem .25rem .4rem;
  border-bottom: 1px solid #cddfe2; color: var(--brand-ink); background: rgba(255,255,255,.96);
  font-size: .72rem; font-weight: 900; text-transform: capitalize; }

/* Clients : liste et fiche visibles sans scroll inutile. */
.client-workspace { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(440px, 1.28fr); gap: .85rem; align-items: start; }
.client-workspace .client-panel { position: sticky; top: 70px; max-height: calc(100vh - 155px); margin: 0;
  overflow-y: auto; }
.client-stage { min-width: 0; }
.client-stage > .panel { margin-top: 0; }
.client-row button.selected, .conversation-list button.selected { border-radius: 12px; background: var(--brand-soft); }
.client-detail { padding: 1.15rem; }
.detail-head { display: flex; justify-content: space-between; padding-bottom: .7rem; border-bottom: 1px solid var(--line-soft); }
.detail-head p { margin: .25rem 0 0; color: var(--muted); font-size: .7rem; }
.privacy-zone { margin-top: 1.2rem; padding: .9rem; border: 1px solid #edd1ce; border-radius: 14px; background: #fffafa; }
.privacy-zone p { color: var(--muted); font-size: .72rem; }
.workspace-placeholder { min-height: 260px; display: grid; place-content: center; text-align: center; }
.workspace-placeholder strong { font-size: 1rem; }
.workspace-placeholder p { max-width: 28rem; margin: .35rem 0 0; color: var(--muted); font-size: .78rem; }

/* Conversations : inspiration Hiba, comportement WhatsApp et reprise humaine explicite. */
.conversations-screen { min-height: calc(100vh - 80px); }
.conversation-workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: .8rem; align-items: stretch; }
.conversation-inbox { min-width: 0; height: calc(100vh - 158px); margin: 0; padding: .55rem; overflow-y: auto; }
.inbox-switch { position: sticky; top: -.55rem; z-index: 4; display: grid; grid-template-columns: 1fr 1fr;
  gap: .3rem; margin: -.05rem -.05rem .35rem; padding: .35rem; background: rgba(255,255,255,.96); }
.inbox-switch button { min-height: 44px; border-color: transparent; color: var(--muted); background: transparent;
  font-size: .76rem; font-weight: 820; }
.inbox-switch button.active { color: var(--brand-ink); background: var(--brand-soft); }
.inbox-switch span { display: inline-grid; place-items: center; min-width: 20px; min-height: 20px; margin-left: .18rem;
  border-radius: 999px; color: #fff; background: var(--brand); font-size: .6rem; }
.conversation-list { margin: 0; padding: 0; list-style: none; }
.conversation-list li + li { border-top: 1px solid var(--line-soft); }
.conversation-list button { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: .55rem;
  padding: .68rem .45rem; border: 0; background: transparent; text-align: left; }
.conversation-list-copy { min-width: 0; }
.conversation-list-copy strong, .conversation-list-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-list-copy strong { font-size: .76rem; }
.conversation-list-copy small { margin-top: .12rem; color: var(--muted); font-size: .62rem; }
.conversation-list time { grid-column: 2; color: #839198; font-size: .58rem; }
.conversation-stage { min-width: 0; }
.conversation-stage > .workspace-placeholder { height: calc(100vh - 158px); margin: 0; }
.conversation-detail { height: calc(100vh - 158px); display: grid; grid-template-columns: minmax(225px, 275px) minmax(430px, 1fr); gap: .8rem; }
.conversation-contact-card { min-width: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow); overflow-y: auto; }
.conversation-contact-card > summary { display: flex; align-items: center; gap: .65rem; cursor: pointer; list-style: none; }
.conversation-contact-card > summary::-webkit-details-marker { display: none; }
.conversation-contact-card summary span:last-child { min-width: 0; }
.conversation-contact-card summary strong, .conversation-contact-card summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-contact-card summary small { color: var(--muted); font-size: .62rem; }
.large-avatar { width: 46px; height: 46px; border-radius: 14px; }
.contact-facts { display: grid; gap: .35rem; margin: .9rem 0; }
.contact-facts p { display: grid; gap: .12rem; margin: 0; padding: .58rem .65rem; border-radius: 11px; background: var(--surface-2); }
.contact-facts span, .internal-note span { color: var(--muted); font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.contact-facts strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; }
.contact-actions .button { min-height: 38px; padding: .4rem; font-size: .68rem; }
.internal-note { margin: .8rem 0; padding: .7rem; border-left: 3px solid #d4b467; border-radius: 0 10px 10px 0; background: #fffbf1; }
.internal-note p { margin: .25rem 0 0; color: #584f38; font-size: .7rem; white-space: pre-wrap; }
.conversation-contact-card > .danger { width: 100%; margin-top: .8rem; font-size: .66rem; }
.whatsapp-thread { min-width: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0; padding: 0; overflow: hidden; }
.thread-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .72rem .9rem; border-bottom: 1px solid var(--line); background: #fff; }
.thread-head > div:first-child { min-width: 0; display: flex; align-items: center; gap: .55rem; }
.thread-head h2 { margin: 0; overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.thread-head small { color: var(--muted); font-size: .62rem; }
.thread-controls { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; }
.thread-controls button { min-height: 44px; padding: .5rem .7rem; font-size: .72rem; }
.agent-state { display: inline-flex; align-items: center; min-height: 28px; padding: .25rem .5rem; border-radius: 999px;
  font-size: .6rem; font-weight: 850; white-space: nowrap; }
.agent-active { color: #176145; background: #e6f5ed; }
.human-active { color: #805815; background: #fff2d3; }
.whatsapp-canvas { min-height: 0; overflow-y: auto; padding: 1rem; background: #eef4f1; }
.messages { align-content: end; min-height: 100%; }
.message { max-width: min(78%, 560px); padding: .58rem .72rem; border: 1px solid #dbe5e2; background: #fff;
  box-shadow: 0 3px 9px rgba(33, 70, 60, .05); }
.message.equipe { border-color: #b9dbcf; background: #dff3eb; }
.message.assistant { border-color: #bfdce3; background: #e5f2f5; }
.message.notification { justify-self: end; border-style: dashed; border-color: #c9d6d2; background: #f6faf8; }
.message.note { justify-self: center; border-style: dashed; border-color: #e3c98f; background: #fff8e8; font-size: .92em; }
.message p { margin: 0; font-size: .78rem; }
.message small { display: block; margin-top: .28rem; text-align: right; }
.conversation-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: end;
  padding: .65rem .75rem; border-top: 1px solid var(--line); background: #fff; }
.conversation-compose label { display: grid; gap: .28rem; margin: 0; color: var(--muted); font-size: .62rem; font-weight: 750; }
.conversation-compose textarea, .conversation-compose select { width: 100%; min-height: 44px; max-height: 110px; padding: .65rem .72rem;
  border: 1px solid var(--line); border-radius: 12px; resize: vertical; background: var(--surface-2); }
.conversation-guard { padding: .8rem 1rem; border-top: 1px solid #ead8ab; color: #6d541c; background: #fff9e8; font-size: .72rem; }

/* Mon activité et Paramètres : repères colorés sans multiplier les pages. */
.section-panel { position: relative; overflow: hidden; padding-top: .9rem; }
.section-panel:not([open]) { display: none; }
.section-panel::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--section-accent, var(--brand)); }
.section-panel[data-tone='services'], .section-panel[data-tone='organization'] { --section-accent: var(--brand); }
.section-panel[data-tone='practitioners'], .section-panel[data-tone='team'] { --section-accent: #7763ad; }
.section-panel[data-tone='resources'], .section-panel[data-tone='links'] { --section-accent: #c47b3d; }
.section-panel[data-tone='hours'], .section-panel[data-tone='notifications'] { --section-accent: #3c8a62; }
.section-panel[data-tone='whatsapp'] { --section-accent: #16835f; }
.section-panel[data-tone='assistant'], .section-panel[data-tone='subscription'] { --section-accent: #b88a27; }
.section-panel > summary { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.section-panel > summary small { color: var(--muted); font-size: .68rem; }
.section-panel > .list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .45rem; align-items: center; padding: .62rem .15rem; }
.section-panel > form:not(.form-grid) { display: flex; align-items: end; gap: .55rem; }
.section-panel > form:not(.form-grid) label { min-width: 240px; }
.setting-explainer { margin: 0 0 1rem; padding: .8rem .9rem; border: 1px solid #bddfce; border-radius: 13px; background: #eef8f3; }
.setting-explainer strong { color: #17563f; font-size: .78rem; }
.setting-explainer p { margin: .25rem 0 0; color: #45665a; font-size: .72rem; }
.setting-explainer ul { margin: .45rem 0 0; padding-left: 1.1rem; color: #45665a; font-size: .72rem; }
.whatsapp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.whatsapp-facts p { min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.whatsapp-facts span, .whatsapp-facts strong { display: block; overflow-wrap: anywhere; }
.whatsapp-facts span { color: var(--muted); font-size: .68rem; }
.whatsapp-facts strong { margin-top: .2rem; font-size: .82rem; }
.template-status-list { list-style: none; margin: 0; padding: 0; }
.template-status-list li { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .7rem; border-bottom: 1px solid var(--line-soft); }
.template-status-list strong { color: var(--muted); font-size: .7rem; text-align: right; }
.whatsapp-empty span { display: block; margin-top: .25rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .9rem; }
.account-card dl { margin: .8rem 0 0; }
.account-card dl div { min-height: 52px; display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); align-items: center; gap: .7rem; border-bottom: 1px solid var(--line-soft); }
.account-card dt { color: var(--muted); font-size: .72rem; }
.account-card dd { margin: 0; overflow-wrap: anywhere; font-weight: 800; }
.danger-zone { margin-top: .9rem; border-color: #e6c1be; }
.danger-zone p:not(.eyebrow) { max-width: 720px; color: var(--muted); }

@media (max-width: 1180px) {
  .conversation-workspace { grid-template-columns: 245px minmax(0, 1fr); }
  .conversation-detail { grid-template-columns: 230px minmax(390px, 1fr); }
  .thread-controls .agent-state { display: none; }
  .appointment { grid-template-columns: 4rem minmax(160px, 1fr) auto; }
  .appointment-actions { grid-column: 2 / -1; justify-content: flex-start; }
}

@media (max-width: 980px) {
  .conversation-workspace { grid-template-columns: 230px minmax(0, 1fr); }
  .conversation-detail { grid-template-columns: 1fr; overflow-y: auto; }
  .conversation-contact-card { min-height: auto; overflow: visible; }
  .conversation-contact-card:not([open]) { padding-bottom: .9rem; }
  .whatsapp-thread { min-height: 620px; }
  .client-workspace { grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.2fr); }
}

@media (max-width: 860px) {
  .page { padding-top: .7rem; }
  .conversation-workspace { grid-template-columns: 1fr; }
  .conversation-workspace.has-selection .conversation-inbox { display: none; }
  .conversation-inbox, .conversation-stage > .workspace-placeholder, .conversation-detail { height: auto; min-height: calc(100vh - 150px); }
  .conversation-inbox { min-height: 0; }
  .conversation-stage > .workspace-placeholder { min-height: 160px; padding-block: 32px; }
  .conversation-detail { display: grid; }
  .conversation-contact-card { order: 2; }
  .whatsapp-thread { order: 1; min-height: calc(100vh - 150px); }
  .client-workspace { grid-template-columns: 1fr; }
  .client-workspace .client-panel { position: static; max-height: none; }
}

@media (max-width: 640px) {
  .compact-head { min-height: 0; }
  .compact-head p:not(.eyebrow) { display: none; }
  .appointment { grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: .55rem; }
  .appointment .status { grid-column: 3; grid-row: 1; }
  .appointment-actions { grid-column: 2 / -1; flex-wrap: wrap; }
  .appointment-actions button { flex: 1 1 calc(50% - .35rem); }
  .agenda-surface { padding: .7rem; }
  .thread-head { align-items: flex-start; flex-direction: column; }
  .thread-controls { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .thread-controls .agent-state { display: inline-flex; }
  .thread-controls button { flex: 1 1 auto; }
  .message { max-width: 88%; }
  .conversation-compose { grid-template-columns: 1fr; }
  .conversation-compose .primary { width: 100%; }
  .section-panel > summary { align-items: flex-start; flex-direction: column; }
  .section-panel > form:not(.form-grid) { align-items: stretch; flex-direction: column; }
  .section-panel > form:not(.form-grid) label { min-width: 0; width: 100%; }
}

/* Navigation lisible : profondeur de Blastak, libellés explicites RdvPilot. */
.sidebar { color: #f3f7f4; background: var(--brand-strong); border-right: 0;
  box-shadow: 8px 0 30px rgba(23,34,31,.1); }
.sidebar-brand strong { color: #fff; }
.sidebar-brand small { color: #b9cdc6; }
.workspace-card { border-color: rgba(255,255,255,.13); color: #fff; background: rgba(255,255,255,.06); }
.workspace-card > span { color: #cadbd5; }
.workspace-card strong { color: #fff; }
.workspace-card small { color: #b9cdc6; }
.sidebar-nav a { color: #d7e3df; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar-nav a.active { color: var(--brand-ink); background: var(--paper); box-shadow: none; }
.nav-icon { color: #fff; background: rgba(255,255,255,.1); }
.sidebar-nav a.active .nav-icon { color: #fff; background: var(--brand); }
.sidebar-footer { border-top-color: rgba(255,255,255,.13); }
.sidebar-footer button { color: #f0c6bf; }
.sidebar-footer button:hover { color: #fff; background: rgba(255,255,255,.08); }
.account-button strong { color: #fff; }
.account-button small { color: #b9cdc6; }
.home-head-actions { display: flex; align-items: center; gap: .55rem; }
.page-head .action-bar { display: flex; gap: .45rem; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.page-head .action-bar button { min-height: 42px; }
.metric-ribbon a { min-height: 100px; box-shadow: 0 5px 18px rgba(22,47,56,.045); }
.home-grid { grid-template-columns: minmax(275px, .78fr) minmax(0, 1.72fr); }
.home-grid .panel { min-height: 100%; }
.work-panel { display: flex; flex-direction: column; }
.work-panel .work-list { flex: 1; }
.panel-footer-link { justify-content: start; margin-top: .55rem; padding-top: .65rem; border-top: 1px solid var(--line-soft); }
.work-list button { grid-template-columns: minmax(0, 1fr) auto; border-radius: 10px; }
.work-list button:hover { background: var(--surface-2); }

@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; }
  .work-panel { order: -1; }
}

@media (max-width: 640px) {
  .home-head-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .page-head .action-bar { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .page-head .action-bar button { width: 100%; }
}

.onboarding-panel{margin:0 0 1rem}
.onboarding-panel p{margin:.25rem 0 0;color:var(--muted);font-size:.82rem}
.onboarding-list{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}
.onboarding-list a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;
  gap:.7rem;min-height:48px;padding:.55rem .7rem;border:1px solid var(--line);border-radius:12px;
  background:var(--surface);color:inherit;text-decoration:none}
.onboarding-list a:hover{border-color:var(--brand)}
.onboarding-mark{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;
  border:1px solid var(--line);font-size:.72rem;font-weight:900}
.onboarding-list .done .onboarding-mark{border-color:var(--brand);background:var(--brand);color:#fff}
.onboarding-list .done strong{color:var(--muted)}
.onboarding-state{font-size:.72rem;font-weight:800;color:var(--muted);white-space:nowrap}
.onboarding-list .todo .onboarding-state{color:var(--brand)}

.billing{display:grid;gap:.7rem;margin:.6rem 0 1rem}
.billing-head{display:flex;align-items:baseline;gap:.5rem}
.billing-head strong{font-size:2rem;line-height:1;font-variant-numeric:tabular-nums}
.billing-head span{color:var(--muted);font-size:.85rem}
.billing-bar{height:10px;border-radius:999px;background:var(--soft);overflow:hidden}
.billing-bar span{display:block;height:100%;background:var(--brand);transition:width .2s}
.billing-bar span[data-mode='alerte']{background:#c8871a}
.billing-bar span[data-mode='continuite'],.billing-bar span[data-mode='vitrine']{background:#9b3b2e}
.billing-facts{list-style:none;margin:0;padding:0;display:grid;gap:.4rem;
  grid-template-columns:repeat(auto-fit,minmax(8rem,1fr))}
.billing-facts li{display:grid;gap:.1rem;padding:.5rem .6rem;border:1px solid var(--line);border-radius:12px}
.billing-facts span{color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.06em}
.billing-facts strong{font-variant-numeric:tabular-nums}
.billing-alert{margin:0;padding:.7rem .85rem;border-left:3px solid #c8871a;border-radius:10px;
  background:#f8efdd;font-size:.88rem}
.billing-alert[data-mode='continuite'],.billing-alert[data-mode='vitrine']{border-left-color:#9b3b2e;background:#f8e8e4}
.billing-state{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem}
.billing-state li{padding:.3rem .6rem;border-radius:999px;font-size:.74rem;font-weight:800}
.billing-state .on{background:#e2efec;color:#0f766e}
.billing-state .off{background:#f3e4e0;color:#9b3b2e;text-decoration:line-through}

.catalogue-tools{display:grid;gap:.55rem;margin:.4rem 0 .9rem}
.catalogue-tools input[type=search]{width:100%;min-height:46px;border:1px solid var(--line);
  border-radius:12px;padding:.6rem .8rem;background:#fff}
.catalogue-filters{display:flex;flex-wrap:wrap;gap:.35rem}
.catalogue-filters button{min-height:38px;padding:.35rem .8rem;border:1px solid var(--line);
  border-radius:999px;background:#fff;color:var(--ink);font-size:.76rem;font-weight:800}
.catalogue-filters button.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.catalogue-count{margin:0;color:var(--muted);font-size:.74rem;font-variant-numeric:tabular-nums}

.link-panel{margin:0 0 1rem}
.link-value{margin:.2rem 0 .7rem;padding:.6rem .75rem;border:1px dashed var(--line);border-radius:12px;
  background:var(--soft);font-family:ui-monospace,Consolas,monospace;font-size:.82rem;
  overflow-wrap:anywhere}

.segment-chip{display:inline-block;margin-right:.3rem;padding:.15rem .45rem;border-radius:999px;
  font-size:.64rem;font-weight:850;letter-spacing:.02em;background:var(--soft);color:var(--brand)}
.segment-chip[data-segment='risque_no_show']{background:#f8e8e4;color:#9b3b2e}
.segment-chip[data-segment='a_relancer']{background:#f8efdd;color:#8a5c12}

.health-panel{margin:0 0 1rem}
.health-list{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.health-list li{display:grid;gap:.3rem;padding:.85rem;border:1px solid var(--line);border-radius:14px;
  background:var(--surface)}
.health-list strong{font-size:.95rem}
.health-list p{margin:0;color:var(--muted);font-size:.85rem}
.button-link{justify-self:start;min-height:40px;display:inline-flex;align-items:center;
  padding:.45rem .8rem;border:1px solid var(--brand);border-radius:11px;color:var(--brand);
  font-size:.8rem;font-weight:800;text-decoration:none}
/* `.button-link` est declare APRES `.primary` et a la meme specificite : sans
   cette regle, il ecrase le blanc de `.primary` et le texte prend la couleur du
   fond. Tous les boutons pleins du guide de configuration etaient illisibles. */
.button-link.primary{color:#fff;background:var(--brand);border-color:var(--brand)}

.report-kpis{list-style:none;margin:.5rem 0 1rem;padding:0;display:grid;gap:.45rem;
  grid-template-columns:repeat(auto-fit,minmax(8rem,1fr))}
.report-kpis li{display:grid;gap:.15rem;padding:.6rem .7rem;border:1px solid var(--line);
  border-radius:12px;background:var(--surface)}
.report-kpis span{color:var(--muted);font-size:.68rem;text-transform:uppercase;letter-spacing:.06em}
.report-kpis strong{font-size:1.35rem;font-variant-numeric:tabular-nums}
.table-scroll{overflow-x:auto}
.report-table{width:100%;border-collapse:collapse;font-size:.84rem}
.report-table th,.report-table td{padding:.45rem .55rem;border-bottom:1px solid var(--line);
  text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap}
.report-table th{color:var(--muted);font-size:.68rem;text-transform:uppercase;letter-spacing:.06em;
  font-weight:600}

/* Lot 4 — lecture business, mois et attentions dérivées. */
.notification-root{position:relative;flex:0 0 auto}
.notification-button{position:relative;width:44px;min-width:44px;padding:.45rem;display:grid;place-items:center;
  border-radius:50%;background:#fff;font-size:1rem}
.notification-badge{position:absolute;top:-4px;right:-4px;min-width:21px;height:21px;display:grid;place-items:center;
  padding:0 .28rem;border:2px solid #fff;border-radius:999px;color:#fff;background:#a43d31;
  font-size:.66rem;font-weight:900;font-variant-numeric:tabular-nums}
.notification-panel{position:absolute;top:calc(100% + .55rem);right:0;z-index:70;width:min(360px,calc(100vw - 1.5rem));
  max-height:min(70vh,520px);overflow-y:auto;padding:.55rem;border:1px solid var(--line);border-radius:15px;
  background:#fff;box-shadow:var(--shadow-strong)}
.notification-panel>header{display:flex;align-items:baseline;justify-content:space-between;gap:.7rem;padding:.4rem .5rem .6rem}
.notification-panel>header small,.notification-empty p{color:var(--muted);font-size:.72rem}
.notification-list{list-style:none;margin:0;padding:0}
.notification-list a{min-height:58px;display:grid;gap:.16rem;padding:.6rem .65rem;border-top:1px solid var(--line-soft);
  color:inherit;text-decoration:none}
.notification-list a:hover{background:var(--surface-2)}
.notification-list small{color:var(--muted);font-size:.72rem}
.notification-empty{padding:1.2rem .7rem;text-align:center}
.notification-empty p{margin:.25rem 0 0}

.planning-advice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem .8rem;
  align-items:center;border-left:4px solid var(--brand)}
.planning-advice .section-kicker,.planning-advice p{grid-column:1}
.planning-advice strong{grid-column:1;font-size:1rem}
.planning-advice p{margin:0;color:var(--muted);font-size:.82rem}
.planning-advice .button-link{grid-column:2;grid-row:1 / span 3}
.display-switch{margin-left:auto}
.month-weekdays,.month-calendar{min-width:332px;display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:.28rem}
.month-weekdays{margin:.2rem 0 .35rem;text-align:center;color:var(--muted);font-size:.66rem;font-weight:850}
.month-calendar{align-items:stretch}
.month-day{min-width:44px;min-height:104px;display:flex;align-items:flex-start;flex-direction:column;gap:.22rem;
  padding:.5rem;border-color:var(--line);border-radius:12px;text-align:left;background:#fff}
.month-day .month-number{font-weight:900;font-variant-numeric:tabular-nums}
.month-day strong{margin-top:auto;font-size:.75rem}
.month-day small{font-size:.64rem;line-height:1.25}
.month-day[data-day-state='libre']{border-color:#83bca9;background:#f0f8f5}
.month-day[data-day-state='libre'] small{color:#176b53}
.month-day[data-day-state='pleine']{border-color:#d4aa65;background:#fff8ea}
.month-day[data-day-state='pleine'] small{color:#8a5c12}
/* 10/11/2026 (Fahd) : jour de fermeture en rouge, comme sur le mini-site. */
.month-day[data-day-state='fermee']{color:#b42318;background:#fdecea}
.month-day[data-day-state='fermee'] small{color:#b42318}
.month-day[data-day-state='passee']{opacity:.58;background:#fafafa}
.agenda-surface:has(.month-calendar){overflow-x:auto}

.activation-panel{margin-bottom:1rem}
.activation-panel .panel-head p{margin:.25rem 0 0;color:var(--muted);font-size:.8rem}
.activation-measures{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}
.activation-measures>li{min-height:96px;display:flex;align-items:flex-start;flex-direction:column;gap:.32rem;
  padding:.72rem;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.activation-measures>li>span:first-child{color:var(--muted);font-size:.69rem;font-weight:800}
.activation-measures>li>strong{font-size:1.25rem;font-variant-numeric:tabular-nums}
.activation-measures small{color:var(--muted);font-size:.72rem}
.activation-channels{display:flex;flex-wrap:wrap;gap:.3rem}
.activation-channels span{padding:.28rem .45rem;border-radius:999px;background:var(--brand-soft);font-size:.7rem}
.not-measured{font-weight:850;color:#8a5c12}
.report-actions{display:flex;justify-content:flex-end;margin:.4rem 0}

/* Lot 3 — recherche permanente, habilitations et fermetures ciblées. */
.topbar-tools{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:.8rem;flex:1}
.global-search{position:relative;width:min(520px,55vw)}
.global-search>input{width:100%;min-height:46px;padding:.65rem 4.4rem .65rem .85rem;border:1px solid var(--line);
  border-radius:13px;background:#fff;color:var(--ink)}
.global-search>kbd{position:absolute;right:.55rem;top:50%;transform:translateY(-50%);padding:.18rem .38rem;
  border:1px solid var(--line);border-bottom-width:2px;border-radius:6px;color:var(--muted);background:var(--surface-2);
  font:700 .62rem/1.2 ui-monospace,Consolas,monospace;pointer-events:none}
.global-search-panel{position:absolute;inset:calc(100% + .45rem) 0 auto;z-index:60;max-height:min(68vh,560px);
  overflow-y:auto;padding:.45rem;border:1px solid var(--line);border-radius:15px;background:#fff;
  box-shadow:var(--shadow-strong)}
.search-result-group h2{margin:.35rem .55rem;color:var(--muted);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}
.search-result-group ul{margin:0;padding:0;list-style:none}
.search-result-group li+li{border-top:1px solid var(--line-soft)}
.search-result-group button{width:100%;min-height:52px;display:grid;gap:.15rem;padding:.55rem .65rem;border:0;
  text-align:left;background:transparent}
.search-result-group button:hover,.search-result-group button.selected{background:var(--brand-soft)}
.search-result-group strong,.search-result-group small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-result-group small{color:var(--muted);font-size:.7rem}
.appointment.search-target{border-radius:12px;outline:3px solid #f0b84b;outline-offset:2px;background:#fffaf0}

.service-groups{display:grid;gap:1rem}
.service-group>h3{margin:.5rem 0 .2rem;color:var(--brand-ink);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase}
.service-group>.list>li{padding:.2rem 0;border-top:1px solid var(--line-soft)}
.service-group details>summary{min-height:52px;display:flex;align-items:center;padding:.45rem .1rem;cursor:pointer}
.service-group details>summary span,.service-group details>summary strong,.service-group details>summary small{display:block}
.service-group details>summary small{margin-top:.15rem;color:var(--muted);font-size:.72rem}
.service-group form{padding:.7rem;border:1px solid var(--line-soft);border-radius:13px;background:var(--surface-2)}
.service-group .quick{flex-wrap:wrap}
.service-group .quick button{width:auto;min-height:44px}
.warning-card{margin:.2rem 0 .7rem;padding:.7rem .8rem;border-left:4px solid #c8871a;border-radius:10px;
  color:#6d4b13;background:#fff7e5;font-size:.8rem}
.eligibility-picker{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.35rem;
  margin:.4rem 0;padding:.65rem;border:1px solid var(--line);border-radius:12px;background:#fff}
.eligibility-picker legend{padding:0 .3rem;font-size:.76rem;font-weight:850}
.eligibility-check{min-height:44px;margin:0!important;padding:.35rem .45rem;border-radius:9px;background:var(--surface-2)}
.assigned-services{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.35rem}
.assigned-services span{padding:.22rem .5rem;border-radius:999px;color:#4f3d79;background:#f0ecf8;font-size:.7rem;font-weight:780}

/* Services — catalogue et équipe dans une seule lecture. */
.services-summary{display:flex;flex-wrap:wrap;gap:.45rem;margin:-.2rem 0 1rem}
.summary-pill{min-height:40px;display:inline-flex;align-items:center;gap:.38rem;padding:.42rem .72rem;
  border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:.76rem}
button.summary-pill{cursor:pointer}
.summary-pill strong{font-size:1rem;font-variant-numeric:tabular-nums}
.summary-warning{border-color:#d8ad67;background:#fff7e5;color:#6d4b13}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:.65rem}
.section-heading h2{margin:.12rem 0 0}
.section-heading .button-link{min-height:44px;color:#fff;background:var(--brand)}
.catalogue-panel,.team-panel,.resources-panel{margin-bottom:1rem}
.service-card-list,.practitioner-card-list{display:grid;gap:.65rem}
.service-card{padding:.8rem;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 4px 14px #1b2d2610}
.service-card.is-hidden{background:var(--surface-2)}
.service-card-main{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:start;gap:.7rem}
.service-rank{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);
  border-radius:11px;background:var(--soft);color:var(--brand-ink);font-size:1rem;font-weight:900;
  font-variant-numeric:tabular-nums}
.service-card-content{min-width:0}
.service-card-title{display:flex;align-items:center;justify-content:space-between;gap:.55rem}
.service-card-title h4{min-width:0;margin:.1rem 0;font-size:1rem;overflow-wrap:anywhere}
.state-pill{display:inline-flex;align-items:center;min-height:28px;padding:.2rem .5rem;border-radius:999px;
  background:var(--soft);color:var(--brand-ink);font-size:.68rem;font-weight:850;white-space:nowrap}
.service-facts{display:flex;flex-wrap:wrap;gap:.35rem;margin:.35rem 0}
.fact-pill{display:inline-flex;align-items:center;min-height:30px;padding:.25rem .55rem;border-radius:999px;
  background:#f0ecf8;color:#4f3d79;font-size:.72rem;font-weight:800}
.service-practitioners{margin-top:.55rem}
.service-practitioners>strong,[data-practitioner-services]>strong{font-size:.72rem;color:var(--muted)}
.assignment-empty{color:var(--muted)!important;background:var(--surface-2)!important;font-weight:650!important}
.service-actions,.team-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.65rem}
.service-actions button,.team-actions button{width:auto;min-width:44px;min-height:44px}
.service-actions .danger,.team-actions .danger{color:#9b3b2e;border-color:#d9aaa2;background:#fff8f6}
.service-editor{margin-top:.65rem;padding-top:.65rem;border-top:1px solid var(--line-soft)}
.catalogue-empty{display:grid;justify-items:start;gap:.35rem;padding:1.1rem;border:2px dashed var(--line);
  border-radius:15px;background:var(--surface-2)}
.catalogue-empty p{margin:0;color:var(--muted);font-size:.82rem}
.catalogue-empty .button-link{min-height:44px;margin-top:.25rem;color:#fff;background:var(--brand)}
.add-service-panel{margin-bottom:1rem}
.add-service-panel>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:.5rem;cursor:pointer}
.add-service-panel>summary h3{margin:0}
.practitioner-card{padding:.8rem;border:1px solid var(--line);border-radius:15px;background:#fff}
.practitioner-card>header>div{display:flex;align-items:center;justify-content:space-between;gap:.55rem}
.practitioner-card h3{margin:0;font-size:1rem}
.inline-create{display:flex;align-items:end;gap:.55rem;margin-top:.8rem}
.inline-create label{flex:1;margin:0}
.inline-create button{width:auto;min-height:44px}

.block-counters{display:flex;flex-wrap:wrap;gap:.5rem;margin:.55rem 0 .9rem}
.block-counters span{min-height:44px;display:flex;align-items:center;gap:.4rem;padding:.45rem .7rem;border:1px solid var(--line);
  border-radius:12px;background:#fff;font-size:.76rem}
.block-counters strong{font-size:1.1rem;font-variant-numeric:tabular-nums}
.block-groups{display:grid;gap:.8rem;margin-bottom:1rem}
.block-groups h4{margin:.2rem 0;font-size:.78rem}
.block-groups .list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem;padding:.5rem 0}
.block-groups .list button{width:auto;min-width:44px}
.target-picker{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;
  margin:0;padding:.65rem;border:1px solid var(--line);border-radius:13px;background:#fff}
.target-picker legend{padding:0 .3rem;font-size:.78rem;font-weight:850}
.target-picker>label{min-width:0;min-height:64px!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;
  align-items:start!important;gap:.45rem!important;margin:0!important;padding:.55rem;border:1px solid var(--line-soft);
  border-radius:11px;background:var(--surface-2)}
.target-picker input[type=radio]{width:22px;min-height:22px;margin:.15rem 0 0}
.target-picker span,.target-picker strong,.target-picker small{display:block;min-width:0}
.target-picker small{margin-top:.1rem;color:var(--muted);font-size:.68rem}
.target-picker select{margin-top:.35rem}

@media(max-width:860px){
  .topbar{gap:.55rem;padding-inline:.75rem}
  .topbar-tools{gap:.4rem}
  .global-search{width:100%}
  .live-status{display:none}
  .target-picker{grid-template-columns:1fr}
  .section-heading{align-items:flex-start}
}

@media(max-width:520px){
  .service-actions{display:grid;grid-template-columns:1fr 1fr}
  .service-actions button{width:100%}
  .inline-create{align-items:stretch;flex-direction:column}
  .inline-create button{width:100%}
  .section-heading{flex-direction:column}
  .section-heading .button-link{width:100%;justify-content:center}
}

@media (max-width: 700px) {
  .profile-grid, .whatsapp-facts { grid-template-columns: 1fr; }
  .template-status-list li { align-items: flex-start; flex-direction: column; justify-content: center; padding: .55rem 0; }
  .template-status-list strong { text-align: left; }
  #install-button { max-width: 112px; padding-inline: .55rem; font-size: .7rem; }
}

@media(max-width:860px){
  .activation-measures{grid-template-columns:1fr 1fr}
  .planning-advice{grid-template-columns:1fr}
  .planning-advice .button-link{grid-column:1;grid-row:auto;width:100%;justify-content:center}
}
@media(max-width:640px){
  .topbar-title>div{display:none}
  .global-search>kbd{display:none}
  .global-search>input{padding-right:.75rem}
  .global-search-panel{position:fixed;inset:68px .5rem auto;max-height:calc(100vh - 76px)}
  .service-group form{padding:.55rem}
  .service-group .quick button{flex:1 1 calc(50% - .3rem)}
  .eligibility-picker{grid-template-columns:1fr}
  .block-groups .list li{grid-template-columns:1fr}
  .block-groups .list button{width:100%}
  .live-status{display:none}
  .notification-panel{position:fixed;top:64px;right:.75rem;left:.75rem;width:auto}
  .agenda-bar{gap:.65rem}
  .view-switch{overflow-x:auto}
  .display-switch{margin-left:0}
  .month-day{min-height:82px;padding:.38rem .3rem}
  .month-day strong{font-size:.68rem}
  .month-day small{font-size:.58rem}
  .activation-measures{grid-template-columns:1fr}
}

/* Refonte navigation, compte et timeline dérivée — 2026-08-21. */
.nav-section{display:flex;align-items:center;gap:.55rem;min-height:28px;margin:.55rem .35rem .1rem;
  color:#78919a;font-size:.6rem;font-weight:900;letter-spacing:.14em}
.nav-section::before,.nav-section::after{content:"";height:1px;flex:1;background:rgba(120,145,154,.32)}
.account-area{position:relative}
.account-button{width:100%;min-height:52px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;gap:.55rem!important;padding:.35rem!important;color:inherit!important;text-align:left}
.account-button>span:nth-child(2){min-width:0}
.account-button strong,.account-button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-button strong{color:inherit;font-size:.72rem}.account-button small{color:#b9cdc6;font-size:.6rem}
.account-avatar{width:36px;height:36px;display:grid!important;place-items:center;border-radius:50%;color:#fff;background:var(--brand);
  font-weight:900}
.account-menu{position:absolute;z-index:60;right:0;bottom:calc(100% + .5rem);width:220px;display:grid;gap:.2rem;padding:.5rem;
  border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-strong);color:var(--ink)}
.account-menu[hidden]{display:none}
.account-menu a,.account-menu button,.account-menu label{min-height:44px;display:flex;align-items:center;justify-content:space-between;
  margin:0;padding:.55rem .65rem;border-radius:9px;color:var(--ink);text-decoration:none;font-size:.78rem;font-weight:750}
.account-menu a:hover,.account-menu button:hover{background:var(--soft);color:var(--brand-ink)}
.account-menu select{min-height:36px;width:auto;padding:.25rem 1.8rem .25rem .5rem}
.day-timeline{display:grid;gap:.45rem}
.timeline-gap{min-height:64px;display:grid;grid-template-columns:3.6rem minmax(0,1fr);align-items:stretch;border:1px dashed #8caf9f;
  border-radius:13px;background:var(--paper)}
.timeline-gap time{display:grid;align-content:center;justify-items:center;border-right:1px dashed #8caf9f;font-size:.72rem;font-weight:850}
.timeline-gap time span{color:var(--muted);font-size:.62rem}.timeline-gap button{min-height:62px;display:flex;align-items:center;gap:.65rem;
  border:0;background:transparent;text-align:left}.timeline-gap button strong,.timeline-gap button small{display:block}
.timeline-gap button small{margin-top:.15rem;color:var(--muted)}.gap-shape{width:30px;height:30px;display:grid;place-items:center;
  border:2px dashed var(--brand);border-radius:9px;font-size:1rem;font-weight:900}
.home-timeline{margin-bottom:1rem}.team-section-label{margin:1.2rem 0 .3rem}

/* Agenda : le planning domine, les commandes restent à portée de main. */
.agenda-screen .agenda-heading{display:flex;flex-direction:row;align-items:center;gap:var(--space-4);margin-bottom:var(--space-4)}
.agenda-heading h1{font-size:var(--text-display)}
.agenda-primary-actions{display:flex;gap:var(--space-2);flex-shrink:0}
.agenda-primary-actions button{min-height:44px;font-weight:750}
.agenda-screen .agenda-bar{display:grid;gap:var(--space-3);padding:var(--space-3);border-radius:var(--radius);box-shadow:none}
.agenda-view-controls,.agenda-date-controls{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}
.agenda-screen .view-switch{display:flex;gap:var(--space-1);padding:var(--space-1);border-radius:var(--radius-small);background:var(--canvas)}
.agenda-screen .view-switch .chip{min-height:44px;padding:var(--space-2) var(--space-4);border:0;border-radius:var(--radius-small);background:transparent;font-size:var(--text-small);font-weight:750}
.agenda-screen .view-switch .chip.active{color:var(--brand-ink);background:var(--surface);box-shadow:0 2px 6px #17221f14}
.agenda-screen .display-switch{margin:0;background:transparent}
.agenda-screen .display-switch .chip.active{color:var(--brand-ink);background:var(--brand-soft);box-shadow:none}
.agenda-date-navigation{display:flex;gap:var(--space-1)}
.agenda-date-navigation button{min-height:44px;padding:var(--space-2) var(--space-3);font-size:var(--text-small);font-weight:700}
.agenda-date-navigation [data-agenda-date-action='aujourdhui']{background:var(--paper)}
.agenda-screen .agenda-filters{gap:var(--space-3)}
.agenda-screen .agenda-filters label{display:grid;gap:var(--space-1);width:auto;font-size:var(--text-micro);font-weight:750}
.agenda-screen .agenda-filters input,.agenda-screen .agenda-filters select{min-width:0;width:160px;min-height:44px;padding:var(--space-2);font-size:var(--text-small)}
.agenda-screen .agenda-surface{padding:var(--space-4);overflow:hidden}
.agenda-screen .agenda-surface>.panel-head{align-items:center;margin-bottom:var(--space-4);padding-bottom:var(--space-4);border-bottom:1px solid var(--line)}
.agenda-screen .agenda-surface h2{text-transform:capitalize;font-size:var(--text-title)}
.agenda-period-hint{margin:var(--space-1) 0 0;color:var(--muted);font-size:var(--text-small)}
.agenda-total{flex-shrink:0;text-align:right;font-weight:850;color:var(--brand-ink)}
.agenda-total>span{display:block;margin-top:var(--space-1);font-size:var(--text-micro);font-weight:500;color:var(--muted)}
.agenda-screen .day-timeline{gap:var(--space-2)}
.agenda-screen .appointment{padding:var(--space-3);border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:var(--radius-small);background:var(--surface)}
.agenda-screen .appointment:has(.status-demande){border-left-color:var(--accent);background:var(--paper)}
.agenda-screen .appointment time{font-size:var(--text-body)}
.agenda-screen .appointment-copy strong{white-space:normal;font-size:var(--text-body)!important;line-height:1.35}
.agenda-screen .appointment-copy small{white-space:normal;font-size:var(--text-small);line-height:1.4}
.agenda-screen .appointment-actions{gap:var(--space-1);flex-wrap:wrap}
.agenda-screen .appointment-actions button{min-height:44px;padding:var(--space-2);font-size:var(--text-small)}
.agenda-screen .timeline-gap{border-color:var(--line);background:var(--paper)}
.agenda-screen .timeline-gap time{border-color:var(--line)}
.agenda-screen .timeline-gap button{padding:var(--space-3)}
.agenda-screen .timeline-gap button small{font-size:var(--text-small)}
.agenda-screen .planning-advice{margin-top:var(--space-3);padding:var(--space-4);box-shadow:none;background:var(--paper)}
.agenda-screen .month-calendar,.agenda-screen .month-weekdays{min-width:0;gap:var(--space-1)}
.agenda-screen .month-day{min-height:112px;padding:var(--space-2);border-radius:var(--radius-small)}
.agenda-screen .month-day[aria-pressed='true']{outline:2px solid var(--brand);outline-offset:-2px}
.agenda-screen .month-number{font-size:var(--text-body)}
.agenda-screen .month-day strong{font-size:var(--text-small)}
.agenda-screen .month-day small{font-size:var(--text-micro)}
.agenda-screen .month-short{display:none}
.agenda-legend{display:flex;gap:var(--space-3);margin:0 0 var(--space-3);font-size:var(--text-micro);color:var(--muted)}
.agenda-legend span{border-left:3px solid var(--brand);padding-left:var(--space-2)}
.agenda-legend span:nth-child(2){border-color:var(--accent)}
.agenda-legend span:nth-child(3){border-color:var(--line)}
.week-board{display:grid;grid-template-columns:repeat(7,minmax(116px,1fr));gap:var(--space-2);overflow-x:auto;padding-bottom:var(--space-2);scroll-snap-type:x proximity}
.week-column{min-width:0;scroll-snap-align:start;border:1px solid var(--line);border-radius:var(--radius-small);background:var(--paper);overflow:hidden}
.week-column .agenda-day-heading{position:static;padding:0;border:0}
.week-heading{display:grid;justify-items:center;width:100%;gap:var(--space-1);padding:var(--space-3);border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--brand-ink)}
.week-heading span{text-transform:capitalize;font-size:var(--text-small)}
.week-heading strong{font-family:var(--font-display);font-size:var(--text-title);line-height:1}
.week-heading small{font-size:var(--text-micro);color:var(--muted)}
.week-events{display:grid;gap:var(--space-2);padding:var(--space-2)}
.week-empty{margin:var(--space-5) 0;color:var(--muted);text-align:center;font-size:var(--text-small)}
.week-event{display:grid;gap:var(--space-1);padding:var(--space-2);border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:var(--radius-small);background:var(--surface);overflow-wrap:anywhere}
.week-event[data-status='demande']{border-top-color:var(--accent)}
.week-event time{font-size:var(--text-micro);font-weight:750;color:var(--brand-ink)}
.week-event>strong{font-size:var(--text-small);line-height:1.3}
.week-event>small{font-size:var(--text-micro);color:var(--muted)}
.week-event .status{justify-self:start;margin-top:var(--space-1);font-size:var(--text-micro)}
.week-event-menu summary{min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:var(--radius-small);font-size:var(--text-small);font-weight:650;cursor:pointer;color:var(--brand-ink)}
.week-event-menu summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.week-event-menu[open] summary{background:var(--soft)}
.week-event-actions{display:grid;gap:var(--space-1);margin-top:var(--space-2)}
.week-event-actions button{min-height:44px;padding:var(--space-1);font-size:var(--text-micro)}
.agenda-load-error h1{font-size:var(--text-title)}
@media(max-width:1100px){
  .agenda-date-controls{align-items:stretch;flex-direction:column}
  .agenda-screen .agenda-filters{display:grid;grid-template-columns:1fr 1fr}
  .agenda-screen .agenda-filters input,.agenda-screen .agenda-filters select{width:100%}
}
@media(max-width:640px){
  .agenda-screen .agenda-heading{gap:var(--space-2);margin-bottom:var(--space-3)}
  .agenda-heading .eyebrow{display:none}
  .agenda-heading h1{margin:0;font-size:var(--text-title)}
  .agenda-primary-actions{gap:var(--space-1)}
  .agenda-primary-actions button{padding:var(--space-2);font-size:var(--text-small)}
  .agenda-screen .agenda-bar{gap:var(--space-2);padding:var(--space-2)}
  .agenda-view-controls{gap:var(--space-1)}
  .agenda-screen .view-switch{gap:0;padding:var(--space-1)}
  .agenda-screen .view-switch .chip{padding:var(--space-2);font-size:var(--text-micro)}
  .agenda-date-controls{gap:var(--space-2)}
  .agenda-date-navigation{display:grid;grid-template-columns:1fr 1.2fr 1fr}
  .agenda-screen .agenda-filters{gap:var(--space-2)}
  .agenda-screen .agenda-surface{padding:var(--space-3)}
  .agenda-screen .agenda-surface>.panel-head{gap:var(--space-2);margin-bottom:var(--space-3);padding-bottom:var(--space-3)}
  .agenda-screen .agenda-surface h2{font-size:var(--text-body)}
  .agenda-period-hint{font-size:var(--text-micro)}
  .agenda-total{font-size:var(--text-small)}
  .agenda-total>span{max-width:76px;font-size:var(--text-micro)}
  .agenda-screen .appointment{grid-template-columns:48px minmax(0,1fr);gap:var(--space-2);padding:var(--space-2)}
  .agenda-screen .appointment .status{grid-column:2;grid-row:auto;justify-self:start}
  .agenda-screen .appointment-actions{grid-column:1/-1;display:flex;padding-top:var(--space-2);border-top:1px solid var(--line-soft)}
  .agenda-screen .appointment-actions button{flex:1 1 auto;font-size:var(--text-micro)}
  .agenda-screen .month-calendar{gap:0}
  .agenda-screen .month-day{min-height:92px;padding:var(--space-1);border-radius:var(--space-1)}
  .agenda-screen .month-day .month-detail{display:none}
  .agenda-screen .month-day .month-short{display:block;font-size:var(--text-micro);white-space:nowrap}
  .agenda-screen .month-day strong{font-size:var(--text-micro)}
  .agenda-screen .month-number{font-size:var(--text-small)}
  .week-board{grid-template-columns:repeat(7,minmax(148px,1fr))}
}

@media(max-width:860px){
  .app-shell{display:block;padding-bottom:82px}
  .sidebar{position:fixed;inset:auto 0 0;z-index:50;width:100%;height:78px;display:flex;flex-direction:row;gap:.2rem;
    padding:.35rem max(.35rem,env(safe-area-inset-right)) calc(.35rem + env(safe-area-inset-bottom)) max(.35rem,env(safe-area-inset-left));
    transform:none;transition:none;border-top:1px solid var(--line);background:#fff;box-shadow:0 -8px 28px rgba(6,38,46,.12)}
  .sidebar-brand,.workspace-card{display:none}
  .sidebar-nav{min-width:0;flex:1;display:flex;gap:.18rem;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  .sidebar-nav::-webkit-scrollbar{display:none}
  .sidebar-nav a{min-width:70px;min-height:64px;display:grid;grid-template-rows:30px auto;place-items:center;gap:.1rem;padding:.2rem .35rem;
    color:#35515a;font-size:.6rem;text-align:center}
  .sidebar-nav a.active{color:var(--brand-ink);background:var(--brand-soft)}
  .nav-icon{width:28px;height:28px}.nav-section{min-width:24px;height:64px;margin:0;padding:0;font-size:0}
  .nav-section::before{display:none}.nav-section::after{width:1px;height:42px;flex:0 0 1px;background:var(--line)}
  .sidebar-footer{flex:0 0 58px;margin:0;padding:0 0 0 .2rem;border:0;border-left:1px solid var(--line)}
  .account-button{min-height:64px!important;display:grid!important;grid-template-columns:1fr!important;place-items:center!important;padding:.1rem!important}
  .account-button>span:nth-child(2),.account-button>span:last-child{display:none}.account-avatar{width:38px;height:38px}
  .account-menu{position:fixed;right:.5rem;bottom:86px;width:min(260px,calc(100vw - 1rem))}
  .mobile-menu,.sidebar-backdrop{display:none!important}.page{padding-bottom:2rem}
}
@media(max-width:640px){.timeline-gap{grid-template-columns:3rem minmax(0,1fr)}.timeline-gap button{padding:.45rem}}

/* Accueil — poste de commande quotidien, inspiré de la clarté de Blastak sans perdre la timeline RdvPilot. */
.onboarding-banner{min-height:44px;display:grid;grid-template-columns:auto auto auto minmax(0,1fr);
  align-items:center;gap:var(--space-2);margin:0 0 var(--space-3);padding:0 var(--space-3);
  border-radius:var(--radius-small);color:var(--ink);font-size:var(--text-small);box-shadow:none}
.onboarding-dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}
.onboarding-progress{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.onboarding-banner a{min-height:44px;display:flex;align-items:center;justify-content:flex-end;gap:var(--space-1);
  color:var(--brand-ink);font-weight:850;text-decoration:none}

.client-link-bar{min-height:44px;display:grid;grid-template-columns:minmax(0,1fr) repeat(3,auto);
  align-items:center;gap:var(--space-3);margin:0 0 var(--space-4);padding:var(--space-4);
  border-color:color-mix(in srgb,var(--brand) 30%,var(--line));background:var(--paper)}
.client-link-ready{grid-template-columns:minmax(0,1fr) auto}
.client-link-heading{min-width:0;display:flex;align-items:center;gap:var(--space-3)}
.client-link-heading>div{min-width:0}.client-link-heading .section-kicker{margin-bottom:var(--space-1)}
.client-link-heading strong{display:block;font-family:var(--font-display);font-size:1.15rem;line-height:1.15}
.client-link-state{display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-2);
  border-radius:var(--radius-pill);color:var(--success);background:color-mix(in srgb,var(--success) 10%,#fff);
  font-size:var(--text-micro);font-weight:900;text-transform:uppercase}
.client-link-state::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.client-link-actions{display:flex;align-items:center;gap:var(--space-2)}
.client-link-url{grid-column:1/-1;min-width:0;overflow:hidden;padding:var(--space-2) var(--space-3);
  border:1px solid var(--line);border-radius:var(--radius-small);color:var(--muted);background:#fff;
  font:700 var(--text-small)/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;
  text-overflow:ellipsis;white-space:nowrap;user-select:text}
.client-link-bar button{min-height:44px;padding:var(--space-2) var(--space-3);border-color:var(--line);
  color:var(--brand-ink);background:#fff;font-size:var(--text-small);font-weight:850;white-space:nowrap}
.client-link-bar button:hover{border-color:var(--brand);background:var(--soft)}
.client-link-bar button.primary{border-color:var(--brand);color:#fff;background:var(--brand)}
.client-link-bar button:disabled{color:var(--muted)}
.client-link-missing{grid-template-columns:minmax(0,1fr) auto;color:var(--muted);font-size:var(--text-small)}
.client-link-missing strong{display:block;margin-top:var(--space-1);color:var(--ink)}
.client-link-missing .button-link{min-height:44px;padding:var(--space-2) var(--space-3)}
.booking-qr-card{width:min(92vw,430px);align-items:center;text-align:center}
.booking-qr-card h2{margin-right:2rem}.booking-qr-card img{display:block;width:min(76vw,340px);height:auto;
  margin:var(--space-2) auto;background:#fff;image-rendering:pixelated}
.booking-qr-url{max-width:100%;margin:var(--space-2) 0;overflow-wrap:anywhere;
  font:700 var(--text-small)/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}
.booking-qr-card .button-link{min-height:48px;justify-content:center}
.booking-qr-large{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;border:0}
.booking-qr-large .booking-qr-card{width:min(96vw,800px)}
.booking-qr-large .booking-qr-card img{width:min(88vw,720px)}

.home-page-head{margin-bottom:var(--space-3)}
.home-page-head h1{font-size:clamp(2rem,4vw,2.75rem)}
.home-head-actions{display:flex;align-items:center;gap:var(--space-2)}
.date-chip{border-color:var(--line);color:var(--muted);background:var(--paper)}
.home-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--space-2);margin:0 0 var(--space-4)}
.home-stats a{position:relative;min-width:0;min-height:112px;display:flex;align-items:flex-start;justify-content:flex-end;
  flex-direction:column;gap:var(--space-1);margin:0;padding:var(--space-3);overflow:hidden;color:var(--ink);
  text-align:left;text-decoration:none;box-shadow:none;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.home-stats a::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--brand)}
.home-stats a[data-tone="attention"]::before{background:var(--accent)}
.home-stats a[data-tone="attention"]{background:var(--accent-soft)}
.home-stats a:hover{border-color:color-mix(in srgb,var(--brand) 45%,var(--line));box-shadow:var(--shadow);
  transform:translateY(-1px)}
.home-stat-value{color:var(--brand-ink);font-family:var(--font-display);font-size:2rem;font-weight:700;line-height:1;
  font-variant-numeric:tabular-nums}
.home-stat-unknown{color:var(--muted)}
.home-stats a>span{max-width:10rem;font-size:var(--text-small);font-weight:850;line-height:1.2}
.home-stats [data-metric-description]{max-width:100%;overflow:hidden;color:var(--muted);font-size:var(--text-micro);
  font-weight:600;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}

.home-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(260px,.72fr);align-items:start;gap:var(--space-3)}
.home-dashboard-grid>.panel,.home-sidebar>.panel{margin:0}
.home-sidebar{display:grid;gap:var(--space-3)}
.home-timeline{margin-bottom:1rem;padding:var(--space-5)}
.home-timeline .panel-head{padding-bottom:var(--space-3);border-bottom:1px solid var(--line-soft)}
.home-preview{padding:var(--space-4);box-shadow:none}
.home-preview .panel-head{margin-bottom:var(--space-2)}
.home-preview .panel-head h2{font-size:1.15rem}
.home-preview .work-list button{min-height:58px;padding:var(--space-2) 0}
.home-preview .panel-footer-link{width:100%;min-height:44px;justify-content:flex-start;border-top:1px solid var(--line-soft)}
.home-preview .health-list li{padding:var(--space-3);border:0;background:rgba(255,255,255,.55)}
.home-preview .health-list p{font-size:var(--text-small)}
.home-preview .button-link{min-height:44px}
.home-preview .link-value{margin:var(--space-1) 0 var(--space-2);padding:var(--space-2);font-size:var(--text-small)}
.home-preview .quick{gap:var(--space-1)}.home-preview .quick button{min-height:44px;padding:var(--space-2);font-size:var(--text-small)}
.health-dismiss{position:static;flex:0 0 44px;width:44px;height:44px;color:var(--muted);background:rgba(255,255,255,.72)}
.home-day-empty{min-height:190px;display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);
  padding:var(--space-5)}
.home-day-empty strong{font-family:var(--font-display);font-size:1.25rem}.home-day-empty p{margin:var(--space-1) 0 0;
  color:var(--muted);font-size:var(--text-small)}
.home-day-empty button,.home-day-empty .button-link{min-height:44px;flex:0 0 auto}

@media(max-width:860px){
  .home-dashboard-grid{grid-template-columns:1fr}
  .home-sidebar{grid-row:2}
}
@media(max-width:640px){
  .page{padding:var(--space-3) var(--space-3) 4.5rem}
  .topbar{min-height:58px;padding-inline:var(--space-3)}
  .topbar-title>div{display:block}.topbar-title small{display:none}.topbar-title strong{font-family:var(--font-display)}
  .topbar-tools{min-width:0;flex:1}.global-search{min-width:0;width:auto;flex:1}
  .global-search>input{min-height:42px;padding-inline:var(--space-3);font-size:var(--text-small)}
  .onboarding-banner{margin-bottom:var(--space-2);padding-left:var(--space-2);font-size:var(--text-micro)}
  .onboarding-banner strong{white-space:nowrap}.onboarding-banner a{font-size:0}.onboarding-banner a span{font-size:1.15rem}
  .client-link-bar{padding:var(--space-3);gap:var(--space-2);margin-bottom:var(--space-3)}
  .client-link-ready{grid-template-columns:1fr}.client-link-heading{justify-content:space-between}
  .client-link-heading strong{font-size:1rem}.client-link-actions{display:grid;grid-template-columns:repeat(3,1fr)}
  .client-link-bar button{width:100%;padding:var(--space-2) var(--space-1)}
  .client-link-url{grid-column:1;padding:var(--space-2);font-size:var(--text-micro)}
  .client-link-missing{grid-template-columns:1fr}.client-link-missing .button-link{width:100%;justify-content:center}
  .home-page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--space-2)}
  .home-page-head p:not(.eyebrow),.home-page-head .date-chip{display:none}
  .home-page-head .eyebrow{margin-bottom:var(--space-1);font-size:var(--text-micro)}
  .home-page-head h1{margin:0;font-size:1.75rem}
  .home-head-actions{width:auto;display:block}
  .home-page-head .action-bar{width:auto;display:flex;gap:var(--space-1)}
  .home-page-head .action-bar button{width:auto;min-height:44px;padding:var(--space-2);font-size:var(--text-micro)}
  .home-stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--space-2);margin-bottom:var(--space-3)}
  .home-stats>a{grid-column:span 2;min-height:92px;padding:var(--space-2)}
  .home-stats>a:nth-child(n+4){grid-column:span 3}
  .home-stat-value{font-size:1.5rem}
  .home-stats a>span{font-size:var(--text-micro);line-height:1.15}
  .home-stats [data-metric-description]{display:none}
  .home-timeline{padding:var(--space-3)}
  .home-timeline .panel-head{align-items:flex-start;gap:var(--space-2);margin-bottom:var(--space-2)}
  .home-timeline .panel-head h2{font-size:1.1rem}
  .home-timeline .section-kicker{margin-bottom:var(--space-1);font-size:var(--text-micro)}
  .home-timeline .text-link{min-height:44px;text-align:right}
  .home-day-empty{min-height:150px;align-items:stretch;flex-direction:column;padding:var(--space-4)}
  .home-day-empty button,.home-day-empty .button-link{width:100%;justify-content:center}
}

/* Ecran Horaires : compteurs en pastilles, conseils d'usage, cadres vides. */
.hours-summary{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 .75rem}
.hours-summary span{min-height:44px;display:flex;align-items:center;gap:.45rem;
  padding:.45rem .75rem;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
.hours-summary strong{color:var(--brand-ink);font-size:1.1rem;font-variant-numeric:tabular-nums}
.hours-summary small{color:var(--muted);font-size:.68rem;font-weight:800}
.empty-canvas{display:grid;gap:.3rem;padding:1.6rem 1rem;border:1px dashed var(--line);
  border-radius:14px;background:var(--soft);text-align:center}
.empty-canvas strong{color:var(--ink);font-size:.92rem}
.empty-canvas p{margin:0;color:var(--muted);font-size:.76rem;line-height:1.35}
.closure-kind{margin:0 0 .9rem}
.closure-kind h4{margin:0 0 .25rem;font-size:.85rem}
.closure-guidance{margin:0 0 .5rem;color:var(--muted);font-size:.72rem;line-height:1.4}
.closure-none{margin:0;color:var(--muted);font-size:.72rem;font-style:italic}
.block-groups-guidance{margin-top:1rem}
.pause-recall p{margin:0 0 .6rem;color:var(--muted);font-size:.78rem;line-height:1.4}
@media (max-width:860px){
  .hours-summary span{flex:1 1 calc(50% - .5rem);justify-content:center}
}

/* Ecran Clients : filtres comptes, badge de relation, lecture rapide. */
.client-filters{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 .75rem}
.client-filters button{min-height:44px;display:inline-flex;align-items:center;gap:.4rem;
  padding:.4rem .8rem;border:1px solid var(--line);border-radius:999px;background:var(--surface);
  color:var(--ink);font-size:.76rem;font-weight:700;cursor:pointer}
.client-filters button.active,.client-filters button[aria-pressed=true]{border-color:var(--brand-ink);
  background:var(--brand-ink);color:#fff}
.filter-count{font-variant-numeric:tabular-nums;font-size:.72rem;opacity:.75}
.client-chips{display:flex;flex-wrap:wrap;gap:.25rem;margin-top:.25rem}
.relation-chip{padding:.15rem .45rem;border-radius:999px;background:#e8f3ec;color:#1d5334;
  font-size:.63rem;font-weight:800}
.relation-chip[data-relation=a_surveiller]{background:#fdf2dd;color:#7a5312}
.relation-chip[data-relation=fragile]{background:#fbe6e4;color:#8a2f26}
.relation-unknown{background:var(--soft);color:var(--muted)}
.client-meta{display:flex;flex-direction:column;gap:.1rem;color:var(--muted);font-size:.66rem;text-align:right}
.client-whatsapp{display:inline-flex;align-items:center;min-height:44px;padding:0 .8rem;
  color:var(--brand-ink);font-size:.74rem;font-weight:800;text-decoration:none}
.client-quickread{margin-top:.75rem}
.quickread-list{display:grid;gap:.5rem;margin:0;padding:0;list-style:none}
.quickread-list li{padding:.7rem;border-radius:12px;background:var(--soft)}
.quickread-list strong{font-size:.82rem}
.quickread-list p{margin:.2rem 0 .4rem;color:var(--muted);font-size:.74rem;line-height:1.35}
.quickread-list button{min-height:44px;border:0;background:none;color:var(--brand-ink);
  font-size:.74rem;font-weight:800;cursor:pointer;padding:0}

/* Insights et Rapports : la phrase sous le chiffre, le denominateur, la sante. */
.insight-kpis li{display:flex;flex-direction:column;gap:.15rem}
.report-kpis small{color:var(--muted);font-size:.66rem;line-height:1.3;font-weight:600}
.insight-unmeasurable{color:var(--muted);font-size:.95rem}
.messaging-health{margin:.9rem 0}
.report-table time{white-space:nowrap}

/* Conversations : motifs comptes, attente lisible, garde de fraicheur. */
.inbox-switch{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.5rem}
.inbox-switch button{min-height:44px;padding:.35rem .65rem;border:1px solid var(--line);
  border-radius:999px;background:var(--surface);color:var(--ink);font-size:.72rem;
  font-weight:700;cursor:pointer}
.inbox-switch button[aria-selected=true],.inbox-switch button.active{border-color:var(--brand-ink);
  background:var(--brand-ink);color:#fff}
.inbox-switch button span{font-variant-numeric:tabular-nums;opacity:.75}
[data-conversation-waiting]{color:var(--muted);font-size:.63rem;font-variant-numeric:tabular-nums}
.stale-banner{display:grid;gap:.35rem;margin:0 0 .75rem;padding:.75rem;
  border:1px solid #e6c98a;border-radius:12px;background:#fdf6e6}
.stale-banner p{margin:0;color:#6b5220;font-size:.74rem;line-height:1.4}
.stale-banner button{min-height:44px;justify-self:start;padding:0 .9rem;border:1px solid #c9a75a;
  border-radius:999px;background:#fff;font-size:.74rem;font-weight:800;cursor:pointer}

/* Services, Horaires, Clients : le même atelier de travail, sans nouvelle palette. */
.workspace-screen{width:100%;max-width:none;margin:0 auto}
.workspace-screen .page-head{margin-bottom:var(--space-5);gap:var(--space-4);align-items:center}
.workspace-screen .page-head h1{font-size:var(--text-display)}
.workspace-screen .page-head p:not(.eyebrow){margin:0;color:var(--muted);font-size:var(--text-small)}
.workspace-heading-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);justify-content:flex-end}
.workspace-heading-actions button{font-size:var(--text-small);min-height:44px}
.workspace-screen .panel{padding:var(--space-4);border-radius:var(--radius)}
.workspace-screen .section-heading,.workspace-screen .panel-head{gap:var(--space-3);margin-bottom:var(--space-4)}
.workspace-screen .section-heading h2,.workspace-screen .panel-head h2{font-size:var(--text-title)}
.workspace-screen .panel-head>small{font-size:var(--text-micro);color:var(--muted)}
.workspace-screen details>summary{min-height:44px;cursor:pointer;font-size:var(--text-small);font-weight:700;align-content:center}
.workspace-screen details>summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.workspace-screen .form-grid{gap:var(--space-3);padding-top:var(--space-3)}
.workspace-screen label{font-size:var(--text-small)}
.workspace-screen .quick{gap:var(--space-2);flex-wrap:wrap}
.workspace-screen .quick a{font-size:var(--text-small);min-height:44px}
.workspace-add{margin-top:var(--space-4);padding:var(--space-2) var(--space-3);border:1px dashed var(--line);border-radius:var(--radius-small);background:var(--paper);scroll-margin-top:80px}
.workspace-add>summary{color:var(--brand-ink)}
.workspace-screen [aria-busy=true]{cursor:progress}
.services-workbench{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4);align-items:start}
.services-workbench>*,.services-team-column{min-width:0}
.services-screen .services-summary{gap:var(--space-2);margin:0 0 var(--space-4)}
.services-screen .summary-pill{padding:var(--space-2) var(--space-3);font-size:var(--text-small);min-height:44px}
.services-screen .summary-pill strong{font-family:var(--font-display);font-size:var(--text-title)}
.services-screen .catalogue-panel,.services-screen .team-panel,.services-screen .resources-panel{margin:0 0 var(--space-4)}
.services-screen .catalogue-tools{padding:0 0 var(--space-3);border-bottom:1px solid var(--line-soft)}
.services-screen .catalogue-filters{gap:var(--space-1);flex-wrap:wrap}
.services-screen .catalogue-filters button{font-size:var(--text-micro);padding:var(--space-2);min-height:44px}
.services-screen .catalogue-count{margin:var(--space-2) 0 0;font-size:var(--text-micro)}
.services-screen .service-group>h3{font-family:var(--font-ui);font-size:var(--text-small);color:var(--muted);margin:var(--space-4) 0 var(--space-2)}
.services-screen .service-card-list{gap:var(--space-3)}
.services-screen .service-card{padding:var(--space-3);border-radius:var(--radius-small);box-shadow:none;background:var(--paper)}
.services-screen .service-card.is-hidden{background:var(--soft)}
.services-screen .service-card-main{gap:var(--space-3)}
.services-screen .service-card-title{align-items:start;gap:var(--space-2)}
.services-screen .service-card-title h4{font-size:var(--text-body);margin:0}
.services-screen .service-rank{font-family:var(--font-display);background:var(--surface);font-size:var(--text-title);border-radius:var(--radius-small)}
.services-screen .service-facts{margin:var(--space-2) 0;gap:var(--space-1)}
.services-screen .fact-pill{font-size:var(--text-small);padding:var(--space-1) var(--space-2);background:var(--brand-soft);color:var(--brand-ink)}
.services-screen .assigned-services{gap:var(--space-1);margin-top:var(--space-1)}
.services-screen .assigned-services span{font-size:var(--text-micro);padding:var(--space-1) var(--space-2);background:var(--surface);color:var(--brand-ink);border:1px solid var(--line)}
.services-screen .service-practitioners{margin-top:var(--space-2)}
.services-screen .service-actions{gap:var(--space-1);margin-top:var(--space-3)}
.services-screen .service-actions button{flex:1;padding:var(--space-2);font-size:var(--text-micro)}
.services-screen .service-actions [data-edit-service]{border-color:var(--brand);color:var(--brand-ink);background:var(--brand-soft);font-weight:750}
.services-screen .warning-card{margin:var(--space-2) 0;padding:var(--space-2);font-size:var(--text-small);border-radius:var(--radius-small);border-left:3px solid var(--accent);background:var(--accent-soft)}
.assignment-editor{margin-top:var(--space-2);border-top:1px solid var(--line)}
.assignment-editor>summary{color:var(--brand-ink)}
.assignment-editor .eligibility-picker{margin:var(--space-2) 0}
.services-screen .practitioner-card-list{gap:var(--space-3)}
.services-screen .practitioner-card{padding:var(--space-3);border-radius:var(--radius-small);background:var(--paper);border-top:3px solid var(--brand)}
.services-screen .practitioner-card h3{font-size:var(--text-body)}
.services-screen .team-panel>p{color:var(--muted);font-size:var(--text-small);margin-bottom:var(--space-3)}
.services-screen .team-actions{gap:var(--space-1);margin-top:var(--space-2)}
.services-screen .team-actions button{font-size:var(--text-micro);flex:1;padding:var(--space-2)}
.services-screen .resources-panel .list li{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.services-screen .resources-panel .list li>div{flex:1 1 100%}
.services-screen .resources-panel .list button{font-size:var(--text-micro);min-height:44px}
.services-screen .inline-create{gap:var(--space-2);flex-wrap:wrap}
.services-screen .inline-create button{font-size:var(--text-small)}
.services-screen #services-team,.services-screen #service-create-panel{scroll-margin-top:80px}
.hours-screen .hours-summary{gap:var(--space-2);margin-bottom:var(--space-4)}
.hours-screen .hours-summary span{gap:var(--space-2);padding:var(--space-2) var(--space-3)}
.hours-screen .hours-summary strong{font-family:var(--font-display);font-size:var(--text-title)}
.hours-screen .hours-summary small{font-size:var(--text-small)}
.hours-workbench{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4);align-items:start}
.hours-workbench>.panel{margin:0 0 var(--space-4);min-width:0}
.weekly-hours{display:grid;gap:0;border-top:1px solid var(--line)}
.schedule-day{display:grid;grid-template-columns:100px minmax(0,1fr);gap:var(--space-3);padding:var(--space-3) 0;border-bottom:1px solid var(--line-soft);align-items:center}
.schedule-day h3{margin:0;font-size:var(--text-small)}
.schedule-slots{display:grid;gap:var(--space-2);min-width:0}
.schedule-slot{display:flex;gap:var(--space-2);align-items:center;justify-content:space-between}
.schedule-slot>div{display:grid;gap:var(--space-1);min-width:0}
.schedule-slot strong{font-size:var(--text-small);font-variant-numeric:tabular-nums;color:var(--brand-ink)}
.schedule-slot small{font-size:var(--text-micro);color:var(--muted)}
.schedule-slot button.danger.subtle{font-size:var(--text-micro);min-height:44px;padding:var(--space-2);color:var(--muted);background:var(--surface)}
.schedule-undefined{margin:0;color:var(--muted);font-size:var(--text-small)}
.hours-screen .closure-kind{padding:var(--space-3);margin:0;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:var(--radius-small);background:var(--paper)}
.hours-screen .closure-kind h4{font-size:var(--text-small);margin:0 0 var(--space-2)}
.hours-screen .block-groups{gap:var(--space-3);margin:0}
.hours-screen .closure-kind .list{margin:0}
.hours-screen .closure-kind .list li{gap:var(--space-2);grid-template-columns:minmax(0,1fr) auto;align-items:start}
.hours-screen .closure-kind .list strong{font-size:var(--text-small)}
.hours-screen .closure-kind .list small{font-size:var(--text-micro);line-height:1.6}
.hours-screen .closure-kind .list button{min-height:44px;font-size:var(--text-micro);padding:var(--space-2)}
.hours-screen .closure-reason{font-weight:700;color:var(--ink);margin:var(--space-1) 0}
.hours-screen .closure-help summary{font-size:var(--text-micro);color:var(--muted)}
.hours-screen .closure-guidance{font-size:var(--text-small)}
.hours-screen .target-picker{grid-template-columns:1fr;padding:var(--space-2);gap:var(--space-2)}
.hours-screen .target-picker>label{min-height:44px!important}
.hours-screen .target-picker small{font-size:var(--text-micro)}
.hours-screen .pause-recall{border-left:3px solid var(--brand);background:var(--paper);margin:0}
.hours-screen .pause-recall h2{font-size:var(--text-body);font-family:var(--font-ui)}
.hours-screen .pause-recall p{font-size:var(--text-small)}
.clients-screen #client-search{margin:0 0 var(--space-3)}
.clients-screen #client-search input{background:var(--surface)}
.clients-screen .client-filters{gap:var(--space-2);margin-bottom:var(--space-4)}
.clients-screen .client-filters button{font-size:var(--text-small);padding:var(--space-2) var(--space-3)}
.clients-screen .client-workspace{grid-template-columns:minmax(290px,.85fr) minmax(0,1.5fr);gap:var(--space-4)}
.clients-screen .client-panel{padding:var(--space-2);max-height:calc(100vh - 100px);top:80px}
.client-directory-heading{display:flex;justify-content:space-between;gap:var(--space-2);padding:var(--space-3);font-size:var(--text-micro);color:var(--muted)}
.clients-screen .client-row{padding:var(--space-2);margin:0 0 var(--space-2);border:1px solid var(--line);border-radius:var(--radius-small);background:var(--paper)}
.clients-screen .client-row>button{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:var(--space-2);padding:var(--space-2);width:100%;text-align:left}
.clients-screen .client-row>button.selected{background:var(--brand-soft);outline:1px solid var(--brand)}
.clients-screen .client-copy strong{font-size:var(--text-body);white-space:normal;overflow-wrap:anywhere}
.clients-screen .client-copy small{font-size:var(--text-small)}
.clients-screen .client-meta{grid-column:2;grid-row:2;text-align:left;display:flex;flex-wrap:wrap;gap:var(--space-1);font-size:var(--text-micro)}
.clients-screen .client-chips{gap:var(--space-1);margin-top:var(--space-2)}
.clients-screen .client-avatar{background:var(--brand-soft);color:var(--brand-ink);border-radius:var(--radius-small)}
.clients-screen .client-whatsapp{font-size:var(--text-small);padding:var(--space-2);margin-left:calc(44px + var(--space-2))}
.side-list{margin:0;padding:0;list-style:none}
.side-list li{padding:var(--space-2) 0;border-top:1px solid var(--line-soft)}
.side-list li:first-child{border-top:0}
.side-list li>button[data-client]{display:block;width:100%;min-height:auto;background:none;border:0;padding:0;text-align:left;color:inherit;cursor:pointer}
.side-list li>button[data-client] strong{display:block;font-size:var(--text-body)}
.side-list li>button[data-client] small{display:block;color:var(--muted);font-size:var(--text-small);white-space:normal;overflow-wrap:anywhere}
.side-list li>button.text-link{margin-top:var(--space-1)}
.clients-screen .client-detail{padding:var(--space-4)}
.clients-screen .detail-head h2{font-size:var(--text-title);margin:0 0 var(--space-2)}
.clients-screen .detail-head p{font-size:var(--text-small);line-height:1.5}
.client-detail-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4)}
.client-history{padding:var(--space-3);border-radius:var(--radius-small);background:var(--paper);border:1px solid var(--line)}
.client-history h3{font-size:var(--text-body)}
.client-history .appointment{grid-template-columns:50px minmax(0,1fr);gap:var(--space-2);padding:var(--space-2)}
.client-history .appointment-copy{grid-column:2;grid-row:1;min-width:0}
.client-history .appointment-copy strong{white-space:normal;font-size:var(--text-small)!important;line-height:1.4;overflow-wrap:anywhere}
.client-history .appointment-copy small{white-space:normal;font-size:var(--text-micro);line-height:1.5;overflow-wrap:anywhere}
.client-history .appointment .status{grid-column:2;grid-row:2;justify-self:start}
.client-history .agenda-day-heading{position:static;padding:var(--space-2) 0;font-size:var(--text-micro);background:transparent;color:var(--brand-ink)}
.clients-screen .privacy-zone{margin-top:var(--space-3);padding:var(--space-2) var(--space-3);background:var(--paper)}
.clients-screen .privacy-zone summary{color:var(--danger)}
.client-back{display:none}
.clients-screen .client-quickread{margin-top:var(--space-4);background:var(--paper)}
.clients-screen .quickread-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-3);margin-top:var(--space-3)}
@media(min-width:1250px){.client-detail-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:1000px){
  .services-workbench,.hours-workbench{grid-template-columns:1fr}
  .services-team-column{display:grid;grid-template-columns:1.4fr 1fr;gap:var(--space-4)}
  .clients-screen .client-workspace{grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr)}
}
@media(max-width:860px){
  .clients-screen .client-workspace{grid-template-columns:1fr}
  .clients-screen .client-panel{max-height:none;position:static}
  .clients-screen:not(.has-selection) .client-stage{display:none}
  .clients-screen.has-selection .client-panel,.clients-screen.has-selection #client-search,.clients-screen.has-selection .client-filters,.clients-screen.has-selection .client-quickread{display:none}
  .client-back{display:inline-flex;margin-bottom:var(--space-3);min-height:44px;font-size:var(--text-small)}
}
@media(max-width:640px){
  .workspace-screen .page-head{align-items:start;gap:var(--space-3);margin-bottom:var(--space-3)}
  .workspace-screen .page-head h1{font-size:var(--text-title);margin:0}
  .workspace-screen .page-head .eyebrow{display:none}
  .workspace-heading-actions{gap:var(--space-1);justify-content:start}
  .workspace-heading-actions button{font-size:var(--text-micro);padding:var(--space-2)}
  .workspace-screen .panel{padding:var(--space-3)}
  .workspace-screen .section-heading h2,.workspace-screen .panel-head h2{font-size:var(--text-body)}
  .services-screen .services-summary{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-1);margin-bottom:var(--space-3)}
  .services-screen .summary-pill{font-size:var(--text-micro);padding:var(--space-1) var(--space-2)}
  .services-screen .summary-pill strong{font-size:var(--text-body)}
  .services-screen .summary-warning{grid-column:1/-1;justify-content:center}
  .services-screen .service-card-main{grid-template-columns:32px minmax(0,1fr);gap:var(--space-2)}
  .services-screen .service-rank{width:32px;height:32px;font-size:var(--text-body)}
  .services-screen .service-card-title h4{font-size:var(--text-small)}
  .services-team-column{display:block}
  .services-screen .service-actions{display:grid;grid-template-columns:1fr 1fr}
  .services-screen .service-actions button{width:100%}
  .services-screen .service-practitioners>strong{font-size:var(--text-micro)}
  .hours-screen .hours-summary span{padding:var(--space-1) var(--space-2);flex:1}
  .hours-screen .hours-summary small{font-size:var(--text-micro)}
  .schedule-day{grid-template-columns:70px minmax(0,1fr);gap:var(--space-2);padding:var(--space-2) 0}
  .schedule-slot button.danger.subtle{font-size:var(--text-micro);padding:var(--space-1)}
  .schedule-slot strong{font-size:var(--text-small)}
  .clients-screen .client-filters{gap:var(--space-1)}
  .clients-screen .client-filters button{font-size:var(--text-micro);padding:var(--space-2)}
  .clients-screen .quickread-list{grid-template-columns:1fr}
  .clients-screen .client-row{padding:var(--space-1)}
  .clients-screen #client-search button{font-size:var(--text-small);padding:var(--space-2)}
}
:root { --media-line: #d9e5de; }
.account-editor { margin-block: 1rem 1.4rem; display: grid; gap: 1.25rem; }
.account-commerce { margin: 1.25rem 0 2rem; }
.account-commerce h2 { font-size: clamp(1.5rem,2.3vw,2.15rem); }
.commerce-notice { border: 1px solid #dbcfa3; background: #fff9e7; padding: 1rem 1.2rem; border-radius: 14px; color: #614e21; line-height: 1.55; }
.commerce-notice strong { display: block; }
.commercial-plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.4rem 0; }
.commercial-plan { display: flex; flex-direction: column; background: #fff; border: 1px solid #d5e1d9; border-radius: 22px; padding: clamp(1.2rem,2vw,1.8rem); min-width: 0; }
.commercial-plan.is-current { border: 2px solid #245b4b; background: #f0f7f2; }
.commercial-plan h3 { font: 700 1.6rem/1.2 Georgia,serif; margin: .8rem 0; }
.commercial-plan .plan-amount { font-size: 2.35rem; font-weight: 800; letter-spacing: -.04em; margin: .5rem 0; }
.plan-amount small { font-size: .9rem; font-weight: 500; letter-spacing: 0; }
.commercial-plan ul { margin: 1.2rem 0; padding-left: 1.2rem; line-height: 1.85; color: #52695b; font-size: .9rem; }
.commercial-plan form { margin-top: auto; }.commercial-plan button { width: 100%; min-height: 48px; }
.commercial-recharge,.launch-entry { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; background: #e9f2ec; border: 1px solid #cadbd0; padding: 1.4rem; border-radius: 18px; margin-block: 1.2rem; }
.commercial-recharge h3 { font-size: 1.5rem; margin: .4rem 0; }.commercial-recharge p,.launch-entry p { margin: .5rem 0; }
.commercial-history { padding: 1.3rem; border: 1px solid #d5e1d9; border-radius: 18px; background: #fff; }
.commercial-history>p { font-size: .9rem; color: #506358; }.commercial-history ul { list-style: none; padding: 0; }
.commercial-history li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid #e0e8e2; }
.commercial-history strong,.commercial-history span,.commercial-history small { display: block; }.commercial-history span,.commercial-history small { font-size: .875rem; color: #53685b; }
.account-commerce [data-account-status]:empty { display: none; }.account-commerce [data-account-status] { color: #873c29; font-size: .875rem; }
@media(max-width:900px) { .commercial-plans { grid-template-columns: 1fr; }.commercial-recharge,.launch-entry,.commercial-history li { align-items: stretch; flex-direction: column; }.commercial-recharge button { width: 100%; } }
.account-editor .media-tile { grid-template-columns: 100px minmax(0,1fr); align-items: center; }
.account-editor .media-preview { grid-row: span 3; aspect-ratio: 1; border-radius: 22px; }
.account-editor .media-tile button { justify-self: start; }
.account-editor label,.media-tile label { min-width: 0; font-weight: 650; font-size: .9rem; }
.account-editor input:not([type=file]):not([type=hidden]) { display: block; width: 100%; min-height: 48px; margin-top: .45rem; padding: .75rem .9rem; border: 1px solid #ccd9d1; border-radius: 12px; color: #183c2f; background: #fff; font: inherit; }
.account-editor input:focus-visible,.media-tile input:focus-visible { outline: 3px solid #a4cdb6; outline-offset: 2px; }
.account-editor .form-grid { grid-template-columns: minmax(0,1fr); }
.account-editor .form-grid small { color: #52665c; line-height: 1.5; }
.media-tile { display: grid; gap: .65rem; min-width: 0; margin: 0; border: 1px solid var(--media-line); padding: 1rem; border-radius: 18px; background: #fff; }
.media-preview { background: #f0f5f2; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-empty { color: #526e61; text-align: center; padding: 1rem; font-size: .875rem; }
.media-tile input[type=file] { display: block; max-width: 100%; width: 100%; margin-top: .5rem; padding: .4rem 0; font-size: .8rem; border: 0; }
.media-tile input::file-selector-button { background: #edf4ef; border: 1px solid #cbdccf; border-radius: 8px; color: #234d3b; padding: .65rem .7rem; cursor: pointer; }
.media-tile [role=status]:empty { display: none; }
.media-tile [role=status] { font-size: .85rem; margin: 0; color: #873c29; }
.brand-studio { background: #f4f8f5; border: 1px solid var(--media-line); border-radius: 22px; padding: clamp(1rem,2vw,1.6rem); margin-block: 1rem 1.6rem; }
.brand-studio h3 { font-size: 1.15rem; margin: .4rem 0; }
.brand-studio p { color: #4d6659; font-size: .9rem; }
.brand-studio .section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.brand-studio-layout { display: grid; grid-template-columns: minmax(150px,.65fr) minmax(0,2fr); gap: 1rem; }
.media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.service-media-editor { border-top: 1px solid var(--media-line); padding-top: 1rem; margin-top: 1.2rem; }
.service-media-editor summary { cursor: pointer; min-height: 44px; font-weight: 750; }
.service-media-editor summary span { font-weight: 450; margin-inline-start: .5rem; }
@media (max-width: 850px) { .brand-studio-layout { grid-template-columns: 1fr; } .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 540px) { .media-grid { grid-template-columns: 1fr; } .brand-studio .section-head { flex-direction: column; } .media-tile .media-preview { max-height: 180px; } }

/* Diffusion : QR lisible, actions au même endroit et aucune carte vide décorative. */
.distribution-grid { display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px;align-items:start;padding-top:20px; }
.distribution-qr { display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px;background:#edf4ee;border:1px solid #d2e0d6;border-radius:20px;text-align:center; }
.distribution-qr img { display:block;width:240px;max-width:100%;height:auto;background:white;border-radius:8px; }
.distribution-qr p { margin:0;color:#496354; }
.distribution-qr a { width:100%;justify-content:center;min-height:44px; }
.distribution-link h3 { font-size:1.2rem;margin:8px 0 12px; }
.distribution-link>code { display:block;overflow-wrap:anywhere;white-space:normal;padding:16px;background:#f1f4f1;border:1px solid #d6e0d9;border-radius:12px;font-size:14px; }
.distribution-actions { display:flex;flex-wrap:wrap;gap:10px;margin:16px 0; }
.distribution-channels { list-style:none;margin:16px 0;padding:0; }
.distribution-channels li { display:flex;align-items:center;gap:16px;padding:16px 0;border-top:1px solid #dce4dd; }
.distribution-channels li>div { flex:1;min-width:0;overflow-wrap:anywhere; }
.distribution-channels small { display:block;color:#566b5d; }
.distribution-channels a { min-height:44px;display:inline-flex;align-items:center; }
.distribution-empty { padding:24px;background:#f3f6f1;border-radius:16px;margin-top:16px; }
.setup-guide { padding:24px;margin:24px 0;border:1px solid #c9dbcf;border-radius:18px;background:#f0f6ee; }
.setup-guide header { display:flex;justify-content:space-between;align-items:center;gap:16px; }
.setup-guide h3,.setup-guide .eyebrow { margin:0; }
.setup-guide header>strong { background:#fff;padding:6px 12px;border-radius:30px;font-size:14px; }
.setup-guide summary { cursor:pointer;min-height:44px;font-weight:750; }
.setup-guide ol { list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.setup-guide li { display:flex;gap:12px;align-items:center;padding:12px;background:white;border-radius:10px; }
.setup-guide li>span { color:#245b4b;font-weight:700;font-size:14px; }
.setup-guide li>a { flex:1;min-height:44px;display:flex;align-items:center; }
.setup-guide form { margin-top:20px; }
.preview-note { margin:12px 24px 0;padding:12px 16px;border:1px solid #e3d7a7;background:#fff9df;border-radius:12px;font-size:14px; }
@media(max-width:850px) { .distribution-grid { grid-template-columns:1fr; }.distribution-qr { max-width:100%; }.setup-guide ol { grid-template-columns:1fr; }.setup-guide { padding:16px; }.setup-guide header { align-items:flex-start; }.distribution-channels li { flex-wrap:wrap; } }
/* Aide et raccourcis : réutilisation de la recherche, sans nouvelle fenêtre métier. */
.help-center{position:relative;flex-shrink:0}.help-center>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px 14px;border:1px solid var(--line,#d7e0d9);border-radius:12px;background:white;font-size:13px;font-weight:700}.help-center>div{position:absolute;z-index:80;inset-inline-end:0;top:52px;width:min(340px,calc(100vw - 32px));padding:20px;background:white;border:1px solid #d7e0d9;border-radius:16px;box-shadow:0 16px 42px #183b3026;font-size:14px}.help-center a{display:block;padding:12px 0;color:inherit;text-decoration:none}.help-center p{font-size:13px;color:#5c6e64;line-height:1.6}.help-center details>summary{cursor:pointer;min-height:44px;padding-block:10px}.search-group-title{font-size:11px;letter-spacing:.1em;font-weight:800;color:#65786a;padding:14px 16px 6px}.global-search-panel [data-global-route]{display:block;width:100%;text-align:start;padding:12px 16px;border:0;border-radius:10px;background:transparent;cursor:pointer;min-height:52px}.global-search-panel [data-global-route] strong,.global-search-panel [data-global-route] small{display:block}.global-search-panel [data-global-route] small{font-size:12px;color:#6b7d71;margin-top:4px}.global-search-panel [data-global-route]:hover,.global-search-panel [data-global-route].selected{background:#eaf0e3}
/* Parcours initial : mêmes formulaires et mêmes gardes, chrome de travail réduit. */
.guided-setup #application{max-width:1180px;margin:auto;display:block;background:#f5f7f3}.guided-setup #application[hidden]{display:none}.guided-setup .sidebar,.guided-setup .topbar,.guided-setup .sidebar-backdrop{display:none!important}.guided-setup .main-area{margin:0;width:100%}.setup-journey-bar{padding:28px 30px 0}.setup-journey-bar>header{display:flex;justify-content:space-between;align-items:center;gap:24px}.setup-journey-bar h1{font:36px/1.1 Georgia,serif;margin:8px 0}.setup-journey-bar header p{color:#5d7167;font-size:14px}.setup-journey-bar header>a{font-size:13px;color:#294e3e;white-space:nowrap}.setup-journey-bar nav{display:flex;gap:8px;overflow-x:auto;margin-top:25px;padding-bottom:12px}.setup-journey-bar nav a{display:flex;align-items:center;gap:8px;text-decoration:none;white-space:nowrap;color:#4d6558;min-height:48px;padding:8px 12px;border:1px solid #d8e2d7;border-radius:12px;font-size:13px;background:white}.setup-journey-bar nav a[aria-current=step]{background:#1f5140;color:white;border-color:#1f5140}.setup-journey-bar nav span{font-size:11px}.setup-save-note{font-size:12px;color:#61766a}.setup-journey-footer{padding:24px 30px;display:flex;gap:18px;justify-content:space-between;align-items:center;border-top:1px solid #d7e2d8;background:#f5f7f3}.setup-journey-footer a{font-size:14px;min-height:44px;display:flex;align-items:center}.guided-setup .settings-screen>.page-head,.guided-setup .settings-context,.guided-setup .section-nav,.guided-setup .settings-screen>.section-panel{display:none}.guided-setup.phase-identite #settings-organization,.guided-setup.phase-assistant #settings-assistant{display:block}.guided-setup:not(.phase-publication) .setup-guide,.guided-setup.phase-identite .brand-studio,.guided-setup.phase-assistant .brand-studio,.guided-setup.phase-publication .brand-studio{display:none}.guided-setup .page{padding-top:14px}.guided-setup .preview-note{margin:10px 30px}@media(max-width:700px){.setup-journey-bar{padding:22px 16px 0}.setup-journey-bar>header{display:block}.setup-journey-footer{padding:20px 16px;align-items:stretch;flex-wrap:wrap}.setup-journey-bar h1{font-size:31px}}
/* Configuration : hiérarchie courte, fichiers locaux et commandes toujours accessibles. */
.guided-setup{background:#edf3ee}.guided-setup #application{min-height:100vh;background:#f7f9f6}
.guided-setup .media-advanced{display:none}.guided-setup .setup-journey-bar{background:linear-gradient(120deg,#edf5ec,#f8faf6);border-bottom:1px solid #dce6da;padding:24px 30px 12px}
.setup-journey-bar h1{font-family:inherit;font-weight:750;letter-spacing:-.04em;font-size:34px}
.setup-journey-bar .eyebrow{font-size:10px;letter-spacing:.08em;color:#365e49}
.setup-journey-bar nav{margin-top:18px;gap:7px}.setup-journey-bar nav a{border-radius:10px;min-height:44px}
.setup-journey-bar nav span{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#edf3ec;color:#31533e;font-weight:700}
.setup-journey-bar nav a[aria-current=step] span{background:#ffffff24;color:white}
.setup-save-note{margin:4px 0;font-size:13px;line-height:1.6}.setup-journey-footer{position:sticky;bottom:0;z-index:20;padding:16px 30px;background:#f7f9f6f5;box-shadow:0 -8px 30px #244d3810}
.guided-setup .form-grid fieldset{border:1px solid #dce5dc;border-radius:16px;padding:20px;background:#fff;margin:0 0 16px}
.guided-setup legend{padding:0 8px;color:#234c39;font-size:14px;font-weight:750}
.guided-setup .form-grid input,.guided-setup .form-grid textarea,.guided-setup .form-grid select{font-size:15px;min-height:44px}
.guided-setup .form-grid input[type=color]{width:90px;padding:5px;cursor:pointer}
.guided-setup .brand-studio{background:transparent;padding:0;border:0}.guided-setup .media-tile{border-radius:16px;box-shadow:0 5px 18px #14352206}
.guided-setup .media-preview{background:linear-gradient(145deg,#edf4ee,#f8faf5);border:1px dashed #bdd0c0}
.guided-setup .media-tile:focus-within{outline:2px solid #51865d;outline-offset:3px}
.manual-slots [data-manual-slots]{display:flex;flex-wrap:wrap;gap:8px;max-height:220px;overflow:auto}
.manual-slots button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text)}
.manual-slots button[aria-pressed=true]{background:var(--brand);color:white;border-color:var(--brand)}
/* Campagne du 20/10/2026 : le serveur rend des boutons radio ; pastilles cliquables au lieu des ronds bruts. */
.manual-slots [data-manual-slots],.manual-slots[data-report-slots]{display:flex;flex-wrap:wrap;gap:8px}
.manual-slot{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line);
  border-radius:12px;background:var(--surface);color:var(--text);font-size:.82rem;font-weight:600;cursor:pointer;white-space:nowrap}
.manual-slot input[type=radio]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.manual-slot:hover{border-color:var(--brand)}
.manual-slot:has(input:checked){background:var(--brand);color:#fff;border-color:var(--brand)}
.manual-slot:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
/* Nouveau rendez-vous, plusieurs prestations (20/10/2026) : cases à cocher en pastilles, puis « avec qui » par prestation. */
.service-checks{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 6px}
.service-check{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 12px;border:1px solid var(--line);
  border-radius:999px;background:var(--surface);color:var(--text);font-size:.82rem;font-weight:600;cursor:pointer}
.service-check input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.service-check:has(input:checked){background:var(--brand);color:#fff;border-color:var(--brand)}
.service-check:has(input:checked)::before{content:'✓'}
.service-check:has(input:disabled){opacity:.45;cursor:not-allowed}
.service-check:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
.service-choices{display:grid;gap:8px;margin-bottom:6px}
.service-choice{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:10px}
.service-choice span{font-weight:600;font-size:.85rem}
@media (max-width:480px){.service-choice{grid-template-columns:1fr}}
/* Le style général des champs de la fenêtre (label en grille, marges) ne s'applique pas aux pastilles et lignes ci-dessus. */
.dialog-card .service-checks .service-check{display:inline-flex;grid-template-columns:none;gap:6px;margin:0}
.dialog-card .service-choices .service-choice{margin:0;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:10px}
.dialog-card .service-choices .service-choice span{font-weight:600}
@media (max-width:480px){.dialog-card .service-choices .service-choice{grid-template-columns:1fr;gap:4px}}
.dialog-card .manual-slots .manual-slot{display:inline-flex;margin:0}
#booking-qr-dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:auto}
#booking-qr-dialog .booking-qr-card{width:100%;padding:24px;box-sizing:border-box;display:grid;gap:16px}
#booking-qr-dialog .qr-close{position:static;justify-self:end;width:auto;height:auto;min-height:44px;padding:8px 16px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit}
#booking-qr-dialog img{width:min(100%,280px);height:auto;aspect-ratio:1;object-fit:contain;justify-self:center}
#booking-qr-dialog .booking-qr-url{overflow-wrap:anywhere;font-size:13px;margin:0}
#booking-qr-dialog.is-large{width:min(700px,calc(100vw - 24px))}
.media-tile:has([value=logo]) .media-preview img{object-fit:contain;padding:12px;background:white}
.guided-setup .media-tile input::file-selector-button{font-weight:650;background:#e5f0e5;min-height:44px}
.guided-setup #organization-edit .setup-advanced{font-size:13px;color:#55715d}.guided-setup #organization-edit .setup-advanced summary{cursor:pointer;padding:10px 0}
@media(max-width:700px){.guided-setup .setup-journey-bar{padding:20px 16px 10px}.setup-journey-bar h1{font-size:28px}.setup-journey-bar nav{scroll-snap-type:x proximity}.setup-journey-bar nav a{scroll-snap-align:start}.setup-journey-footer{padding:12px 16px}.setup-journey-footer .primary{flex:1;justify-content:center}.guided-setup .form-grid fieldset{padding:16px}.guided-setup .form-grid input,.guided-setup .form-grid textarea{font-size:16px}}
.public-enrichment{margin:1.2rem 0 0;padding:clamp(1rem,2vw,1.5rem);border:1px solid #d8e5db;border-radius:22px;background:linear-gradient(135deg,#f5faf5 0%,#fff 64%);box-shadow:0 14px 34px #183b3010;overflow:hidden;position:relative}
.public-enrichment::after{content:'';position:absolute;width:220px;height:220px;border-radius:50%;right:-110px;top:-120px;background:#d8eee047;pointer-events:none}
.public-enrichment-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1.1rem;position:relative;z-index:1}
.public-enrichment-head h2{margin:.25rem 0 .35rem;font-size:clamp(1.3rem,2.3vw,1.8rem);letter-spacing:-.025em}
.public-enrichment-head>div>p:last-child{max-width:620px;margin:0;color:#5a7063;line-height:1.55;font-size:.9rem}
.enrichment-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;color:#fff;background:linear-gradient(145deg,#2a7257,#174d3a);box-shadow:0 8px 18px #245b4b25;font-size:1.3rem;flex:none}
.enrichment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;position:relative;z-index:1;align-items:start}
.enrichment-card{display:flex;flex-direction:column;gap:.8rem;min-width:0;padding:1.1rem;border:1px solid #dce7df;border-radius:17px;background:#fff;box-shadow:0 5px 16px #183b300a}
.enrichment-card p{margin:0;color:#5c7064;line-height:1.5;font-size:.82rem}.enrichment-card h3{margin:.2rem 0 0;font-size:1rem;letter-spacing:-.01em}.enrichment-card strong{color:#203e31}
.enrichment-card-head{display:flex;align-items:flex-start;gap:.65rem;min-width:0}.enrichment-card-head>div{min-width:0;flex:1}.enrichment-card-head .eyebrow{margin:0;color:#6d8175;font-size:.65rem;letter-spacing:.12em;font-weight:850}.enrichment-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;color:#fff;background:#2d7056;font-weight:850;flex:none}.google-icon{background:#f0b45a;color:#fff;font-family:Arial,sans-serif}.enrichment-state{padding:.3rem .55rem;border-radius:999px;background:#edf5ef;color:#2f684f;font-size:.68rem;font-weight:750;white-space:nowrap}
.enrichment-field{display:grid;gap:.35rem;font-size:.76rem;font-weight:750;color:#294e3e}.enrichment-field input{width:100%;box-sizing:border-box;min-height:42px;padding:.65rem .75rem;border:1px solid #ceddd2;border-radius:10px;background:#fbfdfb;color:#21382d;font:inherit;font-weight:500}.enrichment-help{color:#2c6850;font-size:.75rem;text-decoration:none}.enrichment-help:hover{text-decoration:underline}
.enrichment-toggle{display:flex;align-items:center;gap:.65rem;min-height:44px;padding:.7rem .75rem;border:1px solid #dbe7de;border-radius:12px;background:#f8fbf8;cursor:pointer}.enrichment-toggle>span:last-child{display:grid;gap:.15rem;min-width:0}.enrichment-toggle strong{font-size:.78rem}.enrichment-toggle small{color:#6a7d71;font-size:.7rem;line-height:1.35}.toggle-input{position:absolute;opacity:0;width:1px!important;height:1px!important;pointer-events:none}.toggle-track{width:37px;height:22px;border-radius:999px;background:#cad8cf;padding:2px;box-sizing:border-box;flex:none;transition:background .16s}.toggle-track span{display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #17382a3d;transition:transform .16s}.toggle-input:checked+.toggle-track{background:#2b7055}.toggle-input:checked+.toggle-track span{transform:translateX(15px)}.toggle-input:disabled+.toggle-track{opacity:.45}.toggle-input:focus-visible+.toggle-track{outline:2px solid #8cbda1;outline-offset:3px}
.enrichment-actions{display:flex;align-items:center;gap:.65rem;margin-top:auto;padding-top:.1rem}.enrichment-actions .button{min-height:44px;padding:.55rem .9rem}.enrichment-status{font-size:.8rem;color:#49685a}.enrichment-status:empty{display:none}
.enrichment-toggle .toggle-input{min-height:1px!important;margin:0}.assistant-channel-control{margin-bottom:24px}.section-panel>.assistant-channel-control{display:flex;align-items:stretch;flex-direction:column}.assistant-channel-control .enrichment-toggle{min-width:0}.enrichment-toggle:has(input:disabled){cursor:not-allowed}.location-field small{max-width:68ch}.thread-controls{flex-wrap:wrap}
.enrichment-card-head{flex-wrap:wrap}.enrichment-card-head .enrichment-state{margin-inline-start:auto}.enrichment-card p{font-size:.9rem}.enrichment-card h3{font-size:1.05rem}.enrichment-field{font-size:.875rem}.enrichment-toggle strong{font-size:.875rem}.enrichment-toggle small,.enrichment-help{font-size:.8rem}
[dir=rtl] .toggle-input:checked+.toggle-track span{transform:translateX(-15px)}
@media(max-width:760px){.enrichment-grid{grid-template-columns:1fr}.public-enrichment-head{gap:.75rem}.enrichment-mark{width:36px;height:36px}}
.practitioner-public-editor{margin-top:.75rem;border-top:1px solid var(--line);padding-top:.65rem}.practitioner-public-editor>summary{font-weight:800;cursor:pointer}.practitioner-profile-grid{display:grid;grid-template-columns:minmax(170px,.55fr) minmax(0,1.45fr);gap:1rem;margin-top:.8rem}.practitioner-photo-form .media-preview{aspect-ratio:1;max-width:180px}.practitioner-photo-form .media-preview img{width:100%;height:100%;object-fit:cover;border-radius:18px}.practitioner-copy-form textarea{resize:vertical;min-height:110px}@media(max-width:720px){.practitioner-profile-grid{grid-template-columns:1fr}.practitioner-photo-form .media-preview{max-width:150px}}
/* SUBLIME RITUEL V1 — couche sensorielle, 100% présentation, aucun métier touché. */
:root{--cuivre:#c8871a;--vapeur:rgba(255,253,248,.7);--encre-profonde:#0e2a24}
.brand-mark{background:linear-gradient(145deg,var(--brand-strong),var(--encre-profonde));box-shadow:0 10px 24px rgba(14,42,36,.25)}
.sidebar{background:linear-gradient(180deg,var(--brand-strong) 0%,var(--encre-profonde) 100%)}
.sidebar-nav a{border-radius:14px}
.sidebar-nav a.active{background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.now-line{display:flex;align-items:center;gap:.6rem;margin:.4rem 0;color:var(--cuivre);font-size:.7rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.now-line::before,.now-line::after{content:'';height:2px;flex:1;border-radius:2px;background:linear-gradient(90deg,transparent,var(--cuivre),transparent)}
.timeline-gap{border-style:dashed}
.sticky-booking-cta{position:fixed;z-index:60;left:50%;transform:translateX(-50%);bottom:calc(86px + env(safe-area-inset-bottom));display:none}
@media(max-width:760px){.sticky-booking-cta{display:inline-flex;min-height:52px;padding:.8rem 1.4rem;border-radius:999px}}
@media(prefers-reduced-motion:reduce){.sticky-booking-cta{transform:translateX(-50%)!important}}

/* Shared establishment workspace: editorial headings, compact forms, predictable steps. */
.settings-screen{max-width:1320px;margin:auto}.settings-screen .page-head h1,.brand-studio h3,.gallery-manager h3{font-family:Georgia,serif;letter-spacing:-.025em}.settings-screen .settings-context{background:#faf8f4;border:1px solid #e6e2db;border-radius:12px}.settings-screen .section-nav{gap:6px;padding:8px;background:#f7f5f1;border-radius:12px}.settings-screen .section-nav button{border-radius:8px;min-height:44px}.settings-screen .panel{box-shadow:none;border:1px solid #e5e1d9;border-radius:14px}.establishment-form fieldset{margin:0;padding:24px;border:1px solid #e6e2db;border-radius:12px;background:#fff}.establishment-form legend{font-size:17px;font-weight:700;padding:0 8px;color:var(--brand)}.establishment-form .form-intro{font-size:13px;line-height:1.6;color:#69736e;margin:0}.establishment-form label{font-size:13px;gap:7px}.establishment-form input,.establishment-form textarea{border-radius:7px;background:#fff;min-height:44px}.establishment-form label small{font-size:12px;line-height:1.5;font-weight:400}.establishment-form input[type=color]{width:100%;max-width:160px;height:46px;padding:5px}.establishment-form .form-action{justify-self:start}.activity-picker{padding:24px;margin-bottom:24px;border:1px solid #e6e2db;border-radius:12px;background:#faf8f4}.activity-picker h3{font:26px/1.2 Georgia,serif;margin:8px 0 12px}.activity-picker>p{font-size:13px;color:#626c66}.activity-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.activity-option{display:grid;grid-template-columns:20px 1fr;gap:8px;padding:18px;border:1px solid #e1dfd7;border-radius:10px;background:white;cursor:pointer;align-content:start}.activity-option input{width:18px;height:18px;margin:0;accent-color:var(--brand)}.activity-option strong{font-size:14px}.activity-option small{grid-column:2;font-size:12px;line-height:1.5;color:#72776f}.activity-option:has(:checked){border-color:var(--brand);box-shadow:0 0 0 1px var(--brand);background:color-mix(in srgb,var(--brand) 5%,white)}.activity-option:focus-within{outline:2px solid var(--brand);outline-offset:3px}.brand-studio{border:0!important;padding:24px 0!important;box-shadow:none!important;background:none!important}.brand-studio-layout{align-items:start}.gallery-intro{padding:24px;border:1px solid #e6e2db;border-radius:12px;background:#faf8f4}.gallery-intro p{font-size:14px;line-height:1.7}.gallery-manager{padding:24px;border:1px solid #e6e2db;border-radius:12px;background:#fbfaf7;margin-top:20px;scroll-margin-top:30px}.gallery-manager[hidden]{display:none}.gallery-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gallery-order{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px;background:#fff}.gallery-order strong{font-size:12px;flex:1}.gallery-order button{padding:7px;min-height:36px;font-size:12px}.gallery-editor-grid .media-tile{margin:0;border-radius:0 0 10px 10px;padding:12px}.gallery-editor-grid .media-preview{height:auto;aspect-ratio:4/3}.media-preview img{width:100%;height:100%;object-fit:cover}.media-crop{font-size:12px;margin:8px 0}.media-crop label{display:block;margin:8px 0}.media-crop input[type=range]{width:100%;min-height:28px}.gallery-drop{padding:28px;border:1px dashed #a8b8ac;background:#fff;border-radius:12px;margin-top:20px}.gallery-drop input{display:block;margin:12px 0;max-width:100%}.gallery-drop p{font-size:13px;color:#657166}.settings-screen .public-enrichment{background:#faf8f4;border:1px solid #e6e2db;border-radius:12px;box-shadow:none}.settings-screen .public-enrichment:after{display:none}.settings-screen .setup-guide{background:#f7f7f1;border:1px solid #dedfd3;padding:24px;border-radius:12px}.settings-screen .setup-guide h3{font:26px Georgia,serif}.setup-guide li{display:flex;gap:14px;padding:10px 0;border-bottom:1px solid #e4e5dc}.setup-guide li>span{font-size:12px;min-width:65px}.settings-screen .section-panel>summary small{font-size:12px}.guided-setup{background:#f6f3ee!important}.guided-setup #application{background:#f6f3ee!important}.guided-setup .setup-journey-bar{background:#f6f3ee;border:0;max-width:1280px;margin:auto}.setup-journey-bar h1{font:36px/1.2 Georgia,serif!important}.guided-setup .setup-journey-bar nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.guided-setup .setup-journey-bar nav a{display:flex;flex-direction:column;white-space:normal;text-align:center;font-size:12px;line-height:1.4;padding:10px 5px;border-radius:9px}.guided-setup .setup-journey-bar nav a[aria-current=step]{background:var(--brand);border-color:var(--brand)}.guided-setup .setup-journey-footer{background:#faf8f4;border-color:#e3ded6}.guided-setup .settings-screen>#settings-organization{display:block!important}.guided-setup #settings-organization>summary{display:none}.guided-setup .activity-picker,.guided-setup .brand-studio,.guided-setup .public-enrichment,.guided-setup .setup-guide,.guided-setup #organization-edit{display:none!important}.guided-setup.phase-metier .activity-picker{display:block!important}.guided-setup.phase-identite #organization-edit,.guided-setup.phase-images #organization-edit{display:grid!important}.guided-setup.phase-identite #organization-edit>[data-establishment-block]:not([data-establishment-block=identity]){display:none}.guided-setup.phase-images #organization-edit>[data-establishment-block=identity]{display:none}.guided-setup.phase-images .brand-studio{display:block!important}.guided-setup.phase-assistant .public-enrichment{display:block!important}.guided-setup.phase-assistant #settings-assistant{display:none!important}.guided-setup.phase-publication .setup-guide{display:block!important}.guided-setup.phase-publication .setup-guide>header h3{font-size:30px}.guided-setup .brand-studio>header{display:none}.guided-setup .activity-options{grid-template-columns:repeat(3,minmax(0,1fr))}.guided-setup #settings-organization{padding:20px}.service-editor textarea{min-height:75px}.services-screen .service-card{border-radius:12px}.service-media-editor a{font-weight:700}.services-screen .page-head h1{font-family:Georgia,serif}
@media(min-width:1100px){.settings-screen>.section-nav{position:sticky;top:10px;z-index:5;box-shadow:0 5px 18px #1b292908}.settings-screen #settings-organization{padding:28px}.establishment-form{gap:20px}}
@media(max-width:760px){.activity-options,.guided-setup .activity-options{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-manager,.activity-picker,.establishment-form fieldset{padding:16px}.guided-setup .setup-journey-bar nav{display:flex}.guided-setup .setup-journey-bar nav a{flex:0 0 108px}.guided-setup #settings-organization{padding:14px}.settings-screen input,.settings-screen textarea,.settings-screen select{font-size:16px}.gallery-order{flex-wrap:wrap}.gallery-order strong{flex-basis:100%}}
@media(max-width:440px){.activity-options,.guided-setup .activity-options,.gallery-editor-grid{grid-template-columns:1fr}.activity-option small{max-width:290px}.activity-picker h3{font-size:24px}}
/* Confiance is a real guided step: keep the panel and its open contents visible. */
.guided-setup.phase-assistant #settings-assistant{display:block!important;grid-column:1/-1;width:100%;max-width:none}
.guided-setup.phase-assistant #settings-assistant:not([open])>summary~*{display:block!important}

/* Corrections partagées : toute la largeur utile, cartes stables et états lisibles. */
#screen:has(>.workspace-screen),#screen:has(>.settings-screen){max-width:none}
.settings-screen #organization-edit,.settings-screen .section-panel>form.activity-picker{width:100%;max-width:none!important}
.settings-screen .section-panel>form.activity-picker{display:block;align-items:initial}
.settings-screen #settings-assistant{grid-column:2;width:100%;max-width:none}.settings-screen #settings-assistant .assistant-channel-control,.settings-screen #settings-assistant .public-enrichment,.settings-screen #settings-assistant .trust-status{width:100%;max-width:none}
@media(max-width:850px){.settings-screen #settings-assistant{grid-column:1}}

/* Chaque étape guidée occupe la largeur utile de la fenêtre. Les panneaux
   internes gardent leur rythme propre sans rétrécir l’expérience sur desktop. */
.guided-setup #application,.guided-setup #screen,.guided-setup .settings-screen,
.guided-setup .setup-journey-bar,.guided-setup .setup-journey-footer{width:100%;max-width:none;margin-left:0;margin-right:0}
.guided-setup .settings-screen{grid-template-columns:minmax(190px,210px) minmax(0,1fr)}
.guided-setup .settings-screen>.section-panel{width:100%;max-width:none}
.guided-setup .setup-journey-bar,.guided-setup .setup-journey-footer{box-sizing:border-box}
@media(max-width:850px){.guided-setup .settings-screen{grid-template-columns:1fr}}

.schedule-edit{grid-column:1/-1;width:100%;margin-top:var(--space-2)}
.schedule-slot{flex-wrap:wrap}
.schedule-edit{flex:1 0 100%}
.schedule-edit summary{cursor:pointer;color:var(--brand);font-size:var(--text-micro);font-weight:700}
.schedule-edit form{margin-top:var(--space-2);padding:var(--space-3);border:1px solid var(--line-soft);border-radius:12px;background:var(--surface-subtle)}
.activity-options{align-items:stretch}
.activity-option{grid-template-columns:42px minmax(0,1fr) 20px;grid-template-areas:'icon copy radio';align-items:start;align-content:start;min-width:0;min-height:148px;overflow:hidden}
.activity-option>.activity-icon{grid-area:icon;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--brand-soft);color:var(--brand-ink);font-size:1.2rem;line-height:1}
.activity-option>.activity-copy{grid-area:copy;display:grid;gap:5px;min-width:0}
.activity-option>.activity-copy strong,.activity-option>.activity-copy small{display:block;min-width:0;overflow-wrap:anywhere}
.activity-option>.activity-copy small{grid-column:auto}
.activity-option>input{grid-area:radio;justify-self:end}
.services-screen .service-editor .form-grid{max-width:none!important}
.services-screen .service-editor .form-grid>label:not(.check){display:grid;gap:.42rem;color:#42545d;font-weight:750}
.services-screen .service-editor input,.services-screen .service-editor select,.services-screen .service-editor textarea{width:100%;padding:.72rem .78rem;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--surface);font:inherit}
.services-screen .service-editor textarea{resize:vertical}
.setup-guide .setup-guide-step{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:stretch;padding:8px;border:1px solid var(--line-soft);border-radius:10px;background:#fff}
.setup-guide .setup-guide-state{display:flex;align-items:center;gap:7px;min-width:0;padding:6px 8px;border-radius:8px;color:var(--muted);font-size:12px;font-weight:750}
.setup-guide .setup-guide-mark{display:grid;place-items:center;width:22px;height:22px;flex:none;border-radius:50%;background:var(--surface-2);font-weight:900}
.setup-guide .setup-guide-step>a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:4px 8px;text-decoration:none;font-weight:700}
.setup-guide .setup-guide-step.is-done .setup-guide-state{color:#245b4b;background:#edf6ef}
.setup-guide .setup-guide-step.is-done .setup-guide-mark{color:#fff;background:#245b4b}
.setup-guide .setup-guide-step.is-required .setup-guide-state{color:#765013;background:#fff5dc}
.setup-guide .setup-guide-step.is-required .setup-guide-mark{background:#f4d995}
.setup-guide .setup-guide-step.is-optional .setup-guide-state{color:#68716b;background:#f2f3ef}

/* Contrôles Horaires et Confiance : mêmes repères que les ateliers adjacents. */
.time-select-field{display:grid;gap:.35rem;min-width:0}
.time-select-field input{width:100%;min-height:48px;padding:.7rem .75rem;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--surface);font:inherit;font-size:16px;font-variant-numeric:tabular-nums;text-align:center}
.time-format-note{margin:0;color:var(--muted);font-size:var(--text-micro);line-height:1.5}
.closure-create-card{margin-top:var(--space-4);padding:var(--space-3);border:1px dashed var(--line);border-radius:var(--radius-small);background:var(--paper);scroll-margin-top:80px}
.closure-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3);max-width:none!important}
.closure-create-grid>.form-wide,.closure-create-grid>.target-picker{grid-column:1/-1}
.trust-status{display:grid;gap:var(--space-3);margin:0 0 var(--space-4);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-small);background:var(--paper)}
.trust-status-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);margin:0;padding:0;list-style:none}
.trust-status-item{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);min-width:0;padding:var(--space-2) var(--space-3);border:1px solid var(--line-soft);border-radius:10px;background:var(--surface)}
.trust-status-item strong,.trust-status-item small{display:block;min-width:0;overflow-wrap:anywhere}
.trust-state{display:inline-flex;align-items:center;flex:none;min-height:28px;padding:.25rem .55rem;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:var(--text-micro);font-weight:850;white-space:nowrap}
@media(max-width:640px){.activity-option{min-height:0}.setup-guide .setup-guide-step,.closure-create-grid,.trust-status-list{grid-template-columns:1fr}.setup-guide .setup-guide-step>a{min-height:44px}}

/* Guide : une seule colonne pleine largeur. La navigation latérale y est
   masquée, mais sa colonne de 210 px restait réservée et repoussait chaque
   étape vers la droite ; la largeur de page bornait les autres écrans. */
.guided-setup .settings-screen{grid-template-columns:minmax(0,1fr)}
.guided-setup .settings-screen>*{grid-column:1/-1}
.guided-setup .page{max-width:none;padding-inline:clamp(16px,3vw,48px)}
.setup-journey-footer{flex-wrap:wrap}
.setup-footer-alert{flex:1 0 100%;margin:0;padding:12px 14px;border:1px solid #e8b4ae;border-left:4px solid #b3261e;border-radius:10px;background:#fdecea;color:#7a1c14;font-size:15px;font-weight:650;line-height:1.5}
.setup-footer-alert:empty{display:none}
.service-photo-editor{margin-top:var(--space-2);border-top:1px solid var(--line)}
.service-photo-editor>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--brand-ink);font-weight:700}
.service-photo-editor .media-tile{max-width:420px}
.setup-guide .art-direction-control{margin:18px 0 4px;background:#fff}
.setup-guide .art-direction-control h3{font-size:18px}

/* Menu : une seule teinte, celle de l'établissement. Le dégradé vers une encre
   fixe et le voile translucide de l'élément actif mélangeaient deux couleurs. */
.sidebar{background:var(--brand-strong)}
.sidebar .brand-mark{background:rgba(255,255,255,.16);box-shadow:none}
.sidebar-brand strong{font-size:.86rem}
.sidebar-brand small{font-size:.55rem;letter-spacing:.06em;text-transform:uppercase}
.sidebar-nav a{font-size:.9rem;font-weight:650}
.sidebar-nav a.active{color:var(--brand-ink);background:#fff;box-shadow:none}
.sidebar-nav a.active .nav-icon{color:#fff;background:var(--brand)}
.workspace-card{grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:.7rem}
.workspace-card>:not(.workspace-logo){grid-column:2;min-width:0;overflow-wrap:anywhere}
.workspace-logo{grid-row:1/span 3;width:44px;height:44px;border-radius:10px;object-fit:contain;background:#fff;padding:3px}
.workspace-card strong{font-size:1rem}

/* Guide : le bouton du bas enregistre l'établissement et passe à l'étape
   suivante. Le second « Enregistrer le profil » faisait la même écriture. */
.guided-setup #organization-edit>.form-action{display:none}
.setup-guide .setup-guide-steps{margin:18px 0}
.setup-guide-publish{margin-top:20px;padding:18px;border:1px solid var(--line-soft);border-radius:12px;background:#fff}
.setup-guide-publish h4{margin:0 0 6px;font-size:16px}
.setup-guide-publish form{margin-top:12px}

/* Paramètres : parcours numéroté identique au guide, un seul enregistrement final. */
.config-steps{display:grid;gap:18px}
.config-steps>#organization-edit{display:contents}
.config-step{min-width:0;padding:22px 24px;border:1px solid #e6e2db;border-radius:14px;background:#fff}
.config-step-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}
.config-step-number{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--brand);color:#fff;font-weight:700}
.config-step-head h3{margin:0;font:600 1.25rem/1.25 Georgia,serif;color:var(--ink)}
.config-step-head p{margin:4px 0 0;color:#69736e;font-size:13px;line-height:1.5}
.config-step-continued{margin-top:-18px;border-top:0;border-radius:0 0 14px 14px;padding-top:0}
.config-step:has(+.config-step-continued){border-bottom-left-radius:0;border-bottom-right-radius:0}
.config-step .activity-picker,.config-step .brand-studio,.config-step .public-enrichment{margin:0;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
.config-step .activity-picker>.eyebrow,.config-step .activity-picker>h3,.config-step .brand-studio>header{display:none}
.config-step fieldset{margin:0 0 14px}
.config-step .enrichment-actions button,.config-step .assistant-channel-control .enrichment-actions button{display:none}
.config-save{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:18px;padding:16px;border-radius:12px;background:#f7f5f1}
.config-save-status{margin:0;font-size:14px}
.config-save-status.is-error{color:#7a1c14;font-weight:650}
.config-step .setup-guide{margin:0}
@media(max-width:700px){.config-step{padding:16px}.config-step-continued{padding-top:0}}

/* Guide : une étape à la fois, dans le même panneau que Paramètres. */
.guided-setup [data-config-step]{display:none!important}
.guided-setup.phase-metier [data-config-step=metier],.guided-setup.phase-identite [data-config-step=identite],
.guided-setup.phase-images [data-config-step=images],.guided-setup.phase-notifications [data-config-step=notifications],
.guided-setup.phase-visibilite [data-config-step=visibilite],.guided-setup.phase-assistant [data-config-step=assistant],
.guided-setup.phase-publication [data-config-step=publication]{display:block!important}
.guided-setup #settings-organization{display:block!important;padding:0;border:0;background:none;box-shadow:none}
.guided-setup #settings-organization>summary,.guided-setup .config-step-head{display:none!important}
.guided-setup .config-steps .activity-picker,.guided-setup .config-steps .brand-studio,.guided-setup .config-steps .public-enrichment,.guided-setup .config-steps .setup-guide{display:block!important}
.guided-setup .config-step-continued{margin-top:-18px}

/* Menu à l'image de l'établissement : logo, nom, pictogrammes et flèches. */
@media(min-width:861px){
.sidebar{width:272px;gap:16px;padding:22px 14px;background:linear-gradient(180deg,var(--brand-strong) 0%,color-mix(in srgb,var(--brand) 58%,#000) 100%)}
.sidebar-brand{gap:12px;padding:2px 6px}
.sidebar .brand-mark{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);box-shadow:none;color:#fff;font:700 1.35rem/1 Georgia,serif}
.sidebar-brand strong{font-size:1.2rem;font-weight:700;letter-spacing:-.01em}
.sidebar-brand small{margin-top:3px;font-size:.56rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.workspace-card{display:block;padding:14px;border-radius:16px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12)}
.workspace-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.workspace-head>span{font-size:.56rem;font-weight:700;letter-spacing:.18em;color:rgba(255,255,255,.7)}
.workspace-link{padding:0 6px;border-radius:8px;color:#fff;font-size:1.2rem;line-height:1.2;text-decoration:none}
.workspace-link:hover{background:rgba(255,255,255,.1)}
.workspace-body{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:12px}
.workspace-logo-frame{position:relative;display:grid;place-items:center;width:56px;height:56px;overflow:hidden;border-radius:12px;background:#fbf8f3;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.workspace-card .workspace-logo{grid-row:auto;width:100%;height:100%;padding:4px;border-radius:0;background:none;object-fit:contain}
.workspace-logo:not([hidden])+.workspace-initial{display:none}
.workspace-initial{font:700 1.4rem/1 Georgia,serif;color:var(--brand)}
.workspace-text{display:grid;gap:3px;min-width:0}
.workspace-card .workspace-text strong{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#fff;font-size:.86rem;font-weight:700;line-height:1.25;letter-spacing:.02em;text-transform:uppercase}
.workspace-card .workspace-text small{font-size:.66rem;color:rgba(255,255,255,.72)}
.workspace-chip{justify-self:start;margin-top:4px;padding:3px 9px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font-size:.62rem}
.sidebar-nav{gap:4px}
.sidebar-nav a{position:relative;min-height:50px;gap:12px;padding:6px 10px 6px 8px;border-radius:14px;color:rgba(255,255,255,.92);background:transparent;box-shadow:none;font-size:.93rem;font-weight:600}
.sidebar-nav .nav-icon{flex:none;display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);color:#fff}
.nav-label{flex:1;min-width:0}
.nav-chevron{font-size:1.15rem;opacity:.55}
.sidebar-nav a:hover{background:rgba(255,255,255,.06)}
.sidebar-nav a.active{color:#fff;background:rgba(255,255,255,.14);box-shadow:inset 3px 0 0 rgba(255,255,255,.9)}
.sidebar-nav a.active .nav-icon{color:#fff;background:rgba(255,255,255,.18)}
.sidebar .nav-section{margin:10px 6px 4px;color:rgba(255,255,255,.62);font-size:.56rem;letter-spacing:.2em}
.sidebar .nav-section::before,.sidebar .nav-section::after{background:rgba(255,255,255,.18)}
}
@media(max-width:860px){.nav-chevron{display:none}.nav-icon svg{width:22px;height:22px}}
/* Une étape par ligne, sur toute la largeur ; les grilles de formulaire ne s'appliquent qu'à l'intérieur. */
.settings-screen .config-steps{grid-template-columns:minmax(0,1fr)!important}
.settings-screen .config-steps>.config-step{grid-column:1/-1;width:100%;max-width:none}
body.guided-setup #settings-organization #organization-edit{display:contents!important}
.guided-setup .setup-journey-bar nav{grid-template-columns:repeat(9,minmax(0,1fr))!important}
@media(max-width:760px){.guided-setup .setup-journey-bar nav{display:flex!important}}
/* Une ancienne règle plaçait #settings-assistant en colonne 2 : elle créait une colonne
   implicite et écrasait toutes les étapes à 50 px. Chaque étape occupe toute la ligne. */
.settings-screen .config-steps>*,.settings-screen .config-steps>#organization-edit>*,.settings-screen .config-steps #settings-assistant{grid-column:1/-1!important}
.config-step fieldset,.config-step .form-grid{max-width:none}
.config-step .form-grid,.config-step fieldset.form-grid{max-width:none!important}
.config-step #assistant-info-create>label:has(textarea){grid-column:1/-1}
.config-step #assistant-info-create>button{justify-self:start;align-self:end;min-height:44px}
.guided-setup .setup-guide>.button-link{display:none}

/* Menu compact : tout le menu tient sur un écran d'ordinateur portable, sans défiler. */
@media(min-width:861px){
.sidebar{width:248px;gap:10px;padding:14px 10px}
.sidebar-brand{min-height:0;gap:9px;padding:0 6px}
.sidebar .brand-mark{width:32px;height:32px;border-radius:9px;font:700 .95rem/1 var(--font-ui);letter-spacing:0}
.sidebar-brand strong{font:700 1rem/1.15 var(--font-ui);letter-spacing:-.01em}
.sidebar-brand small{margin-top:1px;font:500 .62rem/1.3 var(--font-ui);letter-spacing:.01em;text-transform:none;color:rgba(255,255,255,.66)}
.workspace-card{padding:9px 10px;border-radius:12px}
.workspace-head{margin-bottom:6px}
.workspace-head>span{font:600 .68rem/1 var(--font-ui);letter-spacing:.01em;text-transform:none;color:rgba(255,255,255,.7)}
.workspace-link{display:grid;place-items:center;width:22px;height:22px;padding:0;border-radius:6px;line-height:0}
.workspace-body{grid-template-columns:40px minmax(0,1fr);gap:9px}
.workspace-logo-frame{width:40px;height:40px;border-radius:9px;box-shadow:none}
.workspace-initial{font:700 1rem/1 var(--font-ui)}
.workspace-card .workspace-text strong{font-size:.78rem;letter-spacing:.01em}
.workspace-card .workspace-text small{font-size:.6rem}
.workspace-chip{margin-top:2px;padding:1px 7px;font-size:.58rem}
.sidebar-nav{gap:1px}
.sidebar-nav a{min-height:40px;gap:10px;padding:4px 8px 4px 6px;border-radius:10px;font-size:.86rem;font-weight:600}
.sidebar-nav .nav-icon{width:30px;height:30px}
.sidebar-nav .nav-icon svg{width:17px;height:17px}
.nav-chevron{font-size:1rem}
.sidebar .nav-section{min-height:20px;margin:4px 6px 2px}
}

/* En-têtes de page sobres : le titre est déjà dans la barre du haut, le contenu remonte. */
@media(min-width:861px){
.page{padding-top:14px}
.page .page-head{min-height:0;margin-bottom:12px;align-items:center}
.page .page-head h1,.page .home-page-head h1,.workspace-screen .page-head h1,.settings-screen .page-head h1,.analysis-screen .page-head h1,.compact-head h1{margin:0;font-size:1.6rem!important;line-height:1.15;letter-spacing:-.01em}
.page .page-head .eyebrow{margin-bottom:2px;font-size:.58rem}
.page .page-head p:not(.eyebrow){margin-top:2px;font-size:.8rem}
.settings-screen>.settings-context{display:none}
.settings-screen>#settings-organization>summary{padding-bottom:10px;margin-bottom:12px}
}

.help-whatsapp{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#1f2d27;font-size:.82rem;font-weight:650;text-decoration:none;white-space:nowrap}
.help-whatsapp svg{color:#1faa55}
.help-whatsapp:hover,.help-whatsapp:focus-visible{border-color:#1faa55}
@media(max-width:860px){.help-whatsapp span{display:none}.help-whatsapp{padding:0 10px}}
/* La carte de contexte masquée libère la 2e rangée : les rubriques y remontent. */
@media(min-width:861px){.settings-screen>.section-nav{grid-row:2 / span 8}}
/* Guide : en-tête et étapes sur une hauteur réduite, le formulaire apparaît sans défiler. */
@media(min-width:861px){
.guided-setup .setup-journey-bar{padding:12px 30px 6px}
.guided-setup .setup-journey-bar header p.eyebrow{margin:0 0 2px}
.guided-setup .setup-journey-bar h1{margin:0!important;font-size:1.6rem!important;line-height:1.15}
.guided-setup .setup-journey-bar header p:not(.eyebrow){margin:2px 0 0;font-size:.8rem}
.guided-setup .setup-journey-bar nav{margin-top:10px!important;padding-bottom:4px}
.guided-setup .setup-journey-bar nav a{flex-direction:row!important;justify-content:center;gap:6px;min-height:38px!important;padding:4px 6px!important}
.guided-setup .setup-journey-bar nav span{width:20px;height:20px;font-size:10px}
.guided-setup .setup-save-note{margin:4px 0 0;font-size:.72rem}
.guided-setup .page{padding-top:8px}
.guided-setup .setup-journey-footer{padding:10px 30px}
}

/* Téléphone et tablette — 2e passe : libellés de la barre basse tronqués au lieu de
   se chevaucher, et actions de l'Accueil sous le titre au lieu d'une colonne étroite. */
@media(max-width:860px){
  .sidebar-nav a{min-width:66px;padding:.2rem .25rem}
  .sidebar-nav a>*{min-width:0;max-width:100%}
  .sidebar-nav .nav-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;
    white-space:nowrap;font-size:.58rem;line-height:1.2}
  .sidebar-nav{scroll-padding-inline:8px}
}
@media(max-width:700px){
  .page-head.home-page-head{grid-template-columns:minmax(0,1fr)!important;gap:10px}
  .home-head-actions{width:100%}
  .home-head-actions .action-bar{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .home-head-actions .action-bar>*{width:100%}
}
.auth-panel .signup-journey{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:0;margin:0 0 18px}.auth-panel .signup-journey li{display:flex;flex-direction:column;gap:6px;font-size:11px;line-height:1.3;color:#6b7a73;border-top:3px solid #dfe5dc;padding-top:8px}.auth-panel .signup-journey li b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e8eee3;color:#244d3e;font-size:11px}.auth-panel .signup-journey li.current{color:#1d3d31;font-weight:600;border-top-color:#244d3e}.auth-panel .signup-journey li.current b{background:#244d3e;color:#fff}
.auth-panel .signup-addons{border:1px solid #dfe5dc;border-radius:12px;padding:12px 14px;margin:0;display:grid;gap:8px}.auth-panel .signup-addons legend{font-weight:600;font-size:14px;padding:0 4px}.auth-panel .signup-addons legend small{font-weight:400;color:#6b7a73}.auth-panel .addon-choice{display:flex;gap:10px;align-items:flex-start;font-weight:400;cursor:pointer}.auth-panel .addon-choice input{margin-top:3px}.auth-panel .addon-choice span{display:grid;gap:2px}.auth-panel .addon-choice small{color:#6b7a73}.auth-panel .addon-note{font-size:11px;color:#6b7a73;line-height:1.5}
.auth-panel .addon-choice{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;text-align:start}.auth-panel .addon-choice input[type=checkbox]{width:18px;height:18px;min-height:0;margin:2px 0 0;padding:0;flex:none;accent-color:#244d3e}.auth-panel .addon-choice span{text-align:start}

/* Règlements (avenant §5) : une question par bloc, lisible au téléphone d'abord. */
.reglements-panel { display: grid; gap: .9rem; min-width: 0; }
.reglement-headline { margin: 0; padding: .85rem 1rem; border-radius: 14px; font-weight: 650; line-height: 1.45; }
.reglement-headline.is-ok { background: #eef6f1; color: #1d4d3e; }
.reglement-headline.is-alerte { background: #fff5e6; color: #7a4a06; }
.reglement-headline.is-bloque { background: #fdecec; color: #8a1f1f; }
.reglement-form { display: grid; gap: 1rem; min-width: 0; }
.reglement-form fieldset { border: 1px solid #d5e1d9; border-radius: 16px; padding: .9rem 1rem 1rem; margin: 0; min-width: 0; display: grid; gap: .6rem; }
.reglement-form legend { font-weight: 750; padding: 0 .3rem; }
.reglement-form label { display: grid; gap: .35rem; font-weight: 600; min-width: 0; }
.reglement-form select, .reglement-form input[type=file] { max-width: 100%; min-height: 44px; }
.reglement-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.reglement-choice { position: relative; display: flex !important; align-items: center; gap: .6rem; border: 1px solid #c9d8ce; border-radius: 14px; padding: .75rem .9rem; cursor: pointer; }
.reglement-choice input { width: 18px; height: 18px; margin: 0; accent-color: #245b4b; flex: none; }
.reglement-choice span { display: grid; font-weight: 500; }
.reglement-choice b { font-size: 1.05rem; }
.reglement-choice:has(input:checked) { border-color: #245b4b; background: #f0f7f2; }
.reglement-instructions { white-space: pre-line; margin: 0; padding: .7rem .85rem; background: #f6f8f7; border-radius: 12px; overflow-wrap: anywhere; }
.reglement-note, .reglement-pending { margin: 0; color: #4c5b53; font-size: .92rem; }
.reglement-pending { padding: .85rem 1rem; border-radius: 14px; background: #f0f4ff; color: #1f3b7a; }
.reglement-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.reglement-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; border: 1px solid #e1e8e3; border-radius: 14px; padding: .8rem .95rem; min-width: 0; }
.reglement-row > div:first-child { display: grid; gap: .15rem; min-width: 0; }
.reglement-row strong { overflow-wrap: anywhere; }
.reglement-row small { color: #4c5b53; }
.reglement-row.is-confirme small { color: #1d4d3e; font-weight: 650; }
.reglement-row.is-rejete small, .reglement-row.is-annule small { color: #8a1f1f; }
.reglement-decision { display: grid; gap: .6rem; width: 100%; }
.reglement-decision form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.reglement-decision label { display: grid; gap: .25rem; flex: 1 1 180px; font-weight: 600; }
.reglement-decision input[name=motif] { min-height: 44px; }
.reglement-later summary { cursor: pointer; font-weight: 700; color: #245b4b; min-height: 44px; display: flex; align-items: center; }
.reglement-later[open] summary { margin-bottom: .6rem; }

/* Bandeau d'abonnement (demande de Fahd du 24/09) : rouge, en haut de chaque écran, un bouton. */
.subscription-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  margin: 0 clamp(.75rem, 2vw, 1.5rem) .75rem; padding: .8rem 1rem; border-radius: 14px; background: #b42318; color: #fff; }
.subscription-banner[hidden] { display: none; }
.subscription-banner p { margin: 0; font-weight: 650; line-height: 1.4; flex: 1 1 220px; min-width: 0; }
.subscription-banner a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  background: #fff; color: #8a1c13; font-weight: 750; text-decoration: none; }
.subscription-banner.is-alerte { background: #b54708; }
.subscription-banner.is-alerte a { color: #7a2e0e; }
.subscription-banner a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .subscription-banner a { width: 100%; justify-content: center; } }

/* Écran Abonnement de la nouvelle grille. */
.sub-state { border-radius: 18px; padding: 1rem 1.1rem; display: grid; gap: .35rem; }
.sub-state.is-ok { background: #eef6f1; color: #1d4d3e; }
.sub-state.is-alerte { background: #fff5e6; color: #7a4a06; }
.sub-state.is-bloque { background: #fdecec; color: #8a1f1f; }
.sub-state p { margin: 0; font-weight: 600; }
.sub-counter { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
/* Formule en cours dans le cadre vert (09/11/2026). */
.sub-current { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: 0 0 .2rem; font-size: 1.15rem; }
.sub-current span { font-weight: 700; }
.sub-current-period { margin: 0 0 .8rem; opacity: .85; }
.sub-current-credits { margin: .8rem 0 0; }
.sub-current-benefits { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid rgba(0,0,0,.08); }
.sub-current-benefits ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.sub-counter b { font-size: clamp(2.4rem, 9vw, 3.2rem); line-height: 1; letter-spacing: -.03em; }
.sub-counter span { font-weight: 600; }
.sub-block { display: grid; gap: .7rem; border-top: 1px solid #e1e8e3; padding-top: 1rem; min-width: 0; }
.sub-block h3 { margin: 0; font-size: 1.1rem; }
.sub-block h3 small { display: block; font-weight: 500; color: #4c5b53; font-size: .88rem; margin-top: .2rem; }
.sub-block > p { margin: 0; }
.sub-formula { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.sub-formula li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .65rem .85rem; border: 1px solid #e1e8e3; border-radius: 12px; }
.sub-formula li.is-requested { border-style: dashed; background: #fafbfa; }
.sub-formula li span { color: #4c5b53; }
.sub-formula .sub-trial-benefits ul { list-style: none; margin: 0; padding: 0; flex-basis: 100%; display: grid; gap: .2rem; }
.sub-formula .sub-trial-benefits ul li { border: 0; padding: 0; color: #4c5b53; justify-content: flex-start; flex-wrap: nowrap; align-items: baseline; gap: .4rem; text-align: start; }
.sub-formula .sub-trial-benefits ul li::before { content: '✓'; flex: 0 0 auto; }
.sub-steps { margin: 0; padding: 0; list-style: none; counter-reset: sub; display: grid; gap: .9rem; }
.sub-steps > li { counter-increment: sub; position: relative; padding-left: 2.6rem; display: grid; gap: .5rem; min-width: 0; }
.sub-steps > li::before { content: counter(sub); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; background: #245b4b; color: #fff; font-weight: 800; }
.sub-steps h4 { margin: .15rem 0 0; font-size: 1rem; }
.reglement-choice em { display: block; font-style: normal; font-size: .82rem; color: #1d6b4a; font-weight: 700; }
.reglement-note.is-ok { color: #1d4d3e; font-weight: 650; }

/* ==== Abonnement : carte « Votre formule » (décision de Fahd du 21/11/2026) ======================================
 * Bloc isolé, borné à .reglements-panel : une carte sur fond vert doux (formule, période, compteurs, compris, options,
 * à venir), recharges en <details> natifs. Les états de quota portent toujours un mot (« Bientôt atteint »,
 * « Quota atteint ») en plus de la couleur. Pas de style en ligne (CSP du tableau de bord) : jauges en <meter>. */
.reglements-panel .sub-card { display: grid; gap: 16px; padding: 20px 24px; border-radius: 18px; background: #eef6f1; color: #1d4d3e; min-width: 0; }
.reglements-panel .sub-card.is-alerte { background: #fff5e6; color: #7a4a06; }
.reglements-panel .sub-card.is-bloque { background: #fdecec; color: #8a1f1f; }
.reglements-panel .sub-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.reglements-panel .sub-card-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; }
.reglements-panel .sub-card-price { margin: 0; font-weight: 750; font-size: 1.1rem; white-space: nowrap; }
.reglements-panel .sub-card-period { display: grid; gap: 4px; }
.reglements-panel .sub-card-period p { margin: 0; }
.reglements-panel .sub-card-span { opacity: .9; }
.reglements-panel .sub-card-status { font-weight: 600; }
.reglements-panel .sub-card .sub-counter b { font-family: var(--font-display); }
.reglements-panel .sub-card-part { display: grid; gap: 8px; border-top: 1px solid rgba(0,0,0,.08); padding-top: 12px; min-width: 0; }
.reglements-panel .sub-card-part > h4 { margin: 0; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.reglements-panel .sub-quota { display: grid; gap: 8px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.7); min-width: 0; }
.reglements-panel .sub-quota p { margin: 0; }
.reglements-panel .sub-quota-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.reglements-panel .sub-quota-head span { font-weight: 700; font-variant-numeric: tabular-nums; }
.reglements-panel .sub-quota meter { display: block; inline-size: 100%; block-size: 12px; }
.reglements-panel .sub-quota-note { font-size: .92rem; }
.reglements-panel .sub-quota-flag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 750; }
.reglements-panel .sub-quota-flag::before { content: '⚠ '; }
.reglements-panel .sub-quota-flag.is-bientot { background: #fff0d6; color: #7a4a06; }
.reglements-panel .sub-quota-flag.is-atteint { background: #fdecec; color: #8a1f1f; }
.reglements-panel .sub-quota-none { margin: 0; padding: 12px 16px; border: 1px dashed #b9cdbf; border-radius: 12px; }
.reglements-panel .sub-topups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reglements-panel .sub-topups-label { font-weight: 650; margin-inline-end: 4px; }
.reglements-panel .sub-topup > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #245b4b;
  border-radius: 999px; background: #fff; color: #245b4b; font-weight: 750; cursor: pointer; white-space: nowrap; }
.reglements-panel .sub-topup > summary::-webkit-details-marker { display: none; }
.reglements-panel .sub-topup > summary:focus-visible { outline: 3px solid #c8871a; outline-offset: 2px; }
.reglements-panel .sub-topup[open] { order: 2; flex-basis: 100%; }
.reglements-panel .sub-topup[open] > summary { background: #245b4b; color: #fff; }
.reglements-panel .sub-topup-body { display: grid; gap: 12px; margin-top: 8px; padding: 16px; border-radius: 12px; background: #fff; color: var(--ink, #17221f); min-width: 0; }
.reglements-panel .sub-card-benefits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 4px 16px; }
.reglements-panel .sub-card-benefits li { display: flex; align-items: baseline; gap: 6px; }
.reglements-panel .sub-card-benefits li::before { content: '✓'; flex: none; }
.reglements-panel .sub-card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reglements-panel .sub-card-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.7); }
.reglements-panel .sub-card-list li.is-requested { background: transparent; border: 1px dashed #b9cdbf; }
.reglements-panel .sub-card-list li span { color: #4c5b53; }
.reglements-panel .sub-card .option-add { display: grid; gap: 4px; }
.reglements-panel .sub-history-older .reglement-list { margin-top: 8px; }
.reglements-panel .subscription-form .subscription-offer { align-items: flex-start; }
.reglements-panel .subscription-form .subscription-offer input { margin-top: 3px; }
@media (max-width: 600px) { .reglements-panel .sub-card { padding: 16px; } .reglements-panel .sub-topup-body { padding: 12px; } .reglements-panel .sub-topups-label { flex-basis: 100%; } }
/* ==== fin du bloc Abonnement ==================================================================================== */

/* Notifications Telegram (Paramètres › Notifications). */
.telegram-settings { display: grid; gap: .7rem; margin-top: 1rem; border-top: 1px solid #e1e8e3; padding-top: 1rem; }
.telegram-settings h3 { margin: 0; }
.telegram-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: .8rem; }
.telegram-role { border: 1px solid #d5e1d9; border-radius: 16px; padding: .9rem 1rem; display: grid; gap: .55rem; min-width: 0; }
.telegram-role h4, .telegram-role p { margin: 0; }
.telegram-role small { color: #4c5b53; overflow-wrap: anywhere; }
.telegram-role .button-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Accès : équipe et invitation d'une réceptionniste. */
.team-settings { display: grid; gap: .9rem; min-width: 0; }
.team-settings h4 { margin: .4rem 0 0; }
.team-member { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.team-member > div { display: grid; min-width: 0; }
.team-member small { color: #4c5b53; overflow-wrap: anywhere; }
.team-member.is-inactive strong { color: #7c8a82; }
.team-invite { display: grid; gap: .7rem; border: 1px solid #d5e1d9; border-radius: 16px; padding: 1rem; min-width: 0; }
.team-invite label { display: grid; gap: .35rem; font-weight: 600; }
.team-invite input { min-height: 44px; max-width: 100%; }
.invite-result { display: grid; gap: .5rem; background: #eef6f1; border-radius: 12px; padding: .8rem; }
.invite-result[hidden] { display: none; }
.invite-result p { margin: 0; }
.invite-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.invite-actions .button-link { min-height: 44px; display: inline-flex; align-items: center; }

/* Réceptionniste WhatsApp : ligne en lecture seule, distincte du WhatsApp de l établissement */
.receptionist-line{display:grid;gap:2px;padding:10px 12px;border:1px solid #d9e6df;border-radius:10px;background:#f3faf6}
.receptionist-line small{color:#51605a}
.receptionist-line[data-receptionist-state=absente]{background:#f6f6f4;border-color:#e4e2dc}

/* Jours à cocher (plusieurs jours en une fois) */
.day-checks{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;border:0}.day-checks legend{width:100%;margin-bottom:4px;font-weight:700}.day-checks label{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid #d9e2dd;border-radius:999px;background:#fff;cursor:pointer}.day-checks input{width:18px;height:18px}.day-checks label:has(input:checked){border-color:#245b4b;background:#eaf3ef;font-weight:700}

/* Inscription sur téléphone (décision du 03/10) : le formulaire visible dès le premier écran. */
@media (max-width: 560px) {
  .login-page .login-scene { min-height: 0; padding: 1.1rem 1.1rem 1.25rem; }
  .login-page .login-scene .brand-mark { display: none; }
  .login-page .login-scene h1 { margin: .4rem 0 0; font-size: 1.7rem; line-height: 1.05; }
  .registration-card select { font-size: .86rem; }
}

/* Guide : le message de confirmation ne recouvre pas le bouton « Continuer ». */
body.guided-setup #toast { bottom: 96px; }

/* Recherche de la fiche Google par nom */
.place-results{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}.place-results button{width:100%;text-align:left;display:grid;gap:2px;padding:10px 12px;border:1px solid #d9e2dd;border-radius:10px;background:#fff;font-weight:700;cursor:pointer}.place-results small{font-weight:400;color:#5d6a65}.place-advanced summary{cursor:pointer;font-size:.8rem;color:#5d6a65}
.receptionist-note{margin-bottom:16px}

/* Console STEP */
.console-section{margin-bottom:16px}.console-section .panel-head{display:flex;align-items:center;justify-content:space-between}
.console-count{min-width:28px;padding:2px 10px;border-radius:999px;background:#eef3ef;font-weight:800;text-align:center}
.console-item{display:grid;gap:10px;padding:14px 0;border-top:1px solid #e3e8e5}.console-item small{display:block;color:#5d6a65}
.console-item form{display:flex;flex-wrap:wrap;gap:8px;align-items:end}.console-reject label{display:grid;flex:1 1 200px;gap:4px}
.console-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.console-list small{display:block;color:#5d6a65}
.console-table{overflow-x:auto}.console-table table{width:100%;border-collapse:collapse;font-size:.9rem}.console-table th,.console-table td{padding:8px;border-top:1px solid #e3e8e5;text-align:left;white-space:nowrap}
.console-state{padding:2px 8px;border-radius:999px;background:#eef3ef}.console-state[data-state=grace],.console-state[data-state=suspendu],.console-state[data-state=ferme]{background:#fbe7e4;color:#7a1c14}
.console-empty{color:#5d6a65}.console-status{margin:0;color:#7a1c14;font-weight:650}
@media(max-width:560px){.console-table thead{display:none}.console-table tr{display:grid;gap:4px;padding:10px 0;border-top:1px solid #e3e8e5}.console-table td{display:flex;justify-content:space-between;gap:12px;padding:0;border:0;white-space:normal}.console-table td::before{content:attr(data-label);color:#5d6a65;font-size:.8rem}}
body.console-account #global-search,body.console-account .global-search,body.console-account #notification-button,body.console-account .notification-center{display:none!important}
/* Console STEP en fenêtres (04/10) : Suivi, Validation, Résultats */
.console-summary{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.console-chip{display:inline-flex;gap:6px;align-items:baseline;padding:8px 14px;border-radius:999px;background:#eef3ef;color:inherit;text-decoration:none}.console-chip.is-due{background:#fff2d6;color:#5c3b00}a.console-chip:hover{text-decoration:underline}

/* Navigation : destinations simples, repère actif et contrôle compte distinct.
   Cette couche s'applique après les variantes historiques du tableau de bord. */
.account-caption{display:none}
.account-chevron{flex:none;transition:transform .15s ease}
.account-button[aria-expanded=true] .account-chevron{transform:rotate(180deg)}
.account-button{text-align:start;border-radius:10px}
.account-menu{right:auto;inset-inline-end:0;text-align:start}
.topbar-title,.topbar-title>div{min-width:0}
.topbar-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.subscription-banner.is-essai{background:#eef4f0;color:#244d3e;border:1px solid #cfddd2;border-inline-start:3px solid var(--brand);border-radius:10px;padding:.55rem .85rem}
.subscription-banner.is-essai p{font-size:.85rem;font-weight:500}
.subscription-banner.is-essai a{background:#fff;color:#244d3e;border:1px solid #cfddd2;border-radius:8px;font-size:.8rem}
.subscription-banner.is-essai a:focus-visible{outline-color:var(--brand)}
@media(min-width:861px){
  .sidebar{flex-shrink:0;width:248px;height:100dvh;gap:14px;padding:18px 12px;background:color-mix(in srgb,var(--brand) 25%,#142720);box-shadow:none}
  .sidebar-brand{flex:none;gap:10px;padding:0 8px}
  .sidebar-brand strong{font-size:1.02rem}
  .sidebar-brand small{font-size:.65rem;color:#c5d8cf}
  .workspace-card{flex:none;padding:12px;border-radius:10px;background:rgba(255,255,255,.05)}
  .workspace-head{margin-bottom:8px}
  .workspace-head>span{font-size:.72rem;color:#d0dfd7}
  .workspace-link{width:44px;height:44px;margin-block:-8px;margin-inline-end:-8px}
  html[dir=rtl] .workspace-link svg{transform:rotate(180deg)}
  .workspace-body{grid-template-columns:40px minmax(0,1fr);gap:10px}
  .workspace-card .workspace-text strong{font-size:.83rem;line-height:1.4;text-transform:none;letter-spacing:0;overflow-wrap:anywhere}
  .workspace-card .workspace-text small{font-size:.68rem;line-height:1.45;color:#c5d8cf}
  .sidebar-nav{min-height:0;gap:4px;padding:3px;scrollbar-width:thin;scrollbar-color:#789a8b transparent}
  .sidebar-nav a{min-height:44px;gap:12px;padding:8px 12px;border-radius:8px;color:#e1ebe5;font-size:.88rem;font-weight:500;line-height:1.35}
  .sidebar-nav .nav-icon{width:22px;height:22px;border-radius:0;background:transparent;color:inherit}
  .sidebar-nav .nav-icon svg{width:20px;height:20px}
  .sidebar-nav a:hover{background:rgba(255,255,255,.08);color:#fff}
  .sidebar-nav a.active{background:#f5f8f4;color:color-mix(in srgb,var(--brand) 35%,#17231f);font-weight:700;box-shadow:none}
  .sidebar-nav a.active .nav-icon{background:transparent;color:inherit}
  .sidebar-nav a:focus-visible,.account-button:focus-visible{outline:2px solid #e4eec3;outline-offset:1px}
  .sidebar .nav-section{min-height:24px;margin:12px 10px 4px;color:#c5d8cf;font-size:.65rem;letter-spacing:.1em}
  .sidebar .nav-section::before{display:none}
  .sidebar .nav-section::after{background:rgba(255,255,255,.16)}
  .sidebar-footer{flex:none;gap:0;padding-top:12px}
  .account-button{gap:10px!important;padding:6px!important}
  .account-button strong{font-size:.8rem;font-weight:600;color:#fff}
  .account-button small{font-size:.68rem;color:#c5d8cf}
  .account-avatar{background:rgba(255,255,255,.12);font-weight:600}
  .account-chevron{color:#c5d8cf}
}
@media(max-width:860px){
  html,body{min-width:0}
  .app-shell{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .sidebar{height:calc(80px + env(safe-area-inset-bottom));gap:4px;background:#fff;color:#344b40;box-shadow:0 -2px 12px #173f320d}
  .sidebar-nav{gap:4px;padding:2px;scroll-padding-inline:6px}
  .sidebar-nav a{flex:0 0 70px;min-width:70px;min-height:64px;grid-template-rows:26px 28px;gap:2px;padding:4px;border-radius:8px;color:#455c50;background:transparent;box-shadow:none;font-weight:500}
  .sidebar-nav .nav-icon,.sidebar-nav a.active .nav-icon{width:24px;height:24px;border-radius:0;background:transparent;color:inherit}
  .sidebar-nav .nav-icon svg{width:22px;height:22px}
  .sidebar-nav .nav-label{max-width:68px;white-space:normal;overflow:visible;text-overflow:clip;font-size:.66rem;line-height:1.25;text-align:center;overflow-wrap:normal}
  .sidebar-nav a:hover{background:#f0f4ef;color:#244d3e}
  .sidebar-nav a.active{background:var(--brand-soft);color:color-mix(in srgb,var(--brand) 35%,#17231f);box-shadow:inset 0 3px 0 color-mix(in srgb,var(--brand) 35%,#17231f);font-weight:700}
  .sidebar-nav a:focus-visible,.account-button:focus-visible{outline:2px solid #245b4b;outline-offset:0}
  .sidebar .nav-section{flex:0 0 1px;min-width:1px;margin:10px 4px;height:44px}
  .sidebar .nav-section::before{display:none}
  .sidebar .nav-section::after{height:44px;background:#dce4db}
  .sidebar-footer{flex:0 0 64px;border-left:0;border-inline-start:1px solid #dce4db;padding-inline-start:4px}
  .account-button{grid-template-rows:30px 24px;gap:4px!important;min-height:64px!important;color:#344b40!important}
  .account-button>span:nth-child(2){display:block}
  .account-button strong,.account-button small,.account-chevron{display:none}
  .account-caption{display:block;font-size:.66rem;line-height:1.25;color:#455c50}
  .account-avatar{width:28px;height:28px;background:var(--brand-soft);color:color-mix(in srgb,var(--brand) 35%,#17231f);font-size:.8rem}
  .account-menu{inset-inline-end:8px;bottom:calc(88px + env(safe-area-inset-bottom))}
  .account-menu a,.account-menu button,.account-menu label{text-align:start;font-weight:600}
  .subscription-banner.is-essai a{width:auto;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.account-chevron{transition:none}}
.console-todo{font-weight:650}.console-todo[data-priority='0'],.console-todo[data-priority='1'],.console-todo[data-priority='2'],.console-todo[data-priority='3'],.console-todo[data-priority='4']{color:#7a1c14}.console-todo[data-priority='5'],.console-todo[data-priority='6'],.console-todo[data-priority='7']{color:#5c3b00}.console-todo[data-priority='9'],.console-todo[data-priority='10']{font-weight:400;color:#5d6a65}
.console-month{display:inline-flex;gap:8px;align-items:center;margin:0 0 14px;font-weight:650}
.console-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:16px}.console-figures>article{display:grid;gap:6px;align-content:start;padding:16px;border:1px solid #e3e8e5;border-radius:14px;background:#fff}.console-figures small{color:#5d6a65;font-weight:650}.console-figures b{font-size:1.5rem}.console-figures span{color:#5d6a65;font-size:.85rem}.console-figures .console-net{background:#163d33;color:#fff;border-color:#163d33}.console-figures .console-net small,.console-figures .console-net span{color:#d6e3dc}
.console-meta label{display:grid;gap:4px;flex:1 1 160px}
.console-screen .console-table td{white-space:normal;min-width:84px}

/* Abonnement : changer de formule (04/10) */
.formula-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:10px 0}.formula-choice{display:grid;gap:6px;align-content:start;padding:14px;border:1px solid #dfe6e1;border-radius:12px;background:#fff}.formula-choice.is-current{border-color:#163d33;background:#eef3ef}.formula-choice em{font-style:normal;font-weight:700;color:#163d33}.formula-choice form{display:grid;gap:4px}.formula-hint{margin:8px 0}

/* Règles de l'agenda et rendez-vous à replacer (lot « Absences et planning », 06/10/2026). */
.rules-screen .sub-block { margin-top: 20px; }
.rule-card { border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; margin-top: 12px; background: var(--surface, #fff); }
.rule-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.rule-card h3 { margin: 0; font-size: 1.05rem; }
.rule-card p { margin: 4px 0; font-size: .93rem; }
.rule-state { font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: #eceae4; }
.rule-state.is-on { background: #dcefe6; color: #1f5c43; }
.rule-card form { margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.replacer-list { margin: 0; padding: 0; list-style: none; }
.replacer-list li { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.replacer-list li:first-child { border-top: 0; }
.replacer-list li > div:first-child { display: grid; gap: 2px; }
.replacer-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.replacer-solutions { display: flex; gap: 8px; flex-wrap: wrap; font-size: .92rem; }
.replacer-solutions[hidden] { display: none !important; }
.rules-screen { display: block; }
.rule-setting { margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .93rem; }
.rule-setting input[type='number'] { width: 5.5em; }
.delay-list, .delay-prepared { margin: 0; padding: 0; list-style: none; }
.delay-list > li { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.delay-list > li:first-child { border-top: 0; }
.delay-list > li > div:first-child { display: grid; gap: 2px; }
.delay-prepared li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; font-size: .93rem; }
.delay-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 12px; font-size: .93rem; }
.delay-form input[type='number'] { width: 5em; }
.rule-warning { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft, #fff6e2); font-size: .9rem; }
.planning-errors p { margin: 0; font-size: .93rem; }
.delay-badge { display: block; font-style: normal; font-size: .78rem; color: var(--accent, #b4541c); }
.rules-screen > .sub-block { max-width: 960px; }

/* Lot 3 (10/10/2026) : phrase de la saisie d’un rendez-vous selon la formule ; rien tant que la session est inconnue. */
[data-whatsapp-note]{display:none;font-weight:400}
body[data-envois-whatsapp="oui"] [data-whatsapp-note="oui"],body[data-envois-whatsapp="non"] [data-whatsapp-note="non"]{display:block}
/* Remarque 03 (10/10/2026) : ouverture et fermeture l'une sous l'autre à gauche, bouton à droite, centré. */
.hours-add-form{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.hours-add-form>.form-wide,.hours-add-form>.day-checks,.hours-add-form>.time-format-note{grid-column:1/-1}
.hours-add-times{display:grid;gap:var(--space-2);grid-column:1}
.hours-add-times select{width:100%}
.hours-add-button{grid-column:2;align-self:center;justify-self:end;min-height:44px}
/* Remarque 04 : même grammaire que l'ajout d'horaire ; la liste n'apparaît qu'une fois la cible choisie. */
.closure-create-grid{grid-template-columns:minmax(0,1fr)}
.closure-when{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);align-items:start}
.closure-when input[type=date],.closure-when select{width:100%;min-height:44px}
.closure-when small[data-date-human]{display:block;min-height:1.2em;color:var(--muted);font-size:var(--text-micro);font-weight:400}
.closure-create-grid>button{justify-self:start;min-height:44px}
.target-picker label:not(:has(input:checked)) select{display:none}
@media(max-width:640px){
  .hours-add-form{grid-template-columns:1fr}
  .hours-add-button{grid-column:1;justify-self:stretch}
  .closure-when{grid-template-columns:1fr}
  .closure-create-grid>button{justify-self:stretch}
}

/* Remarque 06 (10/10/2026) : ni connexion ni application tant que la session est vérifiée. */
.session-loading{margin:0;padding:3rem 1rem;text-align:center;color:var(--muted)}
/* Remarque 12 (10/10/2026) : la console STEP n'est pas l'espace d'un établissement ; seul « Déconnexion » reste. */
body.console-account .workspace-link,body.console-account .workspace-chip,body.console-account #account-menu a,body.console-account #account-menu label{display:none!important}
/* Remarques 10 et 11 (10/10/2026) : vrai logo RdvPilot à la place du « R ». */
.brand-mark.brand-logo{display:block;padding:0;object-fit:contain;background:transparent!important;border:0;box-shadow:none}
.sidebar-brand{align-items:center}
/* Remarque 10 : chevron collé au titre « Établissement », titre un peu plus grand, chevron discret et aligné. */
.workspace-head{justify-content:flex-start;gap:4px}
.workspace-head>span{font-size:.78rem!important;line-height:1.2}
.workspace-head .workspace-link{width:28px;height:28px;margin:0;opacity:.8}
.workspace-head .workspace-link svg{display:block}
/* Revue navigateur du 10/10 : « Qui confirme » (titre et explication sur deux lignes, titre non répété), motif. */
.confirmation-choice label{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.6rem;margin:.4rem 0}
.confirmation-choice label>span{display:grid;gap:.15rem}
.confirmation-choice label small{color:var(--muted);font-weight:400}
.confirmation-panel .confirmation-choice legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.closure-create-grid>label.form-wide{display:grid;gap:.35rem}
.closure-create-grid>label.form-wide input{width:100%;min-height:44px}
.included-messages ul{display:grid;gap:.35rem;margin:.6rem 0;padding-inline-start:1.1rem}
.included-messages li span{font-weight:600}
.included-messages li small{color:var(--muted)}
.included-messages li small::before{content:' · '}
/* Remarque 00 (11/10/2026) : une même signature de marque à gauche et à droite de la connexion — logo et nom réunis,
   « Espace pro » en sous-titre discret, puis le grand titre, avec une hiérarchie nette. */
.brand-lockup{display:flex;align-items:center;gap:.85rem}
.brand-lockup .brand-logo{flex:0 0 auto;border-radius:14px;background:#fff;object-fit:cover;box-shadow:0 8px 22px rgba(4,26,22,.18)}
.brand-lockup span{display:grid;gap:.2rem;line-height:1.1}
.brand-lockup strong{font:700 1.3rem/1.1 var(--font-ui);letter-spacing:-.01em;color:var(--ink,#10241f)}
.brand-lockup small{font:600 .72rem/1.2 var(--font-ui);letter-spacing:.14em;text-transform:uppercase;color:#5b6b65}
.brand-lockup.is-light strong{color:#fff;font-size:1.45rem}
.brand-lockup.is-light small{color:#e7d8b5}
.login-scene .brand-lockup{margin-bottom:clamp(1.6rem,4vw,2.6rem)}
.login-scene .brand-lockup + h1{margin-top:0}
.login-card .brand-lockup{margin-bottom:1.4rem}
.login-card .brand-lockup .brand-logo{border:1px solid #e3ebe7;box-shadow:none;border-radius:11px}
@media (max-width: 560px){.login-page .login-scene .brand-lockup{display:none}}

/* Remarque 12 : la console n’a pas de « Agenda · WhatsApp · Réservation ». */
body.console-account [data-org-scope]{display:none}

/* Parcours abonnement R05 : sélection et récapitulatif sans JavaScript. */
.subscription-offers,.subscription-durations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
/* Revue du 11/10 : le style générique des champs ne s'applique pas aux choix (cercle géant), choix retenu visible, 4 durées sur une ligne. */
.subscription-form .subscription-offer,.subscription-form .subscription-pack-choice label{display:flex;align-items:center;cursor:pointer}
.subscription-form .subscription-offer input,.subscription-form .subscription-pack-choice input{width:18px;height:18px;min-height:0;margin:0;flex:none;accent-color:#245b4b}
.subscription-form .subscription-offer:has(input:checked),.subscription-form .subscription-pack-choice label:has(input:checked){border-color:#245b4b;background:#f0f7f2}
.subscription-form .reglement-choice{align-items:flex-start}.subscription-form .reglement-choice input{margin-top:.2rem}
.subscription-durations{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.subscription-durations{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Une seule série « mois » pour les trois offres : la durée choisie reste visible quand l'offre change (sans JavaScript). */
.subscription-durations input{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:18px;height:18px;min-width:18px;min-height:0;padding:0;border:2px solid #8fa79a;border-radius:50%;background:#fff}
.subscription-durations input:focus-visible{outline:3px solid #245b4b;outline-offset:2px}
.subscription-form:has(input[name='mois'][value='1']:checked) .subscription-durations input[value='1']{border:5px solid #245b4b}
.subscription-form:has(input[name='mois'][value='1']:checked) .subscription-durations .reglement-choice:has(input[value='1']){border-color:#245b4b;background:#f0f7f2}
.subscription-form:has(input[name='mois'][value='3']:checked) .subscription-durations input[value='3']{border:5px solid #245b4b}
.subscription-form:has(input[name='mois'][value='3']:checked) .subscription-durations .reglement-choice:has(input[value='3']){border-color:#245b4b;background:#f0f7f2}
.subscription-form:has(input[name='mois'][value='6']:checked) .subscription-durations input[value='6']{border:5px solid #245b4b}
.subscription-form:has(input[name='mois'][value='6']:checked) .subscription-durations .reglement-choice:has(input[value='6']){border-color:#245b4b;background:#f0f7f2}
.subscription-form:has(input[name='mois'][value='12']:checked) .subscription-durations input[value='12']{border:5px solid #245b4b}
.subscription-form:has(input[name='mois'][value='12']:checked) .subscription-durations .reglement-choice:has(input[value='12']){border-color:#245b4b;background:#f0f7f2}
.subscription-offer,.subscription-pack-choice label{display:flex;gap:.65rem;align-items:center;border:1px solid var(--line);border-radius:14px;padding:.85rem;background:var(--surface)}
.subscription-offer span{display:grid;gap:.2rem}.subscription-offer small{color:var(--muted)}
.subscription-durations,.subscription-summary,.subscription-pack-included{display:none}
.subscription-form:has(input[name='offre'][value='essentiel']:checked) [data-offer-durations='essentiel'],
.subscription-form:has(input[name='offre'][value='pro']:checked) [data-offer-durations='pro'],
.subscription-form:has(input[name='offre'][value='premium']:checked) [data-offer-durations='premium'],
.subscription-form:has(input[name='offre'][value='premium_300']:checked) [data-offer-durations='premium_300'],
.subscription-form:has(input[name='offre'][value='premium_500']:checked) [data-offer-durations='premium_500']{display:grid}
.subscription-summaries{min-height:12rem}.subscription-summary{border:1px solid var(--line);border-radius:16px;padding:1rem;background:var(--surface)}
.subscription-summary dl{margin:0;display:grid;gap:.45rem}.subscription-summary dl div{display:flex;justify-content:space-between;gap:1rem}
.subscription-summary dt,.subscription-summary dd{margin:0}.subscription-total{border-top:1px solid var(--line);padding-top:.7rem;font-weight:800}
.subscription-change{padding:.7rem;border-radius:10px;background:var(--warning-soft)}
/* 28/11/2026 (Fahd) : Kit cabinet inclus dès 3 mois (PACK_OFFERED_FROM_MONTHS) : case masquée, « inclus » affiché. */
.subscription-form:has(input[name='mois'][value='3']:checked) .subscription-pack-choice,
.subscription-form:has(input[name='mois'][value='6']:checked) .subscription-pack-choice,
.subscription-form:has(input[name='mois'][value='12']:checked) .subscription-pack-choice{display:none}
.subscription-form:has(input[name='mois'][value='3']:checked) .subscription-pack-included,
.subscription-form:has(input[name='mois'][value='6']:checked) .subscription-pack-included,
.subscription-form:has(input[name='mois'][value='12']:checked) .subscription-pack-included{display:block}
.subscription-form:has(input[name='offre'][value='essentiel']:checked):has(input[name='mois'][value='1']:checked):not(:has(input[name='pack']:checked)) [data-offer='essentiel'][data-months='1'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='essentiel']:checked):has(input[name='mois'][value='1']:checked):has(input[name='pack']:checked) [data-offer='essentiel'][data-months='1'][data-pack='oui'],
.subscription-form:has(input[name='offre'][value='essentiel']:checked):has(input[name='mois'][value='3']:checked):not(:has(input[name='pack']:checked)) [data-offer='essentiel'][data-months='3'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='essentiel']:checked):has(input[name='mois'][value='3']:checked):has(input[name='pack']:checked) [data-offer='essentiel'][data-months='3'][data-pack='oui'],
.subscription-form:has(input[name='offre'][value='essentiel']:checked):has(input[name='mois'][value='6']:checked) [data-offer='essentiel'][data-months='6'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='essentiel']:checked):has(input[name='mois'][value='12']:checked) [data-offer='essentiel'][data-months='12'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='pro']:checked):has(input[name='mois'][value='1']:checked):not(:has(input[name='pack']:checked)) [data-offer='pro'][data-months='1'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='pro']:checked):has(input[name='mois'][value='1']:checked):has(input[name='pack']:checked) [data-offer='pro'][data-months='1'][data-pack='oui'],
.subscription-form:has(input[name='offre'][value='pro']:checked):has(input[name='mois'][value='3']:checked):not(:has(input[name='pack']:checked)) [data-offer='pro'][data-months='3'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='pro']:checked):has(input[name='mois'][value='3']:checked):has(input[name='pack']:checked) [data-offer='pro'][data-months='3'][data-pack='oui'],
.subscription-form:has(input[name='offre'][value='pro']:checked):has(input[name='mois'][value='6']:checked) [data-offer='pro'][data-months='6'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='pro']:checked):has(input[name='mois'][value='12']:checked) [data-offer='pro'][data-months='12'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium']:checked):has(input[name='mois'][value='1']:checked):not(:has(input[name='pack']:checked)) [data-offer='premium'][data-months='1'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium']:checked):has(input[name='mois'][value='1']:checked):has(input[name='pack']:checked) [data-offer='premium'][data-months='1'][data-pack='oui'],
.subscription-form:has(input[name='offre'][value='premium']:checked):has(input[name='mois'][value='3']:checked):not(:has(input[name='pack']:checked)) [data-offer='premium'][data-months='3'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium']:checked):has(input[name='mois'][value='3']:checked):has(input[name='pack']:checked) [data-offer='premium'][data-months='3'][data-pack='oui'],
.subscription-form:has(input[name='offre'][value='premium']:checked):has(input[name='mois'][value='6']:checked) [data-offer='premium'][data-months='6'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium']:checked):has(input[name='mois'][value='12']:checked) [data-offer='premium'][data-months='12'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium_300']:checked):has(input[name='mois'][value='1']:checked):not(:has(input[name='pack']:checked)) [data-offer='premium_300'][data-months='1'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium_300']:checked):has(input[name='mois'][value='1']:checked):has(input[name='pack']:checked) [data-offer='premium_300'][data-months='1'][data-pack='oui'],
.subscription-form:has(input[name='offre'][value='premium_300']:checked):has(input[name='mois'][value='3']:checked):not(:has(input[name='pack']:checked)) [data-offer='premium_300'][data-months='3'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium_300']:checked):has(input[name='mois'][value='3']:checked):has(input[name='pack']:checked) [data-offer='premium_300'][data-months='3'][data-pack='oui'],
.subscription-form:has(input[name='offre'][value='premium_300']:checked):has(input[name='mois'][value='6']:checked) [data-offer='premium_300'][data-months='6'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium_300']:checked):has(input[name='mois'][value='12']:checked) [data-offer='premium_300'][data-months='12'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium_500']:checked):has(input[name='mois'][value='1']:checked):not(:has(input[name='pack']:checked)) [data-offer='premium_500'][data-months='1'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium_500']:checked):has(input[name='mois'][value='1']:checked):has(input[name='pack']:checked) [data-offer='premium_500'][data-months='1'][data-pack='oui'],
.subscription-form:has(input[name='offre'][value='premium_500']:checked):has(input[name='mois'][value='3']:checked):not(:has(input[name='pack']:checked)) [data-offer='premium_500'][data-months='3'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium_500']:checked):has(input[name='mois'][value='3']:checked):has(input[name='pack']:checked) [data-offer='premium_500'][data-months='3'][data-pack='oui'],
.subscription-form:has(input[name='offre'][value='premium_500']:checked):has(input[name='mois'][value='6']:checked) [data-offer='premium_500'][data-months='6'][data-pack='non'],
.subscription-form:has(input[name='offre'][value='premium_500']:checked):has(input[name='mois'][value='12']:checked) [data-offer='premium_500'][data-months='12'][data-pack='non']{display:block}
/* Variantes Premium (28/10/2026) : regroupées sous Premium, avec leurs crédits de Réceptionniste. */
.subscription-variants{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:0;border:1px solid var(--line);border-radius:16px;padding:.85rem}
.subscription-variants legend{padding:0 .35rem;font-weight:700}.subscription-variants .reglement-note{grid-column:1/-1;margin:0}
.formula-choice small{display:block;color:var(--muted)}
@media(max-width:600px){.subscription-variants{grid-template-columns:1fr}}
.reglement-refused{padding:.85rem 1rem;border-radius:12px;background:#fdf1ee;border:1px solid #f1c6bb;border-inline-start:4px solid #b42318;color:#7a271a}
.reglement-refused p{margin:.3rem 0 0}
/* Revue du 11/10 : formulaire « Paiement reçu par un autre moyen » aligné, libellé au-dessus du champ. */
.console-item form.console-offline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem 1rem;align-items:end}
.console-offline label{display:grid;gap:4px;min-width:0;font-weight:600}.console-offline select,.console-offline input:not([type=checkbox]){width:100%;min-height:44px;box-sizing:border-box}
.console-offline label:has(input[type=checkbox]){display:flex;align-items:center;gap:.5rem;min-height:44px;font-weight:500}.console-offline input[type=checkbox]{width:18px;height:18px;margin:0}
/* 13/10/2026 : espèces remises en main propre, pas de justificatif à joindre (CSS seul). */
.subscription-cash-note{display:none}
.subscription-form:has(select[name='methode'] option[value='especes']:checked) .subscription-receipt{display:none}
.subscription-form:has(select[name='methode'] option[value='especes']:checked) .subscription-cash-note{display:block}
.console-offline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.console-amounts{grid-column:1/-1;padding:.75rem;border-radius:12px;background:var(--soft,#f3f6f4)}.console-amounts p{margin:0 0 .4rem}
.console-amounts table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.console-amounts th,.console-amounts td{padding:.3rem .4rem;text-align:right;border-top:1px solid var(--line)}.console-amounts th:first-child{text-align:left}.console-offline button,.console-offline .console-status{grid-column:1/-1}
.console-verified{color:var(--success);font-weight:700}
@media(max-width:600px){.subscription-offers,.subscription-durations,.console-offline{grid-template-columns:1fr}.subscription-summary dl div{align-items:flex-start}.subscription-summary dd{text-align:right}}
@media(max-width:600px){.console-item form.console-offline{grid-template-columns:1fr}}

/* Console STEP (Fahd, 13/10/2026) : des cartes lisibles au lieu d'un tableau « comme Excel ». */
.console-cards thead{display:none}.console-cards table,.console-cards tbody{display:block}
.console-cards tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.console-cards tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;padding:14px;border:1px solid #e3e8e5;border-radius:14px;background:#fff}
.console-screen .console-cards td{display:grid;gap:2px;padding:0;border:0;min-width:0;white-space:normal}
.console-cards td::before{content:attr(data-label);font-size:.7rem;font-weight:750;letter-spacing:.05em;text-transform:uppercase;color:#5d6a65}
.console-cards td[data-label='Établissement']{grid-column:1/-1;font-size:1.05rem}.console-cards td[data-label='Établissement']::before{display:none}
.console-cards td[data-label='À faire']{grid-column:1/-1;padding:8px 10px;border-radius:10px;background:#f6f8f6}
.console-payment,.console-request,.console-subscription{padding:14px;border:1px solid #e3e8e5;border-radius:14px;background:#fff;margin-top:10px}
.console-payment header,.console-subscription header{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.console-payment-total{font-weight:800;font-size:1.1rem;font-variant-numeric:tabular-nums}
.console-payment-lines{margin:0;padding-inline-start:1.1rem;display:grid;gap:2px}.console-payment-meta{margin:0;color:#5d6a65;font-size:.9rem}
.console-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.console-request-pay summary{cursor:pointer;font-weight:700;color:var(--brand)}.console-request-pay[open] summary{margin-bottom:10px}
.console-subscriptions{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}.console-subscriptions .console-subscription{margin:0}
.console-subscription dl{margin:10px 0 0;display:grid;gap:6px}.console-subscription dl div{display:flex;justify-content:space-between;gap:12px}
.console-subscription dt{color:#5d6a65}.console-subscription dd{margin:0;font-weight:600;text-align:end}
.console-subscription[data-state='bientot_expire']{border-color:#e9b44c;background:#fffaf0}
@media(max-width:560px){.console-cards tr{grid-template-columns:1fr}}

/* Confiance (13/10/2026) : paiement vérifié, activation en moins de 24 h, contact WhatsApp de STEP. */
.subscription-trust{display:grid;gap:6px;margin:0 0 16px;padding:14px 16px;border-radius:14px;background:#eef6f1;border:1px solid #cfe3d7;border-inline-start:4px solid var(--brand)}
.subscription-trust p{margin:0;font-size:.92rem;color:#2c4a3f}.subscription-trust .button-link{justify-self:start;margin-top:4px}
.subscription-thanks{display:grid;gap:6px;margin:0 0 16px;padding:16px 18px;border-radius:14px;background:linear-gradient(135deg,#fbf6ea,#f3ead6);border:1px solid #e6d6b0}
.subscription-thanks strong{font-size:1.05rem}.subscription-thanks p{margin:0;font-size:.92rem;color:#4a3f2c}.subscription-thanks .button-link{justify-self:start;margin-top:4px}
.console-contact{margin:0;font-size:.9rem}.console-contact a{font-weight:700}

/* Connexion — identité produit, couleurs dérivées du thème existant.
   Portée limitée à #login : aucun changement des thèmes mini-site ou établissement. */
.login-page {
  --auth-deep: color-mix(in srgb, var(--brand) 40%, #081c22);
  --auth-tint: color-mix(in srgb, var(--brand) 30%, #fff);
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  background: #f8faf9;
  padding: 20px;
  gap: 20px;
}
.login-page .login-scene {
  min-height: calc(100svh - 40px);
  align-items: stretch;
  padding: clamp(24px, 3vw, 48px);
  border-radius: 24px;
  background: radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--brand) 82%, #fff) -45%, transparent 65%),
    linear-gradient(145deg, var(--brand-strong), var(--auth-deep) 80%);
}
.login-page .login-scene::before { inset: auto -16rem -18rem auto; width: 40rem; height: 40rem; opacity: .5; }
.login-page .login-scene::after { display: none; }
.login-page .login-scene-copy { display: flex; flex-direction: column; max-width: 640px; width: 100%; }
.login-page .brand-lockup .brand-logo {
  object-fit: contain; background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.login-page .login-scene .brand-lockup { margin: 0 0 clamp(24px, 4svh, 40px); }
.login-page .brand-lockup strong { font-size: 1.65rem; letter-spacing: -.055em; }
.login-page .brand-lockup small { font-size: .63rem; letter-spacing: .18em; }
.login-page .brand-lockup.is-light small { color: #ffffffb5; }
.login-page .login-scene h1 {
  font-family: var(--font-ui); font-size: clamp(2.1rem, 3.6vw, 3.8rem);
  line-height: 1.1; letter-spacing: -.055em; margin: 0 0 24px; font-weight: 750;
}
.login-page .login-scene h1 span { color: var(--auth-tint); }
.login-page .login-scene p { font-size: 1rem; line-height: 1.7; color: #ffffffc7; max-width: 380px; }
/* Capture réelle du produit, avec données de démonstration explicitement indiquées. */
.login-product { margin: auto 0 0; padding-top: 24px; }
.login-product img { display:block; width:auto; max-width:100%; height:auto; max-height:34svh; margin-inline:auto; border:1px solid #ffffff50; border-radius:12px; box-shadow:0 24px 55px #0004; }
.login-product figcaption { margin-top:12px; font-size:.7rem; line-height:1.5; color:#ffffffb8; text-align:center; }
.login-page .login-side { background: transparent; align-content:start; padding: clamp(32px, 8svh, 80px) clamp(24px, 5vw, 80px) 32px; }
.login-page .auth-panel, .login-page .login-card { width: min(440px, 100%); }
.login-page .auth-panel .login-card { width: 100%; }
.login-page .login-card .brand-lockup { margin-bottom: 32px; }
.login-page .login-card h2 { font-family: var(--font-ui); font-size: 2rem; line-height: 1.15; letter-spacing: -.045em; margin: 0 0 12px; }
.login-page .login-card > p:not(.eyebrow, .error) { color: var(--muted); line-height: 1.65; }
.login-page .login-card label { color: var(--ink); font-size: .84rem; font-weight: 600; gap: 8px; margin: 18px 0; }
.login-page .login-card input:not([type=checkbox]), .login-page .login-card select { min-height: 52px; padding: 13px 16px; border-radius: 10px; border-color: #dbe3df; background: #fff; font-size: 16px; box-shadow: 0 2px 3px #132e2203; }
.login-page :is(input, select, button, a):focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; }
.login-page .primary { min-height: 52px; border-radius: 10px; background: var(--auth-deep); border-color: var(--auth-deep); font-weight: 700; box-shadow: 0 5px 12px #0000000a; }
.login-page .primary:hover { background: color-mix(in srgb, var(--auth-deep) 85%, #000); }
.login-page .auth-switch { background: #edf1ef; border-color: #e2e8e4; border-radius: 12px; margin-bottom: 36px; }
.login-page .auth-switch button { color: var(--muted); font-weight: 650; }
.login-page .auth-switch button[aria-pressed=true] { color: var(--auth-deep); background: white; }
.login-page .auth-panel .eyebrow { color: var(--auth-deep); }
.login-page .auth-consent input, .login-page .addon-choice input { accent-color: var(--brand); }
.login-page .signup-journey li.current { color: var(--auth-deep); border-color: var(--brand); }
.login-page .signup-journey li.current b { background: var(--auth-deep); }
.login-page .google-signin { min-height: 52px; font-size: .9rem; border-color: #dbe3df; }
.login-page .google-signin:hover { border-color: var(--brand); }
.login-page .error:empty { display: none; }
.login-page .error:not(:empty) { margin: 12px 0; }
@media (max-width: 900px) {
  .login-page { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); padding: 12px; gap: 0; }
  .login-page .login-scene { padding: 32px; min-height: calc(100svh - 24px); }
  .login-page .login-side { padding: 32px 24px; }
}
@media (max-width: 700px) {
  .login-page { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; align-content: start; }
  .login-page .login-scene { min-height: 0; padding: 24px; border-radius: 0 0 24px 24px; }
  .login-page .login-scene .brand-lockup { display: flex; margin: 0; }
  .login-page .login-scene .brand-logo { width: 42px; height: 42px; }
  .login-page .login-scene h1, .login-page .login-scene p, .login-page .login-product { display: none; }
  .login-page .login-side { padding: 32px 24px 40px; align-items: start; }
  .login-page .login-card .brand-lockup { display: none; }
  .login-page .login-card h2 { font-size: 1.75rem; }
  .login-page .auth-switch { margin-bottom: 28px; }
}

/* Identité commune des écrans professionnels ; --brand reste fourni par l'établissement. */
.app-shell { --line:#dfe7e3; --line-soft:#edf2ef; --shadow:0 6px 22px #173b2b05; }
/* Les anciens écrans de configuration déclarent leur police avec !important. */
.app-shell :is(h1,h2,h3) { font-family:var(--font-ui)!important; }
.app-shell h1 { font-weight:750; letter-spacing:-.045em; }
.app-shell h2 { font-weight:700; letter-spacing:-.025em; }
.app-shell .sidebar { border-inline-end:1px solid #ffffff15; box-shadow:none; }
.sidebar .sidebar-brand { min-height:74px; gap:10px; padding:0 4px 18px; border-bottom:1px solid #ffffff20; }
.sidebar .sidebar-brand .brand-logo { width:46px; height:46px; flex-basis:46px; }
.sidebar .sidebar-brand strong { font-size:1.42rem; letter-spacing:-.055em; line-height:1.1; }
.sidebar .sidebar-brand small { margin-top:6px; font-size:.53rem; letter-spacing:.1em; color:#ffffffb0; }
.app-shell .workspace-card { border-color:#ffffff20; background:#ffffff08; border-radius:12px; }
.app-shell .sidebar-nav { gap:5px; }
.app-shell .sidebar-nav a { min-height:46px; border-radius:9px; font-size:.88rem; }
.app-shell .sidebar-nav a.active { background:white; color:var(--brand-ink); box-shadow:0 3px 12px #0000000a; }
.app-shell .sidebar-nav a.active .nav-icon { background:var(--brand-soft); color:var(--brand-ink); }
.app-shell .topbar { background:#ffffffed; border-bottom:1px solid var(--line); box-shadow:none; backdrop-filter:blur(12px); }
.app-shell .topbar-title strong { font-family:var(--font-ui); font-weight:750; letter-spacing:-.025em; }
.app-shell .topbar-title small { color:var(--muted); }
.app-shell .page-head { margin-bottom:24px; }
.app-shell :is(.panel,.account-card,.analysis-metric) { border-color:var(--line); border-radius:16px; box-shadow:var(--shadow); }
.app-shell .panel { background:var(--surface); }
.app-shell :is(.primary,.button-link) { border-radius:10px; }
.app-shell .primary { font-weight:700; box-shadow:0 3px 10px #00000008; }
.app-shell .section-nav { border-radius:12px; }
.app-shell .section-nav button { border-radius:8px; }
.app-shell input:not([type=checkbox]):not([type=radio]),.app-shell select,.app-shell textarea { border-radius:9px; }
.app-shell :is(input,select,textarea):focus-visible { outline-color:var(--brand-ink); }
.app-shell .empty { border-radius:14px; background:var(--paper); }
.app-shell .account-button { border-radius:12px; }
.app-shell .account-menu,.app-shell .notification-panel { border-radius:14px; box-shadow:0 18px 48px #102b241c; }
.app-shell .profile-identity { background:var(--brand-strong); }
.app-shell :is(.analysis-focus,.profile-identity) h2 { color:inherit; }
@media(max-width:700px) {
 .app-shell .page-head { margin-bottom:18px; }
 .app-shell .sidebar .sidebar-brand { min-height:64px; }
 .app-shell :is(.panel,.account-card,.analysis-metric) { border-radius:12px; }
}

/* Contrôle direction : lecture immédiate, sans classement ni score des personnes. */
.control-screen{display:grid;gap:24px;min-width:0}.control-screen>*{min-width:0}.control-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.control-card h3{margin:0}.control-state{margin:3px 0 12px;color:var(--muted);font-size:.78rem}.control-card ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.control-card li{display:flex;justify-content:space-between;gap:8px;padding:9px;background:var(--paper);border-radius:9px}.control-card li span{font-size:.78rem;color:var(--muted)}.control-card li.control-outlier{background:#fff0d0;box-shadow:inset 3px 0 #d58b00}.control-median{margin:14px 0 0;color:var(--muted);font-size:.82rem}.control-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.control-table{width:100%;min-width:760px;border-collapse:collapse;font-variant-numeric:tabular-nums}.control-table th,.control-table td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.control-table th:first-child{position:sticky;left:0;z-index:1;text-align:left;background:var(--surface);box-shadow:1px 0 var(--line)}.control-table thead th{color:var(--muted);font-size:.72rem}.control-table tfoot th,.control-table tfoot td{font-weight:750;background:var(--paper)}.control-table tr:last-child>*{border-bottom:0}.direction-home-card ul{display:grid;gap:10px;padding-left:18px}.direction-home-card li small{display:block;color:var(--muted)}
@media(max-width:760px){.control-card ul{grid-template-columns:1fr 1fr}}
@media(max-width:390px){.control-card ul{grid-template-columns:1fr}.control-screen{gap:18px}.control-table-scroll{max-width:100%}}

/* Menu de gauche compact (Fahd, 23/10/2026) : tout le menu visible sans défiler sur un écran de 768 px de haut ;
   la section direction (ANALYSE) un peu détachée du travail courant. */
@media(min-width:861px){
.app-shell .sidebar{gap:8px;padding:12px 10px}
.app-shell .sidebar-brand{min-height:0;padding:0 4px 8px;gap:8px}
.app-shell .sidebar-brand .brand-logo{width:38px;height:38px;flex-basis:38px}
.app-shell .sidebar-brand strong{font-size:1.2rem}
.app-shell .sidebar-brand small{margin-top:3px}
.app-shell .workspace-card{padding:8px 10px;gap:4px}
.app-shell .workspace-head{margin-bottom:4px}
.app-shell .workspace-body{gap:8px;align-items:center}
.app-shell .workspace-logo-frame{width:36px;height:36px}
.app-shell .sidebar-nav{gap:1px}
.app-shell .sidebar-nav a{min-height:38px;padding:5px 10px}
.app-shell .nav-section{min-height:18px;margin:14px 10px 4px}
}

/* Créer un compte (Fahd, 23/10/2026) : le formulaire long étirait le panneau vert et laissait un grand vide avant
   l'image ; le panneau garde la hauteur de l'écran, comme pour « Se connecter », et reste visible au défilement. */
@media(min-width:701px){
.login-page .login-scene{position:sticky;top:12px;align-self:start;height:calc(100svh - 24px);min-height:0}
}

/* Clients en lignes (Fahd, 23/10/2026, sur le modèle de StepConvert) : une ligne par cliente, actions en fin de
   ligne ; la fiche s'ouvre à la place du répertoire, avec « Retour au répertoire », comme sur téléphone. */
.clients-screen .client-row{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.clients-screen .client-row>button{display:grid;grid-template-columns:36px minmax(0,1fr) auto;grid-template-areas:"av copy go" "av chips go" "av meta go";align-items:center;column-gap:10px;row-gap:2px}
.clients-screen .client-row .client-avatar{grid-area:av}
.clients-screen .client-row .client-copy{grid-area:copy;min-width:0}
.clients-screen .client-row .client-chips{grid-area:chips;display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.clients-screen .client-row .client-meta{grid-area:meta;display:flex;flex-wrap:wrap;gap:2px 10px}
.clients-screen .client-row .client-go{grid-area:go}
.clients-screen .client-row-actions{display:flex;gap:6px;flex-wrap:wrap;padding:0 6px 4px 52px}
.clients-screen .client-row-actions a{margin:0;width:auto;min-width:0;color:var(--brand-ink,var(--ink));background:var(--surface,#fff);min-height:32px;display:inline-flex;align-items:center;padding:0 10px;border:1px solid var(--line);border-radius:8px;font-size:.78rem;font-weight:600;text-decoration:none}
@media(min-width:861px){
.clients-screen .client-workspace{grid-template-columns:1fr}
.clients-screen .client-panel{position:static;max-height:none}
.clients-screen:not(.has-selection) .client-stage{display:none}
.clients-screen.has-selection .client-panel,.clients-screen.has-selection #client-search,.clients-screen.has-selection .client-filters,.clients-screen.has-selection .client-quickread,.clients-screen.has-selection .client-side-list{display:none}
.clients-screen .client-back{display:inline-flex;margin-bottom:12px;min-height:40px}
.clients-screen .client-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.clients-screen .client-row>button{grid-template-columns:36px minmax(160px,1.1fr) minmax(0,1.3fr) minmax(150px,.8fr) 16px;grid-template-areas:"av copy chips meta go";min-height:52px;padding:6px 10px}
.clients-screen .client-row-actions{padding:0 8px 0 0;flex-wrap:nowrap}
}
@media(min-width:861px) and (max-height:720px){
.app-shell .sidebar{gap:6px;padding:8px 10px}
.app-shell .sidebar-brand{padding-bottom:6px}
.app-shell .sidebar-brand small,.app-shell .workspace-card .workspace-text small,.app-shell .workspace-chip{display:none}
.app-shell .workspace-card{padding:6px 8px}
.app-shell .workspace-logo-frame{width:30px;height:30px}
.app-shell .sidebar-nav a{min-height:31px;padding:2px 10px}
.app-shell .nav-section{margin:8px 10px 2px}
}

/* Connexion : mot de passe oublie et renvoi du lien de confirmation (27/10/2026). */
.login-forgot,#login-resend:not([hidden]){display:block;text-align:center;margin-top:12px;font-weight:700}
#login-resend{width:100%;min-height:44px;background:none;border:0;color:inherit;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
/* Descripteur de marque optionnel : pastille (modèle Stepia, 28/10/2026), sans modifier la largeur des lockups. */
.brand-lockup .brand-copy,.sidebar-brand .brand-copy{min-width:0}
.brand-lockup .brand-name-line,.sidebar-brand .brand-name-line{display:flex;align-items:center;gap:.5rem;min-width:0;max-width:100%;white-space:nowrap}
.brand-lockup .brand-descriptor,.sidebar-brand .brand-descriptor{display:inline-block;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;padding:.24rem .58rem;border:1px solid currentColor;border-radius:999px;color:#0f766e;background:color-mix(in srgb,currentColor 12%,transparent);font-size:.625rem;font-weight:700;letter-spacing:.1em;line-height:1;text-transform:uppercase}
.brand-lockup.is-light .brand-descriptor,.sidebar-brand .brand-descriptor{color:#5eead4}
.sidebar-brand .brand-name-line{max-width:184px}
/* Vue STEP — lecture seule (29/10/2026) : bandeau posé par le serveur, toujours visible. */
/* 01/11/2026 : fine barre en haut, sur toute la largeur, hors de la grille du tableau de bord. */
.vue-step-bandeau{position:fixed;top:0;left:0;right:0;z-index:80;height:44px;box-sizing:border-box;display:flex;flex-wrap:nowrap;align-items:center;gap:var(--space-3);padding:0 var(--space-4);background:var(--ink);color:#fff;font-size:var(--text-small);white-space:nowrap;overflow:hidden}
.vue-step-bandeau strong{font-size:var(--text-small);flex:none}
.vue-step-bandeau span{min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:.85}
.vue-step-bandeau form{margin-left:auto;flex:none}
.vue-step-bandeau button{min-height:34px;padding:0 var(--space-3);border-radius:999px;border:1px solid #fff;background:#fff;color:var(--ink);font:inherit;font-weight:600;cursor:pointer}
body.vue-step{padding-top:44px}
body.vue-step .sidebar{top:44px;height:calc(100vh - 44px)}
body.vue-step #install-button,body.vue-step .global-search kbd{display:none!important}
@media (max-width:640px){.vue-step-bandeau span{display:none}}
/* Retours de Fahd du 31/10/2026 : rendez-vous à traiter mis en évidence dans l'agenda, icône Conversation, fil lisible. */
.agenda-work{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3);margin:0 0 var(--space-3);padding:var(--space-2) var(--space-3);border:1px solid #f1d58f;border-radius:var(--radius-small);background:#fff8e6;font-size:var(--text-small)}
.agenda-work-count strong{font-size:1.05rem;color:#8a4b0f}
.agenda-work-next,.agenda-work-messages{display:inline-flex;align-items:center;gap:var(--space-1);min-height:44px;padding:0 var(--space-3);border:1px solid #e7c27a;border-radius:999px;background:#fff;color:#8a4b0f;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.agenda-work-messages{margin-left:auto}
.agenda-recontact{display:flex;justify-content:flex-end;margin:0 0 var(--space-3)}
.agenda-recontact .agenda-work-messages{margin-left:0;border-color:var(--line);background:transparent;color:inherit;font-size:var(--text-small);font-weight:600}
.appointment.work-target,.agenda-screen .appointment.work-target{border-left:4px solid #d9822b;background:#fffaf0}
.week-event.work-target{border-top-color:#d9822b;background:#fffaf0}
.appointment.work-target .work-label,.week-event .work-label{display:inline-block;margin-bottom:var(--space-1);padding:2px var(--space-2);border-radius:999px;background:#fdebd0;color:#8a4b0f}
.appointment-actions .appointment-conversation,.agenda-screen .appointment-actions .appointment-conversation,.week-event-actions .appointment-conversation{flex:0 0 44px;min-width:44px;min-height:44px;padding:0;font-size:1rem;color:var(--brand);background:var(--surface)}
.work-channel{color:var(--brand)}
.message-author{display:block;margin-bottom:var(--space-1);color:var(--muted);font-size:.62rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.message.client .message-author{color:#3d5a52}
.message.assistant .message-author{color:#1f6a7d}
.message.equipe .message-author{color:#176145}
.message.automatique{justify-self:end;border:1px dashed #bfdce3;background:#f2f8fa}
.message.notification{border:1px solid #f2b8a8;border-left:4px solid #e0614a;background:#fff4f1}
.message.notification .message-author{color:#b4402b}
.message.notification .message-author::before{content:'🔔 '}
.message.notification p{font-weight:700;color:#7a2d1f}
.message p strong{font-weight:800}
/* Accueil recomposé (retours de Fahd du 01/11/2026) : « qu'est-ce que je dois faire maintenant ? ». Bureau ≥ 1100 px :
   deux colonnes équilibrées, programme du jour à gauche (8 lignes, la suite dans l'agenda), à droite ce qui attend un
   geste (À traiter d'abord) en cartes compactes. Entre 641 et 1099 px : programme pleine largeur puis cartes en grille.
   Téléphone : une colonne, programme puis cartes. */
.home-timeline .day-timeline>li:nth-child(n+9),.home-timeline .timeline>li:nth-child(n+9){display:none}
.home-timeline-more{margin-top:var(--space-2)}
.home-timeline-more[data-beyond-desktop='false']{display:none}
.home-sidebar .panel{padding:var(--space-3) var(--space-4);box-shadow:none}
.home-sidebar .panel-head{margin-bottom:var(--space-1);align-items:center}
.home-sidebar .panel-head h2{font-size:1.05rem;line-height:1.25}
.home-sidebar .section-kicker{margin-bottom:2px}
.home-sidebar .count-badge{min-height:28px;padding:.2rem .55rem}
.home-sidebar .replacer-list li{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--space-2);padding:var(--space-2) 0}
.home-sidebar .replacer-list li>div:first-child span{color:var(--muted);font-size:var(--text-small)}
.home-sidebar .replacer-actions{justify-content:flex-end;gap:var(--space-1)}
.home-sidebar .replacer-actions .button-link,.home-sidebar .replacer-actions button{min-height:44px;padding:0 var(--space-2);font-size:var(--text-small)}
.home-sidebar .replacer-solutions{grid-column:1/-1}
@media(min-width:1100px){
  .home-dashboard-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:var(--space-4)}
  .home-sidebar{grid-row:auto;align-content:start}
  .home-timeline .appointment{grid-template-columns:4.4rem minmax(0,1fr) auto;row-gap:var(--space-2)}
  .home-timeline .appointment-actions{grid-column:2/-1;justify-content:flex-start}
}
@media(min-width:641px) and (max-width:1099px){
  .home-dashboard-grid{grid-template-columns:1fr}
  .home-sidebar{grid-row:2;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));align-items:start}
}
@media(max-width:640px){
  .home-timeline .day-timeline>li:nth-child(n+6),.home-timeline .timeline>li:nth-child(n+6){display:none}
  .home-timeline-more[data-beyond-desktop='false']{display:flex}
  .home-sidebar .replacer-list li{grid-template-columns:1fr}
  .home-sidebar .replacer-actions{justify-content:flex-start}
}

.rc-avancement{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.rc-avancement-titre{margin:0 0 4px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.rc-avancement-chiffre{display:flex;align-items:baseline;gap:4px;margin:0 0 8px}
.rc-avancement-chiffre strong{font:700 32px/1 Georgia,serif;color:var(--ink)}
.rc-avancement-chiffre span{color:var(--muted);font-size:14px}
.rc-avancement progress{width:100%;height:8px;border:0;border-radius:999px;background:#e3ebe6;overflow:hidden;appearance:none}
.rc-avancement progress::-webkit-progress-bar{background:#e3ebe6;border-radius:999px}
.rc-avancement progress::-webkit-progress-value{background:var(--brand);border-radius:999px}
.rc-avancement progress::-moz-progress-bar{background:var(--brand);border-radius:999px}
.rc-avancement-ok{margin:8px 0 0;color:#2f6b4f;font-size:13px;font-weight:600}
.rc-avancement-alerte{margin:8px 0 0;color:#8a5a10;font-size:13px;font-weight:600}
.rc-conseil{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:14px;background:linear-gradient(150deg,#1d4a3c,#16352c);color:#e6f1eb}
.rc-robot{flex:none;width:40px;height:40px;color:#bfe3cf}
.rc-conseil-robot{flex:none;width:56px;height:56px;object-fit:contain}
.rc-conseil p{margin:0}.rc-conseil strong{display:block;margin-bottom:4px;color:#fff;font-size:13px}
.rc-conseil span{font-size:13px;line-height:1.5}
.rc-fenetre{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rc-carte{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.rc-carte>p{margin:0 0 8px}
.rc-carte-titre{color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.rc-badge{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border-radius:999px;font-weight:700;background:#eef0ee;color:var(--ink)}
.rc-badge.is-active{background:#e2f2e9;color:#1f5a40}
.rc-badge.is-en_pause,.rc-badge.is-en_attente{background:#fbf0dc;color:#7a4e0c}
.rc-motif{font-size:13px;color:var(--muted)}
.rc-numero{font:700 22px/1.2 Georgia,serif;overflow-wrap:anywhere}.rc-numero a{color:var(--ink)}
.rc-numero-carte small,.rc-numero-vide{color:var(--muted);font-size:13px;line-height:1.5}
.rc-fenetre>.rc-conseil{grid-column:1/-1}
.rc-etapes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.rc-etape{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfaf6}
.rc-etape>div{display:grid;gap:2px;flex:1 1 140px;min-width:0}.rc-etape small{color:var(--muted);font-size:12px}
.rc-etape-icone{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#fbf0dc;color:#7a4e0c;font-weight:700}
.rc-etape.is-prete .rc-etape-icone{background:#e2f2e9;color:#1f5a40}
.rc-etape .button-link{min-height:44px}
.rc-jamais ul{margin:0;padding-left:18px;display:grid;gap:6px;font-size:14px;line-height:1.5}
.establishment-form .form-subtitle{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:15px;font-weight:700;color:var(--brand)}
.rc-jamais{grid-column:1/-1}

/* Paramètres en menu horizontal (décisions de Fahd du 01/11/2026, patron des Réglages de StepIA) : cinq étapes en
   onglets défilants en haut, toute la largeur pour le contenu, une seule étape visible dans le panneau unique. */
body:not(.guided-setup) .settings-screen{display:block;max-width:none;margin-inline:0}
body:not(.guided-setup) .settings-screen>*+*{margin-top:16px}
.settings-resume{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:12px;align-items:start}
.settings-resume>.rc-avancement,.settings-resume>.rc-conseil{margin:0}
.settings-resume .rc-robot{width:44px;height:44px}
.rc-etapes-compactes{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;margin:10px 0 0;padding:0;list-style:none}
.rc-etapes-compactes .rc-etape{padding:4px 0;border:0;background:none;flex-wrap:nowrap}
.rc-etapes-compactes .rc-etape-icone{width:22px;height:22px;font-size:12px;flex:none}
.rc-avancement>.button-link{margin-top:8px;min-height:44px}
body:not(.guided-setup) .settings-screen>.section-nav{position:sticky;top:0;z-index:6;display:flex;flex-direction:row;align-items:stretch;gap:6px;margin:16px 0 0;padding:6px;overflow-x:auto;overflow-y:hidden;border:1px solid var(--line);border-radius:14px;background:var(--paper);scrollbar-width:thin;box-shadow:0 4px 14px #1b29290a}
body:not(.guided-setup) .settings-screen>.section-nav button{display:flex;align-items:center;gap:7px;flex:0 0 auto;white-space:nowrap;text-align:left;min-height:44px;padding:0 14px;border-radius:10px;border-color:transparent;font-size:14px;font-weight:700}
body:not(.guided-setup) .settings-screen>.section-nav button.active{color:#fff;background:var(--brand)}
.settings-ok{font-size:12px;color:#1f6b47}
.section-nav button.active .settings-ok{color:#d9efe3}
body:not(.guided-setup) #settings-organization{margin-top:12px}
body:not(.guided-setup) #settings-organization>summary{display:none}
body:not(.guided-setup) #settings-organization .config-step-number,
body:not(.guided-setup) #settings-organization [data-config-step=notifications]>.config-step-head{display:none}
.guided-setup .settings-groupe-tete,.guided-setup .settings-bloc,.guided-setup .settings-resume{display:none!important}
.settings-groupe-tete{margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.settings-groupe-tete h2{margin:0 0 4px;font:600 26px/1.15 Georgia,serif;color:var(--ink)}
.settings-groupe-tete p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.settings-bloc{margin:0 0 20px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff;min-width:0}
.settings-bloc>h3{margin:0 0 4px;font-size:18px}
.settings-bloc.rc-bloc{padding:0;border:0;background:none}
.rc-mascotte{display:flex;align-items:center;gap:16px;margin:0 0 12px;padding:14px 18px;background:linear-gradient(120deg,#eef4f0,#f8faf7);border:1px solid #dbe6df;border-radius:16px}
.rc-mascotte img{width:84px;height:84px;flex:none;object-fit:contain}
.rc-mascotte strong{display:block;color:var(--ink);font-size:17px}
.rc-mascotte span{color:var(--muted);font-size:14px;line-height:1.5}
.rc-fenetre>.rc-conseil{display:none}
.rc-sait{grid-column:1/-1}
.rc-cases{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.rc-contenus-ligne>.rc-contenus{flex-basis:100%}
.rc-contenus{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 0;padding:0;list-style:none}
.rc-contenus>li{min-width:0}
.rc-contenu-lecture{display:grid;gap:2px;padding:12px;border:1px dashed var(--line);border-radius:10px;background:#fff}
.rc-contenu-lecture small{color:var(--muted);font-size:12px;line-height:1.45}
.settings-screen .rc-contenu{margin:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:none}
.rc-interrupteur{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.rc-interrupteur span{display:grid;gap:2px}.rc-interrupteur small{color:var(--muted);font-size:12px;line-height:1.45}
.settings-screen .rc-interrupteur input[type=checkbox]{width:22px;height:22px;min-height:22px;margin:0;accent-color:var(--brand)}
.rc-interrupteur em{font-style:normal;font-weight:800;font-size:13px;padding:2px 10px;border-radius:999px}
.rc-oui{background:#e2f2e9;color:#1f5a40}.rc-non{background:#f1efe9;color:#5f5a50}
.rc-interrupteur:has(input[name=actif]:checked) .rc-non,.rc-interrupteur:not(:has(input[name=actif]:checked)) .rc-oui{display:none}
/* Règles de la Réceptionniste (02/11/2026, modèle StepIA) : cartes à choix compactes, mobile d'abord. */
.rc-regles{grid-column:1/-1;display:grid;gap:10px}
.rc-regles-form{display:grid;gap:10px}
.rc-choix{margin:0;padding:0;border:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;min-width:0}
.rc-choix legend{font-weight:800;font-size:14px;margin-bottom:6px;padding:0}
.rc-option{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start;padding:10px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;min-height:44px}
.rc-option:has(input:checked){border-color:var(--brand);background:color-mix(in srgb,var(--brand) 7%,#fff)}
.settings-screen .rc-option input[type=radio]{width:18px;height:18px;min-height:18px;margin:2px 0 0;accent-color:var(--brand)}
.rc-option span{display:grid;gap:2px;min-width:0}.rc-option small{color:var(--muted);font-size:12px;line-height:1.4}
.rc-reco{justify-self:start;font-style:normal;font-size:11px;font-weight:800;color:var(--brand);background:color-mix(in srgb,var(--brand) 12%,#fff);border-radius:999px;padding:1px 8px}
.rc-regles-note{margin:0;color:var(--muted);font-size:13px}
.rc-regle-confirmation{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;margin:0;padding-top:8px;border-top:1px solid var(--line)}
.rc-regle-confirmation span{color:var(--muted);font-size:13px;flex:1 1 180px}
@media(max-width:600px){.rc-choix{grid-template-columns:minmax(0,1fr)}.rc-regles-form .primary{width:100%}}
.rc-contenu [data-account-status]{margin:4px 0 0;font-size:12px;color:var(--muted)}
.notif-equipe{margin-top:20px}
.notif-equipe .telegram-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.notif-destinataire{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.notif-destinataire>header{display:grid;gap:2px;margin-bottom:8px}.notif-destinataire h4{margin:0;font-size:16px}
.notif-destinataire>header small{color:var(--muted);font-size:12px}
.notif-canaux{display:grid;gap:8px;margin-top:12px}
.notif-canal{margin:0;font-size:14px}
.notif-canal.is-bientot{color:var(--muted);padding:8px 12px;border:1px dashed var(--line);border-radius:10px;opacity:.75}
/* Bot propre de l'établissement (02/11/2026) : deux étapes courtes, le jeton collé replié en dernier recours. */
.tg-bot{display:grid;gap:8px;min-width:0}.tg-bot small{color:var(--muted);font-size:12px}.tg-bot a[dir=ltr]{overflow-wrap:anywhere}
.tg-etape{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;font-size:14px}
.tg-etape>span{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--line);font-size:12px;font-weight:600}
.tg-plus{font-size:13px}.tg-plus summary{cursor:pointer;color:var(--muted)}.tg-plus ol{margin:6px 0;padding-inline-start:18px}
.tg-plus input{width:100%;min-width:0}
/* Logo de l'établissement (demande de Fahd du 01/11/2026) : l'image remplit son cadre fixe en entier, sans déformation ni
   débordement, quel que soit son format (un logo très haut n'est plus rogné : la hauteur en % d'un élément de grille
   ne se résolvait pas). */
.workspace-logo-frame>.workspace-logo{position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box;object-fit:contain}
.media-tile:has([value=logo]) .media-preview{position:relative}
.media-tile:has([value=logo]) .media-preview img{position:absolute;inset:0;box-sizing:border-box}
@media(max-width:850px){.settings-resume,.notif-equipe .telegram-roles,.rc-contenus,.rc-fenetre,.rc-etapes{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.settings-resume>.rc-conseil{display:none}.settings-bloc{padding:14px}.rc-mascotte{padding:12px;gap:12px}.rc-mascotte img{width:64px;height:64px}.settings-groupe-tete h2{font-size:22px}.rc-carte{padding:12px}}

/* Accueil équilibré (demande de Fahd du 02/11/2026) : deux colonnes de hauteur proche. À gauche le programme du jour,
   puis « Quoi faire ensuite » et « Direction » ; à droite ce qui attend un geste (À traiter, À replacer). Trois lignes
   au plus par cadre, la suite sous « Voir tout (N) ». Une journée vide reste compacte. Sous 1100 px : une colonne,
   programme, puis À traiter et À replacer, puis conseil et Direction. */
.home-main{display:grid;gap:var(--space-3);align-content:start}
.home-main>.panel{margin:0}
.home-main .home-timeline{margin-bottom:0}
.home-day-empty{min-height:0;padding:var(--space-4) var(--space-5)}
.home-more>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;border-top:1px solid var(--line-soft);color:var(--brand-ink);font-size:var(--text-small);font-weight:800;list-style:none}
.home-more>summary::-webkit-details-marker{display:none}
.home-more>summary::after{content:'›';margin-left:6px;transition:transform .15s}
.home-more[open]>summary::after{transform:rotate(90deg)}
.home-main .direction-home-card{padding:var(--space-3) var(--space-4);box-shadow:none}
.home-main .direction-home-card h2{font-size:1.05rem;line-height:1.25}
.home-main .direction-home-card .panel-head p{margin:2px 0 0;color:var(--muted);font-size:var(--text-small)}
.home-main .direction-home-card ul{gap:6px;margin:var(--space-2) 0 0;padding:0;list-style:none}
.home-main .direction-home-card li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px var(--space-2);padding:var(--space-1) 0;border-top:1px solid var(--line-soft)}
.home-main .direction-home-card li small{grid-column:1}
.home-main .direction-home-card li>a{grid-column:2;grid-row:1/span 2;min-height:44px;display:inline-flex;align-items:center;font-size:var(--text-small)}
.home-main .direction-home-card .panel-footer-link{display:flex;align-items:center;width:100%;min-height:44px;border-top:1px solid var(--line-soft)}
@media(prefers-reduced-motion:reduce){.home-more>summary::after{transition:none}}
.home-calm h2{margin:2px 0 4px;font-size:1.05rem;line-height:1.25}.home-calm p{margin:0;color:var(--muted);font-size:var(--text-small)}
.home-timeline .day-timeline>li:nth-child(n+5),.home-timeline .timeline>li:nth-child(n+5){display:none}
.home-main .health-panel{padding:var(--space-3) var(--space-4)}
.home-main .health-panel .panel-head{margin-bottom:var(--space-1)}
.home-main .health-panel .panel-head h2{font-size:1.05rem}
.home-main .health-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px var(--space-3);padding:var(--space-2) 0}
.home-main .health-list li>a{grid-column:2;grid-row:1/span 2}
.home-main .health-list p{margin:0}
@media(min-width:1100px){.home-dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.home-timeline .appointment{grid-template-columns:4.4rem minmax(0,1fr) auto auto;align-items:center;min-height:56px;padding-block:var(--space-2)}.home-timeline .appointment-actions{grid-column:auto}
  .home-main .direction-home-card ul{gap:0}.home-main .direction-home-card li{grid-template-columns:auto minmax(0,1fr) auto;padding:0}.home-main .direction-home-card li small{grid-column:2;grid-row:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-main .direction-home-card li>a{grid-column:3;grid-row:1}}
@media(max-width:1099px){.home-main{display:contents}.home-main>.home-timeline{order:1}.home-sidebar{order:2;min-width:0}.home-main>:not(.home-timeline){order:3}}
@media(max-width:640px){.home-timeline .day-timeline>li:nth-child(n+4),.home-timeline .timeline>li:nth-child(n+4){display:none}.home-main .health-list li{grid-template-columns:1fr}.home-main .health-list li>a{grid-column:1;grid-row:auto}.home-day-empty{padding:var(--space-3)}.home-main .direction-home-card li{grid-template-columns:1fr}.home-main .direction-home-card li>a{grid-column:1;grid-row:auto;min-height:44px}}

/* Paramètres façon StepIA (GO de Fahd du 02/11/2026) : carte de rubriques à gauche avec leur état, « Votre Réceptionniste
   sait » et le conseil dessous ; à droite fil d'Ariane, titre, phrase, puis la barre d'onglets de « Mon établissement ».
   Un seul panneau (`data-focus`) : la rubrique et l'onglet actifs sont déduits de ce panneau, sans script. Rubrique active
   en bleu plein (demande explicite de Fahd, couleur de StepIA), onglet actif en pastille sombre. */
.rg{--rg-bleu:#2f6bff;--rg-nuit:#0b1e3f}
body:not(.guided-setup) .settings-screen.rg{display:block;max-width:none;margin-inline:0}
body:not(.guided-setup) #settings-organization.section-panel{margin:0;padding:8px 0 0;border:0;background:none;box-shadow:none;overflow:visible}
body:not(.guided-setup) #settings-organization.section-panel::before{display:none}
.rg-grille{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}
.rg-colonne{position:sticky;top:76px;display:grid;gap:14px;min-width:0}
.rg-rubriques{display:grid;gap:4px;padding:8px;border:1px solid var(--line);border-radius:18px;background:#fff}
.rg-rubrique{--rg-actif:var(--rg-bleu);display:grid;gap:2px;align-content:center;min-height:58px;padding:9px 16px;border:0;border-radius:13px;background:none;color:var(--ink);text-align:start;cursor:pointer}
.rg-rubrique:hover{background:var(--soft)}
.rg-rubrique>strong{font-size:15px;font-weight:700}
.rg-etat{color:var(--muted);font-size:12px;font-weight:500}
.rg-etat.is-complete{color:#15803d}
.rg-onglet{--rg-actif:var(--rg-nuit);display:flex;align-items:center;gap:7px;flex:0 0 auto;white-space:nowrap;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:none;color:#3b4b66;font-size:14px;font-weight:600;cursor:pointer}
.rg-onglet:hover{background:var(--soft)}
#settings-organization[data-focus=activite] [data-actif-pour~=activite],
#settings-organization[data-focus=etablissement] [data-actif-pour~=etablissement],
#settings-organization[data-focus=presentation] [data-actif-pour~=presentation],
#settings-organization[data-focus=prestations] [data-actif-pour~=prestations],
#settings-organization[data-focus=publication] [data-actif-pour~=publication],
#settings-organization[data-focus=notifications] [data-actif-pour~=notifications],
#settings-organization[data-focus=assistant] [data-actif-pour~=assistant],
#settings-organization[data-focus=acces] [data-actif-pour~=acces],
#settings-organization[data-focus=liens] [data-actif-pour~=liens],
#settings-organization[data-focus=regles] [data-actif-pour~=regles],
#settings-organization[data-focus=business-pack] [data-actif-pour~=business-pack]{background:var(--rg-actif);color:#fff;box-shadow:0 8px 20px rgba(29,59,128,.22)}
#settings-organization[data-focus=activite] [data-actif-pour~=activite] .rg-etat,
#settings-organization[data-focus=etablissement] [data-actif-pour~=etablissement] .rg-etat,
#settings-organization[data-focus=presentation] [data-actif-pour~=presentation] .rg-etat,
#settings-organization[data-focus=prestations] [data-actif-pour~=prestations] .rg-etat,
#settings-organization[data-focus=publication] [data-actif-pour~=publication] .rg-etat,
#settings-organization[data-focus=notifications] [data-actif-pour~=notifications] .rg-etat,
#settings-organization[data-focus=assistant] [data-actif-pour~=assistant] .rg-etat,
#settings-organization[data-focus=acces] [data-actif-pour~=acces] .rg-etat,
#settings-organization[data-focus=liens] [data-actif-pour~=liens] .rg-etat,
#settings-organization[data-focus=regles] [data-actif-pour~=regles] .rg-etat,
#settings-organization[data-focus=business-pack] [data-actif-pour~=business-pack] .rg-etat{color:#dce7ff}
#settings-organization[data-focus=activite] [data-actif-pour~=activite] .settings-ok,
#settings-organization[data-focus=etablissement] [data-actif-pour~=etablissement] .settings-ok,
#settings-organization[data-focus=presentation] [data-actif-pour~=presentation] .settings-ok,
#settings-organization[data-focus=prestations] [data-actif-pour~=prestations] .settings-ok,
#settings-organization[data-focus=publication] [data-actif-pour~=publication] .settings-ok,
#settings-organization[data-focus=notifications] [data-actif-pour~=notifications] .settings-ok,
#settings-organization[data-focus=assistant] [data-actif-pour~=assistant] .settings-ok,
#settings-organization[data-focus=acces] [data-actif-pour~=acces] .settings-ok,
#settings-organization[data-focus=liens] [data-actif-pour~=liens] .settings-ok,
#settings-organization[data-focus=business-pack] [data-actif-pour~=business-pack] .settings-ok{color:#cbd6eb}
.rg-aide{display:grid;gap:14px}
.rg-aide .rc-avancement{padding:18px;border-radius:18px;background:#fff}
.rc-avancement-tete{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.rc-avancement-tete .rc-avancement-titre{margin:0}
.rc-avancement-robot{width:44px;height:44px;flex:none;object-fit:contain}
.rg-aide .rc-avancement-chiffre strong{font-size:34px}
.rg-aide .rc-avancement progress{width:100%;height:8px}
.rg-aide .rc-etapes-compactes{display:none}
.rg-aide .rc-conseil{margin:0}
.rg-principal{min-width:0}
.rg-tete{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}
.rg-tete>div:first-child{min-width:0}
.rg-ariane{margin:0 0 6px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.rg-tete h1{margin:0 0 6px;font:600 30px/1.15 Georgia,serif;color:var(--ink);outline:none}
.rg-phrase{margin:0;max-width:640px;color:var(--muted);font-size:14px;line-height:1.5}
.rg-actions{flex:none}
.rg-enregistrer{min-height:44px}
.rg-onglets{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;margin:0 0 18px;padding:6px;border:1px solid var(--line);border-radius:14px;background:#fff;scrollbar-width:thin}
.rg-resume{margin:0 0 8px;color:var(--ink)}
.rg-resume span::before{content:' · ';color:var(--muted)}
.rg .config-step .settings-context{display:block;margin:0 0 12px;padding:0;border:0;background:none}
.rg .config-step .settings-context>div:first-child,.rg .config-step .settings-context>a{display:none}
body:not(.guided-setup) #settings-organization[data-focus=activite] [data-groupe]:not([data-groupe~=activite]),
body:not(.guided-setup) #settings-organization[data-focus=etablissement] [data-groupe]:not([data-groupe~=etablissement]),
body:not(.guided-setup) #settings-organization[data-focus=presentation] [data-groupe]:not([data-groupe~=presentation]),
body:not(.guided-setup) #settings-organization[data-focus=prestations] [data-groupe]:not([data-groupe~=prestations]),
body:not(.guided-setup) #settings-organization[data-focus=publication] [data-groupe]:not([data-groupe~=publication]),
body:not(.guided-setup) #settings-organization[data-focus=notifications] [data-groupe]:not([data-groupe~=notifications]),
body:not(.guided-setup) #settings-organization[data-focus=assistant] [data-groupe]:not([data-groupe~=assistant]),
body:not(.guided-setup) #settings-organization[data-focus=acces] [data-groupe]:not([data-groupe~=acces]),
body:not(.guided-setup) #settings-organization[data-focus=liens] [data-groupe]:not([data-groupe~=liens]),
body:not(.guided-setup) #settings-organization[data-focus=regles] [data-groupe]:not([data-groupe~=regles]),
body:not(.guided-setup) #settings-organization[data-focus=business-pack] [data-groupe]:not([data-groupe~=business-pack]){display:none}
body:not(.guided-setup) #settings-organization:not([data-focus=prestations]):not([data-focus=assistant]) .config-step-head{display:none}
body:not(.guided-setup) #settings-organization .settings-bloc:not(.rc-bloc)>h3,
body:not(.guided-setup) #settings-organization .settings-bloc:not(.rc-bloc)>h3+.setting-explainer{display:none}
body:not(.guided-setup) #settings-organization[data-focus=prestations] .config-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start}
body:not(.guided-setup) #settings-organization[data-focus=prestations] .config-steps>.config-step{grid-column:auto!important;margin:0}
#settings-organization[data-focus=prestations] [data-config-step=visibilite]{grid-column:1/-1}
body:not(.guided-setup) #settings-organization[data-focus=prestations] .config-steps>[data-config-step=visibilite]{grid-column:1/-1!important}
.guided-setup .rg-colonne,.guided-setup .rg-tete,.guided-setup .rg-onglets{display:none!important}
.guided-setup .rg-grille{display:block}
@media(max-width:900px){
  .rg-grille{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
  .rg-colonne{display:contents}
  .rg-rubriques{order:1;margin-bottom:12px}
  .rg-principal{order:2}
  .rg-aide{order:3;margin-top:16px}
  .rg-aide>.rc-conseil{display:none}
  .rg-rubriques{display:flex;overflow-x:auto;overflow-y:hidden;gap:6px;padding:6px;border-radius:14px;scrollbar-width:thin}
  .rg-rubrique{flex:0 0 auto;min-height:48px;padding:6px 14px;white-space:nowrap}
  .rg-rubrique>strong{font-size:14px}
  .rg-tete{display:block}
  .rg-tete h1{font-size:25px}
  .rg-actions{margin-top:12px}
  body:not(.guided-setup) #settings-organization[data-focus=prestations] .config-steps{grid-template-columns:minmax(0,1fr)!important}
  body:not(.guided-setup) #settings-organization[data-focus=prestations] .config-steps>.config-step{grid-column:1/-1!important}
}
@media(max-width:600px){.rg .config-step{padding:16px}}
.included-messages .soon{font-style:normal;font-size:.72rem;font-weight:600;padding:1px 8px;border-radius:999px;background:rgba(0,0,0,.06);margin-inline-start:4px;white-space:nowrap}

/* ===================================================================   Densité du 02/11/2026 (demande de Fahd) : « la première vue, sans défiler, doit afficher le maximum ».
   Une seule échelle pour toutes les pages : titres (--page-title, --section-title, --card-title), écarts
   (--page-gap, --panel-pad) et hauteur des commandes sur ordinateur (--control-height). Sur téléphone et à
   l'écran tactile, toute cible garde 44 px (fiche de design). Bloc final : il remplace les tailles précédentes.
   ========================================================================== */
.page{padding-top:var(--page-gap)}
#screen .page-head,#screen .home-page-head{min-height:0;margin:0 0 var(--page-gap);gap:var(--space-2) var(--space-3);align-items:center}
#screen .page-head h1,#screen .home-page-head h1,#screen .compact-head h1{margin:0;font-size:var(--page-title)!important;line-height:1.2;letter-spacing:-.015em}
#screen :is(.agenda-screen,.workspace-screen) .page-head :is(.eyebrow,p:not(.eyebrow)),#screen .home-page-head :is(.eyebrow,p:not(.eyebrow)){display:none}
#screen :is(.agenda-screen,.workspace-screen,.home-dashboard-grid) h2{font-size:var(--section-title);line-height:1.25}
#screen :is(.agenda-screen,.workspace-screen,.home-dashboard-grid) .panel,#screen :is(.agenda-screen,.workspace-screen,.home-dashboard-grid).panel{padding:var(--panel-pad)}
#screen :is(.agenda-screen,.workspace-screen,.home-dashboard-grid) .section-kicker{margin-bottom:2px;font-size:.625rem;letter-spacing:.1em}
#screen :is(.agenda-screen,.workspace-screen,.home-dashboard-grid) :is(.section-heading,.panel-head){margin-bottom:var(--space-2);gap:var(--space-2)}
#screen :is(.agenda-screen,.workspace-screen,.home-dashboard-grid) :is(.section-heading,.panel-head) h2{font-size:var(--section-title)}
#screen :is(.agenda-screen,.workspace-screen,.home-dashboard-grid) :is(.section-heading>p,.panel-head p){margin:0;color:var(--muted);font-size:var(--text-small)}
@media (pointer:fine) and (min-width:861px){
  #screen :is(.agenda-screen,.workspace-screen,.home-dashboard-grid) :is(button,.button-link,summary,input:not([type=checkbox]):not([type=radio]),select),#screen .client-link-bar button{min-height:var(--control-height)}
  #screen :is(.agenda-screen,.workspace-screen,.home-dashboard-grid) :is(button,.button-link),#screen .client-link-bar button{padding:var(--space-1) var(--space-3)}
  #screen :is(.agenda-screen,.workspace-screen,.home-dashboard-grid) .primary{min-height:var(--control-height);box-shadow:none}
}

/* Accueil */
.client-link-bar{padding:var(--space-2) var(--space-3);margin-bottom:var(--page-gap)}
.home-stats{margin-bottom:var(--page-gap)}
.home-stats a{min-height:76px;padding:var(--space-2) var(--space-3)}
.home-stat-value{font-size:1.5rem}
.home-stats [data-metric-description]{display:none}

/* Agenda : barre de commandes sur une ligne, en-tête du jour compact, lignes de rendez-vous de 1 à 2 lignes. */
.agenda-screen .agenda-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin:0 0 var(--page-gap);padding:var(--space-2) var(--space-3)}
.agenda-screen .agenda-view-controls,.agenda-screen .agenda-date-controls,.agenda-screen .agenda-date-navigation,.agenda-screen .agenda-filters{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin:0}
.agenda-screen .agenda-filters label{display:grid;gap:0;font-size:0}
.agenda-screen .agenda-view-controls,.agenda-screen .agenda-date-controls{flex:0 1 auto;width:auto;grid-template-columns:none}
.agenda-screen .agenda-filters input,.agenda-screen .agenda-filters select{font-size:var(--text-small)}
.agenda-screen .agenda-surface>.panel-head{align-items:center;margin-bottom:var(--space-2);padding-bottom:var(--space-2)}
.agenda-screen .agenda-surface>.panel-head .section-kicker,.agenda-screen .agenda-period-hint{display:none}
.agenda-screen .agenda-total{font-size:var(--text-small)}
.agenda-screen .agenda-total span{display:none}
.agenda-screen .agenda-work{margin-bottom:var(--space-2);padding:var(--space-1) var(--space-3)}
:is(.agenda-screen,.home-timeline) .timeline{gap:6px}
:is(.agenda-screen,.home-timeline) .appointment{grid-template-columns:4.2rem minmax(0,1fr) auto auto;align-items:center;gap:var(--space-1) var(--space-3);
  min-height:0;padding:6px var(--space-3);border:1px solid var(--line);border-inline-start:4px solid var(--pc,var(--brand));border-radius:10px;
  background:color-mix(in srgb,var(--pc,var(--brand)) 6%,var(--surface))}
:is(.agenda-screen,.home-timeline) .appointment:has(.status-demande){border-inline-start-color:var(--pc,var(--accent))}
:is(.agenda-screen,.home-timeline) .appointment.work-target{background:var(--accent-soft)}
:is(.agenda-screen,.home-timeline) .appointment time{display:grid;gap:0;font-size:var(--text-small);line-height:1.25}
:is(.agenda-screen,.home-timeline) .appointment time span{font-size:var(--text-micro)}
:is(.agenda-screen,.home-timeline) .appointment-copy{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px var(--space-2);line-height:1.3}
:is(.agenda-screen,.home-timeline) .appointment-copy strong{order:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:var(--text-body)!important}
:is(.agenda-screen,.home-timeline) .appointment-copy>small{order:3;flex:1 1 100%;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--text-small)}
:is(.agenda-screen,.home-timeline) .appointment-copy .work-label{order:2;margin:0}
:is(.agenda-screen,.home-timeline) .appointment-copy .visit-step{order:2}
:is(.agenda-screen,.home-timeline) .appointment .status{padding:2px var(--space-2);font-size:var(--text-micro)}
:is(.agenda-screen,.home-timeline) .appointment-actions{gap:4px;flex-wrap:nowrap}
:is(.agenda-screen,.home-timeline) .appointment-actions button{padding:2px var(--space-2);font-size:var(--text-small)}
.agenda-screen .timeline-gap{min-height:0}
.agenda-screen .timeline-gap button{min-height:40px;padding:4px var(--space-3)}
.agenda-screen .timeline-gap button small{display:none}
.agenda-screen .gap-shape{width:24px;height:24px}
.agenda-screen .week-event{border:1px solid var(--line);border-inline-start:4px solid var(--pc,var(--brand));background:color-mix(in srgb,var(--pc,var(--brand)) 6%,var(--surface));padding:6px var(--space-2)}
.agenda-screen .week-event[data-status='demande']{border-inline-start-color:var(--pc,var(--accent))}

/* Visite à plusieurs prestations : petite pastille sobre, au lieu de « 1/2 » en capitales. */
/* Accueil (décision du 02/11 : actions sur la même ligne au bureau) : colonne d'heure et gestes resserrés pour laisser
   la place au nom de la cliente. */
.home-timeline .appointment{grid-template-columns:3.2rem minmax(72px,1fr) auto auto;gap:4px 6px;padding-inline:6px}
.home-timeline .appointment-actions{gap:3px}
.home-timeline .appointment-actions button{padding:2px 6px;font-size:var(--text-micro)}
.home-timeline .appointment .status{padding:1px 6px}
.visit-step{display:inline-flex;align-items:center;gap:4px;padding:0 7px;border:1px solid color-mix(in srgb,var(--pc,var(--brand)) 35%,var(--line));
  border-radius:var(--radius-pill);color:var(--pc,var(--brand-ink));background:var(--surface);font-size:var(--text-micro);font-weight:700;line-height:1.6;white-space:nowrap}
.visit-step::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}

/* Couleur par praticienne : dérivée (practitioner-colors.ts), toujours accompagnée du nom. */
.pc-0{--pc:#2563a6}.pc-1{--pc:#b4316f}.pc-2{--pc:#2e7d4f}.pc-3{--pc:#7a4cb8}.pc-4{--pc:#b5501b}
.pc-5{--pc:#0e7480}.pc-6{--pc:#66751c}.pc-7{--pc:#4648b8}.pc-8{--pc:#8a5a3c}.pc-9{--pc:#566573}
.pc-dot{display:inline-block;flex:none;width:10px;height:10px;margin-inline-end:6px;border-radius:50%;background:var(--pc,var(--brand));vertical-align:baseline}
.team-legend{display:flex;flex-wrap:wrap;gap:4px var(--space-3);margin:0 0 var(--space-2);padding:0;list-style:none;font-size:var(--text-small);font-weight:650}
.team-legend li{display:inline-flex;align-items:center}

/* Prestations : synthèse, outils et cartes compactes. */
.services-screen .services-summary{margin:0 0 var(--page-gap);gap:var(--space-1)}
.services-screen .summary-pill{min-height:32px;padding:2px var(--space-3)}
.services-screen .summary-pill strong{font-size:var(--section-title)}
.services-screen .catalogue-tools{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin:0 0 var(--space-2);padding-bottom:var(--space-2)}
.services-screen .catalogue-tools input[type=search]{flex:1 1 220px;width:auto}
.services-screen .catalogue-count{margin:0;font-size:var(--text-micro)}
.services-screen .service-group>h3{margin:var(--space-3) 0 var(--space-1);font-size:var(--text-micro)}
.services-screen .service-card-list{gap:var(--space-2)}
.services-screen .service-card{display:flex;flex-wrap:wrap;align-items:center;gap:6px var(--space-3);padding:10px var(--space-3)}
.services-screen .service-card>*{margin:0}
.services-screen .service-card-main,.services-screen .service-card>.warning-card,.services-screen .service-card>.service-editor,
.services-screen .service-card>details[open]{flex:1 1 100%}
.services-screen .service-card-main{grid-template-columns:28px minmax(0,1fr);gap:var(--space-2)}
.services-screen .service-rank{width:28px;height:28px;font-size:var(--text-small);border-radius:8px}
.services-screen .service-card-content{display:flex;flex-wrap:wrap;align-items:center;gap:4px var(--space-2)}
.services-screen .service-card-title{flex:1 1 auto;align-items:center}
.services-screen .service-card-title h4{font-size:var(--card-title)}
.services-screen .service-facts{margin:0;gap:4px}
.services-screen .fact-pill,.services-screen .state-pill{padding:1px var(--space-2);font-size:var(--text-micro)}
.services-screen .service-practitioners{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:4px var(--space-2);font-size:var(--text-micro)}
.services-screen .service-practitioners .assigned-services{gap:4px}
.services-screen .service-actions{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:4px;margin:0}
.services-screen .service-actions button{flex:0 0 auto;width:auto;padding:2px var(--space-2)}
.services-screen .service-card>details:not([open]){flex:0 0 auto;border:0;margin:0;padding:0}
.services-screen .service-card>details>summary{min-height:32px;padding:0;font-size:var(--text-small);color:var(--brand-ink);font-weight:700}
.services-screen .practitioner-card h3{display:flex;align-items:center}

/* Formulaire d'une prestation (ajout et modification) : grille compacte, mêmes champs, mêmes règles. */
.service-form{display:grid;gap:var(--space-2);padding-top:var(--space-2)}
.service-form label{display:grid;gap:2px;min-width:0;margin:0;font-size:var(--text-small);font-weight:650}
.service-form input:not([type=checkbox]),.service-form select,.service-form textarea{width:100%}
.service-form textarea{min-height:56px}
.field-row{display:grid;align-items:end;gap:var(--space-2)}
.field-row-name{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.field-row-price{grid-template-columns:repeat(3,minmax(0,1fr))}
.field-row-pack{grid-template-columns:minmax(0,1.6fr) minmax(0,.8fr) minmax(0,.8fr)}
.promo-dates{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2)}
.promo-dates.is-open,form:has([name=prix_promo_dh]:not(:placeholder-shown)) .promo-dates{display:grid}
.field-line{display:flex;flex-wrap:wrap;align-items:end;gap:var(--space-1) var(--space-3)}
.field-line>label{flex:1 1 220px}
.field-help{flex:0 1 auto;border:0;margin:0;padding:0}
.field-help>summary{min-height:36px;display:inline-flex;align-items:center;color:var(--brand-ink);font-size:var(--text-small);font-weight:700;cursor:pointer}
.field-help[open]{flex:1 1 100%}
.field-help p{margin:0;color:var(--muted);font-size:var(--text-small);line-height:1.45}
.toggle-row{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4)}
.service-form .toggle,.pack-form .toggle,.toggle{display:inline-flex!important;grid-template-columns:none;align-items:center;gap:var(--space-2);min-height:36px;font-weight:650;cursor:pointer}
.toggle input{flex:none;width:18px!important;height:18px;min-height:0!important;margin:0;accent-color:var(--brand)}
.toggle-row>.toggle{flex:0 0 auto;white-space:nowrap}
.service-form .quick{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.service-form>.form-action{justify-self:start}

/* Section Packs, sur la page Prestations. */
.packs-section{margin:0 0 var(--page-gap)}
.packs-section .notice{margin:0 0 var(--space-2);padding:var(--space-2) var(--space-3);border:1px solid #b9d9c5;border-radius:10px;background:#e8f3ec}
.packs-section .notice.error{border-color:#f3b9b2;background:#fdecea}
.pack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:var(--space-2);margin:0 0 var(--space-2)}
.pack-card{display:flex;flex-wrap:wrap;align-items:center;gap:6px var(--space-3);padding:10px var(--space-3);border:1px solid var(--line);border-radius:var(--radius-small);background:var(--paper)}
.pack-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.pack-thumb{width:56px;height:56px;flex:none;border-radius:8px;object-fit:cover}
.pack-title{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;gap:var(--space-2);min-width:0}
.pack-title h3{margin:0;font-size:var(--card-title);overflow-wrap:anywhere}
.pack-prices{flex:1 1 100%;margin:0;font-size:var(--text-small)}
.pack-prices del,.pack-prices small{color:var(--muted)}
.pack-description{margin:0;color:var(--muted);font-size:var(--text-small)}
.pack-content{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0;list-style:none;counter-reset:pack}
.pack-content li{counter-increment:pack;display:inline-flex;align-items:baseline;gap:4px;padding:1px var(--space-2);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);font-size:var(--text-micro)}
.pack-content li::before{content:counter(pack) ".";font-weight:800;color:var(--brand-ink)}
.pack-content small{color:var(--muted)}
.pack-actions{display:flex;flex-wrap:wrap;gap:4px}
.pack-actions form{margin:0}
.pack-actions button{padding:2px var(--space-2);font-size:var(--text-small)}
.pack-more,.pack-create{margin:0;padding:0;border:0}
.pack-card>*{flex:1 1 100%;margin:0}
.pack-card>.pack-actions,.pack-card>.pack-more:not([open]){flex:0 0 auto}
.pack-more>summary,.pack-create>summary{min-height:32px;display:flex;align-items:center;color:var(--brand-ink);font-size:var(--text-small);font-weight:700;cursor:pointer}
.pack-create{margin-top:var(--space-2);padding-top:var(--space-2);border-top:1px solid var(--line-soft)}
.pack-create>summary{font-size:var(--text-body)}
.pack-delete p{margin:var(--space-1) 0;font-size:var(--text-small)}
.pack-form{display:grid;gap:var(--space-2);margin-top:var(--space-2)}
.pack-form label{display:grid;gap:2px;font-size:var(--text-small);font-weight:650}
.pack-form>.primary{justify-self:start}
.pack-picker{display:grid;gap:var(--space-1);margin:0;padding:var(--space-2);border:1px solid var(--line-soft);border-radius:10px}
.pack-picker legend{padding:0 4px;font-size:var(--text-small);font-weight:700}
.pack-picker-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:4px var(--space-3)}
.pack-pick{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);min-height:40px;padding:2px 0;border-bottom:1px solid var(--line-soft)}
.pack-pick .pack-pick-name{display:flex!important;flex:1 1 auto;align-items:center;gap:var(--space-2);min-width:0;font-weight:650}
.pack-pick .pack-pick-name input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--brand)}
.pack-pick .pack-pick-name small{color:var(--muted);font-weight:400}
.pack-order{display:inline-flex!important;align-items:center;gap:4px;font-size:var(--text-micro);color:var(--muted)}
.pack-order input{width:56px;min-height:32px;padding:2px 6px}
.pack-pick:not(:has(input[type=checkbox]:checked)) .pack-order{visibility:hidden}
.field-note{margin:0;color:var(--muted);font-size:var(--text-small)}

/* Téléphone : mêmes jetons, cibles de 44 px, une colonne quand la place manque. */
@media(max-width:700px){
  :root{--page-title:1.25rem;--page-gap:10px;--panel-pad:10px 12px}
  #screen .page-head{flex-direction:row;flex-wrap:wrap;align-items:center}
  #screen .page-head>div:first-child{flex:1 1 auto}
  .agenda-screen .agenda-bar{padding:var(--space-2)}
  .agenda-screen .agenda-view-controls{flex:1 1 100%;flex-wrap:nowrap}
  .agenda-screen .view-switch{flex:1 1 auto;display:flex}
  .agenda-screen .view-switch .chip{flex:1 1 auto;padding:2px 6px}
  .agenda-screen .nav-word{display:none}
  .services-screen .summary-pill{min-height:44px}
  .agenda-screen .agenda-date-controls{flex:1 1 100%}
  .agenda-screen .agenda-date-navigation{flex:1 1 100%}
  .agenda-screen .agenda-date-navigation button{flex:1 1 auto}
  .agenda-screen .agenda-filters{flex:1 1 100%;display:grid;grid-template-columns:1fr 1fr}
  .agenda-screen .agenda-filters input,.agenda-screen .agenda-filters select{width:100%;font-size:var(--text-small)}
  :is(.agenda-screen,.home-timeline) .appointment{grid-template-columns:3.4rem minmax(0,1fr) auto;padding:6px var(--space-2);gap:2px var(--space-2)}
  :is(.agenda-screen,.home-timeline) .appointment time{display:grid;gap:0}
  :is(.agenda-screen,.home-timeline) .appointment .status{grid-column:3;grid-row:1}
  :is(.agenda-screen,.home-timeline) .appointment-actions{grid-column:1/-1;padding-top:4px;border-top:1px solid var(--line-soft)}
  :is(.agenda-screen,.home-timeline) .appointment-actions button{flex:1 1 0;min-width:0;min-height:44px;padding:2px 4px;font-size:var(--text-micro)}
  .agenda-screen .agenda-bar>*,.agenda-screen .agenda-date-navigation{flex:1 1 100%;justify-content:stretch}
  .agenda-screen .agenda-date-navigation>button{flex:1 1 0}
  .home-stats a{min-height:64px}
  .home-timeline .appointment-actions{justify-content:flex-start;flex-wrap:wrap}
  .field-row-name,.field-row-pack{grid-template-columns:1fr}
  .services-screen .service-actions{display:flex;flex:1 1 100%}
  .services-screen .service-actions button{flex:1 1 auto;min-height:44px}
  .services-screen .service-card>details>summary,.pack-more>summary,.pack-create>summary,.field-help>summary{min-height:44px}
  .toggle,.pack-pick{min-height:44px}
  .pack-order input{min-height:40px}
  #screen .agenda-screen .agenda-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:var(--space-2)}
  #screen .agenda-screen .agenda-view-controls{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:6px;width:100%}
  #screen .agenda-screen .agenda-date-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;width:100%}
  #screen .agenda-screen .agenda-date-navigation{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:4px;grid-column:1/-1}
  #screen .agenda-screen .agenda-filters{display:contents}
  #screen .agenda-screen .agenda-filters label{min-width:0}
  #screen .agenda-screen .agenda-date-navigation>button{padding:2px}
  .services-screen .services-summary{flex-wrap:nowrap}
  .services-screen .summary-pill{flex:1 1 0;min-width:0;padding:2px 6px;font-size:var(--text-micro);white-space:normal;line-height:1.15}
  .pack-pick .pack-pick-name{display:grid!important;grid-template-columns:18px minmax(0,1fr);column-gap:8px;row-gap:0}
  .pack-pick .pack-pick-name small{grid-column:2}
}
/* Business Pack dans la fenêtre des Paramètres (02/11/2026) : le générateur affiché directement, plein écran à côté. */
.settings-business-pack{display:grid;gap:8px}.bp-cadre{display:block;width:100%;height:calc(100vh - 200px);min-height:560px;border:1px solid var(--line);border-radius:12px;background:#f6f5f0}.bp-plein-ecran{justify-self:end}
@media(max-width:600px){.bp-cadre{height:calc(100vh - 150px);min-height:480px}.bp-plein-ecran{justify-self:stretch}}

/* Suivi des absences (07/11/2026) : repère rouge « Risque no-show », note « Arrivée non confirmée ». */
.noshow-risk{display:inline-flex;align-items:center;gap:4px;margin-top:2px;padding:1px 8px;border:1px solid #e6a49b;border-radius:999px;
  background:#fbe4e1;color:#9b1c1c;font-size:.72rem;font-weight:800;line-height:1.5;width:fit-content}
.noshow-risk::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.arrival-note{display:inline-flex;align-items:center;margin-top:2px;padding:1px 8px;border-radius:999px;background:var(--accent-soft);
  color:#8a4b0f;font-size:.72rem;font-weight:700;line-height:1.5;width:fit-content}
:is(.agenda-screen,.home-timeline) .appointment-copy :is(.noshow-risk,.arrival-note){order:2}
.manual-slots .manual-slot-notice{flex:1 0 100%;margin:0 0 4px;padding:8px 10px;border-radius:10px;background:var(--accent-soft);color:#8a4b0f;font-weight:700}
/* Offre de lancement (06/11/2026) : inscription et écran Abonnement. */
.signup-launch,.subscription-launch{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;margin:8px 0;padding:10px 12px;border-radius:10px;background:#eef4dc;font-size:14px}
.addon-choice .addon-offered{display:block;font-weight:600}

/* Choix du métier : cartes réparties sur toute la largeur disponible. */
.guided-setup .activity-picker{width:100%;max-width:none;grid-column:1/-1}
.activity-options,.guided-setup .activity-options{width:100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.activity-option{min-height:148px;align-items:start}.activity-copy small{line-height:1.55}
.guided-setup :is(input,select,textarea):user-invalid{border-color:#b42318;box-shadow:0 0 0 1px #b42318}
.guided-setup .setup-save-note.is-error,.guided-setup .setup-alert{color:#a32119;background:#fff0ee;border:1px solid #efb7b1;padding:12px;border-radius:10px}
#nouveau-rdv .dialog-card{width:min(100%,680px);display:grid;gap:16px;padding:28px;border-radius:20px}
#nouveau-rdv h2{padding-right:32px;margin-bottom:4px}#nouveau-rdv label{display:grid;gap:7px}
#nouveau-rdv :is(input,select,textarea){min-height:48px;border-radius:10px;font-size:16px}
#nouveau-rdv .manual-slots{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-subtle)}
@media(max-width:600px){#nouveau-rdv .dialog-card{padding:20px;gap:14px}.activity-options,.guided-setup .activity-options{grid-template-columns:1fr}}

.closure-notice{padding:14px 18px;background:#fff0ee;border:1px solid #e6aaa4;border-radius:12px;color:#97231b;line-height:1.5}.closure-notice p{margin:6px 0 0}.week-column.is-closed{background:#fff6f4;border-color:#e6aaa4}.month-day[data-day-state=fermee]{background:#fff0ee;color:#97231b;border-color:#e6aaa4}

.setup-required,.setup-footer-alert{padding:12px 16px;border:1px solid #e6aaa4;border-radius:12px;background:#fff0ee;color:#97231b}.setup-required[hidden]{display:none}.setup-required ul{margin:8px 0 0;padding-inline-start:20px}.setup-required{margin-top:12px}


#blocage .dialog-card{width:min(100%,700px);padding:28px;border-radius:20px;display:grid;gap:16px}
#blocage h2{padding-right:36px;margin:0}#blocage .form-help{margin:0;font-weight:400}
#blocage .target-picker{padding:14px;border:1px solid var(--line);border-radius:12px}
#blocage .target-picker label{padding:14px;gap:10px;font-weight:400;min-height:100px}
#blocage .target-picker small{font-weight:400;line-height:1.5}
#blocage .closure-when{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.6fr);gap:14px}
#blocage label{display:grid;gap:6px}#blocage :is(input,select){min-height:48px;border-radius:10px;font-size:16px}
#blocage .closure-all-day{display:flex;align-items:center;gap:10px;padding:12px;background:var(--surface-subtle);border-radius:10px}
#blocage .closure-all-day input{min-height:0;width:20px;height:20px}#blocage [data-date-human]{font-size:12px;font-weight:400;color:var(--muted)}
@media(max-width:600px){#blocage .dialog-card{padding:20px}#blocage .target-picker{grid-template-columns:1fr}#blocage .target-picker label{min-height:0}#blocage .closure-when{grid-template-columns:1fr}}

:is(#block-create,#activity-block-create):has([name=journee_entiere]:checked) .time-select-field{display:none}

:is(#block-create,#activity-block-create) .closure-all-day{
  display:flex;align-items:center;justify-content:flex-start;gap:12px;
  min-height:48px;padding:10px 14px;border:1px solid var(--line);
  border-radius:10px;background:var(--surface-subtle);cursor:pointer
}
:is(#block-create,#activity-block-create) .closure-all-day input{
  flex:0 0 20px;inline-size:20px;block-size:20px;min-height:0;margin:0;
  accent-color:var(--brand)
}
.closure-when>label{display:grid;align-content:start;gap:6px;min-width:0}
.closure-when input[type=date]{
  min-height:48px;min-width:0;box-sizing:border-box;padding:8px 12px;
  border:1px solid var(--line);border-radius:10px;background:var(--surface);
  color:var(--ink);font:inherit;font-size:16px
}
.closure-when small[data-date-human]:empty{display:none}
:is(#block-create,#activity-block-create):has([name=journee_entiere]:checked) .closure-when{
  grid-template-columns:minmax(0,1fr)
}
.guided-setup.phase-metier [data-activity-picker] button[type=submit]{display:none}
.setup-welcome {
  display:flex;align-items:center;gap:clamp(14px,2vw,26px);
  padding:clamp(20px,3vw,36px);margin-block:8px 20px;border-radius:20px;
  background:linear-gradient(115deg,#173d32,#245d4d 70%,#316d59);color:white
}
.setup-welcome img{width:clamp(44px,6vw,70px);height:auto;border-radius:14px;background:white;padding:5px;flex:none}
.setup-welcome strong{font-size:clamp(1.3rem,2.6vw,2rem);line-height:1.16;letter-spacing:-.025em}
.setup-welcome p{max-width:56ch;margin:.45rem 0 0;color:#e2efe8;font-size:1rem;line-height:1.5}
@media(max-width:600px){
  .setup-welcome{align-items:flex-start;padding:18px 14px;border-radius:16px;margin-block:0 14px}
  .setup-welcome p{font-size:.9rem}
  .setup-journey-bar header>a{display:inline-flex;align-items:center;min-height:44px}
}.guided-setup:not(.phase-metier) .setup-welcome{display:none}
.guided-setup .setup-welcome{margin-inline:clamp(14px,3vw,30px)}
/* Lot A 18/11 — champs civils communs, panneaux chargés à la demande. */
.time-field,.date-field,.date-time-field{position:relative;display:grid;gap:6px;min-width:0}.time-field>span:first-child,.date-field>span:first-child,.date-time-field>span:first-child{font-weight:700}.time-field>input[data-time-field],.date-field input[data-date-display],.date-time-field input[data-date-time-display]{font-variant-numeric:tabular-nums;letter-spacing:.03em;direction:ltr}.time-field>input[data-time-field]{font-size:1.18rem;font-weight:750}.date-field-control{display:block}.date-field-control>input{width:100%}.time-field small[role=alert],.date-field small[role=alert]{min-height:1em;color:#9b2c24}.time-panel,.date-panel{position:absolute;z-index:45;inset-inline-start:0;top:calc(100% + 6px);width:min(340px,calc(100vw - 32px));padding:10px;border:1px solid var(--line,#d9dedb);border-radius:12px;background:#fff;box-shadow:0 14px 38px rgba(27,48,40,.16)}.time-hours{display:grid;grid-template-columns:repeat(6,minmax(32px,1fr));gap:2px}.time-hours [data-time-hour],.time-minutes [role=option]{display:grid;min-height:30px;place-items:center;border-radius:6px;cursor:pointer;font-size:.9rem}.time-hours [data-time-hour]:hover,.time-hours [data-time-hour]:focus,.time-minutes [role=option]:hover,.time-minutes [role=option]:focus,.time-hours .is-selected{outline:none;background:#e8f2ed;color:#174d3c}.time-earlier{margin:5px 0;padding:4px 6px;border:0;background:transparent;color:var(--brand,#245b4b);font-size:.82rem}.time-minutes{display:flex;gap:4px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line,#e4e8e6)}.time-minutes [role=option]{min-width:42px;padding-inline:8px}.date-panel header{display:grid;grid-template-columns:36px 1fr 36px;align-items:center}.date-panel header button{min-height:32px;padding:4px 8px}.date-panel [data-calendar-title]{font-weight:800;text-transform:capitalize}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.calendar-weekdays{margin-top:8px;text-align:center;color:#65736e;font-size:.75rem}.calendar-grid button{min-height:34px;padding:2px;border:0;border-radius:7px;background:transparent;font-variant-numeric:tabular-nums}.calendar-grid button:hover,.calendar-grid button:focus{background:#eef5f1}.calendar-grid button.is-in-range{background:#edf6f1}.calendar-grid button.is-selected{background:var(--brand,#245b4b);color:#fff}.calendar-grid button:disabled{opacity:.3}.calendar-months{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:8px 0}.calendar-months label{grid-column:1/-1}.date-panel footer{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.date-panel footer button,.calendar-months button{padding:6px 8px;font-size:.78rem}.date-period-summary{grid-column:1/-1;margin:4px 0;color:#52615c;font-size:.85rem}.duration-field{display:flex;flex-wrap:wrap;gap:6px}.duration-field legend{width:100%;font-weight:700}.duration-field label{display:inline-flex}.duration-field input{position:absolute;opacity:0}.duration-field span{padding:7px 11px;border:1px solid var(--line,#d9dedb);border-radius:8px}.duration-field input:checked+span{border-color:var(--brand,#245b4b);background:#edf6f1;color:var(--brand,#245b4b);font-weight:800}[dir=rtl] .date-panel,[dir=rtl] .time-panel{direction:rtl}[dir=rtl] .date-panel header{direction:rtl}
@media(max-width:640px){.time-panel,.date-panel{position:fixed;inset:auto 12px 12px;width:auto;max-height:72vh;overflow:auto;border-radius:16px}.time-hours [data-time-hour]{min-height:36px}.calendar-grid button{min-height:40px}}
.guide-clock-badge{display:inline-flex;align-items:center;width:max-content;margin-top:7px;padding:3px 8px;border:1px solid #d6e1d8;border-radius:999px;background:#fff;color:#567066;font:700 12px/1.4 ui-monospace,monospace;font-variant-numeric:tabular-nums}
.publication-complete{max-width:760px;margin-inline:auto;padding:clamp(20px,4vw,42px)!important;border-radius:20px!important;background:#fff!important}.publication-complete>header{display:flex;justify-content:space-between;gap:16px;align-items:center;color:#527065;font-size:.84rem}.publication-complete>header small{padding:4px 9px;border-radius:999px;background:#edf6ef;color:#276044}.publication-complete-main{text-align:center;padding:clamp(26px,6vw,58px) 0 28px}.publication-confetti{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 18px;border-radius:50%;background:#e8f5ec;color:#287052;font-size:28px}.publication-complete-main h3{margin:0 auto 18px!important;max-width:30ch;text-wrap:balance;font-size:clamp(1.45rem,3vw,2.1rem)!important;font-weight:750!important;color:#16362b}.publication-complete [data-publication-duration] p{margin:0;color:#64736c}.publication-complete [data-publication-duration] strong{display:block;margin-top:4px;color:var(--brand,#245b4b);font-size:clamp(2rem,5vw,3.2rem);font-variant-numeric:tabular-nums}.publication-complete-links{display:grid;gap:12px;padding:16px;border:1px solid #dfe6e1;border-radius:12px;background:#f8faf8}.publication-complete-links>small{overflow-wrap:anywhere}.publication-complete-links>div{display:flex;flex-wrap:wrap;gap:8px}.publication-dashboard-link{display:flex!important;width:max-content;margin:22px auto 0}.publication-update{margin-top:22px;color:#5a6d64;font-size:.85rem}.publication-update summary{cursor:pointer;text-align:center}.publication-update form{margin-top:16px;text-align:start}@media(max-width:600px){.publication-complete-links>div>*{flex:1 1 100%}.publication-dashboard-link{width:100%}}
.publication-complete-links .button-link,.publication-dashboard-link{justify-content:center;text-align:center}
.onboarding-team{margin:0 0 16px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.onboarding-team h3{margin:0 0 4px}.onboarding-team h3 small{font-weight:500;color:#65736e}.team-note{margin:4px 0 0;color:#52615c;font-size:.92rem;line-height:1.5}.team-telegram{margin-top:10px}.onboarding-team-members{display:grid;gap:6px;margin:14px 0 0;padding:0;list-style:none}.onboarding-team-members li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:10px}.team-state{padding:3px 9px;border-radius:999px;background:#f3f1ec;color:#65736e;font-size:.78rem;white-space:nowrap}.team-state.is-ready{background:#e8f2ed;color:#174d3c}.onboarding-team .team-invite{margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft)}
.notif-heures{margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.notif-heures h4{margin:0 0 4px}.notif-heures-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0}.notif-heures-role{display:grid;gap:10px;align-content:start}.notif-heures-role h5{margin:0;font-size:.95rem}@media(max-width:640px){.notif-heures-grid{grid-template-columns:1fr}}
/* ===== Refonte du guide d'onboarding (18/11/2026, maquettes refonte/page onboarding creation profil) =====
   Bloc final volontairement prioritaire : il remplace les couches successives de la frise et de l'en-tête du guide. */
body.guided-setup .setup-journey-bar{padding:22px clamp(16px,3vw,32px) 8px;background:#f6f3ee}
body.guided-setup .setup-journey-bar>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
body.guided-setup .setup-journey-bar h1{margin:6px 0 4px;font:600 clamp(1.7rem,3.2vw,2.5rem)/1.12 Georgia,"Times New Roman",serif!important;letter-spacing:-.01em;color:#16362b}
body.guided-setup .setup-journey-bar header p{margin:0;max-width:62ch;color:#55685f;font-size:.98rem}
body.guided-setup .setup-journey-bar header>a{margin-top:4px;padding:6px 10px;border-radius:8px;color:#4d6558;font-size:.84rem;text-decoration:none;border:1px solid transparent}
body.guided-setup .setup-journey-bar header>a:hover{border-color:#d8e2d7;background:#fff}
body.guided-setup .setup-journey-bar nav{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;margin:22px 0 6px;padding:0;overflow:visible}
body.guided-setup .setup-journey-bar nav a{position:relative;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:8px;flex:none!important;min-height:0;padding:0 10px 0 0;border:0!important;background:transparent!important;color:#6b7c74!important;font-size:.82rem;line-height:1.3;text-align:start;white-space:normal;box-shadow:none}
body.guided-setup .setup-journey-bar nav a span{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;border:1.5px solid #c9d6cd;border-radius:999px;background:#fff!important;color:#4d6558!important;font-size:.8rem;font-weight:700}
body.guided-setup .setup-journey-bar nav a::after{content:'';position:absolute;top:15px;inset-inline-start:38px;inset-inline-end:8px;height:1.5px;background:#d6e0d9}
body.guided-setup .setup-journey-bar nav a:last-child::after{display:none}
body.guided-setup .setup-journey-bar nav a[aria-current=step]{color:#16362b!important;font-weight:700}
body.guided-setup .setup-journey-bar nav a[aria-current=step] span{border-color:var(--brand);background:var(--brand)!important;color:#fff!important;box-shadow:0 0 0 4px #245b4b1f}
/* Étapes déjà parcourues : teintées, numéro conservé. Pas de coche : être passé par une étape ne veut pas dire l'avoir remplie. */
body.guided-setup .setup-journey-bar nav a:has(~ a[aria-current=step]) span{border-color:var(--brand);background:#e8f2ed!important;color:var(--brand)!important}
body.guided-setup .setup-journey-bar nav a:has(~ a[aria-current=step])::after{background:var(--brand)}
body.guided-setup .setup-journey-bar nav a:hover span{border-color:var(--brand)}
body.guided-setup .setup-save-note{margin:8px 0 0;color:#6b7c74;font-size:.82rem}
body.guided-setup .setup-journey-footer{justify-content:space-between;gap:12px;padding:14px clamp(16px,3vw,32px)}
body.guided-setup .setup-journey-footer a:not(.primary){padding:10px 16px;border:1px solid #d8e2d7;border-radius:10px;background:#fff;color:#294e3e;text-decoration:none}
body.guided-setup .setup-journey-footer .primary{min-width:220px;justify-content:center;border-radius:10px}
@media(max-width:700px){
  body.guided-setup .setup-journey-bar>header{flex-direction:column;gap:6px}
  body.guided-setup .setup-journey-bar header>a{align-self:flex-start;padding:4px 0}
  body.guided-setup .setup-journey-bar nav{margin-top:16px}
  body.guided-setup .setup-journey-bar nav a{font-size:0;gap:0;padding:0}
  body.guided-setup .setup-journey-bar nav a span{width:26px;height:26px;font-size:.74rem}
  body.guided-setup .setup-journey-bar nav a::after{top:13px;inset-inline-start:30px;inset-inline-end:4px}
  body.guided-setup .setup-journey-footer .primary{min-width:0;flex:1}
}
/* Colonne d'aide (insérée par le serveur dans le corps de chaque étape ; jamais hors du guide). */
.setup-aside{display:none}
/* Colonne posée à droite (flottante) : le contenu s'écoule à côté puis dessous, sans étirer l'étape (19/11 : la grille
   à rangées fusionnées créait un grand vide qui repoussait logo et photos tout en bas). */
body.guided-setup .config-step-body:has(> .setup-aside){display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:22px;align-items:start}
body.guided-setup .config-step-body:has(> .setup-aside)>.config-step-main{grid-column:1;grid-row:1;min-width:0}
body.guided-setup .config-step-body>.setup-aside{display:grid;gap:14px;grid-column:2;grid-row:1;position:sticky;top:16px}
body.guided-setup .config-step-body:has(> .setup-aside) .activity-options{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important}
.setup-aside-card{padding:16px;border:1px solid #e3ded6;border-radius:14px;background:#fff}
.setup-aside-card h4{margin:0 0 8px;font:600 1.02rem/1.3 Georgia,serif;color:#16362b}
.setup-aside-card p{margin:0 0 8px;color:#55685f;font-size:.9rem;line-height:1.5}
.setup-aside-list{display:grid;gap:7px;margin:10px 0 0;padding:0;list-style:none;font-size:.88rem;color:#2f4a3e}
.setup-aside-list li{position:relative;padding-inline-start:24px}
.setup-aside-list li::before{content:'✓';position:absolute;inset-inline-start:0;display:grid;place-items:center;width:17px;height:17px;border-radius:999px;background:#e8f2ed;color:var(--brand);font-size:.7rem;font-weight:800}
.setup-aside-note{margin-top:10px!important;font-size:.82rem!important}
.setup-aside-activity{margin:0 0 6px!important;color:#16362b!important}
.setup-aside a{color:var(--brand);font-weight:700;font-size:.88rem}
.setup-preview{margin:12px 0 0;border-radius:12px;overflow:hidden;border:1px solid #e3ded6;background:#fff}
.setup-preview-hero{position:relative;aspect-ratio:16/10;background:#1f3b31}
.setup-preview-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.setup-preview-hero>div{position:absolute;inset:auto 0 0 0;display:grid;gap:3px;padding:14px;background:linear-gradient(transparent,#0b1d16d9);color:#fff}
.setup-preview-hero strong{font:600 1.05rem/1.2 Georgia,serif}
.setup-preview-hero small{opacity:.85;font-size:.76rem}
.setup-preview-hero span{width:max-content;margin-top:6px;padding:5px 10px;border-radius:7px;background:#fff;color:#16362b;font-size:.72rem;font-weight:700}
.setup-preview figcaption{padding:8px 10px;color:#6b7c74;font-size:.74rem}
@media(max-width:1100px){
  body.guided-setup .config-step-body:has(> .setup-aside){grid-template-columns:minmax(0,1fr)}
  body.guided-setup .config-step-body>.setup-aside{grid-column:1;grid-row:2;position:static}
}

.notif-heures-role{margin:0;padding:14px;border:1px solid var(--line-soft);border-radius:12px}.notif-heures-role legend{padding:0 6px;font-weight:800;color:#16362b}
.notif-choice{display:flex;gap:10px;align-items:flex-start;padding:8px 0;cursor:pointer}.notif-choice input{margin-top:3px;accent-color:var(--brand)}.notif-choice span{display:grid;gap:2px}.notif-choice small{color:#65736e;font-size:.82rem}
.notif-heures-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
/* ===== Guide d'onboarding V2 (19/11/2026, plan docs/PLAN_GUIDE_V2_2026-11-19.md) : présentation seulement ===== */
/* Aperçu vivant dans un cadre de téléphone. */
.setup-phone{--pv-brand:var(--brand);margin:0;padding:10px;border-radius:30px;background:#14231d;box-shadow:0 18px 40px #14231d33}
.setup-phone-screen{overflow:hidden;border-radius:22px;background:#fbf9f5}
.setup-phone-bar{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#fff;border-bottom:1px solid #eee9e1}
.setup-phone-bar img{width:28px;height:28px;border-radius:8px;object-fit:cover}
.setup-phone-bar strong{font:600 .86rem/1.2 Georgia,serif;color:#16362b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.setup-phone-hero{position:relative;aspect-ratio:4/3;background:#1f3b31}
.setup-phone-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .25s}
.setup-phone-hero>div{position:absolute;inset:auto 0 0;display:grid;gap:2px;padding:12px;background:linear-gradient(transparent,#0b1d16e0);color:#fff}
.setup-phone-hero small{font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;opacity:.85}
.setup-phone-hero strong{font:600 1.08rem/1.15 Georgia,serif}
.setup-phone-hero span{font-size:.72rem;opacity:.9}
.setup-phone-text{margin:10px 12px 0;color:#4d5f57;font-size:.74rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.setup-phone-cta{display:block;margin:10px 12px;padding:8px;border-radius:9px;background:var(--pv-brand);color:#fff;text-align:center;font-size:.76rem;font-weight:700;transition:background .2s}
.setup-phone-list{display:grid;gap:6px;padding:0 12px 14px}
.setup-phone-list i{display:block;height:26px;border-radius:7px;background:linear-gradient(90deg,#efe9df 0 60%,#f6f2ea 60% 100%)}
.setup-phone figcaption{padding:8px 4px 2px;color:#c8d6cf;font-size:.7rem;text-align:center}
/* Pour publier : état réel, étape par étape. */
.setup-readiness-list{display:grid;gap:6px;margin:8px 0 0;padding:0;list-style:none}
.setup-readiness-list li{display:flex;align-items:center;gap:8px;font-size:.86rem}
.setup-readiness-list li::before{content:'';flex:none;width:18px;height:18px;border-radius:999px;border:2px solid #e3a33b;background:#fff;box-sizing:border-box}
.setup-readiness-list li.is-done::before{content:'✓';display:grid;place-items:center;border-color:var(--brand);background:var(--brand);color:#fff;font-size:.7rem;font-weight:800}
.setup-readiness-list a{color:#2f4a3e!important;font-weight:600!important;text-decoration:none}
.setup-readiness-list li.is-done a{color:#7b8a83!important;font-weight:500!important}
/* Frise : étape incomplète = petite pastille orange. */
body.guided-setup .setup-journey-bar nav a.is-incomplete span::after{content:'';position:absolute;top:-2px;inset-inline-end:-2px;width:9px;height:9px;border:2px solid #f6f3ee;border-radius:999px;background:#e3a33b}
/* Obligatoire pour publier, et ce qui manque au moment de continuer. */
.required-mark{color:#c0631b;text-decoration:none;font-weight:800;cursor:help}
.setup-missing{display:grid;gap:2px;max-width:520px;margin-inline-start:auto;padding:8px 12px;border:1px solid #f0c98c;border-radius:10px;background:#fff7ea;color:#6b3f0c;font-size:.86rem}
.setup-missing small{color:#8a5a20}
.is-missing-pulse{animation:missing-pulse 1.6s ease-out 1}
@keyframes missing-pulse{0%{box-shadow:0 0 0 0 #e3a33b88}100%{box-shadow:0 0 0 14px #e3a33b00}}
@media(prefers-reduced-motion:reduce){.is-missing-pulse{animation:none;outline:2px solid #e3a33b}}
/* Prestations : première prestation et exemples cliquables. */
.service-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px;padding:12px;border-radius:12px;background:#f4f8f5}
.service-chips>span{width:100%;color:#4d6558;font-size:.84rem;font-weight:700}
.chip,.fill-chips button{padding:7px 12px;border:1px solid #cfdcd3;border-radius:999px;background:#fff;color:#1f4536;font-size:.84rem;font-weight:600;cursor:pointer;transition:all .15s}
.chip:hover,.fill-chips button:hover{border-color:var(--brand)}
.chip.is-selected,.fill-chips button.is-selected{border-color:var(--brand);background:var(--brand);color:#fff}
.fill-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:-4px}
body.guided-setup #service-create-panel.is-first-service{border:2px solid var(--brand);border-radius:16px;box-shadow:0 10px 30px #245b4b14}
/* Horaires : semaine prête à valider. */
body.guided-setup #schedule-create-panel.is-ready-week{border:2px solid var(--brand);border-radius:16px;background:#fff}
.ready-week-hint{grid-column:1/-1;margin:0 0 6px;padding:10px 12px;border-radius:10px;background:#f4f8f5;color:#1f4536;font-weight:600;font-size:.9rem}
/* Notifications : messages repliés, option claire. */
details.included-messages>summary{cursor:pointer;list-style:none}
details.included-messages>summary::-webkit-details-marker{display:none}
details.included-messages>summary::after{content:'Voir le détail';margin-inline-start:8px;color:var(--brand);font-size:.8rem;font-weight:700;text-decoration:underline}
details.included-messages[open]>summary::after{content:'Masquer'}
.included-count{color:#4d6558;font-weight:500}
.notif-option{background:#f7f5f0!important;border-color:#e3ded6!important;color:#4d5f57}
/* Réceptionniste WhatsApp : présentée comme une option, pas comme une erreur. */
.receptionist-line{padding:14px 16px;border:1px dashed #cfd9d2;border-radius:12px;background:#fbfaf7}
.receptionist-line[data-receptionist-state=absente]>strong::after{content:'Option';margin-inline-start:8px;padding:2px 8px;border-radius:999px;background:#eef3ef;color:#4d6558;font-size:.72rem;font-weight:700}
/* Étape 1 : cartes d'activité plus lisibles. */
body.guided-setup .activity-option{position:relative;border-radius:16px;transition:border-color .15s,box-shadow .15s,transform .15s}
body.guided-setup .activity-option:hover{transform:translateY(-1px);box-shadow:0 8px 22px #16362b12}
body.guided-setup .activity-option:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 3px #245b4b22}
body.guided-setup .activity-icon{width:46px;height:46px;border-radius:14px}
body.guided-setup .activity-icon svg{width:24px;height:24px}
/* Étape 3 : zone d'ajout à la place du bouton de fichier natif (affiché dans la langue du navigateur). */
body.guided-setup .media-tile label:has(input[type=file]){position:relative;display:grid;place-items:center;min-height:52px;padding:10px;border:1.5px dashed #b9cbbf;border-radius:12px;background:#f7faf8;color:#1f4536;font-weight:700;cursor:pointer;text-align:center}
body.guided-setup .media-tile label:has(input[type=file])::after{content:'Choisir une image';display:block;margin-top:4px;color:var(--brand);font-size:.8rem;text-decoration:underline}
body.guided-setup .media-tile label:has(input[type=file]) input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
/* Étape 8 : liens aux couleurs de la marque, écran Bravo centré. */
body.guided-setup .setup-guide a:not(.primary){color:var(--brand)}
body.guided-setup .config-step-body:has(.publication-complete){grid-template-columns:minmax(0,1fr)}
body.guided-setup .setup-guide-steps a{color:#1f4536;text-decoration:none;font-weight:600}
body.guided-setup .publication-complete{margin-inline:auto}
body.guided-setup .config-step-body:has(.publication-complete)>.setup-aside{display:none}
body.guided-setup .setup-journey-footer button.primary{min-width:220px;justify-content:center;border-radius:10px}
@media(max-width:700px){.setup-phone{max-width:300px;margin-inline:auto}.setup-missing{max-width:none;width:100%}}

.label-text{display:inline}

/* Téléphone : raccourci vers l'aperçu (masqué sur grand écran, où l'aperçu est déjà à côté). */
.preview-jump{display:none}
@media(max-width:1100px){body.guided-setup .preview-jump{position:fixed;inset-inline-end:14px;bottom:86px;z-index:30;display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border:0;border-radius:999px;background:#14231d;color:#fff;font-size:.82rem;font-weight:700;box-shadow:0 10px 24px #14231d40}}
/* Écran Bravo : célébration discrète en CSS (aucun script), coupée si l'on préfère moins d'animations. */
.publication-confetti{position:relative;animation:bravo-pop .6s cubic-bezier(.2,1.4,.4,1) both}
.publication-confetti::before,.publication-confetti::after{content:'';position:absolute;inset:-18px;border-radius:999px;background:radial-gradient(circle,#e3a33b 0 3px,transparent 4px) 6px 2px/22px 22px,radial-gradient(circle,#245b4b 0 3px,transparent 4px) 14px 12px/26px 26px,radial-gradient(circle,#d96c8a 0 2.5px,transparent 3.5px) 2px 16px/18px 18px;animation:bravo-burst 1.1s ease-out .15s both;pointer-events:none}
.publication-confetti::after{transform:rotate(45deg);animation-delay:.3s}
@keyframes bravo-pop{0%{transform:scale(.4);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes bravo-burst{0%{transform:scale(.3);opacity:0}30%{opacity:1}100%{transform:scale(2.2);opacity:0}}
@media(prefers-reduced-motion:reduce){.publication-confetti,.publication-confetti::before,.publication-confetti::after{animation:none}.publication-confetti::before,.publication-confetti::after{display:none}}

/* Pastilles de couleur proposées (même mécanisme que les choix rapides). */
.color-swatches{margin-top:6px}
.color-swatches button{width:34px;height:34px;padding:0;border-radius:999px;border:3px solid #fff;box-shadow:0 0 0 1px #d6dfd9}
.color-swatches button.is-selected{box-shadow:0 0 0 2px var(--swatch),0 0 0 4px #fff,0 0 0 5px #9fb1a7}
/* ===== Guide V2, retours de Fahd du 19/11 (soir) ===== */
/* Pastilles de couleur : classes (la politique de sécurité refuse les styles en ligne). */
.color-swatches{align-items:center}
.color-swatches small{flex-basis:100%;color:#55685f;font-size:.82rem}
.swatch-1{--swatch:#245b4b}.swatch-2{--swatch:#1f3a5f}.swatch-3{--swatch:#7a2e3a}.swatch-4{--swatch:#b5651d}.swatch-5{--swatch:#8a6d3b}.swatch-6{--swatch:#4b3f72}.swatch-7{--swatch:#2b2b2b}
.color-swatches button{background:var(--swatch)!important}
/* Langues d'accueil : choix en un clic ; le champ texte reste (même valeur enregistrée), masqué dans le guide. */
.language-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.language-choices .chip[aria-pressed=true]{border-color:var(--brand);background:var(--brand);color:#fff}
.language-choices .chip[aria-pressed=true]::before{content:'✓ '}
body.guided-setup textarea.is-studio-hidden{display:none}
/* Bandeau rouge en haut de l'étape : ce qui est obligatoire et manque encore. */
.step-required{margin:10px 0 0;padding:9px 14px;border:1px solid #f1b4ab;border-radius:10px;background:#fff1ef;color:#9b2c24;font-size:.88rem;font-weight:700}
.step-required::before{content:'● ';color:#d4493b}
body.guided-setup [data-setup-required]{display:none!important}
/* Horaires dans le guide : ni règles de l'agenda ni encart de publication (ils restent dans le dashboard). */
body.guided-setup [data-hours-section=regles],body.guided-setup [data-hours-section=pause]{display:none!important}
/* Téléphone d'aperçu : un mini-site entier qui défile. */
.setup-phone-screen{max-height:min(560px,70vh);overflow-y:auto;scrollbar-width:none;scroll-behavior:smooth}
.setup-phone-screen::-webkit-scrollbar{display:none}
.setup-phone-bar{position:sticky;top:0;z-index:2}
.setup-phone section{padding:2px 0 8px}
.setup-phone h5{margin:12px 12px 6px;color:#16362b;font:600 .82rem/1.2 Georgia,serif}
.setup-phone-services,.setup-phone-hours{display:grid;gap:5px;margin:0;padding:0 12px;list-style:none}
.setup-phone-services li,.setup-phone-hours li{display:flex;justify-content:space-between;gap:8px;padding:7px 9px;border-radius:8px;background:#fff;font-size:.72rem;color:#2f4a3e}
.setup-phone-services small,.setup-phone-hours small{color:#6b7c74;white-space:nowrap}
.setup-phone-hours li{padding:4px 9px}
.setup-phone-empty{display:block;margin:4px 12px 0;color:#9aa8a1;font-size:.68rem}
.setup-phone-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:8px 12px 0}
.setup-phone-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}
.setup-phone h5,.setup-phone-services span{color:color-mix(in srgb,var(--pv-brand) 70%,#16362b)}

/* ===== Guide V2, équilibre et alignements (19/11 soir) ===== */
/* Téléphone : partie remplie par l'étape mise en évidence ; hauteur contenue pour équilibrer les colonnes. */
.setup-phone-screen{max-height:min(470px,62vh)}
.setup-phone [data-pv-section]{transition:box-shadow .25s,background .25s;border-radius:10px}
.setup-phone [data-pv-section].is-active:not([data-pv-section=metier]){background:#fff;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--pv-brand) 55%,transparent)}
.setup-readiness-list{gap:4px}
.setup-readiness-list li{font-size:.82rem;line-height:1.3}
.setup-aside-card{padding:14px}
.setup-aside-card p{margin-bottom:6px}
/* Langues : l'ancienne aide (« une par ligne ») ne sert plus avec le choix en un clic. */
body.guided-setup .language-choices + small{display:none}
/* Prestations dans le guide : catalogue et formulaire en colonne principale, équipe et cabines à droite. */
body.guided-setup .services-workbench{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr)}
body.guided-setup .services-workbench>.catalogue-column{grid-column:1;grid-row:1;min-width:0}
body.guided-setup .services-workbench>.services-team-column{grid-column:2;grid-row:1;position:sticky;top:16px;display:grid!important;grid-template-columns:1fr!important;gap:14px}
@media(max-width:900px){
  body.guided-setup .services-workbench{grid-template-columns:minmax(0,1fr)}
  body.guided-setup .services-workbench>.services-team-column{grid-column:1;grid-row:2;position:static}
}
/* Horaires : Ouverture et Fermeture côte à côte, bouton de validation sur toute la largeur. */
body.guided-setup #schedule-create .hours-add-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;grid-column:1/-1}
body.guided-setup #schedule-create .hours-add-button{grid-column:1/-1;width:100%;justify-content:center;min-height:48px}
/* ===== Retours de Fahd du 19/11 (nuit) : notifications, fermetures, frise, Bravo ===== */
/* Notifications : deux blocs nommés côte à côte, choix compacts. */
.notif-clients{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.notif-block{display:grid;gap:10px;padding:14px;border:1px solid var(--line-soft,#edf1ee);border-radius:14px;background:#fff}
.notif-block h4{margin:0;color:#16362b;font:600 .98rem/1.3 Georgia,serif}
.notif-note{margin:0;color:#55685f;font-size:.82rem}
.notif-block .confirmation-choice{margin:0;padding:0;border:0}
.notif-block .confirmation-choice legend{display:none}
/* Confirmation : deux options sur une ligne au lieu de deux grandes cartes à cocher. */
.confirmation-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.confirmation-choice>label.check{position:relative;display:block;margin:0;padding:10px 12px;border:1.5px solid #d6dfd9;border-radius:12px;background:#fff;cursor:pointer}
.confirmation-choice>label.check input{position:absolute;opacity:0;pointer-events:none}
.confirmation-choice>label.check strong{display:block;font-size:.88rem}
.confirmation-choice>label.check small{display:block;margin-top:3px;color:#65736e;font-size:.76rem;line-height:1.35}
.confirmation-choice>label.check:has(input:checked){border-color:var(--brand);background:#f1f7f3;box-shadow:inset 0 0 0 1px var(--brand)}
.confirmation-choice>label.check:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
.notif-block label:has(> input[name=rappel_1_heures]){display:grid;gap:6px;font-size:.88rem}
.notif-block input[name=rappel_1_heures]{max-width:120px}
.notif-block .fill-chips{margin-top:0}
/* Équipe : l'invitation s'ouvre au clic. */
.team-invite-toggle{margin-top:10px}
.team-invite-toggle>summary{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:1.5px dashed var(--brand);border-radius:999px;color:var(--brand);font-weight:700;cursor:pointer;list-style:none}
.team-invite-toggle>summary::before{content:'+'}
.team-invite-toggle>summary::-webkit-details-marker{display:none}
.team-invite-toggle[open]>summary{border-style:solid;background:#f1f7f3}
/* Alertes de l'équipe : cartes compactes, liste des messages repliée. */
.notif-equipe .telegram-roles{gap:10px}
.notif-equipe .notif-destinataire{padding:12px}
.notif-equipe .notif-destinataire header h4{margin:0;font-size:.92rem}
.notif-equipe details.included-messages{margin-top:8px;padding:8px 10px;font-size:.8rem}
.notif-equipe details.included-messages>summary{cursor:pointer}
.notif-equipe.is-inactive>.notif-option{margin:6px 0 10px}
/* Fermetures : cartes avec pastille de date façon calendrier. */
.closure-kind{margin-top:12px}
.closure-kind>h4{margin:0 0 8px;color:#6b7c74;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.closure-kind>ul{display:grid;gap:10px;margin:0;padding:0;list-style:none}
li.closure-card{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 14px;border:1px solid #e3ded6;border-radius:14px;background:#fff;box-shadow:0 4px 14px #16362b0a}
li.closure-card>div:not(.closure-tile){display:grid;gap:3px;min-width:0}
li.closure-card strong{font-size:.95rem;color:#16362b}
li.closure-card .closure-reason{justify-self:start;padding:2px 8px;border-radius:999px;background:#fff1ef;color:#9b2c24;font-size:.74rem;font-weight:700}
li.closure-card small:last-child{color:#65736e;font-size:.78rem}
.closure-tile{display:flex;align-items:center;gap:6px}
.closure-tile>span{display:grid;place-items:center;min-width:52px;padding:6px 8px;border-radius:12px;background:#16362b;color:#fff;line-height:1}
.closure-tile b{font:700 1.35rem/1 Georgia,serif}
.closure-tile small{margin-top:3px;font-size:.66rem;text-transform:uppercase;letter-spacing:.06em;opacity:.85}
.closure-tile i{color:#9aa8a1;font-style:normal}
/* Flèche entre le premier et le dernier jour fermés (19/11 : en CSS, le paquet du dashboard est plein). */
.closure-tile>span+span{position:relative;margin-inline-start:16px}
.closure-tile>span+span::before{content:'→';position:absolute;inset-inline-end:calc(100% + 4px);top:50%;transform:translateY(-50%);color:#9aa8a1;font-size:.9rem}
[dir=rtl] .closure-tile>span+span::before{content:'←'}
li.closure-card button.danger{padding:6px 10px;border-radius:9px;font-size:.78rem}
.closure-help>summary{color:var(--brand);font-size:.8rem;font-weight:700;cursor:pointer}
.closure-guidance{margin:6px 0 0;padding:8px 10px;border-inline-start:3px solid #d6dfd9;color:#55685f;font-size:.8rem}
/* Formulaire de fermeture : raccourcis, cible en une ligne, heures seulement hors journée entière. */
.closure-presets{align-items:center;margin:6px 0 4px}
.closure-presets>span{color:#4d6558;font-size:.82rem;font-weight:700}
.target-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.target-picker legend{grid-column:1/-1}
.target-picker>label{margin:0;padding:10px;border:1.5px solid #d6dfd9;border-radius:12px;cursor:pointer}
.target-picker>label:has(input:checked){border-color:var(--brand);background:#f1f7f3}
.target-picker>label small{display:block;font-size:.74rem;color:#65736e}
form:has(input[name=journee_entiere]:checked) .closure-when .time-field{display:none}
form:has(input[name=journee_entiere]:checked) .closure-when{grid-template-columns:minmax(0,1fr)!important}
/* Frise : sous-titre, anneau de progression, promesse du bandeau d'accueil. */
body.guided-setup .setup-journey-bar nav a .journey-sub{display:block;margin-top:2px;color:#8a9a92;font-size:.72rem;font-weight:500}
@media(max-width:700px){body.guided-setup .setup-journey-bar nav a .journey-sub{display:none}}
.setup-progress{--progress:0;display:inline-flex;align-items:center;gap:8px;margin:8px 0 0 12px;color:#4d6558;font-size:.8rem;font-weight:700}
.setup-progress::before{content:'';width:22px;height:22px;border-radius:999px;background:conic-gradient(var(--brand) calc(var(--progress) * 360deg),#e3e9e5 0);-webkit-mask:radial-gradient(circle,transparent 6px,#000 7px);mask:radial-gradient(circle,transparent 6px,#000 7px)}
.setup-progress.is-complete{color:var(--brand)}
.setup-promise{margin:.5rem 0 0!important;color:#cfe3d8!important;font-size:.88rem!important}
/* Lien complet du mini-site sous le champ du lien. */
.site-link{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;padding:8px 10px;border-radius:10px;background:#f4f8f5}
.site-link code{font-size:.8rem;color:#1f4536;word-break:break-all}
/* Bravo : QR code à imprimer. */
.publication-complete-links{display:grid;gap:10px;justify-items:start}
.publication-qr{display:flex;align-items:center;gap:12px;margin:0}
.publication-qr img{width:112px;height:112px;padding:6px;border:1px solid #e3ded6;border-radius:12px;background:#fff}
.publication-qr figcaption{color:#55685f;font-size:.82rem}
/* Aperçu dans Prestations : en tête de la colonne de droite. */
.services-team-column>.setup-phone{margin-bottom:4px}
.services-team-column>.setup-phone .setup-phone-screen{max-height:360px}
@media(max-width:900px){.notif-clients{grid-template-columns:minmax(0,1fr)}.confirmation-choice,.target-picker{grid-template-columns:minmax(0,1fr)}li.closure-card{grid-template-columns:auto minmax(0,1fr)}li.closure-card button.danger{grid-column:1/-1;justify-self:start}}

/* ===== Horaires lisibles d'un coup d'œil (19/11 nuit) ===== */
/* Cartes de fermeture : sélecteurs renforcés (la règle .hours-screen .closure-kind .list li l'emportait). */
.hours-screen .closure-kind .list li.closure-card{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;justify-items:start;gap:14px;padding:12px 14px;text-align:start}
.hours-screen .closure-kind .list li.closure-card>div:not(.closure-tile){justify-items:start}
.hours-screen .closure-kind .list li.closure-card strong{font-size:.95rem}
.hours-screen .closure-kind .list li.closure-card small{font-size:.76rem;line-height:1.4}
.hours-screen .closure-kind .list li.closure-card button{justify-self:end}
.hours-screen .closure-kind{padding:12px 14px;border:1px solid #ece7df;border-inline-start-width:1px;border-radius:14px;background:#fdfcf9}
/* Semaine type : une ligne par jour ; chaque plage = une ligne compacte (horaire · Modifier · Supprimer). */
.hours-screen .schedule-day{grid-template-columns:96px minmax(0,1fr);padding:10px 0;align-items:start}
.hours-screen .schedule-day>h3{margin:7px 0 0;font-size:.9rem}
.hours-screen .schedule-slots{display:grid;gap:6px}
.hours-screen .schedule-slot{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:4px 6px;padding:6px 8px 6px 12px;border:1px solid #e1e8e3;border-radius:10px;background:#fff}
.hours-screen .schedule-slot>div{grid-column:1;grid-row:1;display:flex;align-items:baseline;gap:8px;min-width:0}
.hours-screen .schedule-slot>div strong{font-size:.9rem;font-variant-numeric:tabular-nums}
.hours-screen .schedule-slot>div small{color:#7b8a83;font-size:.72rem}
.hours-screen .schedule-slot>.schedule-edit{grid-column:2;grid-row:1;min-width:0}
.hours-screen .schedule-slot>.schedule-edit[open]{grid-column:1/-1;grid-row:2;padding-top:6px;border-top:1px solid #edf1ee}
.hours-screen .schedule-slot>.schedule-edit>summary{padding:4px 10px;border-radius:999px;color:var(--brand);font-size:.76rem;font-weight:700;cursor:pointer;list-style:none}
.hours-screen .schedule-slot>.schedule-edit>summary::-webkit-details-marker{display:none}
.hours-screen .schedule-slot>button.danger{grid-column:3;grid-row:1;width:auto!important;min-height:0;padding:4px 10px;border:0;border-radius:999px;background:transparent;color:#9b2c24;font-size:.76rem}
.hours-screen .schedule-slot>button.danger:hover{background:#fff1ef}
.hours-screen .schedule-undefined{margin:6px 0 0;color:#9aa8a1;font-size:.82rem}

/* Étape 1 sur téléphone : cartes d'activité sur deux colonnes, description courte (recommandation Fable, P1). */
@media(max-width:700px){
  body.guided-setup .config-step-body .activity-options,body.guided-setup .config-step-body:has(> .setup-aside) .activity-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
  body.guided-setup .config-step-body .activity-option{position:relative;display:grid!important;grid-template-columns:1fr!important;grid-template-areas:'icon' 'copy'!important;align-content:start;gap:8px;min-height:0!important;padding:12px!important}
  body.guided-setup .config-step-body .activity-option input[type=radio]{position:absolute;top:10px;inset-inline-end:10px;margin:0}
  body.guided-setup .config-step-body .activity-option .activity-icon{width:38px;height:38px}
  body.guided-setup .config-step-body .activity-option .activity-copy strong{display:block;padding-inline-end:18px;font-size:.86rem;line-height:1.25;word-break:normal;overflow-wrap:normal;hyphens:none}
  body.guided-setup .activity-option .activity-copy small,body.guided-setup .activity-option .activity-copy span{font-size:.72rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}

/* En-tête du guide : anneau de progression et chronomètre côte à côte, alignés. */
body.guided-setup .setup-journey-bar header>div{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px}
body.guided-setup .setup-journey-bar header>div>:not(.setup-progress):not(.guide-clock-badge){flex-basis:100%}
body.guided-setup .setup-progress,body.guided-setup .guide-clock-badge{margin:8px 0 0!important;vertical-align:middle}
body.guided-setup .guide-clock-badge{order:3}
body.guided-setup .setup-progress{order:2}
.site-link{grid-column:auto}
/* Mon profil : mes alertes Telegram (19/11/2026). */
.personal-telegram{display:grid;gap:10px;margin-top:16px}
.personal-telegram h2{margin:0}
.personal-telegram .personal-notif{margin-top:6px}
.personal-notif .time-field{max-width:220px}
/* Zone d'ajout d'image en français partout (le bouton natif suit la langue du navigateur). */
.media-tile label:has(input[type=file]){position:relative;display:grid;place-items:center;min-height:52px;padding:10px;border:1.5px dashed #b9cbbf;border-radius:12px;background:#f7faf8;color:#1f4536;font-weight:700;cursor:pointer;text-align:center}
.media-tile label:has(input[type=file])::after{content:'Choisir une image';display:block;margin-top:4px;color:var(--brand);font-size:.8rem;text-decoration:underline}
.media-tile label:has(input[type=file]) input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

/* Lot écrans (19/11/2026, retours de Fahd) : fenêtres flottantes étroites, en-tête et pied collants, étapes du mini-site,
   bouton fermer de 44 px, bande des jours, calendrier qui marque aujourd'hui et les jours fermés. */
dialog.sheet-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden;border-radius:20px}
dialog.sheet-dialog[open]{display:flex;flex-direction:column}
#nouveau-rdv .sheet-card,#blocage .sheet-card,#report .sheet-card,dialog.sheet-dialog .sheet-card{display:flex;flex-direction:column;width:100%;min-height:0;max-height:calc(100dvh - 32px);padding:0;gap:0;overflow:hidden;border-radius:20px}
#report .sheet-card>:not(.sheet-head){margin-inline:20px}#report .sheet-card>button.primary{margin:8px 20px 16px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px 12px 20px;border-bottom:1px solid var(--line);background:var(--surface)}
.sheet-head h2,#nouveau-rdv .sheet-head h2,#blocage .sheet-head h2{margin:0;padding:0;font-size:1.15rem}
.sheet-body{flex:1;min-height:0;overflow-y:auto;display:grid;align-content:start;gap:16px;padding:16px 20px}
.sheet-foot{display:grid;gap:8px;padding:12px 20px 16px;border-top:1px solid var(--line);background:var(--surface)}
.sheet-foot .primary{width:100%;min-height:48px}
.sheet-foot .date-time-field input{border:0;padding:0;min-height:0;background:transparent;font-weight:800}
.sheet-step{display:grid;gap:8px;margin:0;transition:opacity .15s}
.sheet-step h3{display:flex;align-items:center;gap:8px;margin:0;font-size:.95rem}
.sheet-num{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;background:var(--brand);color:#fff;font-size:.78rem;font-weight:800}
.sheet-step.is-waiting{opacity:.5}.sheet-step.is-waiting .sheet-num{background:var(--line);color:var(--muted)}
.dialog-close,.dialog-card .dialog-close{display:inline-grid;place-items:center;flex:0 0 auto;width:44px;height:44px;min-height:44px;padding:0;float:none;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);cursor:pointer}
.dialog-close:hover{background:var(--surface-subtle)}.dialog-close:focus-visible{outline:3px solid #c8871a;outline-offset:2px}
.day-strip{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scroll-snap-type:x proximity}
.day-strip .day-chip{flex:0 0 auto;display:grid;justify-items:center;align-content:center;gap:2px;min-width:60px;min-height:56px;padding:6px 8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font-size:.85rem;scroll-snap-align:start}
.day-chip span{font-size:.72rem;color:var(--muted);text-transform:capitalize}.day-chip strong{font-size:1.05rem}.day-chip small{font-size:.66rem;color:var(--muted)}
.day-strip .day-chip.is-today{border-color:var(--brand);border-width:2px}
.day-strip .day-chip.is-selected{background:var(--brand);border-color:var(--brand);color:#fff}.day-chip.is-selected :is(span,small){color:#fff}
.day-strip .day-chip.is-closed,.day-strip .day-chip:disabled{background:repeating-linear-gradient(135deg,#f3f1ec 0 6px,#ebe8e1 6px 12px);color:#8a938f;cursor:not-allowed}
.sheet-other-date>summary,.sheet-note>summary{display:flex;align-items:center;min-height:44px;color:var(--brand);font-weight:700;cursor:pointer}
#nouveau-rdv .service-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:0}
#nouveau-rdv .service-checks .service-check{display:flex;align-items:flex-start;min-height:56px;border-radius:12px}
.service-check>span{display:grid;gap:2px}.service-check small{font-weight:400;opacity:.85}
.service-group{grid-column:1/-1;margin:6px 0 0;color:var(--muted);font-size:.74rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.calendar-grid button.is-today{box-shadow:inset 0 0 0 2px var(--brand,#245b4b);font-weight:800}
.calendar-grid button.is-closed{background:repeating-linear-gradient(135deg,#f3f1ec 0 4px,#ebe8e1 4px 8px);color:#8a938f}
@media(max-width:480px){dialog.sheet-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}dialog.sheet-dialog .sheet-card,#nouveau-rdv .sheet-card,#blocage .sheet-card{max-height:100dvh;height:100%;border-radius:0}}
a.rg-rubrique-lien{display:grid;text-decoration:none;color:inherit}
.hours-rules-link{margin:16px 0 0;color:var(--muted)}

/* Accès (20/11/2026, demande de Fahd) : invitation de l'assistante et Telegram de l'équipe réunis ; étape facultative du guide. */
.guided-setup.phase-acces #settings-team{display:block!important;border:0;padding:0;background:none}
.guided-setup #settings-team>h3,.guided-setup #settings-team>h3+.setting-explainer,.guided-setup #settings-team .acces-complet{display:none}
body:not(.guided-setup) #settings-team .acces-guide{display:none}

/* 20/11/2026 (retour de Fahd) : « Qui confirme » ne se règle qu'une fois, dans Paramètres → Règles. Le guide, qui n'a pas
   d'étape Règles, garde le choix dans son étape Notifications. */
body:not(.guided-setup) #settings-organization .notif-block:has(>.confirmation-choice),
body:not(.guided-setup) #settings-organization #notifications-edit>.confirmation-choice{display:none}

/* Règles en liste de réglages (20/11/2026, retour de Fahd : place et beauté). Une ligne par règle, interrupteur à droite,
   détail replié ; groupes en cartes, deux colonnes sur ordinateur. */
.rules-screen{max-width:1120px}
.rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;margin-top:14px}
.rules-group{margin:0;background:#fff;border:1px solid var(--line-soft,#e4e1da);border-radius:16px;overflow:hidden}
.rules-group>h2{margin:0;padding:12px 18px;font-size:var(--text-micro,.6875rem);letter-spacing:.08em;text-transform:uppercase;color:#6b7470;background:#faf9f6;border-bottom:1px solid var(--line-soft,#e4e1da)}
.rules-list{display:grid}
:is(.rule-row,.rules-list .rule-card){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:4px;align-items:center;margin:0;padding:14px 18px;border:0;border-radius:0;background:none}
.rules-list>*+*{border-top:1px solid var(--line-soft,#ece9e3)}
:is(.rule-row,.rules-list .rule-card) .rule-main{min-width:0}
:is(.rule-row,.rules-list .rule-card) h3{margin:0;font-size:var(--card-title,.9375rem);font-weight:650;line-height:1.3}
:is(.rule-row,.rules-list .rule-card) .rule-plain{margin:3px 0 0;font-size:var(--text-small,.8125rem);line-height:1.45;color:#5f6b65}
:is(.rule-row,.rules-list .rule-card)>.rule-details,:is(.rule-row,.rules-list .rule-card)>.rule-warning,:is(.rule-row,.rules-list .rule-card)>.rule-setting{grid-column:1/-1;margin:2px 0 0}
:is(.rule-row,.rules-list .rule-card) .rule-details>summary{display:inline-flex;align-items:center;min-height:32px;font-size:var(--text-small,.8125rem);color:var(--brand,#1f5c43);cursor:pointer}
:is(.rule-row,.rules-list .rule-card) .rule-details[open]{padding:10px 12px;margin-top:6px;border-radius:12px;background:#f7f6f2}
:is(.rule-row,.rules-list .rule-card) .rule-details p{margin:6px 0;font-size:var(--text-small,.8125rem);line-height:1.5}
:is(.rule-row,.rules-list .rule-card) .rule-details .rule-setting{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:10px}
:is(.rule-row,.rules-list .rule-card) .rule-setting input[type=number]{width:84px;min-height:40px}
.rule-switch-form{margin:0;display:flex;align-items:center;gap:8px}
.rule-switch-form [data-rule-status]:empty,.rule-switch-form [data-pause-status]:empty{display:none}
.rule-switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 4px;border:0;background:none;color:#4f5a55;font:inherit;font-size:var(--text-small,.8125rem);cursor:pointer;white-space:nowrap}
.rule-switch-track{position:relative;width:44px;height:26px;border-radius:999px;background:#cfd5d1;transition:background .18s ease}
.rule-switch-track::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .18s ease}
.rule-switch[aria-checked=true] .rule-switch-track{background:var(--brand,#1f5c43)}
.rule-switch[aria-checked=true] .rule-switch-track::after{transform:translateX(18px)}
.rule-switch[aria-checked=true]{color:var(--brand,#1f5c43);font-weight:600}
.rule-switch:focus-visible{outline:3px solid var(--brand,#1f5c43);outline-offset:2px;border-radius:999px}
@media (prefers-reduced-motion:reduce){.rule-switch-track,.rule-switch-track::after{transition:none}}
@media (max-width:900px){.rules-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:480px){:is(.rule-row,.rules-list .rule-card){padding:12px 14px;column-gap:10px}.rule-switch-text{display:none}}
.rule-switch-input{position:absolute;opacity:0;width:1px;height:1px}
.rule-switch-input:checked+.rule-switch-track{background:var(--brand,#1f5c43)}
.rule-switch-input:checked+.rule-switch-track::after{transform:translateX(18px)}
.rule-switch-input:focus-visible+.rule-switch-track{outline:3px solid var(--brand,#1f5c43);outline-offset:2px}
.rule-switch:has(.rule-switch-input:checked){color:var(--brand,#1f5c43);font-weight:600}
.rule-pause .rule-state{margin:0;font-size:var(--text-small,.8125rem)}

/* Rubrique Règles dans Paramètres (20/11/2026) : la grille occupe la largeur du panneau, sans cadre en double. */
#settings-rules{padding:0;border:0;background:none}
#settings-rules .rules-grid{margin-top:0}
#settings-rules .rules-bloc-head{margin:0 0 14px}#settings-rules .rules-bloc-head h2{margin:4px 0;font:600 var(--page-title,1.375rem)/1.2 var(--font-display)}#settings-rules .rules-bloc-head p:last-child{margin:0;color:#5f6b65;font-size:var(--text-small,.8125rem)}
#settings-organization[data-focus=regles] .rg-tete{display:none}
.delay-calls h3{margin:14px 0 6px;font-size:var(--card-title,.9375rem)}.delay-calls li{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.delay-calls li small{color:#5f6b65}.delay-calls li a{margin-left:auto}
/* Agenda en direct, lot 2 (21/11/2026, Cabinet) : « ⋯ » des gestes secondaires, notes d'heure prévue et d'avance.
   25/11/2026 (Fahd) : le menu s'ouvre en petite fenêtre flottante ancrée sur « ⋯ », sans agrandir la ligne ; le
   panneau laisse déborder pendant qu'il est ouvert (jamais coupé). */
.row-more{position:relative;flex:0 0 auto}
:is(.agenda-surface,.section-panel,.room-column):has(.row-more[open]){overflow:visible}
.row-more summary{width:fit-content;min-width:44px;min-height:44px;margin-inline-start:auto;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:var(--radius-small);cursor:pointer;list-style:none;font-weight:750}
.row-more summary::-webkit-details-marker{display:none}
.row-more summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.row-more[open] summary{background:var(--soft);margin-bottom:0}
.row-more>div{position:absolute;z-index:40;inset-inline-end:0;top:calc(100% + 6px);display:grid;gap:4px;min-width:200px;padding:6px;border:1px solid var(--line);border-radius:var(--radius-small);background:var(--surface);box-shadow:0 12px 28px rgb(0 0 0/.18)}
.row-more>div>button{width:100%;min-height:44px;justify-self:stretch}
.week-event .status{white-space:normal}
.live-note{display:inline-flex;margin-top:2px;padding:1px 8px;border-radius:999px;background:var(--soft);font-size:var(--text-micro);font-weight:650;color:var(--brand-ink);width:fit-content}
:is(.agenda-screen,.home-timeline) .appointment-copy .live-note{order:2}
/* Salle d'attente (21/11/2026, Cabinet) : deuxième vue des mêmes rendez-vous, choisie sans script (radio + :has). */
.agenda-views{display:inline-flex;gap:4px;margin:0 0 var(--space-2);padding:4px;border-radius:var(--radius-small);background:var(--soft)}
.agenda-views input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.agenda-views label{display:inline-flex;align-items:center;min-height:40px;padding:0 var(--space-3,14px);border-radius:var(--radius-small);font-weight:750;cursor:pointer}
.agenda-views input:checked+label{background:var(--surface);box-shadow:0 1px 3px rgb(0 0 0/.12)}
.agenda-views input:focus-visible+label{outline:3px solid var(--accent);outline-offset:2px}
.waiting-room{display:none;gap:var(--space-2);grid-template-columns:repeat(5,minmax(0,1fr));align-items:start}
.agenda-screen:has(#vue-salle:checked) .waiting-room{display:grid}
.agenda-screen:has(#vue-salle:checked) :is(.agenda-bar,.schedule-panel){display:none}
.room-column{display:grid;gap:var(--space-1);min-height:120px;padding:var(--space-2);border:1px solid var(--line);border-radius:var(--radius-small);background:var(--surface-2)}
.room-column h3{margin:0;font-size:var(--text-small);display:flex;justify-content:space-between}
.room-column h3 span{color:var(--muted)}
.room-empty{margin:0;color:var(--muted);text-align:center}
.room-card{display:grid;gap:2px;padding:var(--space-2);border:1px solid var(--line);border-radius:var(--radius-small);background:var(--surface);cursor:grab}
.room-card time{font-weight:750;font-size:var(--text-small)}
.room-card small{color:var(--muted);font-size:var(--text-micro)}
.room-card .status{justify-self:start;font-size:var(--text-micro)}
.room-card .appointment-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px;justify-content:stretch}
.room-card .appointment-actions>button{flex:1 1 auto;min-height:44px;font-size:var(--text-micro)}
@media(max-width:900px){.waiting-room{grid-template-columns:minmax(0,1fr)}.room-column{min-height:0}.room-card{cursor:default}}

/* ============================================================================================================
   Notifications — refonte du 22/11/2026 (demande de Fahd : « beaucoup d'espace libre à droite »). Bloc isolé, ne
   modifie aucune règle au-dessus : il les complète. Ordinateur : « Qui confirme » et « Messages WhatsApp » côte à côte,
   puis « Qui reçoit quoi » (une carte par rôle, deux colonnes) et les comptes rendus pleine largeur. Téléphone : empilé.
   ============================================================================================================ */
[data-config-step=notifications] .notif-clientes{padding:16px}
#notifications-edit.notif-clients{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
#notifications-edit.notif-clients>.notif-block{min-width:0;align-content:start}
.guided-setup .notif-confirm-resume{display:none}
.notif-confirm-resume ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.notif-confirm-resume li{display:grid;gap:3px;padding:10px 12px;border:1.5px solid #d6dfd9;border-radius:12px;background:#fff}
.notif-confirm-resume li strong{font-size:.88rem}
.notif-confirm-resume li small{color:#65736e;font-size:.76rem;line-height:1.35}
.notif-confirm-resume li.is-actuel{border-color:var(--brand);background:#f1f7f3}
.notif-actuel{margin-inline-start:6px;padding:1px 8px;border-radius:999px;background:var(--brand);color:#fff;font-size:.68rem;font-style:normal;font-weight:700;vertical-align:1px}
.notif-confirm-resume>.button-link{justify-self:start;min-height:44px;display:inline-flex;align-items:center}
.notif-rules .notif-rule-list{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.notif-rules .notif-rule-list>li{display:grid;gap:2px;padding:0 0 8px;border-bottom:1px solid var(--line-soft,#edf1ee)}
.notif-rules .notif-rule-list>li:last-child{padding-bottom:0;border-bottom:0}
.notif-rules .notif-rule-list small{color:#5f6b65;font-size:.8rem;line-height:1.4}
.notif-rules>.setting-explainer{margin:0}
/* Qui reçoit quoi */
.notif-roles{gap:12px}
.notif-equipe-tete{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.notif-equipe-tete h3{margin:0;font:600 1.05rem/1.3 Georgia,serif;color:#16362b}
.notif-canal-chip{padding:3px 10px;border-radius:999px;background:var(--soft,#eef4f0);color:#33584a;font-size:.75rem;font-weight:700}
.notif-roles .telegram-roles{align-items:stretch}
.notif-roles .notif-role{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:14px}
.notif-role-tete{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin:0!important}
.notif-role-tete h4{margin:0;font-size:1rem!important}
.notif-role-tete small{display:block;color:var(--muted);font-size:.78rem}
.notif-role-icone{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--soft,#eef4f0);color:var(--brand)}
.notif-role-badge{padding:4px 10px;border-radius:999px;background:#f1efe9;color:#5f6b65;font-size:.74rem;font-weight:700;white-space:nowrap}
.notif-role-badge.is-on{background:#e3f1e8;color:#1f6b47}
.notif-roles .included-messages{margin:0;padding:12px;border:0;border-radius:12px;background:#faf9f6;font-size:.86rem}
.notif-role-titre{margin:0 0 8px;color:#6b7470;font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.notif-roles .included-messages ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.notif-roles .included-messages li{display:grid;gap:1px;padding-inline-start:14px;position:relative}
.notif-roles .included-messages li::before{content:'';position:absolute;inset-inline-start:0;top:.5em;width:6px;height:6px;border-radius:50%;background:var(--brand)}
.notif-roles .included-messages li>span{font-weight:650;color:var(--ink)}
.notif-roles .included-messages li small{color:#5f6b65;font-size:.78rem;line-height:1.4}
.notif-roles .included-messages li small::before{content:none}
#notifications-edit:not(.notif-clients)>.notif-confirm-resume{grid-column:1/-1}
#notifications-edit:not(.notif-clients)>.notif-confirm-resume ul{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:640px){#notifications-edit:not(.notif-clients)>.notif-confirm-resume ul{grid-template-columns:minmax(0,1fr)}}
.notif-roles .included-messages li.is-off{opacity:.6}.notif-roles .included-messages li.is-off::before{background:#b9c0bc}
.notif-heure{margin-inline-start:4px;padding:0 6px;border-radius:6px;background:#fff;border:1px solid var(--line);font-size:.72rem;font-weight:700}
.notif-off{margin-inline-start:4px;color:#8a5a12;font-size:.72rem;font-style:normal;font-weight:700}
.notif-role-note{margin:8px 0 0;color:#6b7470;font-size:.74rem}
.notif-roles .notif-canaux{margin:auto 0 0;padding-top:12px;border-top:1px solid var(--line-soft,#edf1ee);gap:10px}
.notif-roles .notif-telephones{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.notif-roles .notif-telephones>li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 10px;margin:0;padding:8px 10px;border:1px solid var(--line-soft,#edf1ee);border-radius:10px}
.notif-roles .notif-telephones>li>small{grid-row:2;color:var(--muted);font-size:.75rem}
.notif-roles .notif-telephones>li>form{grid-column:2;grid-row:1/3;margin:0}
.notif-roles .notif-telephones>li>form [data-account-status]:empty{display:none}
.notif-role-vide{margin:0;color:var(--muted);font-size:.86rem}
.notif-roles .tg-profil{margin:0;font-size:.86rem}
.notif-roles a.tg-profil{justify-self:start;align-self:flex-start;min-height:44px;display:inline-flex;align-items:center}
.notif-role-etat{margin:0;font-weight:750;font-size:.9rem}.notif-role-etat.is-on{color:#1f6b47}
.notif-roles .tg-plus{padding:8px 10px;border:1px solid var(--line-soft,#edf1ee);border-radius:10px}
.notif-roles .tg-plus[open]{display:grid;gap:8px}
.tg-remplacer{margin:4px 0 0;font-size:.8rem;color:#5f6b65}.tg-remplacer strong{display:block;color:var(--ink)}
.notif-roles.is-inactive .notif-role{opacity:.85}
.notif-roles>.notif-heures{max-width:none;margin-top:4px}
.notif-roles .notif-heures .notif-choice input{flex:none;width:18px;height:18px;min-height:0;padding:0}
@media(max-width:900px){#notifications-edit.notif-clients{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.notif-role-tete{grid-template-columns:auto minmax(0,1fr)}.notif-role-badge{grid-column:1/-1;justify-self:start}
  .notif-roles .notif-telephones>li{grid-template-columns:minmax(0,1fr)}.notif-roles .notif-telephones>li>form{grid-column:1;grid-row:auto}}

/* ==================================================================================================================
 * Capsules — style de la marque, 22/11 (demande de Fahd) : toutes les capsules d'information du tableau de bord suivent
 * la capsule de marque « CABINET » (.brand-descriptor) : pilule, bord et fond tirés de la couleur du texte, majuscules
 * espacées. Fond clair : #0f766e. États : ambre (#7a4a06) et rouge (#8a1f1f) déjà utilisés par les quotas, gris
 * (#5f6b65) pour un état éteint. Hors capsules : compteurs, filtres et pastilles de données (durées, prix, heures
 * estimées, minuteur), et les règles .rule- / .rules- (autre lot).
 * ---------------------------------------------------------------------------------------------------------------- */
:root :is(.notif-role-badge,.notif-actuel,.notif-canal-chip,.notif-heure,.notif-off,.soon,.rc-reco,.rc-badge,.relation-chip,.state-pill,.sub-quota-flag,.plan-reco){
  display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:0;margin-block:0;padding:.24rem .58rem;
  border:1px solid currentColor;border-radius:999px;color:#0f766e;background:color-mix(in srgb,currentColor 12%,transparent);
  font-size:.65rem;font-style:normal;font-weight:700;letter-spacing:.1em;line-height:1;text-transform:uppercase;white-space:nowrap;vertical-align:middle}
:root :is(.notif-heure,.notif-actuel,.notif-off,.soon){font-size:.625rem;padding:.2rem .5rem}
:root .notif-canal-chip{font-size:.7rem}
:root .notif-role-badge:not(.is-on){color:#5f6b65}
:root .notif-off,:root .sub-quota-flag.is-bientot,:root .relation-chip[data-relation=a_surveiller],:root .rc-badge:is(.is-en_pause,.is-en_attente){color:#7a4a06}
:root .sub-quota-flag.is-atteint,:root .relation-chip[data-relation=fragile]{color:#8a1f1f}
:root .relation-chip.relation-unknown{color:#5f6b65}
/* « Vers vos clientes » : la capsule du canal se place sous le titre, à sa largeur. */
.notif-destinataire>header small.notif-canal-chip{justify-self:start;margin-top:4px}
/* Arabe : l'espacement des lettres casse la liaison des caractères. */
[dir=rtl] :is(.notif-role-badge,.notif-actuel,.notif-canal-chip,.notif-heure,.notif-off,.soon,.rc-reco,.rc-badge,.relation-chip,.state-pill,.sub-quota-flag,.brand-descriptor,.plan-reco){letter-spacing:0}
:root .sub-quota-flag::before{margin-inline-end:.35em}
/* Fin du bloc Capsules (22/11). */

/* Activités bien-être (22/11/2026) : 4 cartes = 4 en ligne si la place le permet, sinon 2 × 2 (jamais 3 + 1) ; le
   sélecteur prend toute la largeur de l’étape Activité des Paramètres. */
.config-step-main>form.activity-picker{max-width:none}
@media(min-width:761px){.activity-options:has(>.activity-option:nth-child(4):last-child){grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}}
.activity-options:has(>.activity-option:nth-child(4):last-child)>.activity-option{min-height:0}
/* Règles, refonte du 22/11/2026 (décision de Fahd du 21/11) : essentiels en haut sur toute la largeur, « Réglages
   avancés » replié dessous ; une fois ouvert, ses groupes se rangent en deux colonnes sans trou ; « Détails » discret. */
.rules-grid:has(>.rules-essentials){grid-template-columns:minmax(0,1fr)}
.rules-essentials .rules-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:start}
.rules-essentials .rules-list>*,.rules-essentials .rules-list>*+*{border-top:0}
@media (max-width:719px){.rules-essentials .rules-list>*+*{border-top:1px solid var(--line-soft,#ece9e3)}}
.rules-advanced{background:#fff;border:1px solid var(--line-soft,#e4e1da);border-radius:16px}
.rules-advanced>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 18px;cursor:pointer;list-style:none;font-weight:650}
.rules-advanced>summary::-webkit-details-marker{display:none}
.rules-advanced>summary::after{content:'';width:8px;height:8px;margin-inline-start:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s}
.rules-advanced[open]>summary::after{transform:rotate(-135deg)}
.rules-advanced>summary small{color:#6b7470;font-weight:500;font-size:var(--text-small,.8125rem)}
.rules-advanced>summary:focus-visible{outline:3px solid var(--accent,#c8871a);outline-offset:2px;border-radius:16px}
.rules-advanced[open]>summary{border-bottom:1px solid var(--line-soft,#e4e1da)}
.rules-advanced-groups{columns:2 380px;column-gap:16px;padding:16px}
.rules-advanced-groups>.rules-group{break-inside:avoid;margin:0 0 16px}
.rules-advanced-groups>.rules-group:last-child{margin-bottom:0}
:is(.rule-row,.rules-list .rule-card) .rule-details>summary{min-height:28px;font-size:var(--text-micro,.75rem);font-weight:600;letter-spacing:.01em}
:is(.rule-row,.rules-list .rule-card)>.rule-details{margin-top:0}
@media (prefers-reduced-motion:reduce){.rules-advanced>summary::after{transition:none}}
@media (max-width:719px){.rules-advanced-groups{padding:8px}.rules-advanced>summary{padding:12px 14px}}

/* =========================================================================================================== * Inscription en cartes (22/11, accord de Fahd « inscription Cabinet en cartes ») : la formule se choisit sur des cartes
 * (radios natives, aucun script). Ordinateur : le panneau s'élargit à l'étape d'inscription seulement (la connexion
 * garde 440 px) et les cartes se rangent sur une ligne dès que le groupe a la place ; téléphone : empilées.
 * ---------------------------------------------------------------------------------------------------------------- */
@media (min-width:1100px){
  .login-page:has(#registration-form:not([hidden])){grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr)}
  .login-page:has(#registration-form:not([hidden])) .login-side{padding-inline:clamp(24px,3.5vw,56px)}
  .login-page .auth-panel:has(#registration-form:not([hidden])){width:min(840px,100%)}
}
.login-page .signup-plans{min-width:0;margin:20px 0 8px;padding:0;border:0;container-type:inline-size}
.login-page .signup-plans legend{padding:0;margin:0 0 10px;color:var(--ink);font-size:.84rem;font-weight:600}
.plan-grid{display:grid;gap:10px}
/* STEP Digital Days, inscription Cabinet (29/11/2026) : même pastille que le site (bleu nuit, menthe, or). */
.signup-dd{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 12px;padding:9px 14px;border-radius:14px;background:linear-gradient(135deg,#0b2233,#123a55);color:#fff;font-size:.84rem;line-height:1.3}
.signup-dd .dd-steps{width:18px;height:18px;flex:none;color:#5eead4}.signup-dd .dd-steps rect{fill:currentColor}.signup-dd .dd-steps .dd-gold{fill:#f5c451}
.signup-dd b{font-weight:800}.signup-dd span{color:#f5c451;font-weight:700}
/* Une carte de groupe (variantes) est plus large : prix et nom de chaque variante sur une ligne, hauteurs équilibrées. */
@container (min-width:560px){
  .plan-grid{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  .plan-grid.has-group:has(>:nth-child(3)){grid-auto-flow:row;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr)}
  .plan-grid.has-group:not(:has(>:nth-child(3))){grid-auto-flow:row;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
  /* Cartes sans fonctionnalités (bien-être) : les formules simples côte à côte, le groupe Premium en dessous, ses variantes en ligne. */
  .plan-grid.is-compact.has-group{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}
  .plan-grid.is-compact.has-group:has(>:nth-child(4)){grid-template-columns:repeat(3,minmax(0,1fr))}
  .plan-grid.is-compact.has-group:not(:has(>:nth-child(3))){grid-template-columns:minmax(0,1fr)}
  .plan-grid.is-compact.has-group>.plan-card-group{grid-column:1/-1}
  .plan-grid.is-compact .plan-variants{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.login-page .login-card .plan-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;margin:0;
  padding:16px;border:1px solid #dbe3df;border-radius:14px;background:#fff;color:var(--ink);font-size:.84rem;font-weight:400;line-height:1.4;
  box-shadow:0 2px 3px #132e2203;text-align:start;transition:border-color .15s,box-shadow .15s}
.login-page .login-card label.plan-card{cursor:pointer}
.login-page .login-card label.plan-card:hover,.login-page .plan-variant:hover{border-color:color-mix(in srgb,var(--brand) 45%,#dbe3df)}
.login-page .login-card .plan-card:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 1px var(--brand),0 8px 22px #132e220d;
  background:color-mix(in srgb,var(--brand) 4%,#fff)}
.login-page .login-card .plan-card:has(> input:focus-visible),.login-page .plan-variant:has(input:focus-visible){outline:3px solid var(--brand-ink,#245b4b);outline-offset:3px}
.login-page .login-card .signup-plans input[type=radio]{width:18px;height:18px;min-height:0;margin:0;padding:0;flex:none;border:0;box-shadow:none;accent-color:var(--brand)}
.login-page .login-card .plan-card>input[type=radio]{position:absolute;inset-block-start:16px;inset-inline-end:16px}
.plan-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding-inline-end:26px;min-height:22px}
.plan-name{font-size:1.02rem;font-weight:750;letter-spacing:-.02em}
.plan-price{display:flex;align-items:baseline;gap:4px;flex-wrap:wrap}
.plan-price b{font-size:1.55rem;font-weight:750;letter-spacing:-.04em;line-height:1.1}
.plan-price span,.plan-variant-price span{color:var(--muted);font-size:.76rem}
.plan-launch{color:#7a4a06;font-size:.72rem}
.plan-line{color:var(--muted);font-size:.76rem;line-height:1.45}
.plan-line-on{color:#0f5f58;font-weight:600}
.plan-features{display:grid;gap:4px;margin-top:4px;padding-top:10px;border-top:1px solid #edf2ef;font-size:.76rem;line-height:1.45;color:#3c5147}
.plan-features>span{position:relative;padding-inline-start:16px}
.plan-features>span:not(.plan-lead)::before{content:'';position:absolute;inset-inline-start:2px;top:.5em;width:6px;height:6px;border-radius:50%;background:var(--brand)}
.plan-features .plan-lead{padding:0;color:var(--muted);font-weight:600}
.plan-variants-title{margin-top:6px;color:var(--muted);font-size:.72rem;font-weight:600}
.plan-variants{display:grid;gap:6px}
.login-page .login-card .plan-variant{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:start;margin:0;padding:8px 10px;
  border:1px solid #e3e9e6;border-radius:10px;background:#fff;font-size:.8rem;font-weight:400;cursor:pointer;transition:border-color .15s,background .15s}
.login-page .login-card .plan-variant:has(input:checked){border-color:var(--brand);background:color-mix(in srgb,var(--brand) 7%,#fff)}
.login-page .login-card .plan-variant input[type=radio]{margin-top:1px}
.plan-variant-text{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}
.plan-variant-text .plan-name{font-size:.84rem;font-weight:700;letter-spacing:0}
.plan-variant-price{margin-inline-start:auto;white-space:nowrap}
.plan-variant-price b{font-size:.9rem;font-weight:750}
.plan-variant-text>small{flex-basis:100%;color:var(--muted);font-size:.72rem;line-height:1.4}
.plan-variant-text>.plan-extra{color:#0f5f58}
.plan-variant-text>.plan-launch{color:#7a4a06}
/* Fin du bloc Inscription en cartes (22/11). */
/* Types de visite en Cabinet (21/11/2026). Pastille du type sur l'agenda et la Salle d'attente ; repère du contrôle
   pour la secrétaire (calculé à la lecture). */
.visit-type-pill{display:inline-flex;align-items:center;gap:4px;margin-top:2px;padding:1px 8px;border-radius:999px;background:#e8f0fb;
  color:#24508a;font-size:.72rem;font-weight:750;line-height:1.5;width:fit-content}
.visit-type-pill[data-visit-type=urgence]{background:#fde8e4;color:#9b2c1c}
.visit-type-pill[data-visit-type=controle]{background:#efe9fb;color:#55338f}
.visit-control-note{display:inline-flex;margin-top:2px;padding:1px 8px;border-radius:8px;font-size:.72rem;font-weight:600;line-height:1.45;width:fit-content;max-width:100%}
.visit-control-note.is-ok{background:var(--soft,#eef4f0);color:var(--brand-ink,#1f5c43)}
.visit-control-note.is-warn{background:var(--accent-soft,#fff1e0);color:#8a4b0f}
:is(.agenda-screen,.home-timeline) .appointment-copy :is(.visit-type-pill,.visit-control-note){order:2}
.room-visit{display:flex;flex-wrap:wrap;gap:4px}
.room-visit>*{margin-top:0}

/* Prestations → « Suivi, contrôle et urgence » (section rendue par le serveur). */
.visit-types-panel{margin:0 0 var(--page-gap,20px)}
.visit-types-panel .section-heading{display:grid;gap:6px}
.visit-types-panel .section-heading p{margin:0;color:#5f6b65;font-size:var(--text-small,.8125rem)}
.visit-types-list{display:grid;gap:0;margin-top:12px;border:1px solid var(--line-soft,#e4e1da);border-radius:14px;overflow:hidden;background:#fff}
.visit-types-row{display:grid;gap:8px;padding:12px 16px}
.visit-types-row+.visit-types-row{border-top:1px solid var(--line-soft,#ece9e3)}
.visit-types-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.visit-types-head>strong{font-size:var(--card-title,.9375rem);font-weight:650}
.visit-types-chips{display:flex;flex-wrap:wrap;gap:6px}
.visit-types-chips .fact-pill{font-size:var(--text-micro,.75rem);background:var(--brand-soft,#eef4f0);color:var(--brand-ink,#1f5c43)}
.visit-types-none{color:#6b7470;font-size:var(--text-small,.8125rem)}
.visit-types-edit>summary{display:inline-flex;align-items:center;min-height:32px;font-size:var(--text-small,.8125rem);font-weight:600;color:var(--brand,#1f5c43);cursor:pointer}
.visit-types-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-top:8px}
.visit-type-block{display:grid;align-content:start;gap:8px;margin:0;padding:12px;border:1px solid var(--line-soft,#e4e1da);border-radius:12px;background:#faf9f6;min-width:0}
.visit-type-block legend{padding:0 4px;font-weight:650}
.visit-type-block legend .check{display:inline-flex;align-items:center;gap:8px;min-height:32px}
.visit-type-help{margin:0;color:#5f6b65;font-size:var(--text-micro,.75rem);line-height:1.4}
.visit-type-block label{display:grid;gap:4px;font-size:var(--text-small,.8125rem)}
.visit-type-block input[type=number],.visit-type-block select{min-height:40px;width:100%}
.visit-type-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.visit-type-row label:last-child{grid-column:1/-1}
.visit-pay{display:grid;gap:4px}
.visit-pay .check{display:flex;align-items:center;gap:8px;font-size:var(--text-small,.8125rem)}
.visit-types-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px}
.visit-types-actions [data-visit-status]{margin:0;color:#8a2b1c;font-size:var(--text-small,.8125rem)}
.visit-urgent-team{margin-top:16px}
.visit-urgent-team h3{margin:0 0 4px;font-size:var(--card-title,.9375rem)}
.visit-urgent-team>p{margin:0 0 8px;color:#5f6b65;font-size:var(--text-small,.8125rem)}
.visit-urgent-team ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:8px;margin:0;padding:0;list-style:none}
.visit-urgent-team li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 6px 6px 14px;border:1px solid var(--line-soft,#e4e1da);border-radius:12px;background:#fff}
.visit-urgent-team li>span{flex:1 1 auto;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.visit-urgent-team [data-visit-status]:empty{display:none}
@media (max-width:480px){.visit-urgent-team .rule-switch-text{display:none}}

/* Règles → « Vos rendez-vous » (Cabinet) : ouverture en jours, types acceptés en ligne. */
.rules-list .rule-card>.rule-inline-setting{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 0}
.rule-inline-setting label{display:inline-flex;align-items:center;gap:6px;font-size:var(--text-small,.8125rem)}
.rule-inline-setting [data-rule-status]:empty{display:none}
/* 22/11/2026 : une tuile par type (nom, interrupteur, règle, actes qui le proposent), fenêtres réglables dessous. */
.rules-essentials .rules-list:has(>.rule-visit-types){grid-auto-flow:row dense}
.rules-essentials .rules-list>.rule-visit-types{grid-column:1/-1}
.rules-list .rule-card>.rule-visit-switches{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px;margin-top:8px}
.rule-visit-type{display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px 12px 12px 14px;border:1px solid var(--line-soft,#e4e1da);border-radius:12px;background:#faf9f6;font-size:var(--text-small,.8125rem)}
.rule-visit-type-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rule-visit-type-head strong{font-size:var(--card-title,.9375rem);font-weight:650}
.rule-visit-type .rule-switch-text{display:none}
.rule-visit-type .rule-switch{min-height:36px}
.rule-visit-type .rule-switch-form{margin:0}
.rules-list .rule-card .rule-visit-rule{margin:0;font-size:var(--text-small,.8125rem);line-height:1.45;color:#5f6b65}
.rules-list .rule-card .rule-visit-count{margin:auto 0 0;font-size:var(--text-micro,.75rem);font-weight:600;color:var(--brand,#1f5c43)}
.rules-list .rule-card a.rule-visit-count.is-empty{color:#9a5b12;text-decoration:underline;text-underline-offset:2px}
.rules-list .rule-card>.rule-visit-settings{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 28px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line-soft,#ece9e3)}
.rule-visit-settings .rule-inline-setting{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.rule-inline-setting .rule-inline-label{color:#3d4843;font-weight:600}
@media (max-width:719px){.rule-visit-settings .rule-inline-setting label{flex-wrap:wrap}.rule-visit-settings .rule-inline-label{flex-basis:100%}}
.rules-list .rule-card>.rule-example-line{grid-column:1/-1;margin:2px 0 0;font-size:var(--text-small,.8125rem);line-height:1.45;color:var(--brand,#1f5c43);font-weight:600}

/* Guide Cabinet : étape « Règles du cabinet » = les réglages essentiels de Paramètres → Règles, sans les avancés. */
.guided-setup.phase-regles #settings-rules{display:block!important}
.guided-setup.phase-regles #settings-rules :is(.rules-bloc-head,.rules-advanced,.rule-pause){display:none!important}
.guided-setup.phase-regles #settings-rules .rules-grid{grid-template-columns:minmax(0,1fr)}

/* Nouveau rendez-vous : type de consultation choisi par bouton (Cabinet). */
.visit-type-choice{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0;border:0}
.visit-type-choice legend{width:100%;margin-bottom:4px;font-size:var(--text-small,.8125rem);font-weight:650}
.visit-type-choice label{position:relative;display:inline-flex;margin:0;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:var(--text-small,.8125rem);cursor:pointer}
.visit-type-choice label[hidden]{display:none}
.visit-type-choice input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.visit-type-choice label:has(input:checked){border-color:var(--brand,#1f5c43);background:var(--brand-soft,#eef4f0);color:var(--brand-ink,#1f5c43);font-weight:650}
.visit-type-choice label:has(input:focus-visible){outline:3px solid var(--brand,#1f5c43);outline-offset:2px}
/* Fenêtre de confirmation intégrée (22/11/2026) : remplace confirm() et prompt() ; lisible au doigt sur téléphone. */
.page-dialog{width:min(480px,calc(100vw - 32px));border:0;border-radius:20px;box-shadow:0 24px 64px rgba(7,30,36,.28)}
.page-dialog-card{display:grid;gap:18px;padding:26px}
.page-dialog-text{margin:0;font-size:1.05rem;line-height:1.55;color:var(--text);font-weight:600}
.page-dialog-list{margin:0;padding:12px 14px 12px 32px;max-height:40vh;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.page-dialog-card label{margin:0}
.page-dialog-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
.page-dialog-actions button{min-height:44px;min-width:128px;margin:0;font-weight:700}
@media (max-width:480px){.page-dialog-card{padding:20px}.page-dialog-actions{flex-direction:column-reverse}.page-dialog-actions button{width:100%}}

/* 22/11/2026 (Fahd) : le calendrier de la date de l'agenda vit dans une étiquette dont le texte est masqué (font-size:0) ;
   sans cette règle, jours et mois héritaient d'une taille nulle et devenaient invisibles. */
.agenda-screen .agenda-filters .date-panel,.agenda-screen .agenda-filters .time-panel{font-size:var(--text-body)}
/* 22/11/2026 : ajout d’un horaire en quatre heures (ouverture, pause, fermeture) : deux colonnes, quatre sur grand écran. */
#schedule-create .hours-add-times{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1100px){#schedule-create .hours-add-times{grid-template-columns:repeat(4,minmax(0,1fr))}}
.hours-lunch-note{grid-column:1/-1;margin:0;color:var(--muted);font-size:var(--text-micro)}
#schedule-create .hours-add-times{grid-column:1/-1;align-items:end;column-gap:12px}#schedule-create .hours-add-times .time-field>span{white-space:nowrap}#schedule-create .hours-add-times input[data-time-field]{width:100%}
=======
.vue-step-bandeau{position:sticky;top:0;z-index:60;display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4);padding:var(--space-3) var(--space-4);background:var(--ink);color:#fff;font-size:var(--text-small)}
.vue-step-bandeau strong{font-size:var(--text-body)}
.vue-step-bandeau form{margin-left:auto}
.vue-step-bandeau button{min-height:44px;padding:0 var(--space-4);border-radius:999px;border:1px solid #fff;background:#fff;color:var(--ink);font:inherit;font-weight:600;cursor:pointer}

/* Réceptionniste IA — onglet « Numéro WhatsApp » et page de connexion Meta (22/11/2026, port de STEPIA).
   Onglets en boutons radio natifs : clavier et lecteur d'écran sans script ; l'état porte toujours un mot, jamais la
   seule couleur ; cibles de 44 px ; une colonne sous 700 px. */
.reception-onglets{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4);min-width:0}
.reception-onglet-choix{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.reception-onglet-barre{display:flex;flex-wrap:wrap;gap:var(--space-2);padding:var(--space-1);border:1px solid var(--line);
  border-radius:var(--radius-pill);background:var(--soft);width:fit-content;max-width:100%}
.reception-onglet-barre label{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--space-4);border-radius:var(--radius-pill);
  font-weight:700;color:var(--muted);cursor:pointer}
#reception-onglet-savoir:checked~.reception-onglet-barre label[for='reception-onglet-savoir'],
#reception-onglet-numero:checked~.reception-onglet-barre label[for='reception-onglet-numero']{background:var(--surface);color:var(--brand-ink);
  box-shadow:var(--shadow)}
#reception-onglet-savoir:focus-visible~.reception-onglet-barre label[for='reception-onglet-savoir'],
#reception-onglet-numero:focus-visible~.reception-onglet-barre label[for='reception-onglet-numero']{outline:3px solid var(--accent);outline-offset:2px}
.reception-onglet-panneau{display:none}
#reception-onglet-savoir:checked~.reception-onglet-panneau[data-onglet='savoir'],
#reception-onglet-numero:checked~.reception-onglet-panneau[data-onglet='numero']{display:block}
.cw-intro{margin:0 0 var(--space-4);color:var(--muted);max-width:720px;line-height:1.5}
.cw-choix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4)}
.cw-methode{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-5);background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius)}
.cw-methode[aria-current='true']{border-color:var(--success);box-shadow:0 0 0 1px var(--success)}
.cw-etiquette{align-self:flex-start;margin:0;padding:4px 10px;border-radius:var(--radius-pill);background:var(--brand-soft);
  color:var(--brand-ink);font-size:var(--text-small);font-weight:700}
.cw-methode[aria-current='true'] .cw-etiquette{color:var(--success)}
.cw-methode h3{margin:0;font-family:var(--font-display);font-size:1.15rem;line-height:1.3;color:var(--ink)}
.cw-pour{margin:0;color:var(--muted);line-height:1.5}
.cw-faits{display:grid;gap:var(--space-2);margin:0;padding:0;list-style:none;font-size:var(--text-small);color:var(--ink)}
.cw-faits li{position:relative;padding-left:22px;line-height:1.5}
.cw-faits li::before{content:'✓';position:absolute;left:0;top:0;color:var(--brand);font-weight:800}
.cw-bouton{margin-top:auto;justify-content:center;min-height:48px;width:100%}
.cw-etat{margin:0 0 var(--space-4);padding:var(--space-4) var(--space-5);border-radius:var(--radius-small);border:1px solid var(--line);background:var(--surface)}
.cw-etat p{margin:0;line-height:1.5}.cw-etat p+p{margin-top:var(--space-2)}
.cw-etat-titre{font-weight:800}
.cw-etat-ok{border-left:4px solid var(--success)}.cw-etat-ok .cw-etat-titre{color:var(--success)}
.cw-etat-erreur{border-left:4px solid var(--danger)}.cw-etat-erreur .cw-etat-titre{color:var(--danger)}
.cw-etat-vide{border-left:4px solid var(--line);background:var(--soft)}
.cw-etat-suite{color:var(--muted);font-size:var(--text-small)}
body.cw-corps{background:var(--canvas)}
.cw-page{max-width:640px;margin:0 auto;padding:var(--space-6) var(--space-4) 48px}
.cw-retour{display:inline-flex;align-items:center;min-height:44px;margin-bottom:var(--space-3);color:var(--brand);font-weight:700;text-decoration:none}
.cw-carte{display:grid;gap:var(--space-4);padding:var(--space-6);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.cw-carte h1{margin:0;font-family:var(--font-display);font-size:var(--text-title);line-height:1.25;color:var(--ink)}
.cw-carte .eyebrow{margin:0}
.cw-etapes{display:grid;gap:var(--space-3);margin:0;padding:0;list-style:none;counter-reset:cw}
.cw-etapes li{display:grid;grid-template-columns:32px 1fr;column-gap:var(--space-3);counter-increment:cw}
.cw-etapes li::before{content:counter(cw);grid-row:span 2;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;
  background:var(--brand-soft);color:var(--brand-ink);font-weight:800}
.cw-etapes b{color:var(--ink)}.cw-etapes span{color:var(--muted);font-size:var(--text-small);line-height:1.5}
.cw-action{display:grid;gap:var(--space-3);padding:var(--space-4);border-radius:var(--radius-small);background:var(--soft)}
.cw-action .primary{width:100%;min-height:48px}
.cw-action .primary:disabled{opacity:.55;cursor:wait;box-shadow:none}
.cw-statut{margin:0;font-size:var(--text-small);font-weight:600;color:var(--muted)}
.cw-statut[data-etat='pret']{color:var(--brand-ink)}
.cw-statut[data-etat='encours']{color:var(--accent)}
.cw-statut[data-etat='ok']{color:var(--success)}.cw-statut[data-etat='ok']::before{content:'✓ '}
.cw-statut[data-etat='erreur']{color:var(--danger)}.cw-statut[data-etat='erreur']::before{content:'! '}
.cw-note{margin:0;color:var(--muted);font-size:var(--text-small)}
.cw-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;color:var(--brand)}
.cw-details[open] summary{margin-bottom:var(--space-2)}
@media (max-width:700px){.cw-choix{grid-template-columns:1fr}.cw-carte{padding:var(--space-5) var(--space-4)}.cw-methode{padding:var(--space-4)}
  .reception-onglet-barre{width:100%;flex-wrap:nowrap}.reception-onglet-barre label{flex:1 1 0;min-width:0;width:auto;
    justify-content:center;text-align:center;padding:0 var(--space-3);line-height:1.2}}

/* Secrétaire / Réceptionniste IA en quatre onglets horizontaux (Fahd, 23/11/2026) : même allure que les onglets du haut des
   Paramètres (barre blanche, onglet actif foncé) ; défilement horizontal sur téléphone, jamais de débordement de page. */
.rc-onglets{margin-top:14px}
.rc-onglets .rc-onglet-barre{display:flex;flex-wrap:nowrap;gap:6px;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:6px;
  border:1px solid var(--line);border-radius:14px;background:#fff;scrollbar-width:thin}
.rc-onglets .rc-onglet-barre label{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:0 14px;border-radius:10px;font-size:14px;
  font-weight:600;color:#3b4b66;background:none;box-shadow:none}
.rc-onglets .rc-onglet-barre label:hover{background:var(--soft)}
#reception-onglet-numero:checked~.rc-onglet-barre label[for='reception-onglet-numero'],
#reception-onglet-regles:checked~.rc-onglet-barre label[for='reception-onglet-regles'],
#reception-onglet-contenus:checked~.rc-onglet-barre label[for='reception-onglet-contenus'],
#reception-onglet-faq:checked~.rc-onglet-barre label[for='reception-onglet-faq']{background:var(--rg-nuit,#0b1e3f);color:#fff;
  box-shadow:0 8px 20px rgba(29,59,128,.22)}
#reception-onglet-regles:focus-visible~.rc-onglet-barre label[for='reception-onglet-regles'],
#reception-onglet-contenus:focus-visible~.rc-onglet-barre label[for='reception-onglet-contenus'],
#reception-onglet-faq:focus-visible~.rc-onglet-barre label[for='reception-onglet-faq']{outline:3px solid var(--accent);outline-offset:2px}
#reception-onglet-regles:checked~.reception-onglet-panneau[data-onglet='regles'],
#reception-onglet-contenus:checked~.reception-onglet-panneau[data-onglet='contenus'],
#reception-onglet-faq:checked~.reception-onglet-panneau[data-onglet='faq']{display:block}
.rc-onglets .reception-onglet-panneau>.rc-fenetre+*{margin-top:12px}
.rc-onglet-note{margin:0 0 12px;color:var(--muted);font-size:14px;line-height:1.5}
.rc-bientot{margin:12px 0 0;padding:10px 14px;border-radius:12px;border:1px solid var(--line);border-left:4px solid var(--accent);
  background:var(--soft);font-size:14px;line-height:1.5}
@media (max-width:700px){.rc-onglets .rc-onglet-barre label{flex:0 0 auto;padding:0 12px}}

/* Guide Cabinet. Scope posé par la session d’un établissement qui a opté pour la refonte. */
body.cabinet-setup {
  --cg-ink:#153b31; --cg-action:#245747; --cg-soft:#eaf1eb; --cg-paper:#f6f5f0;
  --cg-line:#dce3db; --cg-secondary:#4c6258; --cg-track:#dfe6df;
  --brand:var(--cg-action); background:var(--cg-paper); color:var(--cg-ink);
}
body.cabinet-setup :is(.setup-welcome,.setup-progress,.step-required,.setup-required,.setup-save-note:not(.is-error),.preview-jump){display:none!important}
body.cabinet-setup .setup-journey-bar,
body.cabinet-setup #app .page-content {max-width:1152px;margin-inline:auto}
body.cabinet-setup .setup-journey-bar {padding:clamp(12px,3vw,30px) clamp(16px,3vw,30px) 14px}
body.cabinet-setup .cabinet-guide-brand {display:flex;align-items:center;gap:8px;font-size:1.08rem;font-weight:800;line-height:1;color:var(--cg-ink);margin-bottom:22px}
.cabinet-guide-brand img {border-radius:10px;object-fit:contain;background:#fff}
.cabinet-guide-brand small {display:block;color:var(--cg-action);font-weight:650;font-size:.75rem;margin-top:3px}
body.cabinet-setup .setup-journey-bar header {gap:.65rem;align-items:start}
body.cabinet-setup .setup-journey-bar header h1 {font-size:clamp(1.8rem,4vw,2.7rem);line-height:1.08;color:var(--cg-ink)}
body.cabinet-setup .setup-journey-bar header>div>p {color:var(--cg-secondary)}
body.cabinet-setup .setup-journey-bar header a {min-height:44px;display:inline-flex;align-items:center;gap:4px;font-weight:650}
body.cabinet-setup .setup-journey-bar nav {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:12px;padding:0;overflow:visible}
body.cabinet-setup .setup-journey-bar nav a {display:flex;flex-direction:column;align-items:stretch;gap:5px;min-height:44px;min-width:0;padding:0!important;color:var(--cg-secondary);background:none!important;border:0!important;box-shadow:none!important;text-align:start;line-height:1.2;font-size:.78rem;position:relative;white-space:normal}
body.cabinet-setup .setup-journey-bar nav a::before {content:'';display:block;height:6px;border-radius:99px;background:var(--cg-track);transition:background .35s ease}
body.cabinet-setup .setup-journey-bar nav a::after,
body.cabinet-setup .setup-journey-bar nav a>span,
body.cabinet-setup .setup-journey-bar nav a>small {display:none!important}
body.cabinet-setup .setup-journey-bar nav a[data-cabinet-done='true']::before {background:#58846c}
body.cabinet-setup .setup-journey-bar nav a[aria-current='step'] {color:var(--cg-ink);font-weight:800}
body.cabinet-setup .setup-journey-bar nav a[aria-current='step']::before {background:var(--cg-action)}
body.cabinet-setup .config-step {margin-inline:auto;border:1px solid var(--cg-line);border-radius:16px;box-shadow:none;max-width:1090px}
body.cabinet-setup .config-step-continued {margin-top:10px}
body.cabinet-setup :is(.activity-option,.cabinet-accordion) {border-color:var(--cg-line);border-radius:14px}
body.cabinet-setup .activity-options {align-items:stretch}
body.cabinet-setup .activity-option {transition:border-color .18s ease,background-color .18s ease}
body.cabinet-setup .activity-option:has(:checked) {border-color:var(--cg-action);background:var(--cg-soft)}
body.cabinet-setup :is(.form-grid,.service-form,.hours-add-form) :is(input:not([type=checkbox],[type=radio],[type=color]),select,textarea) {font-size:1rem;min-height:44px;min-width:0;max-width:100%}
body.cabinet-setup :is(.config-step-body,.cabinet-stack,.hours-workbench) {min-width:0}
body.cabinet-setup :is(.services-screen,.hours-screen) {max-width:900px;margin-inline:auto}
body.cabinet-setup :is(.services-screen,.hours-screen)>.page-head,
body.cabinet-setup :is(.services-summary,.hours-summary,.hours-lunch-note) {display:none}
body.cabinet-setup :is(.services-workbench,.hours-workbench,.cabinet-stack) {display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
body.cabinet-setup .services-team-column:empty {display:none}
body.cabinet-setup [data-cabinet-preview-source],
body.cabinet-setup .hours-screen > .setup-phone {display:none!important}
body.cabinet-setup [data-setup-step] {scroll-margin-block:80px}
body.cabinet-setup .cabinet-accordion {
  grid-column:1/-1; background:white;border:1px solid var(--cg-line);border-radius:14px;min-width:0;
}
body.cabinet-setup .cabinet-accordion>summary {
  display:grid;grid-template-columns:36px minmax(0,1fr) auto 18px 12px;gap:8px;align-items:center;min-height:64px;
  padding:12px 14px;list-style:none;cursor:pointer;color:var(--cg-ink);
}
.cabinet-accordion>summary::-webkit-details-marker {display:none}
.cabinet-accordion>summary>svg {width:36px;height:36px;padding:8px;border-radius:11px;background:var(--cg-soft);color:var(--cg-action)}
.cabinet-summary {min-width:0}
.cabinet-summary :is(strong,small) {display:block;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.cabinet-summary strong {font-size:1rem}
.cabinet-summary small {font-size:.84rem;color:var(--cg-secondary);white-space:nowrap;margin-top:3px}
.cabinet-kind {padding:3px 7px;border-radius:99px;background:var(--cg-paper);font-size:.72rem;font-weight:750;color:var(--cg-secondary)}
[data-required=true] > summary .cabinet-kind {background:#edf1eb;color:var(--cg-ink)}
.cabinet-check {visibility:hidden;display:grid;place-items:center;background:var(--cg-soft);border-radius:50%;width:20px;height:20px;color:var(--cg-action);font-weight:800}
[data-complete=true] > summary .cabinet-check {visibility:visible;animation:cabinet-enter .18s ease both}
.cabinet-chevron {height:7px;width:7px;border:solid var(--cg-secondary);border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .2s}
[open] > summary .cabinet-chevron {transform:rotate(225deg)}
.cabinet-accordion-body {min-width:0;padding:14px;border-top:1px solid var(--cg-line);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cabinet-accordion-body > :not(label) {grid-column:1/-1;min-width:0}
.cabinet-accordion[open]>.cabinet-accordion-body {animation:cabinet-enter .2s ease both}
.cabinet-sr {position:absolute!important;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%)}
body.cabinet-setup .cabinet-accordion :is(.catalogue-panel,.team-panel,.resources-panel,.hours-opening,.hours-closures) {border:0;box-shadow:none;padding:0}
body.cabinet-setup .catalogue-panel:has([data-empty-catalogue]) {display:none}
body.cabinet-setup .cabinet-duration {display:flex;flex-wrap:wrap;gap:6px;grid-column:1/-1}
body.cabinet-setup .cabinet-duration button {min-height:44px;min-width:58px}
body.cabinet-setup .cabinet-duration button[aria-pressed=true] {color:white;background:var(--cg-action);border-color:var(--cg-action)}
body.cabinet-setup .field-row-price {grid-template-columns:repeat(2,minmax(0,1fr))}
body.cabinet-setup .hours-add-times,.cabinet-pause-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.cabinet-setup .cabinet-pause {grid-column:1/-1}
.cabinet-pause>summary {min-height:44px;cursor:pointer;padding:10px 0}
body.cabinet-setup .day-checks label {min-height:44px}
body.cabinet-setup :is(a,button,input,textarea,select,summary):focus-visible {outline:2px solid var(--cg-action);outline-offset:3px}
body.cabinet-setup :is([data-cabinet-error],[data-cabinet-field-error]) {color:#8b2622;font-weight:700}
body.cabinet-setup .setup-journey-footer {gap:8px;padding:8px max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#fff}
body.cabinet-setup .setup-journey-footer :is(button,a) {min-height:44px;min-width:0}
body.cabinet-setup .setup-journey-footer [data-go-publish] {display:none!important}
body.cabinet-setup .setup-journey-footer [data-cabinet-preview] {display:none}
body.cabinet-setup:is(.phase-services,.phase-horaires) .setup-journey-footer [data-cabinet-preview] {display:block;order:1}
body.cabinet-setup .setup-journey-footer .primary {order:2;background:var(--cg-action);color:#fff}
body.cabinet-setup.phase-publication .setup-aside-card {display:none}
body.cabinet-setup.phase-publication :is(.publication-complete-links,.setup-guide) {overflow-wrap:anywhere}
body.cabinet-setup.phase-publication .config-step-main:has(.publication-complete) .config-save {display:none}
.cabinet-preview-dialog {border:1px solid #dce3db;border-radius:16px;background:#f6f5f0;color:#153b31;padding:16px;width:min(420px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.cabinet-preview-dialog::backdrop {background:#153b3199}
.cabinet-preview-dialog>button {min-height:44px;width:100%;margin-bottom:12px}
.cabinet-preview-dialog .cabinet-dialog-phone {display:block!important;margin-inline:auto;width:100%;max-width:320px}
@keyframes cabinet-enter {from {opacity:0;transform:translateY(3px)} to {opacity:1;transform:translateY(0)}}
@media(max-width:870px) {
  body.cabinet-setup .setup-journey-bar nav a {font-size:0;min-height:30px}
  body.cabinet-setup .setup-journey-bar nav a::before {margin-block:8px}
  body.cabinet-setup #screen .setup-aside {display:none!important}
  body.cabinet-setup .setup-journey-footer [data-cabinet-preview] {display:block;order:1}
}
@media(max-width:600px) {
  body.cabinet-setup .setup-journey-bar {padding:12px 16px 8px}
  body.cabinet-setup .cabinet-guide-brand {margin-bottom:12px}
  body.cabinet-setup .setup-journey-bar header>div {min-width:0}
  body.cabinet-setup .setup-journey-bar header>div>p {margin-block:4px}
  body.cabinet-setup .setup-journey-bar header a {font-size:.76rem}
  body.cabinet-setup #screen .config-step {padding:10px}
  body.cabinet-setup .cabinet-accordion>summary {grid-template-columns:32px minmax(0,1fr) auto 16px 10px;gap:6px;padding:10px;min-height:58px}
  body.cabinet-setup .cabinet-accordion>summary>svg {width:32px;height:32px}
  .cabinet-accordion-body {grid-template-columns:minmax(0,1fr);padding:10px}
  .cabinet-summary strong {font-size:.9rem}
  .cabinet-summary small {font-size:.78rem}
  body.cabinet-setup .setup-journey-footer {position:sticky;bottom:0;inset-inline:0;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;width:100%;border-top:1px solid var(--cg-line)}
  body.cabinet-setup .setup-journey-footer :is(button,a) {font-size:.76rem;padding-inline:8px}
  body.cabinet-setup .setup-journey-footer [data-cabinet-preview] {flex:0 1 auto}
  body.cabinet-setup .setup-journey-footer .primary {flex:1 0 auto}
}
@media(prefers-reduced-motion:reduce) {
  .cabinet-setup *, .cabinet-preview-dialog * {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


body.cabinet-setup {
  height:var(--cabinet-viewport,100dvh);overflow:hidden;padding:0!important;background:var(--cg-paper)!important;
}
body.cabinet-setup #application:not([hidden]) {
  display:grid;grid-template-rows:minmax(0,1fr) auto;height:var(--cabinet-viewport,100dvh);min-height:0;overflow:hidden;
  background:var(--cg-paper)!important;
}
body.cabinet-setup #application .main-area {height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:20px}
body.cabinet-setup #screen {min-height:0;padding-block:0 24px}
body.cabinet-setup .setup-journey-bar {background:var(--cg-paper);padding-block:12px 8px}
body.cabinet-setup .cabinet-guide-mast {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
body.cabinet-setup .cabinet-guide-brand {margin:0}
body.cabinet-setup .cabinet-guide-mast a {display:flex;align-items:center;min-height:44px;font-size:.8rem;font-weight:700;color:var(--cg-action)}
body.cabinet-setup .setup-journey-bar header>div {width:100%;position:relative}
body.cabinet-setup .setup-journey-bar header>div>.eyebrow {font-size:.8rem;letter-spacing:0;text-transform:none;line-height:1.3;padding-inline-end:86px;margin:0}
body.cabinet-setup .setup-journey-bar header>div>.guide-clock-badge {position:absolute;inset-inline-end:0;top:-4px;margin:0!important}
body.cabinet-setup .setup-journey-bar header h1 {margin:6px 0 2px;font-size:clamp(1.7rem,4vw,2.4rem)!important}
body.cabinet-setup .setup-journey-bar header h1+p {margin:4px 0 0;font-size:.92rem}
body.cabinet-setup .setup-journey-bar nav {
  grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-auto-columns:auto;gap:7px;margin:10px 0 0!important;
}
body.cabinet-setup .setup-journey-bar nav a {align-items:stretch!important;justify-content:center!important;min-height:44px!important;gap:5px;color:var(--cg-secondary)!important}
body.cabinet-setup .setup-journey-bar nav a::before {display:none!important}
.cabinet-segment {display:block;width:100%;height:7px;border-radius:99px;background:var(--cg-track);transition:background .35s ease}
[data-cabinet-done=true] > .cabinet-segment {background:#58846c}
[aria-current=step] > .cabinet-segment {background:var(--cg-action)}
body.cabinet-setup .setup-journey-footer {position:static;box-shadow:none;margin:0;z-index:1;flex-wrap:wrap}
body.cabinet-setup .config-step {border-top:1px solid var(--cg-line)}
body.cabinet-setup #organization-edit > fieldset[data-cabinet-prepared] {border:0;padding:0;min-width:0;background:none}
body.cabinet-setup #organization-edit > fieldset[data-cabinet-prepared] > legend {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.cabinet-setup .brand-studio-layout {display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
body.cabinet-setup .services-workbench .setup-phone {display:none!important}
body.cabinet-setup .services-screen .field-row-name {grid-template-columns:minmax(0,1fr)}
body.cabinet-setup .add-service-panel summary small {display:none}
body.cabinet-setup .services-screen .service-chips button {min-height:36px}
body.cabinet-setup .hours-opening > header,body.cabinet-setup .hours-opening :is(.empty-canvas,.ready-week-hint) {display:none}
body.cabinet-setup .hours-opening .day-checks {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:0;border:0;gap:6px}
body.cabinet-setup .hours-opening .day-checks label {min-width:0;justify-content:center;padding:5px;border-radius:9px;font-size:.9rem;position:relative}
body.cabinet-setup .hours-opening .day-checks input {position:absolute;opacity:0;width:1px;height:1px}
body.cabinet-setup .hours-opening .day-checks label:has(input:checked) {background:var(--cg-action);color:white}
body.cabinet-setup .hours-opening .day-checks label:has(input:focus-visible) {outline:2px solid var(--cg-action);outline-offset:2px}
.cabinet-week {grid-column:1/-1;display:grid;gap:5px;padding:0;margin:0;list-style:none}
.cabinet-week li {display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:8px;font-size:.75rem}
.cabinet-week-track {position:relative;isolation:isolate;min-height:23px;padding:3px 6px;text-align:center;border-radius:6px;background:var(--cg-paper);white-space:nowrap}
.cabinet-week-track i {z-index:-1;position:absolute;top:0;bottom:0;background:#d7e6d9;border-radius:5px}
@media(max-width:600px) {
  body.cabinet-setup .setup-journey-bar nav a {min-height:44px!important;margin:0}
  body.cabinet-setup .hours-opening .day-checks {grid-template-columns:repeat(4,minmax(0,1fr))}
  body.cabinet-setup .setup-journey-footer a:not(.primary) {padding:8px}
  .cabinet-summary small {white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}


body.cabinet-setup.phase-publication .setup-guide>header h3 {font-size:clamp(1.3rem,3vw,2rem)}
body.cabinet-setup.phase-publication .setup-guide:not(.publication-complete)>a.button-link {display:none}
body.cabinet-setup.phase-publication .setup-guide-steps {display:grid;gap:5px}
body.cabinet-setup.phase-publication .setup-guide-steps li {padding:6px 9px;min-height:44px;display:flex;align-items:center;gap:8px}
body.cabinet-setup.phase-publication .setup-guide-steps li.is-optional {display:none}
body.cabinet-setup.phase-publication .setup-guide-steps li .setup-guide-state {font-size:.75rem;min-width:0}
body.cabinet-setup.phase-publication .setup-guide-steps li a {min-height:40px;display:flex;align-items:center}
body.cabinet-setup.phase-publication .setup-guide-publish {padding:12px}
body.cabinet-setup .cabinet-suggestion {justify-self:start;min-height:44px}


/* Guide Cabinet (28/11/2026) : écrans « Bienvenue » et « Publication en cours », autour des six étapes. */
.cabinet-stage {
  --cabinet-stage-ink:#1f5a45; --cabinet-stage-accent:#2f7a5b; --cabinet-stage-soft:#e3efe6; --cabinet-stage-card:#ffffff;
  position:fixed;inset:0;z-index:80;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:auto;
  padding:clamp(16px,3.2vw,40px);color:#153b31;
  background:radial-gradient(120% 90% at 100% 0%,#e6f0e8 0,transparent 55%),radial-gradient(90% 70% at 0% 100%,#eef4ef 0,transparent 60%),#f7f8f4;
}
body.cabinet-stage-open {overflow:hidden}
.cabinet-stage-top {display:flex;align-items:center;justify-content:space-between;gap:16px;width:min(1120px,100%);margin-inline:auto}
.cabinet-stage-top .cabinet-guide-brand {display:flex;align-items:center;gap:10px;margin:0;font-size:1.12rem;font-weight:800;line-height:1.05}
.cabinet-stage-top .cabinet-guide-brand small {color:var(--cabinet-stage-accent)}
.cabinet-stage-clock {display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;background:#e3ece5;
  font-weight:700;font-variant-numeric:tabular-nums;color:#153b31;white-space:nowrap}
.cabinet-stage-art {margin:0;display:grid;place-items:center}
.cabinet-stage-art svg {width:100%;height:auto;display:block}
.cabinet-welcome-body {width:min(1120px,100%);margin:auto;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:center;gap:clamp(24px,5vw,72px);padding-block:clamp(20px,4vh,48px)}
.cabinet-welcome-copy h1 {margin:0 0 14px;font-size:clamp(1.85rem,3.6vw,2.9rem);line-height:1.08;letter-spacing:-.02em;color:#153b31}
.cabinet-welcome-copy h1:focus {outline:none}
.cabinet-welcome-copy>p {margin:0 0 24px;max-width:34rem;font-size:clamp(1rem,1.35vw,1.14rem);line-height:1.55;color:#3d5a4e}
.cabinet-features {list-style:none;margin:0 0 28px;padding:0;display:grid;gap:14px}
.cabinet-features li {display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:14px}
.cabinet-features strong {display:block;font-size:1rem;color:#153b31}
.cabinet-features small {display:block;margin-top:2px;color:#4c6258;font-size:.9rem}
.cabinet-feature-icon {width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e3efe6;color:var(--cabinet-stage-accent)}
.cabinet-feature-icon svg {width:22px;height:22px}
.cabinet-stage-action {min-height:52px;padding:0 28px;border-radius:12px;font-size:1.02rem;font-weight:800;
  background:var(--cabinet-stage-ink);border-color:var(--cabinet-stage-ink);color:#fff;box-shadow:0 10px 24px rgb(31 90 69 / .22)}
.cabinet-welcome .cabinet-stage-art {padding:clamp(12px,2vw,28px);border-radius:28px;background:linear-gradient(160deg,#ffffff 0,#eaf2ec 100%);
  box-shadow:0 24px 60px rgb(21 59 49 / .10)}
.cabinet-publishing-body {width:min(620px,100%);margin:auto;display:grid;justify-items:center;text-align:center;gap:10px;padding-block:24px}
.cabinet-publishing .cabinet-stage-art {width:min(300px,78%)}
.cabinet-publishing h1 {margin:8px 0 0;font-size:clamp(1.5rem,3vw,2rem);color:#153b31}
.cabinet-publishing p {margin:0 0 14px;color:#3d5a4e;line-height:1.5}
.cabinet-progress {position:relative;width:min(460px,100%);height:12px;border-radius:999px;background:#dfe6df;overflow:hidden}
.cabinet-progress span {position:absolute;inset:0 auto 0 0;width:38%;border-radius:inherit;background:var(--cabinet-stage-accent);
  animation:cabinet-progress 1.25s ease-in-out infinite}
.cabinet-publishing.is-done .cabinet-progress span {animation:none;width:100%;transition:width .28s ease-out}
.cabinet-publish-error {margin:10px 0 0;padding:10px 12px;border-radius:10px;background:#fdf0ee;border:1px solid #f0c9c2;color:#8a2a1c;font-weight:650;line-height:1.45}
/* Entrée du guide : rien de l'étape Activité avant l'accueil ou la reprise ; visible après 10 s si le script ne répond pas. */
body.cabinet-entering :is(#application,.setup-journey-bar,.setup-journey-footer,.setup-welcome) {visibility:hidden;animation:cabinet-reveal 0s 10s forwards}
@keyframes cabinet-reveal {to {visibility:visible}}
/* Guide : l'état de l'option Secrétaire WhatsApp reste dans Paramètres, pas au milieu des étapes. */
body.cabinet-setup .rg-aide {display:none!important}
/* Aide WhatsApp du guide : au-dessus de la barre Précédent/Suivant, jamais sur un bouton d'action. */
.cabinet-help {position:fixed;z-index:90;inset-inline-end:16px;bottom:calc(84px + env(safe-area-inset-bottom,0px));display:inline-flex;align-items:center;gap:8px;
  min-height:44px;padding:0 16px 0 12px;border-radius:999px;background:#fff;color:#153b31;border:1px solid #cfe3d6;box-shadow:0 10px 28px rgb(21 59 49 / .16);
  font-weight:750;font-size:.88rem;text-decoration:none}
.cabinet-help svg {width:22px;height:22px;color:#1faa55;flex:none}
.cabinet-help:hover,.cabinet-help:focus-visible {border-color:#1faa55}
.cabinet-stage {padding-bottom:max(clamp(16px,3.2vw,40px),88px)}
body.cabinet-stage-open .cabinet-help {bottom:calc(16px + env(safe-area-inset-bottom,0px))}
body:not(.cabinet-setup) .cabinet-help {display:none}
@media (max-width:760px) {.cabinet-help {width:52px;height:52px;padding:0;justify-content:center}.cabinet-help span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.cabinet-help svg {width:26px;height:26px}}
.cabinet-legend {display:block;margin-top:4px;color:var(--cg-secondary,#4c6258);font-size:.8rem}
body.cabinet-setup .cabinet-pause {border:1px dashed var(--cg-line,#dce3db);border-radius:12px;padding:4px 14px 12px;background:#fff}
body.cabinet-setup .cabinet-pause>summary {font-weight:700;color:var(--cg-action,#245747)}
@keyframes cabinet-progress {0% {transform:translateX(-100%)} 100% {transform:translateX(270%)}}
@media (prefers-reduced-motion:reduce) {
  .cabinet-progress span {animation:none;width:100%;opacity:.55}
}
@media (max-width:760px) {
  .cabinet-welcome-body {grid-template-columns:minmax(0,1fr);gap:20px;margin-top:8px}
  .cabinet-welcome .cabinet-stage-art {order:-1;width:min(340px,100%);justify-self:center;padding:10px}
  .cabinet-welcome-copy h1 {font-size:1.75rem}
  .cabinet-features {gap:12px;margin-bottom:22px}
  .cabinet-stage-action {width:100%}
  .cabinet-stage-top .cabinet-guide-brand img {width:34px;height:34px}
}


body.cabinet-setup .time-field:has([data-time-panel]) {grid-column:1/-1}
body.cabinet-setup .time-panel {position:relative;inset:auto;width:100%;min-width:0;box-sizing:border-box;box-shadow:none}
body.cabinet-setup .time-panel :is([data-time-hour],[data-time-minute],[data-time-other],button) {min-height:44px}
body.cabinet-setup .time-field {scroll-margin-block:18px}


body.cabinet-setup #screen .config-step::before {display:none}
body.cabinet-setup #organization-edit fieldset[data-cabinet-prepared] {border:0;padding:0;min-width:0;background:none}
body.cabinet-setup #organization-edit fieldset[data-cabinet-prepared] > legend {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.cabinet-setup.phase-publication .setup-guide > header > strong {white-space:nowrap;overflow-wrap:normal}
body.cabinet-setup.phase-publication .setup-guide-publish h4,
body.cabinet-setup.phase-publication .publication-dashboard-link {display:none}
body.cabinet-setup.phase-publication .setup-guide-steps li {
  gap:8px;margin:0;background:#fff;border:0;border-bottom:1px solid var(--cg-line);border-radius:0;box-shadow:none
}
body.cabinet-setup.phase-publication .setup-guide-steps li .setup-guide-state {width:auto;min-width:0;padding:4px 6px;font-size:.72rem}
body.cabinet-setup.phase-publication .setup-guide-steps li a {padding:0;min-width:0;min-height:36px;font-size:.86rem}
body.cabinet-setup.phase-publication .setup-guide > header {flex-wrap:wrap;gap:8px}




body.cabinet-setup :is(.setup-journey-bar h1,#screen .config-step) {animation:cabinet-enter .2s ease both}
body.cabinet-setup:has(.publication-complete) #toast {display:none}


/* Bandeau « Configuration de votre cabinet » : toute la bande ouvre Mon établissement. */
.cabinet-setup-banner {position:relative}
.cabinet-setup-banner a::after {content:'';position:absolute;inset:0;border-radius:inherit}
.cabinet-setup-banner:hover {border-color:color-mix(in srgb, var(--accent) 60%, var(--line))}

/* Guide Cabinet, 28/11/2026 (GO de Fahd) : une seule colonne et une palette gris-vert.
   En-tête, contenu et barre du bas partagent la même largeur ; fond gris-vert reposant, cartes blanches, vert profond. */
body.cabinet-setup {
  --cabinet-column:1120px;
  --cg-ink:#153b31; --cg-action:#1f5a45; --cg-soft:#e3efe6; --cg-paper:#f3f6f4; --cg-line:#dce5df; --cg-track:#dde6e0; --cg-secondary:#4c6258;
  --paper:#fff; --surface-2:#f7faf8; --line:#dce5df; --brand:#1f5a45;
}
body.cabinet-setup .setup-journey-bar,
body.cabinet-setup #screen>* {width:min(var(--cabinet-column),calc(100% - 32px));max-width:none!important;margin-inline:auto!important;box-sizing:border-box}
body.cabinet-setup .setup-journey-bar {padding-inline:0!important}
body.cabinet-setup #screen {padding-inline:0!important}
body.cabinet-setup .setup-journey-footer {padding-inline:max(16px,calc((100% - var(--cabinet-column)) / 2))!important;background:#fff;border-top:1px solid var(--cg-line)}
body.cabinet-setup #screen :is(.settings-screen,.section-panel,.services-screen,.hours-screen,.config-step) {border-color:var(--cg-line)}
body.cabinet-setup .cabinet-accordion {background:#fff;border-color:var(--cg-line)}
body.cabinet-setup .cabinet-accordion[data-complete='true'] .cabinet-check {background:var(--cg-soft);color:var(--cg-action)}
/* Liseré vert du panneau Paramètres et état de l'option Secrétaire IA : hors du guide (Paramètres les gardent). */
body.cabinet-setup #screen .section-panel::before {display:none}
body.cabinet-setup #screen .receptionist-line {display:none}
/* 28/11/2026 (Fahd) : crédits de notifications et crédits IA séparés sur les cartes d'offre. */
.subscription-offer .offer-credit{display:block;margin-top:.35rem;line-height:1.45}
.subscription-offer .offer-credit b{color:var(--ink,#183b30)}
.subscription-offer .offer-credit.is-off{color:var(--muted,#647269)}
/* 28/11/2026 (Fahd) : inscription, formulaire d'abord ; formules en bas, pour information. */
.registration-card .signup-court{margin:.25rem 0 1rem}
.registration-card .signup-tarifs{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--line)}
/* 28/11/2026 : jours où l'équipe travaille mais l'établissement est fermé. */
.hours-warning{display:grid;gap:4px;margin:0 0 var(--space-3,16px);padding:12px 14px;border:1px solid #e8c77a;border-radius:12px;background:#fff8e6;color:#6b4a0c;line-height:1.5}
.hours-warning ul{margin:4px 0 0;padding-inline-start:18px}
.hours-warning li{font-weight:600}
/* 29/11/2026 : langue des messages WhatsApp (formulaire natif, retour dans un cadre). */
.notif-langue{margin-top:12px}
.notif-langue .setting-explainer,.notif-langue .notif-note{margin:0}
.notif-langue-options{display:flex;flex-wrap:wrap;gap:8px}
.notif-langue-choix{flex:1 1 140px;display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line-soft,#edf1ee);border-radius:12px;cursor:pointer}
.notif-langue-choix:has(input:checked){border-color:var(--brand,#245b4b);background:#f3f8f5}
.notif-langue-choix span[lang=ar]{font-size:1.05rem}
.notif-langue-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.notif-langue-retour{flex:1 1 220px;min-width:0;height:28px;border:0;background:transparent}
