/* =========================================================================
   KAORDV — Design System "Clean" (épuré type Calendly)
   Blanc, neutre, beaucoup d'air, UNE couleur d'accent plate et discrète.
   Zéro dégradé. Cohérent public / tunnel / admin.
   L'accent suit --primary (réglages) mais reste utilisé avec parcimonie.
   ========================================================================= */

:root {
    /* ACCENT — formule Kaozeal oklch(0.62 0.16 H). Pilotée par --primary (1 teinte / produit).
       Défaut = bleu Hub #2A6FDB. */
    --accent: var(--primary, #2A6FDB);
    --accent-ink: color-mix(in srgb, var(--accent) 86%, black);
    --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
    --accent-line: color-mix(in srgb, var(--accent) 26%, white);

    /* NEUTRES — fixes (thème clair Kaozeal) */
    --ink: #22262E;
    --ink-2: #535A66;
    --muted: #8A909C;
    --faint: #8A909C;
    --line: #E7E9EF;
    --line-2: #EEF0F5;
    --bg: #F4F6FB;
    --surface: #FFFFFF;
    --surface-2: #F7F9FC;

    /* STATUTS — fixes Kaozeal */
    --ok: #16985A; --ok-soft: #E3F4EA;
    --warn: #E08A1E; --warn-soft: #FBF0DD;
    --err: #DC3B47; --err-soft: #FBE5E8;

    /* RAYONS — tags 6 · boutons/champs 10 · cartes 14 · fenêtre 16-20 · pill */
    --r-xs: 6px; --r-sm: 10px; --r-md: 12px; --r-lg: 14px; --r-xl: 18px; --r-pill: 999px;

    /* OMBRES — douces & diffuses */
    --sh-1: 0 1px 2px rgba(34, 38, 46, .05);
    --sh-2: 0 2px 10px rgba(34, 38, 46, .06), 0 10px 28px rgba(34, 38, 46, .06);
    --sh-3: 0 16px 44px rgba(34, 38, 46, .12);
    --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);

    /* POLICES Kaozeal */
    --font-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --maxw: 1120px;
}

/* Re-calcul des tokens d'accent par sous-arbre : permet à chaque page
   publique / tunnel / écran de perso d'adopter la couleur locale (--primary)
   même si elle est redéfinie plus bas que :root. */
.booking-wizard-container, .pb-shell, .public-page-admin, body.app-public {
    --accent: var(--primary, #2A6FDB);
    --accent-ink: color-mix(in srgb, var(--accent) 86%, black);
    --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
    --accent-line: color-mix(in srgb, var(--accent) 26%, white);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; color: var(--ink); background: var(--bg);
    font-family: var(--font-ui);
    font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.15rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); letter-spacing: -.025em; }
h3 { font-size: 1.08rem; }
.mono, code, kbd,
.kpi, .ux-stat-card strong, .rdv-kpis strong, .sa-bar span, .code-box,
.plan-badge, .badge.role { font-family: var(--font-mono); }
.plan-badge { text-transform: uppercase; letter-spacing: .03em; }

/* Boutons Kaozeal — variantes ghost & soft */
.btn.ghost, button.ghost { background: transparent; color: var(--accent-ink); border-color: var(--line); }
.btn.ghost:hover, button.ghost:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.btn.soft, button.soft { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.btn.soft:hover, button.soft:hover { background: color-mix(in srgb, var(--accent) 16%, white); color: var(--accent-ink); }
p { margin: 0 0 1rem; }
a { color: var(--accent-ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
small { font-size: .82rem; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
::selection { background: var(--accent-soft); }
.muted { color: var(--muted) !important; font-weight: 400; }

/* Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 28px 22px 64px; }
.container.is-fluid, .app-main.is-fluid, .is-planning-page { max-width: none; padding-left: 26px; padding-right: 26px; }
.home-cal-container { max-width: 1120px; }
.app-shell { min-height: calc(100vh - 64px); }
.app-main { padding-top: 26px; }

/* Top navigation (admin) */
.app-topnav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.app-topnav-inner { max-width: 1320px; margin: 0 auto; height: 64px; padding: 0 22px; display: flex; align-items: center; gap: 16px; }
.app-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); font-size: 1rem; white-space: nowrap; }
.app-brand:hover { color: var(--ink); }
.app-brand-logo { height: 26px; width: auto; display: block; }
.app-brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem; }
.topnav-menu { display: flex; align-items: center; gap: 1px; margin-left: 6px; }
.topnav-menu > a, .topnav-more-menu a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; font-size: .9rem; white-space: nowrap; transition: background .15s, color .15s; }
.topnav-menu > a:hover, .topnav-more-menu a:hover { background: var(--surface-2); color: var(--ink); }
.topnav-menu > a.is-active, .topnav-more-menu a.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 550; }
.topnav-menu a.superadmin-link { color: var(--accent-ink); }
.topnav-actions { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }

/* Menu déroulant "Plus" */
.topnav-more { position: relative; }
.topnav-more-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 500; font-size: .9rem; cursor: pointer; }
.topnav-more-btn:hover { background: var(--surface-2); color: var(--ink); }
.topnav-more-btn.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.topnav-chevron { transition: transform .15s; }
.topnav-more.is-open .topnav-chevron { transform: rotate(180deg); }
.topnav-more-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-2); padding: 6px; display: none; flex-direction: column; gap: 1px; z-index: 60; }
.topnav-more.is-open .topnav-more-menu { display: flex; }

/* Hamburger (mobile) */
.topnav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.topnav-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--ink); border-radius: 2px; }
.topnav-only-mobile { display: none; }

@media (max-width: 880px) {
    .topnav-toggle { display: inline-flex; }
    .topnav-actions { display: none; }
    .topnav-menu { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); display: none; }
    .topnav-menu.is-open { display: flex; }
    .topnav-menu > a, .topnav-more-menu a { padding: 12px 14px; font-size: .95rem; }
    .topnav-more { position: static; }
    .topnav-more-btn { display: none; }
    .topnav-more-menu { position: static; display: flex; box-shadow: none; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 6px 0 0; margin-top: 6px; min-width: 0; }
    .topnav-only-mobile { display: block; padding: 12px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; }
    .topnav-only-mobile:hover { background: var(--surface-2); color: var(--ink); }
}

/* ======================= ADMIN — Sidebar + Topbar ======================= */
.app-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }

.app-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 14px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.sidebar-brand:hover { color: var(--ink); }
.sidebar-brand .app-brand-logo { height: 30px; width: auto; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }
.sidebar-foot { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); color: var(--ink-2); font-weight: 500; font-size: .94rem; white-space: nowrap; transition: background .15s, color .15s; }
.nav-item .nav-ico { flex-shrink: 0; opacity: .8; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item:hover .nav-ico { opacity: 1; }
.nav-item.is-active { background: var(--accent); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 32%, transparent); }
.nav-item.is-active .nav-ico { opacity: 1; }

.app-content { display: flex; flex-direction: column; min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 13px 26px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.sidebar-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; flex-shrink: 0; }
.sidebar-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--ink); border-radius: 2px; }
.topbar-search { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 8px; padding: 9px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.topbar-search .nav-ico { width: 18px; height: 18px; flex-shrink: 0; }
.topbar-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font: inherit; color: var(--ink); }
.topbar-search input:focus { outline: none; box-shadow: none; }
.topbar-search:focus-within { border-color: var(--accent); box-shadow: var(--ring); color: var(--accent-ink); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.topbar-user { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 4px; border-radius: var(--r-pill); }
.topbar-user:hover { color: var(--ink); background: var(--surface-2); }
.topbar-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; flex-shrink: 0; }
.topbar-user-meta { display: flex; flex-direction: column; line-height: 1.25; padding-right: 6px; }
.topbar-user-meta strong { font-size: .9rem; font-weight: 600; }
.topbar-user-meta small { color: var(--muted); font-size: .76rem; }

.app-content > .app-main { width: 100%; }

@media (max-width: 980px) {
    .app-layout { grid-template-columns: 1fr; }
    .app-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 264px; height: 100%; transform: translateX(-100%); transition: transform .22s ease; z-index: 80; box-shadow: var(--sh-3); }
    body.sidebar-open .app-sidebar { transform: none; }
    body.sidebar-open::after { content: ""; position: fixed; inset: 0; background: rgba(15, 18, 34, .4); z-index: 70; }
    .sidebar-toggle { display: inline-flex; }
    .topbar-user-meta { display: none; }
}

/* Cartes statistiques à icône colorée (dashboard) */
.ux-stat-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, white); }
.ux-stat-ico .nav-ico { width: 22px; height: 22px; }
.ux-stat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ux-stat-label { font-size: .8rem; font-weight: 600; color: var(--muted); }

/* Public top bar */
.public-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 16px 24px; background: rgba(251,251,252,.85); backdrop-filter: blur(8px); }
.public-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.public-nav a { padding: 8px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; }
.public-nav a:hover { background: var(--surface); color: var(--ink); }

/* Buttons — flat, sober */
.btn, button, input[type="submit"], .form button {
    -webkit-appearance: none; appearance: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 550; font-size: .92rem; line-height: 1;
    padding: 10px 17px; border-radius: var(--r-sm);
    border: 1px solid var(--accent); background: var(--accent); color: #fff;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
    text-decoration: none; white-space: nowrap;
}
.btn:hover, button:hover, .form button:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn:active, button:active { transform: translateY(.5px); }
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.light, button.light, .btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.light:hover, button.light:hover, .btn.secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--faint); }
.btn.secondary { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.btn.secondary:hover { background: color-mix(in srgb, var(--accent) 14%, white); color: var(--accent-ink); }
.btn.danger, button.danger, .btn.red { background: var(--err); border-color: var(--err); }
.btn.danger:hover { background: color-mix(in srgb, var(--err) 85%, black); border-color: color-mix(in srgb, var(--err) 85%, black); }
.btn.green { background: var(--ok); border-color: var(--ok); }
.btn.blue { background: #2563eb; border-color: #2563eb; }
.btn.small, button.small, .small.btn { padding: 7px 12px; font-size: .84rem; }
.btn[disabled], button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.actions, .spaced-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spaced-actions { justify-content: space-between; }

/* Cards & surfaces */
.card, .panel, .side-panel, .team-panel, .upcoming-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1); margin-bottom: 18px; }
.card h1, .card h2 { margin-top: 0; }
.card.kao-primary { border-color: var(--accent-line); }
.section-title, .rdv-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.section-title h1, .section-title h2, .rdv-header h1 { margin: 0; }
.section-title p, .rdv-header p { margin: 6px 0 0; }
.section-title > div:first-child, .rdv-header > div:first-child { min-width: 0; }
.rdv-header-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rdv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.rdv-kpis > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.rdv-kpis span { display: block; color: var(--muted); font-size: .82rem; }
.rdv-kpis strong { font-size: 1.6rem; letter-spacing: -.02em; color: var(--accent-ink); }
@media (max-width: 620px) { .rdv-kpis { grid-template-columns: 1fr; } }

/* Badges, chips, notices, kpis */
.badge, .chip, .status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); line-height: 1.5; }
.badge.blue { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.badge.green, .badge.success, .status.green { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, white); }
.badge.red, .badge.danger, .status.red { background: var(--err-soft); color: var(--err); border-color: color-mix(in srgb, var(--err) 25%, white); }
.badge.light { background: var(--surface-2); color: var(--muted); }
.status-dot, .tip-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--accent); }
.tip-dot.booking { background: var(--accent); }
.tip-dot.blocked { background: #94979e; }
.tip-dot.selected { background: #16a34a; }
.notice, .code-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--surface-2); }
.code-box { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; background: #16181d; color: #e6e7ea; border-color: #16181d; overflow-x: auto; word-break: break-all; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.kpi strong { font-size: 1.7rem; letter-spacing: -.02em; }
.kpi span { color: var(--muted); font-size: .85rem; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.mini-row:last-child { border-bottom: 0; }

/* Alerts */
.alert { border-radius: var(--r-md); padding: 12px 15px; margin-bottom: 16px; font-weight: 500; border: 1px solid var(--line); background: var(--surface); }
.alert.success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, white); color: var(--ok); }
.alert.error, .alert.danger { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 28%, white); color: var(--err); }

/* Grids */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.three, .grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.two, .grid.three, .grid.five { grid-template-columns: 1fr; } }

/* Forms */
label { display: block; font-weight: 550; font-size: .88rem; color: var(--ink-2); margin-bottom: 6px; }
:where(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]) {
    width: 100%; font: inherit; color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px;
    transition: border-color .15s, box-shadow .15s;
}
:where(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
:where(input, select, textarea):hover:not(:focus) { border-color: var(--faint); }
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
select { cursor: pointer; }
::placeholder { color: var(--faint); }
.form { max-width: 540px; }
.form > label { margin-top: 14px; }
.form > label:first-of-type { margin-top: 0; }
.form input, .form select, .form textarea { margin-bottom: 4px; }
.form button { margin-top: 18px; width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form label { margin: 0; }
.inline-form button { width: auto; margin: 0; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-weight: 450; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.choice-item:hover { border-color: var(--faint); background: var(--surface-2); }
.choice-item input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }

/* Tables */
.table, table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-2); }
.table th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }

/* Footer */
.footer { max-width: var(--maxw); margin: 40px auto 0; padding: 28px 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; text-align: center; }
.footer p { margin: 4px 0; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--accent); }

/* ======================= LANDING (cal-*) ======================= */
.cal-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 44px 0 56px; }
.cal-eyebrow { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--r-pill); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); font-weight: 600; font-size: .78rem; margin-bottom: 18px; }
.cal-hero-copy h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); margin-bottom: 16px; }
.cal-hero-copy > p { font-size: 1.1rem; color: var(--ink-2); max-width: 32em; }
.cal-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 26px 0 22px; }
.cal-link { font-weight: 550; color: var(--accent-ink); }
.cal-trust-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-trust-row span { font-size: .78rem; font-weight: 500; color: var(--ink-2); padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }

.cal-hero-product { position: relative; perspective: 1200px; }
.cal-hero-product::before { content: ""; position: absolute; inset: -12% -6% -6% 6%; z-index: 0; border-radius: 50%; background: radial-gradient(60% 60% at 60% 40%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); filter: blur(36px); }
.cal-hero-product > * { position: relative; z-index: 1; }
.cal-window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; }
.cal-window-head { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-window-head span { width: 11px; height: 11px; border-radius: 50%; background: #d7dae0; }
.cal-window-head span:nth-child(1) { background: #ff5f57; }
.cal-window-head span:nth-child(2) { background: #febc2e; }
.cal-window-head span:nth-child(3) { background: #28c840; }
.cal-window-head strong { margin-left: 8px; font-size: .88rem; color: var(--ink-2); }
.cal-schedule-preview { display: flex; gap: 16px; padding: 22px; }
.cal-date-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-md); }
.cal-date-card span { font-size: .78rem; color: var(--muted); }
.cal-date-card strong { font-size: 1.8rem; line-height: 1; margin: 2px 0; }
.cal-date-card small { font-size: .76rem; color: var(--muted); }
.cal-slot-list { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cal-slot-list > div { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); }
.cal-slot-list > div.active { border-color: var(--accent-line); background: var(--accent-soft); }
.cal-slot-list strong { font-size: .92rem; min-width: 46px; }
.cal-slot-list span { color: var(--muted); font-size: .84rem; }
.cal-mini-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 22px 22px; }
.cal-mini-panels > div { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.cal-mini-panels span { display: block; font-size: .76rem; color: var(--muted); }
.cal-mini-panels strong { font-size: 1.15rem; }

.cal-logo-band { text-align: center; padding: 22px 0 8px; border-top: 1px solid var(--line); }
.cal-logo-band p { color: var(--muted); max-width: 44em; margin: 0 auto 16px; }
.cal-logo-band div { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.cal-logo-band span { font-weight: 650; color: #c2c6cd; }

.cal-section { padding: 56px 0; border-top: 1px solid var(--line); }
.cal-section-head { max-width: 40em; margin: 0 auto 36px; text-align: center; }
.cal-section-head p { color: var(--ink-2); font-size: 1.02rem; }
.cal-page-head { text-align: center; padding: 48px 0 8px; }
.cal-page-head h1 { max-width: 18em; margin-left: auto; margin-right: auto; }
.cal-page-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; margin: 12px auto 0; }

.cal-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cal-steps article { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.cal-steps article:hover { border-color: var(--faint); box-shadow: var(--sh-1); }
.cal-steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .82rem; margin-bottom: 14px; }
.cal-steps h3 { margin-bottom: 6px; }
.cal-steps p { margin: 0; color: var(--muted); font-size: .9rem; }

.cal-split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cal-split-feature.reverse > :first-child { order: 2; }
.cal-checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.cal-checks li { padding-left: 28px; position: relative; color: var(--ink-2); font-weight: 450; }
.cal-checks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.cal-product-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; }
.cal-calendar-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cal-calendar-mini .head { font-weight: 650; color: var(--muted); font-size: .8rem; text-align: center; padding-bottom: 4px; }
.cal-calendar-mini > div { min-height: 44px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); padding: 7px; font-size: .75rem; font-weight: 550; color: var(--ink-2); }
.cal-calendar-mini .event { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.cal-calendar-mini .event.soft { background: var(--surface-2); }
.cal-calendar-mini .blocked { background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 6px, #e8e9ec 6px, #e8e9ec 12px); color: var(--muted); }
.cal-product-card.postit { background: var(--surface); border-color: var(--line); }
.cal-product-card.postit span { font-weight: 600; color: var(--muted); font-size: .8rem; }
.cal-product-card.postit strong { display: block; font-size: 1.12rem; margin: 6px 0; }
.cal-product-card.postit p { margin: 0; color: var(--ink-2); }

.cal-integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cal-integration-grid article { padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.cal-integration-grid strong { display: block; margin-bottom: 4px; }
.cal-integration-grid span { color: var(--muted); font-size: .88rem; }

.cal-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cal-feature-list article { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.cal-feature-list span { flex-shrink: 0; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .82rem; }
.cal-feature-list h2 { font-size: 1.1rem; margin: 2px 0 4px; }
.cal-feature-list p { margin: 0; color: var(--muted); font-size: .9rem; }

.cal-fiche-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cal-fiche-demo > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.cal-fiche-demo > div span { display: block; font-size: .76rem; color: var(--muted); }
.cal-fiche-demo > div strong { font-size: 1.18rem; }
.cal-fiche-demo section { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; }
.cal-fiche-demo section strong { font-size: 1.02rem; }
.cal-fiche-demo section p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }

.cal-cta { text-align: center; margin: 56px 0 0; padding: 52px 32px; border-radius: var(--r-xl); background: var(--accent); color: #fff; }
.cal-cta .cal-eyebrow { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.cal-cta h2 { color: #fff; max-width: 22em; margin: 0 auto 22px; }
.cal-cta .cal-hero-actions { justify-content: center; margin: 0; }
.cal-cta .btn.light { background: #fff; color: var(--accent-ink); border-color: #fff; }
.cal-cta .btn.light:hover { background: rgba(255,255,255,.92); color: var(--accent-ink); }
.cal-cta .btn:not(.light) { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; }
.cal-cta .btn:not(.light):hover { background: rgba(255,255,255,.26); color: #fff; }

@media (max-width: 900px) {
    .cal-hero, .cal-split-feature { grid-template-columns: 1fr; gap: 28px; }
    .cal-split-feature.reverse > :first-child { order: 0; }
    .cal-steps, .cal-integration-grid { grid-template-columns: repeat(2, 1fr); }
    .cal-feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .cal-steps, .cal-integration-grid, .cal-mini-panels { grid-template-columns: 1fr; } }

/* ======================= DASHBOARD (ux-*) ======================= */
.ux-kicker { display: inline-block; font-size: .74rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.ux-home-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.ux-home-hero h1 { margin: 0 0 6px; }
.ux-home-hero p { margin: 0; color: var(--ink-2); max-width: 46em; }
.ux-home-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ux-page-title { margin-bottom: 22px; }

.ux-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.ux-stat-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .12s; }
.ux-stat-card:hover { border-color: var(--faint); box-shadow: var(--sh-2); transform: translateY(-2px); color: var(--ink); }
.ux-stat-card strong { font-size: 1.9rem; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); }
.ux-stat-card small { color: var(--muted); }

.ux-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ux-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ux-card-head h2 { margin: 0; font-size: 1.2rem; }

.ux-empty { text-align: center; padding: 26px 18px; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.ux-empty strong { display: block; margin-bottom: 4px; }
.ux-empty p { color: var(--muted); margin: 0 0 14px; }
.ux-empty .actions { justify-content: center; }

.ux-agenda-list { display: flex; flex-direction: column; gap: 7px; }
.ux-agenda-item { display: flex; align-items: center; gap: 14px; padding: 11px 13px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s; }
.ux-agenda-item:hover { border-color: var(--faint); background: var(--surface-2); color: var(--ink); }
.ux-agenda-item time { flex-shrink: 0; min-width: 56px; font-weight: 600; font-size: .9rem; color: var(--accent-ink); padding: 7px 9px; border-radius: var(--r-xs); background: var(--accent-soft); border: 1px solid var(--accent-line); text-align: center; }
.ux-agenda-item div { display: flex; flex-direction: column; }
.ux-agenda-item strong { font-size: .92rem; font-weight: 550; }
.ux-agenda-item small { color: var(--muted); }

.ux-onboarding { margin-top: 18px; }
.ux-step-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ux-step-grid a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ux-step-grid a:hover { border-color: var(--faint); box-shadow: var(--sh-1); color: var(--ink); }
.ux-step-grid span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .8rem; margin-bottom: 6px; }
.ux-step-grid strong { font-size: .95rem; font-weight: 550; }
.ux-step-grid small { color: var(--muted); }

.ux-quick-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ux-quick-bar a { padding: 9px 15px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: .88rem; color: var(--ink-2); transition: border-color .15s, color .15s; }
.ux-quick-bar a:hover { border-color: var(--faint); color: var(--ink); }

.ux-tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ux-tool-card { display: block; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ux-tool-card:hover { border-color: var(--faint); box-shadow: var(--sh-2); color: var(--ink); }
.ux-tool-card span { display: inline-block; font-size: .76rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.ux-tool-card h3 { margin: 0 0 6px; }
.ux-tool-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.ux-tool-card.primary { background: var(--surface); border-color: var(--accent-line); }
.ux-tool-card.primary span { color: var(--accent-ink); }

@media (max-width: 980px) {
    .ux-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .ux-main-grid { grid-template-columns: 1fr; }
    .ux-step-grid { grid-template-columns: repeat(2, 1fr); }
    .ux-tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .ux-stat-grid, .ux-step-grid, .ux-tools-grid { grid-template-columns: 1fr; } }

/* ======================= BOOKING WIZARD (bw-*) ======================= */
.booking-wizard-container { --booking-banner: var(--accent); padding-top: 40px; padding-bottom: 60px; }
.bw-page { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 330px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-3); overflow: hidden; }

/* Panneau gauche : marque + résumé du rendez-vous */
.bw-aside { background: var(--booking-banner, var(--accent)); color: #fff; padding: 36px 30px; display: flex; flex-direction: column; gap: 18px; }
.bw-logo { height: 46px; width: auto; border-radius: 12px; background: #fff; padding: 6px; align-self: flex-start; }
.bw-aside-host { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.bw-aside-title { color: #fff; font-size: 1.5rem; line-height: 1.22; margin: 0; }
.bw-aside-meta { list-style: none; padding: 0; margin: 2px 0 0; display: grid; gap: 13px; }
.bw-aside-meta li { display: flex; align-items: center; gap: 11px; color: #fff; font-size: .94rem; font-weight: 500; }
.bw-aside-meta .nav-ico { opacity: .85; flex-shrink: 0; }
.bw-aside-desc { color: rgba(255, 255, 255, .9); font-size: .92rem; line-height: 1.6; margin: 4px 0 0; }
.bw-aside-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .72); font-size: .76rem; }

/* Colonne droite : étapes + contenu */
.bw-main { padding: 32px 36px; min-width: 0; }
.bw-steps { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line-2); }
.bw-steps span { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 0 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bw-steps span.active { color: var(--accent-ink); border-color: var(--accent); }
.bw-steps span.done { color: var(--ink-2); }
.bw-steps span.done::before { content: "✓ "; color: var(--ok); font-weight: 700; }

.bw-card { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.bw-step-head { margin-bottom: 24px; }
.bw-step-head > span { font-size: .74rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.bw-step-head h2 { margin: 6px 0 6px; }
.bw-step-head p { margin: 0; color: var(--muted); }
.bw-back { display: inline-block; margin-bottom: 12px; font-weight: 500; color: var(--muted); }
.bw-back:hover { color: var(--ink); }
.bw-service-fallback { padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, white); color: var(--warn); margin-bottom: 18px; font-weight: 450; }

.bw-empty { text-align: center; padding: 30px; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.bw-empty strong { display: block; margin-bottom: 4px; }
.bw-empty p { margin: 0; color: var(--muted); }

.bw-service-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.bw-service { --event-color: var(--accent); display: block; padding: 16px 20px 16px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .12s; }
.bw-service::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--event-color); }
.bw-service::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--event-color); font-weight: 700; opacity: 0; transition: opacity .15s; }
.bw-service:hover { border-color: color-mix(in srgb, var(--event-color) 45%, white); box-shadow: var(--sh-2); transform: translateY(-1px); color: var(--ink); }
.bw-service:hover::after { opacity: 1; }
.bw-service-time { display: inline-block; font-size: .76rem; font-weight: 600; color: var(--event-color); background: color-mix(in srgb, var(--event-color) 10%, white); border: 1px solid color-mix(in srgb, var(--event-color) 24%, white); padding: 3px 9px; border-radius: var(--r-pill); margin-bottom: 8px; }
.bw-service strong { display: block; font-size: 1.02rem; }
.bw-service small { color: var(--muted); }

.bw-person-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.bw-person { --staff-color: var(--accent); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.bw-person:hover { border-color: var(--accent-line); box-shadow: var(--sh-1); color: var(--ink); }
.bw-person i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 650; font-size: 1.2rem; color: var(--accent-ink); background: var(--accent-soft); margin-bottom: 6px; }
.bw-person strong { font-size: .98rem; }
.bw-person small { color: var(--muted); }

.bw-date-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bw-calendar { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--surface); }
.bw-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bw-month-head strong { font-size: .98rem; }
.bw-month-head a { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; }
.bw-month-head a:hover { border-color: var(--faint); color: var(--ink); }
.bw-weekdays, .bw-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bw-weekdays { margin-bottom: 6px; }
.bw-weekdays span { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); }
.bw-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--r-sm); font-size: .9rem; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--line); transition: border-color .12s, background .12s; }
a.bw-day:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.bw-day.outside { color: #c8ccd2; background: transparent; border-color: transparent; }
.bw-day.today { border-color: var(--accent-line); color: var(--accent-ink); font-weight: 700; }
.bw-day.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.bw-day.disabled, span.bw-day { color: #d0d4da; background: transparent; border-color: transparent; cursor: default; }

.bw-hours h3 { font-size: .98rem; margin-bottom: 12px; }
.bw-hour-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.bw-hour-list a { padding: 11px 8px; text-align: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 550; color: var(--accent-ink); font-size: .9rem; transition: border-color .12s, background .12s; }
.bw-hour-list a:hover { border-color: var(--accent); background: var(--accent-soft); }

.bw-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; padding: 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.bw-summary span { display: block; font-size: .74rem; color: var(--muted); }
.bw-summary strong { font-size: .96rem; }

.bw-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.bw-form-grid .full, .bw-questions .full { grid-column: 1 / -1; }
.bw-form-grid label, .bw-questions label { margin-bottom: 6px; }
.bw-questions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.bw-privacy { display: grid; gap: 8px; margin: 16px 0; }
.bw-form button[type="submit"] { width: 100%; padding: 13px; font-size: .98rem; }

@media (max-width: 820px) {
    .bw-page { grid-template-columns: 1fr; }
    .bw-aside { padding: 26px 24px; }
    .bw-aside-foot { display: none; }
    .bw-main { padding: 24px; }
}
@media (max-width: 600px) {
    .bw-date-layout, .bw-form-grid, .bw-questions { grid-template-columns: 1fr; }
    .bw-summary { grid-template-columns: 1fr; }
    .bw-steps { gap: 0 14px; }
}

/* ======================= BOOKING SIMPLE (pb-*) ======================= */
.pb-shell { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.pb-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.pb-back { font-weight: 500; color: var(--muted); }
.pb-back:hover { color: var(--ink); }
.pb-logo { height: 44px; width: auto; }
.pb-eyebrow { font-size: .74rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.pb-service-card, .pb-postit { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.pb-owner { color: var(--muted); font-size: .9rem; }
.pb-main { display: flex; flex-direction: column; gap: 18px; }
.pb-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.pb-panel-head { margin-bottom: 16px; }
.pb-notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); margin-bottom: 14px; }
.pb-notice.error { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 25%, white); color: var(--err); }
.pb-staff-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.pb-booking-card, .pb-window-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.pb-window-top { display: flex; gap: 6px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pb-window-top::before, .pb-window-top::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #d7dae0; }
.pb-calendar-side, .pb-slot-side { padding: 18px; }
.pb-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pb-month-btn { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.pb-month-btn:hover { border-color: var(--faint); color: var(--ink); }
.pb-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pb-calendar-grid.weekdays span { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); }
.pb-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--r-sm); font-size: .9rem; font-weight: 500; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
a.pb-day:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.pb-day.is-today { border-color: var(--accent-line); color: var(--accent-ink); }
.pb-day.is-selected, .pb-day.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.pb-calendar-help { display: flex; gap: 16px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.pb-calendar-help .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 5px; background: var(--line); vertical-align: middle; }
.pb-calendar-help .dot.selected { background: var(--accent); }
.pb-calendar-help .dot.today { background: var(--accent-line); }

.pb-selected-head { margin-bottom: 14px; }
.pb-empty-state { text-align: center; padding: 26px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); background: var(--surface-2); }
.pb-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pb-slot, .pb-slot.slot { padding: 11px 8px; text-align: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 550; color: var(--accent-ink); cursor: pointer; font-size: .9rem; transition: border-color .12s, background .12s; }
.pb-slot:hover { border-color: var(--accent); background: var(--accent-soft); }

.pb-form-intro { color: var(--muted); margin-bottom: 14px; }
.pb-form-head { margin-bottom: 14px; }
.pb-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pb-field-full, .pb-form-grid .pb-field-full { grid-column: 1 / -1; }
.pb-extra-questions { display: grid; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pb-privacy { display: grid; gap: 8px; margin: 16px 0; }

.booking-one-section { margin-bottom: 18px; }
.booking-one-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.booking-one-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); }

.public-header { text-align: center; margin: 8px 0 26px; }
.public-header h1 { margin: 12px 0 8px; }
.public-header p { color: var(--ink-2); max-width: 40em; margin: 0 auto; }

@media (max-width: 820px) {
    .pb-shell { grid-template-columns: 1fr; }
    .pb-aside { position: static; }
    .pb-staff-list, .pb-form-grid, .booking-one-grid { grid-template-columns: 1fr; }
    .pb-slots { grid-template-columns: repeat(2, 1fr); }
}

/* ======================= WEEK PLANNER (week-*) ======================= */
.week-page { --gutter: 70px; }
.week-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.week-kicker { font-size: .74rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.week-title-wrap h1 { margin: 6px 0 6px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); }
.week-title-wrap p { margin: 0; color: var(--muted); max-width: 50em; }
.week-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.week-control-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; padding: 16px 18px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.week-filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.week-filter-form label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.week-filter-form select { width: auto; min-width: 130px; }
.week-auto-hours { font-size: .84rem; color: var(--muted); font-weight: 500; align-self: center; }
.week-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.week-tips { display: flex; flex-wrap: wrap; gap: 18px; padding: 0 4px 14px; font-size: .82rem; color: var(--muted); }
.week-tips span { display: inline-flex; align-items: center; gap: 7px; }

.week-message { padding: 11px 16px; border-radius: var(--r-sm); margin-bottom: 12px; font-weight: 550; }
.week-message.success { background: var(--ok-soft); color: var(--ok); }
.week-message.error { background: var(--err-soft); color: var(--err); }

.week-selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 14px; background: #dcfce7; border: 1px solid #16a34a; border-radius: var(--r-lg); }
.week-selection-bar #weekBlockBtn { background: #16a34a; border-color: #16a34a; }
.week-selection-bar #weekBlockBtn:hover { background: #15803d; border-color: #15803d; }
.week-selection-bar strong { display: block; }
.week-selection-bar small { color: var(--ink-2); }
.week-selection-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.week-selection-actions input { width: auto; }

.week-planner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); user-select: none; }
.week-header-grid, .week-body-grid { display: grid; grid-template-columns: var(--gutter) repeat(7, minmax(0, 1fr)); }
/* IMPORTANT : pas d'overflow:hidden sur .week-planner, sinon le header sticky
   se cale 65px plus bas et recouvre la 1re ligne (06:00). */
.week-header-grid { position: sticky; top: 65px; z-index: 6; background: var(--surface-2); border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.week-time-header { padding: 12px 8px; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; text-align: center; border-right: 1px solid var(--line-2); }
.week-day-header { padding: 10px 8px; text-align: center; border-right: 1px solid var(--line-2); }
.week-day-header:last-child { border-right: 0; }
.week-day-header strong { display: block; font-size: .88rem; font-weight: 600; }
.week-day-header small { color: var(--muted); font-size: .72rem; text-transform: capitalize; }
.week-day-header.is-today { background: var(--accent-soft); }
.week-day-header.is-today strong { color: var(--accent-ink); }

.week-time-gutter { position: relative; border-right: 1px solid var(--line); background: var(--surface-2); }
.week-time-end { position: absolute; bottom: 0; right: 10px; transform: translateY(50%); font-size: .82rem; font-weight: 700; color: var(--ink); background: var(--surface-2); padding: 0 3px; }
.week-time-slot { height: var(--slot-height, 60px); font-size: .82rem; color: var(--ink); font-weight: 700; padding: 3px 10px 0; text-align: right; box-sizing: border-box; }
.week-time-slot.full-hour { border-top: 1px solid var(--line); }
.week-time-slot:first-child { border-top: 0; }

.week-day-column { position: relative; border-right: 1px solid var(--line-2); }
.week-day-column:last-child { border-right: 0; }
.week-day-column.is-today { background: color-mix(in srgb, var(--accent) 3%, white); }
.week-cells { position: relative; z-index: 1; }
.week-cell { height: var(--slot-height, 60px); box-sizing: border-box; border-top: 1px solid var(--line-2); transition: background .1s; }
.week-cell.full-hour { border-top: 1px solid var(--line); }
.week-cell:first-child { border-top: 0; }
.week-cell:hover { background: var(--surface-2); }
.week-cell.is-selected { background: color-mix(in srgb, #22c55e 32%, white); box-shadow: inset 0 0 0 1.5px #16a34a; }
.week-cell.is-drop-target { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }

.week-day-closed { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 12px; background: repeating-linear-gradient(45deg, rgba(243,244,246,.92), rgba(243,244,246,.92) 8px, rgba(232,233,236,.92) 8px, rgba(232,233,236,.92) 16px); color: var(--muted); }
.week-day-closed strong { color: var(--ink-2); font-size: .9rem; }

.week-events { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.week-item { position: absolute; left: 4px; right: 4px; pointer-events: auto; display: flex; flex-direction: column; gap: 2px; justify-content: flex-start; padding: 6px 9px; border-radius: var(--r-sm); font-size: .76rem; line-height: 1.25; overflow: hidden; cursor: grab; box-shadow: var(--sh-1); }
.week-item strong { font-size: .77rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-item span { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-item.week-booking { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); }
.week-item.week-booking span { color: var(--accent-ink); }
.week-item.week-blocked { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); background-image: repeating-linear-gradient(45deg, transparent, transparent 7px, rgba(0,0,0,.04) 7px, rgba(0,0,0,.04) 14px); }
.week-item.is-dragging { opacity: .5; cursor: grabbing; }
.week-item:hover { box-shadow: var(--sh-2); }

body.planner-fullscreen .app-sidebar, body.planner-fullscreen .app-topbar { display: none; }
body.planner-fullscreen .app-layout { grid-template-columns: 1fr; }
body.planner-fullscreen .week-header-grid { top: 0; }

@media (max-width: 760px) {
    .week-control-bar { flex-direction: column; align-items: stretch; }
    .week-planner { overflow-x: auto; }
    .week-header-grid, .week-body-grid { min-width: 760px; }
    /* overflow-x:auto recree un conteneur de defilement : on desactive le sticky
       pour eviter que l'entete recouvre la 1re ligne. */
    .week-header-grid { position: static; }
}

/* ======================= STAFF / RDV / misc ======================= */
.staff-admin-grid, .staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.staff-admin-card, .staff-card { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.staff-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; color: var(--accent-ink); background: var(--accent-soft); margin-bottom: 10px; }
.staff-choice, .staff-day-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.staff-day-rows { display: grid; gap: 10px; }
.staff-day-editor { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.brand-swatch { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); display: inline-block; vertical-align: middle; }
.setting-preview, .ppa-preview-step { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--surface-2); }
.ppa-section { margin-bottom: 18px; }

.rdv-page { display: grid; gap: 18px; }
.rdv-main-top, .rdv-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rdv-when-box, .rdv-more-panel, .rdv-reminders, .rdv-answer-preview { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); }
.rdv-status { display: inline-flex; padding: 4px 12px; border-radius: var(--r-pill); font-weight: 600; font-size: .8rem; background: var(--ok-soft); color: var(--ok); }

.admin-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) {
    .staff-admin-grid, .staff-grid { grid-template-columns: 1fr; }
    .rdv-main-top, .rdv-meta-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
}

/* ======================= PAGE PUBLIQUE — perso client (ppa-*) ======================= */
.public-page-admin { display: block; }
.ppa-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 28px; border-radius: var(--r-xl); color: #fff; background: var(--ppa-banner, var(--accent)); margin-bottom: 20px; }
.ppa-hero > div span { font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.ppa-hero h1 { color: #fff; margin: 4px 0 6px; }
.ppa-hero p { margin: 0; color: rgba(255,255,255,.92); max-width: 46em; }
.ppa-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ppa-actions .btn.light { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); color: #fff; }
.ppa-actions .btn.light:hover { background: rgba(255,255,255,.26); color: #fff; }
.ppa-actions .btn:not(.light) { background: #fff; color: color-mix(in srgb, var(--ppa-banner, var(--accent)) 85%, black); border-color: #fff; }

.ppa-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.ppa-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1); }
.ppa-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.ppa-section:last-of-type { border-bottom: 0; margin-bottom: 6px; }
.ppa-section h2 { font-size: 1.05rem; margin-bottom: 12px; }
.ppa-section label { margin-top: 12px; }
.ppa-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ppa-colors label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; margin-top: 0; }
.ppa-colors input[type="color"] { width: 100%; height: 44px; padding: 4px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.ppa-service-mini-list { display: grid; gap: 8px; }
.ppa-service-mini-list > div { --event-color: var(--accent); display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--event-color); border-radius: var(--r-sm); background: var(--surface); }
.ppa-service-mini-list span { font-size: .76rem; color: var(--muted); }

.ppa-preview { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.ppa-preview-window { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--sh-2); }
.ppa-preview-banner { display: flex; align-items: center; gap: 12px; padding: 18px; color: #fff; background: var(--ppa-banner, var(--accent)); }
.ppa-preview-banner img { height: 40px; width: auto; border-radius: 8px; background: #fff; padding: 4px; }
.ppa-preview-banner i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 700; background: rgba(255,255,255,.2); }
.ppa-preview-banner span { font-size: .72rem; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.ppa-preview-banner strong { display: block; font-size: 1rem; }
.ppa-preview-body { padding: 18px; }
.ppa-preview-body p { color: var(--muted); margin: 0 0 12px; font-size: .9rem; }
.ppa-preview-step { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 6px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.ppa-preview-step.done { border-color: var(--ppa-banner, var(--accent)); color: color-mix(in srgb, var(--ppa-banner, var(--accent)) 85%, black); background: color-mix(in srgb, var(--ppa-banner, var(--accent)) 8%, white); }
.ppa-preview-card { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.ppa-preview-card span { font-size: .74rem; color: var(--muted); }
.ppa-preview-card strong { display: block; }
.ppa-public-link { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.ppa-public-link span { display: block; font-size: .74rem; color: var(--muted); }
.ppa-public-link strong { display: block; font-size: .85rem; word-break: break-all; margin: 2px 0 8px; }
@media (max-width: 900px) {
    .ppa-layout { grid-template-columns: 1fr; }
    .ppa-preview { position: static; }
    .ppa-colors { grid-template-columns: 1fr; }
}

/* Auth pages */
body.app-public .container > h1 { text-align: center; }
body.app-public .form { margin: 10px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--sh-1); }

/* ======================= SUPERADMIN ======================= */
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.four .kpi { font-size: 2rem; margin: 0; color: var(--accent-ink); }
@media (max-width: 900px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } }

/* Bandeaux globaux */
.impersonation-bar { background: #92400e; color: #fff; text-align: center; padding: 9px 16px; font-size: .88rem; font-weight: 550; }
.impersonation-bar a { color: #fff; text-decoration: underline; }
.site-announcement { padding: 11px 18px; text-align: center; font-size: .9rem; font-weight: 550; }
.site-announcement.info { background: var(--accent-soft); color: var(--accent-ink); border-bottom: 1px solid var(--accent-line); }
.site-announcement.warning { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, white); }
.site-announcement.success { background: var(--ok-soft); color: var(--ok); border-bottom: 1px solid color-mix(in srgb, var(--ok) 30%, white); }

/* Sidebar superadmin (dans .admin-layout) */
.admin-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.admin-sidebar-label { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 12px 10px 4px; }
.admin-sidebar-label:first-child { margin-top: 0; }
.admin-sidebar a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; font-size: .92rem; }
.admin-sidebar a:hover { background: var(--surface-2); color: var(--ink); }
.admin-sidebar a.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

/* Badges de plan */
.plan-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.plan-badge.free { background: #f1f3f9; color: #475569; }
.plan-badge.pro { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.plan-badge.business { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }

/* Graphiques simples (analytics) */
.sa-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .sa-charts { grid-template-columns: 1fr; } }
.sa-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); }
.sa-chart h3 { margin: 0 0 16px; font-size: 1rem; }
.sa-bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.sa-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.sa-bar { width: 100%; max-width: 40px; border-radius: 6px 6px 0 0; background: var(--accent); min-height: 3px; transition: height .3s; position: relative; }
.sa-bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.sa-bar-label { font-size: .72rem; color: var(--muted); white-space: nowrap; }

.sa-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }

/* Aperçu live (apparence) */
.sa-preview-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.sa-preview-top { padding: 22px; color: #fff; }
.sa-preview-top span { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.sa-preview-top h3 { color: #fff; margin: 6px 0 0; }
.sa-preview-body { padding: 20px; }
.sa-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.sa-theme { cursor: pointer; border: 2px solid var(--line); border-radius: var(--r-md); padding: 10px; background: var(--surface); text-align: left; font: inherit; }
.sa-theme:hover { border-color: var(--faint); }
.sa-theme-swatches { display: flex; gap: 4px; margin-bottom: 8px; }
.sa-theme-swatches i { width: 22px; height: 22px; border-radius: 6px; display: block; }
.sa-theme strong { font-size: .85rem; }

/* ======================= PATTERN FENÊTRE KAOZEAL =======================
   Chaque module (carte) devient une mini-fenêtre : barre haute + 3 pastilles
   (1 = accent). Appliqué via CSS, sans toucher au markup. Les petites cartes
   KPI en sont exclues. */
.card:not(:has(.kpi)):not(.cal-product-card), .sa-chart { position: relative; padding-top: 44px; }
.card:not(:has(.kpi)):not(.cal-product-card)::before, .sa-chart::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 30px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line-2);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card:not(:has(.kpi)):not(.cal-product-card)::after, .sa-chart::after {
    content: "";
    position: absolute; top: 11px; left: 18px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--accent);
}

.hidden, [hidden] { display: none !important; }
.text-center { text-align: center; }
