/* =====================================================================
   COIFFLY — styles (thème sombre, dégradés lumineux)
   4 jeux de couleurs : Émeraude (par défaut), Bordeaux, Saphir, Or rose.
   Pour en modifier un, changez ses variables ci-dessous.
   ===================================================================== */
/* Graphite : le thème retenu (sobre, noir et blanc, très peu de couleur) */
:root, :root[data-theme="graphite"] {
  --bg: #09090b; --surface: #111113; --surface-2: #19191c; --text: #f4f4f5; --muted: #9b9ba4; --border: #25252a;
  --primary: #e4e4e7; --primary-soft: rgba(255, 255, 255, .06); --pink-soft: rgba(255, 255, 255, .03);
  --grad: linear-gradient(160deg, #3b3b42 0%, #222226 100%);
  --grad-text: linear-gradient(180deg, #ffffff 0%, #8d8d96 100%);
  --glow: rgba(0, 0, 0, .55);
  --deep: linear-gradient(160deg, #1d1d21 0%, #121214 100%);
  --phone: #040405; --on-white: #09090b;
}
:root[data-theme="emeraude"] {
  --bg: #0a1210; --surface: #111b18; --surface-2: #182520; --text: #eef6f2; --muted: #97aaa2; --border: #24352f;
  --primary: #34d399; --primary-soft: #12352a; --pink-soft: #0f2a2a;
  --grad: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  --grad-text: linear-gradient(135deg, #34d399 0%, #5eead4 100%);
  --glow: rgba(16, 185, 129, .35);
  --deep: linear-gradient(135deg, #064e3b, #134e4a);
  --phone: #050c0a; --on-white: #047857;
}
:root[data-theme="bordeaux"] {
  --bg: #120a0d; --surface: #1b1014; --surface-2: #26161c; --text: #f8eef1; --muted: #b49aa3; --border: #3a2129;
  --primary: #fb7185; --primary-soft: #3d1622; --pink-soft: #34141e;
  --grad: linear-gradient(135deg, #9f1239 0%, #e11d48 100%);
  --grad-text: linear-gradient(135deg, #fb7185 0%, #fda4af 100%);
  --glow: rgba(225, 29, 72, .35);
  --deep: linear-gradient(135deg, #4c0519, #881337);
  --phone: #0d0609; --on-white: #9f1239;
}
:root[data-theme="saphir"] {
  --bg: #0a0f1a; --surface: #111827; --surface-2: #182235; --text: #eef2fb; --muted: #94a3c0; --border: #23304a;
  --primary: #60a5fa; --primary-soft: #15264a; --pink-soft: #0f2a3a;
  --grad: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  --grad-text: linear-gradient(135deg, #60a5fa 0%, #67e8f9 100%);
  --glow: rgba(37, 99, 235, .38);
  --deep: linear-gradient(135deg, #172554, #0c4a6e);
  --phone: #060a12; --on-white: #1d4ed8;
}
:root[data-theme="orrose"] {
  --bg: #120d0b; --surface: #1b1512; --surface-2: #261d19; --text: #fbf2ee; --muted: #b5a198; --border: #3a2c26;
  --primary: #f0a58a; --primary-soft: #3a2219; --pink-soft: #33201a;
  --grad: linear-gradient(135deg, #b45a3c 0%, #e39a7b 100%);
  --grad-text: linear-gradient(135deg, #f4b9a1 0%, #ffd9c7 100%);
  --glow: rgba(212, 130, 100, .35);
  --deep: linear-gradient(135deg, #4a2215, #7a3b26);
  --phone: #0c0806; --on-white: #a1492c;
}
:root {
  --success: #4ade80; --success-soft: #12301f;
  --warn: #fbbf24; --warn-soft: #33280e;
  --danger: #f87171; --danger-soft: #3b1717;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.45; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.08rem; }
p { margin: 0 0 .7em; }
small { font-size: .82em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.big { font-size: 1.4rem; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
button { font: inherit; color: inherit; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; cursor: pointer; background: var(--surface-2); color: var(--text); white-space: nowrap; transition: transform .08s, box-shadow .15s, background .15s; text-decoration: none; font-size: .95rem; min-height: 42px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 14px var(--glow); }
.btn-primary:hover { box-shadow: 0 6px 22px var(--glow); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--on-white); }
.btn-white-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: var(--danger-soft); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; min-height: 50px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row.center { justify-content: center; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); flex: none; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .88rem; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.b-primary { background: var(--primary-soft); color: var(--primary); }
.b-success { background: var(--success-soft); color: var(--success); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-danger { background: var(--danger-soft); color: var(--danger); }
.t-warn { color: var(--warn); font-weight: 700; }
.t-bad { color: var(--danger); }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; width: 100%; font-weight: 400; min-height: 44px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--primary); flex: none; }
.check-inline { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.grid3 { grid-template-columns: repeat(3, 1fr); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); margin: 10px 0 6px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.check { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; color: var(--text); font-weight: 600; }
.check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.check span { display: flex; flex-direction: column; }
.check small { color: var(--muted); font-weight: 400; }
.warn { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-soft); color: var(--warn); padding: 9px 12px; border-radius: 10px; font-size: .86rem; margin: 8px 0 0; font-weight: 600; }
.summary { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.sum-line { display: flex; justify-content: space-between; padding: 3px 0; font-size: .92rem; }
.sum-line.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-size: 1.02rem; }

.switch { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 40px; height: 24px; border-radius: 99px; background: var(--border); position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- Cartes & mise en page ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack > .card { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.empty { text-align: center; color: var(--muted); padding: 30px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { width: 32px; height: 32px; color: var(--primary); }
.kv { list-style: none; padding: 0; margin: 0 0 14px; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.kv li span { color: var(--muted); }
.kv li strong { text-align: right; font-weight: 600; }
.kv li.total { font-size: 1.05rem; }
.kv li.total span { color: var(--text); font-weight: 700; }

/* ---------- Espace pro & admin ---------- */
.pro { min-height: 100vh; display: flex; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar h1 { font-size: 1.25rem; margin: 0; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.content { padding: 16px; max-width: 1200px; margin: 0 auto; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: .7rem; color: var(--muted); font-weight: 600; }
.tabbar a.active { color: var(--primary); }
.tabbar .ic { width: 22px; height: 22px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; }
.logo-mark .ic { width: 19px; height: 19px; }
.admin-tag { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--grad); color: #fff; padding: 2px 6px; border-radius: 6px; }
.hello { color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.hide-xs { display: none; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; font-weight: 600; font-size: .9rem; }

@media (min-width: 560px) { .hide-xs { display: inline; } }
@media (min-width: 900px) {
  .sidebar { display: flex; flex-direction: column; gap: 22px; width: 250px; flex: none; padding: 22px 14px; border-right: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; height: 100vh; }
  .sidebar .logo { padding: 0 10px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .93rem; }
  .sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
  .sidebar nav a.active { background: var(--primary-soft); color: var(--primary); }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
  .me { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; color: var(--text); }
  .me:hover { background: var(--surface-2); }
  .me div { display: flex; flex-direction: column; line-height: 1.25; }
  .me small { color: var(--muted); }
  .tabbar, .only-mobile { display: none !important; }
  .main { padding-bottom: 30px; }
  .topbar { padding: 16px 28px; }
  .content { padding: 24px 28px; }
  .grid-tour .map-card { position: sticky; top: 90px; }
}
.grid-dash, .grid-tour { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid-dash { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } .grid-tour { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.grid-dash > .card, .grid-tour > .card { margin-bottom: 0; }

.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem; flex: none; text-transform: uppercase; }
.avatar.lg { width: 58px; height: 58px; font-size: 1.15rem; }
.avatar.xl { width: 72px; height: 72px; font-size: 1.6rem; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin-bottom: 0; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); min-width: 0; }
.kpi span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.kpi strong { font-size: 1.45rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }

/* Prochain RDV */
.next-card { background: var(--grad); color: #fff; border: 0; }
.next-card .eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.next-card h2 { font-size: 1.5rem; margin: 6px 0 4px; }
.next-card .addr, .next-card p { color: rgba(255,255,255,.92); }
.next-card .access span { background: rgba(255,255,255,.18); color: #fff; }
.next-card .allergy { background: rgba(255,255,255,.95); color: #b91c1c; }
.addr { display: flex; gap: 6px; align-items: flex-start; font-size: .92rem; margin-bottom: 8px; }
.access { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.access span { background: var(--surface-2); padding: 3px 9px; border-radius: 8px; font-size: .8rem; font-weight: 600; }
.allergy { display: flex; gap: 6px; align-items: center; background: var(--danger-soft); color: var(--danger); padding: 8px 10px; border-radius: 10px; font-size: .86rem; font-weight: 700; }

/* Listes de RDV */
.appt-list { display: flex; flex-direction: column; gap: 8px; }
.appt { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.appt:hover { background: var(--surface-2); }
.appt.st-terminé { border-left-color: var(--success); }
.appt.st-en-attente { border-left-color: var(--warn); }
.appt.cancelled { opacity: .55; border-left-color: var(--danger); }
.appt.cancelled .appt-main strong { text-decoration: line-through; }
.appt-time, .appt-main, .appt-side { display: flex; flex-direction: column; min-width: 0; }
.appt-time small { color: var(--muted); }
.appt-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt-main .ic { width: 13px; height: 13px; }
.appt-side { align-items: flex-end; gap: 4px; }
.free-slot { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .88rem; }
.free-slot:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: default; }
button.mini-row { cursor: pointer; }
.mini-row:last-child { border-bottom: 0; }
.mini-row > span:first-child, .mini-row > a:first-child { display: flex; flex-direction: column; min-width: 0; color: var(--text); font-weight: 600; }
.mini-row small { color: var(--muted); font-weight: 400; }
.row-actions { display: flex; gap: 6px; flex: none; }
.alert-card { border-color: color-mix(in srgb, var(--warn) 35%, var(--border)); }
.share-card { background: var(--deep); color: #fff; border: 0; }
.share-card p { color: rgba(255,255,255,.85); }
.copy-field { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 6px 6px 6px 12px; margin: 10px 0 12px; }
.copy-field code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.copy-field .icon-btn { background: #fff; color: var(--on-white); border: 0; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.action-grid .btn { font-size: .86rem; }

/* Agenda */
.week-head { display: flex; align-items: center; gap: 10px; }
.week-head strong { flex: 1; text-align: center; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.day { display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; border-radius: 12px; color: var(--text); border: 1px solid transparent; }
.day small { color: var(--muted); font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.day strong { font-size: 1.1rem; }
.day .dots { color: var(--primary); font-size: .8rem; line-height: 1; letter-spacing: 1px; }
.day.today { border-color: var(--primary); }
.day.off { opacity: .5; }
.day.active { background: var(--grad); color: #fff; opacity: 1; }
.day.active small, .day.active .dots { color: #fff; }

/* Tournée */
.leg { display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 13px; margin-left: 13px; border-left: 2px dashed var(--border); color: var(--muted); font-size: .84rem; }
.leg.base { border-left: 0; margin-left: 0; padding-left: 0; font-weight: 600; color: var(--text); }
.leg.tight { color: var(--warn); }
.leg.tight strong { color: var(--danger); }
.stop { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 6px 0; }
.stop-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; }
.stop-body { background: var(--surface-2); border-radius: 12px; padding: 12px; min-width: 0; }
.stop-title { display: flex; flex-direction: column; gap: 2px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; margin-bottom: 6px; width: 100%; }
.stop-title span { color: var(--muted); font-size: .88rem; }
.minimap { width: 100%; height: auto; margin-bottom: 8px; }
.mm-bg { fill: var(--surface-2); }
.mm-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-dasharray: 6 5; stroke-linejoin: round; }
.mm-pt { fill: var(--primary); stroke: var(--surface); stroke-width: 3; }
.mm-base { fill: var(--text); }
.mm-txt { fill: var(--bg); font-size: 11px; font-weight: 700; text-anchor: middle; font-family: var(--font); }

/* Clientes */
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar p { margin: 0; flex: 1 1 300px; }
.search { flex-direction: row; align-items: center; gap: 8px; flex: 1 1 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; }
.search input { border: 0; padding-left: 0; box-shadow: none !important; background: transparent; }
.client-list { display: flex; flex-direction: column; }
.client-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.client-row:last-child { border-bottom: 0; }
.client-row:hover { background: var(--surface-2); border-radius: 10px; }
.cr-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cr-main small { color: var(--muted); }
.cr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: var(--muted); }
.client-head { display: flex; gap: 14px; align-items: center; }
.client-head h2 { font-size: 1.35rem; margin: 0; }
.client-head p { margin: 0; }
.hist { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; cursor: pointer; font-size: .9rem; width: 100%; }
.hist span:first-child { color: var(--muted); }

/* Prestations / zones */
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.svc-row:last-child { border-bottom: 0; }
.svc-row > div { display: flex; flex-direction: column; min-width: 0; }
.svc-row small { color: var(--muted); }
.svc-price { font-variant-numeric: tabular-nums; }
.svc-row .switch small { display: none; }
@media (min-width: 700px) { .svc-row .switch small { display: inline; } }
.svc-row:has(> .icon-btn:nth-child(3)) { grid-template-columns: minmax(0, 1fr) auto auto; }

/* Stats */
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 220px; padding-top: 10px; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bar { width: 100%; max-width: 46px; background: var(--grad); border-radius: 8px 8px 4px 4px; }
.bar-col:last-child .bar { opacity: .6; }
.bar-val { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bar-col small { color: var(--muted); font-weight: 600; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) 64px; gap: 10px; align-items: center; padding: 6px 0; font-size: .88rem; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar strong { text-align: right; font-variant-numeric: tabular-nums; }
.hbar-track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.hbar-track div { height: 100%; background: var(--grad); border-radius: 99px; }

/* Ma page */
.tips { padding-left: 18px; margin: 0 0 14px; }
.tips li { margin-bottom: 8px; font-size: .92rem; }
.preview-card { display: flex; flex-direction: column; align-items: center; }
.preview-card h2 { align-self: flex-start; }
.phone.small { width: 300px; height: 600px; padding: 10px; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 26px; background: var(--bg); }

/* Abonnement */
.sub-hero { background: var(--deep); color: #fff; border: 0; }
.sub-hero .sub-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sub-hero h2 { font-size: 1.6rem; margin: 4px 0; }
.sub-hero p { color: rgba(255,255,255,.85); margin: 0; }
.sub-hero .eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.sub-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.sub-price small { font-size: .9rem; font-weight: 500; opacity: .8; }
.trial-bar { height: 8px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; margin: 14px 0 6px; }
.trial-bar div { height: 100%; background: #fff; border-radius: 99px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.pay-method .ic { width: 26px; height: 26px; color: var(--primary); }
.pay-method div { flex: 1; display: flex; flex-direction: column; }
.pay-method small { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 10px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.clickable tbody tr { cursor: pointer; }
table.clickable tbody tr:hover { background: var(--surface-2); }
.invoice { background: #fff; color: #1f2937; border-radius: 12px; padding: 22px; font-size: .9rem; }
.invoice h3 { margin: 0; font-size: 1.3rem; }
.invoice .inv-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.invoice table th { color: #6b7280; border-color: #e5e7eb; }
.invoice table td { border-color: #e5e7eb; }
.invoice .inv-total { text-align: right; font-size: 1.15rem; font-weight: 800; margin-top: 12px; }
.invoice .inv-note { color: #6b7280; font-size: .78rem; margin-top: 14px; }
.filters { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.filter { flex: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--text); }
.filter span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.filter.on { background: var(--grad); color: #fff; border-color: transparent; }
.filter.on span { color: rgba(255,255,255,.85); }

/* Réglages */
.hours-row { display: grid; grid-template-columns: 130px 1fr auto 1fr; gap: 8px; align-items: center; }
.hours-row span { color: var(--muted); }
.sticky-save { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 10; display: flex; justify-content: flex-end; gap: 10px; }
@media (min-width: 900px) { .sticky-save { bottom: 16px; } }
.plans.compact { margin-top: 10px; }
.list-links { padding: 6px; }
.list-links a, .list-links button { display: flex; align-items: center; gap: 14px; padding: 14px 12px; color: var(--text); font-weight: 600; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; border-bottom: 1px solid var(--border); }
.list-links > :last-child { border-bottom: 0; color: var(--danger); }
.list-links span { flex: 1; }
.chev { color: var(--muted); }

/* ---------- Fenêtres (modales) ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { background: var(--surface); width: 100%; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.4); animation: up .2s ease-out; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 700px) { .modal-backdrop { align-items: center; padding: 20px; } .modal { max-width: 520px; border-radius: 20px; } .modal.wide { max-width: 680px; } }
.modal-head { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; z-index: 2; }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-body { padding: 4px 18px 18px; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
.modal-foot .btn-primary { flex: 1 1 100%; }
@media (min-width: 700px) { .modal-foot .btn-primary { flex: 1 1 auto; } }
.modal .plans { grid-template-columns: 1fr; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 14px 0; }
.done-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); margin: 6px auto 12px; }
.done-ic .ic { width: 32px; height: 32px; }
.stripe-box { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); margin: 10px 0 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }

#toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 200; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Sélecteur de couleurs (démo) */
#theme-picker { position: fixed; left: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; box-shadow: var(--shadow); font-size: .78rem; font-weight: 600; color: var(--muted); }
#theme-picker button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
#theme-picker button.on { border-color: var(--text); }
@media (min-width: 900px) { #theme-picker { bottom: 16px; left: auto; right: 16px; } }

/* ---------- Connexion ---------- */
.auth-body { background: radial-gradient(circle at 20% 0%, var(--primary-soft), transparent 50%), radial-gradient(circle at 100% 100%, var(--pink-soft), transparent 50%), var(--bg); }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 22px; }
.auth-card { width: 100%; max-width: 440px; padding: 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs a { text-align: center; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--muted); font-size: .92rem; }
.tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.chosen-plan { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--text); }
.chosen-plan strong { color: var(--primary); }
.chosen-plan select { width: auto; min-height: 36px; padding: 4px 8px; }

/* ---------- Page de réservation (clientes) ---------- */
.book-body { background: linear-gradient(180deg, var(--primary-soft) 0, var(--bg) 320px); }
.book { max-width: 620px; margin: 0 auto; padding: 22px 16px 40px; }
.book-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.book-hero h1 { font-size: 1.35rem; margin: 0 0 4px; }
.book-hero p { margin: 0; display: flex; gap: 4px; align-items: center; font-size: .9rem; }
.book-bio { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.book-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.book-card h2 { font-size: 1.2rem; margin-bottom: 12px; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; padding: 0; margin: 0 0 20px; gap: 4px; }
.progress li { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.progress li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: .8rem; }
.progress li small { font-size: .66rem; font-weight: 600; text-align: center; }
.progress li.on span { background: var(--grad); color: #fff; }
.progress li.on { color: var(--text); }
.progress li.done span { background: var(--primary-soft); color: var(--primary); }
.bk-svc { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; margin-bottom: 8px; }
.bk-svc:hover { border-color: var(--primary); }
.bk-svc.on { border-color: var(--primary); background: var(--primary-soft); }
.bk-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--border); color: transparent; }
.bk-svc.on .bk-check { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.bk-check .ic { width: 14px; height: 14px; }
.bk-svc-main { display: flex; flex-direction: column; min-width: 0; }
.bk-svc-main small { color: var(--muted); }
.bk-foot { position: sticky; bottom: 0; background: var(--surface); padding: 14px 0 4px; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); }
.bk-foot .btn-row { justify-content: space-between; }
.bk-foot .btn-row .btn-primary { flex: 1; }
.bk-foot > .btn-primary { width: 100%; }
.bk-recap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; }
.bk-recap span { background: var(--surface-2); padding: 3px 9px; border-radius: 8px; }
.bk-recap strong { margin-left: auto; }
.bk-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 6px; scroll-snap-type: x mandatory; }
.bk-date { flex: none; display: flex; flex-direction: column; align-items: center; width: 62px; padding: 9px 0; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; scroll-snap-align: start; }
.bk-date small { color: var(--muted); font-size: .72rem; text-transform: capitalize; }
.bk-date strong { font-size: 1.2rem; }
.bk-date.on { background: var(--grad); border-color: transparent; color: #fff; }
.bk-date.on small { color: #fff; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bk-slot { padding: 11px 0; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; cursor: pointer; }
.bk-slot:hover { border-color: var(--primary); }
.bk-slot.on { background: var(--grad); border-color: transparent; color: #fff; }
.zones-info { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; font-size: .88rem; }
.zones-info summary { cursor: pointer; font-weight: 600; }
.zones-info p { margin: 8px 0 0; }
.bk-done { text-align: center; padding: 10px 0; }
.book-foot-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 18px; }

/* ---------- Site vitrine ---------- */
.landing { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.landing-body { background: radial-gradient(1000px 500px at 80% -10%, var(--pink-soft), transparent 60%), radial-gradient(900px 500px at 0% 0%, var(--primary-soft), transparent 60%), var(--bg); }
.l-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
.l-nav-links { display: flex; align-items: center; gap: 18px; }
.l-nav-links a:not(.btn) { color: var(--muted); font-weight: 600; font-size: .92rem; display: none; }
@media (min-width: 700px) { .l-nav-links a:not(.btn) { display: inline; } }
.hero { display: grid; gap: 40px; align-items: center; padding: 30px 0 50px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr .85fr; padding: 60px 0 80px; } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--primary); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -.035em; margin-bottom: 18px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero-visual { display: flex; justify-content: center; }
.phone { width: 290px; border-radius: 40px; padding: 12px; background: var(--phone); box-shadow: 0 30px 60px var(--glow), 0 0 0 1px var(--border); }
.phone-screen { background: var(--surface); border-radius: 30px; padding: 22px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 440px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ph-row { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 10px; }
.ph-row div { display: flex; flex-direction: column; font-size: .85rem; }
.ph-row small { color: var(--muted); }
.ph-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .78rem; flex: none; }
.ph-sum { margin-top: auto; display: flex; justify-content: space-between; font-size: .82rem; background: var(--primary-soft); color: var(--primary); padding: 12px; border-radius: 14px; }
.l-section { padding: 40px 0; }
.l-title { font-size: clamp(1.6rem, 4vw, 2.3rem); text-align: center; letter-spacing: -.02em; margin-bottom: 26px; }
.problems { display: grid; gap: 14px; }
@media (min-width: 800px) { .problems { grid-template-columns: repeat(3, 1fr); } }
.problems div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.problems strong { font-size: 1rem; }
.problems span { color: var(--primary); font-weight: 600; font-size: .92rem; }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.02rem; margin: 12px 0 6px; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.f-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.steps { display: grid; gap: 14px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps div { text-align: center; padding: 10px; }
.steps p { color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.plans { display: grid; gap: 16px; margin: 22px 0 10px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.best { border-color: var(--primary); box-shadow: 0 16px 40px var(--glow); }
.plan.current { border-color: var(--success); }
.plan-tag { align-self: flex-start; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 99px; margin-bottom: 10px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.price strong { font-size: 2.3rem; letter-spacing: -.03em; }
.price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: .92rem; }
.plan li .ic { color: var(--success); margin-top: 2px; }
.plans.compact .plan { padding: 18px; }
.plans.compact .price strong { font-size: 1.8rem; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.l-cta { background: var(--grad); color: #fff; border-radius: 26px; padding: 50px 24px; text-align: center; margin: 30px 0; }
.l-cta h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 20px; }
.l-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0 40px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }
.l-foot a { color: var(--muted); }

/* Impression d'une facture */
@media print {
  body * { visibility: hidden; }
  .invoice, .invoice * { visibility: visible; }
  .invoice { position: absolute; left: 0; top: 0; width: 100%; }
}

/* Petits écrans */
@media (max-width: 480px) {
  .grid3 { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 1fr 1fr auto 1fr; }
  .hours-row .check-inline { grid-column: 1 / -1; }
  .hist { grid-template-columns: 1fr auto; }
  .hist span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); }
  .kpi strong { font-size: 1.2rem; }
  .appt { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; }
  .phone.small { width: 100%; max-width: 300px; }
}

/* =====================================================================
   VERSION PREMIUM — vitrine animée et finitions de l'appli
   ===================================================================== */
.landing-body { overflow-x: hidden; }
.glow-orb { position: fixed; z-index: 0; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; }
.glow-orb.o1 { width: 520px; height: 520px; background: #059669; top: -180px; right: -140px; animation: drift 18s ease-in-out infinite alternate; }
.glow-orb.o2 { width: 420px; height: 420px; background: #0d9488; top: 40%; left: -220px; opacity: .25; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 80px) scale(1.1); } }
.landing, .marquee, .l-nav-wrap { position: relative; z-index: 1; }

/* Barre de navigation en verre */
.l-nav-wrap { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.l-nav-wrap .l-nav { max-width: 1160px; margin: 0 auto; padding: 14px 20px; }
.l-nav-links a:not(.btn):hover { color: var(--text); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } *, *::before, *::after { animation: none !important; } }

/* Titre animé et bouton brillant */
.shimmer { background: linear-gradient(90deg, #34d399, #5eead4, #a7f3d0, #34d399); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: shine 3.8s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.3rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 4px 0 0; color: var(--muted); font-size: .88rem; font-weight: 500; }
.hero-checks .ic { color: var(--primary); width: 16px; height: 16px; }

/* Téléphone en 3D + bulles flottantes */
.hero-visual { position: relative; perspective: 1400px; padding: 30px 0; }
.tilt { position: relative; transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: rotateY(-10deg) rotateX(4deg) translateY(-12px); } }
.hero-visual .phone { box-shadow: 0 50px 100px rgba(5, 150, 105, .35), 0 0 0 1px var(--border), inset 0 0 0 2px rgba(255,255,255,.04); }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); white-space: nowrap; transform: translateZ(60px); animation: bob 5s ease-in-out infinite; }
.float-chip div { display: flex; flex-direction: column; line-height: 1.2; font-size: .82rem; }
.float-chip small { color: var(--muted); }
.float-chip > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.float-chip .ic { width: 16px; height: 16px; }
.dot-ok { background: var(--success-soft); color: var(--success); }
.dot-bell { background: var(--warn-soft); color: var(--warn); }
.dot-nav { background: var(--primary-soft); color: var(--primary); }
.c1 { top: 6%; right: -4%; }
.c2 { top: 44%; left: -6%; animation-delay: -1.6s; }
.c3 { bottom: 4%; right: -2%; animation-delay: -3.2s; }
.tilt .phone { margin: 0 auto; }
@keyframes bob { 50% { transform: translateZ(60px) translateY(-10px); } }
@media (max-width: 899px) { .tilt { transform: none; animation: none; } .float-chip { display: none; } }

/* Écrans de démo dans le téléphone */
.phone-screen { gap: 8px; }
.ds-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ds-head strong { font-size: 1.15rem; }
.ds-next { background: var(--grad); color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 20px var(--glow); }
.ds-next small { font-size: .66rem; font-weight: 700; letter-spacing: .05em; opacity: .85; }
.ds-next strong { font-size: 1.05rem; }
.ds-next span { font-size: .8rem; opacity: .92; }
.ds-chips { display: flex; gap: 6px; margin-top: 6px; }
.ds-chips i, .b-tags i, .b-slots i, .ds-slots i { font-style: normal; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .18); }
.ds-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 9px 10px; font-size: .82rem; }
.ds-row b { color: var(--primary); }
.ds-row div { display: flex; flex-direction: column; line-height: 1.2; }
.ds-row small { color: var(--muted); }
.ds-row > span { font-weight: 700; }
.ds-row .ok { color: var(--success); font-size: .72rem; }
.ds-row.warn > span { color: var(--warn); font-size: .72rem; }
.ds-sum { margin-top: auto; display: flex; justify-content: space-between; padding: 12px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: .85rem; }
.ds-svc { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1.5px solid var(--border); font-size: .82rem; }
.ds-svc div { display: flex; flex-direction: column; line-height: 1.2; }
.ds-svc small { color: var(--muted); }
.ds-svc.on { border-color: var(--primary); background: var(--primary-soft); }
.ds-svc.on .ic { width: 20px; height: 20px; background: var(--primary); color: var(--bg); border-radius: 6px; padding: 3px; }
.ds-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border); }
.ds-label { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 6px 0 0; }
.ds-slots, .b-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ds-slots i, .b-slots i { background: var(--surface-2); text-align: center; padding: 8px 0; border: 1px solid var(--border); }
.ds-slots i.on, .b-slots i.on { background: var(--grad); color: #fff; border-color: transparent; }
.ds-btn { margin-top: auto; text-align: center; padding: 11px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700; font-size: .88rem; }
.ds-map { width: 100%; height: auto; background: var(--surface-2); border-radius: 14px; }
.ds-route { fill: none; stroke: var(--primary); stroke-width: 3; stroke-dasharray: 8 7; stroke-linecap: round; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -30; } }
.ds-pt { fill: var(--primary); stroke: var(--surface); stroke-width: 3; }
.ds-base { fill: var(--text); }
.ds-map text { fill: var(--bg); font-size: 11px; font-weight: 800; text-anchor: middle; font-family: var(--font); }
#demo-screen.swap > * { animation: swapIn .45s cubic-bezier(.2, .7, .2, 1) both; }
#demo-screen.swap > *:nth-child(2) { animation-delay: .05s; }
#demo-screen.swap > *:nth-child(3) { animation-delay: .1s; }
#demo-screen.swap > *:nth-child(4) { animation-delay: .15s; }
#demo-screen.swap > *:nth-child(5) { animation-delay: .2s; }
@keyframes swapIn { from { opacity: 0; transform: translateY(12px); } }

/* Bandeau défilant */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-weight: 700; font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
.marquee i { color: var(--primary); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Chiffres clés */
.stats-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 860px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--muted); font-size: .9rem; }

/* Avant / Avec */
.versus { display: grid; gap: 16px; }
@media (min-width: 820px) { .versus { grid-template-columns: 1fr 1fr; } }
.vs-col { padding: 26px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); }
.vs-col h3 { font-size: 1.2rem; margin-bottom: 14px; }
.vs-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.vs-col li { display: flex; gap: 10px; align-items: flex-start; }
.vs-col li .ic { margin-top: 2px; flex: none; }
.vs-col.before li { color: var(--muted); }
.vs-col.before .ic { color: var(--danger); }
.vs-col.after { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); background: linear-gradient(160deg, var(--primary-soft), var(--surface) 70%); box-shadow: 0 20px 50px rgba(5, 150, 105, .15); }
.vs-col.after .ic { color: var(--primary); }

/* Grille des fonctionnalités */
.bento { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 860px) { .bento { grid-template-columns: repeat(5, 1fr); } .b-card.big { grid-column: span 3; } .b-card:not(.big) { grid-column: span 2; } }
.b-card { position: relative; overflow: hidden; padding: 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 6px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.b-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 0%, var(--primary-soft), transparent 70%); opacity: .7; pointer-events: none; }
.b-card > * { position: relative; }
.b-card:hover, .feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.b-card h3 { font-size: 1.2rem; margin: 10px 0 2px; }
.b-card p { color: var(--muted); margin: 0 0 12px; font-size: .93rem; }
.b-visual { width: 100%; height: auto; max-height: 140px; margin-top: auto; }
.ds-route { stroke-linejoin: round; }
.b-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.b-tags i { background: var(--surface-2); border: 1px solid var(--border); padding: 5px 10px; }
.b-tags i.red { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.b-slots { margin-top: auto; }
.b-bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: auto; }
.b-bars span { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--grad); transform-origin: bottom; transform: scaleY(0); }
.b-card.in .b-bars span { animation: grow .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.b-bars span:last-child { box-shadow: 0 0 24px var(--glow); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.feature { transition: transform .25s, border-color .25s, box-shadow .25s; }
.small-features { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.f-ic { background: var(--grad); color: #fff; box-shadow: 0 8px 20px var(--glow); }

/* Démo interactive */
.demo { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: 1fr 1fr; } }
.l-title.left { text-align: left; }
.demo-tabs { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 22px; }
.demo-tab { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 700; cursor: pointer; text-align: left; transition: .2s; }
.demo-tab:hover { color: var(--text); }
.demo-tab.on { color: var(--text); border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.demo-tab.on .ic { color: var(--primary); }
.demo-phone { margin: 0 auto; }
.demo-phone .phone-screen { min-height: 480px; }

/* Étapes */
.steps { position: relative; }
@media (min-width: 800px) { .steps::before { content: ""; position: absolute; top: 33px; left: 17%; right: 17%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: .5; } }
.step { position: relative; }
.step-n { box-shadow: 0 0 0 8px var(--bg), 0 10px 30px var(--glow); }

/* Tarifs */
.billing { display: flex; width: max-content; max-width: 100%; margin: 18px auto 0; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); }
.billing button { border: 0; background: none; color: var(--muted); font-weight: 700; padding: 9px 18px; border-radius: 99px; cursor: pointer; }
.billing button.on { background: var(--grad); color: #fff; }
.billing button span { font-size: .72rem; font-weight: 700; margin-left: 4px; padding: 2px 7px; border-radius: 99px; background: var(--success-soft); color: var(--success); }
.billing button.on span { background: rgba(255, 255, 255, .22); color: #fff; }
.plan { transition: transform .25s, box-shadow .25s; }
.plan.in:hover, .plans.compact .plan:hover, .modal .plan:hover { transform: translateY(-6px); }
.plan.best { background: linear-gradient(170deg, color-mix(in srgb, var(--primary-soft) 80%, var(--surface)), var(--surface) 60%); }
.plan-ribbon { position: absolute; top: -12px; right: 20px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; padding: 5px 12px; border-radius: 99px; box-shadow: 0 6px 18px var(--glow); }
.price { margin-bottom: 2px; }
.price-note { color: var(--muted); font-size: .82rem; margin-bottom: 16px; }

/* FAQ */
.faq details { transition: border-color .2s, background .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: linear-gradient(160deg, var(--primary-soft), var(--surface) 60%); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); transition: transform .25s; flex: none; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--primary); color: var(--bg); }

/* Appel final */
.l-cta { position: relative; overflow: hidden; padding: 70px 24px; }
.l-cta p { opacity: .9; margin-bottom: 24px; }
.cta-glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .18), transparent 30%); animation: spin 9s linear infinite; }
.l-cta > *:not(.cta-glow) { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pied de page */
.l-foot { display: grid; gap: 24px; padding: 40px 0; }
@media (min-width: 760px) { .l-foot { grid-template-columns: 1fr 1.4fr; } }
.foot-brand .logo { margin-bottom: 8px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.foot-cols strong { color: var(--text); margin-bottom: 2px; }
.foot-cols a, .foot-cols span { color: var(--muted); }
.foot-cols a:hover { color: var(--primary); }
.foot-copy { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); padding-top: 18px; margin: 0; }

/* ---------- Finitions de l'appli coiffeuse et de l'admin ---------- */
.content > * { animation: pageIn .45s cubic-bezier(.2, .7, .2, 1) both; }
.content > *:nth-child(2) { animation-delay: .04s; }
.content > *:nth-child(3) { animation-delay: .08s; }
.content > *:nth-child(4) { animation-delay: .12s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
.card { transition: border-color .2s, box-shadow .2s; }
.kpi { position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: .8; }
.kpi:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.next-card, .sub-hero, .share-card { position: relative; overflow: hidden; box-shadow: 0 20px 50px var(--glow); }
.next-card::after, .sub-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; top: -110px; background: rgba(255, 255, 255, .1); pointer-events: none; }
.next-card > *, .sub-hero > * { position: relative; }
.appt { transition: transform .15s, background .15s, border-color .15s; }
.appt:hover { transform: translateX(3px); }
.btn-primary:hover { transform: translateY(-1px); }
.sidebar nav a { position: relative; transition: background .15s, color .15s; }
.sidebar nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 12px var(--glow); }
.tabbar { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tabbar a.active .ic { filter: drop-shadow(0 0 6px var(--glow)); }
.done-ic { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 12%, transparent); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.bar { transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .7, .2, 1) both; }
.bar-col:nth-child(2) .bar { animation-delay: .06s; }
.bar-col:nth-child(3) .bar { animation-delay: .12s; }
.bar-col:nth-child(4) .bar { animation-delay: .18s; }
.bar-col:nth-child(5) .bar { animation-delay: .24s; }
.bar-col:nth-child(6) .bar { animation-delay: .3s; }
.hbar-track div { transform-origin: left; animation: growX .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes growX { from { transform: scaleX(0); } }
.auth-card { box-shadow: 0 30px 80px rgba(0, 0, 0, .4), 0 0 0 1px var(--border); }

/* =====================================================================
   GRAPHITE — version sobre et pro (noir, gris, blanc)
   ===================================================================== */
:root[data-theme="graphite"] {
  --success: #4ade80; --success-soft: rgba(74, 222, 128, .1);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .1);
  --danger: #f87171; --danger-soft: rgba(248, 113, 113, .1);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 14px;
}
[data-theme="graphite"] body { font-feature-settings: "cv11", "ss01"; letter-spacing: -.005em; }
[data-theme="graphite"] h1, [data-theme="graphite"] h2, [data-theme="graphite"] h3 { letter-spacing: -.025em; }

/* Boutons : blanc sur noir */
[data-theme="graphite"] .btn-primary { background: #f4f4f5; color: #09090b; box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 8px 24px rgba(0, 0, 0, .4); }
[data-theme="graphite"] .btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .5); }
[data-theme="graphite"] .btn-ghost { background: rgba(255, 255, 255, .03); }
[data-theme="graphite"] .btn-ghost:hover { border-color: #52525b; color: var(--text); background: rgba(255, 255, 255, .06); }
[data-theme="graphite"] .btn-shine::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent); opacity: .5; }
[data-theme="graphite"] .btn-white { color: #09090b; }
[data-theme="graphite"] .icon-btn:hover { border-color: #52525b; color: var(--text); }
[data-theme="graphite"] input:focus, [data-theme="graphite"] select:focus, [data-theme="graphite"] textarea:focus { border-color: #71717a; box-shadow: 0 0 0 3px rgba(255, 255, 255, .07); }

/* Fond de la vitrine : halos gris, grille fine */
[data-theme="graphite"] .landing-body { background: var(--bg); }
[data-theme="graphite"] .glow-orb.o1 { background: #3f3f46; opacity: .35; }
[data-theme="graphite"] .glow-orb.o2 { background: #27272a; opacity: .35; }
.hero-grid { position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 900px; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
[data-theme="graphite"] .shimmer { background: linear-gradient(90deg, #8d8d96, #ffffff 40%, #8d8d96 60%, #8d8d96); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation-duration: 6s; }
[data-theme="graphite"] .pill { color: var(--muted); background: rgba(255, 255, 255, .03); }
[data-theme="graphite"] .pill .ic { color: var(--text); }
[data-theme="graphite"] .hero-checks .ic { color: var(--success); }
[data-theme="graphite"] .hero-visual .phone { box-shadow: 0 60px 120px rgba(0, 0, 0, .7), 0 0 0 1px #2e2e33, 0 0 80px rgba(255, 255, 255, .04); }
[data-theme="graphite"] .float-chip { background: rgba(24, 24, 27, .85); }
[data-theme="graphite"] .dot-nav { background: rgba(255, 255, 255, .08); color: var(--text); }
[data-theme="graphite"] .marquee i { color: #52525b; }
[data-theme="graphite"] .marquee span { color: #71717a; }

/* Éléments « dégradés » : gris anthracite, texte blanc */
[data-theme="graphite"] .ds-next, [data-theme="graphite"] .next-card { background: linear-gradient(160deg, #2a2a30, #18181b); border: 1px solid #34343a; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 50px rgba(0, 0, 0, .45); }
[data-theme="graphite"] .ds-btn, [data-theme="graphite"] .ds-slots i.on, [data-theme="graphite"] .b-slots i.on, [data-theme="graphite"] .bk-slot.on, [data-theme="graphite"] .bk-date.on,
[data-theme="graphite"] .filter.on, [data-theme="graphite"] .billing button.on, [data-theme="graphite"] .day.active, [data-theme="graphite"] .progress li.on span { background: #f4f4f5; color: #09090b; border-color: transparent; }
[data-theme="graphite"] .day.active small, [data-theme="graphite"] .day.active .dots, [data-theme="graphite"] .bk-date.on small, [data-theme="graphite"] .filter.on span { color: #3f3f46; }
[data-theme="graphite"] .billing button.on span { background: rgba(0, 0, 0, .1); color: #09090b; }
[data-theme="graphite"] .f-ic { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid #2e2e33; box-shadow: none; }
[data-theme="graphite"] .logo-mark { background: #f4f4f5; color: #09090b; }
[data-theme="graphite"] .avatar { background: linear-gradient(160deg, #3f3f46, #27272a); color: #fafafa; }
[data-theme="graphite"] .step-n, [data-theme="graphite"] .stop-n, [data-theme="graphite"] .ph-num { background: #f4f4f5; color: #09090b; box-shadow: 0 0 0 8px var(--bg); }
[data-theme="graphite"] .plan-ribbon { background: #f4f4f5; color: #09090b; box-shadow: none; }
[data-theme="graphite"] .plan.best { border-color: #52525b; background: linear-gradient(170deg, #1c1c20, var(--surface) 60%); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .04) inset; }
[data-theme="graphite"] .plan li .ic, [data-theme="graphite"] .vs-col.after .ic { color: var(--success); }
[data-theme="graphite"] .vs-col.after { border-color: #3f3f46; background: linear-gradient(160deg, #1b1b1f, var(--surface) 70%); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
[data-theme="graphite"] .b-card::before { background: radial-gradient(420px 200px at 100% 0%, rgba(255, 255, 255, .05), transparent 70%); }
[data-theme="graphite"] .b-card:hover, [data-theme="graphite"] .feature:hover, [data-theme="graphite"] .kpi:hover { border-color: #3f3f46; }
[data-theme="graphite"] .b-bars span { background: linear-gradient(180deg, #e4e4e7, #52525b); }
[data-theme="graphite"] .b-bars span:last-child { background: #fff; box-shadow: 0 0 30px rgba(255, 255, 255, .25); }
[data-theme="graphite"] .ds-route { stroke: #a1a1aa; }
[data-theme="graphite"] .ds-pt, [data-theme="graphite"] .mm-pt { fill: #e4e4e7; }
[data-theme="graphite"] .ds-map text { fill: #09090b; }
[data-theme="graphite"] .demo-tab.on { border-color: #52525b; background: rgba(255, 255, 255, .05); box-shadow: inset 3px 0 0 #fafafa; }
[data-theme="graphite"] .faq details[open] { border-color: #3f3f46; background: #141417; }
[data-theme="graphite"] .faq details[open] .plus { background: #f4f4f5; color: #09090b; }
[data-theme="graphite"] .l-cta { background: linear-gradient(160deg, #1f1f23, #111113); border: 1px solid #2e2e33; }
[data-theme="graphite"] .l-cta h2 { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="graphite"] .l-cta p { color: var(--muted); }
[data-theme="graphite"] .l-cta .btn-white { background: #f4f4f5; }
[data-theme="graphite"] .cta-glow { background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .08), transparent 30%); }
[data-theme="graphite"] .stat strong { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
[data-theme="graphite"] .steps::before { background: linear-gradient(90deg, transparent, #3f3f46, transparent); opacity: 1; }
[data-theme="graphite"] .copy-field .icon-btn { background: #f4f4f5; }
[data-theme="graphite"] .share-card, [data-theme="graphite"] .sub-hero { border: 1px solid #2e2e33; box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 50px rgba(0, 0, 0, .4); }
[data-theme="graphite"] .bar, [data-theme="graphite"] .hbar-track div { background: linear-gradient(180deg, #d4d4d8, #52525b); }
[data-theme="graphite"] .hbar-track div { background: linear-gradient(90deg, #52525b, #e4e4e7); }
[data-theme="graphite"] .bar-col:last-child .bar { background: #fff; opacity: 1; }
[data-theme="graphite"] .kpi::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); }
[data-theme="graphite"] .appt { border-left-color: #71717a; }
[data-theme="graphite"] .appt.st-terminé { border-left-color: var(--success); }
[data-theme="graphite"] .appt.st-en-attente { border-left-color: var(--warn); }
[data-theme="graphite"] .b-primary { background: rgba(255, 255, 255, .08); color: #e4e4e7; }
[data-theme="graphite"] .sidebar nav a.active { background: rgba(255, 255, 255, .06); color: var(--text); }
[data-theme="graphite"] .sidebar nav a.active::before { background: #fafafa; box-shadow: 0 0 12px rgba(255, 255, 255, .4); }
[data-theme="graphite"] .tabbar a.active { color: var(--text); }
[data-theme="graphite"] .tabbar a.active .ic { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
[data-theme="graphite"] .free-slot:hover { border-color: #52525b; color: var(--text); background: rgba(255, 255, 255, .04); }
[data-theme="graphite"] .check:has(input:checked), [data-theme="graphite"] .bk-svc.on, [data-theme="graphite"] .ds-svc.on { border-color: #71717a; background: rgba(255, 255, 255, .05); }
[data-theme="graphite"] .bk-svc.on .bk-check, [data-theme="graphite"] .ds-svc.on .ic { background: #f4f4f5; color: #09090b; border-color: transparent; }
[data-theme="graphite"] .day.today { border-color: #52525b; }
[data-theme="graphite"] a { color: #e4e4e7; }
[data-theme="graphite"] .link, [data-theme="graphite"] .back { color: var(--text); }
[data-theme="graphite"] .tabs a.active { color: var(--text); }
[data-theme="graphite"] .chosen-plan strong { color: var(--text); }
[data-theme="graphite"] .book-body, [data-theme="graphite"] .auth-body { background: radial-gradient(800px 400px at 50% -10%, rgba(255, 255, 255, .06), transparent 70%), var(--bg); }

/* Petit titre au-dessus des sections */
.eyebrow-l { display: block; text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sub-title { max-width: 620px; margin: -10px auto 34px; }

/* Capture du tableau de bord (dessinée en code) */
.showcase { perspective: 1800px; }
.browser { max-width: 1040px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid #2e2e33; background: #0e0e10; box-shadow: 0 50px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset; transform: rotateX(12deg) scale(.96); transform-origin: top center; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), opacity .9s ease; }
.browser.in { transform: rotateX(0) scale(1); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid #222226; background: #141417; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3f3f46; }
.browser-bar span { margin: 0 auto; padding: 4px 40px; border-radius: 7px; background: #1c1c20; color: #71717a; font-size: .74rem; }
.mock-app { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; font-size: .78rem; }
.m-side { border-right: 1px solid #222226; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; background: #101012; }
.m-logo { padding: 2px 6px 12px; }
.m-logo .logo { font-size: .95rem; }
.m-logo .logo-mark { width: 24px; height: 24px; border-radius: 7px; }
.m-logo .logo-mark .ic { width: 14px; height: 14px; }

/* Logo */
.logo { gap: 10px; }
.logo-word { font-weight: 700; letter-spacing: -.055em; font-size: 1.32em; line-height: 1; padding-bottom: 2px; }
.logo-mark { position: relative; border-radius: 10px; }
[data-theme="graphite"] .logo-mark { background: linear-gradient(160deg, #ffffff, #d9d9de); color: #09090b; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 0 0 1px rgba(255, 255, 255, .1), 0 6px 18px rgba(0, 0, 0, .5); }
.logo-mark .logo-svg { width: 24px; height: 24px; }
/* Les trois mèches se dessinent à l'ouverture du site */
.landing-body .l-nav .logo-svg path, .auth .logo-svg path { stroke-dasharray: 110; stroke-dashoffset: 110; animation: meche 1.1s cubic-bezier(.4, 0, .2, 1) forwards; }
.landing-body .l-nav .logo-svg .m2, .auth .logo-svg .m2 { animation-delay: .15s; }
.landing-body .l-nav .logo-svg .m3, .auth .logo-svg .m3 { animation-delay: .3s; }
@keyframes meche { to { stroke-dashoffset: 0; } }
.m-logo .logo-mark .logo-svg { width: 15px; height: 15px; }
.m-logo .logo-word { font-size: 1.1em; }
.auth .logo { font-size: 1.35rem; }
.auth .logo-mark { width: 40px; height: 40px; border-radius: 12px; }
.auth .logo-mark .logo-svg { width: 26px; height: 26px; }
.m-nav { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; color: #8d8d96; }
.m-nav .ic { width: 14px; height: 14px; }
.m-nav.on { background: rgba(255, 255, 255, .06); color: #fafafa; }
.m-main { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.m-top { display: flex; justify-content: space-between; align-items: center; }
.m-top strong { font-size: .95rem; }
.m-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 7px; background: #f4f4f5; color: #09090b; font-weight: 600; }
.m-btn .ic { width: 12px; height: 12px; }
.m-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-kpis div, .m-card { border: 1px solid #222226; border-radius: 10px; background: #131316; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-kpis small, .m-card > small { color: #71717a; }
.m-kpis strong { font-size: 1.15rem; letter-spacing: -.02em; }
.m-kpis em { font-style: normal; color: #52525b; font-size: .7rem; }
.m-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; flex: 1; }
.m-chart { width: 100%; height: auto; margin-top: 8px; }
.m-line { fill: none; stroke: #e4e4e7; stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 500; stroke-dashoffset: 500; }
.browser.in .m-line { animation: draw 1.8s .5s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.m-dot { fill: #09090b; stroke: #e4e4e7; stroke-width: 2; }
.m-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #1d1d21; }
.m-row:last-child { border-bottom: 0; }
.m-row b { color: #a1a1aa; font-weight: 600; }
.m-row span { display: flex; flex-direction: column; line-height: 1.25; }
.m-row small { color: #52525b; }
.m-row i { font-style: normal; font-size: .68rem; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: #a1a1aa; }
.m-row i.ok { background: var(--success-soft); color: var(--success); }
.m-row i.wait { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 760px) { .mock-app { grid-template-columns: 1fr; } .m-side { display: none; } .m-kpis { grid-template-columns: repeat(2, 1fr); } .m-grid { grid-template-columns: 1fr; } .browser { transform: none; } }

/* Schéma du parcours */
.flow { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 1100px; margin: 0 auto; }
@media (min-width: 980px) { .flow { grid-template-columns: repeat(6, 1fr auto) ; grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr 40px 1fr 40px 1fr; align-items: start; } }
.flow-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 4px; }
.flow-ic { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: linear-gradient(160deg, #222226, #141417); border: 1px solid #2e2e33; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 14px 30px rgba(0, 0, 0, .45); margin-bottom: 6px; }
.flow-ic .ic { width: 24px; height: 24px; color: #fafafa; }
.flow-ic b { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #f4f4f5; color: #09090b; font-size: .72rem; }
.flow-step strong { font-size: .95rem; }
.flow-step small { color: var(--muted); font-size: .8rem; }
.flow-link { position: relative; height: 34px; width: 2px; margin: 0 auto; overflow: hidden; background: #26262b; }
.flow-link::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(180deg, transparent, #fafafa, transparent); animation: flowV 2.2s linear infinite; }
@keyframes flowV { to { top: 110%; } }
@media (min-width: 980px) {
  .flow-link { width: 100%; height: 2px; margin-top: 39px; }
  .flow-link::after { top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, #fafafa, transparent); animation: flowH 2.2s linear infinite; }
}
@keyframes flowH { to { left: 110%; } }

/* Appli : plus d'air et de finesse */
[data-theme="graphite"] .topbar { background: rgba(9, 9, 11, .75); }
[data-theme="graphite"] .topbar h1 { font-size: 1.35rem; letter-spacing: -.03em; }
[data-theme="graphite"] .card, [data-theme="graphite"] .kpi { background: linear-gradient(180deg, #131316, #111113); }
[data-theme="graphite"] .kpi strong { font-size: 1.6rem; font-weight: 700; letter-spacing: -.035em; }
[data-theme="graphite"] .kpi span { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
[data-theme="graphite"] .sidebar { background: #0c0c0e; }
[data-theme="graphite"] .card-head h2, [data-theme="graphite"] .card > h2 { font-size: 1rem; font-weight: 650; }
@media (min-width: 900px) { [data-theme="graphite"] .content { padding: 28px 36px; } }

/* Version en ligne : avis, pages légales, graphiques */
.notice { padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; font-size: .9rem; }
.notice.bad { border-color: var(--danger); color: var(--danger); }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.legal { max-width: 760px; margin: 0 auto; padding: 32px 20px 60px; }
.legal h1 { font-size: 2rem; margin-top: 22px; } .legal h2 { margin-top: 26px; } .legal .btn-row { margin-top: 18px; } .legal mark { background: var(--warn-soft); color: var(--warn); }
.mbars { display: flex; align-items: stretch; gap: 2px; height: 150px; margin-top: 10px; }
.mb { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: 0; }
.mb i { display: block; width: 100%; max-width: 24px; background: #d4d4d8; border-radius: 4px 4px 0 0; }
.mb:hover i, .mb:focus i { background: #fff; }
.mb small { color: var(--muted); font-size: .68rem; margin-top: 5px; white-space: nowrap; }
.mb::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 60px); padding: 4px 8px; border-radius: 7px; background: #f4f4f5; color: #09090b; font-size: .74rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 5; }
.mb:hover::after, .mb:focus::after { opacity: 1; }
.mb:nth-child(-n+3)::after { left: 0; transform: translate(0, 60px); } .mb:nth-last-child(-n+3)::after { left: auto; right: 0; transform: translate(0, 60px); }
.mb-ends { display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--border); padding-top: 5px; }
.hbar strong { white-space: nowrap; } .hbar { grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) auto; }
@media (max-width: 480px) { .top-actions select { max-width: 110px; } .tabbar a { font-size: .62rem; } }

/* ---------- Vitrine simplifiée : « Comment ça marche » + messages avant/avec ---------- */
.how { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 860px) { .how { grid-template-columns: 1fr auto 1fr auto 1fr; } }
.how-step { text-align: center; padding: 22px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; align-items: center; }
.how-step h3 { font-size: 1.15rem; margin: 4px 0 4px; }
.how-step p { color: var(--muted); margin: 0; font-size: .95rem; }
.how-visual { width: 100%; margin-bottom: 18px; }
.how-arrow { display: none; color: var(--muted); align-self: center; }
@media (min-width: 860px) { .how-arrow { display: block; } }
.hw-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; justify-content: center; text-align: left; }
.hw-url { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; }
.hw-url .ic { width: 14px; height: 14px; }
.hw-btn, .hw-yes { background: var(--primary); color: var(--on-white); font-weight: 700; font-size: .85rem; text-align: center; padding: 8px; border-radius: 10px; }
.hw-notif { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.hw-notif span, .neat-row > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.hw-notif strong, .neat-row strong { display: block; font-size: .9rem; }
.hw-notif small, .neat-row small { color: var(--muted); font-size: .78rem; }
.hw-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.hw-no { text-align: center; font-size: .85rem; padding: 8px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); }
.hw-yes { display: flex; align-items: center; justify-content: center; gap: 4px; }
.hw-yes .ic { width: 15px; height: 15px; }
.hw-map { width: 100%; height: auto; }
.hw-paid { display: flex; align-items: center; gap: 6px; justify-content: center; font-weight: 700; font-size: .88rem; color: var(--success); background: var(--success-soft); border-radius: 10px; padding: 7px; }
.hw-paid .ic { width: 15px; height: 15px; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bub { margin: 0; max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.35; }
.bub.in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bub.out { align-self: flex-end; background: rgba(255, 255, 255, .12); border-bottom-right-radius: 4px; }
.bub.late { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); color: var(--danger); }
.neat { display: flex; flex-direction: column; gap: 10px; }
.neat-row { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
