/* ==========================================================================
   Vihales — système de design de l'application (site, tableau de bord, admin)
   Propriétés logiques (inline/block) pour la prise en charge native du RTL.
   ========================================================================== */

:root {
  --brand: #5B4BFF;
  --accent: #FF7A59;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --brand-strong: color-mix(in srgb, var(--brand) 85%, #000);
  --bg: #F6F6FA;
  --surface: #FFFFFF;
  --surface-2: #F1F1F7;
  --surface-3: #E9E9F2;
  --border: #E4E4EE;
  --border-strong: #D2D2E0;
  --text: #15151F;
  --text-2: #3D3D52;
  --muted: #6C6C82;
  --success: #12A867;
  --warning: #E48A0B;
  --danger: #E5413A;
  --info: #2E7FF0;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 40, .06);
  --shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 8px 24px -10px rgba(20, 20, 40, .16);
  --shadow-lg: 0 24px 60px -20px rgba(30, 25, 80, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sidebar-w: 248px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E15; --surface: #16161F; --surface-2: #1D1D28; --surface-3: #262633;
    --border: #2A2A38; --border-strong: #3A3A4C; --text: #EDEDF5; --text-2: #C8C8D8; --muted: #9696AE;
    --brand-soft: color-mix(in srgb, var(--brand) 22%, transparent);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E15; --surface: #16161F; --surface-2: #1D1D28; --surface-3: #262633;
  --border: #2A2A38; --border-strong: #3A3A4C; --text: #EDEDF5; --text-2: #C8C8D8; --muted: #9696AE;
  --brand-soft: color-mix(in srgb, var(--brand) 22%, transparent);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Kufi Arabic", var(--font); }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); padding: 10px; border-radius: var(--radius-sm); font-family: var(--mono); font-size: 12px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- utilitaires */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.text-danger { color: var(--danger) !important; }
.nowrap { white-space: nowrap; }
.pre-line { white-space: pre-line; }
.row { display: flex; align-items: center; gap: 12px; }
.row.center { justify-content: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-xs { gap: 6px; } .gap-sm { gap: 10px; } .gap-md { gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack.gap-sm { gap: 10px; }
.mt-sm { margin-top: 10px; } .mt-md { margin-top: 18px; } .mt-lg { margin-top: 28px; } .mb-lg { margin-bottom: 24px; }
.pad-lg { padding: 36px 12px; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (max-width: 1100px) { .hide-md { display: none !important; } }
.skip-link { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { inset-inline-start: 8px; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- boutons */
.btn { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 600; font-size: .93rem; line-height: 1; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background .15s var(--ease), border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-secondary { --btn-bg: var(--surface); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
.btn-light { --btn-bg: #fff; --btn-fg: #15151F; --btn-bd: #fff; }
.btn-light:hover { background: #f1f1f7; }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: .85rem; border-radius: 8px; gap: 6px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 40px; }
.btn-icon.btn-sm { width: 32px; }
.btn.is-done { color: var(--success); }
.is-danger { color: var(--danger) !important; }

/* ---------- formulaires */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-grid-2, .form-grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.field.inline { flex-direction: row; align-items: center; }
label, legend { font-weight: 600; font-size: .88rem; color: var(--text-2); }
input, select, textarea {
  width: 100%; min-height: 40px; padding: 9px 12px; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input:disabled, select:disabled { background: var(--surface-2); color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--brand); flex: none; }
input[type="color"] { width: 44px; height: 36px; padding: 2px; cursor: pointer; }
.input-xs { width: 90px; }
.field-hint { margin: 0; font-size: .82rem; color: var(--muted); }
.field-error { margin: 0; font-size: .83rem; color: var(--danger); font-weight: 500; }
.field-counter { position: absolute; inset-inline-end: 4px; top: 2px; font-size: .75rem; color: var(--muted); }
.field-counter.is-over { color: var(--danger); }
.checkbox { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text); cursor: pointer; }
.checkbox.is-disabled { opacity: .6; cursor: not-allowed; }
.checkbox-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.scroll-box { max-height: 220px; overflow: auto; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin: 0; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 44px; }
.password-field .btn { position: absolute; inset-inline-end: 4px; top: 4px; }
.input-prefix { display: flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.input-prefix span { padding: 9px 10px; background: var(--surface-2); color: var(--muted); font-size: .85rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.input-prefix input { border: 0; border-radius: 0; }
.copy-field { display: flex; gap: 6px; }
.copy-field input { font-family: var(--mono); font-size: .8rem; }
.two-factor-qr { width: 220px; max-width: 100%; margin: 12px 0; }
.two-factor-qr svg { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.form-error { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 500; }

/* ---------- cartes, alertes, badges */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-pad { padding: 22px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.card-body { padding: 18px 22px; }
.card-title { font-size: 1.02rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card-header .card-title { margin: 0; }
.small-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid; font-size: .92rem; }
.alert > .i { margin-top: 2px; }
.alert span { flex: 1; }
.alert-success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 35%, transparent); color: color-mix(in srgb, var(--success) 70%, var(--text)); }
.alert-error { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: color-mix(in srgb, var(--danger) 75%, var(--text)); }
.alert-warning { background: color-mix(in srgb, var(--warning) 11%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 35%, transparent); color: color-mix(in srgb, var(--warning) 60%, var(--text)); }
.alert-info { background: color-mix(in srgb, var(--info) 9%, var(--surface)); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: color-mix(in srgb, var(--info) 60%, var(--text)); }
.alert.small { padding: 9px 12px; font-size: .84rem; }
.alert-close { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; opacity: .7; }
.alert-link { font-weight: 600; white-space: nowrap; color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.alert.is-leaving { opacity: 0; transform: translateY(-6px); transition: .35s; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: color-mix(in srgb, var(--success) 80%, var(--text)); }
.badge-warning { background: color-mix(in srgb, var(--warning) 16%, transparent); color: color-mix(in srgb, var(--warning) 70%, var(--text)); }
.badge-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: color-mix(in srgb, var(--danger) 80%, var(--text)); }
.badge-info { background: color-mix(in srgb, var(--info) 14%, transparent); color: color-mix(in srgb, var(--info) 80%, var(--text)); }
.badge-neutral { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }

/* ---------- tableaux */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: start; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table tfoot td { padding: 8px 16px; color: var(--text-2); }
.table .total-row td { font-weight: 700; font-size: 1rem; color: var(--text); border-top: 1px solid var(--border); }
.table-compact td, .table-compact th { padding: 8px 12px; }
tr.clickable { cursor: pointer; }
.actions-col { text-align: end; width: 1%; }

/* ---------- menus déroulants */
details.dropdown { position: relative; }
details.dropdown > summary { list-style: none; cursor: pointer; }
details.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; max-height: 70vh; overflow-y: auto; inset-inline-start: 0; top: calc(100% + 6px); z-index: 50; min-width: 210px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.dropdown-menu.dropdown-end { inset-inline-start: auto; inset-inline-end: 0; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; background: none;
  font: inherit; font-size: .9rem; color: var(--text); text-align: start; border-radius: 8px; cursor: pointer; text-decoration: none !important; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu .is-active { color: var(--brand); font-weight: 600; }
.dropdown-menu form { margin: 0; }
.dropdown-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.lang-switcher .dropdown-menu { min-width: 150px; }

/* ---------- logo */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none !important; }
.logo-mark { color: var(--brand); display: inline-flex; }

/* ==========================================================================
   Site public
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.site-header-inner { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.site-nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: .93rem; text-decoration: none; }
.site-nav a:hover, .site-nav a.is-active { background: var(--surface-2); color: var(--text); }
.site-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 66px; inset-inline: 0; flex-direction: column; padding: 10px 20px 18px; background: var(--surface); border-bottom: 1px solid var(--border); margin: 0; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
}
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.row { max-width: none; }
.section-head h2, .page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.section-title { font-size: 1.15rem; margin: 26px 0 14px; }
.lead { font-size: 1.08rem; color: var(--text-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .85rem; margin-bottom: 18px; }
.page-hero { padding: 64px 0 24px; }
/* Pages où le contenu doit apparaître tout de suite (tarifs) : titre et section rapprochés du haut. */
.page-hero-tight { padding: 22px 0 0; }
.page-hero-tight h1 { margin-bottom: 6px; }
.page-hero-tight .lead { margin: 0; }
.section.section-tight { padding-top: 14px; }
.section-tight .plan-card { gap: 9px; padding: 18px 20px; }
.section-tight .plan-card h2 { margin: 0; font-size: 1.2rem; }
.section-tight .plan-card > .muted { margin: 0; font-size: .88rem; line-height: 1.4; }
.section-tight .plan-card .check-list { gap: 5px; font-size: .86rem; }
.section-tight .plan-card .check-list .i { width: 15px; height: 15px; margin-top: 1px; }

.hero-site { padding: 64px 0 56px; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%), radial-gradient(800px 400px at -10% 110%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.07; letter-spacing: -.03em; margin-bottom: 18px; }
.hero-copy .lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .i { color: var(--success); }
.hero-visual { position: relative; }
.mock-window { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
[dir="rtl"] .mock-window { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-url { margin-inline-start: 10px; padding: 3px 10px; border-radius: 6px; background: var(--surface); font-size: .75rem; color: var(--muted); font-family: var(--mono); direction: ltr; }
.mock-page { padding: 22px; }
.mock-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.mock-line { height: 10px; border-radius: 6px; background: var(--surface-3); margin-bottom: 10px; }
.mock-line.thick { height: 18px; background: var(--text); opacity: .85; }
.w50 { width: 50%; } .w60 { width: 60%; } .w80 { width: 80%; }
.mock-price { display: flex; gap: 8px; align-items: baseline; margin: 14px 0; }
.mock-price b { font-size: 1.2rem; color: var(--brand); } .mock-price s { color: var(--muted); font-size: .85rem; }
.mock-btn { height: 34px; width: 70%; border-radius: 999px; background: var(--brand); }
.mock-img { border-radius: 14px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.mock-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.mock-cards div { height: 54px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .85rem; animation: float 6s ease-in-out infinite; }
.float-card div { display: flex; flex-direction: column; line-height: 1.25; }
.float-card small { color: var(--muted); }
.float-card > .i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.float-ai { top: -14px; inset-inline-end: -8px; }
.float-order { bottom: -18px; inset-inline-start: -16px; animation-delay: -3s; }
.float-order > .i { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } * { transition: none !important; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 560px; margin: 10px auto 0; } .mock-window { transform: none !important; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .2s var(--ease), box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card p { color: var(--text-2); margin: 0; font-size: .95rem; }
.feature-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.feature-icon .i { width: 22px; height: 22px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 22px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--border); }
.step p { color: var(--text-2); font-size: .93rem; margin: 0; }
.step-num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; flex: none; }
.tpl-gallery.home-tpl-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .tpl-gallery.home-tpl-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tpl-gallery.home-tpl-gallery { grid-template-columns: 1fr; } }
.home-tpl-gallery .tpl-card { transition: transform .18s, box-shadow .18s, border-color .18s; }
.home-tpl-gallery .tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 12px 30px rgba(15, 23, 42, .12)); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.home-tpl-gallery .tpl-shot { display: block; height: 300px; }
.home-tpl-gallery .tpl-card__head h3 { margin: 0; font-size: 1.02rem; }
.home-tpl-gallery .tpl-card__body > .btn { align-self: flex-start; margin-top: auto; }
.home-tpl-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.template-chip-sm { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .86rem; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.template-chip-sm:hover { border-color: var(--tpl); transform: translateY(-1px); }
.template-chip-sm .template-swatch { width: 22px; height: 22px; border-radius: 99px; background: linear-gradient(135deg, var(--tpl) 0 55%, var(--tpl-bg) 55%); border: 1px solid var(--border); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-2.align-start { align-items: start; }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.check-list li { display: flex; gap: 9px; align-items: flex-start; }
.check-list .i { color: var(--success); margin-top: 2px; }
.principle-card { padding: 26px; }
.principle-card .check-list .i { color: var(--danger); }
.principle-card h3 { display: flex; gap: 8px; align-items: center; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px; border-radius: 24px; color: #fff;
  background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .9; }
.feature-rows { display: flex; flex-direction: column; gap: 22px; }
.feature-row { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.feature-row-icon { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.feature-row-icon .i { width: 32px; height: 32px; }
@media (max-width: 600px) { .feature-row { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 18px; }
.timeline li { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.timeline h2 { font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--text-2); }
.note-card { padding: 22px; }
.note-card h3 { display: flex; gap: 8px; align-items: center; }
.examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .examples-grid { grid-template-columns: 1fr; } }
.example-card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.example-body { padding: 18px; }
.example-preview { display: block; aspect-ratio: 4 / 3; background: var(--bg, #fff); padding: 14px; position: relative; border-bottom: 1px solid var(--border); text-decoration: none !important; }
.example-preview span { display: block; }
.example-preview .ex-bar { height: 10px; width: 40%; border-radius: 4px; background: var(--tx); opacity: .7; margin-bottom: 14px; }
.example-preview .ex-hero { width: 52%; }
.example-preview .ex-title { height: 14px; border-radius: 4px; background: var(--tx); margin-bottom: 8px; }
.example-preview .ex-sub { height: 8px; width: 80%; border-radius: 4px; background: var(--tx); opacity: .35; margin-bottom: 12px; }
.example-preview .ex-btn { height: 18px; width: 55%; border-radius: 999px; background: var(--p); }
.example-preview .ex-img { position: absolute; inset-inline-end: 14px; top: 34px; width: 38%; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--p), var(--sf)); opacity: .9; }
.example-preview .ex-row { position: absolute; inset-inline: 14px; bottom: 14px; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.example-preview .ex-row span { height: 26px; border-radius: 6px; background: var(--sf); }
.example-preview.blank { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.plan-card .check-list { flex: 1; font-size: .9rem; }
.plan-card.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-card.is-current { border-color: var(--success); }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-amount { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.plan-amount.small { font-size: 1.05rem; color: var(--muted); }
.pricing-grid.compact .plan-card { padding: 18px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq-item summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .i { transform: rotate(180deg); }
.faq-item p { padding: 0 18px 16px; margin: 0; color: var(--text-2); }
.prose h2 { font-size: 1.2rem; margin-top: 30px; }
.prose p { color: var(--text-2); }
.prose ul { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 18px; padding-inline-start: 22px; color: var(--text-2); }
.prose li { line-height: 1.6; }
.prose li::marker { color: var(--brand); }
.legal-facts { display: grid; gap: 0; margin: 14px 0 0; }
.legal-facts > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.legal-facts dt { min-width: 210px; font-weight: 600; }
.legal-facts dd { margin: 0; color: var(--text-2); }
@media (max-width: 600px) { .legal-facts dt { min-width: 100%; } }
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: var(--surface); padding: 46px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--text-2); }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); }
.error-page { padding-top: 90px; }
.error-code { font-size: 5rem; font-weight: 900; letter-spacing: -.04em; background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 10px; }
.debug { text-align: start; }

/* ==========================================================================
   Authentification
   ========================================================================== */
body.auth { min-height: 100vh; background: radial-gradient(900px 500px at 100% 0, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%), var(--bg); }
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 26px 18px 40px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.auth-card { padding: 30px; box-shadow: var(--shadow); }
.auth-title { font-size: 1.5rem; margin-bottom: 4px; }
.auth-sub { margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .85rem; }

/* ==========================================================================
   Application (tableau de bord / administration)
   ========================================================================== */
.app { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; width: var(--sidebar-w); flex: none; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px;
  background: var(--surface); border-inline-end: 1px solid var(--border); overflow-y: auto; z-index: 60; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .93rem; text-decoration: none; }
.sidebar-nav a:hover { background: var(--surface-2); color: var(--text); }
.sidebar-nav a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sidebar-sep { height: 1px; background: var(--border); margin: 10px 4px; }
.sidebar-admin { color: var(--danger) !important; }
.ws-switcher summary { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: .9rem; }
.ws-switcher .dropdown-menu { inset-inline: 0; }
.ws-avatar { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-size: .85rem; flex: none; }
.ws-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-spacer { flex: 1; }
.sidebar-toggle { display: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; }
.user-menu summary { padding-inline: 6px 10px; }
.content { padding: 26px 28px 60px; max-width: 1320px; width: 100%; }
.sidebar-backdrop { display: none; }
@media (max-width: 960px) {
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; transform: translateX(-105%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  [dir="rtl"] .sidebar { transform: translateX(105%); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(10, 10, 20, .4); z-index: 55; }
  .sidebar-toggle { display: inline-flex; }
  .content { padding: 18px 16px 50px; }
  .topbar { padding: 0 12px; }
}
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-header h1 { margin-bottom: 4px; }
.page-header p { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .87rem; color: var(--muted); margin-bottom: 6px; }
.verify-banner { margin-bottom: 16px; align-items: center; }
.verify-banner form { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.grid-form { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1100px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .grid-2, .grid-3, .grid-4, .grid-main, .grid-form { grid-template-columns: 1fr; } }
.sticky-side { position: sticky; top: 80px; }
@media (max-width: 960px) { .sticky-side { position: static; } }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.stat-label { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-hint { font-size: .8rem; color: var(--muted); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: .92rem; }
.kv span { color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.kv-list { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.kv-list > div { display: flex; justify-content: space-between; gap: 12px; }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; text-align: end; word-break: break-word; }
.legend { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot-brand, .bar-brand { background: var(--brand); }
.dot-accent, .bar-accent { background: var(--accent); }
.bar-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 190px; align-items: end; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bar { width: 40%; min-height: 2px; border-radius: 4px 4px 0 0; transition: height .4s var(--ease); }
.bar-col small { font-size: .7rem; color: var(--muted); }
.quota-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.quota { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.progress { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.progress span.is-danger { background: var(--danger); }
.empty-state { text-align: center; padding: 46px 20px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.empty-icon .i { width: 26px; height: 26px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border); overflow-x: auto; max-width: 100%; }
.tab { padding: 6px 12px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: .87rem; white-space: nowrap; text-decoration: none !important; }
.tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.search { position: relative; min-width: 220px; }
.search .i { position: absolute; inset-inline-start: 11px; top: 11px; color: var(--muted); }
.search input { padding-inline-start: 36px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.pagination a.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.event-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }

/* produits */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); }
.product-card:hover:not(:has(details[open])) { transform: translateY(-2px); }
.product-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb-placeholder { color: var(--muted); }
.thumb-placeholder .i { width: 34px; height: 34px; }
.product-status { position: absolute; top: 10px; inset-inline-start: 10px; }
.product-gallery { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
.product-gallery img { flex: 0 0 auto; width: 52px; height: 52px; object-fit: contain; border-radius: 6px; background: var(--surface-2); }
.product-body { padding: 14px 16px 6px; flex: 1; }
.product-body h3 { margin-bottom: 4px; font-size: 1rem; }
.product-body h3 a { color: var(--text); }
.price-line { margin-bottom: 4px; }
.product-actions { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 14px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--text-2); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { display: none; }
.dropzone .i { width: 26px; height: 26px; color: var(--brand); }
.dropzone.small { padding: 14px; flex-direction: row; }
.uploader.is-busy { opacity: .6; pointer-events: none; }
.upload-errors p { margin: 8px 0 0; color: var(--danger); font-size: .85rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.media-item { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); background: var(--surface-2); cursor: grab; }
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.media-item.is-primary { border-color: var(--brand); }
.media-item.is-dragging { opacity: .4; }
.media-badge { display: none; position: absolute; top: 6px; inset-inline-start: 6px; padding: 2px 7px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; }
.media-item.is-primary .media-badge { display: block; }
.media-tools { position: absolute; bottom: 6px; inset-inline-end: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.media-item:hover .media-tools, .media-item:focus-within .media-tools { opacity: 1; }
.media-tools .btn { background: var(--surface); width: 28px; min-height: 28px; }
.media-drag { position: absolute; top: 6px; inset-inline-end: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.repeater { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.repeater-head, .repeater-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 32px; gap: 8px; align-items: center; }
.repeater-row.cols-2 { grid-template-columns: 2fr 1fr 32px; }
.repeater-head span { font-size: .78rem; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) { .repeater-head { display: none; } .repeater-row { grid-template-columns: 1fr 1fr; } }

/* générateur */
.wizard-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 22px; flex-wrap: wrap; }
.wizard-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 500; font-size: .88rem; }
.wizard-steps li span { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-3); font-weight: 700; font-size: .8rem; }
.wizard-steps li.is-current { color: var(--text); border-color: var(--brand); }
.wizard-steps li.is-current span { background: var(--brand); color: #fff; }
.wizard-steps li.is-done span { background: var(--success); color: #fff; }
.choose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.choose-card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.choose-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
/* Ajouter un produit : trois méthodes, chacune illustrée par une miniature de ce qu'elle fait. */
.add-product { max-width: 1080px; margin-inline: auto; }
.add-head { text-align: center; margin: 4px auto 28px; max-width: 780px; }
.add-heading { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); line-height: 1.2; text-wrap: balance; letter-spacing: -.01em; margin: 0 0 8px; }
.add-head p { margin: 0; }
.add-quota { align-items: center; margin-bottom: 20px; }
.add-quota span { flex: 1; }
.add-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.add-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 14px 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .15s; }
.add-card:hover, .add-card:has(.add-cta:focus-visible) { border-color: var(--brand); }
.add-card:has(.add-cta:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.add-stage { background: var(--surface-2); border-radius: var(--radius); aspect-ratio: 16 / 9.5; display: grid; place-items: center; overflow: hidden; }
.add-art { width: 100%; height: 100%; display: block; }
.add-body { text-align: center; padding-inline: 6px; }
.add-title { font-size: 1.08rem; margin: 0 0 6px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.add-text { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.5; }
.add-cta { border-radius: 999px; }
.add-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
/* Pas de décalage au clic : un bouton transformé deviendrait le repère du ::after, qui ne couvrirait plus la carte. */
.add-cta, .add-cta:active { transform: none; }
.add-cta:focus-visible { outline: none; }
.add-card:hover .add-cta { border-color: var(--brand); color: var(--brand); }
.add-card.is-ai:hover .add-cta { background: var(--brand); border-color: var(--brand); color: #fff; }
.add-help { text-align: center; margin: 28px 0 8px; }
.products-list-title { font-size: 1.15rem; margin: 22px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); }
/* Version compacte, en haut de la page Produits : une rangée basse pour laisser voir le catalogue. */
.add-product.is-compact { max-width: none; container-type: inline-size; }
.is-compact .add-head { text-align: center; margin: 0 auto 14px; max-width: none; }
.is-compact .add-heading { font-size: 1.35rem; margin: 0 0 4px; }
.is-compact .add-head p { font-size: .88rem; }
.is-compact .add-grid { gap: 12px; }
.is-compact .add-card { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px 18px; padding: 14px; align-items: start; border-radius: var(--radius); }
.is-compact .add-stage { grid-row: span 2; aspect-ratio: 16 / 11; align-self: center; }
.is-compact .add-body { text-align: start; padding: 2px 0 0; }
.is-compact .add-title { justify-content: flex-start; font-size: 1.12rem; margin-bottom: 2px; }
.is-compact .add-text { font-size: .93rem; line-height: 1.4; }
.is-compact .add-cta { justify-self: start; width: auto; min-height: 38px; padding: 0 18px; font-size: .9rem; }
.is-compact .add-help { display: none; }
/* Import par lien : sites compatibles */
.import-sites { display: grid; gap: 8px; }
.import-sites-title { margin: 0; font-weight: 600; font-size: .92rem; }
.site-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.site-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: .9rem; color: var(--text-2); }
.site-logo { width: 26px; height: 26px; flex: none; display: block; }
.site-logo--wide { width: 52px; border-radius: 6px; }
.site-logo-generic { display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.site-logo-generic .i { width: 15px; height: 15px; }
/* Jusqu’à 1400 px : illustration au-dessus du texte ; étroite : une carte par ligne, illustration à gauche. */
@container (max-width: 1400px) {
  .is-compact .add-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .is-compact .add-stage { grid-row: auto; aspect-ratio: 16 / 7; }
}
@container (max-width: 640px) {
  .is-compact .add-grid { grid-template-columns: minmax(0, 1fr); }
  .is-compact .add-card { grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto auto; }
  .is-compact .add-stage { grid-row: span 2; aspect-ratio: 4 / 3; }
}
/* Pièces des illustrations (variables du thème : clair et sombre). */
.aa-card { fill: var(--surface); }
.aa-line { fill: var(--border-strong); opacity: .55; }
.aa-soft { fill: var(--brand-soft); }
.aa-brand { fill: var(--brand); }
.aa-on-brand { fill: #fff; opacity: .75; }
.aa-on-brand-fill { fill: #fff; }
.aa-accent { fill: var(--accent); }
.aa-caret { fill: var(--brand); }
.aa-stroke { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.aa-dash { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; opacity: .6; }
.aa-drop { fill: var(--surface); stroke: var(--brand); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .9; }
.aa-move { transition: transform .25s ease; transform-box: fill-box; transform-origin: center; }
.add-card:hover .aa-move { transform: translateY(-4px); }
.add-card.is-ai:hover .aa-move { transform: rotate(18deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .aa-move { transition: none; } .add-card:hover .aa-move, .add-card.is-ai:hover .aa-move { transform: none; } }
@media (max-width: 900px) {
  .add-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 14px; }
}
@media (max-width: 560px) {
  .add-head { margin-bottom: 20px; }
  .add-card { grid-template-columns: 112px 1fr; grid-template-rows: auto auto; gap: 10px 14px; padding: 12px; }
  .add-stage { grid-row: span 2; aspect-ratio: 4 / 3; align-self: start; }
  .add-body { text-align: start; padding: 0; }
  .add-title { justify-content: flex-start; font-size: 1rem; }
  .add-text { font-size: .87rem; }
  .add-cta { justify-self: start; width: auto; }
  .add-quota { flex-wrap: wrap; }
}
/* Formulaire « Photo + description » */
.ai-brief textarea { min-height: 150px; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; }
.ai-note .i { color: var(--accent); flex: none; margin-top: 2px; }
.choose-thumb { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex: none; color: var(--muted); }
.choose-thumb img { width: 100%; height: 100%; object-fit: cover; }
.choose-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.choose-new { justify-content: center; border-style: dashed; color: var(--brand); }
.gen-product { display: flex; gap: 12px; align-items: center; }
.gen-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.gen-product div { display: flex; flex-direction: column; }
.gen-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); padding: 20px; }
.gen-overlay-card { max-width: 420px; text-align: center; padding: 34px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.spinner { width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mode-row { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 10px; opacity: .65; }
.mode-row.is-on { opacity: 1; border-color: color-mix(in srgb, var(--success) 45%, transparent); background: color-mix(in srgb, var(--success) 6%, transparent); }
.mode-row p { margin: 2px 0 0; }

/* pages */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.template-option { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: var(--radius-lg); border: 2px solid var(--border); background: var(--surface); cursor: pointer; }
.template-option input { position: absolute; opacity: 0; }
.template-option .example-preview { border-radius: 10px; border: 1px solid var(--border); }
.template-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.serp-preview { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); }
.serp-url { font-size: .8rem; color: var(--success); }
.serp-title { color: #1a0dab; font-size: 1.05rem; }
[data-theme="dark"] .serp-title { color: #8ab4f8; }
.serp-desc { font-size: .87rem; color: var(--text-2); }

/* commandes */
.history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: .88rem; }
.history li { display: flex; gap: 10px; }
.history-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.note-box { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.note-box p { margin: 4px 0 0; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.connect-form summary { list-style: none; display: inline-flex; }
.connect-form summary::-webkit-details-marker { display: none; }
.connect-guide { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.connect-guide > summary { list-style: none; display: inline-flex; cursor: pointer; }
.connect-guide > summary::-webkit-details-marker { display: none; }
.connect-guide .guide-hide, .connect-guide[open] .guide-show { display: none; }
.connect-guide[open] .guide-hide { display: inline; }
/* Retrait : seuls les champs du moyen choisi sont affichés. */
.payout-form fieldset { border: 0; padding: 0; margin: 0; }
.payout-form fieldset legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.payout-form .pf { display: none; flex-direction: column; gap: 16px; }
.payout-form:has(input[name="method"][value="paypal"]:checked) .pf-paypal,
.payout-form:has(input[name="method"][value="usdt"]:checked) .pf-usdt,
.payout-form:has(input[name="method"][value="bank"]:checked) .pf-bank { display: flex; }
.guide-title { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .84rem; font-weight: 600; color: var(--text); }
.guide-title svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.guide-steps { margin: 10px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 7px; font-size: .82rem; line-height: 1.5; color: var(--text-2); }
.guide-steps li::marker { color: var(--brand); font-weight: 700; }
.guide-note { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: .8rem; color: var(--text-2); }
.guide-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.guide-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: .82rem; font-weight: 600; color: var(--brand); }
.guide-link svg { width: 13px; height: 13px; }
.test-box { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.test-title { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .85rem; font-weight: 700; }
.test-title svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.test-result { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.test-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--text-2); }
.test-message { margin: 2px 0 0; font-size: .82rem; line-height: 1.45; color: var(--text-2); }
.test-meta { margin: 0; font-size: .74rem; color: var(--muted); }
.thread { display: flex; flex-direction: column; gap: 12px; }
.message { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); max-width: 820px; }
.message.is-staff { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); margin-inline-start: auto; }
.message header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.message p { margin: 0; }

/* import produit */
.import-steps { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 9px; font-size: .88rem; line-height: 1.5; color: var(--text-2); }
.import-steps li::marker { color: var(--brand); font-weight: 700; }
.import-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.import-image { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; }
.import-image:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.import-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.import-image .checkbox { font-size: .8rem; }
.import-colors { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }

/* audience */
.analytics-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.analytics-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.analytics-filters select { min-width: 220px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.rank-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(60px, 1.6fr) auto; gap: 10px; align-items: center; font-size: .89rem; }
.rank-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rank-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-track { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rank-track span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.rank-track.is-accent span { background: var(--accent); }
.rank-value { font-size: .8rem; color: var(--muted); white-space: nowrap; text-align: end; font-variant-numeric: tabular-nums; }
.flag { font-size: 1.1rem; line-height: 1; flex: none; }
.share { display: flex; align-items: center; gap: 8px; }
.share .rank-track { flex: 1; }
.bar-chart.is-dense { gap: 2px; height: 210px; }
.bar-chart.is-dense .bar-col small { font-size: .58rem; }
.bar-chart.is-dense .bar { width: 55%; }
.table.analytics-visits td { font-size: .85rem; vertical-align: middle; }
.table.analytics-visits .flag { font-size: 1rem; }
.split-label { display: inline-flex; align-items: center; gap: 6px; }
.period-tabs { margin: 0 0 18px; }
@media (max-width: 560px) { .rank-row { grid-template-columns: minmax(100px, 1fr) auto; } .rank-row .rank-track { display: none; } }

/* bascule de thème : lune en mode clair, soleil en mode sombre */
.theme-icon-light, .theme-icon-dark { display: inline-flex; }
.theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: inline-flex; }
:root[data-theme="dark"] .theme-icon-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-light { display: inline-flex; }
  :root:not([data-theme="light"]) .theme-icon-dark { display: none; }
}

/* ---------- bibliothèque de modèles */
.tpl-filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.tpl-filters__row { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.tpl-filters__row .field { margin: 0; min-width: 190px; }
.tpl-filters__search { flex: 1 1 260px; }
.tpl-filters__search .search { width: 100%; }
.tpl-filters__search .search input { width: 100%; }
.tpl-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 99px; padding: 5px 12px; font-size: .82rem; line-height: 1.4; }
.chip:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--surface); }
.tpl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.tpl-product-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tpl-product-picker label { font-weight: 600; font-size: .86rem; margin: 0; }
.tpl-product-picker select { min-width: 220px; max-width: 340px; }
.tpl-product-picker small { flex-basis: 100%; margin-inline-start: 0; }
.tpl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tpl-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.tpl-shot { position: relative; height: 340px; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.tpl-shot iframe { position: absolute; top: 0; left: 50%; width: 1200px; height: 2400px; border: 0; background: #fff; transform: translateX(-50%) scale(.3); transform-origin: top center; pointer-events: none; }
.tpl-gallery.is-mobile .tpl-shot iframe { width: 390px; height: 1400px; transform: translateX(-50%) scale(.64); }
.tpl-shot__badge { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); color: var(--text-2); font-size: .7rem; backdrop-filter: blur(6px); }
.tpl-shot__badge .i { width: 13px; height: 13px; }
.tpl-card__body { display: flex; flex-direction: column; gap: 9px; padding: 15px 16px 16px; flex: 1; }
.tpl-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tpl-card__head h2 { margin: 0; font-size: 1.02rem; }
.tpl-swatches { display: inline-flex; border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.tpl-swatches i { width: 17px; height: 17px; display: block; }
.tpl-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.badge-soft { background: var(--brand-soft); color: var(--brand-strong); }
.tpl-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 10px; }
.inline-form { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.inline-form select { min-width: 0; }
.tpl-apply { border-top: 1px solid var(--border); padding-top: 9px; }
.tpl-apply summary { cursor: pointer; font-size: .83rem; color: var(--text-2); display: flex; align-items: center; gap: 6px; list-style: none; }
.tpl-apply summary::-webkit-details-marker { display: none; }
.tpl-apply[open] summary { margin-bottom: 8px; }
.tpl-apply form { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.tpl-apply select { flex: 1 1 150px; min-width: 0; }
.btn.is-disabled { opacity: .5; pointer-events: none; }
@media (max-width: 620px) {
  .tpl-gallery { grid-template-columns: 1fr; }
  .tpl-shot { height: 300px; }
  .tpl-filters__row .field { flex: 1 1 100%; }
  .tpl-filters__row > .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---- Démos publiques : mode, beauté, électronique ---- */
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.demo-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.demo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.demo-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.demo-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.demo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.demo-card:hover .demo-card__media img { transform: scale(1.03); }
.demo-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px 18px; }
.demo-card__body strong { display: block; font-size: .98rem; }
.demo-card__body small { display: block; margin-top: 3px; line-height: 1.45; }
.demo-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--primary); }
@media (max-width: 900px) { .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .demo-grid { grid-template-columns: 1fr; } }
/* Versions linguistiques d'une page (réglages) */
.lang-add { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 12px 16px; align-items: end; padding-top: 14px; border-top: 1px solid var(--border); }
.lang-add .field-hint { grid-column: 1 / -1; margin: 0; }
.lang-add.is-busy { opacity: .75; }
td.end { justify-content: flex-end; }
@media (max-width: 620px) { .lang-add { grid-template-columns: 1fr; } }

/* Domaines personnalisés */
.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; }
.domain-add { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(200px, 1fr) auto; gap: 14px 16px; align-items: start; }
.domain-add > .btn { margin-top: 26px; }
.domain-card__host { margin: 0; font-size: 1.15rem; word-break: break-all; }
.domain-steps { list-style: none; counter-reset: dstep; padding: 0; margin: 16px 0 10px; display: grid; gap: 14px; }
.domain-steps > li { counter-increment: dstep; position: relative; padding: 14px 14px 14px 52px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.domain-steps > li::before { content: counter(dstep); position: absolute; inset-inline-start: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; background: var(--surface); border: 1px solid var(--border); }
[dir="rtl"] .domain-steps > li { padding: 14px 52px 14px 14px; }
.domain-steps > li.is-done { border-color: color-mix(in srgb, var(--success, #16a34a) 45%, var(--border)); }
.domain-steps > li.is-done::before { content: "✓"; background: var(--success, #16a34a); border-color: transparent; color: #fff; }
.dns-table { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; align-items: center; margin-top: 10px; font-size: .85rem; }
.dns-table > span { color: var(--muted); }
.dns-table code { padding: 7px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); word-break: break-all; }
.dns-table .copy-field input { font-family: var(--mono); font-size: .8rem; }
.domain-card__actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .domain-add { grid-template-columns: 1fr; } .domain-add > .btn { margin-top: 0; } }

/* WhatsApp et fiabilité client (commandes) */
.btn-whatsapp { --btn-bg: #1FA855; --btn-fg: #fff; --btn-bd: #1FA855; }
.btn-whatsapp:hover { background: #178a45; }
.wa-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wa-log { list-style: none; padding: 10px 0 0; margin: 10px 0 0; border-top: 1px solid var(--border); display: grid; gap: 4px; font-size: .84rem; }
.wa-quick { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-start: 6px; border-radius: 50%; color: #1FA855; background: color-mix(in srgb, #1FA855 12%, transparent); vertical-align: middle; }
.wa-quick:hover { background: #1FA855; color: #fff; }
.wa-quick .i { width: 14px; height: 14px; }
.badge-xs { font-size: .66rem; padding: 1px 7px; vertical-align: middle; margin-inline-start: 4px; }
.risk-card.risk-blocked, .risk-card.risk-high { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.risk-card.risk-medium { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); }
.risk-block summary { cursor: pointer; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.wa-templates textarea { font-size: .86rem; min-height: 96px; }
.wa-vars { display: flex; flex-wrap: wrap; gap: 5px; }
.wa-vars code { padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: .76rem; }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-plain > li { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.list-plain > li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Offres produit (lots, produit complémentaire) */
.offer-rows { display: grid; gap: 8px; }
.offer-row { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { width: 100%; padding-inline-end: 28px; }
.input-suffix span { position: absolute; inset-inline-end: 10px; color: var(--muted); font-size: .85rem; pointer-events: none; }

/* Intégrations */
.integration-form { display: grid; grid-template-columns: 200px 1fr; gap: 12px 16px; align-items: start; }
.integration-form__url { grid-column: 1 / -1; }
.integration-form > .btn { justify-self: start; }
.guide-steps { margin: 12px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; font-size: .9rem; }
.sheets-guide summary { cursor: pointer; list-style: none; }
.copy-field--code { align-items: flex-start; }
.copy-field--code textarea { flex: 1; font-family: var(--mono); font-size: .76rem; line-height: 1.5; white-space: pre; overflow: auto; background: var(--surface-2); }
@media (max-width: 620px) { .integration-form { grid-template-columns: 1fr; } }

/* Actions groupées sur les commandes */
.bulk-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.col-check { width: 34px; }
.col-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.integration-url { display: flex; width: 100%; }
.integration-url input { flex: 1; min-width: 0; font-family: var(--mono); font-size: .8rem; }

/* Centre de confirmation COD */
.confirmation-card.is-due { border-color: color-mix(in srgb, var(--warning) 55%, var(--border)); }
.confirmation-body { display: flex; flex-direction: column; gap: 14px; }
.confirmation-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.confirmation-name { margin: 0 0 2px; font-weight: 700; }
.confirmation-meta p { margin: 0 0 6px; }
.confirmation-form summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; width: fit-content; cursor: pointer; }
.confirmation-form summary::-webkit-details-marker { display: none; }
.confirmation-form[open] summary { margin-bottom: 4px; }
@media (max-width: 760px) { .confirmation-grid { grid-template-columns: 1fr; } }

.checklist-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.checklist-tools input[type="search"] { flex: 1 1 160px; min-width: 0; }
.checkbox-list label[hidden] { display: none; }
.scroll-box#country_list { max-height: 280px; }

/* Page « Exemples » : aperçu réel de chaque modèle, comme sur l'accueil. */
.example-shot { display: block; height: 320px; text-decoration: none !important; }
.example-card { display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.example-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 12px 30px rgba(15, 23, 42, .12)); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.example-card .example-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.example-card .example-body .btn { align-self: flex-start; margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .example-card { transition: none; } .example-card:hover { transform: none; } }

/* Choix du modèle après la génération : la page du vendeur dans chaque modèle. */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.choice-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.choice-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.choice-card .tpl-shot { height: 360px; }
.choice-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.choice-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.choice-card__head h2 { margin: 0; font-size: 1.05rem; }
.choice-card__actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.choice-card__actions form { display: contents; }
.choice-sticky { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; padding: 10px 0; margin-bottom: 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); }

/* Générateur : options facultatives repliées. */
.gen-advanced { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 16px; background: var(--surface); }
.gen-advanced > summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.gen-advanced[open] { padding-bottom: 16px; }
.gen-advanced[open] > summary { margin-bottom: 4px; }
.gen-advanced > .field + .field { margin-top: 14px; }

/* ------------------------------------------------------------ admin : sources des inscriptions */
.src-chart { --src-bar: var(--brand); width: 100%; border-collapse: collapse; font-size: .9rem; }
:root[data-theme="dark"] .src-chart { --src-bar: #7B6DFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .src-chart { --src-bar: #7B6DFF; } }
.src-chart tr + tr > * { border-top: 1px solid var(--border); }
.src-chart th { width: 230px; padding: 9px 16px 9px 0; text-align: start; font-weight: 550; white-space: nowrap; }
.src-chart th .src-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-end: 10px; vertical-align: middle; border-radius: 7px; background: var(--surface-2); }
.src-chart th .src-icon svg { width: 18px; height: 18px; }
.src-bar-cell { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.src-track { flex: 1; min-width: 0; }
.src-bar { display: block; min-width: 3px; height: 12px; border-radius: 0 4px 4px 0; background: var(--src-bar); }
[dir="rtl"] .src-bar { border-radius: 4px 0 0 4px; }
.src-value { flex: none; min-width: 74px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.src-paid { width: 150px; padding-inline-start: 12px; text-align: end; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.src-chart tr.is-empty th, .src-chart tr.is-empty .src-value { color: var(--muted); font-weight: 400; }
.src-chart tr.is-empty .src-bar { background: var(--border-strong); }
.src-chart tbody tr:hover { background: var(--surface-2); }
@media (max-width: 640px) {
  .src-chart, .src-chart tbody { display: block; }
  .src-chart tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 9px 0; }
  .src-chart tr + tr { border-top: 1px solid var(--border); }
  .src-chart tr + tr > * { border-top: 0; }
  .src-chart th { width: auto; padding: 0 0 6px; white-space: normal; }
  .src-bar-cell { padding: 0; }
  .src-paid { display: none; }
}

/* ------------------------------------------------------------ parcours d'accueil (onboarding) */
.ob-wrap { max-width: 1040px; margin: 0 auto; padding: 22px 20px 56px; }
.ob-top { display: grid; grid-template-columns: 1fr minmax(0, 480px) 1fr; align-items: center; gap: 24px; }
.ob-top > .row { justify-self: end; }
.ob-progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ob-progress li { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: var(--muted); }
.ob-progress-bar { height: 4px; border-radius: 4px; background: var(--surface-3); }
.ob-progress li.is-done .ob-progress-bar, .ob-progress li.is-current .ob-progress-bar { background: var(--brand); }
.ob-progress li.is-current { color: var(--text); font-weight: 600; }
.ob-main > .flash-stack { max-width: 640px; margin: 18px auto 0; }
.ob-head { max-width: 600px; margin: 26px auto 24px; text-align: center; }
.ob-head h1 { margin: 0 0 8px; font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.05rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.ob-head p { margin: 0; color: var(--muted); }
.ob-form > .form-error, .ob-form > .field-error { max-width: 640px; margin: 14px auto 0; text-align: center; }
.ob-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.ob-next { min-width: 200px; }
.ob-note { max-width: 640px; margin: 18px auto 0; text-align: center; font-size: .86rem; color: var(--muted); }
.ob-form input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* Étape 1 : sources, tuiles radio plates */
.ob-sources { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ob-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 116px; padding: 18px 10px;
  text-align: center; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.ob-tile:hover { border-color: var(--border-strong); }
.ob-tile:has(input:checked) { border-color: var(--brand); background: linear-gradient(var(--brand-soft), var(--brand-soft)), var(--surface); box-shadow: inset 0 0 0 1px var(--brand); }
.ob-tile:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.ob-tile-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); }
.ob-tile-label { font-size: .9rem; font-weight: 550; line-height: 1.3; }
.ob-other { max-width: 420px; margin: 18px auto 0; }

/* Étape 2 : comparatif d’un seul tenant, un bouton d’action par colonne */
.ob-head--wide { max-width: 760px; }
.ob-compare { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: .85fr 1fr 1fr 1.08fr; grid-template-rows: auto repeat(4, auto) auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.ob-col { grid-row: 1 / span 6; display: grid; grid-template-rows: subgrid; min-width: 0; }
.ob-col--criteria { background: var(--surface-2); border-start-start-radius: 21px; border-end-start-radius: 21px; }
.ob-cell { display: flex; align-items: center; gap: 12px; padding: 15px 22px; border-top: 1px solid var(--border); font-size: .94rem; line-height: 1.4; }
.ob-cell--head { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; padding: 26px 22px 20px; border-top: 0; }
.ob-cell--head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.015em; color: inherit; }
.ob-cell--head p { margin: 0; font-size: .88rem; color: var(--muted); }
.ob-cell--foot { padding: 18px 22px 22px; }
.ob-col--criteria .ob-cell--head { justify-content: center; }
.ob-col--criteria .ob-cell--head strong { font-size: 1.02rem; }
.ob-col--criteria .ob-cell { color: var(--text-2); font-weight: 550; }
.ob-col--criteria .ob-cell .i { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ob-col--criteria .ob-cell--foot { border-top-color: transparent; }
.ob-cell-key { display: none; }
.ob-col--independent .ob-cell, .ob-col--cod .ob-cell { color: var(--text); }
.ob-col--modariche { position: relative; margin: -10px -10px -10px 0; padding: 10px 0; border-radius: 22px; background: #1D1846; color: #F1EEFF;
  box-shadow: 0 30px 60px -30px rgba(29, 24, 70, .75); }
[dir="rtl"] .ob-col--modariche { margin: -10px 0 -10px -10px; }
.ob-col--modariche .ob-cell { border-top-color: rgba(241, 238, 255, .1); font-weight: 550; }
.ob-col--modariche .ob-cell--head { border-top: 0; }
.ob-col--modariche .ob-cell--head p { color: #B9B1F2; }
.ob-col--modariche .ob-cell--foot { border-top-color: transparent; }
.ob-pill { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 11px; border-radius: 999px; background: #D9D2FF; color: #1D1846; font-size: .78rem; font-weight: 650; }
.ob-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ob-tick { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #D9D2FF; color: #1D1846; }
.ob-tick .i { width: 14px; height: 14px; }
.ob-current { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--brand); }
.ob-col--modariche .ob-current { color: #D9D2FF; }
.ob-current .i { width: 14px; height: 14px; }
.ob-cell--foot .btn { justify-content: center; gap: 8px; }
.ob-cta-dark { --btn-bg: #D9D2FF; --btn-fg: #1D1846; --btn-bd: #D9D2FF; font-weight: 650; }
.ob-cta-dark:hover { --btn-bg: #EAE5FF; --btn-bd: #EAE5FF; }
.ob-cta-dark:focus-visible { outline: 2px solid #D9D2FF; outline-offset: 3px; }
:root[data-theme="dark"] .ob-col--modariche { background: #262063; box-shadow: 0 0 0 1px #3A3285, 0 30px 60px -30px rgba(0, 0, 0, .8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ob-col--modariche { background: #262063; box-shadow: 0 0 0 1px #3A3285, 0 30px 60px -30px rgba(0, 0, 0, .8); } }

/* Étape 3 : nom de la boutique */
.ob-store { max-width: 460px; margin: 0 auto; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.ob-store .ob-actions { margin-top: 22px; }
.ob-store-input { position: relative; }
.ob-store-input .i { position: absolute; top: 50%; inset-inline-start: 12px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ob-store-input input { padding-inline-start: 40px; min-height: 46px; font-size: 1rem; }

/* Étape 4 : forfaits */
.ob-plans { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.ob-plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 20px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  transition: border-color .15s var(--ease), background .15s var(--ease); }
.ob-plan.is-featured { border: 2px solid var(--brand); padding: 23px 19px 19px; }
.ob-plan-flag { position: absolute; top: -11px; inset-inline-start: 18px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; }
.ob-plan-name { margin: 0; font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
.ob-plan-desc { margin: 0; min-height: 2.6em; font-size: .87rem; color: var(--muted); line-height: 1.35; }
.ob-plan-price { display: flex; align-items: baseline; gap: 4px; min-height: 2.4rem; margin: 4px 0 8px; }
.ob-plan .btn { justify-content: center; }
.ob-plan-price strong { font-size: 1.85rem; letter-spacing: -.02em; line-height: 1; }
.ob-plan-price span { color: var(--muted); font-size: .9rem; }
.ob-plan-limits { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: .86rem; }
.ob-plan-limits li { display: flex; align-items: center; gap: 8px; }
.ob-plan-limits li span { flex: 1; color: var(--text-2); }
.ob-plan-limits .i { width: 15px; height: 15px; color: var(--success); flex: none; }

@media (max-width: 960px) {
  .ob-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
}
@media (max-width: 760px) {
  .ob-top { grid-template-columns: 1fr auto; row-gap: 16px; }
  .ob-progress { grid-column: 1 / -1; grid-row: 2; }
  .ob-progress-label { display: none; }
  .ob-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ob-compare { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 16px; background: none; border: 0; }
  .ob-col { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; }
  .ob-col--criteria { display: none; }
  .ob-col--independent, .ob-col--cod { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
  .ob-col--modariche, [dir="rtl"] .ob-col--modariche { order: -1; margin: 0; padding: 0; }
  .ob-cell { padding: 13px 18px; }
  .ob-cell--head { padding: 20px 18px 16px; }
  .ob-cell-text { display: flex; flex-direction: column; gap: 2px; }
  .ob-cell-key { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
  .ob-col--modariche .ob-cell-key { color: #B9B1F2; }
}
@media (max-width: 520px) {
  .ob-wrap { padding: 16px 16px 40px; }
  .ob-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ob-tile { min-height: 100px; }
  .ob-plans { grid-template-columns: 1fr; }
  .ob-actions { flex-direction: column-reverse; align-items: stretch; }
  .ob-next { min-width: 0; width: 100%; }
  .ob-store { padding: 20px; }
}

/* ===== Accueil (inspiré d'une vitrine sombre) : thème encre violette, quel que soit le thème choisi ailleurs ===== */
body.site-home {
  --bg: #0B0A14; --surface: #14131F; --surface-2: #1B1A29; --surface-3: #252336;
  --border: #29273A; --border-strong: #3A3850; --text: #EFEEF8; --text-2: #C9C7DA; --muted: #9A97B2;
  --brand-soft: color-mix(in srgb, var(--brand) 24%, transparent);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(0, 0, 0, .6);
  color-scheme: dark;
  background: var(--bg); color: var(--text);
}
body.site-home [data-theme-toggle] { display: none; }
body.site-home .site-header { background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom-color: transparent; }
.section-head.center { margin-inline: auto; text-align: center; }

/* En-tête : mur de modèles en mouvement derrière le titre */
.hx-hero { position: relative; overflow: hidden; padding: 120px 0 150px; isolation: isolate; }
.hx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 18%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, color-mix(in srgb, var(--bg) 35%, transparent)),
              linear-gradient(0deg, var(--bg) 2%, transparent 40%); }
[dir="rtl"] .hx-hero::after { background: linear-gradient(-90deg, var(--bg) 18%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, color-mix(in srgb, var(--bg) 35%, transparent)), linear-gradient(0deg, var(--bg) 2%, transparent 40%); }
.hx-wall { position: absolute; inset: -10% -20%; z-index: -2; display: grid; align-content: center; gap: 22px; transform: rotate(-8deg); opacity: .8; }
.hx-row { display: flex; gap: 22px; width: max-content; animation: hx-marquee 70s linear infinite; }
.hx-row:nth-child(2) { animation-duration: 90s; animation-direction: reverse; margin-inline-start: -140px; }
@keyframes hx-marquee { to { transform: translateX(-50%); } }
.hx-tile { width: 230px; height: 158px; flex: none; border-radius: 16px; background: var(--t-bg); padding: 14px; display: grid; grid-template-columns: 70px 1fr; grid-template-rows: repeat(3, auto) 1fr; gap: 8px 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }
.hx-tile-img { grid-row: 1 / span 4; border-radius: 10px; background: linear-gradient(140deg, var(--t-primary), var(--t-accent)); }
.hx-tile-line { height: 9px; border-radius: 5px; background: color-mix(in srgb, var(--t-primary) 55%, #888); opacity: .7; }
.hx-tile-line.short { width: 60%; }
.hx-tile-btn { align-self: end; height: 24px; width: 80%; border-radius: 12px; background: var(--t-primary); }
.hx-hero-inner { position: relative; }
/* Vidéo d'ambiance (grand écran) : invisible tant qu'elle ne joue pas ; elle remplace alors le mur de modèles. */
.hx-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hx-wall { transition: opacity 1.2s ease; }
.hx-hero.has-video .hx-video { opacity: .6; }
.hx-hero.has-video .hx-wall { opacity: 0; }
@media (max-width: 899px) { .hx-video { display: none; } }
.site-home { --display: "Bricolage Grotesque", var(--font); }
[dir="rtl"] .site-home { --display: var(--font); }
.hx-title { font-family: var(--display); font-optical-sizing: auto; font-size: clamp(2.5rem, 1.2rem + 4.8vw, 5.2rem); line-height: .98; letter-spacing: -.04em; font-weight: 800; max-width: 17ch; margin: 0 0 24px; text-wrap: balance; }
[dir="rtl"] .hx-title { letter-spacing: 0; line-height: 1.2; }
.site-home .section-head h2, .hx-final h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem); line-height: 1.05; text-wrap: balance; }
[dir="rtl"] .site-home .section-head h2, [dir="rtl"] .hx-final h2 { letter-spacing: 0; line-height: 1.3; }
.hx-lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: var(--text-2); max-width: 54ch; margin: 0 0 30px; }

/* Saisie du produit, posée à cheval sur l'en-tête */
.hx-prompt { position: relative; z-index: 2; margin-top: -92px; }
.hx-prompt-card { max-width: 760px; margin-inline: auto; padding: 16px 16px 12px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 10%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--brand) 70%, transparent); }
.hx-prompt-card textarea { width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; resize: none; padding: 6px 4px; min-height: 76px; }
.hx-prompt-card textarea:focus { outline: none; }
.hx-prompt-card:focus-within { border-color: var(--brand); }
.hx-prompt-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: .86rem; }
.hx-chip .i { width: 15px; height: 15px; }
.hx-generate { margin-inline-start: auto; border-radius: 999px; }
.hx-prompt-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 14px 0 0; color: var(--muted); font-size: .88rem; }
.hx-prompt-note .i { color: var(--success); width: 15px; height: 15px; }

/* Démonstration : une page qui se construit, étapes à gauche */
.hx-demo { padding-top: 96px; }
.hx-stage { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1000px; margin-inline: auto; }
.hx-steps { list-style: none; margin: 0; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 14px; }
.hx-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .93rem; animation: hx-step 8s infinite; animation-delay: var(--d, 0s); }
.hx-step-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-strong); flex: none; }
.hx-step-dot .i { width: 13px; height: 13px; opacity: 0; }
.hx-steps li .hx-step-dot { animation: hx-dot 8s infinite; animation-delay: var(--d, 0s); }
.hx-steps li .hx-step-dot .i { animation: hx-check 8s infinite; animation-delay: var(--d, 0s); }
@keyframes hx-step { 0%, 4% { color: var(--muted); } 8%, 90% { color: var(--text); } 100% { color: var(--muted); } }
@keyframes hx-dot { 0%, 4% { background: transparent; border-color: var(--border-strong); } 8%, 90% { background: var(--brand); border-color: var(--brand); } 100% { background: transparent; } }
@keyframes hx-check { 0%, 4% { opacity: 0; } 8%, 90% { opacity: 1; color: #fff; } 100% { opacity: 0; } }
.hx-progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; animation: none !important; }
.hx-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left; animation: hx-bar 8s infinite; }
[dir="rtl"] .hx-progress span { transform-origin: right; }
@keyframes hx-bar { 0% { transform: scaleX(0); } 70%, 92% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.hx-browser { border-radius: 18px; overflow: hidden; background: #fff; color: #1a1a2a; box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--brand) 60%, #000); border: 1px solid var(--border); }
.hx-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F1F0F7; }
.hx-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D6D4E2; }
.hx-browser-bar span { margin-inline-start: 10px; padding: 3px 12px; border-radius: 8px; background: #fff; color: #6b6a80; font-size: .78rem; direction: ltr; }
.hx-page { padding: 22px; display: grid; gap: 18px; }
.hx-page-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: center; }
.hx-page-img { border-radius: 14px; background: linear-gradient(150deg, #EFEBFF, #FFE9E1); display: grid; place-items: center; padding: 14px; aspect-ratio: 1; }
.hx-page-img img { width: 78%; height: auto; }
.hx-page-copy { display: grid; gap: 9px; }
.hx-bar { display: block; height: 10px; border-radius: 5px; background: #E3E1EE; }
.hx-bar.thick { height: 16px; background: #2A2840; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; } .w95 { width: 95%; }
.hx-price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.hx-price b { font-size: 1.35rem; color: #1a1a2a; }
.hx-price s { color: #8c8aa3; font-size: .9rem; }
.hx-buy { display: block; text-align: center; padding: 11px 14px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 650; font-size: .92rem; }
.hx-page-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hx-page-cards span { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: #F6F5FB; }
.hx-page-cards .i { color: var(--brand); width: 16px; height: 16px; flex: none; }
.hx-page-cards i { display: block; height: 8px; flex: 1; border-radius: 4px; background: #E3E1EE; }
.hx-in { animation: hx-in 8s infinite both; animation-delay: var(--d, 0s); }
@keyframes hx-in { 0% { opacity: 0; transform: translateY(10px); } 6%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }

/* Fonctionnalités : grille de cartes avec mini-interfaces */
.hx-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hx-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.hx-card h3 { margin: 10px 0 0; font-size: 1.12rem; }
.hx-card p { margin: 0; color: var(--text-2); font-size: .94rem; line-height: 1.55; }
.hx-wide { grid-column: span 2; }
.hx-mini { margin: 0; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); list-style: none; min-height: 132px; }
.hx-mini-ai { display: grid; gap: 10px; align-content: center; position: relative; }
.hx-mini-ai .hx-bar { background: var(--surface-3); }
.hx-spark { position: absolute; inset-inline-end: 16px; top: 14px; color: var(--accent); }
.hx-mini-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; font-size: .84rem; color: var(--text-2); }
.hx-mini-langs li { display: flex; gap: 8px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-mini-langs b { font-size: .7rem; padding: 2px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--text); }
.hx-mini-orders { display: grid; gap: 8px; align-content: center; font-size: .84rem; }
.hx-mini-orders li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.hx-mini-orders span { color: var(--muted); }
.hx-mini-orders em { font-style: normal; font-size: .74rem; padding: 2px 8px; border-radius: 999px; }
.hx-mini-orders .is-confirmed { background: color-mix(in srgb, var(--info) 22%, transparent); color: #9cc3ff; }
.hx-mini-orders .is-shipped { background: color-mix(in srgb, var(--success) 22%, transparent); color: #7fe0b2; }
.hx-mini-orders .is-pending { background: color-mix(in srgb, var(--warning) 22%, transparent); color: #ffc477; }
.hx-mini-pay { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.hx-mini-pay span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .84rem; }
.hx-mini-pay .i { width: 15px; height: 15px; color: var(--brand); }
.hx-mini-editor { display: grid; gap: 8px; align-content: center; }
.hx-mini-editor span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.hx-mini-editor span.is-lifted { border-color: var(--brand); transform: translateX(10px) rotate(-1.5deg); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--brand) 70%, #000); }
[dir="rtl"] .hx-mini-editor span.is-lifted { transform: translateX(-10px) rotate(1.5deg); }
.hx-mini-editor i { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); }
.hx-mini-trust { display: grid; gap: 10px; align-content: center; color: var(--text-2); font-size: .9rem; }
.hx-mini-trust li { display: flex; gap: 10px; align-items: center; }
.hx-mini-trust .i { width: 16px; height: 16px; color: var(--danger); flex: none; }

/* Trois façons d'ajouter un produit */
.hx-ways-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hx-way h3 { margin: 18px 0 6px; font-size: 1.12rem; }
.hx-way p { margin: 0; color: var(--text-2); font-size: .94rem; max-width: 40ch; }
.hx-ways-art { border-radius: 22px; background: var(--surface-2); aspect-ratio: 16 / 9.5; overflow: hidden; }

/* Pensée pour convertir */
.hx-conv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hx-conv-item h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.hx-conv-item p { margin: 0; color: var(--text-2); }
.hx-conv-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--text); }

/* Appel final */
.hx-final { text-align: center; padding: 64px 24px; border-radius: 28px; background: radial-gradient(600px 260px at 50% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%), var(--surface); border: 1px solid var(--border); }
.hx-final h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.02em; margin: 0 0 10px; }
.hx-final p { color: var(--text-2); margin: 0 0 24px; }

@media (max-width: 900px) {
  .hx-hero { padding: 80px 0 130px; }
  .hx-stage { grid-template-columns: 1fr; }
  .hx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-bento, .hx-ways-grid, .hx-conv-grid { grid-template-columns: 1fr; }
  .hx-wide { grid-column: auto; }
}
@media (max-width: 560px) {
  .hx-page-hero { grid-template-columns: 1fr; }
  .hx-page-cards { grid-template-columns: 1fr; }
  .hx-generate { width: 100%; justify-content: center; }
  .hx-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-row, .hx-in, .hx-steps li, .hx-step-dot, .hx-step-dot .i, .hx-progress span { animation: none !important; }
  .hx-steps li { color: var(--text); }
  .hx-step-dot { background: var(--brand); border-color: var(--brand); }
  .hx-step-dot .i { opacity: 1; color: #fff; }
}

/* ==========================================================================
   Petits écrans, WebView Android et zones sûres (encoches, barre gestuelle)
   Ces règles ne s'activent que sous 960 px : le rendu bureau reste identique.
   ========================================================================== */
body.app-body { -webkit-text-size-adjust: 100%; }
@media (max-width: 960px) {
  body.app-body { overflow-x: hidden; }
  /* La WebView est affichée bord à bord : les barres collantes se décalent des encoches. */
  .topbar {
    padding-top: env(safe-area-inset-top);
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }
  .content {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
    padding-bottom: calc(50px + env(safe-area-inset-bottom));
  }
  .sidebar {
    width: min(var(--sidebar-w), 82vw);
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  /* Cibles tactiles : 44 px de haut au minimum pour les entrées de navigation. */
  .sidebar-nav a, .dropdown-menu a, .dropdown-menu button { min-height: 44px; }
  .btn { min-height: 42px; }
  .btn-sm { min-height: 38px; }
  .btn-icon { min-width: 38px; }
  /* 16 px : champs lisibles au pouce, sans zoom automatique au focus. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { font-size: 16px; }
  /* Les tableaux défilent dans leur cadre au lieu d'élargir la page entière. */
  .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}


.import-progress { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2, var(--surface)); }
.import-progress[hidden] { display: none; }
.import-progress-head { display: flex; align-items: center; gap: 10px; }
.import-progress-spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--brand); animation: import-spin .8s linear infinite; }
.import-progress-track { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.import-progress-bar { width: 2%; height: 100%; border-radius: inherit; background: var(--brand); transition: width .25s linear; }
.import-progress p { margin: 0; }
@keyframes import-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .import-progress-spinner { animation: none; } .import-progress-bar { transition: none; } }
.import-progress { margin-bottom: 20px; }

/* Accueil : questions fréquentes (mêmes composants que la page FAQ). */
.hx-faq h2 { text-align: center; margin-bottom: 28px; }
.hx-faq .faq-list { max-width: 820px; margin-inline: auto; }
.hx-faq-more { text-align: center; margin-top: 22px; font-weight: 600; }

/* Fournisseurs dropshipping : liens vers les sites, avec l'état de la lecture automatique. */
.import-suppliers { display: grid; gap: 8px; margin-top: 4px; }
.supplier-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.supplier a { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.supplier a:hover { border-color: var(--brand); }
.supplier-name { font-weight: 600; font-size: .9rem; }
.supplier-state { margin-inline-start: auto; font-size: .72rem; color: var(--muted); text-align: end; line-height: 1.25; }
.supplier.is-readable .supplier-state { color: var(--success); font-weight: 700; }
