/* FounderDesk — dashboard client (après paiement)
   Deux colonnes : les étapes à gauche, l'aperçu du bureau et l'envoi vers l'app à droite (collant). Mêmes jetons que styles.css. */
.dash { background: var(--paper); }

.dash-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); border-bottom: var(--border) solid var(--ink); }
body.dash::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 45; background: var(--paper); }
.dash-top-in { display: flex; align-items: center; gap: 14px; padding-block: 10px; flex-wrap: wrap; }
.dash-chip { padding: 4px 12px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--mustard); font-weight: 900; font-size: 13px; }
.dash-progress { margin-left: auto; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dash-bar { width: 140px; height: 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.dash-bar-fill { display: block; height: 100%; width: 0; background: var(--mint); border-right: 2.5px solid var(--ink); transition: width 0.4s ease; }
.dash-bar-fill[data-empty="1"] { border-right: 0; }

.dash-main { padding-block: 44px 80px; }
.dash-hello { display: grid; gap: 14px; max-width: 760px; margin-bottom: 36px; }
.dash-hello h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: start; }
.dash-steps { display: grid; gap: 22px; min-width: 0; }
.dash-side { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: grid; gap: 20px; min-width: 0; }

/* ---------- Étapes ---------- */
.step { display: grid; gap: 16px; padding: 22px 24px 24px; background: #fff; border: var(--border) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; scroll-margin-top: 90px; }
.step.is-done { background: var(--mint-soft); }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head h2 { font-size: 24px; line-height: 1.1; font-weight: 600; }
.step-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--mustard); font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.step.is-done .step-num { background: var(--mint); }
.done { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.step p { color: var(--ink-soft); line-height: 1.5; max-width: 60ch; }
.step code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: var(--ink); }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.muted { color: var(--ink-faint); font-weight: 700; font-size: 14px; }
.dash input[type="checkbox"], .dash input[type="radio"] { accent-color: var(--coral); width: 17px; height: 17px; flex: none; }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; cursor: pointer; }

/* Fonds d'écran */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 6px 13px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); font: inherit; font-weight: 900; font-size: 13.5px; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip-btn:focus-visible, .wall-pick:focus-visible, .linkish:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; max-height: 420px; overflow-y: auto; padding: 4px 6px 8px 4px; }
.wall-pick { position: relative; padding: 0; aspect-ratio: 16 / 10; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper-2); cursor: pointer; }
.wall-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall-pick[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6.5px var(--coral); }
.wall-pick[aria-pressed="true"]::after { content: "✓"; position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%; background: var(--coral); color: #fff; font-weight: 900; font-size: 13px; }

/* Lignes widget */
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash select, .dash input[type="text"], .dash input[type="number"], .dash input[type="url"] { font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.dash select.size { padding: 7px 10px; font-size: 14px; width: 190px; max-width: 100%; }
.dash select:focus, .dash input:focus { outline: none; box-shadow: 3px 3px 0 var(--sky); }
.seg { margin: 4px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 8px; font-weight: 900; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.seg label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); cursor: pointer; }
.seg label:has(input:checked) { background: var(--mustard-soft); box-shadow: 3px 3px 0 var(--ink); }
.seg span { display: grid; gap: 2px; font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.seg strong { color: var(--ink); font-size: 15px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.field { display: grid; gap: 6px; font-weight: 800; font-size: 13.5px; color: var(--ink-soft); min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select { width: 100%; }

.howto { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-soft); line-height: 1.45; max-width: 60ch; }
.howto strong { color: var(--ink); }

.snip { border: 2.5px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--night); color: var(--paper); }
.snip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; background: var(--night-2); font-weight: 800; font-size: 13.5px; }
.snip pre { margin: 0; padding: 14px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; }

/* ---------- Aperçu du bureau ---------- */
.pv-card { display: grid; gap: 10px; }
.pv { position: relative; container-type: inline-size; aspect-ratio: 16 / 10; max-width: 100%; border: var(--border) solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: 8px 8px 0 var(--coral); }
.pv-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-menubar { position: absolute; inset: 0 0 auto 0; height: 5cqw; display: flex; align-items: center; gap: 2.6cqw; padding: 0 2.6cqw; background: rgba(255, 249, 238, 0.78); backdrop-filter: blur(6px); font-size: 2.2cqw; font-weight: 800; z-index: 6; }
.pv-apple { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--ink); }
.pv-right { margin-left: auto; }
.pv-wg { position: absolute; width: 25cqw; padding: 1.8cqw 2cqw 2cqw; display: grid; gap: 0.3cqw; background: var(--paper); border: 0.5cqw solid var(--ink); border-radius: 3cqw; box-shadow: 1cqw 1cqw 0 var(--ink); transform: scale(var(--s, 1)); transition: transform 0.3s ease, opacity 0.25s ease; z-index: 4; }
.pv-wg.left { left: 2.4cqw; transform-origin: top left; }
.pv-wg.right { right: 3.2cqw; transform-origin: top right; }
.pv-wg[hidden] { display: none; }
.pv-wg small { font-size: 1.9cqw; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.pv-wg b { font-family: var(--font-display); font-size: 4.6cqw; line-height: 1; font-variant-numeric: tabular-nums; }
.pv-wg em { font-style: normal; font-size: 1.9cqw; font-weight: 800; color: var(--ink-soft); }
.pv-bar { height: 1.8cqw; border: 0.4cqw solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; margin-top: 0.4cqw; }
.pv-bar i { display: block; height: 100%; width: 91%; background: var(--mint); }
.pv-win { position: absolute; left: 14cqw; top: 22cqw; width: 52cqw; height: 34cqw; padding: 2cqw; display: grid; align-content: start; gap: 2.4cqw; background: #fff; border: 0.5cqw solid var(--ink); border-radius: 2.4cqw; box-shadow: 0 1.5cqw 4cqw rgba(35, 33, 46, 0.35); z-index: 3; }
.pv.layer-desktop .pv-win { z-index: 5; }
.pv-dots { display: flex; gap: 1cqw; }
.pv-dots i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--coral); border: 0.3cqw solid var(--ink); }
.pv-dots i:nth-child(2) { background: var(--mustard); }
.pv-dots i:nth-child(3) { background: var(--mint); }
.pv-lines { display: grid; gap: 1.6cqw; }
.pv-lines i { height: 1.8cqw; border-radius: 999px; background: var(--paper-3); }
.pv-lines i:nth-child(2) { width: 82%; }
.pv-lines i:nth-child(3) { width: 64%; }
.pv-lines i:nth-child(4) { width: 74%; }
.pv-notif { position: absolute; left: 50%; top: 6.4cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 1.4cqw 2.4cqw 1.4cqw 1.6cqw; background: var(--paper); border: 0.5cqw solid var(--ink); border-radius: 999px; box-shadow: 1cqw 1cqw 0 var(--ink); font-size: 2.3cqw; font-weight: 800; white-space: nowrap; z-index: 7; transform: translate(-50%, -260%) scale(var(--s, 1)); transform-origin: top center; transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1); }
.pv-notif.on { transform: translate(-50%, 0) scale(var(--s, 1)); }
.pv-notif small { display: block; font-size: 1.8cqw; color: var(--ink-soft); }
.pv-notif strong { color: var(--green-text); }
.pv-avatar { display: grid; place-items: center; width: 5cqw; height: 5cqw; border: 0.4cqw solid var(--ink); border-radius: 50%; background: var(--lilac); font-size: 1.9cqw; font-weight: 900; }
.pv-caption { text-align: center; font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft); }

.send { display: grid; gap: 12px; justify-items: start; padding: 22px 24px 24px; background: var(--mustard); border: var(--border) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.send h2 { font-size: 26px; font-weight: 600; }
.send p { font-weight: 700; line-height: 1.45; }
.linkish { padding: 2px 0; border: 0; background: none; font: inherit; font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink); }
.summary { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-weight: 700; font-size: 14px; width: 100%; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding-top: 5px; border-top: 2px dashed rgba(35, 33, 46, 0.35); }
.summary li span:last-child { text-align: right; font-weight: 900; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-side { position: static; order: -1; }
  .dash-progress { margin-left: 0; width: 100%; }
  .dash-bar { flex: 1; width: auto; }
}
@media (max-width: 560px) {
  .fields, .seg { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 18px 16px 20px; }
  .step-head h2 { font-size: 21px; }
  .dash select.size { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-wg, .pv-notif, .dash-bar-fill { transition: none; }
}

/* ---------- Compte client (clé d'accès, offres, portail Stripe) ---------- */
.acct { display: grid; gap: 18px; margin-bottom: 32px; padding: 22px 24px 24px; background: #fff; border: var(--border) solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--lilac); }
.acct-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-head h2 { font-size: 24px; line-height: 1.1; font-weight: 600; }
.acct-status { margin-left: auto; padding: 4px 12px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 900; font-size: 13px; }
.acct-status.ok { background: var(--mint-soft); }
.acct-status.err { background: var(--coral-soft); }
.acct-body { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.acct-body[hidden], .acct-restore[hidden] { display: none; }
.acct-key { display: grid; gap: 8px; min-width: 0; }
.acct-label { font-weight: 900; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.acct-key-row { display: flex; gap: 10px; align-items: center; min-width: 0; flex-wrap: wrap; }
.acct-key-row code { flex: 1 1 220px; }
.acct-key code { flex: 1; min-width: 0; padding: 10px 14px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.acct-plans { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.acct-plans li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper); font-weight: 800; }
.acct-plans li.on { background: var(--mint-soft); }
.acct-plans li small { color: var(--ink-soft); font-weight: 700; font-size: 13.5px; }
.acct-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.acct-restore { display: grid; gap: 10px; }
.acct-restore label { font-weight: 800; color: var(--ink-soft); }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-row input { flex: 1 1 260px; min-width: 0; padding: 11px 16px; border: var(--border) solid var(--ink); border-radius: 999px; background: var(--paper); font: inherit; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.acct-row input:focus { outline: 3px solid var(--sky); outline-offset: 2px; }
.acct-row input[aria-invalid="true"] { border-color: var(--coral); background: var(--coral-soft); }
.acct a { color: inherit; font-weight: 800; }
.btn.is-busy { opacity: 0.6; cursor: progress; pointer-events: none; }
@media (max-width: 760px) { .acct-body { grid-template-columns: minmax(0, 1fr); } .acct { padding: 18px; } }
