/* Le site de Capture-Craft : « La notice ».
   Un mode opératoire imprimé : papier blanc franc, encre bleu-noir, le bleu de l'icône en
   aplats qui possèdent des régions entières, le jaune et le rouge des annotations. Le trait
   est celui des icônes de l'application : rond, sur une grille de 20.
   Les jetons de scrollcraft.css sont redéfinis ici ; le moteur n'est pas retouché. */

@font-face {
  font-family: "Archivo";
  src: url("polices/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --papier: #ffffff;
  --papier-2: #f2f4f8;
  --papier-3: #e4e9f1;
  --encre: #0f1724;
  --encre-2: #4b5568;
  --encre-3: #8a93a6;
  --filet: #d6dce6;
  --bleu: #1662e0;
  --bleu-fonce: #0d4fbf;
  --bleu-nuit: #082a66;
  --jaune: #ffd60a;
  --rouge: #e5484d;

  --sc-canvas: var(--papier);
  --sc-surface: var(--papier-2);
  --sc-ink: var(--encre);
  --sc-ink-soft: var(--encre-2);
  --sc-accent: var(--bleu);
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text: "Archivo", system-ui, sans-serif;
  --sc-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sc-shadow-color: 220 70% 14%;

  --arrondi-touche: 6px;
  --arrondi: 8px;
  --arrondi-fenetre: 12px;
  --arrondi-vignette: 14px;

  --gouttiere: clamp(16px, 4.4vw, 64px);
  --largeur: 84rem;
  --section: clamp(4.5rem, 9vw, 9.5rem);

  --ressort: cubic-bezier(0.34, 1.45, 0.5, 1);
  --sortie: cubic-bezier(0.23, 1, 0.32, 1);

  --t-affiche: clamp(2.5rem, 0.9rem + 4.2vw, 5.4rem);
  --t-titre: clamp(2.05rem, 1.2rem + 2.7vw, 3.75rem);
  --t-sous-titre: clamp(1.3rem, 1.12rem + 0.6vw, 1.6rem);
  --t-texte: clamp(1rem, 0.96rem + 0.2vw, 1.0875rem);
  --t-petit: 0.875rem;
  --t-etiquette: 0.8125rem;
}

/* La remise à zéro de la boîte est aussi celle du moteur, mais la 404 ne charge pas le moteur :
   le site ne doit rien tenir de lui pour sa mise en page. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--papier); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sc-font-text);
  -webkit-font-smoothing: antialiased;
  background: var(--papier);
  color: var(--encre);
  font-size: var(--t-texte);
  font-stretch: 100%;
  line-height: 1.6;
  letter-spacing: 0;
}

/* -------------------------------------------------------------- texte -- */
h1, h2, h3, h4 { margin: 0; font-family: var(--sc-font-display); color: var(--encre); text-wrap: balance; }
h2 {
  font-size: var(--t-titre);
  font-weight: 760;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: -0.03em;
}
h3 {
  font-size: var(--t-sous-titre);
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.15;
  letter-spacing: -0.012em;
}
p { margin: 0; text-wrap: pretty; }
.chapeau { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.5; color: var(--encre-2); max-width: 40ch; }
.texte { color: var(--encre-2); max-width: 62ch; }
.texte + .texte { margin-top: 0.9em; }
.texte strong, .chapeau strong { color: var(--encre); font-weight: 650; }
a { color: inherit; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
code, kbd, .mono { font-family: var(--sc-font-mono); font-size: 0.9em; }
code { background: var(--papier-2); border: 1px solid var(--filet); border-radius: 5px; padding: 0.05em 0.35em; white-space: nowrap; }
.etiquette {
  font-size: var(--t-etiquette);
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--encre-2);
}
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
::selection { background: var(--jaune); color: var(--encre); }

/* La plateforme du visiteur décide quelles touches montrer ; sans script, les deux. */
[data-plateforme="mac"] [data-systeme="win"], [data-plateforme="win"] [data-systeme="mac"] { display: none !important; }
.symboles { position: absolute; width: 0; height: 0; overflow: hidden; }
.evitement { position: absolute; z-index: 100; left: 12px; top: -60px; padding: 10px 14px; border-radius: var(--arrondi); background: var(--encre); color: #fff; font-weight: 650; text-decoration: none; }
.evitement:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--bleu); outline-offset: 3px; }
.couverture :focus-visible, .plaque :focus-visible, .telecharger-tete :focus-visible, .mentions :focus-visible { outline-color: #fff; }
main:focus { outline: none; }

/* ---------------------------------------------------------- mise en page -- */
.boite { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.section { padding-block: var(--section); }

/* ----------------------------------------------------------- composants -- */
/* Les boutons de l'application : pastille de 8 px, bleu plein pour l'action principale. */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0 1.15em;
  border-radius: var(--arrondi);
  font-weight: 650; font-stretch: 105%; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color 160ms var(--sortie), color 160ms var(--sortie), transform 120ms var(--sortie), border-color 160ms var(--sortie);
}
.bouton:active { transform: translateY(1px) scale(0.985); }
.bouton--principal { background: var(--bleu); color: #fff; }
.bouton--principal:hover { background: var(--bleu-fonce); }
.bouton--second { background: var(--papier); color: var(--encre); border-color: var(--filet); }
.bouton--second:hover { border-color: var(--encre-3); background: var(--papier-2); }
.bouton--inverse { background: #fff; color: var(--bleu-fonce); }
.bouton--inverse:hover { background: var(--papier-2); }
.bouton--sur-bleu { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.55); }
.bouton--sur-bleu:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }
.bouton svg { width: 20px; height: 20px; flex: none; }

/* Une touche dessinée : le trait d'une notice, un rebord plus épais en bas. */
kbd, .touche {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.85em; height: 1.85em; padding: 0 0.45em;
  font-family: var(--sc-font-text); font-size: 0.86em; font-weight: 650; font-stretch: 105%;
  color: var(--encre); background: var(--papier);
  border: 1.5px solid var(--encre); border-bottom-width: 3px;
  border-radius: var(--arrondi-touche);
  line-height: 1; white-space: nowrap; vertical-align: 0.05em;
}

/* La pastille d'étape : un disque plein, son numéro est aussi son adresse. */
.pastille {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--bleu); color: #fff;
  font-weight: 750; font-stretch: 100%; font-size: 1rem; font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pastille--grande { width: 2.75rem; height: 2.75rem; font-size: 1.3rem; }
.pastille--creuse { background: var(--papier); color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }

/* Une icône de l'application, tracée par site.js depuis la même géométrie. */
.icone { width: 20px; height: 20px; flex: none; display: inline-block; }
.icone path, .icone line, .icone polyline, .icone rect, .icone circle, .icone ellipse { vector-effect: non-scaling-stroke; }

/* --------------------------------------------------------------- entête -- */
.entete {
  position: relative; z-index: 30;
  border-bottom: 1px solid var(--filet);
  background: var(--papier);
}
.entete__rangee { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.marque { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 760; font-stretch: 112%; font-size: 1.125rem; letter-spacing: -0.01em; }
.marque img { width: 34px; height: 34px; }
.entete__nav { margin-left: auto; display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }
.entete__nav a { text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.entete__nav a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.entete__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.langues { display: inline-flex; border: 1.5px solid currentColor; border-radius: var(--arrondi); overflow: hidden; }
.langues__a { text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; min-height: 34px; padding: 0 0.55rem; font-size: 0.8125rem; font-weight: 700; font-stretch: 112%; letter-spacing: 0.04em; text-decoration: none !important; }
.langues__a + .langues__a { border-left: 1.5px solid currentColor; }
.langues__a[aria-current="true"] { background: var(--encre); color: var(--papier); }

/* Sur la couverture, l'entête est imprimé sur l'aplat bleu. */
[data-page="accueil"] .entete { position: absolute; inset: 0 0 auto 0; background: transparent; border-bottom: 0; color: #fff; }
[data-page="accueil"] .entete .langues__a[aria-current="true"] { background: #fff; color: var(--bleu-fonce); }

/* ---------------------------------------------------------- couverture -- */
.couverture {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 640px);
  background: var(--bleu);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 96px var(--gouttiere) clamp(32px, 5vh, 56px);
}
.couverture::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--bleu);
}
.couverture__bureau { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.couverture__bureau svg { width: 100%; height: 100%; }
.couverture__bureau .t { stroke: rgb(255 255 255 / 0.34); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.couverture__bureau .p { fill: rgb(255 255 255 / 0.16); }
.couverture__bureau .f { fill: rgb(255 255 255 / 0.06); stroke: rgb(255 255 255 / 0.3); stroke-width: 1.6; vector-effect: non-scaling-stroke; }

.couverture__scene {
  position: relative;
  width: 100%; max-width: var(--largeur); margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: clamp(12px, 2vw, 32px);
  align-items: end;
}

/* Le cadre de la sélection : quatre coins blancs, la cote sur son bord. */
.cadre {
  position: relative;
  grid-column: 1 / span 8; grid-row: 1;
  justify-self: start; width: fit-content; max-width: 100%;
  align-self: center;
  padding: clamp(28px, 4.4vw, 64px) clamp(24px, 4vw, 60px);
}
.cadre__coin { position: absolute; width: clamp(28px, 3.4vw, 46px); height: clamp(28px, 3.4vw, 46px); border: 0 solid #fff; }
.cadre__coin--hg { top: 0; left: 0; border-top-width: 6px; border-left-width: 6px; border-top-left-radius: 10px; }
.cadre__coin--hd { top: 0; right: 0; border-top-width: 6px; border-right-width: 6px; border-top-right-radius: 10px; }
.cadre__coin--bg { bottom: 0; left: 0; border-bottom-width: 6px; border-left-width: 6px; border-bottom-left-radius: 10px; }
.cadre__coin--bd { bottom: 0; right: 0; border-bottom-width: 6px; border-right-width: 6px; border-bottom-right-radius: 10px; }
.cadre__cote {
  position: absolute; right: clamp(28px, 3.4vw, 46px); bottom: -15px;
  padding: 3px 9px; border-radius: 6px;
  background: var(--encre); color: #fff;
  font-family: var(--sc-font-mono); font-size: 0.78rem; font-variant-numeric: tabular-nums; line-height: 1.4;
}
.couverture h1 {
  font-size: var(--t-affiche);
  font-weight: 790;
  font-stretch: 125%;
  line-height: 0.93;
  letter-spacing: -0.04em;
  color: #fff;
}
.couverture h1 span { display: block; }
@media (min-width: 861px) { .couverture h1 span { white-space: nowrap; } }
.couverture__phrase {
  margin-top: clamp(18px, 2.4vw, 30px);
  max-width: 34ch;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); line-height: 1.42;
  color: #fff;
}

/* Les renvois : une pastille, un trait, un mot. */
.renvoi { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 650; font-stretch: 108%; font-size: 0.9rem; letter-spacing: 0.01em; }
.renvoi .pastille { width: 1.7rem; height: 1.7rem; font-size: 0.86rem; background: var(--jaune); color: var(--encre); }
.renvoi__trait { width: clamp(18px, 2.4vw, 36px); height: 2px; background: currentColor; border-radius: 2px; }
.cadre .renvoi { position: absolute; top: -38px; left: 0; }

.couverture__touches {
  grid-column: 1 / span 6; grid-row: 2;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.1rem;
  padding-top: clamp(22px, 4vh, 40px);
}
.couverture__touches kbd { font-size: 1.05rem; color: var(--encre); border-color: var(--bleu-nuit); }
.couverture__touches .ou { font-size: 0.92rem; }
.couverture__fleche {
  position: absolute; z-index: 2; pointer-events: none;
  width: clamp(110px, 12vw, 190px); height: auto;
  right: calc(clamp(110px, 12vw, 190px) * -0.86); top: calc(clamp(110px, 12vw, 190px) * -0.5);
}
.couverture__fleche path { stroke: var(--jaune); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* La vignette de l'application, qui porte l'action. */
.vignette {
  position: relative;
  background: var(--papier); color: var(--encre);
  border-radius: var(--arrondi-vignette);
  box-shadow: 0 2px 4px rgb(8 30 80 / 0.18), 0 22px 48px -10px rgb(8 30 80 / 0.5);
  padding: 12px;
}
.couverture .vignette { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: end; width: 100%; max-width: 380px; justify-self: end; }
.vignette__apercu {
  aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: var(--bleu); position: relative;
}
.vignette__apercu svg { width: 100%; height: 100%; }
.vignette__actions { display: grid; gap: 8px; margin-top: 12px; }
.vignette__actions .bouton { width: 100%; }
.vignette .renvoi { position: absolute; top: -40px; left: 4px; color: #fff; }

/* ------------------------------------------------------ l'index (axe) -- */
.index {
  position: fixed; z-index: 40; left: max(12px, calc(var(--gouttiere) * 0.32)); top: 50%;
  transform: translateY(-50%);
  opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--sortie), visibility 0s linear 200ms;
}
.index.est-visible { opacity: 1; visibility: visible; transition: opacity 200ms var(--sortie); }
.index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.index ol::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--encre); border-radius: 2px; }
.index a { position: relative; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.index .pastille { width: 28px; height: 28px; font-size: 0.82rem; background: var(--papier); color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); transition: background-color 120ms, color 120ms, transform 160ms var(--ressort); }
.index a[aria-current="step"] .pastille { background: var(--bleu); color: #fff; box-shadow: none; transform: scale(1.12); }
.index a.est-passe .pastille { background: var(--encre); color: #fff; box-shadow: none; }
.index__nom {
  font-size: 0.82rem; font-weight: 650; font-stretch: 108%;
  background: var(--encre); color: #fff; padding: 3px 8px; border-radius: 6px;
  opacity: 0; transform: translateX(-4px); transition: opacity 140ms var(--sortie), transform 140ms var(--sortie);
  pointer-events: none; white-space: nowrap;
}
.index a:hover .index__nom, .index a:focus-visible .index__nom { opacity: 1; transform: none; }
@media (max-width: 1179px) { .index { display: none; } }

/* ----------------------------------------------------- avant de commencer -- */
.avant { background: var(--papier); }
.avant__haut { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.avant__haut h2 { max-width: 13ch; }
.avant__haut .chapeau { margin-top: 1.25rem; }
.avant__dessin { margin: 0; position: relative; }
.avant__dessin svg { width: 100%; height: auto; }
.avant__calque { position: relative; }
/* Le volet « après » ne recouvre l'« avant » que s'il peut le balayer. Sans script ou sous
   mouvement réduit, les deux dessins se suivent : la comparaison reste lisible. */
.avant__calque--apres { margin-top: 16px; }
.sc-ready .avant__calque--apres { position: absolute; inset: 0; margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .sc-ready .avant__calque--apres { position: static; margin-top: 16px; } }
.avant__dessin figcaption { margin-top: 1rem; font-size: var(--t-petit); color: var(--encre-2); max-width: 54ch; }
.dessin .t { fill: none; stroke: var(--encre); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dessin .t2 { fill: none; stroke: var(--encre-3); stroke-width: 2; stroke-linecap: round; }
.dessin .moniteur { fill: var(--papier); stroke: var(--encre); stroke-width: 2.5; }
.dessin .plein { fill: var(--encre); }
.dessin .gris { fill: var(--papier-3); }
.dessin .bleu { fill: var(--bleu); }
.dessin .jaune { fill: var(--jaune); }
.dessin .rouge { fill: var(--rouge); }
.dessin text { font-family: var(--sc-font-text); }

.contenu {
  margin-top: clamp(56px, 8vw, 112px);
  padding-top: 28px;
  border-top: 2px solid var(--encre);
}
.contenu h3 { margin-bottom: 1.25rem; }
.interdits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 16px clamp(28px, 4vw, 64px); }
.interdits li { display: flex; align-items: center; gap: 14px; font-weight: 650; font-stretch: 106%; }
.interdit { width: 42px; height: 42px; flex: none; }
.interdit .anneau { fill: none; stroke: var(--rouge); stroke-width: 4.5; }
.interdit .barre { stroke: var(--rouge); stroke-width: 4.5; stroke-linecap: round; }
.interdit .objet { fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.contenu__note { margin-top: 1.25rem; font-size: var(--t-petit); color: var(--encre-2); }

/* -------------------------------------------------------------- silence -- */
.silence {
  min-height: 92svh;
  display: grid; place-items: center; text-align: center;
  background: var(--papier);
  padding-block: 12vh;
}
.silence__touches { display: flex; gap: clamp(10px, 1.6vw, 22px); justify-content: center; }
.silence__touches kbd {
  font-size: clamp(1.9rem, 1rem + 4vw, 4.4rem);
  border-width: 3px; border-bottom-width: clamp(6px, 0.9vw, 11px); border-radius: clamp(10px, 1.2vw, 18px);
  min-width: 1.55em; height: 1.55em; padding: 0 0.3em;
  transition: transform 90ms var(--sortie), border-bottom-width 90ms var(--sortie);
}
.silence.est-appuye .silence__touches kbd { transform: translateY(4px); border-bottom-width: 3px; }
.silence__legende { margin-top: 1.6rem; color: var(--encre-2); font-size: var(--t-petit); }

/* ------------------------------------------------------------ la chaîne -- */
.chaine { position: relative; background: var(--papier-2); }
.chaine__ancre { position: absolute; left: 0; width: 1px; height: 1px; }
.chaine__scene {
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(250px, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 3.6vw, 64px);
  align-items: center;
  padding: clamp(72px, 9vh, 104px) var(--gouttiere) clamp(24px, 5vh, 56px) calc(var(--gouttiere) + 56px);
  max-width: calc(var(--largeur) + 120px); margin-inline: auto;
}
.etapes { list-style: none; margin: 0; padding: 0; position: relative; }
.etapes > li { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.etapes > li + li { margin-top: 2.25rem; }
.etapes h3 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.2rem); font-stretch: 116%; font-weight: 760; letter-spacing: -0.025em; line-height: 1.02; align-self: center; }
.etapes p { grid-column: 2; color: var(--encre-2); max-width: 36ch; }
.etapes .touches-etape { grid-column: 2; margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.ecran {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: calc(100svh - 150px);
  justify-self: center;
  border-radius: 14px;
  background: var(--papier-3);
  box-shadow: 0 0 0 2.5px var(--encre), 0 30px 60px -24px rgb(8 30 80 / 0.45);
  overflow: hidden;
  isolation: isolate;
}
@supports (aspect-ratio: 1) { .ecran { width: min(100%, calc((100svh - 150px) * 1.6)); } }
.ecran > svg, .ecran__couche { position: absolute; inset: 0; width: 100%; height: 100%; }
.ecran__couche { pointer-events: none; }
.voile { fill: rgb(10 18 32 / 0.5); }
.selection-cadre { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.selection-ombre { fill: none; stroke: rgb(10 18 32 / 0.5); stroke-width: 4; vector-effect: non-scaling-stroke; }
.poignee { fill: #fff; stroke: var(--bleu); stroke-width: 2; vector-effect: non-scaling-stroke; }
.cote-etiquette rect { fill: var(--encre); }
.cote-etiquette text { fill: #fff; font-family: var(--sc-font-mono); font-size: 17px; }
.reticule { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.loupe-bord { fill: none; stroke: #fff; stroke-width: 4; vector-effect: non-scaling-stroke; }
.loupe-ombre { fill: none; stroke: rgb(10 18 32 / 0.35); stroke-width: 10; vector-effect: non-scaling-stroke; }
/* La grille des pixels, lisible aussi sur un aplat clair : c'est elle qui dit « un à un ». */
.loupe-grille { stroke: rgb(15 23 36 / 0.16); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* La vignette et l'éditeur, posés sur l'écran. */
.mini-vignette {
  position: absolute; right: 2.4%; bottom: 3.6%; width: 27%;
  background: var(--papier); border-radius: 12px; padding: 1.1% 1.1% 0.9%;
  box-shadow: 0 2px 4px rgb(8 30 80 / 0.2), 0 18px 34px -10px rgb(8 30 80 / 0.55);
  transform-origin: 100% 100%;
}
.mini-vignette__apercu { border-radius: 6px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--filet); }
.mini-vignette__apercu svg { width: 100%; height: auto; display: block; }
.mini-vignette__boutons { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: 6%; }
.mini-vignette__boutons .icone { width: clamp(12px, 1.4vw, 20px); height: clamp(12px, 1.4vw, 20px); color: var(--encre); }
.mini-vignette__copier { background: var(--bleu); color: #fff; border-radius: 6px; padding: 3% 7%; font-size: clamp(9px, 0.82vw, 13px); font-weight: 650; line-height: 1.2; }

.editeur {
  position: absolute; left: 7%; top: 8%; width: 86%; height: 84%;
  background: #f5f5f6; border-radius: 12px;
  box-shadow: 0 0 0 1px rgb(10 18 32 / 0.18), 0 26px 50px -16px rgb(8 30 80 / 0.6);
  display: grid; grid-template-rows: auto auto 1fr auto; overflow: hidden;
  transform-origin: 82% 88%;
}
.editeur__outils { display: flex; align-items: center; justify-content: space-between; gap: 2%; padding: 1.2% 1.6%; border-bottom: 1px solid #d4d4d8; }
.editeur__groupe { display: flex; gap: 2px; background: #e8e8eb; border-radius: 9px; padding: 3px; }
.editeur__groupe span { display: grid; place-items: center; width: clamp(18px, 2.2vw, 30px); height: clamp(16px, 2vw, 28px); border-radius: 6px; color: #1d1d1f; transition: background-color 90ms, color 90ms; }
.editeur__groupe span.est-actif { background: #0068d6; color: #fff; }
.editeur__groupe .icone { width: 70%; height: 70%; }
.editeur__gauche { display: flex; gap: 4px; color: #1d1d1f; }
.editeur__gauche .icone { width: clamp(12px, 1.4vw, 18px); height: clamp(12px, 1.4vw, 18px); }
.editeur__copier { background: #0068d6; color: #fff; font-size: clamp(9px, 0.85vw, 13px); font-weight: 600; border-radius: 6px; padding: 0.5% 2.2%; line-height: 1.5; transition: transform 90ms var(--sortie), background-color 90ms; }
.editeur__copier.est-presse { transform: scale(0.94); background: #005bbf; }
.editeur__reglages { display: flex; align-items: center; gap: 1.4%; padding: 0.8% 1.8%; border-bottom: 1px solid #d4d4d8; font-size: clamp(9px, 0.8vw, 12px); color: #1d1d1f; min-height: 0; }
.editeur__reglages .touche { font-size: 0.9em; height: 1.7em; min-width: 1.7em; border-width: 1px; border-bottom-width: 1px; background: #e8e8eb; color: #5c5c62; border-color: #d4d4d8; }
.editeur__couleur { width: clamp(8px, 0.9vw, 13px); height: clamp(8px, 0.9vw, 13px); border-radius: 50%; display: inline-block; }
.editeur__toile { position: relative; background: #dddde0; display: grid; place-items: center; padding: 3%; min-height: 0; }
.editeur__toile svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 13px rgb(0 0 0 / 0.27)); }
.editeur__etat { display: flex; justify-content: space-between; padding: 0.6% 1.8%; border-top: 1px solid #d4d4d8; font-size: clamp(8px, 0.72vw, 11px); color: #5c5c62; font-variant-numeric: tabular-nums; }

.bibliotheque {
  position: absolute; left: 7%; top: 8%; width: 86%; height: 84%;
  background: #f5f5f6; border-radius: 12px;
  box-shadow: 0 0 0 1px rgb(10 18 32 / 0.18), 0 26px 50px -16px rgb(8 30 80 / 0.6);
  padding: 2.2% 2.6%; overflow: hidden;
}
.bibliotheque__entete { display: flex; justify-content: space-between; align-items: center; font-size: clamp(9px, 0.9vw, 14px); font-weight: 650; color: #1d1d1f; }
.bibliotheque__recherche { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #c8c8cd; border-radius: 7px; padding: 0.4% 1.6%; color: #5c5c62; font-weight: 400; width: 34%; }
.bibliotheque__recherche .icone { width: 1.2em; height: 1.2em; }
.bibliotheque__mois { margin-top: 2.6%; font-size: clamp(8px, 0.78vw, 12px); font-weight: 650; color: #5c5c62; text-transform: uppercase; letter-spacing: 0.04em; }
.bibliotheque__grille { margin-top: 1.4%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2%; }
.bibliotheque__grille figure { margin: 0; }
.bibliotheque__grille .apercu { border-radius: 6px; overflow: hidden; background: #e8e8eb; box-shadow: 0 0 0 1px #d4d4d8; aspect-ratio: 16 / 10; }
.bibliotheque__grille .apercu svg { width: 100%; height: 100%; display: block; }
.bibliotheque__grille figcaption { margin-top: 4%; font-size: clamp(7px, 0.66vw, 10.5px); line-height: 1.35; color: #1d1d1f; }
.bibliotheque__grille figcaption span { display: block; color: #5c5c62; }
.bibliotheque__grille .est-nouvelle .apercu { box-shadow: 0 0 0 2px #0068d6; }

.pointeur { pointer-events: none; }
.toupie { transform-box: fill-box; transform-origin: center; animation: toupie 0.9s linear infinite; }
.est-gele .toupie { animation-play-state: paused; }
@keyframes toupie { to { transform: rotate(360deg); } }

/* Sans mouvement ou sans script : les cinq étapes en liste, l'écran à son état final. */
.chaine:not(.est-animee) .chaine__scene { height: auto; align-items: start; padding-block: var(--section); }
.chaine:not(.est-animee) .etapes > li + li { margin-top: 1.75rem; }
.chaine:not(.est-animee) .chaine__scene .ecran { position: sticky; top: 24px; }
/* Les cinq étapes dans la même cellule : la boîte prend la hauteur de la plus haute. */
.chaine.est-animee .etapes { display: grid; }
.chaine.est-animee .etapes > li { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; }
.chaine.est-animee .etapes > li + li { margin-top: 0; }
.chaine.est-animee .etapes > li.est-courante { opacity: 1; visibility: visible; animation: cran 220ms var(--ressort) both; }
/* Un cran : l'étape arrive pleine, dépasse et se pose. Pas de fondu, l'étape qui sort coupe net. */
@keyframes cran { from { transform: translateY(14px); } to { transform: none; } }
.chaine__compteur { display: none; }
/* Le compteur tient lieu d'index là où la marge n'a pas la place ; au-dessus, l'index suffit. */
@media (max-width: 1179px) { .chaine.est-animee .chaine__compteur { display: flex; gap: 6px; margin-top: 28px; } }
.chaine__compteur i { display: block; width: 26px; height: 4px; border-radius: 2px; background: var(--filet); }
.chaine__compteur i.est-fait { background: var(--encre); }
.chaine__compteur i.est-courant { background: var(--bleu); }

/* --------------------------------------------------------------- essai -- */
.essai { background: var(--papier); }
.essai__tete { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; max-width: 64rem; }
.essai__tete h2 { align-self: center; }
.essai__tete .chapeau { grid-column: 2; max-width: 52ch; margin-top: 0.75rem; }
.surface { margin-top: clamp(28px, 4vw, 48px); border: 2.5px solid var(--encre); border-radius: 16px; overflow: hidden; background: var(--papier-3); }
.surface__barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; background: #f5f5f6; border-bottom: 1px solid #d4d4d8; }
.surface__outils { display: flex; gap: 2px; background: #e8e8eb; border-radius: 10px; padding: 3px; }
.surface__outils button {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
  border: 0; border-radius: 7px; background: transparent; color: #1d1d1f; cursor: pointer;
  font-size: 0.875rem; font-weight: 550;
  transition: background-color 140ms var(--sortie), color 140ms var(--sortie);
}
.surface__outils button:hover:not(:disabled) { background: rgb(0 0 0 / 0.063); }
.surface__outils button[aria-pressed="true"] { background: #0068d6; color: #fff; }
.surface__outils button:disabled { color: #b2b2b8; cursor: not-allowed; }
.surface__outils button kbd { font-size: 0.72rem; height: 1.45rem; min-width: 1.45rem; border-width: 1px; border-bottom-width: 1px; background: rgb(255 255 255 / 0.65); color: inherit; border-color: currentColor; opacity: 0.8; }
.surface__couleurs { display: flex; gap: 4px; align-items: center; }
.surface__couleurs button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.surface__couleurs button span { width: 16px; height: 16px; border-radius: 50%; display: block; transition: transform 140ms var(--ressort); }
.surface__couleurs button:hover span { transform: scale(1.12); }
.surface__couleurs button[aria-pressed="true"] { box-shadow: 0 0 0 2px #0068d6; }
.surface__actions { margin-left: auto; display: flex; gap: 8px; }
.surface__actions button { height: 34px; padding: 0 12px; border: 1px solid #c8c8cd; border-radius: 7px; background: #fff; font-size: 0.875rem; cursor: pointer; }
.surface__actions button:hover { background: var(--papier-2); }
.surface__toile { position: relative; aspect-ratio: 16 / 10; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.surface__toile > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.surface__aide { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; pointer-events: none; white-space: nowrap; transition: opacity 160ms var(--sortie); box-shadow: 0 10px 24px -8px rgb(8 30 80 / 0.5); }
.surface__aide.est-cachee { opacity: 0; }
.surface__etat { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; background: #f5f5f6; border-top: 1px solid #d4d4d8; font-size: 0.8125rem; color: #5c5c62; font-variant-numeric: tabular-nums; }
.essai__note { margin-top: 14px; font-size: var(--t-petit); color: var(--encre-2); }
.surface noscript p { padding: 24px; }

/* ------------------------------------------------------------ fichiers -- */
.fichiers { background: var(--bleu-nuit); color: #fff; }
.fichiers__scene { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: clamp(20px, 4vh, 44px); padding: clamp(64px, 11vh, 120px) 0 clamp(32px, 6vh, 64px); }
.fichiers__scene:not(.sc-stage) { padding-block: var(--section); }
/* Sans moteur (pas de script, ou mouvement réduit) : une grille, rien hors de vue. */
.fichiers__scene:not(.sc-stage) .rail { width: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.fichiers__scene:not(.sc-stage) .rail > figure { width: auto; }
.fichiers__tete { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 72px); align-items: end; }
.fichiers h2 { color: #fff; max-width: 14ch; }
.fichiers .chapeau { color: rgb(255 255 255 / 0.86); max-width: 46ch; }
.rail { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: stretch; padding-inline: var(--gouttiere); width: max-content; }
.rail > figure { margin: 0; width: clamp(240px, 26vw, 380px); flex: none; display: grid; grid-template-rows: auto 1fr; }
.rail .apercu { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #dfe5ee; box-shadow: 0 18px 36px -16px rgb(0 0 0 / 0.6); }
.rail .apercu svg { width: 100%; height: 100%; display: block; }
.rail figcaption { margin-top: 14px; border-top: 1.5px solid rgb(255 255 255 / 0.5); padding-top: 10px; font-size: 0.9rem; line-height: 1.45; }
.rail figcaption .mono { display: block; font-size: 0.8rem; color: #fff; overflow-wrap: anywhere; }
.rail figcaption dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; color: rgb(255 255 255 / 0.86); font-size: 0.86rem; }
.rail figcaption dt { color: rgb(255 255 255 / 0.68); }
.rail figcaption dd { margin: 0; }
.arbre { width: clamp(280px, 30vw, 420px); flex: none; align-self: center; font-family: var(--sc-font-mono); font-size: 0.86rem; line-height: 1.8; color: #fff; border: 1.5px solid rgb(255 255 255 / 0.5); border-radius: 12px; padding: 20px 22px; }
.arbre ul { list-style: none; margin: 0; padding-left: 1.2em; }
.arbre > ul { padding-left: 0; }
.arbre .discret { color: rgb(255 255 255 / 0.7); }
.arbre p { font-family: var(--sc-font-text); font-size: 0.86rem; color: rgb(255 255 255 / 0.86); margin-top: 12px; line-height: 1.5; }

/* -------------------------------------------------- fiche technique, état -- */
.fiche { background: var(--papier); }
.fiche__grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }
.fiche h2 { max-width: 11ch; }
.caracteristiques { margin: 0; border-top: 2px solid var(--encre); }
.caracteristiques > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.caracteristiques dt { font-weight: 650; font-stretch: 106%; }
.caracteristiques dd { margin: 0; color: var(--encre-2); }
.etat { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--encre); }
.etat > section { padding: 22px clamp(16px, 2.4vw, 32px) 0 0; }
.etat > section + section { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--filet); }
.etat h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.etat h3 .marque-etat { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.etat .fait { background: var(--encre); }
.etat .essai-m { background: var(--papier); box-shadow: inset 0 0 0 2.5px var(--encre); }
.etat .prevu { background: repeating-linear-gradient(45deg, var(--encre) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 2px var(--encre); }
.etat ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--encre-2); font-size: 0.97rem; }
.etat li { text-wrap: pretty; }
.etat li + li { margin-top: 6px; }
.etat p { margin-top: 12px; color: var(--encre-2); font-size: 0.97rem; }

/* -------------------------------------------------------------- plaque -- */
.plaque { background: var(--bleu); color: #fff; position: relative; overflow: hidden; }
.plaque > .boite { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: end; }
.plaque h2 { color: #fff; font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.6rem); font-stretch: 122%; max-width: 15ch; }
.plaque .chapeau { color: #fff; margin-top: 1.25rem; max-width: 44ch; }
.plaque__actions { display: grid; gap: 12px; justify-items: start; }
.plaque__actions p { font-size: var(--t-petit); color: #fff; max-width: 40ch; }
.plaque__actions a:not(.bouton) { color: #fff; }

/* ---------------------------------------------------------- mentions -- */
.mentions { background: var(--encre); color: rgb(255 255 255 / 0.86); font-size: 0.875rem; line-height: 1.55; padding-block: 40px 36px; }
.mentions__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.mentions__tete p { margin: 0; max-width: 62ch; }
.mentions a { color: #fff; }
.mentions .marque { color: #fff; }
.mentions__liens { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 22px; padding-block: 12px; border-block: 1px solid rgb(255 255 255 / 0.2); }
.mentions__liens a { font-weight: 600; }
/* Les mentions d'une affiche : un seul bloc dense, en petit corps, toute la largeur. */
.mentions__bloc { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16em), 1fr)); gap: 6px clamp(28px, 4vw, 56px); font-size: 0.8125rem; line-height: 1.6; color: rgb(255 255 255 / 0.72); }
.mentions__bloc p { margin: 0; max-width: 62ch; }
.mentions__bloc strong { color: #fff; font-size: 0.75rem; font-weight: 700; font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; margin-right: 0.5em; }

/* ----------------------------------------------------------- les pages -- */
.titre-page { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); border-bottom: 2px solid var(--encre); }
.titre-page h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 5.2rem); font-weight: 790; font-stretch: 125%; letter-spacing: -0.04em; line-height: 0.95; max-width: 16ch; }
.titre-page .chapeau { margin-top: 1.25rem; max-width: 52ch; }

/* Le guide : un sommaire d'étapes à gauche, la notice à droite. */
.guide { display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr); gap: clamp(28px, 5vw, 88px); padding-block: clamp(40px, 6vw, 80px) var(--section); }
.sommaire { position: sticky; top: 24px; align-self: start; }
.sommaire ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; position: relative; }
.sommaire ol::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--filet); }
.sommaire a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 5px 0; font-weight: 550; font-size: 0.95rem; line-height: 1.25; position: relative; }
.sommaire .pastille { width: 28px; height: 28px; font-size: 0.8rem; background: var(--papier); color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.sommaire a[aria-current="step"] .pastille { background: var(--bleu); color: #fff; box-shadow: none; }
.sommaire a:hover span:last-child { text-decoration: underline; }
.etape-guide { padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--filet); scroll-margin-top: 16px; }
.etape-guide:first-child { border-top: 0; padding-top: 0; }
.etape-guide__tete { display: flex; align-items: center; gap: 16px; }
.etape-guide__tete h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); }
.etape-guide > .texte, .etape-guide > .chapeau { margin-top: 1rem; }
.etape-guide h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.etape-guide ol.pas { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: pas; display: grid; gap: 12px; max-width: 66ch; }
.etape-guide ol.pas > li { counter-increment: pas; position: relative; padding-left: 40px; color: var(--encre-2); text-wrap: pretty; }
.etape-guide ol.pas > li::before { content: counter(pas, lower-alpha); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--encre); font-size: 0.8rem; font-weight: 700; color: var(--encre); }
.etape-guide ul.points { margin: 0.75rem 0 0; padding-left: 1.2em; color: var(--encre-2); max-width: 66ch; }
.etape-guide ul.points li + li { margin-top: 6px; }
.deux-systemes { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--encre); border-radius: 12px; overflow: hidden; max-width: 66rem; }
.deux-systemes > div { padding: 18px 20px; }
.deux-systemes > div + div { border-left: 1.5px solid var(--encre); }
.deux-systemes .etiquette { display: block; margin-bottom: 8px; color: var(--encre); }
.deux-systemes p { color: var(--encre-2); font-size: 0.97rem; }
.deux-systemes p + p { margin-top: 8px; }
.avis { margin-top: 1.25rem; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--papier-2); max-width: 66ch; font-size: 0.97rem; color: var(--encre-2); }
.avis svg { width: 26px; height: 26px; }
.avis--jamais { background: #fff1f1; }
.avis strong { color: var(--encre); }
.outils-table, .raccourcis { width: 100%; max-width: 66rem; border-collapse: collapse; margin-top: 1rem; font-size: 0.97rem; }
.outils-table th, .outils-table td, .raccourcis th, .raccourcis td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--filet); vertical-align: middle; }
.outils-table thead th, .raccourcis thead th { border-bottom: 2px solid var(--encre); font-size: var(--t-etiquette); text-transform: uppercase; letter-spacing: 0.03em; font-stretch: 112%; color: var(--encre); }
.outils-table td:first-child { width: 44px; }
.outils-table .icone { width: 26px; height: 26px; color: var(--encre); }
.outils-table td { color: var(--encre-2); }
.outils-table td strong { color: var(--encre); }
.code { margin: 1rem 0; background: var(--encre); color: #e8edf6; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-family: var(--sc-font-mono); font-size: 0.88rem; line-height: 1.65; max-width: 66rem; position: relative; }
.code code { background: none; border: 0; padding: 0; color: inherit; white-space: pre; }
.code .commentaire { color: #9fb0c8; }
/* Le bouton prend une bande à lui : sur téléphone, il couvrirait la première ligne. */
.code.a-copier { padding-top: 48px; }
.copier-code { position: absolute; top: 8px; right: 8px; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.06); color: #fff; font-size: 0.8rem; cursor: pointer; }
.copier-code:hover { background: rgb(255 255 255 / 0.14); }

/* Télécharger. */
.telecharger-tete { background: var(--bleu); color: #fff; position: relative; overflow: hidden; }
.telecharger-tete .boite { position: relative; padding-block: clamp(48px, 7vw, 104px); }
.telecharger-tete h1 { color: #fff; font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.6rem); font-weight: 790; font-stretch: 125%; letter-spacing: -0.04em; line-height: 0.95; max-width: 15ch; }
.telecharger-tete .chapeau { color: #fff; margin-top: 1.25rem; max-width: 50ch; }
.telecharger-tete .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 12px; }
.systemes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--encre); margin-top: clamp(40px, 5vw, 72px); }
/* Le texte prend la place libre : les trois boutons s'alignent en bas, quelle que soit sa longueur. */
.systemes > article { padding: 26px clamp(16px, 2.4vw, 32px) 0 0; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.systemes > article + article { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--filet); }
.systemes h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.systemes p { color: var(--encre-2); font-size: 0.97rem; }
.systemes .bouton { justify-self: start; margin-top: 6px; }
.systemes__release { margin-top: clamp(28px, 3vw, 40px); font-size: 0.97rem; }
.sources { padding-block: var(--section); }
.sources__grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }

/* -------------------------------------------------------------- 404 -- */
.erreur { min-height: 70svh; display: grid; place-items: center; text-align: left; }
.erreur h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.8rem); font-stretch: 125%; font-weight: 790; letter-spacing: -0.04em; line-height: 0.95; }
.erreur p { margin-top: 1rem; color: var(--encre-2); }
.erreur .actions { margin-top: 1.5rem; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------- l'adaptation -- */
@media (max-width: 1079px) {
  .couverture .cadre { grid-column: 1 / -1; }
  .couverture .vignette { grid-column: 7 / -1; grid-row: 2; }
  .couverture__touches { grid-column: 1 / span 6; }
  .chaine__scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; padding-left: var(--gouttiere); align-items: start; gap: 18px; }
  .chaine.est-animee .chaine__compteur { margin-top: 12px; }
  .ecran { max-height: calc(100svh - 300px); }
  @supports (aspect-ratio: 1) { .ecran { width: min(100%, calc((100svh - 300px) * 1.6)); } }
  .etapes p { max-width: 60ch; }
}
@media (max-width: 860px) {
  .couverture { padding-top: 84px; min-height: auto; }
  .couverture__scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 26px; }
  .couverture .cadre, .couverture .vignette, .couverture__touches { grid-column: 1; grid-row: auto; }
  .couverture .cadre { margin-top: 40px; }
  .couverture .vignette { max-width: none; justify-self: stretch; margin-top: 30px; }
  .couverture__fleche { display: none; }
  .couverture__touches { padding-top: 0; }
  .avant__haut, .fiche__grille, .plaque > .boite, .sources__grille, .fichiers__tete { grid-template-columns: minmax(0, 1fr); }
  .interdits { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .etat, .systemes { grid-template-columns: minmax(0, 1fr); }
  .etat > section + section, .systemes > article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--filet); margin-top: 22px; padding-top: 22px; }
  .caracteristiques > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .sommaire { position: static; }
  .deux-systemes { grid-template-columns: minmax(0, 1fr); }
  .deux-systemes > div + div { border-left: 0; border-top: 1.5px solid var(--encre); }
  .essai__tete { grid-template-columns: minmax(0, 1fr); }
  .essai__tete .chapeau { grid-column: 1; }
  .surface__actions { margin-left: 0; }
  .surface__toile { aspect-ratio: 4 / 3; }
  .fichiers__scene { padding-top: 56px; }
  .rail > figure { width: 74vw; }
  .arbre { width: 82vw; }
}
@media (max-width: 600px) {
  /* Le bureau dessiné ne tient pas dans la largeur : rogné, il ne laisserait que des traits. */
  .couverture__bureau { display: none; }
}
@media (max-width: 520px) {
  .entete__rangee { gap: 0.75rem; }
  .entete .marque span { display: none; }
  .etapes .touches-etape { display: none; }
  .etapes h3 { font-size: 1.4rem; }
  .outils-table td:first-child { width: 34px; }
  .outils-table th, .outils-table td { padding-right: 8px; font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .chaine.est-animee .etapes > li.est-courante { animation: none; }
  .toupie { animation: none; }
  .bouton, .index .pastille, .surface__outils button { transition: none; }
}

/* ------------------------------------------------- la chaîne, ses états -- */
/* Sans script ou sans mouvement : l'éditeur, annotations posées. Le script, quand il
   joue la chaîne, cache tout puis montre chaque calque à son heure. */
.c-rouge { background: #e5484d; }
.c-jaune { background: #ffd60a; }
.c-bleu { background: #0090ff; }
.editeur__couleur[data-couleur="rouge"] { background: #e5484d; box-shadow: 0 0 0 2px #f5f5f6, 0 0 0 3.5px #0068d6; }
.editeur__couleur[data-couleur="orange"] { background: #f76b15; }
.editeur__couleur[data-couleur="jaune"] { background: #ffd60a; }
.editeur__couleur[data-couleur="vert"] { background: #30a46c; }
.editeur__couleur[data-couleur="bleu"] { background: #0090ff; }
.editeur__couleur[data-couleur="noir"] { background: #111111; }
.editeur__couleur[data-couleur="blanc"] { background: #fff; box-shadow: inset 0 0 0 1px #c8c8cd; }
.editeur__reglages > span:first-child { font-weight: 600; min-width: 6.5em; }

.chaine:not(.est-animee) [data-couche-gel],
.chaine:not(.est-animee) [data-pointeur],
.chaine:not(.est-animee) [data-mini-vignette],
.chaine:not(.est-animee) [data-bibliotheque] { display: none; }

.chaine.est-animee [data-mini-vignette],
.chaine.est-animee [data-editeur],
.chaine.est-animee [data-bibliotheque] {
  visibility: hidden; opacity: 0;
  transition: opacity 120ms linear, transform 120ms var(--sortie), visibility 0s linear 120ms;
}
.chaine.est-animee [data-mini-vignette] { transform: translateX(18%) scale(0.96); }
.chaine.est-animee [data-editeur] { transform: scale(0.9); }
.chaine.est-animee [data-bibliotheque] { transform: translateY(5%) scale(0.98); }
.chaine.est-animee .est-visible[data-mini-vignette],
.chaine.est-animee .est-visible[data-editeur],
.chaine.est-animee .est-visible[data-bibliotheque] {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity 90ms linear, transform 340ms var(--ressort), visibility 0s;
}
.chaine.est-animee [data-couche-gel] { visibility: hidden; }
.chaine.est-animee .est-gele [data-couche-gel] { visibility: visible; }
.chaine.est-animee [data-loupe], .chaine.est-animee [data-reticule] { visibility: hidden; }
.chaine.est-animee .est-trace [data-reticule], .chaine.est-animee .est-loupe [data-loupe] { visibility: visible; }
.mini-vignette__boutons .est-presse { color: var(--bleu); transform: scale(1.15); }
.mini-vignette__boutons .icone { transition: transform 120ms var(--ressort), color 90ms; }

@media (prefers-reduced-motion: reduce) {
  .chaine.est-animee [data-mini-vignette], .chaine.est-animee [data-editeur], .chaine.est-animee [data-bibliotheque] { transform: none !important; }
}

/* ------------------------------------------------------ racine et erreur -- */
.racine { min-height: 100svh; display: grid; }
.erreur img { display: block; margin-bottom: 20px; border-radius: 16px; }
.erreur h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-stretch: 120%; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--filet); }
.erreur .actions { margin-top: 1.25rem; }
.erreur { padding-block: 64px; }
.chaine.est-animee .est-mesure { visibility: visible !important; opacity: 0 !important; transform: none !important; transition: none !important; }
.icone .fond { fill: var(--papier); }
.icone .evide { stroke: var(--papier); }
