/* davcode — styles du panel, de l'administration et des pages publiques.
   Thème clair beige (par défaut, façon Shopify) ; thème sombre seulement si le compte le choisit
   (Mon compte → Préférences). */

:root {
  --bg: #f4f1ea; --surface: #fff; --surface-2: #f7f5f0; --ink: #1d1d1f; --muted: #6b6760; --faint: #a39e94;
  --line: #e7e2d7; --accent: #0a84ff; --accent-soft: #e8f2ff; --ok: #1f8a4c; --ok-soft: #e4f4ea;
  --warn: #a35f00; --warn-soft: #fbf0dc; --err: #c8102e; --err-soft: #fcebed;
  --side: #ebe6db; --side-active: #fff; --top: #1d1d1f; --top-ink: #f5f5f7; --top-field: #3a3a3c;
  --beige: #efe9dc; --beige-deep: #e3dccb;
  --shadow: 0 1px 0 rgba(60,45,20,.05), 0 1px 3px rgba(60,45,20,.08);
  --shadow-lg: 0 14px 44px rgba(60,45,20,.16);
  --premium: #0a84ff; --intermediaire: #0e9f6e; --business: #8e44ec;
  --radius: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --surface: #1c1c1e; --surface-2: #242426; --ink: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73;
  --line: #2f2f32; --accent-soft: #0a2a4d; --ok: #34c759; --ok-soft: #10331c; --warn: #ffb340; --warn-soft: #3a2a0c;
  --err: #ff453a; --err-soft: #3b1214; --side: #141416; --side-active: #2c2c2e; --top: #000; --top-field: #2c2c2e;
  --shadow: 0 0 0 1px #2a2a2c; --shadow-lg: 0 12px 40px rgba(0,0,0,.6); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", "Helvetica Neue", sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
/* Barres de défilement fines et discrètes (Firefox, puis Chrome / Edge / Safari). */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--ink) 34%, transparent); border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
.side { scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
/* Rien ne doit dépasser de sa colonne : les enfants de grilles et de lignes peuvent rétrécir. */
.grid > *, .row > *, .g-main > * { min-width: 0; }
h1, h2, h3, b, strong { overflow-wrap: anywhere; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { letter-spacing: -.02em; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* ---------- Barre du haut ---------- */
body.panel { background: var(--top); }
.top { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; color: var(--top-ink); position: sticky; top: 0; z-index: 30; background: var(--top); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; width: 228px; color: var(--top-ink); text-decoration: none !important; }
.admin-badge { font-size: 11px; background: var(--business); color: #fff; padding: 2px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 2px; }
.search { flex: 1; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 8px; background: var(--top-field); border-radius: 10px; padding: 7px 12px; color: #a1a1a6; }
.search input { background: none; border: 0; outline: 0; flex: 1; color: var(--top-ink); min-width: 0; }
.search kbd { font-size: 11px; border: 1px solid #555; border-radius: 5px; padding: 1px 5px; font-family: inherit; }
.icon-btn { border: 0; background: none; color: inherit; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; position: relative; }
.top .icon-btn { color: var(--top-ink); }
.top .icon-btn:hover { background: var(--top-field); }
.icon-btn.sm { width: 30px; height: 30px; }
.dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; border: 2px solid var(--top); }
.avatar-btn { border: 0; background: none; padding: 2px; border-radius: 10px; cursor: pointer; }
.avatar { border-radius: 30%; display: inline-grid; place-items: center; color: #fff; font-weight: 600; object-fit: cover; flex: none; }
.avatar.round { border-radius: 50%; }
.menu-btn { display: none !important; }
.btn.ghost-dark { background: var(--top-field); color: var(--top-ink); box-shadow: none; }
.btn.ghost-dark:hover { background: #48484a; }

/* Menus déroulants */
.dropdown { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; border: 1px solid var(--line); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink); border: 0; background: none; cursor: pointer; text-align: left; text-decoration: none; }
.menu a:hover, .menu button:hover, .menu a.on { background: var(--surface-2); }
.menu a small { display: block; color: var(--muted); font-size: 12px; }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head.who { justify-content: flex-start; }
.menu-head small { display: block; color: var(--muted); }
.menu-head .link { width: auto; padding: 0; color: var(--accent); font-size: 12.5px; }
.menu-foot { justify-content: center; color: var(--accent) !important; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px !important; margin-top: 4px; }
.notif-menu { width: 340px; max-height: 70vh; overflow-y: auto; }
.notif { flex-direction: column; align-items: flex-start !important; gap: 2px !important; }
.notif span { color: var(--muted); font-size: 13px; }
.notif small { color: var(--faint); font-size: 12px; }
.notif.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.pad { padding: 10px; }

/* ---------- Mise en page du panel ---------- */
.shell { display: flex; height: calc(100vh - 56px); height: calc(100dvh - 56px); background: var(--bg); border-radius: 14px 14px 0 0; overflow: hidden; }
.side { width: 244px; flex: none; background: var(--side); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.store-switch { margin-bottom: 6px; }
.store { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
.store:hover { background: rgba(0,0,0,.04); }
.store span { flex: 1; min-width: 0; }
.store b, .store small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store b { font-size: 13px; }
.store small { color: var(--muted); font-size: 12px; }
.store-switch .menu { left: 0; right: auto; width: 260px; }
.site-logo { border-radius: 9px; display: inline-grid; place-items: center; font-weight: 700; flex: none; object-fit: cover; }
.chev { width: 16px; height: 16px; color: var(--muted); }
.nav-sec { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 16px 10px 6px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; text-decoration: none !important; }
.nav:hover { background: rgba(0,0,0,.045); }
:root[data-theme="dark"] .nav:hover { background: rgba(255,255,255,.05); }
.nav[aria-current="page"] { background: var(--side-active); box-shadow: var(--shadow); }
.nav .lock { margin-left: auto; color: var(--faint); width: 14px; height: 14px; }
.nav .count { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.plan-card { margin-top: auto; background: var(--surface); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.side nav + .plan-card { margin-top: 20px; }
.plan-card b { font-size: 13px; }
.plan-card p { margin: 4px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 28px 32px 96px; }
.wrap { max-width: 1040px; margin: 0 auto; }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.head h1 { font-size: 23px; margin: 0; }
.head .sub { color: var(--muted); width: 100%; margin-top: -6px; }
.head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }

/* ---------- Cartes, grilles ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.stack > * + * { margin-top: 16px; }
.card h2 { font-size: 15.5px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.card h3 { font-size: 14px; margin: 18px 0 8px; }
.card .desc { color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: 1.6fr 1fr; align-items: start; }
.mt { margin-top: 16px; }
.kpi small { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi strong { display: block; font-size: 25px; letter-spacing: -.02em; margin-top: 6px; }
.kpi .trend { font-size: 12px; color: var(--ok); }
.kpi .trend.down { color: var(--err); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.list > .row { padding: 12px 0; border-top: 1px solid var(--line); }
.list > .row:first-child { border-top: 0; padding-top: 2px; }
.list > .row:last-child { padding-bottom: 2px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Boutons, étiquettes ---------- */
.btn { border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 500; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); text-decoration: none !important; transition: background .15s, opacity .15s; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--ink); color: var(--surface); box-shadow: none; }
.btn.primary:hover { opacity: .88; }
.btn.blue { background: var(--accent); color: #fff; box-shadow: none; }
.btn.blue:hover { opacity: .9; }
.btn.danger { color: var(--err); }
.btn.danger.solid { background: var(--err); color: #fff; box-shadow: none; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 12px 20px; font-size: 16px; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; }
.link.danger { color: var(--err); }
.tag { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.tag-free { background: var(--surface-2); color: var(--muted); }
.tag-premium { background: var(--accent-soft); color: var(--premium); }
.tag-business { background: color-mix(in srgb, var(--business) 14%, transparent); color: var(--business); }
.tag-intermediaire { background: color-mix(in srgb, var(--intermediaire) 14%, transparent); color: var(--intermediaire); }
.pill { font-size: 12px; font-weight: 500; border-radius: 99px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--err-soft); color: var(--err); }
.pill.grey { background: var(--surface-2); color: var(--muted); }
.pill.blue { background: var(--accent-soft); color: var(--accent); }
.badge-code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: 12px; }

/* ---------- Tableaux ---------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label, label.field { font-weight: 500; }
.field small, .hint { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.input, select.input, textarea.input, .form input:not([type]), .form input[type="text"], .form input[type="search"], .form input[type="email"], .form input[type="password"], .form input[type="tel"], .form input[type="url"], .form input[type="number"], .form input[type="date"], .form input[type="datetime-local"], .form input[type="time"], .form select, .form textarea {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; width: 100%; outline: 0; transition: border-color .15s, box-shadow .15s; }
.input:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input:disabled, .form input:disabled, .form textarea:disabled { background: var(--surface-2); color: var(--muted); }
textarea.input, .form textarea { resize: vertical; min-height: 84px; }
.input-group { display: flex; align-items: center; gap: 8px; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.price-input { width: 120px; text-align: right; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.check input { margin-top: 3px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.actions-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* Interrupteur (case à cocher stylée) */
.switch { position: relative; display: inline-block; width: 42px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #d1d1d6; transition: background .2s; pointer-events: none; }
:root[data-theme="dark"] .switch span { background: #48484a; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:disabled + span { opacity: .45; }
.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.setting { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.setting:first-of-type { border-top: 0; }
.setting .grow b { display: block; }
.setting .grow h2 { margin-bottom: 2px; }
.setting .grow > span { display: block; }
/* Une carte qui est elle-même une ligne de réglage garde ses marges de carte. */
.card.setting { padding: 18px 20px; border-top: 0; }
.card > .setting:first-child, .card > form > .setting:first-child { padding-top: 0; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a, .seg button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 13px; text-decoration: none !important; white-space: nowrap; }
.seg a[aria-current], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg .off { opacity: .45; cursor: not-allowed; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; overflow-x: auto; }
.tabs a { padding: 9px 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--ink); }

/* Messages */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; }
.notice.err { background: var(--err-soft); color: var(--err); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.info { background: var(--accent-soft); color: var(--accent); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #1d1d1f; color: #fff; padding: 11px 16px; border-radius: 12px; opacity: 0; transition: .25s; z-index: 60; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--err); }
.toast.info .i { color: #5ac8fa; }
.toast.ok .i { color: #34c759; }

/* Barre d'enregistrement façon Shopify */
.savebar { position: fixed; top: 0; left: 0; right: 0; height: 56px; background: var(--top); color: var(--top-ink); display: flex; align-items: center; gap: 10px; padding: 0 16px; z-index: 50; transform: translateY(-100%); transition: transform .2s; }
.savebar.show { transform: none; }
.savebar span { flex: 1; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.savebar .btn { background: #3a3a3c; color: #fff; box-shadow: none; }
.savebar .btn.blue { background: var(--accent); }

/* Verrouillage par offre */
/* Aperçu flouté et invitation empilés dans la même cellule de grille : le bloc prend la
   hauteur du plus grand des deux, donc l'invitation ne déborde jamais de la carte. */
.locked { display: grid; border-radius: var(--radius); overflow: hidden; height: 100%; }
.locked > .lock-body, .locked > .lock-over { grid-area: 1 / 1; min-width: 0; }
.locked > .lock-body { filter: blur(3px); opacity: .45; pointer-events: none; user-select: none; overflow: hidden; }
.lock-over { position: relative; display: grid; place-items: center; text-align: center; padding: 28px 20px; background: color-mix(in srgb, var(--surface) 55%, transparent); border-radius: var(--radius); }
.upsell, .empty { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 380px; margin: 0 auto; text-align: center; min-width: 0; }
.upsell .btn { white-space: normal; max-width: 100%; }
.upsell-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); }
.upsell b, .empty b { font-size: 15.5px; }
.upsell p, .empty p { margin: 0 0 6px; color: var(--muted); line-height: 1.45; }
.upsell-page { min-height: 380px; display: grid; place-items: center; }
.empty { padding: 36px 0; }
.banner-card { display: flex; align-items: center; gap: 14px; border-radius: var(--radius); padding: 14px 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--business) 12%, var(--surface)), var(--surface)); box-shadow: var(--shadow); flex-wrap: wrap; }

/* Bandeaux d'offre supérieure (includes/promos.php) */
.promos { display: grid; gap: 12px; margin-bottom: 18px; }
.promos.mt { margin-top: 16px; margin-bottom: 0; }
.promo { position: relative; display: flex; align-items: center; gap: 16px; border-radius: var(--radius); padding: 16px 44px 16px 18px; box-shadow: var(--shadow); flex-wrap: wrap;
  background: linear-gradient(120deg, color-mix(in srgb, var(--premium) 12%, var(--surface)), var(--surface) 70%); }
.promo-business { background: linear-gradient(120deg, color-mix(in srgb, var(--business) 14%, var(--surface)), var(--surface) 70%); }
.promo .grow { flex: 1 1 260px; }
.promo b { font-size: 15px; display: block; }
.promo p { margin: 3px 0 0; color: var(--muted); line-height: 1.45; }
.promo-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); flex: none; color: var(--premium); }
.promo-business .promo-ic { color: var(--business); }
.promo-tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--premium); margin-bottom: 2px; }
.promo-business .promo-tag { color: var(--business); }
.promo-intermediaire { background: linear-gradient(120deg, color-mix(in srgb, var(--intermediaire) 13%, var(--surface)), var(--surface) 70%); }
.promo-intermediaire .promo-ic, .promo-intermediaire .promo-tag { color: var(--intermediaire); }
.promo .btn { white-space: normal; }
.promo-x { position: absolute; top: 10px; right: 10px; border: 0; background: none; color: var(--faint); cursor: pointer; padding: 4px; border-radius: 8px; }
.promo-x:hover { background: var(--surface-2); color: var(--ink); }
.promos-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.promos-grid .promo { flex-direction: column; align-items: flex-start; }
.promos-grid .promo .btn { margin-top: auto; }

/* Graphiques */
.chart { width: 100%; height: 190px; display: block; }
.chart rect { fill: var(--accent); }
.chart rect:hover { fill: color-mix(in srgb, var(--accent) 75%, #000); }
.chart-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }

/* Thèmes */
.theme { border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.theme .prev { height: 112px; display: grid; place-items: center; font-size: 36px; }
.theme .meta { padding: 12px 14px; display: flex; align-items: center; gap: 8px; }
.theme.active { outline: 2px solid var(--accent); }

/* Calendrier de la semaine */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.week a { padding: 10px 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none !important; }
.week a[aria-current] { background: var(--ink); color: var(--surface); }
.week small { display: block; opacity: .7; font-size: 12px; }

/* ---------- Mon compte (profil, bannière) ---------- */
.profile-hero { border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 18px; }
.profile-banner { height: 190px; background: linear-gradient(120deg, #5ac8fa, #0a84ff 45%, #8e44ec); background-size: cover; background-position: center 50%; position: relative; }
.profile-banner .btn { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.55); color: #fff; box-shadow: none; backdrop-filter: blur(8px); }
.profile-id { display: flex; align-items: flex-end; gap: 16px; padding: 0 22px 18px; margin-top: -42px; flex-wrap: wrap; }
.profile-id .avatar { border: 4px solid var(--surface); box-shadow: var(--shadow); }
.profile-id h1 { margin: 0; font-size: 24px; }
.profile-id .grow { padding-top: 46px; }
.avatar-wrap { position: relative; }
.avatar-wrap .cam { position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; border: 3px solid var(--surface); cursor: pointer; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink); font-size: 12.5px; }
.drop { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; cursor: pointer; position: relative; }
.drop:hover { border-color: var(--accent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop small { color: var(--muted); }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); padding: 14px; border-radius: 12px; }
.qr { background: #fff; padding: 10px; border-radius: 12px; width: 200px; }

/* ---------- Assistant ---------- */
.assistant-btn { position: fixed; right: 24px; bottom: 24px; border: 0; border-radius: 99px; padding: 11px 16px; background: linear-gradient(135deg, #8e44ec, #0a84ff); color: #fff; font-weight: 600; display: flex; gap: 8px; align-items: center; box-shadow: 0 6px 20px rgba(10,132,255,.35); cursor: pointer; z-index: 35; }
.assistant { position: fixed; right: 24px; bottom: 80px; width: 360px; max-width: calc(100vw - 32px); height: 460px; max-height: 70vh; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 36; display: flex; flex-direction: column; border: 1px solid var(--line); }
.assistant-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.assistant-head b { display: flex; gap: 8px; align-items: center; }
.assistant-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; white-space: pre-line; }
.bubble.bot { background: var(--surface-2); align-self: flex-start; }
.bubble.me { background: var(--accent); color: #fff; align-self: flex-end; }
.bubble a { color: inherit; text-decoration: underline; }
.assistant-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.assistant-form input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); outline: 0; }

/* ---------- Pages publiques ---------- */
body.auth { background: var(--bg); }
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-brand { color: var(--ink); margin-bottom: 22px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 30px 28px; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 26px; margin: 0 0 6px; text-align: center; }
.auth-card .lead { color: var(--muted); text-align: center; margin: 0 0 22px; }
.auth-foot { margin-top: 18px; color: var(--muted); text-align: center; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12.5px; }
.steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.steps i { width: 26px; height: 4px; border-radius: 9px; background: var(--line); }
.steps i.on { background: var(--accent); }
.pay-amount { font-size: 40px; font-weight: 600; letter-spacing: -.03em; text-align: center; margin: 8px 0 4px; }
.pay-lines { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.pay-lines div { display: flex; justify-content: space-between; padding: 4px 0; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 12.5px; margin-top: 14px; }
.pay-overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 90; }
.pay-overlay .box { text-align: center; max-width: 340px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.check-anim { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; animation: pop .35s ease-out; }
.check-anim .i { width: 32px; height: 32px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Accueil davcode */
body.landing { background: var(--bg); font-size: 15px; }
.landing .in { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a6d3b; margin-bottom: 12px; }
.eyebrow.center { display: block; text-align: center; }
.lp-nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(18px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.lp-nav .in { display: flex; align-items: center; gap: 28px; height: 64px; }
.lp-nav .brand { color: var(--ink); width: auto; font-size: 18px; }
.lp-nav nav { display: flex; gap: 26px; }
.lp-nav nav a { color: var(--ink); font-weight: 500; opacity: .75; }
.lp-nav nav a:hover, .lp-nav nav a[aria-current] { opacity: 1; text-decoration: none; }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lp-login { color: var(--ink); font-weight: 500; }
.landing .btn { border-radius: 999px; padding: 10px 18px; }
.landing .btn.lg { padding: 14px 24px; font-size: 16px; }
.btn.light { background: #fff; color: #1d1d1f; box-shadow: none; }
.btn.ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn.ghost-light:hover { background: rgba(255,255,255,.1); }
.lp-hero2 { padding: 72px 0 56px; }
.lp-hero2 .in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lp-hero2 h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -.045em; margin: 0 0 20px; }
.lp-hero2 h1 span { color: #8a6d3b; }
.lp-hero2 p { font-size: 19px; color: var(--muted); line-height: 1.5; margin: 0 0 28px; max-width: 540px; }
.lp-hero2 .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.lp-checks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
/* Maquette interactive du panel (assets/landing.js) */
.mock-wrap { position: relative; padding: 18px 0 0 18px; }
.mock-appicon { position: absolute; top: -6px; left: -4px; z-index: 3; width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(160deg, #2c2c2e, #000); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(-3deg); } }
.mock { position: relative; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(60,45,20,.22), 0 0 0 1px rgba(60,45,20,.06); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .35s ease-out, box-shadow .35s; }
.mock-wrap.live .mock { box-shadow: 0 40px 100px rgba(60,45,20,.28), 0 0 0 1px rgba(60,45,20,.08); }
.mock-top { background: #1d1d1f; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: #48484a; }
.mock-top span:nth-child(1) { background: #ff5f57; } .mock-top span:nth-child(2) { background: #febc2e; } .mock-top span:nth-child(3) { background: #28c840; }
.mock-top em { color: #a1a1a6; font-style: normal; font-size: 11.5px; margin-left: 10px; }
.mock-body { display: flex; height: 330px; }
.mock-side { width: 150px; background: var(--side); display: flex; flex-direction: column; gap: 3px; padding: 12px 8px; }
.mock-side b { width: 30px; height: 30px; border-radius: 9px; background: #f2c14e; color: #5b3a00; font-size: 11px; display: grid; place-items: center; margin: 0 0 10px 6px; }
.mock-side button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 8px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; transition: background .15s, transform .15s; }
.mock-side button .i { width: 15px; height: 15px; }
.mock-side button:hover { background: rgba(0,0,0,.05); }
.mock-side button.on { background: #fff; box-shadow: var(--shadow); }
.mock-side button.pressed, .mock .pressed { transform: scale(.95); }
.mock-main { position: relative; flex: 1; background: var(--bg); padding: 16px; overflow: hidden; transition: background .5s; }
.mock-screen { position: absolute; inset: 16px; display: grid; gap: 10px; align-content: start; opacity: 0; transform: translateX(14px); transition: opacity .35s, transform .35s; pointer-events: none; }
.mock-screen.on { opacity: 1; transform: none; pointer-events: auto; }
.mock-h { font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; transition: color .5s; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis.two { grid-template-columns: 1fr 1fr; }
.mock-kpis div { background: #fff; border-radius: 10px; padding: 9px 10px; box-shadow: var(--shadow); }
.mock-kpis small { display: block; color: var(--muted); font-size: 10.5px; }
.mock-kpis b { display: block; font-size: 17px; letter-spacing: -.02em; }
.mock-kpis em { font-style: normal; font-size: 10px; color: var(--ok); }
.mock-chart { background: #fff; border-radius: 10px; height: 96px; display: flex; align-items: flex-end; gap: 5px; padding: 10px; box-shadow: var(--shadow); }
.mock-chart i { flex: 1; height: var(--h); background: linear-gradient(180deg, #5ac8fa, #0a84ff); border-radius: 3px 3px 0 0; animation: grow .8s cubic-bezier(.2,.8,.2,1) both; }
.mock-chart i:nth-child(n) { animation-delay: calc(var(--i, 0) * 1ms); }
@keyframes grow { from { height: 4%; } }
.mock-row, .mock-table > div { background: #fff; border-radius: 10px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 12px; box-shadow: var(--shadow); transition: background .4s; }
.mock-row b { flex: 1; font-weight: 600; }
.mock-row em { font-style: normal; color: var(--muted); }
.mock-table { display: grid; gap: 6px; }
.mock-table b { font-variant-numeric: tabular-nums; }
.mock-table .editing { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; color: var(--accent); }
.mock-table .flash, .mock-table .new { background: var(--accent-soft); }
.mock-table .new { animation: slidein .4s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }
.mock-savebar { position: absolute; left: -16px; right: -16px; top: -16px; height: 34px; background: #1d1d1f; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 11.5px; transform: translateY(-100%); transition: transform .25s; }
.mock-savebar.show { transform: none; }
.mock-savebar i { font-style: normal; background: var(--accent); padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.mock-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-themes div { border-radius: 12px; height: 92px; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; color: #fff; cursor: pointer; transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow); }
.mock-themes div:first-child { color: #1d1d1f; }
.mock-themes div:hover { transform: translateY(-2px); }
.mock-themes div.on { box-shadow: 0 0 0 3px var(--accent); }
.mock-themes span { font-size: 22px; }
.mock-themes b { font-size: 12px; }
.mock.theme-halloween .mock-main { background: #2a1704; }
.mock.theme-halloween .mock-h { color: #ff9f0a; }
.mock-toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 20px); background: #1d1d1f; color: #fff; font-size: 11.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; opacity: 0; transition: .3s; white-space: nowrap; z-index: 2; }
.mock-toast.show { opacity: 1; transform: translate(-50%, 0); }
.mock-cursor { position: absolute; top: 0; left: 0; width: 22px; height: 22px; z-index: 5; pointer-events: none; opacity: 0; transform: translate(260px, 200px); transition: transform .65s cubic-bezier(.45,.05,.25,1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.mock-wrap.live .mock-cursor { opacity: 1; }
.mock-cursor.click { scale: .8; }
.mock-hint { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 18px 0 0; transition: opacity .3s; }
.mock-wrap.live .mock-hint { opacity: 0; }
.lp-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--beige); display: flex; align-items: center; overflow: hidden; }
.marquee-title { flex: none; padding: 0 22px 0 max(20px, calc((100vw - 1160px) / 2 + 20px)); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a6d3b; background: var(--beige); position: relative; z-index: 1; box-shadow: 18px 0 18px -4px var(--beige); }
.marquee { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.lp-band:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; padding: 18px 22px; color: var(--ink); text-decoration: none !important; }
.marquee-item span { font-weight: 600; opacity: .7; white-space: nowrap; transition: opacity .2s, transform .2s; display: inline-block; }
.marquee-item:hover span { opacity: 1; transform: scale(1.08); }
.marquee-item span::after { content: "•"; margin-left: 44px; opacity: .35; }
.marquee-item img { height: 30px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.marquee-item:hover img { filter: none; opacity: 1; }
.lp-section { max-width: 1160px; margin: 0 auto; padding: 84px 20px; }
.lp-section h2 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.04em; text-align: center; margin: 0 0 14px; line-height: 1.08; }
.lp-section .lead { text-align: center; color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 46px; line-height: 1.5; }
.lp-start { gap: 10px; box-shadow: 0 10px 26px rgba(29,29,31,.22); }
.lp-start .i { transition: transform .2s; }
.lp-start:hover .i { transform: translateX(4px); }
.lp-avatar { border: 0; background: none; padding: 2px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); transition: box-shadow .15s; }
.lp-avatar:hover { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink); }
.lp-actions .menu { min-width: 250px; }
/* Trois fonctions phares côte à côte */
.lp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feat { background: var(--surface); border-radius: 24px; padding: 18px 18px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.lp-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lp-feat-visual { background: var(--beige); border-radius: 18px; height: 230px; display: grid; place-items: center; padding: 18px; margin-bottom: 20px; overflow: hidden; }
.lp-feat-visual .mini-table, .lp-feat-visual .mini-themes, .lp-feat-visual .mini-pay { max-width: 100%; }
.lp-feat-visual .mini-themes div { height: 84px; }
.lp-feat-visual .mini-pay { padding: 16px; }
.lp-feat-visual .mini-pay b { font-size: 30px; }
.lp-feat h3 { font-size: 22px; letter-spacing: -.025em; margin: 0 0 8px; padding: 0 4px; }
.lp-feat .eyebrow, .lp-feat .lp-link { padding: 0 4px; }
.lp-feat p { color: var(--muted); line-height: 1.55; margin: 0 0 14px; padding: 0 4px; flex: 1; }
/* Liens « Comment ça marche » / « Fonctionnalités » au-dessus de la FAQ */
.lp-faq-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 64px; }
.lp-big-link { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.lp-big-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-big-link .upsell-ic { background: var(--beige); flex: none; }
.lp-big-link > span:nth-child(2) { flex: 1; }
.lp-big-link b { display: block; font-size: 17px; }
.lp-big-link small { color: var(--muted); font-size: 13.5px; }
.lp-big-link > .i { transition: transform .2s; }
.lp-big-link:hover > .i { transform: translateX(4px); }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-step { background: var(--surface); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.lp-step span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #1d1d1f; color: #fff; font-weight: 700; margin-bottom: 16px; }
.lp-step h3 { margin: 0 0 8px; font-size: 19px; }
.lp-step p { margin: 0; color: var(--muted); line-height: 1.55; }
.lp-split { padding: 56px 0; }
.lp-split .in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lp-split.reverse .in > div:first-child { order: 2; }
.lp-split h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.035em; margin: 0 0 14px; line-height: 1.08; }
.lp-split p { font-size: 17.5px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.lp-link { font-weight: 600; color: var(--ink); }
.lp-visual { background: var(--beige); border-radius: 28px; padding: 36px; display: grid; place-items: center; min-height: 300px; }
.mini-table { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 380px; overflow: hidden; }
.mini-table div { display: flex; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mini-table div:first-child { border-top: 0; }
.mini-table .edit { background: var(--accent-soft); }
.mini-table .edit b { color: var(--accent); }
.mini-table i { width: 100%; font-style: normal; font-size: 11.5px; color: var(--accent); }
.mini-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 380px; }
.mini-themes div { border-radius: 16px; height: 110px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; color: #fff; box-shadow: var(--shadow); }
.mini-themes span { font-size: 26px; }
.mini-pay { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 24px; width: 100%; max-width: 340px; text-align: center; }
.mini-pay small { color: var(--muted); }
.mini-pay b { display: block; font-size: 40px; letter-spacing: -.03em; margin: 6px 0 2px; }
.mini-pay p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.mini-pay em { display: block; margin-top: 10px; font-style: normal; color: var(--muted); font-size: 12px; }
.lp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-tile { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); color: var(--ink); display: grid; gap: 6px; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.lp-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.lp-tile .upsell-ic { background: var(--beige); margin-bottom: 6px; }
.lp-tile span { color: var(--muted); line-height: 1.5; }
.lp-pricing .plan { background: var(--surface); box-shadow: var(--shadow); }
.lp-faq { max-width: 780px; }
.lp-faq details { background: var(--surface); border-radius: 16px; padding: 18px 22px; margin-top: 10px; box-shadow: var(--shadow); }
.lp-faq summary { font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.lp-cta { background: #1d1d1f; color: #fff; margin-top: 40px; }
.lp-cta .in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 64px 20px; flex-wrap: wrap; }
.lp-cta h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; margin: 0 0 8px; }
.lp-cta p { margin: 0; color: #a1a1a6; font-size: 17px; }
/* Article Fonctionnalités */
.lp-article-hero { padding: 80px 0 40px; }
.lp-article-hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.045em; line-height: 1.02; margin: 0 0 18px; }
.lp-article-hero p { font-size: 20px; color: var(--muted); max-width: 720px; line-height: 1.55; margin: 0; }
.lp-article-hero.center p { margin: 0 auto; }
.lp-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.lp-toc a { display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border-radius: 999px; padding: 8px 14px; color: var(--ink); box-shadow: var(--shadow); font-weight: 500; font-size: 14px; }
.lp-article { max-width: 1160px; margin: 0 auto; padding: 0 20px 40px; }
.lp-chapter { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.lp-chapter-head { position: sticky; top: 90px; align-self: start; }
.lp-chapter-head .upsell-ic { background: var(--surface); box-shadow: var(--shadow); margin-bottom: 16px; }
.lp-chapter-head h2 { font-size: 32px; letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.1; }
.lp-chapter-head p { color: var(--muted); font-size: 16.5px; line-height: 1.6; margin: 0; }
.lp-chapter-items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.lp-item { background: var(--surface); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); }
.lp-item b { font-size: 16px; }
.lp-item p { color: var(--muted); line-height: 1.55; margin: 8px 0 0; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan { min-width: 0; }
.plans .plan h3 { font-size: 23px; }
.plans .plan .price { font-size: 34px; }
.compare th.hl { color: var(--intermediaire); }
.plan { background: var(--bg); border-radius: 26px; padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { outline: 2px solid var(--accent); background: var(--surface); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan h3 { font-size: 26px; margin: 0 0 4px; }
.plan .tagline { color: var(--muted); margin: 0 0 18px; }
.plan .price { font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .note { color: var(--muted); font-size: 13px; margin: 4px 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; font-size: 14.5px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.plan li.inherit { color: var(--muted); }
.plan li.inherit::before { background: none; content: "+"; color: var(--muted); text-align: center; font-weight: 600; }
.plan .current { position: absolute; top: 18px; right: 18px; }
.lp-foot { background: var(--beige); padding: 56px 0 28px; color: var(--muted); font-size: 14px; }
.lp-foot .in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.lp-foot .in > div { display: grid; gap: 8px; align-content: start; }
.lp-foot b { color: var(--ink); margin-bottom: 4px; }
.lp-foot a { color: var(--muted); }
.lp-foot .brand { color: var(--ink); width: auto; }
.lp-foot-brand p { margin: 8px 0 0; line-height: 1.6; }
.lp-foot .lp-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--beige-deep); margin-top: 36px; padding-top: 18px; font-size: 12.5px; }
.compare tr.group td { padding-top: 24px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 0; }
.compare th, .compare td { text-align: center; padding: 12px 8px; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare .y { font-weight: 600; }
.compare .n { color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .g4 { grid-template-columns: 1fr 1fr; }
  .g3, .lp-features { grid-template-columns: 1fr 1fr; }
  .g-main { grid-template-columns: 1fr; }
  .view-site span { display: none; }
}
@media (max-width: 960px) {
  .lp-hero2 .in, .lp-split .in { grid-template-columns: 1fr; gap: 36px; }
  .lp-split.reverse .in > div:first-child { order: 0; }
  .mock { transform: none; }
  .lp-chapter { grid-template-columns: 1fr; gap: 22px; }
  .lp-chapter-head { position: static; }
  .lp-foot .in { grid-template-columns: 1fr 1fr; }
  .lp-tiles, .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-feats { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 820px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 26px; }
}
@media (max-width: 640px) {
  .lp-tiles, .lp-steps, .lp-chapter-items, .lp-foot .in { grid-template-columns: 1fr; }
  .lp-nav nav { display: none; }
  .lp-actions { gap: 10px; }
  .lp-login { font-size: 14px; }
  .lp-actions .btn { padding: 9px 14px; font-size: 14px; }
  .lp-section { padding: 56px 20px; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpis div:last-child { display: none; }
  .mock-side { width: 52px; align-items: center; }
  .mock-side button span { display: none; }
  .mock-side b { margin-left: 0; }
  .lp-faq-links { grid-template-columns: 1fr; }
  .marquee-title { display: none; }
}
@media (max-width: 760px) {
  .brand span, .search kbd { display: none; }
  .brand { width: auto; }
  .menu-btn { display: grid !important; }
  .side { position: fixed; top: 56px; bottom: 0; left: 0; z-index: 25; transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 20px rgba(0,0,0,.15); }
  .side.open { transform: none; }
  .main { padding: 20px 16px 96px; }
  .g2, .g3, .lp-features { grid-template-columns: 1fr; }
  .top { gap: 6px; padding: 0 8px; }
  .shell { border-radius: 0; }
  .search { display: none; }
  .view-site { margin-left: auto; }
  .week { gap: 4px; }
  .week a { padding: 8px 0; font-size: 12px; }
  .notif-menu { position: fixed; left: 8px; right: 8px; width: auto; top: 60px; }
  .lp-nav nav a:not(.btn) { display: none; }
  .profile-id { margin-top: -36px; }
  .assistant { right: 16px; bottom: 76px; }
  .assistant-btn { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Thèmes de boutique (app-store) */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.store-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.store-card.active { outline: 2px solid var(--ok, #1f8a4c); }
.store-meta { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px 0; }
.store-meta .price { text-align: right; white-space: nowrap; }
.store-meta .price b { font-size: 18px; }
.store-actions { display: flex; gap: 8px; padding: 14px 16px 16px; }
.store-actions .btn { flex: 1; justify-content: center; }
.store-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.store-frame { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: calc(100vh - 170px); min-height: 520px; position: sticky; top: 16px; }
.store-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.store-tabs { display: flex; flex-wrap: wrap; margin-bottom: 14px; }
.store-edit [data-pane] { max-height: calc(100vh - 330px); overflow: auto; padding-right: 4px; }
.store-color .row { display: flex; gap: 8px; align-items: center; }
.store-color input[type=color] { width: 44px; height: 40px; padding: 2px; border-radius: 10px; flex: none; }
.store-sections { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.store-sections li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.store-sections li[draggable=true] { cursor: grab; }
.store-sections li.dragging { opacity: .5; }
ul.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 7px; }
ul.checks li { padding-left: 22px; position: relative; }
ul.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--ok, #1f8a4c); font-weight: 700; }
@media (max-width: 1100px) { .store-detail { grid-template-columns: 1fr; } .store-frame { position: static; height: 70vh; } .store-edit [data-pane] { max-height: none; } }
.store-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.store-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.store-card:hover .store-shot img { transform: scale(1.04); }
.store-flag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.store-flag.ok { background: var(--ok, #1f8a4c); }
.store-perk { background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.store-steps { display: grid; gap: 10px; }
.store-step { display: flex; gap: 12px; align-items: center; text-decoration: none !important; color: inherit; padding: 14px; transition: transform .15s; }
.store-step:hover { transform: translateX(3px); }
.store-step .grow { display: flex; flex-direction: column; }
.page-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.lp-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 28px; }
.lp-theme { display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none !important; transition: transform .25s; }
.lp-theme:hover { transform: translateY(-4px); }
.lp-theme-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.lp-theme-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lp-theme-meta { display: flex; flex-direction: column; padding: 14px 16px 4px; }
.lp-theme-cta { padding: 0 16px 16px; font-weight: 600; font-size: 14px; color: var(--accent); }

/* Régions : listes de produits à cocher */
.check-list { display: grid; gap: 2px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--surface); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; padding: 0; }

/* Supervision */
.mon-status { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.mon-svc { display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; align-items: center; background: var(--surface); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.mon-svc i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); grid-row: span 2; }
.mon-svc.ok i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.mon-svc.bad i { background: var(--err); box-shadow: 0 0 0 4px var(--err-soft); animation: mon-pulse 1.6s ease-in-out infinite; }
.mon-svc span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes mon-pulse { 50% { box-shadow: 0 0 0 7px var(--err-soft); } }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 8px 0 6px; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .4s; }
.meter.warn span { background: var(--warn); }
.meter.err span { background: var(--err); }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.err-text { color: var(--err); }
.mt-s { margin-top: 6px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .mon-svc.bad i { animation: none; } }

/* ---------- Logo animé : le D se trace d'un seul geste, puis un reflet le traverse ---------- */
.dc-logo { overflow: visible; --shine: #fff; }
.dc-logo .dc-shine-stop { stop-color: var(--shine); }
.dc-logo .dc-d { stroke-dasharray: 1; stroke-dashoffset: 0; }
.dc-logo .dc-shine { transform: translateX(0); }
.landing .lp-nav .dc-logo .dc-d { animation: dc-draw .9s cubic-bezier(.65, 0, .35, 1) .15s both; }
.landing .lp-nav .dc-logo .dc-shine { animation: dc-shine .9s ease-in-out 1.05s both; }
.landing .brand:hover .dc-logo .dc-shine { animation: dc-shine .8s ease-in-out both; }
:root[data-theme="dark"] .dc-logo { --shine: #5ac8fa; }
@keyframes dc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dc-shine { from { transform: translateX(0); } to { transform: translateX(170px); } }

/* Intro plein écran à la première visite : le grand D se forme, brille, puis s'efface. */
.dc-intro { display: none; }
.dc-intro-on .dc-intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; background: var(--bg); color: var(--ink); cursor: pointer; transition: opacity .45s ease, visibility .45s; }
.dc-intro-on .dc-intro .dc-logo { filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--ink) 18%, transparent)); animation: dc-pop 1.9s cubic-bezier(.2, .8, .2, 1) both; }
.dc-intro-on .dc-intro .dc-d { animation: dc-draw 1s cubic-bezier(.65, 0, .35, 1) .1s both; }
.dc-intro-on .dc-intro .dc-shine { animation: dc-shine 1s ease-in-out 1s both; }
.dc-intro-on .lp-nav .dc-logo .dc-d { animation-delay: 1.75s; }
.dc-intro-on .lp-nav .dc-logo .dc-shine { animation-delay: 2.6s; }
.dc-intro-out .dc-intro { opacity: 0; visibility: hidden; }
@keyframes dc-pop { 0% { transform: scale(.86); opacity: 0; } 18% { opacity: 1; } 70% { transform: scale(1); } 100% { transform: scale(1.04); } }

/* ---------- Site vitrine : version nuit ---------- */
.lp-mode { border: 0; background: none; color: var(--ink); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.lp-mode:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lp-mode .moon { display: none; }
:root[data-theme="dark"] .lp-mode .sun { display: none; }
:root[data-theme="dark"] .lp-mode .moon { display: block; }
:root[data-theme="dark"] { --beige: #17171a; --beige-deep: #222226; }
:root[data-theme="dark"] .lp-hero2 h1 span { color: #e0c287; }
:root[data-theme="dark"] .lp-step span { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] .lp-cta { background: #151517; border-top: 1px solid var(--line); }
:root[data-theme="dark"] .landing .btn.primary { background: #f5f5f7; color: #0b0b0c; }
.theme-anim, .theme-anim * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }
@media (prefers-reduced-motion: reduce) {
  .dc-logo .dc-d, .dc-logo .dc-shine { animation: none !important; }
  .dc-intro { display: none !important; }
}

/* Boutique de thèmes : filtres */
.store-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.store-filters select { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; }
.store-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--muted); }
.store-search input { border: 0; outline: 0; background: none; padding: 9px 0; flex: 1; min-width: 0; color: var(--ink); }
.store-search:focus-within { border-color: var(--accent); }

/* Fiche thème : accès à l'éditeur visuel */
.store-editor { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; color: var(--ink); text-decoration: none !important; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .15s, box-shadow .15s; }
.store-editor:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-editor b { display: block; font-size: 16px; }

/* Soldes et promotions */
.seg-radio { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg-radio:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg-radio input { margin: 0; }
.warn-text { color: var(--warn); }

/* Menu du panel : catégories repliables */
.nav-group > summary { list-style: none; cursor: pointer; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary .chev { margin-left: auto; width: 14px; height: 14px; color: var(--faint); transition: transform .18s; }
.nav-group > summary .count + .chev { margin-left: 6px; }
.nav-group[open] > summary .chev { transform: rotate(90deg); }
.nav-group[data-active] > summary { font-weight: 600; }
.nav-sub { display: grid; gap: 1px; margin: 1px 0 4px 17px; padding-left: 9px; border-left: 1px solid var(--line); }
.nav.sub { padding: 6px 10px; font-size: 13.5px; }
.nav.sub .i { width: 16px; height: 16px; opacity: .8; }
.nav.sub[aria-current] { background: var(--side-active); box-shadow: var(--shadow); }

/* Centre marketing */
.aud-card { display: grid; gap: 4px; color: var(--ink); text-decoration: none !important; position: relative; transition: transform .15s, box-shadow .15s; }
.aud-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.aud-card.on { outline: 2px solid var(--accent); }
.aud-count { position: absolute; top: 14px; right: 16px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.aud-card b { padding-right: 52px; }
.aud-rules { display: grid; gap: 8px; margin-bottom: 10px; }
.aud-rule { display: grid; grid-template-columns: 1.4fr 1fr 110px auto 34px; gap: 8px; align-items: center; }
.aud-rule select, .aud-rule input { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--surface); min-width: 0; }
.aud-live { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 6px 12px; white-space: nowrap; }
.auto-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.auto-card { display: grid; gap: 12px; }
.auto-card.off { opacity: .6; }
.auto-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.auto-flow li { position: relative; padding: 6px 0 6px 22px; font-size: 13.5px; }
.auto-flow li::before { content: ""; position: absolute; left: 5px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.auto-flow li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: -6px; width: 1px; background: var(--line); }
.auto-flow li.c::before { background: var(--warn); } .auto-flow li.w::before { background: var(--faint); } .auto-flow li.a::before { background: var(--ok); }
.auto-flow small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.auto-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.auto-tpl { display: grid; gap: 4px; text-align: left; cursor: pointer; border: 1px solid var(--line); font: inherit; color: var(--ink); }
.auto-tpl:hover { border-color: var(--accent); }
.auto-steps { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 0; }
.auto-steps > li { display: flex; gap: 14px; padding: 14px 0; position: relative; }
.auto-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 46px; bottom: -14px; width: 2px; background: var(--line); }
.auto-step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; flex: none; position: relative; z-index: 1; }
.auto-steps .grow > b { display: block; margin: 5px 0 8px; }
.auto-steps select, .auto-steps input, .auto-steps textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--surface); font: inherit; }
.growth-feed { max-height: 420px; overflow: auto; }
.growth-ev { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.growth-ev:first-child { border-top: 0; }
.growth-links { display: grid; gap: 4px; padding: 10px; }
.growth-links a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.growth-links a:hover { background: var(--surface-2); }
.growth-links span { display: grid; }
.growth-links small { color: var(--muted); }
.ads-row { padding: 8px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .aud-rule { grid-template-columns: 1fr 1fr; } }
/* Tableau de bord : premiers pas, reprise de l'accueil, visite guidée */
.first-steps { margin-bottom: 16px; }
.fs-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.fs-ring b { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 14px; }
.fs-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.fs-list li { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); }
.fs-list li span.grow { display: grid; }
.fs-list li small { color: var(--muted); }
.fs-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.fs-list li.done { opacity: .6; }
.fs-list li.done .fs-ic { background: var(--ok-soft); color: var(--ok); }
.fs-list li.done b { text-decoration: line-through; }
.onb-resume { align-items: center; }
.tour-spot { position: fixed; z-index: 90; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); transition: all .3s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.tour-tip { position: fixed; z-index: 91; width: 320px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-lg); transition: left .3s, top .3s; }
.tour-tip small { color: var(--muted); }
.tour-tip b { display: block; font-size: 16px; margin: 4px 0; }
.tour-tip p { margin: 0 0 12px; color: var(--muted); line-height: 1.45; }
.tour-nav { display: flex; justify-content: space-between; align-items: center; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-tip { transition: none; } }
/* Logo seul (sans le nom) partout : se trace à l'arrivée, brille au survol */
.dc-logo-play .brand .dc-logo .dc-d, .auth-brand .dc-logo .dc-d { animation: dc-draw .9s cubic-bezier(.65, 0, .35, 1) .1s both; }
.dc-logo-play .brand .dc-logo .dc-shine, .auth-brand .dc-logo .dc-shine { animation: dc-shine .9s ease-in-out 1s both; }
.brand:hover .dc-logo .dc-shine, .auth-brand:hover .dc-logo .dc-shine, .im-brand:hover .dc-logo .dc-shine { animation: dc-shine .8s ease-in-out both; }
.top .dc-logo { --shine: #5ac8fa; }
.top .brand { gap: 10px; }
.auth-brand { display: inline-grid; place-items: center; }
/* Admin : création de site (assistant, suivi, simulateur) */
.pv { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.pv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 72px; }
.pv-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.pv-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.pv-steps li.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pv-steps li.on span { background: var(--accent); color: #fff; }
.pv-steps li.done span { background: var(--ok); color: #fff; }
.pv-card { min-height: 380px; display: flex; flex-direction: column; }
.pv-card > section { flex: 1; }
.pv-nav { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.pv-results { display: grid; gap: 6px; }
.pv-user { display: grid; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.pv-user:hover { border-color: var(--accent); }
.pv-user small { color: var(--muted); }
.pv-run { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.pv-run li { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pv-run li small { grid-column: 2; color: var(--muted); }
.pv-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); margin-top: 4px; grid-row: span 2; }
.pv-run li.ok .pv-dot { background: var(--ok); }
.pv-run li.error .pv-dot { background: var(--err); }
.pv-run li.error small { color: var(--err); }
.pv-run li.planned .pv-dot { background: var(--accent); opacity: .5; }
.api-pre { background: var(--surface-2); border-radius: 10px; padding: 12px; max-height: 60vh; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; font-size: 12px; }
@media (max-width: 860px) { .pv { grid-template-columns: 1fr; } .pv-steps { position: static; display: flex; overflow-x: auto; } .pv-steps li { white-space: nowrap; } }
/* Thèmes : administration et projet sur mesure */
.theme-quote { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; }
.theme-html summary { cursor: pointer; padding: 6px 0; }
.theme-html textarea { width: 100%; font-size: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface-2); }
.theme-owner { padding: 12px 0; border-top: 1px solid var(--line); }
.theme-owner:first-of-type { border-top: 0; }
.theme-version { padding: 10px 0; border-top: 1px solid var(--line); }
.project-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.project-steps li { position: relative; padding-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center; }
.project-steps li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 6px; border-radius: 99px; background: var(--surface-2); }
.project-steps li.done::before, .project-steps li.on::before { background: var(--accent); }
.project-steps li.on { color: var(--ink); font-weight: 600; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.project-list li { display: flex; gap: 10px; align-items: flex-start; }
.project-list li .i { color: var(--ok); flex: none; margin-top: 2px; }
@media (max-width: 640px) { .project-steps { grid-template-columns: 1fr; } .project-steps li { text-align: left; } }
/* Pages légales */
.legal-text { max-width: 820px; }
.legal-text h2 { text-align: left; font-size: 22px; letter-spacing: -.02em; margin: 30px 0 8px; }
.legal-text p { color: var(--muted); line-height: 1.7; font-size: 16.5px; margin: 0; }
.lp-legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
.lp-legal-links a { color: inherit; opacity: .8; }