/* LE SITE DE POMKI.APP — une feuille, aucune dépendance (verdicts du 24 octobre 2026,
   docs/DiscussionsClaudeChat/2026-10-24-amendement-landing-pomki.md §6). La page ne charge pas la feuille de l'app : les
   jetons de la palette Ardoise (packages/web/src/styles.css, thème sombre) sont RECOPIÉS ici en valeurs, sombre seulement
   (Q3). Polices servies à côté (fonts/), mêmes fichiers que l'app (garde : packages/cards/test/vps-configuration.test.ts). */

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/polices/PlexSans-Regular-latin.049f71a5f9bc.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/polices/PlexSans-SemiBold-latin.53db5a4ab28d.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'National Park';
  src: url('/polices/NationalPark-SemiBold-latin.3902032f0de4.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-text: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'National Park', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* La palette Ardoise, recopiée (--ink, --brown, --brown-line, --cream, --stone, --taupe, --ambre). */
  --bg: #232323;
  --surface: #323532;
  --border: #353c3f;
  --text: #ffffff;
  --soft: #e2f0fc;
  --muted: #abb8c4;
  --faint: #827a72; /* --umber de l'app : l'étiquette « Question » de la carte */
  --accent: #f5cb5c;
  --on-accent: #232323;
  --accent-press: #e0b845;
  --active: rgba(255, 255, 255, 0.1);
  --float-bg: rgba(50, 53, 50, 0.55);
  --float-border: rgba(183, 206, 229, 0.18);
  --rythme-leger: oklch(0.8 0.1 150);
  --rythme-equilibre: oklch(0.8 0.09 235);
  --rythme-exigeant: #f5cb5c;
  --lapse: #f26257;
  --cible-min: 44px;
  /* Les courbes de l'app (DESIGN.md §3.7) : « ta position a changé », et le léger rebond de ce qui se pose. */
  --courbe: cubic-bezier(0.2, 0.8, 0.2, 1);
  --rebond: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  /* Ce qui déborde de la colonne (l'aurore du haut de page, l'appareil qui arrive par la droite) va jusqu'au bord de
     l'écran, jamais au-delà : clip, et non hidden, ne crée pas de conteneur de défilement (l'en-tête reste collant). */
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.col {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* LES BOUTONS : la géométrie de la pièce .btn de l'app (cible de 44 px, rayon 12, 16 px, graisse 600). Le rayon est un
   jeton : l'anneau qui respire autour du bouton de fin (.respire) le reprend. */
:root {
  --rayon-btn: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--cible-min);
  padding: 0 16px;
  border-radius: var(--rayon-btn);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--text);
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:active {
  background: var(--accent-press);
}
.btn--quiet {
  color: var(--soft);
  padding: 0 12px;
}
.btn--quiet:active {
  background: var(--active);
}

/* LA BARRE */
.barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.marque {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-min);
}
/* LE LOGO (25 octobre 2026) : le mot de l'icône, lettres et pause à l'accent, trait de travail de l'anneau au texte. */
.marque .logo {
  display: block;
  height: 30px;
  width: auto;
  overflow: visible;
}
.pied .marque .logo {
  height: 24px;
}
.logo-lettres {
  fill: var(--accent);
}
.logo-travail,
.logo-pause {
  fill: none;
  stroke-linecap: round;
}
.logo-travail {
  stroke: var(--text);
}
.logo-pause {
  stroke: var(--accent);
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-weight: 600;
}

/* LE HAUT DE PAGE (variante B) : deux colonnes à l'ordinateur, le rythme à droite. */
.hero {
  display: grid;
  gap: 32px;
  padding: 24px 0 48px;
}
.hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
}
.chapo {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--soft);
  max-width: 32em;
}
.appel {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.petit {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.visuel {
  display: flex;
  justify-content: center;
}

/* LE RYTHME : le sélecteur de l'app (.workload-seg), en radios natives, sans script. La phrase dit ce que le choix
   coûte, sans nombre (verdict Q8). */
.rythme {
  width: 100%;
  max-width: 26em;
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
}
.rythme legend {
  float: left;
  width: 100%;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.seg {
  --c: var(--rythme-equilibre);
  position: relative;
  display: flex;
  padding: 4px;
  border-radius: 18px;
  border: 0.5px solid var(--float-border);
  background: var(--float-bg);
  min-height: 60px;
}
.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.seg label {
  flex: 1;
  position: relative;
  z-index: 1;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--muted);
  border-radius: 13px;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.seg-pastille {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(33.333% - 3.333px);
  border-radius: 13px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  box-shadow:
    inset 0 0 0 0.5px color-mix(in srgb, var(--c) 55%, transparent),
    0 3px 10px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition:
    transform 0.42s var(--rebond),
    background 0.2s,
    box-shadow 0.2s;
}
.seg:has(#r-leger:checked) {
  --c: var(--rythme-leger);
}
.seg:has(#r-exigeant:checked) {
  --c: var(--rythme-exigeant);
}
.seg:has(#r-leger:checked) .seg-pastille {
  transform: translateX(0);
}
.seg:has(#r-exigeant:checked) .seg-pastille {
  transform: translateX(200%);
}
.seg input:checked + label {
  color: var(--c);
}
.seg input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.rythme-phrase {
  margin: 0;
  color: var(--text);
}
.rythme-phrase span {
  display: none;
}
.rythme:has(#r-leger:checked) [data-pour='leger'],
.rythme:has(#r-equilibre:checked) [data-pour='equilibre'],
.rythme:has(#r-exigeant:checked) [data-pour='exigeant'] {
  display: inline;
}

/* LA CAPTURE de l'écran de révision, dans un cadre de téléphone. */
.telephone {
  width: 252px;
  border-radius: 28px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  flex: none;
}
.telephone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
}

/* LES SECTIONS. Elles se calculent toujours (9 novembre 2026, « Il y a un problème avec la barre qui suit le
   défilement ») : hors de l'écran, une section en content-visibility réservait une hauteur estimée, fausse de 350 à 560 px
   selon la section (Médecine : 4 301 px estimés, 3 144 réels) ; la page grandissait ou rapetissait sous le doigt, et le
   filet de lecture reculait. La revue de performance du 6 novembre 2026 y avait gagné le calcul des animations en boucle
   hors de vue : ce gain reste, posé sur les seules pièces animées de taille fixe (l'aurore, la séance au téléphone, le
   panneau de création, la carte de la page FSRS), dont la hauteur ne dépend pas de leur contenu. */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.2;
}
.texte {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--soft);
  max-width: 34em;
}
.duo {
  display: grid;
  gap: 32px;
  align-items: center;
}
.porte {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: grid;
  gap: 8px;
}
.porte h2 {
  margin: 0;
  font-size: 22px;
}
.porte p {
  margin: 0;
  line-height: 1.5;
  color: var(--soft);
  max-width: 40em;
}

/* LE PIED, EN COLONNES (verdict utilisateur du 27 octobre 2026) : la marque et les réseaux, puis Pomki, puis les
   informations légales. Au téléphone, la marque sur toute la largeur et les deux colonnes de liens côte à côte. */
.pied {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
}
.pied .col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}
.pied-marque {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
}
.pied-marque .petit {
  margin: 0;
  color: var(--muted);
}
.pied-reseaux {
  display: flex;
  gap: 4px;
  margin-left: -12px;
}
.pied-titre {
  margin: 0 0 4px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pied-colonne ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pied-colonne a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-min);
  color: var(--soft);
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) {
  .pied-colonne a:hover {
    color: var(--accent);
  }
}
@media (min-width: 900px) {
  .pied .col {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .pied-marque {
    grid-column: auto;
  }
}

/* LE PIED, PAR PRIORITÉ (22 novembre 2026 ; variante A, 23 novembre 2026) : l'appel sous la marque, puis une ligne discrète tout en bas pour les
   informations légales et la langue. */
.pied-appel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.pied-bas {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pied-bas ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pied-bas ul a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-min);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
@media (hover: hover) {
  .pied-bas ul a:hover {
    color: var(--accent);
  }
}
.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* LES PAGES DE TEXTE (mentions légales, confidentialité) */
.doc {
  padding: 24px 0 48px;
  max-width: 44em;
}
.doc h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.1;
}
.doc h2 {
  margin: 32px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}
.doc p,
.doc li {
  color: var(--soft);
}
.doc ul {
  padding-left: 1.25em;
}
.doc li + li {
  margin-top: 6px;
}
.doc a:not(.btn) {
  display: inline-block;
  min-height: 24px;
}
/* Les textes de l'abonnement (lot T1, 5 novembre 2026) : un sous-intertitre, l'encadré de la garantie légale (art.
   D. 211-4 du code de la consommation, un encadré imposé) et les tableaux de la page Confidentialité. Enfants directs de
   l'article seulement : l'article sur FSRS a ses propres h3 et son encadré de fin. Un tableau trop large défile en lui-même,
   jamais la page. */
.doc > h3 {
  margin: 24px 0 6px;
  font-size: 18px;
  line-height: 1.3;
}
.doc > h2[id],
.doc > h3[id] {
  scroll-margin-top: 88px;
}
.doc > blockquote {
  margin: 16px 0;
  padding: 4px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.doc > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.doc > table th,
.doc > table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--soft);
  min-width: 9em;
}
.doc > table th {
  color: var(--text);
}

@media (min-width: 900px) {
  .col {
    padding: 0 32px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 64px;
    padding: 64px 0;
  }
  .hero h1 {
    font-size: 52px;
  }
  .chapo {
    font-size: 20px;
  }
  .rythme {
    width: 26em;
  }
  .telephone {
    width: 312px;
    border-radius: 32px;
  }
  .duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
  .section {
    padding: 64px 0;
  }
  .doc h1 {
    font-size: 44px;
  }
}

/* ═══════════════ LE JUICE DU SITE (25 octobre 2026, branche landing-juice) ═══════════════
   Demande de l'utilisateur : « ajouter du juice et rendre le tout plus joli, que ça bouge, que ce soit interactif,
   moderne ». CSS seul : la CSP de _headers n'autorise aucun script, et ne change pas. Le langage est celui de la
   notation de l'app (DESIGN.md §4.3) : la carte notée part (à gauche pour « Pas su », vers le haut pour une
   réussite), le nom de la note monte, une onde et des éclats ; les couleurs disent la note, jamais un succès.
   Chaque mouvement a son équivalent sous « réduire les animations », en bas de la feuille. */

/* LA BARRE reste en haut, sur un fond qui laisse deviner la page ; un filet suit la lecture de la page. Elle seule : le
   sélecteur vise l'en-tête de la page (body > header), jamais un <header> du contenu (9 novembre 2026 : l'en-tête du
   titre d'À propos héritait du fond, du plan et d'un second filet de lecture). */
body > header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
body > header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rythme-leger), var(--rythme-equilibre), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* LES BOUTONS PRINCIPAUX : ils se lèvent au survol, un reflet les traverse, ils s'enfoncent à l'appui. */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    translate 0.25s var(--rebond),
    scale 0.2s var(--rebond),
    box-shadow 0.25s;
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%);
  translate: -110% 0;
}
.btn--primary:active {
  scale: 0.96;
}
@media (hover: hover) {
  .btn--primary:hover {
    translate: 0 -2px;
    box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  }
  .btn--primary:hover::after {
    translate: 110% 0;
    transition: translate 0.7s var(--courbe);
  }
  .btn--quiet {
    transition: background 0.2s;
  }
  .btn--quiet:hover {
    background: var(--active);
  }
}

/* LE HAUT DE PAGE : une aurore aux trois couleurs du rythme dérive lentement derrière le texte. Elle couvre toute la
   largeur de l'écran, et son masque s'éteint aux quatre bords : posée dans la colonne, elle s'arrêtait net à 1 280 px
   (critique de design du 3 novembre 2026). */
.scene {
  position: relative;
}
.aurore {
  position: absolute;
  inset: -64px calc(50% - 50vw) 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 100%);
  /* Loin de l'écran, l'aurore ne se calcule plus (revue de performance du 6 novembre 2026) : sa dérive tournait encore au
     bas de la page. Elle rogne déjà ce qui dépasse, la règle n'en change pas le dessin. */
  content-visibility: auto;
}
.aurore span {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.28;
}
.aurore span:nth-child(1) {
  left: 4%;
  top: 8%;
  background: var(--rythme-leger);
  animation: aurore-a 19s ease-in-out infinite alternate;
}
.aurore span:nth-child(2) {
  left: 38%;
  top: 22%;
  background: var(--rythme-equilibre);
  animation: aurore-b 23s ease-in-out infinite alternate;
}
.aurore span:nth-child(3) {
  right: 2%;
  top: 0;
  background: var(--accent);
  opacity: 0.22;
  animation: aurore-c 17s ease-in-out infinite alternate;
}
@keyframes aurore-a {
  to {
    transform: translate(18%, 14%) scale(1.15);
  }
}
@keyframes aurore-b {
  to {
    transform: translate(-16%, -10%) scale(0.9);
  }
}
@keyframes aurore-c {
  to {
    transform: translate(-12%, 18%) scale(1.1);
  }
}
.hero {
  position: relative;
}

/* L'arrivée : le titre, la phrase, l'appel puis le rythme montent l'un après l'autre. */
.hero h1,
.chapo,
.hero .appel,
.hero .rythme {
  animation: monte 0.7s var(--courbe) both;
}
.chapo {
  animation-delay: 0.08s;
}
.hero .appel {
  animation-delay: 0.16s;
}
.hero .rythme {
  animation-delay: 0.26s;
}
.hero h1::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--rythme-equilibre));
  transform-origin: 0 50%;
  animation: trace 0.8s var(--courbe) 0.5s both;
}
@keyframes monte {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes trace {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* LE RYTHME : sa couleur teinte tout le cadre, la pastille rebondit, la phrase se pose, et une pile de cartes dit, sans
   nombre (Q8), que le rythme demande plus ou moins de cartes chaque jour. */
.rythme {
  --c: var(--rythme-equilibre);
  position: relative;
  box-shadow: 0 24px 70px -30px color-mix(in srgb, var(--c) 55%, transparent);
  border-color: color-mix(in srgb, var(--c) 22%, var(--border));
  transition:
    box-shadow 0.4s,
    border-color 0.4s;
}
.rythme:has(#r-leger:checked) {
  --c: var(--rythme-leger);
}
.rythme:has(#r-exigeant:checked) {
  --c: var(--rythme-exigeant);
}
.seg input:checked + label {
  animation: choisi 0.36s var(--rebond);
}
@keyframes choisi {
  40% {
    transform: scale(1.08);
  }
}
.rythme:has(#r-leger:checked) [data-pour='leger'],
.rythme:has(#r-equilibre:checked) [data-pour='equilibre'],
.rythme:has(#r-exigeant:checked) [data-pour='exigeant'] {
  animation: se-pose 0.36s var(--courbe);
}
@keyframes se-pose {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.rythme-phrase span {
  min-height: 3em;
}
.pile {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 64px;
  padding-left: 18px;
}
.pile i {
  width: 34px;
  height: 46px;
  margin-left: -18px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 6px 14px -6px rgb(0 0 0 / 0.6);
  transform-origin: 50% 120%;
  transition:
    transform 0.45s var(--rebond),
    opacity 0.25s,
    background 0.4s,
    border-color 0.4s;
}
.pile i:nth-child(odd) {
  rotate: -5deg;
}
.pile i:nth-child(even) {
  rotate: 4deg;
}
.pile i:nth-child(2) {
  transition-delay: 0.03s;
}
.pile i:nth-child(3) {
  transition-delay: 0.06s;
}
.pile i:nth-child(4) {
  transition-delay: 0.09s;
}
.pile i:nth-child(5) {
  transition-delay: 0.12s;
}
.pile i:nth-child(6) {
  transition-delay: 0.15s;
}
.pile i:nth-child(7) {
  transition-delay: 0.18s;
}
.pile i:nth-child(8) {
  transition-delay: 0.21s;
}
.rythme:has(#r-leger:checked) .pile i:nth-child(n + 4),
.rythme:has(#r-equilibre:checked) .pile i:nth-child(n + 6) {
  transform: translateY(24px) scale(0.4);
  opacity: 0;
}

/* LA CARTE À ESSAYER : un formulaire sans envoi. La case retourne la carte, les radios la notent, « Recommencer »
   (un bouton reset) remet tout comme au départ, et les animations repartent. */
.essais {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}
.essai {
  --n: var(--text);
  display: none;
  gap: 14px;
}
.etapes-illustrees:has(#m-anglais:checked) [data-matiere='anglais'],
.etapes-illustrees:has(#m-droit:checked) [data-matiere='droit'],
.etapes-illustrees:has(#m-chimie:checked) [data-matiere='chimie'],
.etapes-illustrees:has(#m-maths:checked) [data-matiere='maths'],
.etapes-illustrees:has(#m-histoire:checked) [data-matiere='histoire'],
.etapes-illustrees:has(#m-medecine:checked) [data-matiere='medecine'] {
  display: grid;
}

/* Les matières, en pastilles : une radio native par matière ; choisir en montre la carte, qui se pose. */
.puces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.puces legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.puces input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.puces label {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-min);
  padding: 0 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--soft);
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    scale 0.15s var(--rebond);
}
.puces label:active {
  scale: 0.95;
}
.puces input:checked + label {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent);
  animation: choisi 0.36s var(--rebond);
}
.puces input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (hover: hover) {
  .puces label:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  }
}
.essai:has(.essai-notes [value='1']:checked) {
  --n: var(--lapse);
}
.essai:has(.essai-notes [value='2']:checked) {
  --n: var(--accent);
}
.essai-bascule,
.essai-notes input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.essai-scene {
  position: relative;
  aspect-ratio: 5 / 4;
  perspective: 1200px;
}
.essai-carte {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: carte-pose 0.5s var(--rebond) both;
}
.essai-pivot {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.essai:has(.essai-bascule:checked) .essai-pivot {
  transform: rotateY(180deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.3, 0.64, 1);
}
/* LA FACE EST CELLE DE L'APP (retour utilisateur du 5 novembre 2026 : « Les cartes du site ne représentent pas les cartes
   de l'application ») : le cadre de `.card-face` (packages/web/src/styles.css de Monki), le texte centré en haut, à 20 px et
   en graisse normale ; l'étiquette « Question » ou « Réponse » au-dessus ; au verso, la réponse SEULE : l'app retire tout ce
   qui précède le `<hr id=answer>` du gabarit (`faceHtmlPair`, packages/web/src/face-content.ts ; retour utilisateur du
   même jour : « Les réponses ne sont pas affichées sur la même page que la question dans l'app »). Le texte à trous garde
   sa phrase entière, comme dans Anki : son gabarit n'a pas de séparation. La matière n'est plus sur la carte : l'app ne l'y écrit pas, les pastilles la disent. */
.essai-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  font-size: 20px;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.essai-verso {
  transform: rotateY(180deg);
}
/* Le filigrane de face de l'app (`.face-watermark`) : petit, espacé, gris au recto, ambre au verso. */
.essai-face-nom {
  flex: none;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.essai-verso .essai-face-nom {
  color: var(--accent);
}
.essai-matiere {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
/* Le texte à trous, comme dans l'app (`.cloze`) : « […] » au recto, le mot au verso, en ambre demi-gras, sans fond. */
.essai-trou {
  font-weight: 600;
  color: var(--accent);
  background: none;
}
/* La carte à saisir : `pattern` et `:valid` jugent la réponse, sans script. */
.essai-saisie {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.essai-saisie input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--float-bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  transition: border-color 0.2s;
}
.essai-saisie input::placeholder {
  color: var(--muted);
}
.essai-saisie input:focus {
  outline: none;
  border-color: var(--accent);
}
.essai-saisie input:valid {
  border-color: var(--rythme-leger);
}
.essai-juste {
  display: none;
  font-weight: 600;
  color: var(--rythme-leger);
}
.essai-saisie:has(input:valid) .essai-juste {
  display: inline;
  animation: choisi 0.4s var(--rebond);
}
.essai-r {
  align-self: stretch;
}
.essai-bascule:focus-visible ~ .essai-scene .essai-face {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (hover: hover) {
  .essai-carte:hover .essai-face {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.14),
      0 2px 0 color-mix(in srgb, var(--surface) 70%, black),
      0 4px 0 color-mix(in srgb, var(--surface) 50%, black),
      0 10px 20px -10px rgb(0 0 0 / 0.75),
      0 0 40px -12px color-mix(in srgb, var(--accent) 35%, transparent);
  }
}

/* LA BARRE DU BAS DE L'APP (`.rating-bar-split`) : « Voir la réponse » tant que la carte montre la question, puis les
   quatre notes, « Pas su » dans son bloc et les trois réussites dans le leur, chacune avec le délai qu'afficherait l'app
   pour une carte neuve. Les deux occupent la même place ; les notes n'existent (ni au doigt ni au clavier) qu'une fois la
   carte retournée. */
.essai-bas {
  display: grid;
}
.essai-bas > * {
  grid-area: 1 / 1;
}
.essai-voir,
.essai-bloc {
  display: flex;
  padding: 6px;
  border-radius: 16px;
  border: 0.5px solid var(--float-border);
  background: var(--float-bg);
}
.essai-voir {
  align-items: center;
  justify-content: center;
  min-height: 70px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background-clip: padding-box;
  transition:
    opacity 0.2s,
    visibility 0s;
}
.essai-voir:active {
  background-color: var(--active);
}
@media (hover: hover) {
  .essai-voir:hover {
    background-color: color-mix(in srgb, var(--text) 6%, var(--surface));
  }
}
.essai:has(.essai-bascule:checked) .essai-voir {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.15s,
    visibility 0s linear 0.15s;
}
.essai-bloc {
  flex: 0.85;
  min-width: fit-content;
}
.essai-bloc--reussites {
  flex: 3.15;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 8px;
}
.essai-notes {
  display: flex;
  gap: 14px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.2s,
    transform 0.3s var(--courbe),
    visibility 0s linear 0.3s;
}
.essai:has(.essai-bascule:checked):not(:has([name='note']:checked)) .essai-notes {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.25s 0.25s,
    transform 0.45s var(--rebond) 0.25s,
    visibility 0s;
}
.essai-notes label {
  flex: 1;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s,
    scale 0.15s var(--rebond);
}
.essai-notes .essai-lapse {
  color: var(--lapse);
}
/* La barre très étroite de l'app : sous 348 px de fenêtre, les libellés passent à 13 px et la barre garde sa forme. La carte,
   elle, s'allonge un peu, pour que la réponse la plus longue tienne sans défiler. */
@media (max-width: 347px) {
  .essai-notes label {
    font-size: 13px;
  }
  .essai-notes small {
    font-size: 11px;
  }
  .essai-scene {
    aspect-ratio: 1 / 1.05;
  }
}
.essai-notes small {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.essai-notes label:active {
  background: var(--active);
  scale: 0.95;
}
.essai-notes input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
@media (hover: hover) {
  .essai-notes label:hover {
    background: var(--active);
  }
}

/* La note posée : la carte part, le nom monte, l'onde et les éclats partent du centre, puis la suite se dit. */
.essai:has([name='note']:checked) .essai-carte {
  pointer-events: none;
  animation: carte-monte 0.42s var(--courbe) forwards;
}
.essai:has(.essai-notes [value='1']:checked) .essai-carte {
  animation-name: carte-gauche;
}
@keyframes carte-pose {
  from {
    transform: translateY(16px) scale(0.96);
    opacity: 0.35;
  }
}
@keyframes carte-monte {
  to {
    transform: translateY(-36px) scale(0.96);
    opacity: 0;
  }
}
@keyframes carte-gauche {
  to {
    transform: translateX(-115%) rotate(-9deg);
    opacity: 0;
  }
}
.essai-nom {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  font-size: 30px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  color: var(--n);
  opacity: 0;
  transform: translate(-50%, -50%);
  text-shadow:
    0 1px 0 var(--bg),
    0 0 12px rgb(35 35 35 / 0.9);
}
.essai:has(.essai-notes [value='1']:checked) .essai-nom[data-pour='1'],
.essai:has(.essai-notes [value='2']:checked) .essai-nom[data-pour='2'],
.essai:has(.essai-notes [value='3']:checked) .essai-nom[data-pour='3'],
.essai:has(.essai-notes [value='4']:checked) .essai-nom[data-pour='4'] {
  animation: nom-qui-monte 0.9s var(--courbe) both;
}
@keyframes nom-qui-monte {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
  }
  12% {
    transform: translate(-50%, calc(-50% - 11px)) scale(1.18);
    opacity: 1;
  }
  45% {
    transform: translate(-50%, calc(-50% - 32px)) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, calc(-50% - 90px)) scale(0.96);
    opacity: 0;
  }
}
@keyframes nom-sur-place {
  12%,
  60% {
    opacity: 1;
  }
}
.essai-onde {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--n) 50%, transparent), transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.essai:has([name='note']:checked) .essai-onde {
  animation: onde 0.6s ease-out;
}
@keyframes onde {
  from {
    transform: scale(0.2);
    opacity: 0.8;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}
.essai-eclats {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}
.essai-eclats i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--n);
  opacity: 0;
}
.essai-eclats i:nth-child(1) {
  --a: 0deg;
}
.essai-eclats i:nth-child(2) {
  --a: 45deg;
}
.essai-eclats i:nth-child(3) {
  --a: 90deg;
}
.essai-eclats i:nth-child(4) {
  --a: 135deg;
}
.essai-eclats i:nth-child(5) {
  --a: 180deg;
}
.essai-eclats i:nth-child(6) {
  --a: 225deg;
}
.essai-eclats i:nth-child(7) {
  --a: 270deg;
}
.essai-eclats i:nth-child(8) {
  --a: 315deg;
}
.essai:has([name='note']:checked) .essai-eclats i {
  animation: eclat 0.65s var(--courbe);
}
.essai:has([name='note']:checked) .essai-eclats i:nth-child(even) {
  animation-duration: 0.8s;
}
@keyframes eclat {
  from {
    transform: rotate(var(--a)) translateY(-24px) scale(1);
    opacity: 1;
  }
  to {
    transform: rotate(var(--a)) translateY(-110px) scale(0.3);
    opacity: 0;
  }
}
.essai-apres {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
}
.essai-apres p {
  display: none;
  margin: 0;
  max-width: 18em;
  font-size: 18px;
  line-height: 1.45;
  color: var(--soft);
}
.essai:has([name='note']:checked) .essai-apres {
  visibility: visible;
  opacity: 1;
  animation: apres-entre 0.45s var(--rebond) 0.4s both;
}
.essai:has(.essai-notes [value='1']:checked) .essai-apres [data-pour='rate'],
.essai:has([name='note']:checked):not(:has(.essai-notes [value='1']:checked)) .essai-apres [data-pour='reussi'] {
  display: block;
}
@keyframes apres-entre {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

/* LA CAPTURE : le téléphone flotte sur une lueur d'or. */
.telephone {
  box-shadow:
    0 40px 90px -40px color-mix(in srgb, var(--accent) 45%, transparent),
    0 20px 50px -20px rgb(0 0 0 / 0.7);
}

/* « TU VIENS D'ANKI ? » : un liseré qui tourne lentement autour du cadre. */
@property --tour {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
/* Le liseré vit dans sa propre couche (.porte-anneau, revue du 9 novembre 2026) : posée en absolu sur le cadre, sa taille
   vient du cadre et jamais de son contenu, si bien qu'elle peut ne plus se calculer hors de la vue (content-visibility)
   sans changer la hauteur de la page. Avant, l'angle animé repeignait le cadre à chaque image, même tout en bas. */
.porte {
  position: relative;
  border: 1px solid transparent;
}
.porte-anneau {
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--tour),
    var(--border) 0deg,
    var(--accent) 50deg,
    var(--rythme-equilibre) 110deg,
    var(--border) 170deg,
    var(--border) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  content-visibility: auto;
  animation: tour 9s linear infinite;
}
@keyframes tour {
  to {
    --tour: 360deg;
  }
}

/* Un lien dans la petite phrase sous l'appel : 24 px de haut au moins (WCAG 2.5.8, exception en ligne). */
.petit a {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}

/* LA BANDE DES ENGAGEMENTS (maquette du 25 octobre 2026) : à la place des chiffres d'usage que Pomki n'a pas, quatre
   engagements vérifiables, chacun appuyé sur PRIVACY.md ou sur ce que l'app fait. Sous le haut de page, sans cadre. */
.sr-seul {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.engagements {
  padding: 8px 0 40px;
}
.engagements ul {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.engagements li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: start;
}
.engagements svg {
  grid-row: span 2;
  margin-top: 2px;
  color: var(--accent);
}
.engagements h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.35;
}
.engagements p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--soft);
}

/* LE CODE QR, POUR QUI VISITE DEPUIS L'ORDINATEUR : il ouvre Pomki sur le téléphone. Il ne paraît que sur un grand écran
   piloté à la souris ; au téléphone, il n'aurait rien à scanner. */
.qr-ordi {
  display: none;
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .qr-ordi {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    max-width: 26em;
  }
  .qr-ordi img {
    flex: none;
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.7);
  }
}

/* LA FAQ : des blocs dépliables natifs (<details>), sans script ; la flèche tourne à l'ouverture. */
.faq {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  max-width: 46em;
}
/* LES GROUPES DE LA FAQ (maquette du 22 novembre 2026) : un petit intertitre au ton du surtitre (.essai-matiere), qui
   range les questions dans l'ordre du cheminement d'un visiteur. Le premier colle au titre de la section. */
.faq .faq-groupe {
  margin: 22px 0 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.faq .faq-groupe:first-child {
  margin-top: 0;
}
.faq details {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--rebond);
}
.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 14px;
}
.faq details p a {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}
.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  line-height: 1.55;
  color: var(--soft);
  animation: se-pose 0.3s var(--courbe);
}
@media (hover: hover) {
  .faq summary:hover {
    color: var(--accent);
  }
}
@media (min-width: 900px) {
  .engagements ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
}

/* « NÉ À MONTPELLIER » : une photo prise par l'éditeur (25 octobre 2026), réencodée sans métadonnées, et l'histoire de
   Pomki, qui mène à la page À propos. La même photo ouvre la page À propos. */
.histoire {
  display: grid;
  gap: 24px;
  align-items: center;
}
.photo-appui {
  position: relative;
  display: block;
  border-radius: 18px;
  box-shadow: 0 30px 70px -35px rgb(0 0 0 / 0.8);
}
.photo-appui img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
/* LES SECTIONS REGROUPÉES (22 novembre 2026, maquette) : la deuxième partie d'une section regroupée prend l'écart d'une
   section, sans en ouvrir une nouvelle. */
.regroupe-suite {
  margin-top: clamp(56px, 9vw, 112px);
}
/* Cible d'une ancre (la FAQ, « /#questions » de l'en-tête) : son titre s'arrête sous l'en-tête collant, avec l'écart des titres
   d'article (.doc > h2[id]). */
.regroupe-suite[id] {
  scroll-margin-top: 88px;
}
.histoire-lien {
  margin-top: 8px;
  padding-left: 0;
  color: var(--accent);
}
.histoire-lien::after {
  content: '→';
  transition: translate 0.2s var(--rebond);
}
@media (hover: hover) {
  .histoire-lien:hover::after {
    translate: 4px 0;
  }
}
.doc-photo {
  margin: 24px 0 8px;
}
/* La page À propos est signée : « Matys », dans la police des titres. Un champ à part (revue du 4 novembre 2026) : une
   phrase ajoutée à la fin du texte ne prend pas la signature. */
.doc--apropos .apropos-signature {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text);
}
@media (min-width: 900px) {
  .histoire {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
}

/* LE CALENDRIER DE L'HISTOIRE DE POMKI (maquette du 25 octobre 2026) : le calendrier des statistiques de l'app, sur les
   commits de Monki (historique.mjs). Une colonne par semaine, quatre paliers. */
.calendrier {
  margin: 20px 0 4px;
}
.cal {
  display: flex;
  gap: 4px;
  padding-top: 18px;
  max-width: 100%;
  overflow-x: auto;
}
.cal-semaine {
  position: relative;
  display: grid;
  grid-template-rows: repeat(7, 16px);
  gap: 4px;
}
.cal-semaine:not([data-mois=''])::before {
  content: attr(data-mois);
  position: absolute;
  top: -18px;
  left: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.cal i {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--bg);
  animation: se-pose 0.5s var(--courbe) both;
}
.cal i[data-palier='hors'] {
  background: transparent;
}
.cal i[data-palier='1'] {
  background: color-mix(in srgb, var(--accent) 28%, var(--bg));
}
.cal i[data-palier='2'] {
  background: color-mix(in srgb, var(--accent) 50%, var(--bg));
}
.cal i[data-palier='3'] {
  background: color-mix(in srgb, var(--accent) 75%, var(--bg));
}
.cal i[data-palier='4'] {
  background: var(--accent);
}
@media (hover: hover) {
  .cal i:not([data-palier='hors']):hover {
    outline: 2px solid var(--text);
    outline-offset: 1px;
  }
}
.calendrier figcaption {
  margin-top: 10px;
  max-width: 30em;
}

/* LES TUILES (maquette du 25 octobre 2026 ; refaites le 3 novembre 2026, « Refaisons la partie tuiles du site. Elle n'est
   plus au niveau du reste »). Chaque tuile est une carte en relief, comme la carte de la démo et les témoignages : une
   scène en haut, sur toute la largeur, teintée de la couleur de la tuile, où un objet de Pomki se pose en relief ; puis
   son titre et sa phrase. Sur une rangée, les scènes, les titres et les phrases s'alignent d'une tuile à l'autre
   (subgrid). Au survol, ou quand la tuile entre à l'écran sur un écran tactile, l'objet montre ce qu'il fait. */
.bento {
  display: grid;
  gap: 18px 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.bento-carte {
  --teinte: var(--accent);
  display: grid;
  grid-template-rows: auto auto 1fr;
  row-gap: 8px;
  padding: 0 0 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, #fff 3%), color-mix(in srgb, var(--surface) 45%, var(--bg)));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.07),
    inset 0 -3px 0 rgb(0 0 0 / 0.22),
    0 22px 44px -28px rgb(0 0 0 / 0.9);
  /* clip, jamais hidden : un bloc en overflow: hidden est un conteneur de défilement, et animation-timeline: view() s'y
     accrocherait au lieu de la page (retour utilisateur du 25 octobre 2026). */
  overflow: clip;
  transition:
    translate 0.3s var(--rebond),
    border-color 0.3s,
    box-shadow 0.3s;
}
.bento-carte[data-tuile='trous'] {
  --teinte: var(--rythme-equilibre);
}
.bento-carte[data-tuile='minuteur'] {
  --teinte: var(--rythme-leger);
}
@media (hover: hover) {
  .bento-carte:hover {
    border-color: color-mix(in srgb, var(--teinte) 40%, var(--border));
  }
}
.bento-carte h3 {
  margin: 10px 22px 0;
  font-size: 18px;
  line-height: 1.3;
}
.bento-carte p {
  margin: 0 22px;
  line-height: 1.5;
  color: var(--soft);
}
.bento-visuel {
  position: relative;
  display: grid;
  place-items: center;
  height: 190px;
  background:
    radial-gradient(70% 85% at 50% 38%, color-mix(in srgb, var(--teinte) 16%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), color-mix(in srgb, var(--bg) 30%, transparent));
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  overflow: clip;
}
/* L'objet posé dans la scène : la face d'une carte de Pomki, en relief (liseré clair dessus, tranche sombre dessous). */
.bento-objet,
.bento-cal .cal {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 90%, #fff 5%), var(--surface));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    inset 0 -4px 0 rgb(0 0 0 / 0.28),
    0 18px 32px -18px rgb(0 0 0 / 0.85);
}

/* IMAGES À TROUS : le schéma sur une carte, deux étiquettes masquées comme dans l'app, une révélée. */
.bento-schema {
  position: absolute;
  inset: 20px 12% 20px 12%;
  width: 76%;
  height: calc(100% - 40px);
  padding: 0;
  border-radius: 16px;
}
.schema-cellule {
  fill: color-mix(in srgb, var(--rythme-equilibre) 30%, var(--bg));
  stroke: var(--rythme-equilibre);
  stroke-width: 3;
}
.schema-noyau {
  fill: color-mix(in srgb, var(--rythme-equilibre) 55%, var(--bg));
  stroke: color-mix(in srgb, var(--rythme-equilibre) 70%, var(--bg));
  stroke-width: 2;
}
.schema-trait {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}
.bento-pastille {
  position: absolute;
  left: calc(12% + 76% * 0.6);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--rythme-equilibre) 22%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--rythme-equilibre) 70%, transparent);
  box-shadow: 0 6px 14px -8px rgb(0 0 0 / 0.8);
}
/* Le masque, tel que l'app le peint : un aplat ambre en relief, un point d'interrogation. */
.bento-pastille--masque {
  color: var(--on-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent));
  border-color: color-mix(in srgb, var(--accent) 60%, #000);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 0 -2px 0 rgb(0 0 0 / 0.18),
    0 6px 14px -8px rgb(0 0 0 / 0.8);
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.bento-pastille[data-place='1'] {
  top: calc(20px + (100% - 40px) * 0.266);
}
.bento-pastille[data-place='2'] {
  top: 50%;
}
.bento-pastille[data-place='3'] {
  top: calc(20px + (100% - 40px) * 0.746);
}
.pastille-mot {
  display: none;
}

/* LA MANETTE : ses quatre boutons seuls, en losange, en touches en relief (3 novembre 2026 : la manette entière, dessinée
   deux fois, paraissait « étrange » ; verdict « A · les quatre boutons » sur trois formes). Ni lettres ni couleurs de
   fabricant. Le bouton de droite donne la note : ambre au repos, il s'enfonce en boucle au survol. */
.bento-manette {
  display: grid;
  grid-template-areas: '. h .' 'g . d' '. b .';
  gap: 4px;
}
.bento-manette i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 80%, #fff 10%), var(--surface));
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    inset 0 -4px 0 rgb(0 0 0 / 0.3),
    0 10px 18px -10px rgb(0 0 0 / 0.9);
}
.bento-manette i:nth-child(1) { grid-area: h; }
.bento-manette i:nth-child(2) { grid-area: g; }
.bento-manette i:nth-child(4) { grid-area: b; }
.bento-manette i:nth-child(3) {
  grid-area: d;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, #fff), var(--accent));
  border-color: color-mix(in srgb, var(--accent) 60%, #000);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 0 -3px 0 rgb(0 0 0 / 0.2),
    0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent),
    0 10px 22px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.bento-note {
  position: absolute;
  top: 26px;
  left: calc(50% + 38px);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}

/* LE MINUTEUR : l'anneau, 25 minutes de révision puis 5 de pause ; au centre, le temps qui reste. */
@property --pomodoro {
  syntax: '<angle>';
  initial-value: 360deg;
  inherits: false;
}
@property --reste {
  syntax: '<integer>';
  initial-value: 1500;
  inherits: true;
}
.bento-anneau {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 136px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--surface) 90%, #fff 4%) 0 62%, transparent 63%);
  box-shadow: 0 18px 32px -18px rgb(0 0 0 / 0.85);
}
.bento-anneau::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 min(var(--pomodoro), 300deg), var(--rythme-leger) 0 var(--pomodoro), var(--bg) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 80%, #000 81%);
  mask: radial-gradient(farthest-side, transparent 80%, #000 81%);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 35%, transparent));
}
.anneau-temps {
  grid-area: 1 / 1;
  translate: 0 -8px;
  counter-reset: minutes round(down, var(--reste) / 60) secondes mod(var(--reste), 60);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.anneau-temps::before {
  content: counter(minutes, decimal-leading-zero) ':' counter(secondes, decimal-leading-zero);
}
.anneau-focus,
.anneau-pause {
  grid-area: 1 / 1;
  translate: 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.anneau-pause {
  opacity: 0;
  color: var(--rythme-leger);
}

/* LES DEADLINES : les nouvelles cartes réparties à parts égales, jour après jour, jusqu'au drapeau du jour J. */
.bento-barres {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 104px;
  padding: 0 4px 2px;
  border-bottom: 2px solid var(--border);
}
.bento-barres i {
  width: 16px;
  height: 58%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 95%, #fff), color-mix(in srgb, var(--accent) 70%, var(--surface)));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 6px 12px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transform-origin: bottom;
}
.bento-barres b {
  position: relative;
  align-self: stretch;
  width: 2px;
  margin-left: 10px;
  background: var(--text);
}
.bento-barres b span {
  position: absolute;
  top: 0;
  left: 2px;
  padding: 3px 10px 3px 8px;
  border-radius: 0 6px 6px 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--text);
  transform-origin: left center;
}

/* LES STATISTIQUES : le calendrier de l'histoire de Pomki, en petit, sur une carte. */
.bento-cal .cal {
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  /* Pas de défilement ici (il sert au grand calendrier) : une case agrandie au survol, en bordure, faisait paraître des
     barres de défilement (retour utilisateur du 25 octobre 2026). Elle déborde librement ; la carte la rogne. */
  overflow: visible;
}
.bento-cal .cal-semaine {
  grid-template-rows: repeat(7, 10px);
  gap: 3px;
}
.bento-cal .cal-semaine::before {
  display: none;
}
.bento-cal .cal i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* CE QUE CHAQUE OBJET FAIT : au survol de sa tuile à la souris ; sur un écran tactile, quand la tuile entre à l'écran.
   Sous « réduire les animations », tout reste au repos (règle globale). */
@keyframes pastille-revele {
  0%,
  35% {
    transform: translateY(-50%) rotateX(0);
  }
  50% {
    transform: translateY(-50%) rotateX(90deg);
  }
  65%,
  100% {
    transform: translateY(-50%) rotateX(0);
  }
}
@keyframes pomodoro {
  from {
    --pomodoro: 0deg;
  }
  to {
    --pomodoro: 360deg;
  }
}
/* Le temps qui reste : 25:00 jusqu'à 00:00 pendant la révision (les cinq sixièmes de l'anneau), puis 05:00 jusqu'à 00:00
   pendant la pause. */
@keyframes decompte {
  0% {
    --reste: 1500;
  }
  83% {
    --reste: 0;
  }
  83.01% {
    --reste: 300;
  }
  100% {
    --reste: 0;
  }
}
/* Les deux mots basculent d'un coup, sans fondu : sur un écran tactile l'anneau suit le défilement, et un fondu arrêté
   en chemin montrait FOCUS et PAUSE l'un sur l'autre (retour utilisateur du 25 octobre 2026, sur iPhone). */
@keyframes pomodoro-focus {
  0%,
  83% {
    opacity: 1;
    animation-timing-function: step-end;
  }
  83.01%,
  100% {
    opacity: 0;
  }
}
@keyframes pomodoro-pause {
  0%,
  83% {
    opacity: 0;
    animation-timing-function: step-end;
  }
  83.01%,
  100% {
    opacity: 1;
  }
}
@keyframes bouton-note {
  0%,
  18%,
  46%,
  100% {
    translate: 0 0;
    scale: 1;
  }
  24%,
  34% {
    translate: 0 3px;
    scale: 0.92;
  }
}
@keyframes note-monte {
  0%,
  22% {
    opacity: 0.35;
    translate: 0 4px;
  }
  32%,
  80% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0.35;
    translate: 0 4px;
  }
}
@keyframes barre-pousse {
  from {
    transform: scaleY(0);
  }
}
@keyframes drapeau {
  0%,
  100% {
    transform: skewY(0);
  }
  50% {
    transform: skewY(-8deg);
  }
}
@keyframes case-onde {
  0%,
  100% {
    filter: none;
  }
  40% {
    filter: brightness(1.6);
    transform: scale(1.2);
  }
}

@media (hover: hover) {
  .bento-carte:hover .bento-pastille--masque {
    color: var(--text);
    background: color-mix(in srgb, var(--rythme-equilibre) 22%, var(--surface));
    border-color: color-mix(in srgb, var(--rythme-equilibre) 70%, transparent);
    box-shadow: 0 6px 14px -8px rgb(0 0 0 / 0.8);
    animation: pastille-revele 0.6s var(--courbe);
  }
  .bento-carte:hover .bento-pastille--masque[data-place='2'] {
    animation-delay: 0.15s;
  }
  .bento-carte:hover .pastille-cache {
    display: none;
  }
  .bento-carte:hover .pastille-mot {
    display: inline;
  }
  .bento-carte:hover .bento-anneau::before {
    animation: pomodoro 4s linear infinite;
  }
  .bento-carte:hover .anneau-temps {
    animation: decompte 4s linear infinite;
  }
  .bento-carte:hover .anneau-focus {
    animation: pomodoro-focus 4s linear infinite;
  }
  .bento-carte:hover .anneau-pause {
    animation: pomodoro-pause 4s linear infinite;
  }
  .bento-carte:hover .bento-manette i:nth-child(3) {
    animation: bouton-note 2.2s var(--courbe) infinite;
  }
  .bento-carte:hover .bento-note {
    animation: note-monte 2.2s var(--courbe) infinite;
  }
  .bento-carte:hover .bento-barres i {
    animation: barre-pousse 0.5s var(--rebond) both;
  }
  .bento-carte:hover .bento-barres i:nth-child(2) { animation-delay: 0.05s; }
  .bento-carte:hover .bento-barres i:nth-child(3) { animation-delay: 0.1s; }
  .bento-carte:hover .bento-barres i:nth-child(4) { animation-delay: 0.15s; }
  .bento-carte:hover .bento-barres i:nth-child(5) { animation-delay: 0.2s; }
  .bento-carte:hover .bento-barres i:nth-child(6) { animation-delay: 0.25s; }
  .bento-carte:hover .bento-barres i:nth-child(7) { animation-delay: 0.3s; }
  .bento-carte:hover .bento-barres b span {
    animation: drapeau 0.8s ease-in-out 0.4s infinite;
  }
  .bento-carte:hover .bento-cal .cal i:not([data-palier='hors']) {
    animation: case-onde 0.9s var(--courbe);
  }
  .bento-cal .cal i {
    transition: transform 0.15s var(--rebond), filter 0.15s;
  }
  .bento-cal .cal i:not([data-palier='hors']):hover {
    transform: scale(1.5);
    filter: brightness(1.5);
    outline: none;
  }
  .bento-carte:hover .bento-cal .cal-semaine:nth-child(2) i { animation-delay: 0.05s; }
  .bento-carte:hover .bento-cal .cal-semaine:nth-child(3) i { animation-delay: 0.1s; }
  .bento-carte:hover .bento-cal .cal-semaine:nth-child(4) i { animation-delay: 0.15s; }
  .bento-carte:hover .bento-cal .cal-semaine:nth-child(5) i { animation-delay: 0.2s; }
  .bento-carte:hover .bento-cal .cal-semaine:nth-child(6) i { animation-delay: 0.25s; }
  .bento-carte:hover .bento-cal .cal-semaine:nth-child(7) i { animation-delay: 0.3s; }
  .bento-carte:hover .bento-cal .cal-semaine:nth-child(8) i { animation-delay: 0.35s; }
  .bento-carte:hover .bento-cal .cal-semaine:nth-child(9) i { animation-delay: 0.4s; }
  .bento-carte:hover .bento-cal .cal-semaine:nth-child(10) i { animation-delay: 0.45s; }
  .bento-carte:hover .bento-cal .cal-semaine:nth-child(11) i { animation-delay: 0.5s; }
}

/* Sur un écran tactile : l'anneau se remplit et décompte, les barres poussent, au fil du défilement ; la manette donne sa
   note en boucle. */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .bento-manette i:nth-child(3) {
    animation: bouton-note 2.6s var(--courbe) infinite;
  }
  .bento-note {
    animation: note-monte 2.6s var(--courbe) infinite;
  }
  @supports (animation-timeline: view()) {
    .bento-anneau::before {
      animation: pomodoro linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 60%;
    }
    .anneau-temps {
      animation: decompte linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 60%;
    }
    .anneau-focus {
      animation: pomodoro-focus linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 60%;
    }
    .anneau-pause {
      animation: pomodoro-pause linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 60%;
    }
    .bento-barres i {
      animation: barre-pousse linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
  }
}

/* Deux colonnes dès 700 px, trois dès 900 px ; sur une rangée, les scènes, les titres et les phrases s'alignent. */
@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-carte {
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
  .bento-carte--large {
    grid-column: span 2;
  }
}
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bento-visuel {
    height: 200px;
  }
}

/* L'APPEL DE LA FIN respire doucement : un anneau posé autour du bouton (.respire, hors du bouton qui rogne son reflet),
   dont seule l'opacité bouge (revue de performance du 6 novembre 2026 ; une ombre animée recalculait la page à chaque
   image). */
.respire {
  position: relative;
  display: inline-flex;
  border-radius: var(--rayon-btn);
}
.respire::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent);
  opacity: 0;
  pointer-events: none;
  animation: respire 2.8s ease-in-out infinite;
}
@keyframes respire {
  50% {
    opacity: 1;
  }
}

/* L'APPARITION AU DÉFILEMENT, là où le navigateur sait la lier au défilement (Chromium, Safari 26) ; ailleurs, tout
   est visible d'emblée. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-revele] {
      animation: revele linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
    /* Le téléphone entre par le bord droit de l'écran (demande du 1er novembre 2026), puis s'incline au fil du
       défilement. 50vw + la moitié de sa largeur le posent juste hors de l'écran, au centre comme à droite du duo. */
    .telephone {
      animation:
        arrive-de-droite ease-out both,
        incline linear both;
      animation-timeline: view(), view();
      animation-range: entry 0% entry 85%, normal;
    }
    .section:has(.telephone) {
      overflow-x: clip;
    }
  }
  @supports (animation-timeline: scroll()) {
    body > header::after {
      animation: trace linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes revele {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes arrive-de-droite {
  from {
    translate: calc(50vw + 50%) 0;
  }
}
@keyframes incline {
  from {
    transform: perspective(900px) rotateX(14deg) rotateZ(-4deg) translateY(40px);
    opacity: 0.4;
  }
  35% {
    opacity: 1;
  }
  to {
    transform: perspective(900px) rotateX(-6deg) rotateZ(3deg) translateY(-20px);
  }
}

/* « RÉDUIRE LES ANIMATIONS » : rien ne bouge ni ne rebondit. Les choix et les états restent : la carte se retourne d'un
   coup, la note paraît SUR PLACE et s'efface (comme dans l'app, `nom-sur-place`), la suite se dit tout de suite. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .aurore span,
  .porte-anneau,
  .respire::before,
  .essai-onde,
  .essai-eclats i {
    animation: none !important;
  }
  .bento-anneau::before,
  .anneau-focus,
  .anneau-pause {
    animation: none !important;
  }
  .essai:has([name='note']:checked) .essai-carte {
    animation: none !important;
    opacity: 0;
  }
  .essai:has(.essai-notes [value='1']:checked) .essai-nom[data-pour='1'],
  .essai:has(.essai-notes [value='2']:checked) .essai-nom[data-pour='2'],
  .essai:has(.essai-notes [value='3']:checked) .essai-nom[data-pour='3'],
  .essai:has(.essai-notes [value='4']:checked) .essai-nom[data-pour='4'] {
    animation: nom-sur-place 0.9s linear both !important;
    top: 22%;
  }
}

/* LES TÉMOIGNAGES (note du 27 octobre 2026) : la section n'existe qu'avec au moins un vrai témoignage (construire.mjs).
   Passe visuelle du 1er novembre 2026 : un bandeau pleine largeur qui défile seul (à partir de trois témoignages), fondu
   aux deux bords, en pause sous le curseur ; chaque carte en relief, l'initiale de la personne dans une pastille. Sous le
   curseur, la carte se soulève sur une lueur d'or et la pastille rebondit. La boucle translate la piste de la moitié de
   sa largeur : chaque carte porte sa marge à droite (pas de « gap »), pour que les deux moitiés aient la même largeur. */
.temoins {
  padding-block: 20px 28px;
  overflow-x: clip;
}
.temoins-piste {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.temoins[data-fixe] .temoins-piste {
  width: auto;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 20px;
}
.temoins[data-defile] {
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.temoin {
  flex: none;
  width: min(340px, 78vw);
  margin-inline-end: 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 22px 24px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 88%, #fff 4%), color-mix(in srgb, var(--surface) 40%, var(--bg)));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    inset 0 -3px 0 rgb(0 0 0 / 0.22),
    0 18px 40px -26px rgb(0 0 0 / 0.9);
  transition:
    translate 0.4s var(--rebond),
    border-color 0.3s var(--courbe),
    box-shadow 0.4s var(--courbe);
}
.temoins[data-fixe] .temoin:last-child {
  margin-inline-end: 0;
}
.temoin::before {
  content: '«' / '';
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.5;
  height: 22px;
  color: var(--accent);
  opacity: 0.85;
  transition: translate 0.4s var(--rebond);
}
.temoin blockquote {
  margin: 0;
}
.temoin blockquote p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--soft);
}
.temoin-qui {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.temoin-qui > span:last-child {
  display: grid;
  min-width: 0;
}
.temoin-qui b {
  font-weight: 600;
}
.temoin-initiale {
  --teinte: var(--accent);
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--on-accent);
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--teinte) 70%, #fff), var(--teinte) 58%, color-mix(in srgb, var(--teinte) 70%, #000));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    inset 0 -3px 0 rgb(0 0 0 / 0.22),
    0 0 0 3px color-mix(in srgb, var(--teinte) 22%, transparent),
    0 6px 14px -6px color-mix(in srgb, var(--teinte) 70%, transparent);
  transition: scale 0.45s var(--rebond), box-shadow 0.3s var(--courbe);
}
.temoin-initiale[data-teinte='1'] {
  --teinte: var(--rythme-leger);
}
.temoin-initiale[data-teinte='2'] {
  --teinte: var(--rythme-equilibre);
}
@media (hover: hover) {
  .temoin:hover {
    translate: 0 -6px;
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.1),
      inset 0 -3px 0 rgb(0 0 0 / 0.22),
      0 26px 50px -24px color-mix(in srgb, var(--accent) 40%, transparent),
      0 18px 40px -22px rgb(0 0 0 / 0.9);
  }
  .temoin:hover::before {
    translate: -3px -2px;
  }
  .temoin:hover .temoin-initiale {
    scale: 1.12;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.35),
      inset 0 -3px 0 rgb(0 0 0 / 0.22),
      0 0 0 5px color-mix(in srgb, var(--teinte) 30%, transparent),
      0 8px 18px -6px color-mix(in srgb, var(--teinte) 80%, transparent);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .temoins[data-defile] .temoins-piste {
    animation: defile 54s linear infinite;
  }
  .temoins[data-defile] .temoins-piste[data-cartes='7'] {
    animation-duration: 63s;
  }
  .temoins[data-defile] .temoins-piste[data-cartes='8'] {
    animation-duration: 72s;
  }
  .temoins[data-defile] .temoins-piste[data-cartes='9'] {
    animation-duration: 81s;
  }
  .temoins[data-defile] .temoins-piste[data-cartes='10'] {
    animation-duration: 90s;
  }
  .temoins[data-defile]:hover .temoins-piste {
    animation-play-state: paused;
  }
}
@keyframes defile {
  to {
    translate: -50% 0;
  }
}
/* LA CITATION COURTE ET SA FEUILLE (retours d'usage du 14 novembre 2026) : « Voir plus » à la suite du texte coupé, à la
   couleur de l'accent ; la feuille (popover, sans script) monte du bas au téléphone et se pose au centre à l'ordinateur,
   sur un voile flouté. Elle reprend la carte du témoignage, sans son relief au survol. */
.temoin-plus {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s var(--courbe);
}
.temoin-plus::before {
  content: '';
  position: absolute;
  inset: -12px -8px;
}
@media (hover: hover) {
  .temoin-plus:hover {
    text-decoration-color: var(--accent);
  }
  .temoin-feuille:hover {
    translate: 0 0;
  }
}
.temoin-plus:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.temoin-feuille {
  position: fixed;
  inset: auto 0 0;
  width: min(560px, 100%);
  max-height: 85dvh;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text);
  padding: 28px 24px max(24px, env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  border-bottom: 0;
  opacity: 1;
  translate: 0 0;
  transition:
    translate 0.45s var(--courbe),
    opacity 0.3s var(--courbe),
    display 0.45s allow-discrete,
    overlay 0.45s allow-discrete;
}
.temoin-feuille:not(:popover-open) {
  display: none;
}
.temoin-feuille:popover-open {
  display: grid;
}
.temoin-feuille blockquote p {
  font-size: 18px;
  color: var(--text);
}
.temoin-feuille .btn {
  justify-self: stretch;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}
.temoin-feuille::backdrop {
  background: rgb(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    opacity 0.3s var(--courbe),
    display 0.45s allow-discrete,
    overlay 0.45s allow-discrete;
}
@starting-style {
  .temoin-feuille:popover-open {
    translate: 0 40px;
    opacity: 0;
  }
  .temoin-feuille:popover-open::backdrop {
    opacity: 0;
  }
}
@media (min-width: 700px) {
  .temoin-feuille {
    inset: 0;
    height: fit-content;
    margin: auto;
    padding-bottom: 24px;
    border-radius: 22px;
    border-bottom: 1px solid var(--border);
  }
  .temoin-feuille .btn {
    justify-self: end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .temoin-feuille,
  .temoin-feuille::backdrop {
    transition: none;
  }
}
/* Sans mouvement, le bandeau devient une rangée qu'on fait glisser soi-même, sans les copies. */
@media (prefers-reduced-motion: reduce) {
  .temoins[data-defile] {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    mask-image: none;
  }
  .temoins[data-defile] .temoins-piste {
    animation: none;
    padding-inline: 16px;
  }
  .temoin[aria-hidden] {
    display: none;
  }
  .temoin {
    scroll-snap-align: center;
  }
}

/* LE RELIEF (note du 27 octobre 2026, « Juice 3D » ; verdict utilisateur du même jour : « on peut faker la chose en html ?
   Pas besoin de vrai 3D ») : de la profondeur en CSS seul, sans image ni script. Lumière venue d'en haut à gauche : un liseré
   clair dessus, une tranche sombre dessous, une ombre portée. Les tuiles restent à plat (verdict du même jour : « pas les
   tuiles ») : elles se soulèvent et penchent sous le curseur, plus bas. L'inclinaison de la carte passe par la propriété
   « rotate », qui se compose avec le « transform » du retournement. */
.engagements svg {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 9px;
  margin-top: 0;
  border-radius: 12px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 26%, var(--surface)), color-mix(in srgb, var(--accent) 6%, var(--bg)));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    inset 0 -3px 0 rgb(0 0 0 / 0.28),
    0 10px 18px -10px rgb(0 0 0 / 0.8);
}
.engagements li {
  column-gap: 14px;
}

/* Le relief de la carte de l'app (`.card-face` au sombre) : la lumière d'en haut à gauche, la tranche en deux paliers,
   l'ombre courte. Aucune inclinaison : l'app n'en a pas (verdict du 28 octobre 2026, « the card should not be tilted »). */
.essai-face {
  border-color: var(--border);
  background: linear-gradient(155deg, color-mix(in srgb, #fff 8%, var(--surface)), var(--surface) 45%, color-mix(in srgb, var(--bg) 35%, var(--surface)));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    0 2px 0 color-mix(in srgb, var(--surface) 70%, black),
    0 4px 0 color-mix(in srgb, var(--surface) 50%, black),
    0 10px 20px -10px rgb(0 0 0 / 0.75);
}

/* L'APPUI DU CURSEUR (verdict utilisateur du 27 octobre 2026 : « qu'elles se surélèvent lorsqu'on hover avec le curseur
   […] la carte penche un peu du côté opposé, comme si le curseur appuyait dessus et déstabilisait la tuile »). Les tuiles
   de l'accueil d'abord ; la photo de Montpellier (accueil et À propos) ensuite (demande du 6 novembre 2026, « fais
   pareil ») ; la courbe, la carte qui se retourne et les notes de la page FSRS (direction B, 7 novembre 2026). Sans script : neuf zones invisibles par élément (.appui, trois rangs de trois) ; la
   zone survolée fixe --rx et --ry. Le côté où le curseur appuie s'enfonce, le côté opposé se lève. À la souris seulement ;
   immobile sous « réduire les animations ». */
[data-appui] {
  position: relative;
  --rx: 0deg;
  --ry: 0deg;
}
.appui {
  display: none;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .appui {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template: repeat(3, 1fr) / repeat(3, 1fr);
    border-radius: inherit;
  }
  [data-appui] {
    transition:
      translate 0.3s var(--rebond),
      transform 0.35s var(--rebond),
      border-color 0.3s,
      box-shadow 0.3s;
  }
  /* L'inclinaison ne se pose qu'au survol (relecture du 6 novembre 2026) : posée au repos, même nulle, elle gardait
     chaque tuile et la grande photo en couche graphique permanente. Elle revient à plat par la même transition. */
  [data-appui]:hover {
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  }
  /* La photo est grande : elle penche moins, sous une perspective plus lointaine. */
  .photo-appui:hover {
    transform: perspective(1600px) rotateX(calc(var(--rx) * 0.6)) rotateY(calc(var(--ry) * 0.6));
  }
  [data-appui]:hover {
    translate: 0 -10px;
    box-shadow:
      0 30px 50px -22px rgb(0 0 0 / 0.8),
      0 22px 44px -24px color-mix(in srgb, var(--accent) 40%, transparent);
  }
  [data-appui]:has(.appui i:nth-child(-n + 3):hover) {
    --rx: 4deg;
  }
  [data-appui]:has(.appui i:nth-child(n + 7):hover) {
    --rx: -4deg;
  }
  [data-appui]:has(.appui i:nth-child(3n + 1):hover) {
    --ry: -4deg;
  }
  [data-appui]:has(.appui i:nth-child(3n):hover) {
    --ry: 4deg;
  }
}

/* LA MISE EN PAGE ALLÉGÉE (verdict utilisateur du 1er novembre 2026, « Oui, sur une branche », sur « trop chargé » et
   « mal réparti, mal espacé »). */
/* Le rythme flotte à côté du titre : plus de cadre, plus de lueur. */
.rythme {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.rythme-phrase {
  font-size: 15px;
  color: var(--soft);
}
/* Les trois phrases occupent la même case, seule celle du rythme choisi se voit : la phrase garde la hauteur de la plus
   longue, et rien ne saute sous elle en changeant de rythme (retour utilisateur du 1er novembre 2026, « une saccade
   quand on sélectionne exigeant »). Avant, seule la phrase active s'affichait, en ligne, et son min-height ne s'appliquait
   pas à un élément en ligne : le bloc prenait une ou deux lignes selon la phrase. */
.rythme-phrase {
  display: grid;
}
.rythme-phrase span {
  display: block;
  grid-area: 1 / 1;
  min-height: 0;
  visibility: hidden;
}
.rythme:has(#r-leger:checked) [data-pour='leger'],
.rythme:has(#r-equilibre:checked) [data-pour='equilibre'],
.rythme:has(#r-exigeant:checked) [data-pour='exigeant'] {
  display: block;
  visibility: visible;
}
/* Les engagements : l'icône au-dessus du titre, et chaque texte part sous son titre. Les colonnes d'une rangée ont la
   hauteur de la plus longue ; sans align-content: start, la place en trop se partageait entre la ligne du titre et celle
   du texte, et le texte descendait d'autant plus que la colonne était courte. */
.engagements {
  padding: 24px 0 56px;
}
.engagements ul {
  padding-top: 40px;
}
.engagements li {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  row-gap: 12px;
}
.engagements svg {
  grid-row: auto;
}
.engagements h3 {
  margin: 0;
}
/* La démo, à l'étape 2 de « Comment ça marche » : le choix de la matière sous le texte, la carte dans la colonne de
   l'écran. */
.etape--demo .puces {
  margin-top: 20px;
}
.etape--demo .essais {
  max-width: none;
}
@media (min-width: 900px) {
  .etape--demo .essai-scene {
    aspect-ratio: 16 / 10;
  }
}
/* Les matières sur une seule ligne, sans la question du choix à l'écran (retour utilisateur du 1er novembre 2026) : elle
   reste le nom du groupe pour les lecteurs d'écran. Trop étroite, la ligne défile sous le doigt au lieu de passer à la
   ligne. */
.etape--demo .puces legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.etape--demo .puces {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -16px;
  padding: 4px 16px;
}
.etape--demo .puces label {
  flex: none;
  padding: 0 14px;
}
/* Un fieldset, comme un élément de grille, prend par défaut la largeur de son contenu : la rangée élargissait la colonne
   puis la page, que le téléphone dézoomait. */
.etape > *,
.etape--demo .puces {
  min-inline-size: 0;
}

/* LA CRITIQUE DE DESIGN DU 2 NOVEMBRE 2026 (« Oui, les trois »).
   L'app dès le premier écran : la capture à droite du titre, qui monte avec lui à l'arrivée. Elle ne suit pas le
   défilement comme le téléphone d'une section : en haut de page, elle est déjà là. */
.hero .telephone {
  width: 220px;
  justify-self: center;
  animation: monte 0.7s var(--courbe) 0.26s both;
  animation-timeline: auto;
  animation-range: normal;
}
@media (min-width: 900px) {
  .hero .telephone {
    width: 248px;
    border-radius: 30px;
  }
}
/* L'appel toujours visible : le Discord dans l'en-tête, qui reste en haut de l'écran. */
.barre-liens {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn--petit {
  padding: 0 14px;
}
/* « L'algorithme FSRS » dans la barre (4 novembre 2026) : sur un téléphone, les trois liens ne tiennent plus à côté du
   logo ; « À propos » reste dans le pied de page, et la barre se resserre sous 380 px. */
.barre-liens .btn {
  white-space: nowrap;
}
/* La page courante (critique de design du 4 novembre 2026) : son lien dans la barre s'éclaire en ambre. */
.barre-liens .btn--quiet[aria-current='page'] {
  color: var(--accent);
}
@media (max-width: 699px) {
  .barre-secondaire {
    display: none;
  }
  .barre-liens {
    gap: 4px;
  }
}
@media (max-width: 440px) {
  .barre .marque .logo {
    height: 24px;
  }
  .barre-liens .btn--quiet {
    padding: 0 8px;
  }
  .barre-liens .btn--petit {
    padding: 0 10px;
  }
  .barre-liens .btn {
    font-size: 15px;
  }
}
/* Sur les tout petits écrans (moins de 360 px), les liens passent sous le logo plutôt que de déborder. */
@media (max-width: 359px) {
  .barre {
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 6px;
  }
}
/* La colonne du titre s'est élargie : sans équilibre, « bon. » restait seul sur sa ligne. */
.hero h1 {
  text-wrap: balance;
}

/* LES APPAREILS AUTOUR DES CAPTURES (2 novembre 2026 : le téléphone « un petit peu de biais », puis la tablette et
   l'ordinateur « pour mettre en avant le côté multiplateforme », et le verdict « Appareils génériques »). Dessinés en CSS,
   sans détail propre à une marque : un cadre d'aluminium graphite, un verre noir, la barre d'état dans la bande vide du
   haut des captures. Les mesures suivent la largeur de chaque appareil (cqw). Le biais est un vrai pivot 3D du
   navigateur ; l'épaisseur, deux plaques posées derrière. */
.telephone,
.tablette,
.portable {
  container-type: inline-size;
  perspective: 1600px;
  /* WebKit compte la projection du pivot 3D dans ce qui se défile, et la page glissait de côté (/medecine : 552 px pour 390,
     relevé du 9 novembre 2026). `contain: layout` en fait un débordement d'encre : rien n'est rogné, rien ne bouge. */
  contain: layout;
}
.telephone {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 34px 34px rgb(0 0 0 / 0.55)) drop-shadow(0 18px 46px color-mix(in srgb, var(--accent) 24%, transparent));
  --rebord: 1.4cqw;
  --biseau: 3.1cqw;
  --rayon: 16cqw;
  --statut-haut: 12cqw;
  --statut-police: 4cqw;
  --statut-icones: 16cqw;
  --statut-marges: 0 6.5cqw 0 10cqw;
}
.tablette {
  --rebord: 0.7cqw;
  --biseau: 2.6cqw;
  --rayon: 5cqw;
  --statut-haut: 2.2cqw;
  --statut-police: 1.35cqw;
  --statut-icones: 5.4cqw;
  --statut-marges: 0 2.6cqw;
}
.portable {
  --rebord: 0.45cqw;
  --biseau: 1.5cqw;
  --rayon: 2.4cqw;
}
.appareil {
  --metal: #4b5054;
  --metal-clair: #9aa0a6;
  --metal-sombre: #222528;
  position: relative;
  padding: var(--rebord);
  border-radius: var(--rayon);
  background: linear-gradient(118deg, var(--metal-clair), var(--metal) 22%, var(--metal-sombre) 52%, var(--metal) 78%, var(--metal-clair));
  transform-style: preserve-3d;
}
/* Les plaques passent SOUS l'écran aussi par l'ordre de peinture (`z-index: -1`), pas seulement par la profondeur : WebKit
   (Safari, et tout navigateur de l'iPhone et de l'iPad) les peignait DEVANT un écran animé, dont seul le nom de la note
   restait visible, voilé (retour utilisateur du 5 novembre 2026 : « sur d'autres appareils les pages animées dans les
   téléphones ne fonctionnent pas » ; reproduit dans WebKit 26, sans effet dans Chromium). `.appareil` est un contexte
   d'empilement (`preserve-3d`) : elles ne sortent pas derrière la page. */
.appareil::before,
.appareil::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--metal-sombre);
  transform: translateZ(-1.3cqw);
}
.appareil::after {
  background: color-mix(in srgb, var(--metal-sombre) 60%, #000);
  transform: translateZ(-2.6cqw);
}
.appareil-ecran {
  position: relative;
  border: var(--biseau) solid #050505;
  border-radius: calc(var(--rayon) - var(--rebord));
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 0.25cqw rgb(255 255 255 / 0.08);
  /* L'ÉCRAN SUR SA PROPRE COUCHE : Safari sur Mac (le compositeur de la carte graphique) laissait l'écran NOIR, son
     contenu animé non peint dans le téléphone en 3D aux coins arrondis, jusqu'à ce que le survol du curseur le fasse
     redessiner (retour de Lucie sur son MacBook et reproduit dans le Safari de l'opérateur, 7 novembre 2026 ; invisible
     dans le WebKit logiciel de Playwright). Quatre remèdes essayés dans le vrai Safari tiennent tous ; celui-ci est le
     plus discret : rien ne bouge à l'écran. */
  will-change: transform;
}
.appareil-ecran img {
  display: block;
  width: 100%;
  height: auto;
}
/* Le reflet du verre, fixe, de biais comme la lumière du site (en haut à gauche). Il ne suit plus le curseur (demande
   du 2 novembre 2026 : « Enlève l'halo qui suit le curseur »). */
.appareil-ecran::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgb(255 255 255 / 0.08), transparent 34%, transparent 70%, rgb(255 255 255 / 0.04));
  pointer-events: none;
}
.appareil-statut {
  position: absolute;
  inset: 0 0 auto;
  height: var(--statut-haut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--statut-marges);
  font-family: var(--font-text);
  font-size: var(--statut-police);
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.appareil-statut svg {
  width: var(--statut-icones);
  height: auto;
  fill: currentColor;
}
/* L'ordinateur portable : un écran à bordure fine, posé sur une base d'aluminium vue par la tranche. */
.portable .appareil {
  border-radius: var(--rayon) var(--rayon) 0.6cqw 0.6cqw;
  transform-style: flat;
}
.portable .appareil::before,
.portable .appareil::after {
  content: none;
}
.portable .appareil-ecran {
  border-width: var(--biseau) var(--biseau) calc(var(--biseau) * 1.6);
  border-radius: calc(var(--rayon) - var(--rebord)) calc(var(--rayon) - var(--rebord)) 0.3cqw 0.3cqw;
}
.portable-base {
  position: relative;
  display: block;
  width: 116%;
  height: 2.6cqw;
  margin-left: -8%;
  border-radius: 0.4cqw 0.4cqw 3cqw 3cqw / 0.4cqw 0.4cqw 2.2cqw 2.2cqw;
  background: linear-gradient(180deg, #c5cacf, #6d7378 38%, #33373b);
  box-shadow: 0 1.6cqw 2.4cqw -0.8cqw rgb(0 0 0 / 0.7);
}
.portable-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 15%;
  height: 0.9cqw;
  translate: -50% 0;
  border-radius: 0 0 1cqw 1cqw;
  background: #4a4f53;
}

/* LE PIVOT ET LA SOURIS (demande du 2 novembre 2026 : « plus de réactivité avec la souris, qu'il hover »). Chaque appareil
   a son biais de repos (--ty, --tx, --tz) ; data-reaction, sur le téléphone du haut ou sur la scène des trois, nomme les
   réactions : « suivi », ils se tournent vers le curseur (vingt-cinq zones invisibles : le rang fixe
   --rx, la colonne --ry) ; « flotte », ils lévitent et se soulèvent sous le curseur. Sous le curseur, ils se redressent
   (--k). Immobiles sous « réduire les animations ». */
.telephone .appareil,
.tablette .appareil,
.portable {
  transform: translateZ(var(--lift, 0px)) rotateY(calc(var(--ty) * var(--k, 1) + var(--ry, 0deg)))
    rotateX(calc(var(--tx) * var(--k, 1) + var(--rx, 0deg))) rotateZ(calc(var(--tz) * var(--k, 1)));
  transition: transform 0.7s var(--courbe);
}
.telephone .appareil {
  --ty: -17deg;
  --tx: 6deg;
  --tz: -1.5deg;
}
.tablette .appareil {
  --ty: 16deg;
  --tx: 7deg;
  --tz: 1deg;
}
.portable {
  --ty: -7deg;
  --tx: 9deg;
  --tz: 0deg;
  transform-style: preserve-3d;
}
.appareil-zones {
  position: absolute;
  inset: -6% -10%;
  z-index: 5;
  display: grid;
  grid-template: repeat(5, 1fr) / repeat(5, 1fr);
}
.hero .telephone {
  position: relative;
  animation: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .telephone .appareil {
    animation: appareil-arrive 1.3s var(--courbe) 0.15s both;
  }
  .telephone[data-reaction~='flotte'] {
    animation: appareil-flotte 6s ease-in-out 1.5s infinite;
  }
  .scene-appareils[data-reaction~='flotte'] > .portable,
  .scene-appareils[data-reaction~='flotte'] > .tablette,
  .scene-appareils[data-reaction~='flotte'] > .telephone {
    animation: appareil-flotte 7s ease-in-out infinite;
  }
  .scene-appareils[data-reaction~='flotte'] > .tablette {
    animation-duration: 6.2s;
    animation-delay: -2s;
  }
  .scene-appareils[data-reaction~='flotte'] > .telephone {
    animation-duration: 5.4s;
    animation-delay: -3.5s;
  }
}
@keyframes appareil-arrive {
  from {
    translate: calc(50vw + 60%) 0;
    rotate: y -30deg;
  }
}
@keyframes appareil-flotte {
  50% {
    translate: 0 -10px;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  [data-reaction]:hover {
    --k: 0.35;
  }
  [data-reaction~='flotte']:hover {
    --lift: 36px;
  }
  [data-reaction~='suivi']:has(> .appareil-zones i:nth-child(5n + 1):hover) {
    --ry: -14deg;
  }
  [data-reaction~='suivi']:has(> .appareil-zones i:nth-child(5n + 2):hover) {
    --ry: -7deg;
  }
  [data-reaction~='suivi']:has(> .appareil-zones i:nth-child(5n + 3):hover) {
    --ry: 0deg;
  }
  [data-reaction~='suivi']:has(> .appareil-zones i:nth-child(5n + 4):hover) {
    --ry: 7deg;
  }
  [data-reaction~='suivi']:has(> .appareil-zones i:nth-child(5n):hover) {
    --ry: 14deg;
  }
  [data-reaction~='suivi']:has(> .appareil-zones i:nth-child(-n + 5):hover) {
    --rx: 9deg;
  }
  [data-reaction~='suivi']:has(> .appareil-zones i:nth-child(n + 6):nth-child(-n + 10):hover) {
    --rx: 4deg;
  }
  [data-reaction~='suivi']:has(> .appareil-zones i:nth-child(n + 11):nth-child(-n + 15):hover) {
    --rx: 0deg;
  }
  [data-reaction~='suivi']:has(> .appareil-zones i:nth-child(n + 16):nth-child(-n + 20):hover) {
    --rx: -4deg;
  }
  [data-reaction~='suivi']:has(> .appareil-zones i:nth-child(n + 21):hover) {
    --rx: -9deg;
  }
}

/* LA SCÈNE DES TROIS APPAREILS (« Tout ce qu'il faut pour réviser ») : l'ordinateur au fond, la tablette à gauche devant,
   le téléphone à droite au premier plan, à l'échelle les uns des autres à peu près. Au défilement, l'ordinateur monte,
   la tablette arrive de la gauche et le téléphone de la droite. */
.scene-appareils {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 10.4;
  margin: 32px auto 56px;
  perspective: 1800px;
  /* Une ombre sombre seule : le halo doré, très flou sur fond sombre, laissait voir des anneaux (critique du 2 novembre
     2026). */
  filter: drop-shadow(0 30px 30px rgb(0 0 0 / 0.5));
}
.scene-appareils > .portable {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 15%;
  width: 70%;
}
.scene-appareils > .tablette {
  position: absolute;
  z-index: 2;
  bottom: 3%;
  left: 0;
  width: 39%;
}
.scene-appareils > .telephone {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 0;
  width: 15.5%;
  filter: none;
}
.scene-appareils > .appareil-zones {
  inset: 0;
}
@media (max-width: 600px) {
  .scene-appareils {
    aspect-ratio: 16 / 12.5;
    margin-bottom: 40px;
  }
  .scene-appareils > .portable {
    left: 8%;
    width: 84%;
  }
  .scene-appareils > .tablette {
    width: 48%;
  }
  .scene-appareils > .telephone {
    right: 0;
    width: 21%;
  }
}
.section:has(.scene-appareils) {
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .scene-appareils > .portable {
      animation:
        scene-portable linear both,
        appareil-flotte 7s ease-in-out infinite;
      animation-timeline: view(), auto;
      animation-range: entry 0% cover 40%, normal;
    }
    .scene-appareils .tablette .appareil {
      animation: scene-tablette linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    .scene-appareils .telephone .appareil {
      animation: scene-telephone linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}
@keyframes scene-portable {
  from {
    opacity: 0;
    scale: 0.92;
  }
}
/* Sans opacité : un fondu aplatit l'appareil, et ses plaques d'épaisseur passent devant l'écran. */
@keyframes scene-tablette {
  from {
    translate: -90% 6%;
    rotate: y 34deg;
  }
}
@keyframes scene-telephone {
  from {
    translate: 160% 6%;
    rotate: y -34deg;
  }
}

/* L'HEURE DES APPAREILS (2 novembre 2026, « Heure par le Worker ») : l'heure de Paris au chargement, que /heure.css pose en
   minute du jour (--debut) et en secondes passées (--s) ; le CSS l'écrit et l'avance d'une minute toutes les soixante
   secondes, la première au bon moment. Sans le Worker, 09:41. Sous « réduire les animations », l'heure du chargement. */
@property --minute {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}
.appareil-heure {
  --minute: var(--debut, 581);
  counter-reset: heure mod(round(down, var(--minute) / 60), 24) minute mod(var(--minute), 60);
  font-variant-numeric: tabular-nums;
}
.appareil-heure::before {
  content: counter(heure, decimal-leading-zero) ':' counter(minute, decimal-leading-zero);
}
/* Qui avance, l'heure glisse sur deux bandes de chiffres (revue de performance du 6 novembre 2026) : une déformation par
   paliers, que la carte graphique anime seule. L'ancienne animation d'un nombre (--minute) faisait recalculer la page à
   chaque image, soixante fois par seconde, pour un chiffre qui change une fois par minute. Les heures : 24 lignes en un
   jour ; les minutes : 60 lignes en une heure ; toutes deux reculées du temps passé depuis minuit. Immobile, l'heure du
   chargement s'écrit par compteurs, comme avant. */
.ah-h,
.ah-m,
.ah-sep {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .appareil-heure::before {
    content: none;
  }
  .ah-sep {
    display: inline;
  }
  .ah-h,
  .ah-m {
    display: inline-block;
    /* 1em et non 1lh : la barre d'état a line-height: 1, et 1lh manque à Safari avant 16.4 (la bande entière
       s'afficherait en colonne). */
    height: 1em;
    overflow: hidden;
    vertical-align: top;
  }
  .ah-h::before,
  .ah-m::before {
    display: block;
    white-space: pre;
    animation: ah-defile 86400s steps(24, end) infinite;
    animation-delay: calc((var(--debut, 581) * 60 + var(--s, 0)) * -1s);
  }
  .ah-h::before {
    content: '00\A 01\A 02\A 03\A 04\A 05\A 06\A 07\A 08\A 09\A 10\A 11\A 12\A 13\A 14\A 15\A 16\A 17\A 18\A 19\A 20\A 21\A 22\A 23';
  }
  .ah-m::before {
    content: '00\A 01\A 02\A 03\A 04\A 05\A 06\A 07\A 08\A 09\A 10\A 11\A 12\A 13\A 14\A 15\A 16\A 17\A 18\A 19\A 20\A 21\A 22\A 23\A 24\A 25\A 26\A 27\A 28\A 29\A 30\A 31\A 32\A 33\A 34\A 35\A 36\A 37\A 38\A 39\A 40\A 41\A 42\A 43\A 44\A 45\A 46\A 47\A 48\A 49\A 50\A 51\A 52\A 53\A 54\A 55\A 56\A 57\A 58\A 59';
    animation-duration: 3600s;
    animation-timing-function: steps(60, end);
  }
}
@keyframes ah-defile {
  to {
    transform: translateY(-100%);
  }
}

/* LA DEUXIÈME CRITIQUE DE DESIGN (2 novembre 2026, « Oui, les trois »).
   Les tuiles sur téléphone : une rangée qu'on fait glisser, la suivante dépassant au bord, au lieu de cinq tuiles
   empilées (environ 1 300 px de moins). Dans la rangée, l'anneau et les barres se remplissent quand la tuile entre de
   côté : leur conteneur de défilement est la rangée, dont seul l'axe horizontal défile (view(inline)). Entre 700 et
   900 px, deux colonnes. */
@media (max-width: 699px) {
  .bento {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 4px 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .bento-carte {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  @media (hover: none) and (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .bento-anneau::before,
      .anneau-temps,
      .anneau-focus,
      .anneau-pause,
      .bento-barres i {
        animation-timeline: view(inline);
        animation-range: entry 30% contain 0%;
      }
    }
  }
}
/* Le témoignage aligné sur la colonne : la page a 32 px de marge à partir de 900 px. */
@media (min-width: 900px) {
  .temoins[data-fixe] .temoins-piste {
    padding-inline: 32px;
  }
}

/* LE LOGO QUI SAUTE (demande du 2 novembre 2026 : « une animation où chaque lettre du logo saute un petit peu quand on
   hover sur le logo ») : les lettres P, O (l'anneau), M, K et I sont chacune un tracé (gabarits/logo.svg, data-lettre),
   et sautent l'une après l'autre sous le curseur ou quand le logo prend le focus au clavier ; rien au toucher. Immobiles
   sous « réduire les animations ». */
.logo [data-lettre] {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
/* Le décalage de chaque lettre, en variable : le raccourci « animation » du survol remettrait animation-delay à zéro. */
.logo [data-lettre='2'] {
  --delai: 0.05s;
}
.logo [data-lettre='3'] {
  --delai: 0.1s;
}
.logo [data-lettre='4'] {
  --delai: 0.15s;
}
.logo [data-lettre='5'] {
  --delai: 0.2s;
}
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .marque:hover .logo [data-lettre] {
      animation: lettre-saute 0.55s var(--courbe) var(--delai, 0s) both;
    }
  }
  .marque:focus-visible .logo [data-lettre] {
    animation: lettre-saute 0.55s var(--courbe) var(--delai, 0s) both;
  }
}
@keyframes lettre-saute {
  0% {
    translate: 0 0;
    scale: 1;
  }
  30% {
    translate: 0 -16%;
    scale: 1 1.04;
  }
  62% {
    translate: 0 0;
    scale: 1.05 0.94;
  }
  80% {
    translate: 0 -3%;
    scale: 1;
  }
  100% {
    translate: 0 0;
    scale: 1;
  }
}

/* LES ENGAGEMENTS ARRIVENT L'UN APRÈS L'AUTRE, du bas vers leur place (demande du 2 novembre 2026). Depuis qu'ils sont
   sous les tuiles (4 novembre 2026), ils ne sont jamais au premier écran : chacun monte quand il entre dans l'écran, et,
   sur une rangée, chacun un peu après le précédent. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    section.engagements li,
    [data-confiance] li {
      animation: engagement-monte linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @media (min-width: 900px) {
      section.engagements li:nth-child(2),
      [data-confiance] li:nth-child(2) { animation-range: entry 6% cover 34%; }
      section.engagements li:nth-child(3),
      [data-confiance] li:nth-child(3) { animation-range: entry 12% cover 38%; }
      section.engagements li:nth-child(4),
      [data-confiance] li:nth-child(4) { animation-range: entry 18% cover 42%; }
    }
  }
}
@keyframes engagement-monte {
  from {
    opacity: 0;
    transform: translateY(56px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* L'ARTICLE (brouillon du 2 novembre 2026, « Comment Pomki sait quand te remontrer une carte ») : la page de texte, une
   accroche, le schéma de la courbe de l'oubli en SVG dans la page, et l'appel au Discord en fin d'article.
   Plus large et centré (4 novembre 2026, « La mise en page de l'article FSRS est trop étroite ») : le texte sur une
   colonne de 46rem au milieu de la page, en 18 px, et le schéma qui déborde de part et d'autre, jusqu'à 60rem. */
.doc--article {
  max-width: 46rem;
  margin-inline: auto;
}
.doc--article .schema-oubli {
  position: relative;
  left: 50%;
  width: min(60rem, calc(100vw - 32px));
  translate: -50% 0;
}
.doc--article p,
.doc--article li {
  font-size: 18px;
  line-height: 1.65;
}
.doc--article > h1 {
  font-size: clamp(34px, 5vw, 48px);
}
.doc--article p.chapo {
  max-width: none;
  font-size: 21px;
  line-height: 1.55;
  text-wrap: pretty;
}
.doc--article p.petit {
  font-size: 15px;
}
/* LE SOMMAIRE (critique de design du 4 novembre 2026) : sous l'accroche, les intertitres de l'article, numérotés. */
.sommaire {
  margin: 28px 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.doc--article .sommaire-titre {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sommaire ol {
  display: grid;
  gap: 2px 40px;
  margin: 0;
  padding-left: 1.4em;
  color: var(--muted);
}
@media (min-width: 700px) {
  .sommaire ol {
    grid-template-columns: 1fr 1fr;
  }
}
/* Au doigt (et sur un écran de téléphone), chaque entrée du sommaire fait 44 px de haut. */
@media (pointer: coarse), (max-width: 599px) {
  .doc .sommaire li a:not(.btn) {
    min-height: var(--cible-min);
  }
}
.doc--article .sommaire li {
  margin: 0;
  font-size: 16px;
}
.doc .sommaire a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--soft);
  text-decoration: none;
}
@media (hover: hover) {
  .doc .sommaire a:not(.btn):hover {
    color: var(--accent);
  }
}
.doc--article h2[id] {
  scroll-margin-top: 84px;
}
/* À L'ORDINATEUR (4 novembre 2026, « élargis sur ordinateur, ça donne l'impression d'avoir trop de texte ») : la page prend
   toute la largeur ; le sommaire devient une colonne collante à gauche, le texte prend le reste (environ 770 px), et le
   schéma tient dans la colonne du texte. */
@media (min-width: 1100px) {
  .doc--article {
    max-width: none;
  }
  .doc--article > h1,
  .doc--article > p.chapo {
    max-width: 54rem;
  }
  .article-corps {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    margin-top: 32px;
  }
  .article-corps .sommaire {
    position: sticky;
    top: 88px;
    margin: 0;
    padding: 0 0 0 16px;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    background: none;
  }
  .article-corps .sommaire ol {
    grid-template-columns: 1fr;
    padding-left: 1.2em;
  }
  .doc--article .article-corps .sommaire li {
    font-size: 15px;
  }
  .doc--article .article-texte > h2:first-child {
    margin-top: 0;
  }
  .doc--article .schema-oubli {
    left: 0;
    width: 100%;
    translate: none;
  }
}
.doc--article .article-texte > h2 {
  margin: 44px 0 12px;
  font-size: 26px;
  line-height: 1.2;
}
.doc--article .chapo {
  margin: 16px 0 8px;
  color: var(--soft);
}
.doc--article .petit {
  margin-top: 0;
}
.schema-oubli {
  margin: 32px 0;
  padding: 20px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--surface), var(--bg));
}
.schema-oubli svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.schema-grille line {
  stroke: var(--border);
  stroke-width: 1;
}
.schema-objectif {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}
.schema-avec,
.schema-sans {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.schema-avec {
  stroke: var(--accent);
}
.schema-sans {
  stroke: var(--muted);
  stroke-width: 2.5;
  stroke-dasharray: 6 8;
  opacity: 0.8;
}
/* LE SCHÉMA DU CRÉATEUR (4 novembre 2026, « retravaille la courbe en reprenant celle du créateur ») : sur le modèle de celui
   qu'utilise Jarrett Ye, chaque révision a sa flèche et son trait, l'intervalle qui s'allonge est noté au-dessus, et la
   colonne de droite dit ce qui reste au bout de 90 jours. */
.schema-revisions line {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.35;
}
.schema-revisions path {
  fill: var(--accent);
}
.schema-intervalles path,
.schema-lien {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.schema-fins circle {
  fill: var(--muted);
}
.schema-fins [data-fin='avec'] {
  fill: var(--accent);
}
.schema-texte .schema-texte-avec {
  fill: var(--accent);
  font-weight: 700;
}
.schema-texte .schema-note {
  fill: var(--soft);
  font-style: italic;
}
.schema-revues circle {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2.5;
}
.schema-texte text {
  fill: var(--muted);
  font: 15px var(--font-text);
}
.schema-texte .schema-texte-objectif {
  fill: var(--accent);
  font-weight: 600;
}
/* Deux dessins (critique de design du 4 novembre 2026) : le large à l'ordinateur ; sur un téléphone, l'étroit, plus haut,
   aux chiffres d'au moins 13 px, sans les notes en toutes lettres (la légende et la phrase dessous disent la même chose). */
.schema-oubli .schema-etroit {
  display: none;
}
@media (max-width: 599px) {
  .schema-oubli .schema-large {
    display: none;
  }
  .schema-oubli .schema-etroit {
    display: block;
  }
  .schema-etroit .schema-texte text {
    font-size: 16px;
  }
}
/* La courbe se trace quand le schéma arrive à l'écran, puis les pointillés et ce qui reste au bout de 90 jours paraissent ;
   immobile sous « réduire les animations » ou là où le navigateur ne lie pas l'animation au défilement. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .schema-oubli {
      view-timeline: --schema block;
    }
    .schema-avec {
      stroke-dasharray: 1;
      animation: schema-trace linear both;
      animation-timeline: --schema;
      animation-range: entry 5% entry 75%;
    }
    /* Les cercles des révisions arrivent avec le trait, jamais avant : sans lui, ils flottaient dans un dessin vide. */
    .schema-revues {
      animation: schema-parait linear both;
      animation-timeline: --schema;
      animation-range: entry 5% entry 40%;
    }
    .schema-sans,
    .schema-fins,
    .schema-texte-sans,
    .schema-texte-avec {
      animation: schema-parait linear both;
      animation-timeline: --schema;
      animation-range: entry 70% entry 95%;
    }
  }
}
@keyframes schema-trace {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes schema-parait {
  from {
    opacity: 0;
  }
}
.schema-axe {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.schema-axe--x {
  margin: 4px 0 0;
  text-align: center;
}
.schema-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.doc .schema-legende li {
  margin: 0;
  color: var(--muted);
}
.schema-legende li::before {
  content: '';
  display: inline-block;
  width: 24px;
  margin-right: 8px;
  vertical-align: middle;
  border-top: 3px solid var(--accent);
}
.schema-legende [data-courbe='sans']::before {
  border-top: 3px dashed var(--muted);
}
.schema-legende [data-courbe='objectif']::before {
  border-top: 2px dotted var(--accent);
}
.schema-legende [data-courbe='revision']::before {
  width: 0;
  margin: 0 12px 0 6px;
  border: 6px solid transparent;
  border-top: 9px solid var(--accent);
  border-bottom: 0;
}
.schema-oubli figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.article-fin {
  margin-top: 48px;
  padding: 36px 24px 32px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 20px;
  text-align: center;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 72%);
  box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--accent) 45%, transparent);
}
/* Les sources, repliées et en plus petit : elles se consultent, elles ne se lisent pas d'une traite. Le résumé porte
   l'intertitre et un chevron qui se retourne à l'ouverture. */
.article-sources {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Premières dans leur section (la page FSRS), les sources ne doublent pas le filet de la section (22 novembre 2026,
   « regarde si ça peut être le cas sur d'autres aspects », après « Il y a deux barres de séparation ici »). */
.doc > .article-sources:first-child {
  margin-top: 0;
  border-top: 0;
}
.article-sources summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--cible-min);
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
.article-sources summary::-webkit-details-marker {
  display: none;
}
.article-sources summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 0.25s var(--courbe), translate 0.25s var(--courbe);
}
.article-sources[open] summary::after {
  rotate: -135deg;
  translate: 0 3px;
}
.doc--article .article-sources summary h2 {
  margin: 0;
  font-size: 20px;
}
@media (hover: hover) {
  .article-sources summary:hover h2 {
    color: var(--accent);
  }
}
.article-sources summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
.article-sources ul {
  margin: 0 0 16px;
}
/* Un titre de source long se coupe dans la ligne, avec sa puce et sa virgule (un lien en bloc s'en détachait). */
.doc .article-sources a:not(.btn) {
  display: inline;
}
.doc--article .article-sources li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.article-fin-icone {
  display: block;
  margin: 0 auto 14px;
  border-radius: 14px;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.8);
}
.doc--article .article-fin h2 {
  margin: 0 0 10px;
  font-size: 28px;
}
.doc--article .article-fin p {
  max-width: 34rem;
  margin-inline: auto;
}
.article-fin h2 {
  margin-top: 0;
}
.article-fin p {
  margin: 0 0 16px;
}
/* LA PAGE FSRS EN TROIS ÉCRANS FORTS (maquette Monki docs/design/ardoise_page_fsrs_v2.html, direction B ; verdict
   utilisateur du 7 novembre 2026, « Va pour B ») : la courbe du haut de page, trois écrans d'une idée chacun (la carte
   qui se retourne, le schéma de la courbe de l'oubli et la frise des délais, les notes qui s'allument), la bande « il
   apprend » et la phrase forte. Chaque mouvement est déclaré sous « prefers-reduced-motion: no-preference » seulement :
   sans lui, chaque pièce montre son état final, entière et immobile. */
@property --allume {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}
.hero .chapo + .petit {
  margin-top: 18px;
}

/* La courbe du haut de page : une vitre posée sur l'aurore, à la place du téléphone de l'accueil. Elle garde trois mots
   écrits dans le dessin (« Une révision », « Objectif : 90 % », « sans révision ») et aucune légende. */
.courbe-hero {
  margin: 0;
  width: 100%;
  max-width: 560px;
  padding: 22px 18px 14px;
  border: 1px solid var(--float-border);
  border-radius: 28px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 72%, transparent), color-mix(in srgb, var(--bg) 35%, transparent));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 40px 80px -44px color-mix(in srgb, var(--accent) 45%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
}
@media (min-width: 900px) {
  .courbe-hero {
    width: 500px;
  }
}
.courbe-hero svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
[data-teinte='or'] {
  stop-color: var(--accent);
}
[data-teinte='bleu'] {
  stop-color: var(--rythme-equilibre);
}
.ch-trait {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 55%, transparent));
}
.ch-objectif {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  opacity: 0.8;
}
.ch-sans {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
  stroke-dasharray: 5 8;
  stroke-linecap: round;
  opacity: 0.55;
}
.courbe-hero text {
  fill: var(--muted);
  font: 15px var(--font-text);
}
.courbe-hero .ch-objectif-texte {
  font-weight: 600;
  fill: var(--accent);
}
.courbe-hero .ch-etiquette {
  fill: var(--soft);
  font-weight: 600;
}
.ch-point,
.ch-fin {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 3;
}
.ch-fin {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
}
.ch-depart {
  fill: var(--accent);
}
.ch-onde {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
}
.ch-revision circle,
.courbe-hero [data-moment] {
  transform-box: fill-box;
  transform-origin: center;
}
@media (max-width: 599px) {
  .courbe-hero {
    padding: 16px 12px 8px;
    border-radius: 22px;
  }
  .courbe-hero text {
    font-size: 21px;
  }
}
/* Au survol, la lueur grandit (l'appui du site incline la vitre). */
@media (hover: hover) and (pointer: fine) {
  .courbe-hero .ch-trait {
    transition: filter 0.3s;
  }
  .courbe-hero:hover .ch-trait {
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 80%, transparent));
  }
}
/* Elle se joue : la baisse, la révision qui remonte, la baisse plus douce, l'objectif tenu ; puis elle s'efface et
   recommence (7 s depuis le 21 novembre 2026, « les visuels sont un peu lents en général » ; 12 s avant). Les illustrations
   des guides (gabarits/illustrations) suivent la même chorégraphie. La vitre arrive avec le titre, sans figer l'appui (« backwards », jamais « both »). */
@media (prefers-reduced-motion: no-preference) {
  .hero .courbe-hero {
    animation: courbe-monte 0.7s var(--courbe) 0.26s backwards;
  }
  .courbe-hero .ch-trait {
    animation: ch-trace 7s linear infinite;
  }
  .courbe-hero [data-moment] {
    animation: 7s var(--courbe) infinite;
  }
  .courbe-hero [data-moment='r1'] .ch-point { animation: ch-r1 7s var(--rebond) infinite; }
  .courbe-hero [data-moment='r2'] .ch-point { animation: ch-r2 7s var(--rebond) infinite; }
  .courbe-hero [data-moment='r1'] .ch-onde { animation: ch-onde-r1 7s ease-out infinite; }
  .courbe-hero [data-moment='r2'] .ch-onde { animation: ch-onde-r2 7s ease-out infinite; }
  .courbe-hero [data-moment='r1'],
  .courbe-hero [data-moment='r2'] { animation: none; }
  .courbe-hero [data-moment='e1'] { animation-name: ch-e1; }
  .courbe-hero [data-moment='e2'] { animation-name: ch-e2; }
  .courbe-hero [data-moment='g1'] { animation-name: ch-g1; }
  .courbe-hero [data-moment='g2'] { animation-name: ch-g2; }
  .courbe-hero [data-moment='fin'] { animation: ch-fin 7s var(--rebond) infinite; }
}
@keyframes courbe-monte {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}
@keyframes ch-trace {
  0%, 4% { stroke-dashoffset: 1; opacity: 1; }
  62%, 88% { stroke-dashoffset: 0; opacity: 1; }
  96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes ch-r1 {
  0%, 15.6% { opacity: 0; scale: 0.6; }
  18.6%, 88% { opacity: 1; scale: 1; }
  96%, 100% { opacity: 0; scale: 1; }
}
@keyframes ch-e1 {
  0%, 22.4% { opacity: 0; }
  26.4%, 88% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes ch-g1 {
  0%, 17.6% { opacity: 0; }
  21.6%, 88% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes ch-r2 {
  0%, 37.6% { opacity: 0; scale: 0.6; }
  40.6%, 88% { opacity: 1; scale: 1; }
  96%, 100% { opacity: 0; scale: 1; }
}
@keyframes ch-e2 {
  0%, 44.4% { opacity: 0; }
  48.4%, 88% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes ch-g2 {
  0%, 39.6% { opacity: 0; }
  43.6%, 88% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes ch-fin {
  0%, 62% { opacity: 0; scale: 0.6; }
  65%, 88% { opacity: 1; scale: 1; }
  96%, 100% { opacity: 0; scale: 1; }
}
@keyframes ch-onde-r1 {
  0%, 15.6% { opacity: 0; scale: 1; }
  16.6% { opacity: 0.9; scale: 1; }
  27.6%, 100% { opacity: 0; scale: 3.4; }
}
@keyframes ch-onde-r2 {
  0%, 37.6% { opacity: 0; scale: 1; }
  38.6% { opacity: 0.9; scale: 1; }
  49.6%, 100% { opacity: 0; scale: 3.4; }
}

/* Les trois écrans forts : une idée par écran, en grand, avec son visuel qui se joue. */
.ecran-fort {
  min-height: 76svh;
  display: grid;
  align-content: center;
}
.ecran-fort-grille {
  display: grid;
  gap: 36px;
  align-items: center;
}
.ecran-fort h2 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.1;
  text-wrap: balance;
}
.ecran-fort h2 span,
.phrase-forte span {
  color: var(--accent);
}
.ecran-fort .essai-matiere {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.ecran-fort-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--on-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, var(--text)), var(--accent));
}
.ecran-fort-visuel {
  display: grid;
}
.ecran-fort .schema-oubli {
  margin: 0;
}
.ecran-fort-texte .frise {
  margin-top: 28px;
}
@media (min-width: 900px) {
  .ecran-fort-grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }
  .ecran-fort--large .ecran-fort-grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .ecran-fort--large .ecran-fort-texte {
    max-width: 44rem;
  }
  .ecran-fort h2 {
    font-size: 48px;
  }
}

/* La carte qui se retourne : une carte de médecine, recto puis verso, qui choisit « Correct », en boucle de 7 s. Sans
   mouvement, le verso (la réponse, « Correct » allumé). Le pivot est sur sa propre couche (will-change) : Safari sur Mac
   laissait noir un contenu animé dans un parent en 3D jusqu'au survol (le téléphone de l'accueil, #65). */
.carte-fsrs {
  width: min(100%, 440px);
  aspect-ratio: 5 / 4;
  /* Pas de content-visibility ici (revue du 9 novembre 2026) : son confinement de peinture rognait le halo des faces et le
     bord de la carte en plein retournement. Le retournement n'anime que des transformations, que le compositeur fait seul. */
  justify-self: center;
  border-radius: 22px;
  perspective: 1200px;
}
.carte-fsrs-pivot {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  will-change: transform;
}
.carte-fsrs-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--float-border);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--surface), var(--bg));
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 35%, transparent);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.carte-fsrs-verso {
  transform: rotateY(180deg);
}
.carte-fsrs .essai-matiere {
  margin: 0;
}
.carte-fsrs-texte {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  color: var(--text);
}
.carte-fsrs-texte b {
  color: var(--accent);
}
.carte-fsrs-voir {
  margin-top: auto;
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 12px;
  background: var(--active);
  color: var(--soft);
  font-weight: 600;
}
.carte-fsrs-notes {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.carte-fsrs-notes i {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--float-border);
  border-radius: 12px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
}
.carte-fsrs-notes [data-note='3'] {
  border-color: var(--rythme-equilibre);
  background: color-mix(in srgb, var(--rythme-equilibre) 18%, transparent);
  color: var(--text);
}
@media (prefers-reduced-motion: no-preference) {
  .carte-fsrs-pivot {
    animation: carte-tourne 7s var(--courbe) infinite;
  }
  .carte-fsrs-notes [data-note='3'] {
    animation: carte-note 7s var(--rebond) infinite;
  }
}
@keyframes carte-tourne {
  0%, 36% { transform: none; }
  46%, 90% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
@keyframes carte-note {
  0%, 58% { scale: 1; background: transparent; border-color: var(--float-border); }
  63% { scale: 1.08; }
  67%, 100% { scale: 1; background: color-mix(in srgb, var(--rythme-equilibre) 18%, transparent); border-color: var(--rythme-equilibre); }
}

/* La frise des délais : l'attente avant chaque retour de la carte, à l'échelle (2, 11 et 46 jours, ceux du schéma ; les
   longueurs suivent les textes de fsrs.oubli.frise). Elle se trace au défilement, entière ailleurs. */
.frise {
  display: grid;
  gap: 14px;
  width: min(100%, 480px);
  margin: 0;
  padding: 24px;
  border: 1px solid var(--float-border);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--surface), var(--bg));
  list-style: none;
}
.frise li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.frise li:nth-child(1) { --l: 2; }
.frise li:nth-child(2) { --l: 11; }
.frise li:nth-child(3) { --l: 46; }
.frise span {
  font-weight: 600;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.frise i {
  display: block;
  height: 14px;
  width: max(14px, calc(var(--l) / 46 * 100%));
  border-radius: 7px;
  background: linear-gradient(90deg, var(--accent), var(--rythme-equilibre));
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--accent) 60%, transparent);
  transform-origin: 0 50%;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .frise i {
      animation: trace linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 45%;
    }
  }
}

/* Les notes qui s'allument : chaque note s'allume à son tour (8 s), et son délai paraît en grand. Sans mouvement,
   « Correct » et ses 11 jours. */
.notes-jouees {
  width: min(100%, 520px);
  justify-self: center;
  padding: 28px 20px 20px;
  border: 1px solid var(--float-border);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--surface), var(--bg));
  text-align: center;
}
.notes-jouees-delai {
  display: grid;
  margin: 0;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
}
.notes-jouees-delai span {
  grid-area: 1 / 1;
  opacity: var(--allume);
  translate: 0 calc((1 - var(--allume)) * 12px);
  /* Le dégradé ne se peint que dans la boîte : sur une ligne de hauteur 1, la queue du « j » de « jours » en sortait et
     restait transparente (retour de l'utilisateur dans Safari, 7 novembre 2026). La boîte descend sous la ligne, la
     marge négative rend la place. */
  padding-block-end: 0.2em;
  margin-block-end: -0.2em;
  background: linear-gradient(90deg, var(--accent), var(--rythme-equilibre));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notes-jouees-suite {
  margin: 8px 0 22px;
  color: var(--muted);
}
.notes-jouees ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.notes-jouees li {
  display: grid;
  gap: 2px;
  place-items: center;
  min-height: 64px;
  border: 1px solid color-mix(in srgb, var(--teinte) calc(var(--allume) * 100%), var(--float-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--teinte) calc(var(--allume) * 18%), var(--float-bg));
  translate: 0 calc(var(--allume) * -6px);
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--teinte) calc(var(--allume) * 90%), transparent);
}
.notes-jouees li b {
  font-size: 15px;
  color: var(--teinte);
}
.notes-jouees li span {
  font-size: 13px;
  color: var(--muted);
}
.notes-jouees [data-note='1'] { --teinte: var(--lapse); }
.notes-jouees [data-note='2'] { --teinte: var(--accent); }
.notes-jouees [data-note='3'] { --teinte: var(--rythme-equilibre); --allume: 1; }
.notes-jouees [data-note='4'] { --teinte: var(--rythme-leger); }
.notes-jouees-delai [data-note] { --allume: 0; }
.notes-jouees-delai [data-note='3'] { --allume: 1; }
@media (prefers-reduced-motion: no-preference) {
  .notes-jouees [data-note] {
    animation: 8s var(--courbe) infinite;
  }
  .notes-jouees [data-note='1'] { animation-name: note-1; }
  .notes-jouees [data-note='2'] { animation-name: note-2; }
  .notes-jouees [data-note='3'] { animation-name: note-3; }
  .notes-jouees [data-note='4'] { animation-name: note-4; }
}
@keyframes note-1 {
  0%, 22% { --allume: 1; }
  25%, 100% { --allume: 0; }
}
@keyframes note-2 {
  0%, 25%, 50%, 100% { --allume: 0; }
  28%, 47% { --allume: 1; }
}
@keyframes note-3 {
  0%, 50%, 75%, 100% { --allume: 0; }
  53%, 72% { --allume: 1; }
}
@keyframes note-4 {
  0%, 75%, 100% { --allume: 0; }
  78%, 97% { --allume: 1; }
}
@media (max-width: 599px) {
  .notes-jouees ul {
    gap: 6px;
  }
  .notes-jouees li b {
    font-size: 14px;
  }
  .notes-jouees-delai {
    font-size: 48px;
  }
}

/* La bande « il apprend ta façon d'oublier » (la pièce .engagements de l'accueil, en trois colonnes), puis la phrase
   forte. */
.apprend {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.apprend h2 {
  margin: 0 0 8px;
  font-size: 26px;
}
.apprend ul {
  border-top: 0;
}
@media (min-width: 900px) {
  .apprend ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}
.phrase-forte {
  padding: 88px 0;
  text-align: center;
}
.phrase-forte p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.15;
  text-wrap: balance;
}
@media (min-width: 900px) {
  .phrase-forte p {
    font-size: 52px;
  }
}
/* LA PAGE À PROPOS SUR LE MODÈLE DE L'ARTICLE (critique de design du 4 novembre 2026, « Oui, les trois ») : la colonne
   centrée de 46rem, les intertitres de l'article, la photo en bandeau sous le chapeau, et l'adresse e-mail en plus petit
   sous le bouton de fin. À l'ordinateur (même jour, « que la page prenne de la largeur, un peu comme fsrs ») : la grille
   de l'article, la photo en colonne collante à gauche, à la place du sommaire, recadrée en hauteur. */
.doc--apropos .doc-photo {
  margin: 28px 0 8px;
  aspect-ratio: 3 / 2;
}
.doc--apropos .doc-photo img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 88%;
}
@media (min-width: 600px) {
  .doc--apropos .doc-photo {
    aspect-ratio: 16 / 7;
  }
}
@media (min-width: 1100px) {
  .doc--apropos .article-corps {
    grid-template-columns: 340px minmax(0, 1fr);
  }
  .doc--apropos .article-corps .doc-photo {
    position: sticky;
    top: 88px;
    margin: 0;
    aspect-ratio: 4 / 5;
  }
  .doc--apropos .article-corps .doc-photo img {
    object-position: 62% 50%;
  }
}
.doc--article .article-fin .btn + p {
  margin: 20px auto 0;
  font-size: 15px;
  color: var(--muted);
}
/* UN TÉMOIGNAGE SEUL (critique de design du 3 novembre 2026) : tant qu'il n'y en a qu'un, il se montre en grande citation
   centrée, sous un titre centré, plutôt qu'en petite carte au bord d'une rangée vide. Le bandeau revient à trois. */
.temoignages:has(.temoins-piste[data-cartes='1']) h2 {
  text-align: center;
}
.temoins[data-fixe] .temoins-piste[data-cartes='1'] {
  justify-content: center;
}
.temoins-piste[data-cartes='1'] .temoin {
  width: min(40em, 100%);
  margin-inline-end: 0;
  padding: 32px 36px 26px;
}
.temoins-piste[data-cartes='1'] .temoin blockquote p {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

/* COMMENT ÇA MARCHE (retour de Lucie, 4 novembre 2026) : le principe des flashcards en trois étapes numérotées, chaque
   numéro en pastille ambre en relief ; la carte de démo, à côté, est l'essai de la deuxième. Le surtitre du haut de page
   dit ce qu'est Pomki avant le titre. */
.hero .essai-matiere {
  margin: 0 0 14px;
}
/* UNE RANGÉE PAR ÉTAPE (maquette du 4 novembre 2026, « A, une rangée par étape ») : le texte d'un côté, l'écran de l'autre,
   en alternance ; empilés sur le téléphone, le texte d'abord. La rangée de la démo ne passe côte à côte qu'à 1 100 px, pour
   que les six matières tiennent sur leur ligne. */
.etapes-illustrees {
  counter-reset: etape;
  display: grid;
  gap: 72px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.etape {
  counter-increment: etape;
  display: grid;
  gap: 28px;
  align-items: center;
}
.etape-texte::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--on-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, #fff), var(--accent));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 0 -2px 0 rgb(0 0 0 / 0.2),
    0 8px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.etape-texte h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.etape-texte p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--soft);
}
.etape-visuel {
  display: grid;
  justify-items: center;
}
.etape--demo .etape-visuel {
  justify-items: stretch;
}
.etape-visuel .telephone {
  width: min(260px, 66vw);
}
@media (min-width: 900px) {
  .etape:not(.etape--demo) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
  /* Empilée jusqu'à 1 100 px, la carte de démo ne prend pas toute la rangée. */
  .etape--demo .essais {
    max-width: 36rem;
  }
}
@media (min-width: 1100px) {
  .etape--demo {
    grid-template-columns: minmax(0, 1fr) fit-content(560px);
    gap: 56px;
  }
  .etape--demo .etape-texte {
    order: 2;
  }
  .etape--demo .essais {
    max-width: none;
  }
}

/* L'ÉTAPE 1 ANIMÉE : LE PANNEAU QUI SE REMPLIT TOUT SEUL (demande du 4 novembre 2026, « des animations où la carte se remplit
   toute seule, où les différents types de cartes changent ») : la réplique du panneau « Nouvelle carte » de l'app, trois
   temps de 6 s (question-réponse, dans les deux sens, texte à trous). Chaque temps porte son décalage (--s, négatif : la
   boucle est déjà en route au chargement, jamais un état d'avant). Dans un temps : la question se tape de 0,5 s à 2 s, la
   réponse de 2,3 s à 3,8 s, « Ajouter » s'enfonce à 4,2 s, la carte part dans le cours et « +1 » saute. */
.atelier-anime {
  /* Loin de la vue, le panneau ne se calcule plus. Sa hauteur est tenue à 512 px, la plus grande mesurée (440 px de large,
     9 novembre 2026 ; 472 px au téléphone) : la place réservée avant son premier rendu est donc la sienne, et la page ne
     change pas de hauteur quand il paraît. La taille réservée ne compte que l'intérieur : 512 moins ses marges et son bord
     (18 + 20 + 2 px). */
  min-height: 512px;
  content-visibility: auto;
  contain-intrinsic-size: auto 472px;
  width: min(100%, 440px);
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #2a2c2a;
  font-size: 15px;
  box-shadow:
    0 30px 60px -30px rgb(0 0 0 / 0.8),
    0 18px 46px -20px color-mix(in srgb, var(--accent) 22%, transparent);
}
.aa-s1 {
  --s: -18s;
}
.aa-s2 {
  --s: -12s;
}
.aa-s3 {
  --s: -6s;
}
.aa-tete {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--soft);
}
.aa-cours,
.aa-plus,
.aa-champ,
.aa-ajouter {
  display: inline-grid;
}
.aa-cours > *,
.aa-plus > *,
.aa-champ > *,
.aa-ajouter > span:not(.aa-eclats) {
  grid-area: 1 / 1;
}
.aa-cours > *,
.aa-ajouter > span:not(.aa-eclats) {
  opacity: 0;
  animation: aa-nom 18s var(--courbe) var(--s) infinite;
}
.aa-cours {
  color: var(--text);
}
.aa-chevron {
  width: 10px;
  height: 6px;
  color: var(--muted);
}
.aa-plus > * {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--on-accent);
  background: var(--accent);
  opacity: 0;
  animation: aa-plus 18s var(--rebond) var(--s) infinite;
}
.aa-corps {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #343734;
}
.aa-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.aa-type {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 4px 6px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
  animation: aa-type 18s var(--courbe) var(--s) infinite;
}
.aa-outils {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--soft);
}
.aa-outils i {
  font-family: Georgia, serif;
}
.aa-outils .aa-a {
  text-decoration: underline;
}
.aa-outils .aa-ab {
  padding: 0 2px;
  color: #111;
  background: #f7e600;
}
.aa-label {
  margin: 4px 0 -4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.aa-champ {
  display: grid;
  align-content: start;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  line-height: 1.5;
  color: var(--text);
  background: #222322;
  animation: aa-focus-q 6s linear infinite;
}
.aa-champ--r {
  animation-name: aa-focus-r;
}
.aa-champ > p {
  margin: 0;
  opacity: 0;
  animation: aa-scene 18s var(--courbe) var(--s) infinite;
}
/* Un mot est une boîte qui s'élargit en 120 ms, puis le suivant : ses lettres paraissent l'une après l'autre, sans qu'un
   mot commence avant que le précédent soit tapé, et le curseur, à la fin, les suit. Quinze mots au plus par champ, que la
   construction refuse au-delà (construire.mjs, FRAPPE_MOTS) : un rang de plus ici sans relever les deux ensemble laisserait
   le mot suivant sans délai, donc jamais tapé. */
.m {
  --t0: 0.5s;
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: pre;
  animation: aa-mot 18s linear calc(var(--s) + var(--t0) + var(--n) * 120ms) infinite;
}
.aa-champ--r .m {
  --t0: 2.3s;
}
.m.trou {
  border-radius: 6px;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.m:nth-child(1) {
  --n: 0;
}
.m:nth-child(2) {
  --n: 1;
}
.m:nth-child(3) {
  --n: 2;
}
.m:nth-child(4) {
  --n: 3;
}
.m:nth-child(5) {
  --n: 4;
}
.m:nth-child(6) {
  --n: 5;
}
.m:nth-child(7) {
  --n: 6;
}
.m:nth-child(8) {
  --n: 7;
}
.m:nth-child(9) {
  --n: 8;
}
.m:nth-child(10) {
  --n: 9;
}
.m:nth-child(11) {
  --n: 10;
}
.m:nth-child(12) {
  --n: 11;
}
.m:nth-child(13) {
  --n: 12;
}
.m:nth-child(14) {
  --n: 13;
}
.m:nth-child(15) {
  --n: 14;
}
.aa-curseur {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent);
  visibility: hidden;
  animation:
    aa-curseur-q 18s linear var(--s) infinite,
    aa-clignote 0.9s steps(1) infinite;
}
.aa-champ--r .aa-curseur {
  animation-name: aa-curseur-r, aa-clignote;
}
.aa-etiquettes {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--soft);
  background: rgb(255 255 255 / 0.04);
}
.aa-ajouter {
  position: relative;
  place-items: center;
  min-height: 42px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  animation: aa-presse 6s var(--courbe) infinite;
}
.aa-onde {
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
}
.aa-onde,
.aa-eclats {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}
.aa-onde {
  opacity: 0;
  animation: aa-onde 6s ease-out infinite;
}
.aa-eclats i,
.sa-eclats i {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.aa-eclats i {
  animation: aa-eclat 6s var(--courbe) infinite;
}
.aa-eclats i:nth-child(1),
.sa-eclats i:nth-child(1) {
  --a: 0deg;
}
.aa-eclats i:nth-child(2),
.sa-eclats i:nth-child(2) {
  --a: 45deg;
}
.aa-eclats i:nth-child(3),
.sa-eclats i:nth-child(3) {
  --a: 90deg;
}
.aa-eclats i:nth-child(4),
.sa-eclats i:nth-child(4) {
  --a: 135deg;
}
.aa-eclats i:nth-child(5),
.sa-eclats i:nth-child(5) {
  --a: 180deg;
}
.aa-eclats i:nth-child(6),
.sa-eclats i:nth-child(6) {
  --a: 225deg;
}
.aa-eclats i:nth-child(7),
.sa-eclats i:nth-child(7) {
  --a: 270deg;
}
.aa-eclats i:nth-child(8),
.sa-eclats i:nth-child(8) {
  --a: 315deg;
}
@keyframes aa-nom {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  2.2%,
  31% {
    opacity: 1;
    transform: none;
  }
  33.3%,
  100% {
    opacity: 0;
    transform: translateY(-5px);
  }
}
@keyframes aa-type {
  0%,
  33.4%,
  100% {
    color: var(--muted);
    border-color: var(--border);
    background: transparent;
  }
  1.6%,
  31.6% {
    color: var(--text);
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }
}
@keyframes aa-scene {
  0% {
    opacity: 0;
    transform: none;
  }
  1.7%,
  23.3% {
    opacity: 1;
    transform: none;
  }
  26.4%,
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
}
@keyframes aa-mot {
  0% {
    max-width: 0;
  }
  0.67%,
  30% {
    max-width: 12em;
  }
  30.1%,
  100% {
    max-width: 0;
  }
}
@keyframes aa-curseur-q {
  0%,
  2.1% {
    visibility: hidden;
  }
  2.2%,
  12.7% {
    visibility: visible;
  }
  12.8%,
  100% {
    visibility: hidden;
  }
}
@keyframes aa-curseur-r {
  0%,
  12.7% {
    visibility: hidden;
  }
  12.8%,
  23.2% {
    visibility: visible;
  }
  23.3%,
  100% {
    visibility: hidden;
  }
}
@keyframes aa-clignote {
  50% {
    opacity: 0;
  }
}
@keyframes aa-focus-q {
  0%,
  6%,
  38%,
  100% {
    border-color: transparent;
  }
  7%,
  37% {
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  }
}
@keyframes aa-focus-r {
  0%,
  37%,
  70%,
  100% {
    border-color: transparent;
  }
  38%,
  69% {
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  }
}
@keyframes aa-presse {
  0%,
  69%,
  76%,
  100% {
    transform: none;
    background: var(--accent);
  }
  71% {
    transform: translateY(1px) scale(0.95);
    background: var(--accent-press);
  }
}
@keyframes aa-onde {
  0%,
  69.9% {
    opacity: 0;
    transform: scale(0.2);
  }
  70% {
    opacity: 0.8;
    transform: scale(0.2);
  }
  84%,
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}
@keyframes aa-eclat {
  0%,
  69.9% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-14px);
  }
  70% {
    opacity: 1;
    transform: rotate(var(--a)) translateY(-14px) scale(1);
  }
  84%,
  100% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-70px) scale(0.3);
  }
}
@keyframes aa-plus {
  0%,
  24% {
    opacity: 0;
    transform: scale(0.4) translateY(4px);
  }
  25.6% {
    opacity: 1;
    transform: scale(1.3) translateY(-2px);
  }
  27.2%,
  31% {
    opacity: 1;
    transform: none;
  }
  33%,
  100% {
    opacity: 0;
    transform: none;
  }
}

/* L'ÉTAPE 3 ANIMÉE : LA SÉANCE QUI SE JOUE TOUTE SEULE (même demande : « avec les notes et le feeling, le juice ») : quatre
   cartes de 4 s, dans le cadre du téléphone, aux mesures de l'écran (cqw : 1 % de sa largeur). Dans un temps : la question,
   « Voir la réponse » touché à 1,3 s, la réponse et les notes à 1,45 s, la note touchée à 3,4 s, puis le juice de l'app
   (DESIGN.md §4.3) : le bouton s'enfonce, l'onde part du doigt (corail pour « Pas su », lueur neutre sinon), les éclats, la
   carte qui part (à gauche si ratée, vers le haut sinon) et la suivante qui se pose aussitôt, sous le nom qui monte avec
   son délai. */
.seance-anime {
  position: relative;
  aspect-ratio: 390 / 844;
  container-type: inline-size;
  overflow: hidden;
  /* Loin de la vue, la séance ne se calcule plus (relecture du 6 novembre 2026) : celle du haut de page n'est dans aucune
     section, et tournait encore au bas de l'accueil. Sa hauteur reste celle de ses proportions : aucune taille de
     remplacement (none), le rapport 390/844 la donne même quand elle n'a jamais été dessinée. */
  content-visibility: auto;
  contain-intrinsic-size: none;
  background: var(--bg);
  color: var(--text);
}
.sa {
  position: absolute;
  inset: 12cqw 0 0;
  display: flex;
  flex-direction: column;
  padding: 0 3cqw 6cqw;
}
.sa-s1 {
  --s: -16s;
}
.sa-s2 {
  --s: -12s;
}
.sa-s3 {
  --s: -8s;
}
.sa-s4 {
  --s: -4s;
}
.sa-tete {
  display: flex;
  align-items: center;
  gap: 4cqw;
  height: 14cqw;
  padding: 0 1cqw;
  font-size: 4.4cqw;
}
.sa-tete b {
  flex: 1;
}
.sa-logo {
  flex: none;
  width: 6.2cqw;
  height: 6.2cqw;
  color: var(--muted);
}
.sa-menu {
  width: 5cqw;
  height: 3.4cqw;
  background: linear-gradient(#9aa5ae 0 0) top / 100% 0.5cqw no-repeat, linear-gradient(#9aa5ae 0 0) center / 100% 0.5cqw no-repeat,
    linear-gradient(#9aa5ae 0 0) bottom / 100% 0.5cqw no-repeat;
}
.sa-rond {
  display: grid;
  place-items: center;
  width: 9cqw;
  height: 9cqw;
  border: 0.4cqw solid #4a4f52;
  border-radius: 50%;
  font-size: 3.4cqw;
  font-weight: 700;
  color: var(--muted);
}
.sa-barre {
  height: 1.2cqw;
  margin: 1cqw 0 3cqw;
  border-radius: 1cqw;
  background: #3a3f42;
  overflow: hidden;
}
.sa-barre i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8b969f;
  /* Une barre pleine qui glisse dans son rail (qui la rogne), plutôt qu'une largeur : la carte graphique l'anime seule,
     sans recalcul de la page, et son bout reste arrondi (un étirement l'écrasait). */
  animation: sa-barre 16s linear infinite;
}
.sa-pile {
  position: relative;
  flex: 1;
}
/* Une grille : l'étiquette, puis une seule case où la question puis la réponse se succèdent. Au verso, l'app ne montre
   que la réponse (`faceHtmlPair`) : elle prend la place de la question, au même endroit. */
.sa-carte {
  position: absolute;
  inset: 0 3cqw;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  justify-items: center;
  /* Le cadre et le relief de la carte de l'app (`.card-face`), à l'échelle de l'écran : 1 px de l'app vaut 0,256cqw. */
  padding: 7.2cqw 6.2cqw;
  border: 1px solid var(--border);
  border-radius: 4.1cqw;
  text-align: center;
  background: linear-gradient(155deg, color-mix(in srgb, #fff 8%, var(--surface)), var(--surface) 45%, color-mix(in srgb, var(--bg) 35%, var(--surface)));
  box-shadow:
    inset 0 0.26cqw 0 rgb(255 255 255 / 0.14),
    0 0.5cqw 0 color-mix(in srgb, var(--surface) 70%, black),
    0 1cqw 0 color-mix(in srgb, var(--surface) 50%, black),
    0 2.6cqw 5.1cqw -2.6cqw rgb(0 0 0 / 0.75);
  opacity: 0;
  animation: sa-carte 16s var(--courbe) var(--s) infinite;
}
.sa-rate {
  animation-name: sa-carte-gauche;
}
/* Le filigrane de face de l'app : 12 px, espacé de 0,22em, « Question » en gris, « Réponse » en ambre. */
.sa-face {
  display: grid;
  margin-bottom: 2.6cqw;
  font-family: var(--font-display);
  font-size: 3.08cqw;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.sa-verso {
  color: var(--accent);
}
.sa-face > * {
  grid-area: 1 / 1;
}
.sa-recto {
  animation: sa-recto 16s linear var(--s) infinite;
}
.sa-verso {
  opacity: 0;
  animation: sa-verso 16s linear var(--s) infinite;
}
.sa-q,
.sa-r {
  font-size: 5.13cqw;
  line-height: 1.55;
}
.sa-q,
.sa-r {
  grid-area: 2 / 1;
  align-self: start;
}
.sa-q {
  animation: sa-recto 16s linear var(--s) infinite;
}
.sa-r {
  opacity: 0;
  animation: sa-reponse 16s var(--courbe) var(--s) infinite;
}
.sa-nom {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1cqw;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  text-shadow:
    0 1px 0 var(--bg),
    0 0 3cqw rgb(35 35 35 / 0.95);
  animation: sa-nom 16s var(--courbe) var(--s) infinite;
}
.sa-nom b {
  font-size: 9cqw;
  color: var(--text);
}
.sa-nom small {
  font-size: 4cqw;
  font-weight: 700;
  color: var(--soft);
}
.sa-nom[data-note='1'] b {
  color: var(--lapse);
}
.sa-nom[data-note='2'] b {
  color: var(--accent);
}
.sa-restantes {
  margin: 4cqw 0;
  font-size: 4.4cqw;
  font-weight: 700;
  text-align: center;
  color: #8b969f;
}
.sa-compte {
  display: inline-grid;
}
.sa-compte > * {
  grid-area: 1 / 1;
  opacity: 0;
  animation: sa-un-temps 16s linear var(--c) infinite;
}
.sa-compte .sa-s1 {
  --c: -0.45s;
}
.sa-compte .sa-s2 {
  --c: -12.45s;
}
.sa-compte .sa-s3 {
  --c: -8.45s;
}
.sa-compte .sa-s4 {
  --c: -4.45s;
}
.sa-bas {
  position: relative;
  height: 19cqw;
}
.sa-voir,
.sa-notes {
  position: absolute;
  inset: 0;
}
.sa-voir {
  display: grid;
  place-items: center;
  border: 0.4cqw solid #3f4548;
  border-radius: 5cqw;
  font-size: 4.6cqw;
  font-weight: 700;
  background: rgb(255 255 255 / 0.03);
  animation: sa-voir 4s var(--courbe) infinite;
}
.sa-notes {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3cqw;
  opacity: 0;
  animation: sa-notes 4s var(--courbe) infinite;
}
.sa-note[data-note='1'],
.sa-groupe {
  border: 0.4cqw solid #3f4548;
  border-radius: 5cqw;
}
.sa-groupe {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sa-note {
  display: grid;
  place-content: center;
  gap: 0.6cqw;
  border-radius: 5cqw;
  text-align: center;
  animation: sa-presse 16s var(--courbe) var(--s) infinite;
  /* Le fond de l'appui est un voile dont seule l'opacité bouge (revue de performance du 6 novembre 2026) : un fond animé
     faisait recalculer la page à chaque image. */
  position: relative;
  isolation: isolate;
}
.sa-note::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--active);
  opacity: 0;
  animation: sa-presse-voile 16s var(--courbe) var(--s) infinite;
}
.sa-note b {
  font-size: 4.2cqw;
}
.sa-note small {
  display: grid;
  font-size: 3.2cqw;
  color: var(--muted);
}
.sa-note small > * {
  grid-area: 1 / 1;
  opacity: 0;
  animation: sa-un-temps 16s linear var(--s) infinite;
}
.sa-note[data-note='1'] b {
  color: var(--lapse);
}
/* Chaque note est touchée une fois par boucle : son décalage est celui de sa carte. */
.sa-note[data-note='3'] {
  --s: -16s;
}
.sa-note[data-note='4'] {
  --s: -12s;
}
.sa-note[data-note='1'] {
  --s: -8s;
}
.sa-note[data-note='2'] {
  --s: -4s;
}
.sa-note small > .sa-s1 {
  --s: -16s;
}
.sa-note small > .sa-s2 {
  --s: -12s;
}
.sa-note small > .sa-s3 {
  --s: -8s;
}
.sa-note small > .sa-s4 {
  --s: -4s;
}
.sa-geste,
.sa-doigt--voir {
  position: absolute;
  top: 50%;
  pointer-events: none;
}
.sa-doigt--voir {
  left: 50%;
}
.sa-geste[data-note='1'] {
  left: 11.5%;
}
.sa-geste[data-note='2'] {
  left: 39.5%;
}
.sa-geste[data-note='3'] {
  left: 63.5%;
}
.sa-geste[data-note='4'] {
  left: 87.5%;
}
.sa-doigt {
  position: absolute;
  left: 0;
  top: 0;
  width: 10cqw;
  height: 10cqw;
  margin: -5cqw 0 0 -5cqw;
  border: 0.5cqw solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.28);
  opacity: 0;
  animation: sa-doigt 16s var(--courbe) var(--s) infinite;
}
.sa-doigt--voir {
  left: 50%;
  top: 50%;
  animation: sa-doigt-voir 4s var(--courbe) infinite;
}
.sa-onde {
  position: absolute;
  left: -22cqw;
  top: -22cqw;
  width: 44cqw;
  height: 44cqw;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.5), transparent 70%);
  opacity: 0;
  animation: sa-onde 16s ease-out var(--s) infinite;
}
.sa-geste[data-note='1'] .sa-onde {
  background: radial-gradient(circle, color-mix(in srgb, var(--lapse) 70%, transparent), transparent 70%);
}
.sa-eclats {
  position: absolute;
  left: 0;
  top: 0;
}
.sa-eclats i {
  left: -0.9cqw;
  top: -0.9cqw;
  width: 1.8cqw;
  height: 1.8cqw;
  background: var(--text);
  animation: sa-eclat 16s var(--courbe) var(--s) infinite;
}
.sa-geste[data-note='1'] .sa-eclats i {
  background: var(--lapse);
}
.sa-geste[data-note='2'] .sa-eclats i {
  background: var(--accent);
}
.sa-eclats i:nth-child(even) {
  animation-name: sa-eclat-loin;
}
@keyframes sa-carte {
  /* La carte se pose pendant que la précédente part (de -0,45 s à 0 s de son temps), puis part à son tour. */
  0%,
  22.2% {
    opacity: 1;
    transform: none;
  }
  25% {
    opacity: 0;
    transform: translateY(-9cqw) scale(0.96);
  }
  97.1% {
    opacity: 0;
    transform: translateY(14px) scale(0.965);
  }
  97.2% {
    opacity: 0.35;
    transform: translateY(14px) scale(0.965);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes sa-carte-gauche {
  /* La carte se pose pendant que la précédente part (de -0,45 s à 0 s de son temps), puis part à son tour. */
  0%,
  22.2% {
    opacity: 1;
    transform: none;
  }
  25% {
    opacity: 0;
    transform: translateX(-115%) rotate(-9deg);
  }
  97.1% {
    opacity: 0;
    transform: translateY(14px) scale(0.965);
  }
  97.2% {
    opacity: 0.35;
    transform: translateY(14px) scale(0.965);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes sa-recto {
  /* Côté question à l'arrivée, côté réponse après « Voir la réponse », de nouveau question une fois la carte partie. */
  0%,
  9%,
  30.1%,
  100% {
    opacity: 1;
  }
  9.4%,
  30% {
    opacity: 0;
  }
}
@keyframes sa-verso {
  0%,
  9%,
  30.1%,
  100% {
    opacity: 0;
  }
  9.4%,
  30% {
    opacity: 1;
  }
}
@keyframes sa-reponse {
  0%,
  9%,
  30.1%,
  100% {
    opacity: 0;
    transform: translateY(2cqw);
  }
  10.8%,
  30% {
    opacity: 1;
    transform: none;
  }
}
@keyframes sa-nom {
  0%,
  22% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  23.4% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 3cqw)) scale(1.16);
  }
  25%,
  26.2% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 8cqw)) scale(1);
  }
  28.6%,
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 16cqw)) scale(0.96);
  }
}
@keyframes sa-un-temps {
  0%,
  24.9% {
    opacity: 1;
  }
  25%,
  100% {
    opacity: 0;
  }
}
@keyframes sa-barre {
  0%,
  22% {
    transform: translateX(-86%);
  }
  23.4%,
  47% {
    transform: translateX(-74%);
  }
  48.4%,
  72% {
    transform: translateX(-62%);
  }
  73.4%,
  97% {
    transform: translateX(-50%);
  }
  98.4%,
  100% {
    transform: translateX(-38%);
  }
}
@keyframes sa-voir {
  0%,
  31% {
    opacity: 1;
    transform: none;
  }
  33.5% {
    opacity: 1;
    transform: scale(0.96);
  }
  35% {
    opacity: 1;
    transform: none;
  }
  38%,
  92% {
    opacity: 0;
    transform: none;
  }
  97%,
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes sa-notes {
  0%,
  35% {
    opacity: 0;
    transform: translateY(2cqw);
  }
  40%,
  89% {
    opacity: 1;
    transform: none;
  }
  94%,
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes sa-presse {
  0%,
  21.2%,
  23%,
  100% {
    transform: none;
  }
  21.7% {
    transform: translateY(0.5cqw) scale(0.92);
  }
}
@keyframes sa-presse-voile {
  0%,
  21.2%,
  23%,
  100% {
    opacity: 0;
  }
  21.7% {
    opacity: 1;
  }
}
@keyframes sa-doigt {
  0%,
  19.8% {
    opacity: 0;
    transform: scale(1.5);
  }
  21.2% {
    opacity: 0.9;
    transform: scale(1);
  }
  22.2% {
    opacity: 0.9;
    transform: scale(0.88);
  }
  24%,
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}
@keyframes sa-doigt-voir {
  0%,
  26% {
    opacity: 0;
    transform: scale(1.5);
  }
  32% {
    opacity: 0.9;
    transform: scale(1);
  }
  35% {
    opacity: 0.9;
    transform: scale(0.88);
  }
  40%,
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}
@keyframes sa-onde {
  0%,
  21.8% {
    opacity: 0;
    transform: scale(0.2);
  }
  21.9% {
    opacity: 0.9;
    transform: scale(0.2);
  }
  26.4%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}
@keyframes sa-eclat {
  0%,
  21.8% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-4cqw);
  }
  21.9% {
    opacity: 1;
    transform: rotate(var(--a)) translateY(-4cqw) scale(1);
  }
  26.4%,
  100% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-20cqw) scale(0.3);
  }
}
@keyframes sa-eclat-loin {
  0%,
  21.8% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-4cqw);
  }
  21.9% {
    opacity: 1;
    transform: rotate(var(--a)) translateY(-4cqw) scale(1);
  }
  27.4%,
  100% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-27cqw) scale(0.3);
  }
}

/* Sous « réduire les animations » : la première carte de chaque réplique, remplie et immobile ; ni curseur, ni onde. */
@media (prefers-reduced-motion: reduce) {
  .atelier-anime *,
  .seance-anime * {
    animation: none !important;
  }
  .aa-s1,
  .aa-champ > .aa-s1,
  .sa-carte.sa-s1,
  .sa-compte .sa-s1,
  .sa-note small > .sa-s1,
  .sa-notes,
  .sa-verso,
  .sa-r {
    opacity: 1;
  }
  .atelier-anime .m {
    max-width: none;
  }
  .aa-cours > .aa-s1,
  .aa-ajouter > span.aa-s1 {
    opacity: 1;
  }
  .aa-type.aa-s1 {
    color: var(--text);
    border-color: var(--accent);
  }
  .sa-recto,
  .sa-q,
  .sa-voir,
  .aa-curseur,
  .aa-plus,
  .aa-onde,
  .aa-eclats,
  .sa-doigt,
  .sa-geste {
    display: none;
  }
}

/* ===== CORRECTIFS PROPOSÉS (maquette du 7 novembre 2026) ===== */

/* 2. LE HAUT DE PAGE REMPLIT LE PREMIER ÉCRAN (64 px : la barre). */
.scene {
  min-height: calc(100svh - 64px);
  display: grid;
  align-content: center;
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero .telephone {
    width: 300px;
  }
}
@media (max-width: 599px) {
  .scene {
    align-content: start;
  }
  .hero {
    gap: 20px;
    padding-bottom: 16px;
  }
  .hero .telephone {
    width: 152px;
  }
}

/* 3. VARIANTE A : l'apparition garde le mouvement, jamais la transparence. Le texte est lisible à chaque image. */
@keyframes revele {
  from {
    transform: translateY(28px);
  }
  to {
    transform: none;
  }
}
@keyframes engagement-monte {
  from {
    transform: translateY(40px);
  }
  to {
    transform: none;
  }
}

/* 4. LA CARTE DE DÉMO SUR TABLETTE : à côté du texte, à sa taille d'ordinateur. */
@media (min-width: 700px) and (max-width: 1099px) {
  .etape--demo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
  .etape--demo .essai-scene {
    aspect-ratio: 4 / 3.4;
  }
}
@media (min-width: 700px) {
  .etape--demo .puces {
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* 5. LES TUILES SUR TÉLÉPHONE : empilées, rien ne défile de côté. */
@media (max-width: 699px) {
  .bento {
    display: grid;
    gap: 12px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .bento-carte {
    flex: none;
  }
  .scene-appareils {
    width: 92%;
  }
  .scene-appareils > .tablette {
    left: 0;
    width: 44%;
  }
  .scene-appareils > .telephone {
    right: 0;
    width: 19%;
  }
}


/* 8. ÉTAPES : texte à gauche, image à droite, alignés en haut, sans alternance. */
.etape {
  align-items: start;
}
@media (min-width: 1100px) {
  .etape--demo .etape-texte {
    order: 0;
  }
  .etape--demo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (min-width: 900px) {
  .etape:not(.etape--demo) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .etape-texte {
    padding-top: 24px;
  }
}

/* 8. « NÉ À MONTPELLIER » absorbe le support : texte à gauche, photo à droite, deux liens. */
.histoire-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}
@media (min-width: 900px) {
  .histoire {
    align-items: start;
  }
  .histoire .photo-appui {
    margin-top: 56px;
  }
}

/* 8. « TES CARTES » : le texte et ses trois sources, côte à côte. */
.porte--sources {
  gap: 24px;
  align-items: center;
}
.porte--sources > div {
  display: grid;
  gap: 10px;
}
.sources {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sources li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 600;
  color: var(--text);
}
.sources svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
}
@media (min-width: 900px) {
  .porte--sources {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    padding: 32px;
  }
}

/* 8. LES FONCTIONS DE MÉDECINE : trois colonnes, deux rangées pleines. */
@media (min-width: 900px) {
  .section[aria-labelledby='titre-points'] .engagements ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 40px;
  }
}

/* 9. LA PAGE « FONCTIONNALITÉS » (8 novembre 2026, « Oui, fais les 4 »). */
/* Le sommaire du haut de page : une tuile par groupe, son icône teintée comme ses tuiles, qui glisse un peu au survol. */
.sommaire-fonctions {
  display: grid;
  gap: 10px;
  width: min(100%, 380px);
  justify-self: center;
}
.sommaire-fonctions a {
  --teinte: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, #fff 3%), color-mix(in srgb, var(--surface) 45%, var(--bg)));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.07),
    inset 0 -3px 0 rgb(0 0 0 / 0.22),
    0 18px 36px -26px rgb(0 0 0 / 0.9);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.sommaire-fonctions a::after {
  content: '›';
  margin-left: auto;
  font-size: 20px;
  color: var(--muted);
  transition: translate 0.3s var(--rebond), color 0.3s;
}
.sommaire-fonctions [data-teinte='equilibre'] {
  --teinte: var(--rythme-equilibre);
}
.sommaire-fonctions [data-teinte='leger'] {
  --teinte: var(--rythme-leger);
}
.sommaire-fonctions svg {
  box-sizing: content-box;
  flex: none;
  padding: 8px;
  border-radius: 11px;
  color: var(--teinte);
  background: linear-gradient(155deg, color-mix(in srgb, var(--teinte) 26%, var(--surface)), color-mix(in srgb, var(--teinte) 6%, var(--bg)));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    inset 0 -3px 0 rgb(0 0 0 / 0.28);
}
@media (hover: hover) and (pointer: fine) {
  .sommaire-fonctions a:hover {
    border-color: color-mix(in srgb, var(--teinte) 40%, var(--border));
  }
  .sommaire-fonctions a:hover::after {
    translate: 4px 0;
    color: var(--teinte);
  }
}
/* La toque dans la pastille du surtitre, à la place du numéro des écrans de la page FSRS. */
.ecran-fort-num svg {
  width: 17px;
  height: 17px;
}
.examen-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--soft);
}
.examen-points li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}
.examen-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* LA PAGE D'UN EXAMEN, redessinée (Monki, PageDExamen.tsx) : le cadre des tuiles de l'accueil, la mémoire le jour J en
   trois parts d'ambre (jamais une couleur d'alerte, DESIGN.md §6), la découverte, la marge. Les longueurs des parts sont
   les nombres des textes : 312 solides, 48 à consolider, 240 à découvrir ; 360 découvertes sur 600. */
.examen-carte {
  width: min(100%, 440px);
  justify-self: center;
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 10px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(90% 60% at 20% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, #fff 3%), color-mix(in srgb, var(--surface) 45%, var(--bg)));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.07),
    inset 0 -3px 0 rgb(0 0 0 / 0.22),
    0 30px 60px -30px color-mix(in srgb, var(--accent) 35%, transparent);
}
.examen-tete {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
}
.examen-tete svg {
  flex: none;
  color: var(--accent);
}
.examen-quand,
.examen-titre {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.examen-titre {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.examen-chiffre {
  margin: 4px 0 0;
  color: var(--soft);
}
.examen-chiffre b {
  margin-right: 4px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
}
.examen-chiffre--petit b {
  font-size: 28px;
  color: var(--text);
}
.examen-memoire,
.examen-decouverte {
  display: flex;
  gap: 3px;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--active);
}
.examen-memoire i {
  display: block;
  transform-origin: left;
}
.examen-memoire [data-part='solides'] {
  flex: 312;
  background: var(--accent);
}
.examen-memoire [data-part='consolider'] {
  flex: 48;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}
.examen-memoire [data-part='decouvrir'] {
  flex: 240;
  background: transparent;
}
.examen-decouverte {
  height: 8px;
}
.examen-decouverte i {
  display: block;
  width: 60%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rythme-equilibre), var(--accent));
  transform-origin: left;
}
.examen-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--soft);
}
.examen-legende li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.examen-legende li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.examen-legende [data-part='solides']::before {
  background: var(--accent);
}
.examen-legende [data-part='consolider']::before {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}
.examen-legende [data-part='decouvrir']::before {
  box-shadow: inset 0 0 0 1px var(--muted);
}
/* La marge : le sélecteur du rythme de l'accueil, en ambre ; posé au-dessus des zones de l'appui pour rester cliquable. */
.examen-marge {
  position: relative;
  z-index: 2;
  margin: 10px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
  min-inline-size: 0;
}
.examen-marge legend {
  float: left;
  width: 100%;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.seg--marge {
  --c: var(--accent);
  min-height: 48px;
}
.seg--marge label {
  min-height: 38px;
  font-size: 15px;
}
.seg--marge .seg-pastille {
  top: 5px;
  bottom: 5px;
}
.seg--marge:has(#m-semaine:checked) .seg-pastille {
  transform: translateX(0);
}
.seg--marge:has(#m-mois:checked) .seg-pastille {
  transform: translateX(200%);
}
.examen-phrase {
  display: grid;
  margin: 0;
  font-size: 15px;
  color: var(--soft);
}
.examen-phrase span {
  grid-area: 1 / 1;
  visibility: hidden;
}
.examen-marge:has(#m-semaine:checked) [data-pour='semaine'],
.examen-marge:has(#m-deux:checked) [data-pour='deux'],
.examen-marge:has(#m-mois:checked) [data-pour='mois'] {
  visibility: visible;
}
/* La phrase choisie arrive en douceur, et la découverte se resserre ou s'étire avec la marge (plus la marge est longue,
   plus il faut découvrir vite : la barre avance d'autant). */
@media (prefers-reduced-motion: no-preference) {
  .examen-marge:has(#m-semaine:checked) [data-pour='semaine'],
  .examen-marge:has(#m-deux:checked) [data-pour='deux'],
  .examen-marge:has(#m-mois:checked) [data-pour='mois'] {
    animation: phrase-arrive 0.4s var(--courbe);
  }
  @supports (animation-timeline: view()) {
    .examen-memoire i,
    .examen-decouverte i {
      animation: part-pousse linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }
    .examen-memoire [data-part='consolider'] {
      animation-range: entry 30% cover 50%;
    }
  }
}
@keyframes phrase-arrive {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}
@keyframes part-pousse {
  from {
    transform: scaleX(0);
  }
}

/* LES ÉCRANS QUI SUIVENT (critique de design du 8 novembre 2026) : le visuel passe à gauche un écran sur deux. */
@media (min-width: 900px) {
  .ecran-fort--inverse .ecran-fort-visuel {
    order: -1;
  }
}
/* LA FEUILLE « RÉVISER EN PLUS » (critique du 8 novembre 2026 : de nouveaux visuels, pas ceux de l'accueil). Les portes
   sont des radios ; la porte choisie s'allume, et le geste prend le verbe et le nombre choisis. */
.feuille-demo,
.import-demo {
  --teinte: var(--rythme-equilibre);
  width: min(100%, 440px);
  justify-self: center;
  margin: 0;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(90% 60% at 20% 0%, color-mix(in srgb, var(--teinte) 12%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, #fff 3%), color-mix(in srgb, var(--surface) 45%, var(--bg)));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.07),
    inset 0 -3px 0 rgb(0 0 0 / 0.22),
    0 30px 60px -30px color-mix(in srgb, var(--teinte) 35%, transparent);
}
.import-demo {
  --teinte: var(--accent);
}
.fd-cours {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
}
.fd-choix,
.fd-suite {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
}
.fd-groupe {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fd-effet {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--soft);
}
.fd-portes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.fd-portes--une {
  grid-template-columns: minmax(0, 1fr);
}
.fd-portes input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.fd-portes label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--float-border);
  background: var(--float-bg);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, scale 0.3s var(--rebond);
  -webkit-tap-highlight-color: transparent;
}
.fd-portes label b {
  font-weight: 600;
}
.fd-portes label span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fd-portes input:checked + label {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  box-shadow: 0 0 18px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}
.fd-portes input:checked + label span {
  color: var(--accent);
}
.fd-portes input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.seg--nombre {
  --c: var(--accent);
  margin-top: 12px;
  min-height: 44px;
}
.seg--nombre label {
  min-height: 34px;
}
.seg--nombre:has(#fd-10:checked) .seg-pastille {
  transform: translateX(0);
}
.seg--nombre:has(#fd-50:checked) .seg-pastille {
  transform: translateX(200%);
}
.fd-geste {
  min-height: 48px;
  margin: 10px 0 0;
  padding: 13px 16px;
  text-align: center;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.fd-geste [data-verbe],
.fd-geste [data-n] {
  display: none;
}
.feuille-demo:has(#fd-decouvrir:checked) [data-verbe='decouvrir'],
.feuille-demo:not(:has(#fd-decouvrir:checked)) [data-verbe='entrainer'],
.feuille-demo:has(#fd-10:checked) [data-n='10'],
.feuille-demo:has(#fd-20:checked) [data-n='20'],
.feuille-demo:has(#fd-50:checked) [data-n='50'] {
  display: inline;
}
@media (prefers-reduced-motion: no-preference) {
  .fd-portes input:checked + label {
    animation: porte-pop 0.35s var(--rebond);
  }
}
@keyframes porte-pop {
  40% {
    scale: 1.04;
  }
}

/* L'IMPORT QUI SE REJOUE : au repos, l'import fini ; « Rejouer l'import » coche l'une des deux radios jumelles, dont
   chacune lance sa copie de l'animation (une animation ne se relance qu'en changeant de nom). Sans mouvement, rien ne
   se rejoue : l'import reste fini. */
.import-demo {
  display: grid;
  gap: 14px;
}
.id-corps {
  display: grid;
  gap: 12px;
}
.id-fichier {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.id-fichier svg {
  flex: none;
  color: var(--accent);
}
.id-fichier span {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.id-etapes {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--soft);
}
.id-etapes li {
  display: grid;
  gap: 6px;
}
.id-barre {
  display: block;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--active);
}
.id-barre i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rythme-equilibre), var(--accent));
  transform-origin: left;
}
.id-fin {
  margin: 4px 0 0;
  font-weight: 600;
}
.id-chiffres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.id-chiffres li {
  display: grid;
  padding: 10px;
  border-radius: 12px;
  background: var(--float-bg);
  border: 1px solid var(--float-border);
  font-size: 13px;
  color: var(--muted);
}
.id-chiffres b {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
}
.id-geste {
  margin: 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-align: center;
}
.id-rejouer {
  position: relative;
  z-index: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--soft);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.id-rejouer svg {
  width: 16px;
  height: 16px;
  transition: rotate 0.5s var(--rebond);
}
.id-rejouer:hover {
  color: var(--accent);
  background: var(--active);
}
.id-rejouer:hover svg {
  rotate: 180deg;
}
.id-jeu {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.import-demo:has(.id-jeu:focus-visible) .id-rejouer {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* La seconde étiquette ne paraît que quand la première radio est cochée : chaque clic coche l'autre. */
.import-demo label[for='id-b'],
.import-demo:has(#id-a:checked) label[for='id-a'] {
  display: none;
}
.import-demo:has(#id-a:checked) label[for='id-b'] {
  display: inline-flex;
}
@media (prefers-reduced-motion: no-preference) {
  .import-demo:has(#id-a:checked) .id-etapes li:first-child .id-barre i { animation: id-remplit-a 1.1s ease-in-out both; }
  .import-demo:has(#id-a:checked) .id-etapes li:last-child .id-barre i { animation: id-remplit-a 1.3s ease-in-out 1.1s both; }
  .import-demo:has(#id-a:checked) .id-fin { animation: id-parait-a 0.4s var(--courbe) 2.5s both; }
  .import-demo:has(#id-a:checked) .id-chiffres li { animation: id-pop-a 0.45s var(--rebond) 2.7s both; }
  .import-demo:has(#id-a:checked) .id-chiffres li:nth-child(2) { animation-delay: 2.85s; }
  .import-demo:has(#id-a:checked) .id-chiffres li:nth-child(3) { animation-delay: 3s; }
  .import-demo:has(#id-a:checked) .id-geste { animation: id-parait-a 0.4s var(--courbe) 3.3s both; }
  .import-demo:has(#id-b:checked) .id-etapes li:first-child .id-barre i { animation: id-remplit-b 1.1s ease-in-out both; }
  .import-demo:has(#id-b:checked) .id-etapes li:last-child .id-barre i { animation: id-remplit-b 1.3s ease-in-out 1.1s both; }
  .import-demo:has(#id-b:checked) .id-fin { animation: id-parait-b 0.4s var(--courbe) 2.5s both; }
  .import-demo:has(#id-b:checked) .id-chiffres li { animation: id-pop-b 0.45s var(--rebond) 2.7s both; }
  .import-demo:has(#id-b:checked) .id-chiffres li:nth-child(2) { animation-delay: 2.85s; }
  .import-demo:has(#id-b:checked) .id-chiffres li:nth-child(3) { animation-delay: 3s; }
  .import-demo:has(#id-b:checked) .id-geste { animation: id-parait-b 0.4s var(--courbe) 3.3s both; }
}
@media (prefers-reduced-motion: reduce) {
  .import-demo .id-rejouer {
    display: none !important;
  }
}
@keyframes id-remplit-a { from { transform: scaleX(0); } }
@keyframes id-remplit-b { from { transform: scaleX(0); } }
@keyframes id-parait-a { from { opacity: 0; translate: 0 8px; } }
@keyframes id-parait-b { from { opacity: 0; translate: 0 8px; } }
@keyframes id-pop-a { from { opacity: 0; scale: 0.8; } }
@keyframes id-pop-b { from { opacity: 0; scale: 0.8; } }
/* LES AUTRES FONCTIONS, en liste courte sous l'écran : une petite pastille teintée, le titre, une ligne ; deux ou trois
   colonnes, sans cadre, pour que l'œil passe vite. */
.fonctions-liste {
  --teinte: var(--accent);
  display: grid;
  gap: 22px 32px;
  margin: 48px 0 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.fonctions-liste[data-teinte='equilibre'] {
  --teinte: var(--rythme-equilibre);
}
.fonctions-liste[data-teinte='leger'] {
  --teinte: var(--rythme-leger);
}
.fonctions-liste li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.fonctions-liste svg {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 8px;
  border-radius: 10px;
  color: var(--teinte);
  background: color-mix(in srgb, var(--teinte) 14%, var(--surface));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
  transition: rotate 0.35s var(--rebond), scale 0.35s var(--rebond);
}
.fonctions-liste h3 {
  margin: 2px 0 2px;
  font-size: 16px;
  line-height: 1.35;
}
.fonctions-liste p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .fonctions-liste li:hover svg {
    rotate: -8deg;
    scale: 1.12;
  }
}
@media (min-width: 700px) {
  .fonctions-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .fonctions-liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.fonctions-liste--une {
  margin-top: 20px;
  grid-template-columns: minmax(0, 1fr) !important;
}
/* Le groupe et les données, côte à côte pour finir. */
.deux-colonnes {
  display: grid;
  gap: 48px;
}
.deux-colonnes h2 {
  margin: 0;
}
@media (min-width: 900px) {
  .deux-colonnes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
  }
}
/* Les cibles du sommaire s'arrêtent sous l'en-tête collant (les sections seules : sur une radio, la marge faisait défiler
   la page au clic). */
.section[id],
.deux-colonnes > [id] {
  scroll-margin-top: 72px;
}

/* LA TUILE DES EXAMENS DE L'ACCUEIL mène à la page : le lien couvre toute la tuile et reprend ses rangées (sous-grille),
   si bien que la scène, le titre et la phrase s'alignent comme dans les autres tuiles. Un vrai lien, avec sa boîte : en
   display: contents (avant la revue du 9 novembre 2026), des navigateurs le retiraient du clavier ou des lecteurs d'écran. */
.bento-lien {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: subgrid;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.bento-lien:focus-visible {
  outline-offset: 3px;
}
.bento-suite {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
}
/* LES TUILES DES GUIDES (21 novembre 2026, construire.mjs, tuileDeGuide ; approche B, verdict « B, la question ») : chaque
   guide sur le fond de sa couleur, sa question en grand, un pictogramme, puis son titre et « Lire le guide » en pied. Le
   lien (.bento-lien) porte la marge intérieure : toute la tuile se touche. */
.bento-carte[data-guide] {
  --teinte: var(--accent);
  min-height: 260px;
  padding: 0;
  row-gap: 20px;
  border-color: color-mix(in srgb, var(--teinte) 35%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--teinte) 30%, var(--surface)),
    color-mix(in srgb, var(--teinte) 10%, var(--bg)) 75%
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    inset 0 -3px 0 rgb(0 0 0 / 0.22),
    0 22px 44px -26px color-mix(in srgb, var(--teinte) 40%, #000);
}
.bento-carte[data-guide][data-teinte='vert'] {
  --teinte: var(--rythme-leger);
}
.bento-carte[data-guide][data-teinte='bleu'] {
  --teinte: var(--rythme-equilibre);
}
.bento-carte[data-guide][data-teinte='violet'] {
  --teinte: oklch(0.8 0.09 300);
}
.bento-carte[data-guide][data-teinte='corail'] {
  --teinte: oklch(0.8 0.11 35);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .bento-carte[data-guide]:hover {
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.12),
      0 30px 50px -22px color-mix(in srgb, var(--teinte) 55%, #000);
  }
}
.bento-carte[data-guide] .bento-lien {
  padding: 22px;
}
.guide-picto {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--teinte) 22%, rgb(0 0 0 / 0.25));
  color: var(--teinte);
}
.guide-picto svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bento-carte[data-guide] h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  text-wrap: balance;
}
.bento-carte[data-guide] p {
  align-self: start;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 15px;
}
/* La rangée s'ouvre sur la tuile du milieu (construire.mjs, bandeau) : des guides de chaque côté. Là où le navigateur le
   sait faire (Chrome 133+), un fondu à gauche dit aussi qu'il y en a avant ; ailleurs, la rangée s'ouvre au début, sans fondu
   à gauche (il rognerait la première tuile). */
.temoins[data-glisse] .temoins-piste > [data-milieu] {
  scroll-initial-target: nearest;
}
@supports (scroll-initial-target: nearest) {
  .temoins[data-glisse] {
    mask-image: linear-gradient(90deg, transparent, #000 min(72px, var(--bord)), #000 calc(100% - 72px), transparent);
  }
}
/* Dans la rangée de l'accueil, hors de la grille partagée : la question prend la place, le pied reste en bas. */
.temoins-piste > .bento-carte[data-guide] {
  grid-template-rows: auto 1fr auto;
}
.bento-carte[data-guide] .bento-suite {
  margin: 0;
  color: var(--text);
  white-space: nowrap;
}
/* Un groupe de quatre guides (la page /guides) : deux colonnes jusqu'à 1 100 px, puis une rangée de quatre, jamais une tuile
   seule sur sa rangée. */
@media (min-width: 900px) {
  .bento[data-colonnes='4'] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .bento[data-colonnes='4'] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* LES GUIDES EN RANGÉE (l'accueil, 21 novembre 2026, « Native row ») : la piste des témoignages, qu'on fait glisser soi-même
   (au doigt, au pavé tactile, ou par la fine barre sous les tuiles), sans script. La première tuile s'aligne sur la colonne
   (1 120 px, avec sa marge : 16 px, 32 px dès 900 px), un aimant tient chaque tuile au bord, et un fondu à droite dit qu'il y en a
   d'autres. Hors de la grille des tuiles, une tuile reprend ses propres rangées (la grille partagée, subgrid, n'existe plus
   ici) et porte sa marge à droite. */
.temoins[data-glisse] {
  --marge: 16px;
  --bord: calc(max(0px, (100% - 1120px) / 2) + var(--marge));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bord);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 45%, transparent) transparent;
  mask-image: linear-gradient(90deg, #000, #000 calc(100% - 72px), transparent);
}
.temoins[data-glisse] .temoins-piste {
  padding-inline: var(--bord);
}
@media (min-width: 900px) {
  .temoins[data-glisse] {
    --marge: 32px;
  }
}
.temoins-piste > .bento-carte {
  flex: none;
  width: min(300px, 78vw);
  margin-inline-end: 20px;
  scroll-snap-align: start;
  grid-row: auto;
  grid-template-rows: auto auto 1fr;
}


/* 10. LE HAUT DE LA PAGE À PROPOS (9 novembre 2026, « avec son fond uni je trouve qu'elle a perdu de la cohérence avec les
   autres pages ») : l'aurore, le surtitre et le trait du titre des autres pages, sans remplir le premier écran. L'aurore
   déborde sous le titre, derrière le haut de la photo ; ce qui la suit dans l'en-tête passe devant elle. */
.doc-scene {
  position: relative;
  padding: 40px 0 16px;
}
.doc-scene .aurore {
  bottom: -180px;
  /* Sous le texte qui suit (revue du 9 novembre 2026) : positionnée, elle se peignait par-dessus les premières lignes de
     l'article, qui ne le sont pas. */
  z-index: -1;
}
.doc-scene > :not(.aurore) {
  position: relative;
}
.doc-scene .essai-matiere {
  margin: 0 0 16px;
  color: var(--accent); /* devant la couleur des paragraphes de l'article (.doc p) */
}
.doc-scene h1::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--rythme-equilibre));
  transform-origin: 0 50%;
  animation: trace 0.8s var(--courbe) 0.5s both;
}
@media (prefers-reduced-motion: no-preference) {
  .doc-scene h1 {
    animation: monte 0.7s var(--courbe) both;
  }
}
@media (min-width: 900px) {
  .doc-scene {
    padding-top: 72px;
  }
}

/* L'APPEL SELON L'APPAREIL (ouverture de l'App Store, 9 novembre 2026) : trois liens, un seul visible, sans script (la CSP n'en
   autorise aucun). Par défaut, l'ordinateur ; un pointeur tactile hors iOS, le navigateur ; `-webkit-touch-callout` n'existe
   que sur iOS et iPadOS, quel que soit le navigateur, l'iPad qui se dit Macintosh compris. */
[data-appareil='ios'],
[data-appareil='android'] {
  display: none;
}
@media (pointer: coarse) {
  [data-appareil='ordinateur'] {
    display: none;
  }
  [data-appareil='android'] {
    display: inline-flex;
  }
}
@supports (-webkit-touch-callout: none) {
  [data-appareil='ios'] {
    display: inline-flex;
  }
  [data-appareil='ordinateur'],
  [data-appareil='android'] {
    display: none;
  }
}

/* LE BADGE DE L'APP STORE (9 novembre 2026, « Fais les 2 ») ET CELUI DE GOOGLE PLAY (18 novembre 2026) : l'artwork du store, jamais
   retouché, sa largeur tirée de son viewBox par la construction. 48 px de haut (40 au moins),
   12 px de marge libre (un quart de sa hauteur) : les 8 px de l'écart de .appel, plus 4 ici. Ni survol, ni filtre, ni mouvement. */
.badge-store {
  margin: 4px 0;
}
.badge-store img {
  display: block;
  width: auto;
  height: 48px;
}

/* La bande des engagements en tête de la section de la confiance : la section a déjà son filet, la bande ne double
   pas le sien (retour du 22 novembre 2026, « Il y a deux barres de séparation ici »). */
[data-confiance] ul {
  border-top: 0;
  padding-top: 0;
}
/* LE LIEN SOUS LA GRILLE DE L'ACCUEIL, vers la page Fonctionnalités (22 novembre 2026). */
.bento-vers-tout {
  margin-top: 20px;
}
