/* Fragments, liste d'attente. Identité de l'app (client/styles/base.css) : Papier le jour, Nuit le soir,
   encre, un seul accent terracotta. Les gris secondaires sont un peu plus denses que dans l'app
   pour tenir le contraste AA sur du texte courant. */

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/literata-latin-wght-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'iA Writer Quattro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ia-writer-quattro-latin-400-normal.woff2) format('woff2');
}

:root {
  color-scheme: light dark;
  --serif: 'Literata', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'iA Writer Quattro', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Papier */
  --bg: #f7f4ee;
  --bg-elev: #fffdf9;
  --bg-sunken: #efebe3;
  --text: #1f1d1a;
  --text-soft: #4a4640;
  --muted: #6b665c;
  --faint: #c9c2b5;
  --line: #e4ded2;
  --field-line: #8f897d;
  --accent: #b5502a;
  --accent-text: #a04522;
  --accent-contrast: #fffaf5;
  --accent-soft: rgba(181, 80, 42, 0.11);
  --selection: rgba(181, 80, 42, 0.2);
  --danger: #b3261e;
  --ok: #37704a;
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.06), 0 8px 28px rgba(40, 30, 10, 0.08);

  --radius: 10px;
  --radius-l: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Nuit */
    --bg: #161513;
    --bg-elev: #1f1d1a;
    --bg-sunken: #11100e;
    --text: #e8e2d6;
    --text-soft: #c3bcae;
    --muted: #9a9386;
    --faint: #4a463e;
    --line: #2c2a25;
    --field-line: #7a7468;
    --accent: #e2905f;
    --accent-text: #e2905f;
    --accent-contrast: #1a120c;
    --accent-soft: rgba(226, 144, 95, 0.14);
    --selection: rgba(226, 144, 95, 0.26);
    --danger: #f2817a;
    --ok: #7fbf8e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}
main:focus {
  outline: none;
}

::selection {
  background: var(--selection);
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 0.12em;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* Champ piège : hors de l'écran et hors de l'arbre d'accessibilité (aria-hidden dans le HTML),
   mais toujours un vrai champ pour les robots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Structure ---------- */

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.page-simple .wrap,
.page-doc .wrap {
  max-width: 44rem;
}

.site-header {
  padding-block: 1.5rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 0.5rem;
  font-family: var(--mono);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
/* La « feuille » de l'app : un trait accent, puis des lignes de texte. */
.wordmark-mark {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 7px / 70% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 12px / 90% 2px no-repeat,
    linear-gradient(var(--muted), var(--muted)) 0 17px / 45% 1px no-repeat;
}

.site-footer {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--text-soft);
}
.footer-note {
  flex-basis: 100%;
}

/* ---------- Texte ---------- */

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-ok {
  color: var(--ok);
}

.lede {
  max-width: 36rem;
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-soft);
}

.muted {
  color: var(--muted);
}

.email {
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

kbd,
code {
  padding: 0.1em 0.4em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-elev);
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--text-soft);
}

/* ---------- Boutons et champs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 160ms var(--ease), border-color 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  border-color: var(--text-soft);
}
.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover {
  border-color: var(--accent);
  filter: brightness(1.07);
}
/* En attente de la vérification anti-robot (« Un instant… ») : le bouton reste lisible et focalisable. */
.btn[aria-disabled='true'] {
  cursor: progress;
  opacity: 0.75;
}
.btn-xl {
  width: 100%;
  max-width: 26rem;
  min-height: 4rem;
  font-size: 1.1875rem;
}

.link-button {
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 1.0625rem;
}
.input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.input:focus-visible {
  border-color: var(--accent);
  border-radius: var(--radius);
  outline-offset: 2px;
}
.input[aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}
.textarea {
  display: block;
  padding-block: 0.75rem;
  line-height: 1.5;
  resize: vertical;
}

.signup {
  max-width: 34rem;
  margin-top: 2rem;
}
.signup-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.signup-row,
.share-row {
  display: flex;
  gap: 0.6rem;
}
.signup-row .input {
  flex: 1 1 auto;
  min-width: 0;
}
.signup-row .btn,
.share-row .btn {
  flex: none;
}
.signup-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.field-error {
  margin-block: 0.5rem 0.6rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--danger);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--danger);
}
/* « Tu voulais dire … ? » : une question, pas une erreur. Même teinte que les propositions de l'app. */
.suggest {
  max-width: 36rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem 1.4rem;
  border-radius: var(--radius-l);
  background: var(--accent-soft);
}
.suggest:focus {
  outline: none;
}
.suggest + .signup {
  margin-top: 1.5rem;
}
.suggest strong {
  overflow-wrap: anywhere;
}
.suggest-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.suggest-text {
  margin-top: 0.4rem;
  color: var(--text-soft);
}
.suggest-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.suggest-actions .btn {
  min-width: 0;
  overflow-wrap: anywhere;
}
.suggest-note {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--text-soft);
}

/* Emplacement du contrôle Cloudflare Turnstile : aucune hauteur tant que Cloudflare n'a rien à montrer.
   S'il demande un clic, le contrôle prend la largeur disponible (version compacte sous 300 px). */
.turnstile-slot > div {
  max-width: 100%;
  /* Invisible, le contrôle n'a pas de hauteur : cette marge se fond alors dans celle du texte qui suit. */
  margin-top: 0.75rem;
}

.typo-hint {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}
.typo-hint .link-button {
  margin-left: 0.25rem;
}

@media (max-width: 30rem) {
  .signup-row,
  .share-row {
    flex-direction: column;
  }
  .suggest-actions {
    align-items: stretch;
  }
}

/* ---------- Accueil ---------- */

.hero {
  padding-top: clamp(1.5rem, 6vw, 4.5rem);
}
.hero-title {
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7.4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.hero-accent {
  color: var(--accent);
}
@media (min-width: 40rem) {
  .hero-title span {
    display: block;
  }
}

.section {
  margin-top: clamp(4rem, 10vw, 7rem);
}
.section-title,
.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3.6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}
.section-title {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}
.benefit {
  padding-top: 1.25rem;
  border-top: 1px solid var(--faint);
}
.benefit h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}
.benefit p,
.fact dd,
.faq-item dd {
  color: var(--text-soft);
}

@media (min-width: 56rem) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }
}
.fact,
.faq-item {
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.fact dt,
.faq-item dt {
  font-weight: 700;
}
.fact dd,
.faq-item dd {
  margin-top: 0.25rem;
}

.cta {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-elev);
}
.cta-title {
  margin-bottom: 0.75rem;
}
.cta-lede {
  max-width: 34rem;
  color: var(--text-soft);
}

/* ---------- Démo ----------
   Un texte s'écrit, puis il est rangé. Tout est en CSS : les styles de base décrivent l'état FINAL,
   les animations ne font que le retarder (fill-mode backwards). Sans animation (mouvement réduit,
   vieux navigateur), on voit donc directement le fragment rangé.
   Chaque caractère est un <i> ; son rang donne son délai : --t (dizaines) × 10 + --u (unités).
   Le texte doit tenir en 122 caractères pour finir avant --t-range. */

.demo-section {
  margin-top: clamp(3rem, 8vw, 5rem);
}
.demo {
  --step: 36ms;
  --t0: 0.8s;
  --t-range: 5.7s;
  --t-end: 8.2s;
}
.demo-frame {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.demo-editor {
  --pad-x: clamp(1.25rem, 4vw, 2.75rem);
  --pad-top: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  min-height: 19rem;
}
.demo-text {
  position: relative;
  flex: 1;
  padding: var(--pad-top) var(--pad-x) 1.5rem;
  font-family: var(--mono);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.65;
}
.demo-text i {
  font-style: normal;
  animation: demo-key var(--step) linear backwards;
  animation-delay: calc(var(--t0) + (var(--t, 0) * 10 + var(--u, 0)) * var(--step));
}
.demo-text i:last-of-type {
  animation-duration: calc(var(--t-range) - var(--t0) - (var(--t, 0) * 10 + var(--u, 0)) * var(--step));
}
.demo-text i:nth-of-type(10n + 1) { --u: 1; }
.demo-text i:nth-of-type(10n + 2) { --u: 2; }
.demo-text i:nth-of-type(10n + 3) { --u: 3; }
.demo-text i:nth-of-type(10n + 4) { --u: 4; }
.demo-text i:nth-of-type(10n + 5) { --u: 5; }
.demo-text i:nth-of-type(10n + 6) { --u: 6; }
.demo-text i:nth-of-type(10n + 7) { --u: 7; }
.demo-text i:nth-of-type(10n + 8) { --u: 8; }
.demo-text i:nth-of-type(10n + 9) { --u: 9; }
.demo-text i:nth-of-type(n + 10) { --t: 1; }
.demo-text i:nth-of-type(n + 20) { --t: 2; }
.demo-text i:nth-of-type(n + 30) { --t: 3; }
.demo-text i:nth-of-type(n + 40) { --t: 4; }
.demo-text i:nth-of-type(n + 50) { --t: 5; }
.demo-text i:nth-of-type(n + 60) { --t: 6; }
.demo-text i:nth-of-type(n + 70) { --t: 7; }
.demo-text i:nth-of-type(n + 80) { --t: 8; }
.demo-text i:nth-of-type(n + 90) { --t: 9; }
.demo-text i:nth-of-type(n + 100) { --t: 10; }
.demo-text i:nth-of-type(n + 110) { --t: 11; }
.demo-text i:nth-of-type(n + 120) { --t: 12; }

/* Avant la frappe : « Écris. » et le curseur, comme dans l'app. */
.demo-placeholder {
  position: absolute;
  top: var(--pad-top);
  left: var(--pad-x);
  color: var(--muted);
  opacity: 0;
  animation: demo-hold var(--t0) linear;
}
.demo-placeholder::before {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-right: 1px;
  background: var(--accent);
  vertical-align: text-bottom;
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem 0.75rem var(--pad-x);
  font-size: 0.8125rem;
  color: var(--muted);
}
.demo-status {
  display: grid;
}
.demo-status span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.demo-status span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}
.demo-status-before {
  opacity: 0;
  animation: demo-hold var(--t-range) linear;
}
.demo-status-after {
  color: var(--text-soft);
  animation: demo-in 0.4s var(--ease) var(--t-range) backwards;
}
.demo-status .demo-status-after::before {
  background: var(--ok);
}
.demo-button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  animation: demo-press 0.5s var(--ease) calc(var(--t-range) - 0.3s);
}

.demo-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 1px solid var(--line);
  background: var(--bg);
}
.demo-card-head {
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-meta {
  display: grid;
  gap: 0.95rem;
}
.demo-row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}
.demo-row dt {
  font-size: 0.8125rem;
  color: var(--muted);
}
.demo-row dd {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-soft);
  animation: demo-in 0.5s var(--ease) backwards;
}
.demo-row:nth-child(1) dd { animation-delay: calc(var(--t-range) + 0.35s); }
.demo-row:nth-child(2) dd { animation-delay: calc(var(--t-range) + 0.75s); }
.demo-row:nth-child(4) dd { animation-delay: calc(var(--t-range) + 1.75s); }
.demo-row .demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  animation: none;
}
.demo-row .demo-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.demo-tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.8125rem;
  animation: demo-in 0.4s var(--ease) backwards;
}
.demo-tag:nth-child(1) { animation-delay: calc(var(--t-range) + 1.15s); }
.demo-tag:nth-child(2) { animation-delay: calc(var(--t-range) + 1.27s); }
.demo-tag:nth-child(3) { animation-delay: calc(var(--t-range) + 1.39s); }
.demo-tag:nth-child(4) { animation-delay: calc(var(--t-range) + 1.51s); }
.demo-tag:nth-child(n + 5) { animation-delay: calc(var(--t-range) + 1.63s); }
.demo-folder {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.demo-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.demo-controls {
  display: flex;
  flex: none;
  gap: 1.25rem;
}

/* Pause sans JavaScript : une case à cocher invisible suspend les animations (WCAG 2.2.2).
   Elle et son libellé n'existent que pendant que la démo joue. */
.demo-pause {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
}
.demo-pause,
.demo-pause-label {
  visibility: hidden;
  animation: demo-shown var(--t-end) linear;
}
.demo-pause:checked,
.demo-pause:checked ~ .demo-frame *,
.demo-pause:checked ~ .demo-caption .demo-pause-label {
  animation-play-state: paused;
}
.demo-when-paused,
.demo-pause:checked ~ .demo-caption .demo-when-playing {
  display: none;
}
.demo-pause:checked ~ .demo-caption .demo-when-paused {
  display: inline;
}
.demo-pause:focus-visible ~ .demo-caption .demo-pause-label {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@keyframes demo-key {
  0% {
    opacity: 0;
    box-shadow: none;
  }
  1%,
  100% {
    opacity: 1;
    box-shadow: 2px 0 0 var(--accent);
  }
}
@keyframes demo-hold {
  from,
  to {
    opacity: 1;
  }
}
@keyframes demo-shown {
  from,
  to {
    visibility: visible;
  }
}
@keyframes demo-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
}
@keyframes demo-press {
  40% {
    transform: scale(0.92);
    filter: brightness(0.9);
  }
}

/* Avec JavaScript : la démo attend d'être visible, et peut être rejouée. */
.demo.is-waiting * {
  animation-play-state: paused !important;
}
.demo.is-reset * {
  animation: none !important;
}

@media (max-width: 47.99rem) {
  .demo-frame {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-editor {
    min-height: 0;
  }
  .demo-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .demo-caption {
    flex-direction: column;
  }
}

/* ---------- Pages simples et pages légales ---------- */

.simple,
.doc {
  padding-top: clamp(1.5rem, 7vw, 4rem);
}
.simple h1,
.doc h1,
.admin h1 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}
.simple p + p,
.simple .lede + p {
  margin-top: 1rem;
}
.simple > p:not(.lede):not(.eyebrow),
.questions > p,
.share > p {
  color: var(--text-soft);
}
.simple > .muted {
  color: var(--muted);
  font-size: 0.9375rem;
}
.simple h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.actions {
  margin-top: 1.75rem;
}
.big-action {
  margin-block: 2rem 1.5rem;
}

.callout {
  margin-block: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-l);
  background: var(--accent-soft);
  color: var(--text-soft);
}

.questions,
.share {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.question {
  min-width: 0;
  margin: 2rem 0 0;
  padding: 0;
  border: 0;
}
.question legend,
.question-label {
  display: block;
  padding: 0;
  font-weight: 700;
}
.question-hint {
  margin-block: 0.15rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 1rem 0 0.8rem;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--bg-elev);
  cursor: pointer;
}
.choice input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--accent);
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.skip-form {
  margin-top: 0.75rem;
}

.share-row {
  margin-top: 1rem;
}
.share-link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-family: var(--mono);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.share-status {
  min-height: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ok);
}

.doc h2 {
  margin: 2.5rem 0 0.6rem;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}
.doc p,
.doc li {
  color: var(--text-soft);
}
.doc p + p,
.doc ul + p {
  margin-top: 0.9rem;
}
.doc ul {
  padding-left: 1.2rem;
}
.doc p + ul {
  margin-top: 0.5rem;
}
.doc li + li {
  margin-top: 0.35rem;
}
.legal-row {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 0.1rem 1rem;
  padding-block: 0.6rem;
  border-top: 1px solid var(--line);
}
.legal-row dt {
  color: var(--muted);
}
@media (max-width: 36rem) {
  .legal-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  [data-demo-replay] {
    display: none !important;
  }
}
