/* Socle visuel des SaaS générés. Les couleurs, polices et rayons viennent de theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); font-weight: 650; }
h2 { font-size: 1.25rem; font-weight: 620; }
h3 { font-size: 1.05rem; font-weight: 620; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
mark.todo { background: var(--warning-soft); color: var(--warning); padding: 0 .25em; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; border-radius: 4px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.pre { white-space: pre-wrap; }
.text-danger { color: var(--danger); }
.icon { width: 18px; height: 18px; flex: none; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.stack { display: grid; gap: 1rem; }
.stack-sm { display: grid; gap: .5rem; }
.eyebrow { font-size: .75rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 .6rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; padding: .55rem 1.05rem; border-radius: var(--radius-btn);
  font: 600 .935rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { min-height: 50px; padding: .75rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .icon { width: 17px; height: 17px; }
button.link { background: none; border: 0; padding: 0; color: var(--brand-text); font: inherit; text-decoration: underline; cursor: pointer; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-btn);
  background: transparent; border: 1px solid transparent; color: var(--text); cursor: pointer; position: relative; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}
.inline-form { display: inline; }

/* --- Formulaires --- */
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.req { color: var(--danger); margin-left: .2em; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=date], input[type=datetime-local], input[type=search], input[type=time], select, textarea {
  width: 100%; min-height: 44px; padding: .6rem .8rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--brand-line); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-soft); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.help { font-size: .82rem; color: var(--muted); margin: 0; }
.field-error { font-size: .85rem; color: var(--danger); margin: 0; font-weight: 550; }
.field-check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.field-check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--brand); }
.input-sm { min-height: 36px !important; padding: .35rem .5rem !important; max-width: 120px; }
.inline-fields { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.inline-fields .field { flex: 1 1 200px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > .field:has(textarea), .form-grid > .form-actions, .form-grid > input[type=hidden] { grid-column: 1 / -1; }
.form-actions { display: flex; gap: .6rem; }
.searchbar { display: flex; gap: .6rem; margin-bottom: 1rem; max-width: 520px; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-btn); margin: 0 0 1.5rem; }
.segmented a, .segmented label { padding: .4rem .9rem; border-radius: var(--radius-btn); text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; }
.segmented a[aria-current], .segmented label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented.small { margin: 0; }

/* --- Surfaces --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.35rem; box-shadow: var(--shadow); min-width: 0; }
.card-muted { background: var(--surface-2); box-shadow: none; }
.card-accent { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2 { margin: 0; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { display: grid; gap: .15rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.stat:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat-value { font: 650 1.55rem/1.2 var(--font-heading); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-hint { font-size: .8rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-brand { background: var(--brand-soft); color: var(--brand-text); }
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid transparent; }
.alert .icon { margin-top: .15rem; }
.alert-ok { background: var(--success-soft); color: var(--success); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert > div { color: var(--text); }
.banner { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .6rem 1.5rem; background: var(--warning-soft); color: var(--text); font-size: .9rem; margin: 0; }
.empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius-md); background: var(--surface); }
.empty-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); margin-bottom: .8rem; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* --- Tableaux --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .935rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; padding: .75rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 50%, transparent); }
.row-link { font-weight: 600; color: var(--text); text-decoration: none; }
.row-link:hover { color: var(--brand-text); text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.details dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.details dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.kv { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.kv li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.kv li:last-child { border-bottom: 0; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }

/* --- Jauges, listes d'activité --- */
meter { width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--surface-2); }
meter::-webkit-meter-bar { background: var(--surface-2); border: 0; border-radius: 999px; height: 8px; }
meter::-webkit-meter-optimum-value { background: var(--brand); border-radius: 999px; }
meter::-webkit-meter-suboptimum-value { background: var(--warning); border-radius: 999px; }
meter::-webkit-meter-even-less-good-value { background: var(--danger); border-radius: 999px; }
meter::-moz-meter-bar { background: var(--brand); border-radius: 999px; }
.quota { margin-bottom: .9rem; }
.quota-head { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .3rem; font-variant-numeric: tabular-nums; }
.checklist-head { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.checklist ol { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist li p { margin: .1rem 0 0; }
.check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex: none; margin-top: .1rem; }
.checklist li.done .check { background: var(--success); border-color: var(--success); color: #fff; }
.checklist li.done a { color: var(--muted); text-decoration: line-through; }
.check .icon { width: 14px; height: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.timeline li { display: grid; gap: .1rem; padding-left: 1rem; border-left: 2px solid var(--brand-line); }
.notif-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.notif-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.notif-list li.unread { border-left: 3px solid var(--brand); }
.notif-list p { margin: .2rem 0; }
.chart { margin: 0; }
.chart svg { width: 100%; height: 150px; }
.chart .bar { fill: var(--brand); opacity: .85; }
.chart .bar:hover { opacity: 1; }
.chart .bar-label { fill: var(--muted); font-size: 9px; font-family: var(--font-body); }
.token { display: block; padding: .8rem; word-break: break-all; font-size: .95rem; }
.danger-title { color: var(--danger); }

/* --- Espace client / admin --- */
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.25rem 1rem; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font: 700 1.1rem/1 var(--font-heading); letter-spacing: -0.01em; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--brand); color: var(--brand-ink); font-size: .95rem; box-shadow: 0 6px 14px -8px var(--brand); }
.account-chip { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .75rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .88rem; font-weight: 600; }
.account-chip.operator { background: var(--accent-soft); color: var(--accent-text); }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 550; font-size: .935rem; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
.nav-section { margin: 1rem 0 .3rem .75rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .4rem; padding: .6rem 1.5rem; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-spacer { flex: 1; }
.bell .dot { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .3rem .5rem; border-radius: var(--radius-btn); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--surface-2); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.user-name { font-weight: 600; font-size: .9rem; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; padding: .4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); display: grid; }
.menu a, .menu button { text-align: left; padding: .55rem .7rem; border-radius: 6px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.content { padding: 2rem 1.5rem 4rem; width: min(1200px, 100%); margin-inline: auto; display: grid; gap: 1.25rem; align-content: start; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { margin-bottom: .2rem; }
.page-head .lead { margin: 0; font-size: 1rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.section-sub { margin-top: 1rem; }
.flash { margin-bottom: .25rem; }
.nav-toggle { display: none; }

/* --- Authentification --- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-card { width: min(440px, 100% - 2.5rem); margin: auto; padding: 3rem 0; display: grid; gap: 1rem; }
.auth-card h1 { font-size: 1.7rem; margin-top: 1rem; }
.auth-aside { background: var(--brand); color: var(--brand-ink); padding: 4rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; inset: auto -20% -30% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.auth-aside .eyebrow { color: inherit; opacity: .8; }
.auth-quote { font: 600 clamp(1.4rem, 1rem + 1.5vw, 2.1rem)/1.25 var(--font-heading); max-width: 18ch; position: relative; z-index: 1; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; position: relative; z-index: 1; }
.ticks li { display: flex; gap: .55rem; align-items: flex-start; }
.ticks .icon { margin-top: .2rem; color: var(--accent-text); }
.auth-aside .ticks .icon { color: inherit; }

/* --- Site public --- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; }
.site-nav > a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; }
.site-nav > a:not(.btn):hover { color: var(--brand-text); }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 .75rem; }
.band { background: var(--surface); border-block: 1px solid var(--border); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.statement { font: 600 clamp(1.3rem, 1rem + 1.4vw, 2rem)/1.3 var(--font-heading); max-width: 30ch; letter-spacing: -0.015em; }
.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.personas article { padding-top: 1rem; border-top: 2px solid var(--brand); }
.personas p { color: var(--muted); margin: 0; }
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); max-width: 22ch; margin-bottom: 2rem; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bento article { padding: 1.5rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s ease, transform .2s ease; }
.bento article:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.bento article p { color: var(--muted); margin: 0; }
.bento .bento-lead { grid-column: span 2; grid-row: span 2; background: linear-gradient(145deg, var(--brand-soft), var(--surface) 65%); display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; }
.bento .bento-lead h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); max-width: 18ch; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { position: relative; padding: 1.5rem 0 0; border-top: 1px solid var(--border); }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: block; font: 700 .85rem/1 var(--font-heading); color: var(--brand-text); margin-bottom: .75rem; letter-spacing: .05em; }
.steps.compact li { padding-top: 1rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.plan .ticks { flex: 1; margin-bottom: 1rem; font-size: .92rem; }
.plan .ticks .icon { color: var(--success); }
.plan-highlight { border: 2px solid var(--brand); box-shadow: 0 20px 40px -24px var(--brand); }
.plan-current { outline: 2px solid var(--brand-line); outline-offset: 2px; }
.plan-flag { position: absolute; top: -12px; left: 1.5rem; background: var(--brand); color: var(--brand-ink); font-size: .72rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; letter-spacing: .03em; }
.plan-price { display: flex; flex-direction: column; margin: .25rem 0; }
.price { font: 700 2rem/1.1 var(--font-heading); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-unit { color: var(--muted); font-size: .85rem; }
.plan-trial { color: var(--success); font-weight: 600; font-size: .88rem; margin: 0; }
.faq { display: grid; gap: .5rem; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 0 1.1rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); }
.final-cta { background: var(--text); color: var(--bg); padding: clamp(3rem, 2rem + 4vw, 5rem) 0; text-align: center; }
.final-cta h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); max-width: 26ch; margin: 0 auto 1.5rem; }
.site-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid nav { display: grid; gap: .4rem; align-content: start; }
.footer-grid h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .3rem; }
.footer-grid nav a { color: var(--text); text-decoration: none; font-size: .92rem; }
.footer-grid nav a:hover { color: var(--brand-text); }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .85rem; }
.prose { line-height: 1.75; }
.prose h2 { margin-top: 2rem; }
.error-page { padding: 6rem 0; }

/* Aperçu produit (visuel d'accueil sans démonstration interactive) */
.preview { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 40px 80px -40px rgba(0,0,0,.35); overflow: hidden; }
.preview-bar { display: flex; gap: 6px; padding: .7rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.preview-body { display: grid; grid-template-columns: 150px 1fr; min-height: 260px; }
.preview-side { display: grid; gap: .3rem; align-content: start; padding: 1rem .7rem; border-right: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.preview-side span { display: flex; gap: .4rem; align-items: center; padding: .35rem .45rem; border-radius: 6px; }
.preview-side span:first-child { background: var(--brand-soft); color: var(--brand-text); }
.preview-side .icon { width: 14px; height: 14px; }
.preview-main { padding: 1rem; display: grid; gap: 1rem; align-content: start; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.preview-stats div { padding: .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); display: grid; }
.preview-stats small { color: var(--muted); font-size: .7rem; }
.preview-rows { display: grid; gap: .5rem; }
.preview-rows i { height: 30px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--brand-soft)); }

/* --- Pages publiques des clients (réservation, devis) --- */
.public-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.public-header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.public-business { font: 700 1.15rem/1.2 var(--font-heading); }
.public-main { padding: 2rem 0 3rem; display: grid; gap: 1.25rem; }
.public-footer { padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--border); }

/* --- Directions artistiques --- */
.style-technical .hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 75%); opacity: .7;
}
.style-technical .eyebrow { font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .04em; text-transform: none; }
.style-technical .eyebrow::before { content: "// "; opacity: .6; }
.style-editorial h1, .style-editorial .section-title, .style-editorial .statement { font-weight: 500; letter-spacing: -0.02em; }
.style-editorial .hero h1 { font-weight: 500; }
.style-editorial .section { border-top: 1px solid var(--border); }
.style-editorial .eyebrow { color: var(--muted); }
.style-editorial .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: .6rem; }
.style-friendly .hero::before {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
}
.style-friendly .hero::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -240px; bottom: -280px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft), transparent 65%);
}
.style-friendly .bento article, .style-friendly .plan { border-width: 1.5px; }

/* --- Responsive --- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(290px, 85vw); transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .nav-toggle { display: inline-grid; }
  .site-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .grid-2, .form-grid, .details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .content { padding: 1.25rem 1rem 3rem; }
  .topbar { padding: .5rem 1rem; }
  .user-name { display: none; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .bento .bento-lead { grid-column: auto; grid-row: auto; min-height: 0; }
  .table-wrap { border: 0; background: transparent; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: .75rem; padding: .4rem 0; }
  .table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .45rem 1rem; text-align: right; }
  .table td::before { content: attr(data-label); font-weight: 650; color: var(--muted); font-size: .8rem; text-align: left; }
  .table td[data-label=""]::before { content: none; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-side { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Module agenda et réservations */
.agenda-day h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1rem 0 .5rem; }
.agenda-day h2::first-letter { text-transform: uppercase; }
.agenda-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.agenda-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); }
.agenda-item.status-cancelled { border-left-color: var(--danger); opacity: .7; }
.agenda-item.status-completed { border-left-color: var(--border); }
.agenda-item.status-no_show { border-left-color: var(--warning); }
.agenda-time { display: grid; text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums; }
.agenda-body { display: grid; min-width: 0; }
.agenda-tags { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.hours { display: grid; gap: .6rem; }
.hours-row { display: grid; grid-template-columns: 96px 1fr 1fr; gap: .6rem; align-items: center; }
.hours-day { font-weight: 600; font-size: .92rem; }
.hours-range { display: flex; align-items: center; gap: .3rem; }
.hours-range input { min-height: 38px; padding: .35rem .4rem; }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.service-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.service-list a:hover { border-color: var(--brand); transform: translateX(2px); }
.service-list a > span { display: grid; }
.day-strip { display: grid; grid-template-columns: 40px repeat(auto-fit, minmax(54px, 1fr)) 40px; gap: .4rem; align-items: center; }
.day-chip { display: grid; justify-items: center; padding: .55rem .2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: var(--text); font-size: .78rem; line-height: 1.25; }
.day-chip strong { font-size: 1.15rem; }
.day-chip:hover { border-color: var(--brand-line); }
.day-chip[aria-current] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.slots { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.slots legend { font-weight: 650; margin-bottom: .6rem; padding: 0; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span { display: block; text-align: center; padding: .65rem .3rem; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; }
.slot input:hover + span { border-color: var(--brand); }
.slot input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.slot input:focus-visible + span { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.confirm-box { text-align: center; padding: 2.5rem 1rem; }
.confirm-icon { width: 56px; height: 56px; margin: 0 auto 1rem; color: var(--success); }
/* Démonstration interactive (page d'accueil) */
.demo-booking { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: 0 40px 80px -40px rgba(0,0,0,.35); display: grid; gap: 1rem; }
.demo-head { display: flex; align-items: center; gap: .5rem; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.demo-title { font: 650 1.15rem/1.2 var(--font-heading); margin: 0; }
.demo-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.demo-day, .demo-slot { position: relative; cursor: pointer; }
.demo-day input, .demo-slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.demo-day { display: grid; justify-items: center; padding: .5rem .2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .75rem; }
.demo-day strong { font-size: 1.05rem; }
.demo-day:has(input:checked) { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.demo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.demo-slot span { display: block; text-align: center; padding: .5rem 0; border: 1px solid var(--border); border-radius: var(--radius-btn); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-slot:has(input:checked) span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); }
.demo-confirm { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) {
  .agenda-item { grid-template-columns: 64px minmax(0, 1fr); }
  .agenda-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .hours-row { grid-template-columns: 1fr; }
}
