/*
 * Mise en page de l'application vendeur. Les composants (boutons, champs,
 * cartes…) viennent de bundle.css, les couleurs de tokens.css : ici, aucune
 * couleur en dur, seulement des var(--…).
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
a { color: var(--link); }
a.wz-btn { text-decoration: none; box-sizing: border-box; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- colonne mobile ---------- */
.screen { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.screen-main { flex: 1; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5) var(--space-4) var(--space-6); min-width: 0; }
.has-nav .screen-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- en-têtes ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.top-hello { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.top-hello small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.top-hello strong { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-side { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.bar { display: flex; align-items: center; gap: var(--space-2); margin: calc(-1 * var(--space-2)) 0 0 calc(-1 * var(--space-2)); }
.bar h1 { flex: 1; min-width: 0; }
.title { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.title-lg { font-size: 28px; line-height: 34px; }
.heading { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 650; }
.caption { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); font-size: 14px; line-height: 20px; }

.icon-btn { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; color: var(--ink); text-decoration: none; flex: none; background: transparent; border: 0; padding: 0; cursor: pointer; }
.icon-btn-outline { border: 1px solid var(--line-strong); background: var(--surface-raised); }
.icon-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
a.wz-badge { text-decoration: none; min-height: 32px; }

/* ---------- sections ---------- */
.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- état vide ---------- */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--surface-raised); }
.empty-ico { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--zone-soft); color: var(--zone); }
.empty p { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.empty strong { font-weight: 600; font-size: 15px; line-height: 22px; }

/* ---------- fiche (lignes libellé / valeur) ---------- */
.sheet { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-2) var(--space-5); }
.sheet-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.sheet-row:first-child { border-top: 0; }
.sheet-row dt { color: var(--ink-muted); font-size: 14px; }
.sheet-row dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.mono { font-family: var(--font-mono); font-size: 13px; line-height: 18px; font-weight: 500; }

/* ---------- formules en lecture seule ---------- */
div.wz-plan { cursor: default; }
div.wz-plan:hover { border-color: var(--line-strong); }
div.wz-plan.is-selected:hover { border-color: var(--zone); }
.wz-plan-price small { font-size: 16px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; }

/* ---------- routeurs ---------- */
a.wz-row, a.wz-seg-btn { text-decoration: none; }
.wz-row-name, .wz-row-sub { display: block; }
.wz-seg { display: flex; }
.wz-seg-btn { flex: 1; justify-content: center; min-height: 40px; }
.tip { display: flex; gap: var(--space-3); align-items: flex-start; padding: 14px var(--space-4); border-radius: var(--radius-md); border: 1px dashed var(--line-strong); color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.tip-ico { color: var(--zone); flex: none; margin-top: 1px; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.checklist .wz-icon { color: var(--zone); flex: none; margin-top: 1px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: var(--space-4); }
.steps li { counter-increment: step; position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--zone-soft); color: var(--zone); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps li > strong { font-weight: 600; line-height: 28px; }
.steps li > span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

.cmd { display: block; font-family: var(--font-mono); font-size: 13px; line-height: 19px; font-weight: 500; background: var(--night); color: var(--on-night); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }

.wait { display: flex; align-items: center; gap: 10px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 14px; color: var(--ink-muted); }
.wait-dot { width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--ticket); flex: none; animation: wait-pulse 1.4s ease-in-out infinite; }
.wait.is-done { background: var(--zone-soft); color: var(--zone); font-weight: 600; }
.wait.is-done .wait-dot { background: var(--zone); animation: none; }
@keyframes wait-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .wait-dot { animation: none; } }

.more { border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-sm); padding: 0 var(--space-4); }
.more summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.more[open] { padding-bottom: var(--space-4); }
.more ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.more > p { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-bottom: var(--space-3); }
.more .cmd { margin-bottom: var(--space-3); }
.danger-zone summary { color: var(--danger); }

/* ---------- barre de navigation du bas ---------- */
.nav-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; }
.nav-dock .wz-nav { max-width: 480px; margin: 0 auto; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
a.wz-nav-btn { text-decoration: none; min-height: 52px; justify-content: center; }
a.wz-nav-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* ---------- écrans de connexion ---------- */
.auth { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-hero { background: var(--night); color: var(--on-night); padding: var(--space-6) var(--space-5) 56px; display: flex; flex-direction: column; gap: var(--space-5); }
.auth-hero h1 { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
.auth-hero p { color: var(--on-night-muted); font-size: 15px; line-height: 22px; max-width: 34ch; }
.auth-card { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin: -32px var(--space-4) 0; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.auth-alt { text-align: center; font-size: 14px; line-height: 20px; color: var(--ink-muted); padding: var(--space-5) var(--space-4) 0; }
.auth-alt a { font-weight: 600; display: inline-block; padding: 12px 4px; }
.legal { margin-top: auto; padding: var(--space-6) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom)); font-size: 12px; line-height: 16px; color: var(--ink-subtle); text-align: center; }
.has-nav .legal { padding-bottom: 0; }

form.stack { gap: var(--space-4); }
.wz-input-wrap .reveal { font: inherit; font-size: 14px; font-weight: 600; color: var(--zone); background: transparent; border: 0; height: 44px; padding: 0 var(--space-1); margin-right: calc(-1 * var(--space-1)); cursor: pointer; border-radius: var(--radius-sm); }
.wz-input-wrap .reveal:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* ---------- logo ---------- */
.logo { display: inline-block; line-height: 0; }
.logo img, img.logo { display: block; height: auto; max-width: 100%; }

/* ---------- page d'erreur ---------- */
.error-page { padding: var(--space-12) var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; max-width: 480px; margin: 0 auto; }
.error-code { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 700; color: var(--zone); }
.error-tech { width: 100%; }
.error-tech pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 12px; background: var(--surface-sunken); padding: var(--space-3); border-radius: var(--radius-md); }

@media (min-width: 481px) {
  .screen, .auth { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
.section-link { font-weight: 600; font-size: 14px; text-decoration: none; padding: 10px 4px; }

/* ---------- formulaires ---------- */
a.wz-plan { text-decoration: none; }
.full { width: 100%; }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.choice legend { margin-bottom: 6px; padding: 0; }
.choice-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); cursor: pointer; }
.choice-item:has(input:checked) { border: 2px solid var(--zone); padding: 11px 13px; background: var(--zone-soft); }
.choice-item input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--zone); flex: none; }
.choice-item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-item strong { font-weight: 600; }
.choice-item small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.inline { display: flex; gap: 8px; }
.inline .wz-input-wrap { flex: 1; }
.wz-select { font: inherit; font-size: 16px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); padding: 0 12px; min-width: 0; }
.wz-select:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
[hidden] { display: none !important; }

/* ---------- tickets ---------- */
.ticket-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.ticket-line > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ticket-line small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.code-sm { font-family: var(--font-mono); font-weight: 600; font-size: 16px; letter-spacing: .08em; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.codes-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; background: var(--surface-raised); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); min-width: 0; }
.codes-item .wz-badge { height: 20px; padding: 0 8px; font-size: 11px; }
.codes-item.is-deleted .code-sm, .codes-item.is-expired .code-sm { color: var(--ink-subtle); text-decoration: line-through; }
.icon-btn-sm { width: 36px; height: 36px; }
.warn-text { color: var(--ticket-ink); }

/* ---------- vente ---------- */
.sale { display: flex; flex-direction: column; gap: 16px; }
.plans-pick { gap: 10px; }
.plans-pick legend { margin-bottom: 4px; }
.sale-plan .wz-plan-check { display: none; }
.sale-plan:has(input:checked) { border: 2px solid var(--zone); padding: calc(var(--space-4) - 1px); background: var(--zone-soft); }
.sale-plan:has(input:checked) .wz-plan-check { display: grid; }
.sale-plan:has(input:checked) .popular { display: none; }
.sale-plan:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.sale-plan.is-empty { opacity: .55; cursor: not-allowed; }
.router-pick { border-radius: var(--radius-md); }
.router-pick[open] { display: flex; flex-direction: column; gap: 10px; }
.pick-btn { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface-raised); cursor: pointer; }
.pick-btn::-webkit-details-marker { display: none; }
.pick-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--zone-soft); color: var(--zone); display: grid; place-items: center; flex: none; }
.pick-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pick-main strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-act { font-weight: 600; font-size: 14px; color: var(--zone); }
.sale-foot { position: sticky; bottom: calc(88px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; padding: 16px; margin: 0 -16px; background: var(--surface-raised); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 5; }
.sale-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--surface-sunken); border-radius: 12px; padding: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 8px; border: 0; background: var(--surface-raised); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.stepper button:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.stepper input { width: 44px; text-align: center; border: 0; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ready-tickets, .preview-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding: 8px 0; }
.ready-tickets .wz-ticket { width: 100%; max-width: 320px; }
.ticket-qr { width: 76px; height: 76px; background: #fff; border-radius: var(--radius-xs); padding: 3px; flex: none; }
.ticket-qr svg { width: 100%; height: 100%; display: block; }
.center { text-align: center; }
.bar-end { justify-content: space-between; margin-left: 0; margin-right: calc(-1 * var(--space-2)); }
.bar-end h1 { flex: 0 1 auto; }

/* ---------- opérateurs, tableaux ---------- */
.op { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.op-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.op-main small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.op-menu { flex: none; }
.op-menu > summary { list-style: none; }
.op-menu > summary::-webkit-details-marker { display: none; }
.op-menu[open] { flex-basis: 100%; order: 3; }
.op-menu[open] > summary { margin-left: auto; }
.op-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.sub-sans { font-family: var(--font-sans); font-size: 13px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface-raised); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); }
.table thead th { border-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-sunken); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps-check li::before { content: counter(step); }
.steps-check li.is-done::before { content: "✓"; background: var(--zone); color: var(--on-zone); }
.steps-check li a { color: var(--ink); text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.steps-check li a strong { text-decoration: underline; text-decoration-color: var(--zone); text-underline-offset: 3px; }
.steps-check li.is-done > strong { color: var(--ink-muted); text-decoration: line-through; }
.demo-add { margin-top: -8px; }

/* ---------- page de connexion ---------- */
.phone-preview { align-self: center; width: 100%; max-width: 300px; aspect-ratio: 9 / 17; border-radius: 28px; padding: 8px; background: var(--night); box-shadow: var(--shadow-lg); }
.phone-preview iframe { width: 100%; height: 100%; border: 0; border-radius: 22px; background: #fff; }
.color { width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); padding: 4px; cursor: pointer; }
.file { font: inherit; font-size: 14px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); width: 100%; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--zone); }
.code-area { font-family: var(--font-mono); font-size: 13px; line-height: 18px; width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 12px; background: var(--surface-raised); color: var(--ink); resize: vertical; }
.code-area:focus { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
code { font-family: var(--font-mono); font-size: .92em; }

/* ---------- abonnement ---------- */
.sandbox { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px dashed var(--ticket-ink); border-radius: var(--radius-md); background: var(--ticket-soft); }
.sandbox .caption { color: var(--ticket-ink); }
.receipt { max-width: 480px; margin: 0 auto; padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.receipt-head { display: flex; justify-content: space-between; align-items: center; }
@media print { .no-print, .nav-dock, .legal { display: none !important; } body { background: #fff; } .sheet { box-shadow: none; border: 1px solid #ccc; } }
.card-brands { display: flex; gap: 8px; }
.card-brands span { font-weight: 800; font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--surface-raised); border: 1px solid var(--line-strong); color: var(--ink); }

/* ---------- connexion Google ---------- */
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-subtle); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.google-btn { gap: 10px; }

/* ---------- pages légales ---------- */
.legal a { color: var(--ink-subtle); }
.legal-page { max-width: 720px; margin: 0 auto; padding: var(--space-5) var(--space-4) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.legal-head { padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.prose { font-size: 15px; line-height: 24px; color: var(--ink); }
.prose h1 { font-family: var(--font-display); font-size: 28px; line-height: 34px; margin: 0 0 4px; }
.prose h2 { font-family: var(--font-display); font-size: 19px; line-height: 26px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .wz-btn { margin-top: 4px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; font-weight: 600; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.legal-links a { padding: 10px 0; }

/* ------------------------------------------------------------ administration
   Plus large que l'espace vendeur (tableaux), barre night pour ne jamais
   confondre les deux. Couleurs du design system uniquement. */
.adm { background: var(--surface); }
.adm-top { background: var(--night); color: var(--on-night); position: sticky; top: 0; z-index: 10; }
.adm-top-row { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4) 0; }
.adm-brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: inherit; min-height: 44px; }
.adm-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--night); background: var(--zone-glow); border-radius: var(--radius-full); padding: 2px 8px; }
.adm-user { display: flex; align-items: center; gap: var(--space-3); margin: 0; }
.adm-user-name { font-size: 14px; color: var(--on-night-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.adm-logout { background: transparent; color: var(--on-night); border: 1px solid var(--on-night-muted); }
.adm-nav { max-width: 1180px; margin: 0 auto; display: flex; gap: var(--space-1); overflow-x: auto; padding: var(--space-2) var(--space-3) 0; scrollbar-width: none; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav a { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); color: var(--on-night-muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.adm-nav a.is-active { color: var(--on-night); border-bottom-color: var(--zone-glow); }
.adm-nav a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.adm-main { max-width: 1180px; margin: 0 auto; padding: var(--space-5) var(--space-4) var(--space-12); display: flex; flex-direction: column; gap: var(--space-5); }
.adm-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.adm-head .title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-3); }
.adm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: var(--space-5); align-items: start; }
.adm-list { display: flex; flex-direction: column; background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-1) var(--space-4); }
.adm-list > .muted { padding: var(--space-3) 0; }
.adm-list-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; min-height: 44px; }
.adm-list-row:first-child { border-top: 0; }
.adm-list-row > a, .adm-list-row > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: inherit; text-decoration: none; }
.adm-list-row strong { font-weight: 600; overflow-wrap: anywhere; }
.adm-list-row span span { font-size: 13px; color: var(--ink-muted); }
.adm-list-row > a span { font-size: 13px; color: var(--ink-muted); }
.adm-card { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-5); margin: 0; }
.adm-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-3); align-items: start; }
.adm-search { display: flex; gap: var(--space-2); align-items: stretch; }
.adm-search .wz-input-wrap { flex: 1; min-width: 0; }
.adm-seg { align-self: flex-start; max-width: 100%; overflow-x: auto; }
.adm-table-wrap { overflow-x: auto; background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.adm-table th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); vertical-align: top; }
.adm-table tbody tr:first-child td { border-top: 0; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table .nowrap { white-space: nowrap; }
.adm-table form { margin: 0; }
.adm-strong { font-weight: 600; display: block; }
a.adm-strong { color: var(--ink); }
.adm-sub { display: block; font-size: 13px; color: var(--ink-muted); }
.adm-error { color: var(--danger); font-size: 13px; }
.adm-mono { font-family: var(--font-mono); font-size: 13px; }
.adm-details { font-size: 13px; color: var(--ink-muted); }
.adm-details span { display: inline-block; margin-right: var(--space-3); }
.adm-details b { font-weight: 600; color: var(--ink); }
.adm-pager { display: flex; align-items: center; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }
.adm-qr { align-self: center; background: #ffffff; padding: var(--space-3); border-radius: var(--radius-md); line-height: 0; }
.adm-qr svg { width: 220px; height: 220px; display: block; }
.adm-secret { font-family: var(--font-mono); font-size: 14px; word-spacing: 4px; overflow-wrap: anywhere; }
.adm-enroll-steps { margin-bottom: var(--space-2); }
@media (max-width: 560px) {
  .adm-user-name { display: none; }
  .adm-main { padding-top: var(--space-4); }
}
.adm-stat-link { text-decoration: none; color: inherit; display: block; }
.adm-stat-link:hover { box-shadow: var(--shadow-lg); }
.adm-stat-link:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.adm-seg .wz-seg-btn { white-space: nowrap; }

/* FAQ : questions dépliables, sans script */
.prose details.faq { border-top: 1px solid var(--line); padding: var(--space-1) 0; }
.prose details.faq:last-of-type { border-bottom: 1px solid var(--line); }
.prose details.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); list-style: none; padding: var(--space-2) 0; }
.prose details.faq summary::-webkit-details-marker { display: none; }
.prose details.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; color: var(--zone); flex: none; }
.prose details.faq[open] summary::after { content: "−"; }
.prose details.faq summary:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.prose details.faq > :not(summary) { margin-bottom: var(--space-3); }
.legal-links { flex-wrap: wrap; }

/* ------------------------------------------------------------ site public
   Page d'accueil de mikrotiko.com : empilée sur téléphone, en colonnes à
   partir de 880 px. Couleurs et polices du design system uniquement. */
.site { background: var(--surface); color: var(--ink); }
.site-wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 880px) { .site-wrap { padding: 0 var(--space-8); } }
.site-narrow { max-width: 760px; }

.site-top { position: sticky; top: 0; z-index: 20; background: var(--night); color: var(--on-night); border-bottom: 1px solid rgba(232, 243, 238, .08); }
.site-top-row { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; }
.site-brand { display: flex; align-items: center; min-height: 44px; }
.site-links { display: none; gap: var(--space-1); margin-left: var(--space-4); }
.site-links a { color: var(--on-night-muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: var(--radius-sm); }
.site-links a:hover { color: var(--on-night); }
.site-top-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.site-login { color: var(--on-night); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 8px; display: none; }
@media (min-width: 480px) { .site-login { display: inline-block; } }
@media (min-width: 960px) { .site-links { display: flex; } }
.site a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.site-hero { background: var(--night); color: var(--on-night); overflow: hidden; position: relative; }
.site-hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 214, 160, .22), rgba(61, 214, 160, 0) 65%); pointer-events: none; }
.site-hero-grid { position: relative; display: grid; gap: var(--space-8); padding-top: var(--space-8); padding-bottom: var(--space-8); }
@media (min-width: 880px) { .site-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; padding-top: 72px; padding-bottom: 72px; min-height: min(720px, calc(100vh - 64px)); } }
.site-eyebrow { color: var(--zone-glow); font-weight: 600; font-size: 14px; letter-spacing: .02em; margin-bottom: var(--space-3); }
.site-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
.site-hero h1 span { color: var(--ticket); display: block; }
.site-lead { font-size: 18px; line-height: 28px; color: var(--on-night-muted); margin-top: var(--space-5); max-width: 36em; }
.site-section .site-lead { color: var(--ink-muted); }
.site-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.site-btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.site-section .site-btn-ghost { color: var(--zone); }
.site-proof { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--on-night-muted); font-size: 14px; }
.site-proof li { display: flex; align-items: center; gap: 6px; }
.site-proof svg { color: var(--zone-glow); flex: none; }

.site-hero-visual { position: relative; height: 420px; max-width: 460px; width: 100%; justify-self: center; }
@media (min-width: 880px) { .site-hero-visual { height: 560px; } }
.site-phone { position: absolute; width: 56%; aspect-ratio: 9 / 16; border-radius: 30px; background: var(--surface-sunken); padding: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.site-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; display: block; }
.site-phone-back { left: 2%; top: 8%; transform: rotate(-6deg); opacity: .9; }
.site-phone-front { right: 2%; top: 0; transform: rotate(4deg); }

.site-section { padding: 72px 0; }
.site-section-alt { background: var(--surface-raised); }
.site-h2 { font-family: var(--font-display); font-weight: 750; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; max-width: 22em; }
.site-sub { color: var(--ink-muted); font-size: 17px; line-height: 26px; margin-top: var(--space-3); max-width: 44em; }
.site-sub-small { font-size: 14px; margin-top: var(--space-5); }

.site-steps { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: var(--space-5); }
@media (min-width: 880px) { .site-steps { grid-template-columns: repeat(3, 1fr); } }
.site-steps li { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-6); }
.site-step-num { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--zone); color: var(--on-zone); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.site-steps h3, .site-features h3 { font-family: var(--font-display); font-weight: 650; font-size: 20px; line-height: 26px; margin: var(--space-4) 0 var(--space-2); }
.site-steps p, .site-features p { color: var(--ink-muted); font-size: 15px; line-height: 23px; }

.site-features { display: grid; gap: var(--space-4); margin-top: var(--space-8); }
@media (min-width: 640px) { .site-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-features { grid-template-columns: repeat(3, 1fr); } }
.site-features article { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); background: var(--surface); }
.site-feat-ico { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--zone-soft); color: var(--zone); display: grid; place-items: center; flex: none; }

.site-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
@media (min-width: 880px) { .site-gallery { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); } }
.site-gallery figure { margin: 0; }
.site-gallery img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; background: var(--surface-sunken); }
.site-gallery figcaption { text-align: center; font-weight: 600; font-size: 14px; color: var(--ink-muted); margin-top: var(--space-3); }

.site-install { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 880px) { .site-install { grid-template-columns: 1.1fr .9fr; } }
.site-install-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.site-install-list li { display: flex; gap: var(--space-4); align-items: flex-start; background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-5); }
.site-install-list strong { display: block; font-weight: 650; margin-bottom: 2px; }
.site-install-list div { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.site-install-list div strong { color: var(--ink); }
.site-install-help { margin-top: var(--space-5); background: var(--info-soft); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); font-size: 15px; line-height: 22px; }
.site-install-help ol { margin: var(--space-2) 0 0; padding-left: 20px; }

.site-prices { display: grid; gap: var(--space-4); margin-top: var(--space-8); }
@media (min-width: 640px) { .site-prices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-prices { grid-template-columns: repeat(4, 1fr); } }
.site-price { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); background: var(--surface); display: flex; flex-direction: column; gap: var(--space-2); }
.site-price.is-featured { border: 2px solid var(--zone); box-shadow: var(--shadow-lg); }
.site-price-tag { position: absolute; top: -12px; left: var(--space-6); }
.site-price h3 { font-family: var(--font-display); font-weight: 650; font-size: 20px; }
.site-price-amount { font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
.site-price-amount span { font-family: var(--font-sans); font-weight: 500; font-size: 15px; color: var(--ink-muted); letter-spacing: 0; }
.site-price-note { color: var(--ink-muted); font-size: 15px; margin-bottom: var(--space-4); flex: 1; }

.site-final { background: var(--night); color: var(--on-night); padding: 64px 0; }
.site-final-row { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 880px) { .site-final-row { grid-template-columns: 1fr auto; } }
.site-final h2 { font-family: var(--font-display); font-weight: 750; font-size: clamp(26px, 3.5vw, 36px); line-height: 1.15; }
.site-final p { color: var(--on-night-muted); margin-top: var(--space-2); font-size: 17px; }
.site-final .site-cta { margin-top: 0; }

.site-foot { background: var(--night); color: var(--on-night-muted); border-top: 1px solid rgba(232, 243, 238, .08); padding: var(--space-8) 0; }
.site-foot-row { display: grid; gap: var(--space-5); }
@media (min-width: 880px) { .site-foot-row { grid-template-columns: 1fr auto; align-items: center; } }
.site-foot-note { font-size: 13px; margin-top: var(--space-3); }
.site-foot-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.site-foot-links a { color: var(--on-night-muted); font-size: 14px; padding: 8px 0; }
.site-foot-links a:hover { color: var(--on-night); }
@media (prefers-reduced-motion: no-preference) { html:has(.site) { scroll-behavior: smooth; } }
.site [id] { scroll-margin-top: 80px; }
.prose .site-h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 0 0 var(--space-5); }

/* ---------- connexion et inscription sur ordinateur ----------
   À partir de 960 px : panneau night fixe à gauche (titre, atouts,
   capture), formulaire centré à droite. Sur téléphone, rien ne change. */
.auth-aside { display: none; }
@media (min-width: 960px) {
  .auth:has(> .auth-hero) {
    max-width: none; margin: 0; border: 0;
    padding-left: 52%;
    justify-content: center;
    background: var(--surface);
  }
  .auth:has(> .auth-hero)::before { content: ""; position: fixed; inset: 0 48% 0 0; background: var(--night); z-index: 0; }
  .auth:has(> .auth-hero) > .auth-hero {
    position: fixed; left: 0; top: 0; width: 52%; z-index: 1;
    background: transparent; padding: 72px 72px 0; gap: var(--space-6);
  }
  .auth-hero h1 { font-size: clamp(40px, 4vw, 56px); line-height: 1.05; }
  .auth-hero p { font-size: 18px; line-height: 28px; max-width: 30em; }
  .auth:has(> .auth-hero) > .auth-card { margin: 48px 56px 0; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
  .auth:has(> .auth-hero) > .auth-alt { padding-bottom: var(--space-4); }
  .auth:has(> .auth-hero) > .legal { margin-top: 0; padding: var(--space-4) 56px var(--space-6); }
  .auth-aside {
    position: fixed; left: 0; bottom: 0; width: 52%; z-index: 1;
    display: flex; gap: var(--space-8); align-items: flex-end; justify-content: space-between;
    color: var(--on-night-muted); padding: 0 72px; overflow: hidden;
  }
  .auth-aside ul { list-style: none; margin: 0; padding: 0 0 72px; display: flex; flex-direction: column; gap: var(--space-3); font-size: 16px; }
  .auth-aside li { display: flex; gap: var(--space-2); align-items: center; }
  .auth-aside svg { color: var(--zone-glow); flex: none; }
  .auth-aside-phone { width: 230px; flex: none; aspect-ratio: 9 / 13; border-radius: 30px 30px 0 0; background: var(--surface-sunken); padding: 8px 8px 0; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); overflow: hidden; }
  .auth-aside-phone img { width: 100%; height: auto; border-radius: 24px 24px 0 0; display: block; }
}
/* Écran bas ou étroit : pas de capture, la liste suffit. */
@media (min-width: 960px) and (max-width: 1180px), (min-width: 960px) and (max-height: 760px) {
  .auth-aside-phone { display: none; }
}
@media (min-width: 960px) and (max-height: 620px) { .auth-aside { display: none; } }

/* ---------- espace vendeur sur ordinateur ----------
   À partir de 1024 px : menu fixe à gauche sur toutes les pages, contenu
   centré plus large. Sur téléphone, seule la barre du bas existe. */
.nav-brand, .nav-sep, .nav-extra { display: none; }
.nav-desktop-only { display: none; }
@media (min-width: 1024px) {
  .nav-dock, .nav-dock.nav-desktop-only {
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: 248px;
    background: var(--surface-raised); border-right: 1px solid var(--line); padding: 20px 12px; z-index: 10; overflow-y: auto;
  }
  .nav-brand { display: flex; align-items: center; min-height: 44px; padding: 4px 12px 24px; }
  .nav-dock .wz-nav { flex-direction: column; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; gap: 2px; }
  .nav-dock .wz-nav-btn, .nav-dock a.wz-nav-btn {
    flex: none; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px;
    font-size: 15px; line-height: 20px; min-height: 44px; padding: 2px 8px; border-radius: var(--radius-md);
  }
  .nav-dock .wz-nav-btn:hover { background: var(--surface-sunken); color: var(--ink); }
  .nav-dock .wz-nav-pill { width: 36px; height: 32px; }
  .nav-dock .wz-nav-btn.is-active { background: var(--zone-soft); color: var(--zone); }
  .nav-dock .wz-nav-btn.is-active .wz-nav-pill { background: transparent; }
  /* « Vendre » : l'action principale, en tête du menu. */
  .nav-dock .wz-nav-fab { order: -1; margin-bottom: var(--space-4); background: var(--zone); color: var(--on-zone); justify-content: center; min-height: 48px; }
  .nav-dock .wz-nav-fab:hover, .nav-dock .wz-nav-fab.is-active { background: var(--zone-strong); color: var(--on-zone); }
  .nav-dock .wz-nav-fab .wz-nav-pill { width: auto; height: auto; margin: 0; background: transparent; box-shadow: none; color: inherit; }
  .nav-sep { display: block; height: 1px; background: var(--line); margin: var(--space-3) var(--space-2); }
  .nav-dock .nav-extra { display: flex; }

  .app .screen, .app .screen.has-nav { max-width: none; margin: 0 0 0 248px; border: 0; }
  .app .screen-main { max-width: 820px; width: 100%; margin: 0 auto; padding: 32px 40px 48px; }
  .app .has-nav .screen-main { padding-bottom: 48px; }
  .app .legal { max-width: 820px; width: 100%; margin: auto auto 0; padding-bottom: var(--space-6); }
}
.logo-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; border-radius: var(--radius-sm); }
.logo-link:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.site-store { display: inline-flex; margin: var(--space-2) var(--space-2) var(--space-1) 0; }
.phone-field { display: grid; gap: var(--space-4); }

/* Listes déroulantes : avec un fond transparent, Chrome et Edge (Windows) ouvrent
   la liste sur fond blanc alors que le texte suit le thème sombre, donc
   illisible. On donne le fond du champ à la liste et à chaque option. */
select.wz-input { background-color: var(--surface-raised); color: var(--ink); cursor: pointer; }
select.wz-input option { background-color: var(--surface-raised); color: var(--ink); }
select.wz-input option:checked { background-color: var(--zone-soft); color: var(--ink); }

/* Bouton « Actualiser » (en-tête des écrans de l’appli) */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.page-head .title { min-width: 0; }
.bar .refresh-btn { flex: none; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
.refresh-btn.is-busy svg { animation: refresh-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .refresh-btn.is-busy svg { animation: none; } }
