/* WeCall.You : feuille de style unique (écran + impression).
 *
 * Système visuel
 * - Polices : Bricolage Grotesque (titres, numéros) et Geist (texte, interface), hébergées ici.
 *   Les tickets imprimés gardent Arial : leur mise en page est calculée sur ses largeurs.
 * - Couleurs : gris froids + un seul accent, l'orange WeCall.You. Clair ou sombre selon le téléphone.
 * - Arrondis : 10 px pour les commandes (boutons, champs, puces), 18 px pour les conteneurs
 *   (cartes, panneaux, boîtes de dialogue), pastille complète pour les badges. Rien d'autre.
 * - Icônes : Phosphor (assets/icons.js), jamais d'emoji dans l'interface.
 */

/* Lettres accentuées d'Europe centrale et de l'Est (polonais, roumain…) : chargées seulement si la page en contient. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f2f3f5;
  --surface: #fbfbfc;
  --surface-2: #e9ebef;
  --surface-3: #dde0e6;
  --text: #14171c;
  --muted: #586070;
  --line: #d8dce3;
  --brand: #c8461c;
  --brand-hover: #b23c15;
  --brand-ink: #fffaf6;
  --brand-soft: #f7e2d9;
  --brand-text: #a83a15;
  --ok: #17734a;
  --ok-soft: #d9efe3;
  --warn: #b42318;
  --warn-soft: #fbe4e1;
  --ink-cell: #15181d; /* case foncée de l'accueil, foncée dans les deux thèmes */
  --ink-cell-text: #eceef2;
  --r-ctl: 10px;
  --r-box: 18px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(20 23 28 / 0.06);
  --shadow-2: 0 1px 2px rgb(20 23 28 / 0.05), 0 18px 40px -16px rgb(20 23 28 / 0.22);
  --font-ui: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque', var(--font-ui);
  --font: var(--font-ui);
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 600px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --surface: #161a1f;
    --surface-2: #1f242b;
    --surface-3: #2a3038;
    --text: #eceef2;
    --muted: #9aa3b1;
    --line: #2a2f37;
    --brand: #f0683b;
    --brand-hover: #f57c53;
    --brand-ink: #1a0b05;
    --brand-soft: #36190f;
    --brand-text: #ff9068;
    --ok: #4cc38a;
    --ok-soft: #10291d;
    --warn: #ff8a7a;
    --warn-soft: #3a1613;
    --ink-cell: #1c2128;
    --ink-cell-text: #eceef2;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 40px -16px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

/* Largeur des pages : la barre du haut s'aligne toujours sur le contenu. */
body:has(main.wrap-wide) { --page: 1000px; }
body:has(main.wrap-studio) { --page: 1200px; }
body:has(main.wrap-support) { --page: 980px; } /* Soutenir : de la place pour les deux boutons */
.wrap-support .story > *, .wrap-support .card > p, .wrap-support .card > h3 { max-width: 72ch; } /* le texte garde une largeur de lecture */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-ui);
  min-height: 100dvh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body > main { flex: 1 0 auto; }

a { color: var(--brand-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--brand-soft); }

.i { display: inline-block; width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.22em; }
[data-icon] { display: inline-flex; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 16px; }

/* ------------------------------------------------------------ barre du haut et pied de page */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: var(--page); min-height: 68px; margin: 0 auto; padding: 10px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand-dot { color: var(--brand); }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav .btn { min-height: 42px; padding: 8px 14px; }
.topnav .nav-cta { margin-left: 6px; }
/* Langue : drapeau dans l'en-tête, liste des 8 langues en dessous */
.lang-pick { position: relative; }
.flag { display: inline-block; flex: none; width: 21px; height: 14px; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); }
.flag svg { display: block; width: 100%; height: 100%; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 190px; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); box-shadow: var(--shadow-2);
}
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--surface-2); }
.lang-menu a[aria-current='true'] { background: var(--brand-soft); }
/* Le menu s'adapte à la largeur de SA barre (étroite sur les pages de lecture, large sur l'accueil),
   pas à celle de la fenêtre : les liens passent en icônes, « Créer mes tickets » garde son texte le plus longtemps. */
.topbar { container: topbar / inline-size; }
.brand { flex-shrink: 0; }
@container topbar (max-width: 960px) {
  .topnav .btn:not(.nav-cta) .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topnav .btn:not(.nav-cta) { padding: 8px 11px; }
}
@container topbar (max-width: 520px) {
  .topnav .nav-cta .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topnav .nav-cta { padding: 8px 11px; margin-left: 2px; }
}
@container topbar (max-width: 400px) {
  .topnav { gap: 4px; }
  .topnav .btn, .topnav .nav-cta { padding: 8px 9px; }
  .brand { gap: 8px; font-size: 1.08rem; }
}
@container topbar (max-width: 360px) {
  .topnav { gap: 3px; }
  .topnav .btn, .topnav .nav-cta { padding: 8px 7px; }
}
@container topbar (max-width: 320px) {
  .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.footer {
  width: 100%; max-width: var(--page); margin: 48px auto 0; padding: 28px 16px 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer.small { justify-content: center; text-align: center; }

/* ------------------------------------------------------------ texte */

h1, h2, h3 { margin: 0 0 0.5em; text-wrap: balance; }
h1 { font: 700 clamp(1.9rem, 4.4vw, 2.75rem)/1.06 var(--font-display); letter-spacing: -0.035em; }
h2 { font: 650 clamp(1.35rem, 2.4vw, 1.7rem)/1.12 var(--font-display); letter-spacing: -0.025em; }
h3 { font: 600 1.08rem/1.3 var(--font-ui); letter-spacing: -0.01em; }
p { margin: 0 0 0.8em; }
.lead { font-size: 1.1rem; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ mise en page */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  box-shadow: var(--shadow-1);
  padding: 22px;
  margin: 0 0 16px;
}
.stack > * + * { margin-top: 12px; }
.stack > label + * { margin-top: 0; }
#app > * + * { margin-top: 14px; } /* pages produit : un peu d'air entre les blocs */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 auto; }

/* ------------------------------------------------------------ boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 18px;
  border: 1px solid transparent; border-radius: var(--r-ctl);
  background: var(--brand); color: var(--brand-ink);
  font: 600 0.98rem/1.2 var(--font-ui); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.12s var(--ease);
}
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn .i { width: 1.25em; height: 1.25em; }
.btn-block { display: flex; width: 100%; white-space: normal; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover { background: var(--surface-3); }
.btn-big { min-height: 56px; padding: 14px 24px; font-size: 1.05rem; }
.btn-sms, .btn-wa, .btn-mail { background: var(--brand); color: var(--brand-ink); }
.btn.done { opacity: 0.6; }
.btn.done::after { content: '✓'; }

.choice {
  display: flex; width: 100%; justify-content: flex-start; gap: 14px;
  background: var(--surface); color: var(--text); border-color: var(--line);
  min-height: 64px; padding: 10px 14px; font-size: 1.05rem; text-align: left; box-shadow: var(--shadow-1);
}
.choice:hover { background: var(--surface); border-color: var(--brand); }
.choice .icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-ctl); background: var(--brand-soft); color: var(--brand-text); }
.choice .icon .i { width: 22px; height: 22px; }
.linklike { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; font: inherit; padding: 8px 0; }
.linklike:hover { color: var(--text); }

/* ------------------------------------------------------------ formulaires */

label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input[type='file'] { font: 0.93rem var(--font-ui); color: var(--muted); max-width: 100%; }
input[type='file']::file-selector-button { margin-right: 12px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-2); color: var(--text); font: 600 0.9rem var(--font-ui); cursor: pointer; }
input[type='text'], input[type='tel'], input[type='email'], input[type='number'], input[type='password'], input[type='url'], select.select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--text); font: 1.02rem var(--font-ui);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { resize: vertical; line-height: 1.45; }
input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, select.select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { padding: 0; }
details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; list-style: none; display: flex; align-items: center; gap: 10px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s var(--ease); opacity: 0.6; }
details[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details[open] > summary { margin-bottom: 14px; }
.promo-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: var(--r-ctl); padding: 12px 14px; overflow-wrap: anywhere; }
.promo-card .i { color: var(--brand-text); margin-top: 1px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.97rem;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); cursor: pointer; margin: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.check:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.check .i { color: var(--brand-text); }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Capsule : le libellé à gauche (deux lignes au plus), le champ à droite, dans un seul cadre. */
.cap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
  min-height: 50px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cap.num { grid-template-columns: minmax(0, 1fr) minmax(3.6rem, 38%); }
.cap.fit { grid-template-columns: minmax(0, 1fr) auto; } /* le contrôle prend sa largeur (couleur, boutons), le libellé le reste */
.cap.auto { grid-template-columns: auto minmax(0, 1fr); } /* libellé court : le contrôle prend le reste */
.cap.col { grid-template-columns: minmax(0, 1fr); } /* texte long : le libellé en tête, la zone de texte dessous */
.cap.col > :is(label, .label-row) { align-self: start; padding: 10px 13px 2px; }
.cap > .textarea { min-width: 0; margin: 0; border: 0; border-radius: 0 0 calc(var(--r-ctl) - 1px) calc(var(--r-ctl) - 1px); background-color: transparent; box-shadow: none; padding-top: 6px; }
.cap > .textarea:focus-visible { box-shadow: none; }
.cap .act-current { font-size: 0.95rem; }
.cap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cap > label, .cap > .label-row { align-self: center; min-width: 0; margin: 0; padding: 6px 8px 6px 13px; font-size: 0.86rem; line-height: 1.22; overflow-wrap: break-word; hyphens: auto; }
.cap > .label-row { gap: 6px; }
.cap > .label-row label { margin: 0; font-size: inherit; line-height: inherit; }
.cap label .small { display: block; font-weight: 500; font-size: 0.78rem; }
.cap > :is(input, select.select, .cap-ctl) { min-width: 0; min-height: 48px; margin: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0 calc(var(--r-ctl) - 1px) calc(var(--r-ctl) - 1px) 0; background-color: transparent; box-shadow: none; }
.cap > :is(input, select.select):focus-visible { box-shadow: none; }
.cap > input { padding-inline: 12px; }
.cap.num > input { padding-inline: 8px; text-align: right; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.cap.num > input::-webkit-inner-spin-button, .cap.num > input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } /* pas de flèches : la place va au nombre */
.cap > .cap-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; }
.cap > .cap-ctl .color { width: 42px; height: 34px; }
.cap > .cap-ctl .btn { min-width: 0; max-width: 100%; white-space: normal; }
.cap > :is(p, .small) { grid-column: 1 / -1; margin: 0; padding: 0 13px 9px; }
.cap[hidden] { display: none; }
.inline-fields > .cap, .stack > .cap { margin-bottom: 0; }
.cap:has(> :is(input, select):disabled) { background: var(--surface-2); }
/* Faire entrer un ticket dans la file : numéro tapé, puis bouton */
.arrive-form { display: flex; flex-wrap: wrap; gap: 8px; }
.arrive-form .cap { flex: 1 1 210px; margin: 0; }
.arrive-form .btn { flex: none; }

/* ------------------------------------------------------------ messages */

.notice { background: var(--surface-2); border-radius: var(--r-ctl); padding: 12px 14px; }
.banner-warn.stack { flex-direction: column; align-items: stretch; } /* texte puis bouton, l'un sous l'autre */
.banner-warn.stack > p { margin: 0; }
/* Téléphoner au client depuis la liste des tickets en cours */
.tel-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.tel-btn .i { color: var(--ok); }
.row-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
/* Ordinateur ou téléphone : ce qui part d'où (SMS : téléphone seulement) */
.device-note { display: flex; gap: 10px; align-items: flex-start; }
.device-note .i { flex: none; margin-top: 2px; color: var(--brand-text); }
.error { color: var(--warn); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.banner-warn, .banner-ok { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-ctl); padding: 14px 16px; font-weight: 600; }
.banner-warn { background: var(--warn-soft); color: var(--warn); }
.banner-ok { background: var(--ok-soft); color: var(--ok); }
.banner-ok.center, .banner-warn.center { justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 0.84rem; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* ------------------------------------------------------------ puces, segments, onglets */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip {
  min-width: 56px; min-height: 42px; padding: 8px 14px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 0.95rem var(--font-ui); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed='true'] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: var(--r-ctl); padding: 4px; gap: 2px; }
.segmented button { border: 0; background: transparent; color: var(--muted); font: 600 0.92rem var(--font-ui); padding: 8px 13px; border-radius: 6px; cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.segmented.wrap { display: flex; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; margin: 0 -16px 18px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
.tabs .btn { min-height: 40px; padding: 8px 15px; flex: 0 0 auto; }
.tabs .btn[aria-pressed='true'] { background: var(--text); color: var(--bg); }

/* ------------------------------------------------------------ page d'accueil */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center;
  padding: 40px 0 72px;
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.02; max-width: 12ch; margin-bottom: 20px; }
.hero .lede { font-size: 1.18rem; line-height: 1.5; color: var(--muted); max-width: 40ch; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; height: 460px; }
.hv-ticket { position: absolute; left: 0; top: 36px; width: 80%; transform: rotate(-6deg); transform-origin: 30% 50%; }
.hv-ticket .sheet { transform-origin: top left; border-radius: 6px; box-shadow: var(--shadow-2); }
/* Téléphone du client (démonstration) : « C'est à vous ! » avec le message de l'activité choisie. */
.hv-phone {
  position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 9 / 17; container-type: inline-size; overflow: hidden;
  /* Marges en px : les unités cqw du téléphone ne valent que pour son contenu. */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px 12px;
  border: 6px solid #15181d; border-radius: 30px; box-shadow: var(--shadow-2); background: #17734a; color: #f6fbf8; text-align: center;
}
.hp-merchant { font-size: clamp(10px, 6cqw, 13px); font-weight: 600; opacity: 0.85; }
.hp-title { margin: 0; font: 750 clamp(16px, 12cqw, 26px)/1.05 var(--font-display); letter-spacing: -0.03em; color: inherit; }
.hp-number { font: 800 clamp(34px, 30cqw, 64px)/0.95 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
@container (max-width: 190px) { .hp-merchant { display: none; } }
.hp-msg {
  margin: 4px 0 0; padding: 5cqw 6cqw; border-radius: 14px; background: rgb(255 255 255 / 0.16); font-size: clamp(11px, 6.2cqw, 14px); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .hv-ticket { animation: hv-ticket 0.9s var(--ease) both 0.1s; }
  .hv-phone { animation: hv-phone 0.9s var(--ease) both 0.35s; }
  @keyframes hv-ticket { from { opacity: 0; transform: translateY(24px) rotate(-2deg); } }
  @keyframes hv-phone { from { opacity: 0; transform: translateY(40px); } }
}

/* Activités de l'accueil : un appui adapte les démonstrations ; sinon elles changent seules, cycle après cycle. */
.acts { border-block: 1px solid var(--line); padding: 18px 0 20px; }
.acts-title { margin: 0 0 12px; text-align: center; font-weight: 600; color: var(--muted); }
.acts-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.act-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 0.92rem var(--font-ui); cursor: pointer;
}
.act-chip .i { width: 18px; height: 18px; color: var(--brand-text); }
.act-chip:hover { border-color: var(--muted); }
.act-chip[aria-pressed='true'] { border-color: var(--brand); background: var(--brand-soft); }
/* Défilement automatique : la pastille choisie se remplit pendant le cycle de démonstration. */
.acts-list.auto .act-chip[aria-pressed='true']::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--brand); transform-origin: left;
  animation: acts-progress var(--cycle, 13s) linear both;
}
@keyframes acts-progress { from { transform: scaleX(0); } }
@media (max-width: 700px) {
  .acts-list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .act-chip { flex: none; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .hv-phone.swap > * { animation: hp-swap 0.5s var(--ease); }
  @keyframes hp-swap { from { opacity: 0; transform: translateY(6px); } }
}

.how { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; padding: 96px 0 72px; }
.how-aside { position: sticky; top: 32px; align-self: start; }
.how-aside h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.how-aside p { color: var(--muted); max-width: 34ch; }
.how-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.how-step { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px; border-radius: var(--r-box); background: var(--surface); border: 1px solid var(--line); }
.how-step figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.how-step figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.how-step h3 { font: 650 1.55rem/1.1 var(--font-display); letter-spacing: -0.025em; margin-bottom: 8px; }
.how-step p { color: var(--muted); margin: 0; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 24px 0 96px; }
.bento-cell { position: relative; overflow: hidden; border-radius: var(--r-box); padding: 28px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.bento-cell h3 { font: 650 1.5rem/1.1 var(--font-display); letter-spacing: -0.025em; margin-bottom: 10px; }
.bento-cell p { color: var(--muted); max-width: 42ch; }
.b-privacy { grid-column: span 4; grid-row: span 2; background: var(--ink-cell); color: var(--ink-cell-text); border-color: transparent; }
.b-privacy p { color: color-mix(in srgb, var(--ink-cell-text) 72%, transparent); }
.b-free { grid-column: span 2; background: var(--brand-soft); border-color: transparent; }
.b-free p { color: var(--text); opacity: 0.8; }
.b-free .big { font: 700 4.4rem/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--brand-text); margin-top: auto; padding-top: 18px; }
.b-paper { grid-column: span 2; }
.b-paper .big { font: 800 4.4rem/0.9 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; margin-top: auto; padding-top: 18px; }
.b-queue { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }

/* Écran public animé (accueil) : une télévision 16/9 et, devant, le téléphone d'un client. Tailles en cqw : tout suit la largeur. */
.lq { position: relative; margin: 0; padding-bottom: 48px; container-type: inline-size; }
.lq-tv {
  aspect-ratio: 16 / 9; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 3.4cqw 4.2cqw;
  border-radius: 14px; background: #0e1013; color: #f4f5f7; border: 1px solid rgb(255 255 255 / 0.08); box-shadow: var(--shadow-2); overflow: hidden;
}
.lq-head { display: flex; justify-content: space-between; align-items: center; font-size: 2.6cqw; }
.lq-name { font: 700 1em/1.1 var(--font-display); letter-spacing: -0.02em; }
.lq-clock { opacity: 0.7; font-variant-numeric: tabular-nums; }
.lq-main { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lq-label { font-size: 2.3cqw; opacity: 0.7; }
.lq-number { font: 800 17cqw/0.95 var(--font-display); letter-spacing: -0.05em; color: #ff8a5c; font-variant-numeric: tabular-nums; }
.lq-prev { display: flex; gap: 3.4cqw; margin-top: 2.2cqw; font: 700 3.8cqw/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; opacity: 0.7; }
.lq-foot { font-size: 2cqw; opacity: 0.75; }
.lq-phone {
  position: absolute; right: 5%; bottom: 0; width: min(46%, 260px); display: grid; gap: 4px; padding: 14px 16px 16px;
  border-radius: 20px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.lq-ticket { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.lq-ticket b { color: var(--text); font-variant-numeric: tabular-nums; }
.lq-ticket span { overflow: hidden; text-overflow: ellipsis; }
.lq-place { font: 650 1.12rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.lq-wait { font-size: 0.85rem; color: var(--muted); min-height: 1.3em; }
.lq-phone.is-ready { background: #17734a; color: #f6fbf8; border-color: transparent; }
.lq-phone.is-ready :is(.lq-ticket, .lq-ticket b, .lq-wait) { color: #f6fbf8; }
.lq .lq-tv, .lq .lq-phone { transition: opacity 0.35s; }
.lq.fade .lq-tv, .lq.fade .lq-phone { opacity: 0; }
@container (max-width: 460px) {
  .lq-tv { margin-bottom: 30px; } /* le téléphone ne cache que le bas de l'écran, jamais les numéros */
  .lq-phone { right: 3%; width: 64%; padding: 12px 14px 14px; }
  .lq-place { font-size: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .lq-tv.in { animation: sflash 0.9s ease-out; }
  .lq-number.in { animation: lq-in 0.7s var(--ease); }
  .lq-prev.in b:first-child { animation: lq-slide 0.7s var(--ease); }
  .lq-phone.in { animation: lq-pop 0.5s var(--ease); }
  .lq-phone.is-ready { animation: lq-buzz 0.5s ease-in-out 2; }
  @keyframes lq-in { from { opacity: 0; transform: translateY(16%) scale(0.92); } }
  @keyframes lq-slide { from { opacity: 0; transform: translateX(-70%); } }
  @keyframes lq-pop { 40% { transform: scale(1.04); } }
  @keyframes lq-buzz { 20% { transform: rotate(-2deg); } 40% { transform: rotate(2deg); } 60% { transform: rotate(-1.5deg); } 80% { transform: rotate(1.5deg); } }
}
.cipher { margin-top: auto; display: grid; gap: 14px; padding-top: 24px; }
.cipher div { display: grid; gap: 6px; }
.cipher span { font-size: 0.82rem; color: color-mix(in srgb, var(--ink-cell-text) 60%, transparent); }
.cipher code { font: 500 0.92rem/1.5 var(--mono); padding: 12px 14px; border-radius: var(--r-ctl); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.08); overflow-wrap: anywhere; }
.cipher .plain { color: var(--ink-cell-text); font-size: 1.05rem; }
.cipher .sealed { color: #ff9a76; max-height: 7.5em; overflow: hidden; }

/* Moyens de prévenir : 4 cartes (gratuit, depuis quel appareil) et une remarque selon l'appareil */
.channels { padding: 24px 0 72px; }
.ch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ch-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); }
.ch-head { display: flex; align-items: center; gap: 10px; }
.ch-head h3 { margin: 0; font: 650 1.15rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.ch-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: var(--r-ctl); background: var(--brand-soft); color: var(--brand-text); }
.ch-icon .i { width: 20px; height: 20px; }
.ch-free { margin-left: auto; background: var(--ok-soft); color: var(--ok); }
.ch-card > p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.ch-card .ch-where { display: flex; gap: 6px; align-items: flex-start; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); font-size: 0.86rem; font-weight: 600; }
.ch-where .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--brand-text); }
@media (max-width: 1000px) { .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ch-grid { grid-template-columns: 1fr; } .channels { padding-bottom: 48px; } }

/* Accueil : aujourd’hui un outil, demain une association, et après */
.vision-band { display: grid; gap: 16px; justify-items: start; margin: 8px 0 40px; padding: 28px; border-radius: var(--r-box); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); background: linear-gradient(135deg, var(--brand-soft), var(--surface) 70%); }
.vision-band h2 { margin: 0; max-width: 32ch; font: 750 clamp(1.4rem, 3vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.vision-band .eyebrow { margin: 0; }
.vision-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.vision-steps li { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); }
.vision-steps strong { font: 700 1.05rem/1.2 var(--font-display); }
.vision-steps span:last-child { color: var(--muted); font-size: 0.95rem; }
.vision-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); }
@media (max-width: 720px) { .vision-steps { grid-template-columns: 1fr; } .vision-band { padding: 20px; } }
.closing { text-align: center; padding: 72px 24px; border-radius: var(--r-box); background: var(--surface-2); margin-bottom: 24px; }
.closing h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.closing p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.closing .row { justify-content: center; }

.section-head { max-width: 60ch; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 12px 0 48px; }
  .hero-visual { height: 380px; }
  .hv-phone { width: 46%; }
  .how { grid-template-columns: 1fr; gap: 24px; padding: 64px 0 48px; }
  .how-aside { position: static; }
  .bento { grid-template-columns: 1fr; padding-bottom: 64px; }
  .b-privacy, .b-free, .b-paper, .b-queue { grid-column: auto; grid-row: auto; }
  .b-queue { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-visual { height: 300px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .how-step { grid-template-columns: 1fr; }
  .closing { padding: 48px 18px; }
}

.thanks { padding: 40px 0 8px; }
.thanks-mark { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); margin: 0 auto 22px; }
.thanks-mark .i { width: 44px; height: 44px; }
.thanks .row { justify-content: center; }

/* Comparatif Gratuit / Pro (accueil et page Pro) */
.offers { padding: 8px 0 80px; }
.offers-cta { margin-top: 20px; }
.compare-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); padding: 6px 10px 14px; overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.97rem; }
.compare th, .compare td { padding: 11px 12px; text-align: left; vertical-align: middle; }
.compare thead th, .compare thead td { vertical-align: bottom; padding: 22px 12px 18px; }
.compare .plan, .compare td.v { width: 24%; text-align: center; }
.compare .plan-name { display: inline-flex; align-items: center; gap: 6px; font: 650 1.1rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.compare .plan-price { font: 750 2.3rem/1 var(--font-display); letter-spacing: -0.04em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.compare .plan-sub { font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.compare .is-pro { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.compare thead .is-pro { border-radius: 14px 14px 0 0; }
.compare thead .is-pro .plan-name, .compare thead .is-pro .plan-price { color: var(--brand-text); }
.compare tbody:last-child tr:last-child .is-pro { border-radius: 0 0 14px 14px; }
.compare tr.group th { padding: 22px 12px 8px; font: 600 0.85rem var(--font-ui); color: var(--muted); }
.compare tbody + tbody tr.group > * { border-top: 1px solid var(--line); }
.compare tbody th[scope='row'] { font-weight: 500; }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--muted); opacity: 0.55; }
.compare td.v .i { width: 1.3em; height: 1.3em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 560px) {
  .compare { font-size: 0.88rem; }
  .compare th, .compare td { padding: 9px 6px; }
  .compare .plan, .compare td.v { width: 27%; }
  .compare .plan-price { font-size: 1.3rem; white-space: nowrap; }
}

/* Options Pro du générateur : visibles par tous, grisées sans Pro */
.pro-badge { margin-left: 2px; padding: 2px 9px; font-size: 0.78rem; background: var(--brand-soft); color: var(--brand-text); }
.pro-badge .i { width: 1em; height: 1em; }
.pro-tools.locked .check, .pro-tools.locked .theme-preview, .pro-tools.locked .cap { opacity: 0.5; }
.pro-tools.locked .check { cursor: not-allowed; }
/* Logo et couleurs du studio : visibles par tous, grisés sans Pro (le lien vers l'offre reste actif). */
.pro-only { border: 0; margin: 0; padding: 0; min-width: 0; }
.pro-only:disabled > :not(.pro-lock) { opacity: 0.5; }
.pro-only:disabled :is(input, button, label) { cursor: not-allowed; }
.pro-lock { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--brand-soft); color: var(--text); }
.pro-lock .i { color: var(--brand-text); margin-top: 2px; }
select option:disabled { color: var(--muted); }

/* Mes lots : en-tête du lot ouvert et cartes pour passer d'un lot à l'autre */
.lot-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.lot-head h1 { margin: 0; }
.lot-meta { margin: 0 0 4px; }
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 18px 0; }
.lot-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 140px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); color: var(--text);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-1);
  transition: border-color 0.15s ease, transform 0.12s var(--ease);
}
.lot-card:hover { border-color: var(--brand); text-decoration: none; }
.lot-card:active { transform: translateY(1px); }
.lot-card.current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.lot-card.locked { opacity: 0.55; cursor: not-allowed; }
.lot-card.locked:hover { border-color: var(--line); }
.lot-card .lot-name { font: 650 1.3rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.lot-card .lot-info { font-size: 0.9rem; color: var(--muted); }
.lot-card .pills { margin-top: auto; padding-top: 6px; }
.lot-card.add { align-items: center; justify-content: center; text-align: center; border-style: dashed; background: transparent; box-shadow: none; color: var(--muted); }
.lot-card.add:hover { color: var(--text); }
.lot-card.add .i { width: 28px; height: 28px; }

/* Activité d'un lot : « Activité : Snack [Changer] », et la fenêtre de choix (blocs à gauche, message type à droite) */
.act-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--surface-2); }
.act-current { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.act-current .i { width: 22px; height: 22px; color: var(--brand-text); }
.msg-example { margin: 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r-ctl); font-size: 0.92rem; }
dialog.act-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 22px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); }
dialog.act-dialog[open] { display: flex; flex-direction: column; gap: 12px; }
dialog.act-dialog::backdrop { background: rgb(14 16 19 / 0.55); }
.act-dialog > p { margin: 0; }
.act-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.act-dialog-head h2 { margin: 0; }
.act-dialog-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; min-height: 0; overflow: auto; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.act-block {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 96px; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: 650 0.95rem/1.25 var(--font-display); text-align: left; cursor: pointer;
}
.act-block .i { box-sizing: content-box; width: 24px; height: 24px; padding: 7px; border-radius: var(--r-ctl); background: var(--brand-soft); color: var(--brand-text); }
.act-block:hover { border-color: var(--muted); }
.act-block[aria-pressed='true'] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.act-preview { position: sticky; top: 0; align-self: start; display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.act-preview > p { margin: 0; }
.act-phone { display: grid; gap: 8px; padding: 16px; border-radius: 20px; background: #17734a; color: #f6fbf8; }
.act-phone-head { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; opacity: 0.9; }
.act-phone strong { font: 750 1.3rem/1.1 var(--font-display); }
.act-phone p { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / 0.16); line-height: 1.4; }
.act-details h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.05rem; }
.act-details h3 .i { color: var(--brand-text); }
.act-details p { margin: 0 0 6px; }
.act-details p .i { vertical-align: -3px; }
.act-vars { margin: 0 0 8px; padding-left: 18px; font-size: 0.88rem; }
.act-vars li + li { margin-top: 4px; }
.act-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 720px) {
  dialog.act-dialog { padding: 16px; }
  .act-dialog-body { grid-template-columns: 1fr; }
  .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-block { min-height: 0; flex-direction: row; align-items: center; gap: 8px; padding: 10px; font-size: 0.86rem; overflow-wrap: anywhere; hyphens: auto; }
  .act-block .i { width: 20px; height: 20px; padding: 6px; }
  /* Sur téléphone : le message reste visible en bas pendant qu'on parcourt les activités. */
  .act-preview { position: sticky; top: auto; bottom: 0; order: 1; padding: 10px; box-shadow: 0 -10px 18px -12px rgb(0 0 0 / 0.35); }
  .act-preview > p, .act-details { display: none; }
}

/* Choix sur une seule ligne : comment les clients ont leur numéro, moyens proposés */
.choice-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.choice-row.cols-4 { --n: 4; }
.choice {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 74px; margin: 0; padding: 10px 6px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--muted); font-size: 0.86rem; font-weight: 600; line-height: 1.2; text-align: center;
  cursor: pointer; transition: border-color 0.15s, background-color 0.15s;
}
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice .i { width: 22px; height: 22px; }
.choice:hover { border-color: var(--muted); }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); color: var(--text); }
.choice:has(input:checked) .i { color: var(--brand-text); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice:has(input[type='checkbox']:checked)::after { content: '✓'; position: absolute; top: 5px; right: 8px; font-size: 0.75rem; color: var(--brand-text); }
@media (max-width: 420px) { .choice-row.cols-4 { --n: 2; } }

/* Bulle d'aide « ? » (survol, clavier ou appui) : au-dessus du libellé, sur toute la largeur du champ */
.label-row { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.label-row label { margin: 0; }
.tip { display: inline-flex; }
.tip-btn {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--muted); font: 700 0.78rem/1 var(--font-ui); cursor: help;
}
.tip-btn:hover, .tip-btn:focus-visible, .tip.open .tip-btn { border-color: var(--brand); color: var(--brand-text); }
.tip-pop {
  position: fixed; z-index: 60; display: none; padding: 10px 12px; border-radius: var(--r-ctl);
  background: var(--text); color: var(--surface); font-size: 0.86rem; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; box-shadow: var(--shadow-2);
  pointer-events: none;
}
.tip.open .tip-pop { display: block; }
.tip-pop p { margin: 0; }
.tip-pop p + p { margin-top: 6px; }
.tip-pop .tip-where { font-weight: 700; }
/* « ? » dans un bouton de choix (comment les clients ont leur numéro, moyens proposés) : en coin, au-dessus du choix */
.choice > [data-tip], .choice > .tip-slot { position: absolute; top: 4px; left: 5px; z-index: 2; line-height: 0; }
.choice .tip-btn { width: 19px; height: 19px; font-size: 0.72rem; }

/* Nombre de souches, avec la remarque « sans souche » à côté */
.stub-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.stub-row .small { flex: 1 1 150px; min-width: 0; margin: 0; max-width: 34ch; } /* à droite s’il y a la place, dessous sinon */

/* Variables à insérer d'un appui ; nombre de notifications d'un ticket (Suivi) */
.var-box p { margin: 0 0 6px; }
.var-chips .chip { min-width: 0; min-height: 34px; padding: 5px 11px; font: 600 0.85rem var(--mono); }
.notif-count { background: var(--brand-soft); color: var(--brand-text); }
.notif-none { color: var(--muted); }

/* Affiche à scanner : carte de l'espace commerçant, indication sur la page du client */
.poster-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.poster-mini { flex: none; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); line-height: 0; }
.poster-mini svg { width: 132px; height: 132px; }
.poster-hint { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 6px 0 0; font-weight: 600; color: var(--brand-text); }

/* ------------------------------------------------------------ ticket (page client) */

.ticket-head {
  position: relative; text-align: center; padding: 22px 18px 20px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: var(--shadow-1);
}
/* Encoches de ticket, à gauche et à droite. */
.ticket-head::before, .ticket-head::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket-head::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket-head::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket-head .merchant { font-weight: 600; color: var(--muted); }
.ticket-head .number { font: 800 clamp(4rem, 20vw, 6rem)/1 var(--font-display); letter-spacing: -0.05em; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.queue-line { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.queue-line .badge:first-child { background: var(--brand-soft); color: var(--brand-text); }

.ready {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--ok); color: #f6fbf8; text-align: center; padding: 24px;
}
@media (prefers-reduced-motion: no-preference) { .ready { animation: flash 1s ease-in-out 3; } }
@media (prefers-color-scheme: dark) { .ready { background: #17734a; } }
.ready .number { font: 800 clamp(5.5rem, 32vw, 10rem)/1 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.ready .promo-card { background: rgb(255 255 255 / 0.16); color: #f6fbf8; text-align: left; max-width: 520px; }
.ready .promo-card a, .ready .promo-card .i { color: #f6fbf8; }
.ready h1 { font-size: clamp(2.2rem, 10vw, 3.6rem); }
@keyframes flash { 50% { filter: brightness(1.2); } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 14px 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-text); font: 700 0.95rem var(--font-display);
}

/* ------------------------------------------------------------ résultat d'un appel */

.result .call-title { font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.nobody { background: var(--warn-soft); color: var(--warn); border-radius: var(--r-ctl); padding: 16px; text-align: center; }
.nobody strong { display: block; font: 700 1.35rem var(--font-display); }

/* ------------------------------------------------------------ espace commerçant */

.waiting-list { list-style: none; margin: 0; padding: 0; }
.waiting-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.waiting-list li + li { border-top: 1px solid var(--line); }
.waiting-list .num { font: 700 1.6rem/1 var(--font-display); letter-spacing: -0.03em; min-width: 4ch; font-variant-numeric: tabular-nums; }
.waiting-list .called .num { color: var(--muted); text-decoration: line-through; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.stats > div { padding: 12px 8px; border-radius: var(--r-ctl); background: var(--surface-2); }
.stats strong { display: block; font: 700 1.6rem/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.donate-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kinds { display: inline-flex; gap: 4px; color: var(--muted); }

@keyframes bump { 0% { transform: scale(0.85); opacity: 0.4; } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ------------------------------------------------------------ studio d'impression */

.studio { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); gap: 20px; align-items: start; }
.studio > *, .studio-form > * { min-width: 0; } /* un carrousel large ne doit jamais élargir la page */
.studio-form > details { margin-bottom: 12px; }
.studio-form > details > summary { font: 650 1.12rem/1.2 var(--font-display); letter-spacing: -0.015em; }
/* Générateur : un bloc, trois onglets (Informations, Message, Apparence) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.studio-tabs { margin-bottom: 12px; padding: 0; overflow: visible; }
.tabbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-box) var(--r-box) 0 0; }
.tabbar [role=tab] {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 6px; border: 0; border-radius: var(--r-ctl);
  background: transparent; color: var(--muted); font: 650 0.95rem var(--font-ui); cursor: pointer; white-space: nowrap;
}
.tabbar [role=tab] .i { width: 18px; height: 18px; flex: none; }
.tabbar [role=tab]:hover { color: var(--text); }
.tabbar [role=tab][aria-selected='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.tabbar [role=tab][aria-selected='true'] .i { color: var(--brand-text); }
.tab-panel { padding: 20px; }
.panel-sec + .panel-sec { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel-sec > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 650 1.08rem/1.2 var(--font-display); letter-spacing: -0.015em; }
@media (max-width: 460px) { .tabbar [role=tab] { flex-direction: column; gap: 2px; font-size: 0.82rem; } .pv-close-text { display: none; } }
/* Colonne de droite : l'aperçu puis le bouton « Créer ma file », collés en haut pendant qu'on remplit. */
.studio-side { position: sticky; top: 16px; display: grid; gap: 12px; }
.studio-side > * { margin: 0; min-width: 0; }
.studio-preview { margin: 0; padding: 0; overflow: visible; }
.studio > .studio-preview { position: sticky; top: 16px; } /* espace commerçant (Imprimer) : aperçu seul à droite */
/* Aperçu : en-tête d'onglets identique à celui des réglages, découpes au bout */
.pv-bar { display: flex; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-box) var(--r-box) 0 0; }
.pv-body { padding: 16px; }
.pv-frame { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 12px; }
/* Onglets de l'aperçu : même style que ceux des réglages, défilants s'ils sont nombreux */
.pv-bar .pv-tabs { flex: 1 1 auto; min-width: 0; display: flex; gap: 4px; padding: 0; overflow-x: auto; scrollbar-width: none; border: 0; border-radius: 0; background: none; }
.pv-tabs [role=tab] { flex: 1 0 auto; padding-inline: 10px; }
.pv-tabs [role=tab][hidden] { display: none; }
/* Écran public en aperçu (mêmes éléments que la démonstration de l'accueil) */
.pv-screen { margin: 14px; padding-bottom: 0; }
.pv-screen .lq-tv { margin-bottom: 0; } /* pas de téléphone posé devant, comme sur l’accueil */
.pv-tv-foot { display: flex; justify-content: space-between; gap: 2cqw; }
.pv-tv-promo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Téléphone du client : la page du ticket après son scan, puis « C'est à vous ! » */
.pv-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 14px; }
.pv-phones figure { display: grid; gap: 8px; justify-items: center; margin: 0; }
.pv-phones figcaption { color: var(--muted); font-size: 0.82rem; font-weight: 600; text-align: center; }
.pv-phone { width: 100%; max-width: 260px; aspect-ratio: 9 / 18.5; container-type: inline-size; overflow: hidden; border: 7px solid #15181d; border-radius: 30px; background: var(--bg); box-shadow: var(--shadow-2); }
.pvp-screen { display: flex; flex-direction: column; gap: 3.2cqw; height: 100%; padding: 7cqw 6cqw; overflow: hidden; color: var(--text); font-size: 4.6cqw; line-height: 1.3; }
.pvp-ticket { padding: 4cqw; border: 1px solid var(--line); border-radius: 5cqw; background: var(--surface); text-align: center; }
.pvp-merchant { color: var(--muted); font-size: 4.4cqw; font-weight: 700; }
.pvp-number { font: 800 17cqw/1 var(--font-display); letter-spacing: -0.05em; }
.pvp-lead { margin: 1cqw 0; font-weight: 600; text-align: center; }
.pvp-choice { display: flex; align-items: center; gap: 3cqw; padding: 3.4cqw 4cqw; border-radius: 3.4cqw; background: var(--pvp-accent, var(--brand)); color: var(--pvp-accent-ink, var(--brand-ink)); font-size: 4.3cqw; font-weight: 700; }
.pvp-icon { display: inline-flex; }
.pvp-choice .i { width: 5cqw; height: 5cqw; }
.pvp-link { color: var(--muted); font-size: 4cqw; text-align: center; text-decoration: underline; }
.pvp-promo { display: flex; gap: 2cqw; align-items: flex-start; margin-top: auto; padding: 3cqw; border-radius: 3cqw; background: var(--surface-2); font-size: 3.8cqw; }
.pvp-promo .i { flex: none; width: 4.4cqw; height: 4.4cqw; }
.pvp-ready { justify-content: center; align-items: center; background: #17734a; color: #f6fbf8; text-align: center; }
.pvp-title { font: 750 9cqw/1.05 var(--font-display); }
.pvp-big { font: 800 24cqw/1 var(--font-display); letter-spacing: -0.05em; }
.pvp-message { margin: 0; padding: 3.4cqw; border-radius: 3.4cqw; background: rgb(255 255 255 / 0.16); font-size: 4.3cqw; line-height: 1.35; }
.pvp-ready .pvp-promo { margin-top: 0; background: rgb(255 255 255 / 0.16); color: inherit; text-align: left; }
/* « Tout » : chaque vue en vignette, un appui l'ouvre */
/* Maçonnerie justifiée (calculée par justify()) : rangées de même hauteur qui remplissent la largeur. */
.pv-all { display: grid; gap: 12px; margin: 12px; }
.pv-row { display: flex; gap: 12px; align-items: flex-start; }
.pv-row > .pv-tile { flex: none; }
.pv-all .pv-phones { gap: 8px; }
.pv-all .pv-phone { max-width: none; }
.pv-all .pv-phones figcaption { display: none; } /* la vignette porte déjà son nom */
.pv-tile { display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pv-tile:hover, .pv-tile:focus-visible { border-color: var(--brand); }
.pv-tile-label { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 650; }
.pv-tile-label .i { width: 16px; height: 16px; color: var(--brand-text); }
.pv-tile-view { position: relative; overflow: hidden; pointer-events: none; }
.pv-tile-view > .sheet { transform-origin: top left; box-shadow: var(--shadow-1); }
.pv-tile-view .pv-screen, .pv-tile-view .pv-phones { margin: 0; }
.pv-frame > .sheet { transform-origin: top left; box-shadow: var(--shadow-2); flex: none; }
.pv-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 6px; padding: 0; list-style: none; }
.pv-info li { padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-info b { color: var(--text); font-weight: 600; }
.pv-info .pv-sample { display: inline-flex; align-items: center; gap: 6px; padding-right: 4px; background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.pv-sample .tip-btn { width: 18px; height: 18px; border-color: transparent; background: var(--surface); color: var(--brand-text); font-size: 0.7rem; }
/* QR trop petit, papier trop petit : une alerte qu'on ne peut pas rater */
.pv-alerts:not(:empty) { display: grid; gap: 8px; margin-bottom: 12px; }
.pv-alerts > p { margin: 0; }
.pv-alert { margin: 0; padding: 10px 12px; font-size: 0.9rem; line-height: 1.4; }
.pv-alert .i { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.pv-close, .pv-fab { display: none; }
.pv-bar .pv-cuts, .pv-bar .pv-close { flex: none; min-height: 44px; padding: 8px 12px; border-color: transparent; background: transparent; color: var(--muted); }
.pv-bar .pv-cuts:hover { color: var(--text); }
.pv-cuts[aria-pressed='true'] { border-color: #e11d48; color: #e11d48; }
/* « Voir les découpes » : traits en rouge, marges et espaces hachurés (aperçu seulement). */
.pv-frame.show-cuts .sheet-tickets { background-image: repeating-linear-gradient(45deg, rgb(225 29 72 / 0.14) 0 1.5mm, transparent 1.5mm 3mm); }
.pv-frame.show-cuts .pair { outline: 0.4mm dashed #e11d48; outline-offset: -0.2mm; }
.pv-frame.show-cuts .pair.stub-right .part.stub::before { border-left-width: 0.4mm; border-color: #e11d48; }
.pv-frame.show-cuts .pair.stub-bottom .part.stub::before { border-top-width: 0.4mm; border-color: #e11d48; }
.warn { color: var(--brand-text); font-weight: 600; }
.color { width: 50px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); background: none; cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.wrap-studio { max-width: 1200px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.grid-4 label { font-size: 0.85rem; }
.advanced > summary { font-weight: 600; }
.product-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.product-line .linklike { padding: 0; color: inherit; }

/* Couleurs personnalisées (Pro) : aperçu de l'écran public et d'un bouton client */
.theme-preview { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.tp-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 120px; border-radius: 12px; background: var(--tp-screenBg); color: var(--tp-screenText); font-weight: 600; }
.tp-screen b { color: var(--tp-screenNumber); font: 800 3.2rem/1 var(--font-display); letter-spacing: -0.04em; }
.tp-btn { display: grid; place-items: center; padding: 12px; border-radius: 12px; background: var(--tp-accent); color: var(--tp-ink); font-weight: 600; text-align: center; }

/* Catalogue des papiers compatibles */
dialog.catalog { width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: var(--r-box); padding: 24px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); }
dialog.catalog::backdrop { background: rgb(14 16 19 / 0.55); }
dialog.catalog h2 { margin: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.product { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.product h3 { font-size: 1rem; margin: 0; }
.product p { margin: 0; }
.product .btn:first-of-type { margin-top: auto; }
.thumb-box { display: flex; align-items: center; justify-content: center; height: 132px; background: var(--surface-2); border-radius: var(--r-ctl); }
.thumb { max-height: 116px; max-width: 90%; }
.thumb .th-page { fill: #fff; stroke: #aab1bd; stroke-width: 1; vector-effect: non-scaling-stroke; }
.thumb .th-cell { fill: #f7e2d9; stroke: #c8461c; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.thumb .th-stub { fill: #eef0f3; stroke: #8a93a3; stroke-width: 0.8; vector-effect: non-scaling-stroke; }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  /* Sur téléphone, l'aperçu s'ouvre en plein écran par un bouton flottant. */
  .studio-side { position: static; }
  .studio-preview, .studio > .studio-preview { display: none; position: fixed; inset: 0; z-index: 30; border-radius: 0; overflow: auto; }
  .studio-preview .pv-bar { position: sticky; top: 0; z-index: 1; border-radius: 0; }
  .studio-preview.open { display: block; }
  .pv-close { display: inline-flex; }
  .pv-fab { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 25; box-shadow: var(--shadow-2); }
  .pv-fab:not(.near) { opacity: 0; pointer-events: none; transform: translateY(12px); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .pv-fab { transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
}

/* ------------------------------------------------------------ message d'appel */

.composer { background: var(--surface-2); border-radius: var(--r-ctl); padding: 14px; }
.composer .field { margin-bottom: 0; }
.ready-message { font: 700 clamp(1.4rem, 6vw, 2.1rem)/1.2 var(--font-display); max-width: 24ch; }
.screen-qr svg { width: 200px; height: 200px; margin: 0 auto; background: #fff; padding: 10px; border-radius: 12px; }
.screen-link { overflow-wrap: anywhere; text-align: center; }

.kit-key {
  font: 700 1.3rem/1.45 var(--mono); letter-spacing: 0.04em;
  background: var(--surface-2); border: 2px dashed var(--brand); border-radius: var(--r-ctl); padding: 14px; text-align: center; word-break: break-all;
}
.pro-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.roadmap { list-style: none; margin: 0; padding: 0; }
.roadmap li { position: relative; padding: 0 0 18px 34px; }
.roadmap li::before { content: ''; position: absolute; left: 8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line); background: var(--surface); }
.roadmap li.done::before { border-color: var(--ok); background: var(--ok); }
.roadmap li.next::before { border-color: var(--brand); }
.roadmap li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.roadmap .progress { margin-top: 8px; }
.roadmap li.later::before { border-style: dashed; } /* chapitres à venir, sans montant */
.roadmap li.later strong { color: var(--muted); }
.roadmap li.act { padding: 6px 0 10px; } /* titre d’acte : ni pastille ni trait */
.roadmap li.act::before, .roadmap li.act::after { display: none; }
.roadmap li.act .eyebrow { margin: 0; }
/* Page Soutenir : le récit, puis le défi du mois */
.eyebrow { margin: 0 0 6px; color: var(--brand-text); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.story { margin-bottom: 20px; }
.story h1 { text-wrap: balance; }
.story .signature { color: var(--muted); font-style: italic; text-align: right; }
.story .motto { margin: 6px 0; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--brand-soft); color: var(--text); font: 650 1.08rem/1.45 var(--font-display); letter-spacing: -0.01em; text-wrap: pretty; } /* la devise */
.challenge { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.challenge h2 { margin-top: 0; text-wrap: balance; }
.challenge-figures { margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.challenge-figures strong { font: 800 2.2rem/1 var(--font-display); letter-spacing: -0.03em; }
.challenge-figures span { color: var(--muted); font-weight: 600; }
.progress-big { height: 14px; }
/* Fait avec presque rien : ce que le projet a coûté, mesuré (page Soutenir). */
.frugal .lead { margin-top: 0; }
.frugal-last { list-style: none; margin: 0 0 12px; padding: 0; }
.frugal-last li { padding: 8px 0; border-top: 1px solid var(--line); }
.frugal-last li span { display: block; margin-top: 2px; }
/* Le service tient-il la route ? Le bulletin du mois et le simulateur (page Soutenir). */
.health h3 { margin: 24px 0 10px; }
.health-verdict { display: inline-block; margin: 0 0 10px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font-weight: 700; text-wrap: balance; }
.health-verdict.warn { background: var(--warn-soft); color: var(--warn); }
.health-verdict.soon { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand-text); }
.health-verdict a { color: inherit; }
.sim-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 10px; }
/* Curseur : le libellé et la valeur sur une ligne, le curseur dessous, dans une capsule. */
.sim-slider {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px;
  margin: 0 0 10px; padding: 10px 13px 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface);
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.sim-slider:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sim-slider output { font: 800 1.15rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--brand-text); }
.sim-slider input[type='range'] { grid-column: 1 / -1; width: 100%; margin: 6px 0 2px; accent-color: var(--brand); cursor: pointer; }
.sim-reset { min-height: 0; padding: 3px 12px; font-size: 0.85rem; }
.sim-result .cost-table tr.chosen td { font-weight: 700; }
.sim-total { margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.sim-total strong { font: 800 1.6rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.sim-gauge.soon span { background: color-mix(in srgb, var(--brand) 55%, var(--warn)); }
.sim-gauge.over span { background: var(--warn); }
.sim-verdict { font-weight: 600; }
.sim-verdict.over { color: var(--warn); }
.sim-result .cost-table td + td { text-align: right; padding-left: 12px; }
/* Votez pour la suite : le classement des idées */
.rates { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.idea { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 10px 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); }
.idea.mine { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.idea-rank { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-2); font: 800 0.95rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.idea.done .idea-rank { color: var(--ok); background: var(--ok-soft); }
.idea-body p { margin: 4px 0 0; }
.idea-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.idea-cost { font-variant-numeric: tabular-nums; }
.idea-vote { display: grid; justify-items: end; gap: 6px; }
.idea-count { font-weight: 700; font-size: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vote-btn { min-height: 40px; padding: 6px 12px; }
.vote-btn[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-text); }
.free-badge { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 480px) {
  .idea { grid-template-columns: 2rem minmax(0, 1fr); }
  .idea-vote { grid-column: 2; display: flex; align-items: center; justify-content: space-between; }
}

/* ------------------------------------------------------------ écran public */

.screen-body { background: var(--screen-bg, #0e1013); color: var(--screen-text, #f4f5f7); }
.screen {
  min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; gap: 2vh;
  padding: 3vh 4vw; background: var(--screen-bg, #0e1013); color: var(--screen-text, #f4f5f7); font-family: var(--font-ui);
}
.s-head { display: flex; justify-content: space-between; align-items: center; font-size: clamp(1rem, 3.4vh, 2.2rem); }
.s-name { font: 700 1em/1.1 var(--font-display); letter-spacing: -0.02em; }
.s-clock { opacity: 0.7; font-variant-numeric: tabular-nums; }
.s-main { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.s-label { font-weight: 500; opacity: 0.7; font-size: clamp(1rem, 3.6vh, 2.4rem); }
.s-number { font: 800 clamp(5rem, 34vh, 26rem)/0.95 var(--font-display); letter-spacing: -0.05em; color: var(--screen-number, #ff8a5c); font-variant-numeric: tabular-nums; }
.s-number.many { font-size: clamp(2.4rem, 12vh, 8.5rem); letter-spacing: -0.02em; }
@media (prefers-reduced-motion: no-preference) { .s-number.bump { animation: bump 0.9s var(--ease); } }
.s-tag { font: 600 clamp(1.4rem, 6.5vh, 4.4rem)/1.15 var(--font-display); letter-spacing: -0.02em; margin-top: 1.5vh; max-width: 90vw; }
.s-prev { display: flex; gap: 4vw; flex-wrap: wrap; justify-content: center; margin-top: 5vh; opacity: 0.7; }
.s-prev div { text-align: center; }
.s-prev b { display: block; font: 700 clamp(1.4rem, 6vh, 4rem)/1.1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.s-prev span { font-size: clamp(0.8rem, 2.2vh, 1.4rem); opacity: 0.75; }
.s-foot { display: flex; justify-content: space-between; align-items: center; gap: 2vw; flex-wrap: wrap; font-size: clamp(0.9rem, 2.5vh, 1.6rem); opacity: 0.75; }
.s-promo { flex: 1; text-align: center; }
.s-live { display: inline-flex; align-items: center; gap: 0.45em; }
.s-live::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 50%; background: #4cc38a; }
@media (prefers-reduced-motion: no-preference) { .s-live::before { animation: blink 2s infinite; } }
.s-live.off::before { background: #ff8a7a; }
.s-toggles { display: flex; gap: 0.5rem; opacity: 0.4; margin-left: auto; margin-right: 2vw; }
.s-toggles:hover, .s-toggles:focus-within { opacity: 1; }
.s-toggles button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: var(--r-ctl); padding: 7px 12px; background: rgb(128 128 128 / 0.2); color: inherit; font: 600 0.9rem var(--font-ui); cursor: pointer; }
.s-toggles button[aria-pressed='false'] { text-decoration: line-through; opacity: 0.6; }
.s-start {
  position: fixed; left: 50%; bottom: 12vh; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  border: 0; border-radius: var(--r-box); padding: 18px 28px; cursor: pointer;
  background: #f0683b; color: #1a0b05; font: 1rem var(--font-ui); box-shadow: 0 10px 40px rgb(0 0 0 / 0.5);
}
.s-start strong { font: 700 1.3rem var(--font-display); }
@media (prefers-reduced-motion: no-preference) { .s-flash { animation: sflash 1.2s ease 2; } }
@keyframes sflash { 40% { filter: brightness(1.35); } }
@keyframes blink { 50% { opacity: 0.3; } }

/* ------------------------------------------------------------ dons */

.donate { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 75%); }
.donate h3 { display: flex; gap: 8px; align-items: center; font: 650 1.2rem/1.2 var(--font-display); }
.donate h3 .i, .donor-thanks .i { color: var(--brand-text); }
.donate .why { font-size: 0.95rem; }
.progress { height: 10px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; margin: 6px 0 4px; }
.progress span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: var(--r-pill); transition: width 1.2s var(--ease); }
.impact { font-weight: 600; min-height: 1.5em; }
.btn-gold { background: var(--brand); color: var(--brand-ink); }
@media (prefers-reduced-motion: no-preference) { .donate.pulse { animation: pulse 1.6s ease 2; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 22%, transparent); } }
.donor-thanks { display: flex; align-items: center; gap: 10px; }
/* Deux offres : « Juste l’outil ? » sur un quart (son bouton fuit), « Soutenir le projet » sur trois quarts */
.donate { container-type: inline-size; }
.support-offers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 4px; }
/* Un quart / trois quarts seulement quand l’encart est assez large (sinon, l’un sous l’autre) */
@container (min-width: 640px) { .support-offers { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } }
.offer { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.offer h4 { margin: 0; font: 650 1rem/1.25 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.offer p { margin: 0; }
.offer-tool { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.offer-vision { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.vision-quote { font: 600 1.02rem/1.45 var(--font-display); letter-spacing: -0.01em; text-wrap: pretty; }
.offer-chooser { padding: 14px; border-radius: var(--r-ctl); background: var(--surface); border: 1px dashed var(--line); }
/* Le bouton licence qui fuit toujours, en montrant le vrai bouton */
.runaway-zone { position: relative; min-height: 104px; }
.runaway { max-width: 100%; padding-inline: 12px; white-space: normal; text-align: center; line-height: 1.2; } /* tient dans son quart de largeur */
.runaway-zone.running .runaway { position: absolute; left: 0; top: 0; transform: translate(var(--run-x, 0), var(--run-y, 0)); }
@media (prefers-reduced-motion: no-preference) { .runaway-zone.running .runaway { transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); } }
.runaway-says { display: block; min-height: 1.3em; color: var(--brand-text); font-size: 0.85rem; font-weight: 650; }
/* La licence : le vrai bouton. Au survol, il s'élève, un halo tourne, un reflet le traverse,
   la cloche sonne et un ticket « C'est votre tour ! » surgit au-dessus. */
@property --halo { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.licence-wrap { position: relative; isolation: isolate; margin-top: 30px; }
.licence-halo {
  position: absolute; inset: -4px; z-index: 0; border-radius: calc(var(--r-ctl) + 4px); opacity: 0; pointer-events: none;
  background: conic-gradient(from var(--halo), #ffb199, var(--brand), #ffd36e, #7ee0b0, var(--brand), #ffb199);
  filter: blur(9px); transition: opacity 0.3s var(--ease);
}
.licence-btn { position: relative; z-index: 1; overflow: visible; gap: 10px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s var(--ease); }
.licence-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.5) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0;
}
.licence-bell { display: inline-flex; transform-origin: 50% 10%; }
.licence-tag {
  position: absolute; left: 50%; bottom: calc(100% + 8px); display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  border: 1px dashed color-mix(in srgb, var(--brand) 60%, var(--line)); border-radius: 8px; background: var(--surface); color: var(--text);
  font-size: 0.82rem; font-weight: 650; white-space: nowrap; box-shadow: var(--shadow-1);
  opacity: 0; transform: translate(-50%, 8px) scale(0.85) rotate(-2deg); pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.licence-tag b { padding: 2px 6px; border-radius: 5px; background: var(--brand); color: var(--brand-ink); font: 800 0.8rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.licence-btn:hover, .licence-btn:focus-visible { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--brand) 70%, transparent); }
.licence-wrap:hover .licence-halo, .licence-wrap:focus-within .licence-halo { opacity: 1; }
.licence-btn:hover .licence-tag, .licence-btn:focus-visible .licence-tag { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(-2deg); }
@media (prefers-reduced-motion: no-preference) {
  .licence-wrap:hover .licence-halo, .licence-wrap:focus-within .licence-halo { animation: halo 2.4s linear infinite; }
  .licence-btn:hover::after, .licence-btn:focus-visible::after { animation: shine 1.1s var(--ease) forwards; }
  .licence-btn:hover .licence-bell, .licence-btn:focus-visible .licence-bell { animation: ring 0.9s ease-in-out 2; }
}
@keyframes halo { to { --halo: 360deg; } }
@keyframes shine { to { background-position: -60% 0; } }
/* Le vrai bouton s’illumine quand le bouton licence le désigne */
.licence-wrap:has(.nudge) .licence-halo { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .licence-btn.nudge { animation: nudge 0.9s var(--ease); }
  .licence-wrap:has(.nudge) .licence-halo { animation: halo 2.4s linear infinite; }
}
@keyframes nudge { 35% { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 6px var(--brand-soft); } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.cost-table { width: 100%; border-collapse: collapse; }
.cost-table th { text-align: left; font-size: 0.85rem; color: var(--muted); font-weight: 600; padding: 6px 0; }
.cost-table td { padding: 8px 0; border-top: 1px solid var(--line); }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; }
.cost-table td:last-child { font-weight: 700; white-space: nowrap; }

/* ------------------------------------------------------------ impression (tout papier) */

.print-root { display: none; }

@media print {
  /* Le format exact (A4, rouleau, étiquettes…) est posé par sheets.js juste avant d'imprimer. */
  @page { margin: 0; }
  html, body { background: #fff !important; color: #000 !important; }
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block !important; }
}

/* Une page = une feuille ; un fil plus courte que le papier, pour ne jamais créer de page blanche. */
.sheet {
  width: var(--page-w, 210mm); height: calc(var(--page-h, 297mm) - 0.3mm); overflow: hidden;
  page-break-after: always; break-after: page;
  color: #000; background: #fff; line-height: 1.2;
  font-family: Arial, 'Liberation Sans', Helvetica, Roboto, sans-serif; /* métriques connues : la mise en page calculée tombe juste */
  -webkit-print-color-adjust: exact; print-color-adjust: exact; /* les couleurs s'impriment */
}
.sheet:last-child { page-break-after: auto; break-after: auto; }

/* Grille et tailles calculées par layout.js, transmises en variables CSS. */
.sheet-tickets {
  display: grid; align-content: start; justify-content: start;
  padding: var(--m-top, 8mm) 0 0 var(--m-left, 8mm);
  grid-template-columns: repeat(var(--cols, 2), var(--cell-w, 97mm));
  grid-template-rows: repeat(var(--rows, 6), var(--cell-h, 46.8mm));
  column-gap: var(--gap-x, 0); row-gap: var(--gap-y, 0);
}
.pair { display: grid; overflow: hidden; min-width: 0; min-height: 0; }
.pair.cut { outline: 0.2mm dashed #999; outline-offset: -0.1mm; } /* traits de découpe, sans prendre de place */
.pair.stub-right { grid-template-columns: var(--client-w) repeat(var(--stubs, 1), minmax(0, 1fr)); }
.pair.stub-bottom { grid-template-rows: var(--client-h) repeat(var(--stubs, 1), minmax(0, 1fr)); }
/* Verso (recto-verso) : le dos de chaque case, en miroir ; au dos du ticket le mode d'emploi (tailles : layout.js fitBack), souches blanches */
.pair.back.stub-right { grid-template-columns: repeat(var(--stubs, 1), minmax(0, 1fr)) var(--client-w); }
.part.back-steps { justify-content: flex-start; align-items: center; text-align: left; background: var(--t-bg, #fff); color: var(--t-ink, #111); }
.back-steps ol { display: grid; gap: calc(var(--b-t) * 0.6); width: 100%; margin: 0; padding: 0; list-style: none; font-size: var(--b-t); line-height: 1.2; }
.back-steps li { display: grid; grid-template-columns: calc(var(--b-t) * 1.5) minmax(0, 1fr); column-gap: calc(var(--b-t) * 0.7); align-items: start; }
.back-steps .b-num { display: grid; place-items: center; width: calc(var(--b-t) * 1.5); height: calc(var(--b-t) * 1.5); border-radius: 50%; background: var(--t-accent, #c8461c); color: var(--t-bg, #fff); font-weight: 700; font-size: calc(var(--b-t) * 0.9); line-height: 1; }
.back-steps b { display: block; font-weight: 700; }
.back-steps .b-text { display: block; font-size: 0.88em; }
.part.back-blank { background: var(--s-bg, #fff); }
.part {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 0; overflow: hidden; text-align: center;
  padding: var(--pad); gap: var(--gap);
}
.part.client { --pad: var(--c-pad); --t: var(--c-t); --n: var(--c-n); --q: var(--c-q); --qp: var(--c-qp); --gap: var(--c-gap); --gaph: var(--c-gaph); --head: var(--c-head); background: var(--t-bg, #fff); color: var(--t-ink, #111); }
.part.stub { --pad: var(--s-pad); --t: var(--s-t); --n: var(--s-n); --q: var(--s-q); --qp: var(--s-qp); --gap: var(--s-gap); --gaph: var(--s-gaph); background: var(--s-bg, #fff); color: var(--s-ink, #111); }
/* Trait de la souche, dessiné par-dessus : il ne prend aucune place au contenu. */
.pair.stub-right .part.stub::before, .pair.stub-bottom .part.stub::before { content: ''; position: absolute; border: 0 dashed #999; }
.pair.stub-right .part.stub::before { left: 0; top: 0; bottom: 0; border-left-width: 0.2mm; }
.pair.stub-bottom .part.stub::before { left: 0; right: 0; top: 0; border-top-width: 0.2mm; }

/* En colonne : tout empilé et centré. En ligne : QR à gauche, textes à droite. */
.part.v { flex-direction: column; }
.part.v .p-text { display: contents; }
.part.v .p-logo, .part.v .p-name, .part.stub.v .p-tag { order: 1; }
.part.v .p-num { order: 2; }
.part.v .p-qr { order: 3; }
.part.v .p-scan, .part.v .p-hint { order: 4; }
.part.v .p-sub { order: 5; }
.part.v .p-domain { order: 6; }
.part.h { flex-direction: row; gap: var(--gaph); text-align: left; }
.part.h .p-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--gap); flex: 1 1 0; min-width: 0; }

.part .p-qr { flex: none; background: #fff; padding: var(--qp); border-radius: 0.8mm; line-height: 0; } /* marge blanche : lecture fiable sur fond coloré */
.part .p-qr svg { display: block; width: var(--q); height: var(--q); }
.part .p-logo { height: var(--head); max-width: 100%; object-fit: contain; }
.part .p-name { font-size: var(--head); font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Logo complet WeCall.You (pictogramme + nom) : le nom suit la couleur du texte autour, clair ou foncé. */
.wm { display: inline-flex; align-items: center; gap: 0.3em; max-width: 100%; overflow: hidden; white-space: nowrap; font-weight: 700; letter-spacing: -0.02em; vertical-align: middle; }
.wm-icon { display: block; flex: none; width: 1.2em; height: 1.2em; }
.wm-icon svg { display: block; width: 100%; height: 100%; }
.wm-text { min-width: 0; overflow: hidden; }
.wm-dot { color: #e8572a; }
.part .p-domain.p-brand { display: flex; max-width: 100%; opacity: 1; } /* le logo garde toute sa couleur, contrairement à l’adresse */
.part .p-brand .wm-dot { color: var(--t-accent); }
.sheet.mono .wm-icon { filter: grayscale(1) contrast(1.3); }
.part .p-num { font-size: var(--n); font-weight: 900; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.part.client .p-num { color: var(--t-accent, inherit); }
.part .p-scan { font-size: var(--t); font-weight: 700; max-width: 100%; }
.part .p-sub, .part .p-hint { font-size: calc(var(--t) * 0.88); max-width: 100%; }
.part .p-domain { font-size: calc(var(--t) * 0.8); opacity: 0.7; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part .p-tag { font-size: calc(var(--t) * 0.85); letter-spacing: 0.3mm; font-weight: 800; opacity: 0.75; white-space: nowrap; }
.sheet.mono .p-logo { filter: grayscale(1) contrast(1.3); }
/* Alignement choisi dans le studio (« auto » : centré en colonne, à gauche à côté du QR). */
.sheet.align-left .part.v { align-items: flex-start; text-align: left; }
.sheet.align-right .part.v { align-items: flex-end; text-align: right; }
.sheet.align-center .part.h .p-text { align-items: center; text-align: center; }
.sheet.align-right .part.h { flex-direction: row-reverse; }
.sheet.align-right .part.h .p-text { align-items: flex-end; text-align: right; }

/* Documents imprimés (page clé, fiche de secours) : couleurs fixes, jamais celles du thème sombre,
   lisibles aussi sur une imprimante noir et blanc. */
.sheet-doc { padding: 9mm 12mm; font: 3.4mm/1.45 var(--font-ui); color: #14171c; display: flex; flex-direction: column; gap: 3.6mm; }
.sheet-doc h1, .sheet-doc h2 { margin: 0; color: #14171c; font-family: var(--font-display); letter-spacing: -0.02em; }
.sheet-doc h2 { display: flex; align-items: center; gap: 2mm; font-size: 4.8mm; font-weight: 650; margin-bottom: 1.5mm; }
.sheet-doc h2 .i { width: 5.5mm; height: 5.5mm; color: #c8461c; }
.sheet-doc p { margin: 0 0 1.5mm; }
.sheet-doc .i { width: 4.5mm; height: 4.5mm; flex: none; }
.doc-band { display: flex; align-items: center; gap: 4mm; padding: 4.5mm 6mm; border-radius: 4mm; background: #c8461c; color: #fffaf6; }
.doc-logo { display: inline-block; width: 13mm; height: 13mm; flex: none; padding: 0.6mm; border-radius: 3mm; background: #fff; }
.doc-logo svg { width: 100%; height: 100%; }
.doc-logo.small { width: 6mm; height: 6mm; padding: 0; background: none; }
/* Logo du commerce (Pro) à la place de celui de WeCall.You : même hauteur, largeur selon le logo. */
.doc-logo-img { box-sizing: border-box; width: auto; max-width: 46mm; padding: 1mm 1.5mm; object-fit: contain; }
.doc-brand { font: 700 6mm/1 var(--font-display); letter-spacing: -0.02em; }
.doc-band .wm-dot { color: #14171c; } /* sur l'orange : nom en clair, point foncé */
.doc-foot .wm { font: 700 3.4mm/1 var(--font-display); color: #14171c; }
.doc-foot .wm-dot { color: #c8461c; }
.doc-kind { margin-top: 1mm; font-size: 3.4mm; opacity: 0.92; }
.doc-aside { padding: 1.6mm 3.4mm; border-radius: 99mm; background: rgb(255 255 255 / 0.2); font: 600 3.6mm var(--font-ui); white-space: nowrap; }
.doc-title { display: flex; align-items: center; gap: 6mm; padding-bottom: 3mm; border-bottom: 0.4mm solid #e9ebef; }
.doc-title h1 { font-size: 10mm; font-weight: 750; line-height: 1.05; letter-spacing: -0.035em; }
.doc-title h1.mid { font-size: 8mm; }
.doc-title h1.long { font-size: 6.4mm; }
.doc-title p { margin: 1.5mm 0 0; font-size: 3.8mm; color: #586070; }
.sheet-doc .k-box { display: grid; grid-template-columns: 48mm 1fr; gap: 6mm; align-items: center; padding: 5mm; border: 0.6mm solid #c8461c; border-radius: 4mm; background: #fdf3ee; }
.sheet-doc .k-qr { padding: 2mm; border-radius: 2.5mm; background: #fff; line-height: 0; }
.sheet-doc .k-qr svg { width: 44mm; height: 44mm; }
.sheet-doc .k-qr.small svg { width: 22mm; height: 22mm; }
.sheet-doc .k-keep { font-weight: 700; color: #a83a15; }
.sheet-doc .k-label { margin: 2mm 0 1mm; font-size: 3mm; color: #586070; }
.sheet-doc .k-code { padding: 2mm 3mm; border: 0.35mm dashed #c8461c; border-radius: 2mm; background: #fff; font: 700 5mm/1.3 var(--mono); letter-spacing: 0.3mm; word-break: break-all; }
.sheet-doc .k-pass { display: flex; gap: 1.5mm; align-items: flex-start; margin-top: 2mm; font-weight: 600; }
.sheet-doc .k-warn { display: flex; gap: 2.5mm; align-items: flex-start; padding: 3mm 4mm; border-radius: 3mm; background: #fbe4e1; color: #8c1d14; font-size: 3.3mm; font-weight: 500; }
.sheet-doc .k-warn .i { width: 5mm; height: 5mm; color: #b42318; }
.sheet-doc .k-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; margin: 0; padding: 0; list-style: none; }
.sheet-doc .k-steps li { padding: 3.5mm; border-radius: 3mm; background: #f2f3f5; font-size: 3.1mm; line-height: 1.4; }
.sheet-doc .k-steps p { margin: 0; }
.sheet-doc .k-step-head { display: flex; align-items: center; gap: 1.8mm; margin-bottom: 1.5mm; font-size: 3.5mm; }
.sheet-doc .k-step-head .i { color: #c8461c; }
.sheet-doc .k-num { display: grid; place-items: center; width: 5.5mm; height: 5.5mm; flex: none; border-radius: 50%; background: #c8461c; color: #fffaf6; font: 700 3.2mm var(--font-display); }
.sheet-doc .k-privacy { display: flex; gap: 2mm; align-items: flex-start; margin: 0; font-size: 3.2mm; color: #586070; }
.sheet-doc .k-privacy .i { color: #17734a; }
/* Bas de page : écran d'affichage et appel au don, côte à côte (titre en haut, texte et QR dessous). */
.sheet-doc .k-extras { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3.6mm; }
.sheet-doc :is(.k-screen, .k-donate) { display: grid; grid-template-columns: 1fr auto; column-gap: 4mm; align-content: start; align-items: center; padding: 3.5mm 4.5mm; border-radius: 4mm; font-size: 3.15mm; line-height: 1.4; }
.sheet-doc :is(.k-screen, .k-donate) h2 { grid-column: 1 / -1; }
.sheet-doc :is(.k-screen, .k-donate) p { margin: 0; }
.sheet-doc .k-donate { background: #f7e2d9; }
.sheet-doc .k-screen { border: 0.35mm solid #d5d9e0; background: #f2f3f5; }
.sheet-doc .k-screen .k-qr { border: 0.3mm solid #e1e4ea; }
.sheet-poster { gap: 6mm; }
.poster-main { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3mm; padding: 4mm 0; }
.poster-logo { max-width: 60mm; max-height: 28mm; object-fit: contain; }
.sheet-poster .poster-main h1 { font-size: 17mm; font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.poster-other { margin: 0; font-size: 6mm; color: #586070; font-family: var(--font-display); }
.poster-qr { margin-top: 4mm; padding: 5mm; border: 1mm solid #c8461c; border-radius: 6mm; background: #fff; line-height: 0; }
.poster-qr svg { width: 110mm; height: 110mm; }
.poster-cta { margin: 2mm 0 0; font: 600 5mm/1.3 var(--font-display); color: #a83a15; }
.doc-foot { display: flex; align-items: center; gap: 3mm; margin-top: auto; padding-top: 3mm; border-top: 0.3mm solid #e9ebef; font-size: 2.8mm; color: #586070; }
.doc-foot span:last-child { margin-left: auto; }
