/*
  skoole.net, v5 du 3 octobre 2026 (le cahier vivant de la v4, direction A, avec les
  greffes de la direction B retenues par le jury : la grille des options, les
  portes en couleur, le suivi des classes en barres).

  Prolonge l'identité de l'application (papier, encre, Literata) et garde le
  bleu du logo (#1E5BB8) comme seule couleur de marque, jusque dans la bande
  « Pour les établissements », en aplat. La marge rouge et le réglage Seyès du
  cahier ne servent que de décor, toujours très pâles.

  Polices AUTO-HÉBERGÉES (assets/polices/, licence SIL OFL 1.1) : rien ne se
  charge chez un tiers. Aucun attribut style= dans les pages : la politique de
  sécurité du .htaccess (style-src 'self') les refuserait. GSAP, lui, écrit
  ses styles par le CSSOM, ce que cette politique laisse passer.

  Règle des animations : l'état ÉCRIT dans les pages est lisible, et c'est
  celui qu'on voit sans script ou avec « réduire les animations ». Le haut de
  page n'est JAMAIS caché en attendant un script : seul son dessin s'anime,
  par-dessus ce qui est déjà affiché.
*/

/* ------------------------------------------------------------- polices */

@font-face {
  font-family: "Literata";
  src: url("polices/literata-latin-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("polices/atkinson-hyperlegible-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("polices/atkinson-hyperlegible-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------- jetons */

:root {
  color-scheme: light dark;

  --papier: #f6f2ea;
  --papier-2: #eee8dc;
  --feuille: #fffdf9;
  --encre: #1c1a17;
  --encre-2: #5a534a;
  --trait: #e0d8c9;
  --trait-fort: #c9bfad;

  --bleu: #1e5bb8;
  --bleu-survol: #174a97;
  --bleu-texte: #1e5bb8;
  --bleu-doux: #e6edf8;
  --sur-bleu: #ffffff;

  --marge: #d97a70;
  --marge-texte: #a8423a;
  --seyes: rgba(30, 91, 184, 0.05);
  --seyes-fort: rgba(30, 91, 184, 0.10);
  --surligneur: rgba(247, 205, 84, 0.55);

  --terre: #8b4a2b;
  --terre-doux: #f3e6dc;
  --vert: #2e6b3e;
  --vert-doux: #e1ede0;
  --ambre: #85540c;
  --ambre-doux: #f6ead2;

  --coque: #2a2722;
  --coque-trait: #2a2722;

  /* La bande des établissements : le bleu du logo en aplat, dans les deux
     thèmes. Contrastes calculés sur #1E5BB8 (luminance 0,112) : blanc 6,5:1,
     texte secondaire #e1e9f7 5,3:1 ; sur les encarts assombris (#194c9b
     environ), 8,2:1 et 6,7:1. */
  --bande: #1e5bb8;
  --bande-encre: #ffffff;
  --bande-douce: #e1e9f7;
  --bande-carte: rgba(0, 0, 0, 0.16);
  --bande-trait: rgba(255, 255, 255, 0.28);

  --logo-lettres: #1e5bb8;
  --logo-sourire: #a8b8cc;

  --titre: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --texte: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --rayon: 6px;
  --rayon-grand: 12px;
  --largeur: 1160px;
  --gouttiere: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #12110e;
    --papier-2: #1a1814;
    --feuille: #1f1d18;
    --encre: #f0ebe0;
    --encre-2: #b8b0a2;
    --trait: #34302a;
    --trait-fort: #4a443b;

    --bleu-survol: #2a6acb;
    --bleu-texte: #9dbbef;
    --bleu-doux: #1a2436;

    --marge: #8f4840;
    --marge-texte: #f0a097;
    --seyes: rgba(157, 187, 239, 0.05);
    --seyes-fort: rgba(157, 187, 239, 0.09);
    --surligneur: rgba(214, 170, 60, 0.34);

    --terre: #d9a585;
    --terre-doux: #36261d;
    --vert: #7fc58f;
    --vert-doux: #1b2e20;
    --ambre: #e0b25a;
    --ambre-doux: #3a2e12;

    --coque: #3a362f;
    --coque-trait: #57514a;

    --logo-lettres: #ffffff;
    --logo-sourire: #a8b8cc;
  }
}

@media (min-width: 640px) {
  :root {
    --gouttiere: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gouttiere: 32px;
  }
}

/* --------------------------------------------------------------- socle */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
  position: relative;
}

/* La marge rouge du cahier, sur toute la hauteur, là où il y a la place. */
@media (min-width: 1240px) {
  body::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(28px, calc(50% - var(--largeur) / 2 - 22px));
    width: 1.5px;
    background: var(--marge);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
figure,
address,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--bleu-texte);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--bleu-texte);
  outline-offset: 3px;
  border-radius: 3px;
}

[hidden] {
  display: none !important;
}

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

.evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--bleu);
  color: var(--sur-bleu);
  padding: 10px 16px;
  border-radius: var(--rayon);
  font-weight: 700;
  text-decoration: none;
}

.evitement:focus {
  top: 12px;
}

.enveloppe {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
  position: relative;
  z-index: 1;
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding-block: 72px;
}

@media (min-width: 900px) {
  section {
    padding-block: 112px;
  }
}

.section-douce {
  background: var(--papier-2);
}

.oeil {
  font-family: var(--texte);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bleu-texte);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.oeil::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.titre-section {
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  max-width: 22ch;
}

.chapeau {
  font-size: 1.125rem;
  color: var(--encre-2);
  max-width: 62ch;
  margin-top: 18px;
}

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

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--texte);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.bouton:hover {
  text-decoration: none;
}

.bouton.plein {
  background: var(--bleu);
  color: var(--sur-bleu);
}

.bouton.plein:hover {
  background: var(--bleu-survol);
}

.bouton.creux {
  background: transparent;
  color: var(--encre);
  border-color: var(--trait-fort);
}

.bouton.creux:hover {
  border-color: var(--encre);
}

.bouton.petit {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.bouton .fleche {
  width: 18px;
  height: 18px;
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .bouton:hover .fleche {
    transform: translateX(3px);
  }

  .bouton .fleche {
    transition: transform 0.18s ease;
  }
}

/* -------------------------------------------------------------- en-tête */

.barre {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--papier) 96%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--trait);
}

.barre .enveloppe {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.marque {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 0;
  border-radius: 4px;
}

.marque svg {
  height: 28px;
  width: auto;
}

.logo-lettres {
  fill: var(--logo-lettres);
}

.logo-sourire {
  fill: var(--logo-sourire);
}

.navigation {
  display: none;
  gap: 26px;
  margin-left: 28px;
}

.navigation a {
  color: var(--encre-2);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
}

.navigation a:hover {
  color: var(--encre);
  text-decoration: underline;
}

.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions .bouton.petit {
  padding-inline: 14px;
}

/* v6 : « S'inscrire » reste dans la barre sur téléphone aussi, à côté de
   « Se connecter » (la liste d'attente est la porte de la page). Sous
   380 px, les deux boutons se resserrent pour tenir à côté du logo. */
.bouton-acces {
  display: inline-flex;
}

@media (max-width: 379px) {
  .actions .bouton.petit {
    padding-inline: 10px;
    font-size: 0.85rem;
  }
}

/* La navigation apparaît à partir de 960 px (iPad en paysage, portable
   zoomé à 125 %). « Aide à la connexion », le plus long des liens, ne la
   rejoint qu'à partir de 1100 px : avant, les quatre ne tiennent pas sur une
   ligne à côté des deux boutons. Sous ce seuil, l'aide à la connexion reste
   liée depuis le pied de chaque page. */
.navigation a[href="/connexion/"] {
  display: none;
}

@media (min-width: 960px) {
  .navigation {
    display: flex;
  }
}

@media (min-width: 1100px) {
  .navigation a[href="/connexion/"] {
    display: inline;
  }
}

/* ---------------------------------------------------------------- héros */

.heros {
  position: relative;
  padding-block: 44px 72px;
  overflow: hidden;
}

/* Le réglage Seyès, très pâle, qui s'efface vers le bas. */
.heros::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--seyes-fort) 1px, transparent 1px),
    linear-gradient(to bottom, var(--seyes-fort) 1px, transparent 1px),
    linear-gradient(to bottom, var(--seyes) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 32px 8px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  pointer-events: none;
}

.heros-grille {
  display: grid;
  gap: 48px;
  align-items: center;
}

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bleu-texte);
  background: var(--bleu-doux);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.heros h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.heros h1 .ligne {
  display: block;
}

.heros h1 .suite {
  display: block;
  font-weight: 450;
  color: var(--encre-2);
  font-size: 0.54em;
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin-top: 18px;
  max-width: 24ch;
}

.surligne {
  color: var(--encre);
  background-image: linear-gradient(var(--surligneur), var(--surligneur));
  background-repeat: no-repeat;
  background-size: 100% 46%;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.06em;
}

/* Le coup de surligneur passe une fois, en CSS : il ne dépend d'aucun script
   et ne cache jamais le texte, seulement son fond. */
@media (prefers-reduced-motion: no-preference) {
  .heros .surligne {
    animation: surligner 0.9s cubic-bezier(0.45, 0, 0.25, 1) 0.5s both;
  }
}

@keyframes surligner {
  from {
    background-size: 0% 46%;
  }

  to {
    background-size: 100% 46%;
  }
}

.heros .sous {
  font-size: 1.125rem;
  color: var(--encre-2);
  max-width: 54ch;
  margin-top: 24px;
}

.heros .boutons {
  margin-top: 32px;
}

.heros .precision {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--encre-2);
}

.deja {
  margin-top: 22px;
  font-size: 0.975rem;
  color: var(--encre-2);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.deja a {
  font-weight: 700;
}

@media (min-width: 1000px) {
  .heros {
    padding-block: 56px 104px;
  }

  .heros-grille {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
  }
}

/* ------------------------------------------------------- scènes (commun) */

.scene {
  position: relative;
}

.scene figcaption {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--encre-2);
  max-width: 60ch;
  padding-left: 14px;
  border-left: 2px solid var(--marge);
}

.etiquette-scene {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-2);
  margin-bottom: 10px;
}

.feuille-scene {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  padding: 18px;
  position: relative;
}

/* Une seconde feuille, légèrement de travers, sous la première. */
.feuille-scene.pile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  transform: rotate(-1.6deg) translate(-4px, 6px);
  z-index: -1;
}

/* ------------------------------------------- scène 1 : la diffusion */

.diffusion {
  max-width: 560px;
  margin-inline: auto;
  position: relative;
  isolation: isolate;
}

.projection {
  position: relative;
  padding: 12px;
  background: var(--feuille);
  border: 1px solid var(--trait-fort);
  border-radius: 14px;
}

.projection::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: 14px;
  transform: rotate(-2deg) translate(-6px, 8px);
  z-index: -1;
}

.badge-direct {
  position: absolute;
  top: -12px;
  left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bleu);
  color: var(--sur-bleu);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.point-direct {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* Le point « en direct » ne bat que si le script tourne : le bouton de pause
   de la scène l'arrête avec le reste (WCAG 2.2.2). */
@media (prefers-reduced-motion: no-preference) {
  .anime-pret .diffusion .point-direct {
    animation: battement 1.8s ease-in-out infinite;
  }

  .anime-pret .scene-diffusion.en-pause .point-direct,
  .anime-pret .scene-diffusion.fini .point-direct {
    animation-play-state: paused;
  }
}

.pause-scene {
  position: absolute;
  top: -14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--trait-fort);
  background: var(--feuille);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.pause-scene:hover {
  border-color: var(--encre);
}

.pause-scene svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.pause-scene .triangle-lecture {
  display: none;
}

.en-pause .pause-scene .triangle-lecture,
.fini .pause-scene .triangle-lecture {
  display: inline;
}

.en-pause .pause-scene .barre-pause,
.fini .pause-scene .barre-pause {
  display: none;
}

@keyframes battement {
  50% {
    opacity: 0.25;
  }
}

.ecran {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: var(--feuille);
}

.ecran-grand {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--trait);
}

/* Les diapositives : écrites en unités du conteneur, elles gardent les mêmes
   proportions sur le grand écran et sur les trois petits. */
.diapo {
  position: absolute;
  inset: 0;
  padding: 6.5cqw 7cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3cqw;
  color: var(--encre);
  background:
    linear-gradient(to bottom, var(--seyes) 1px, transparent 1px) 0 0 / 100% 4cqw,
    var(--feuille);
}

.diapo + .diapo {
  opacity: 0;
  visibility: hidden;
}

.diapo .surtitre {
  font-size: 3.3cqw;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bleu-texte);
}

.diapo .titre-diapo {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 7.4cqw;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.diapo .pilules {
  display: flex;
  flex-wrap: wrap;
  gap: 2cqw;
}

.diapo .pilule {
  font-size: 3.4cqw;
  font-weight: 700;
  padding: 1.1cqw 2.8cqw;
  border-radius: 99cqw;
  border: 0.35cqw solid var(--trait-fort);
  color: var(--encre-2);
}

.diapo .reponse {
  align-self: flex-start;
  font-size: 4.6cqw;
  font-weight: 700;
  padding: 1.6cqw 3.4cqw;
  border-radius: 1.4cqw;
  background: var(--bleu-doux);
  color: var(--bleu-texte);
}

.diapo .flou {
  filter: blur(0px);
}

.diapo .indice {
  font-size: 3.2cqw;
  color: var(--encre-2);
}

.diapo .tuiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2cqw;
}

.diapo .tuile {
  font-size: 3.6cqw;
  font-weight: 700;
  color: #fff;
  padding: 2.4cqw 3cqw;
  border-radius: 1.4cqw;
  display: flex;
  align-items: center;
  gap: 2cqw;
}

.diapo .tuile b {
  display: inline-grid;
  place-items: center;
  width: 5.4cqw;
  height: 5.4cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 3cqw;
}

.tuile.t1 {
  background: #1e5bb8;
}

.tuile.t2 {
  background: #8b4a2b;
}

.tuile.t3 {
  background: #2e6b3e;
}

.tuile.t4 {
  background: #7a5a12;
}

.diapo .minuteur {
  height: 1.2cqw;
  border-radius: 1cqw;
  background: var(--trait);
  overflow: hidden;
}

.diapo .minuteur i {
  display: block;
  height: 100%;
  width: 62%;
  background: var(--bleu);
  border-radius: inherit;
  transform-origin: 0 50%;
}

.curseur {
  position: absolute;
  left: 78%;
  top: 80%;
  width: 6cqw;
  height: auto;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curseur path {
  fill: var(--encre);
  stroke: var(--feuille);
  stroke-width: 1.5;
}

/* Le câblage : un tronc, un bus, trois descentes, en pourcentages. */
.cablage {
  position: relative;
  height: 38px;
}

.fil {
  position: absolute;
  background: var(--trait-fort);
  overflow: hidden;
  border-radius: 2px;
}

.fil i {
  position: absolute;
  inset: 0;
  background: var(--bleu);
  opacity: 0;
}

.fil-tronc {
  left: calc(50% - 1px);
  top: 0;
  width: 2px;
  height: 50%;
}

.fil-bus {
  left: 16.667%;
  right: 16.667%;
  top: calc(50% - 1px);
  height: 2px;
}

.fil-d {
  top: 50%;
  bottom: 0;
  width: 2px;
}

.fil-d1 {
  left: calc(16.667% - 1px);
}

.fil-d2 {
  left: calc(50% - 1px);
}

.fil-d3 {
  left: calc(83.333% - 1px);
}

.appareils {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.appareil {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-inline: 5%;
}

.appareil .prenom {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--encre-2);
}

.portable .ecran,
.tablette .ecran {
  border: 5px solid var(--coque);
  width: 100%;
}

.portable .ecran {
  aspect-ratio: 16 / 10;
  border-radius: 7px 7px 2px 2px;
  border-bottom-width: 6px;
}

.portable .socle {
  display: block;
  width: 118%;
  height: 7px;
  margin-top: -8px;
  background: var(--coque);
  border-radius: 1px 1px 7px 7px;
}

.tablette .ecran {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border-width: 7px;
  width: 84%;
}

.telephone .coque {
  width: 54%;
  aspect-ratio: 9 / 17;
  border: 4px solid var(--coque);
  border-radius: 14px;
  background: var(--feuille);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.telephone .ecran {
  aspect-ratio: 16 / 10;
  flex: none;
  border-bottom: 1px solid var(--trait);
}

.notes-tel {
  flex: 1;
  padding: 10% 10% 0;
  display: flex;
  flex-direction: column;
  gap: 9%;
}

.notes-tel b {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--bleu-texte);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notes-tel i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--trait-fort);
  transform-origin: 0 50%;
}

.notes-tel i:nth-of-type(2) {
  width: 78%;
}

.notes-tel i:nth-of-type(3) {
  width: 90%;
}

.notes-tel i:nth-of-type(4) {
  width: 55%;
}

/* ------------------------------------------ le sommaire et les gestes */

.gestes-grille {
  display: grid;
  gap: 40px;
  margin-top: 48px;
}

.sommaire {
  display: none;
}

.sommaire-mobile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin-top: 28px;
}

.sommaire-mobile a,
.sommaire a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--encre);
}

.sommaire-mobile a {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 12px 14px;
  font-weight: 700;
}

.sommaire-mobile .n,
.sommaire .n {
  font-family: var(--titre);
  font-weight: 600;
  color: var(--marge-texte);
  font-size: 0.95rem;
}

@media (min-width: 1100px) {
  .sommaire-mobile {
    display: none;
  }

  .gestes-grille {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 56px;
  }

  .sommaire {
    display: block;
  }

  .sommaire-collant {
    position: sticky;
    top: 120px;
    padding-left: 20px;
  }

  .sommaire ol {
    list-style: none;
    display: grid;
    gap: 6px;
  }

  .sommaire-collant::before,
  .sommaire .fil-sommaire {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--trait);
    border-radius: 2px;
  }

  .sommaire .fil-sommaire {
    background: var(--bleu);
    transform-origin: 50% 0;
    z-index: 1;
  }

  .sommaire a {
    padding: 8px 0;
    color: var(--encre-2);
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.2s ease;
  }

  .sommaire a:hover,
  .sommaire a.actif {
    color: var(--encre);
  }

  .sommaire a.actif .v {
    text-decoration: underline;
    text-decoration-color: var(--surligneur);
    text-decoration-thickness: 0.45em;
    text-underline-offset: -0.2em;
    text-decoration-skip-ink: none;
  }
}

.gestes {
  display: grid;
  gap: 96px;
}

.geste-tete {
  display: grid;
  gap: 6px;
  margin-bottom: 26px;
}

.geste .numero {
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 600;
  color: var(--marge-texte);
  letter-spacing: 0.06em;
}

.geste h3 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
}

.geste .lead {
  font-family: var(--titre);
  font-weight: 450;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  color: var(--encre-2);
  line-height: 1.35;
  max-width: 34ch;
}

.geste-corps {
  display: grid;
  gap: 36px;
}

@media (min-width: 900px) {
  .geste-corps {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 44px;
    align-items: start;
  }
}

.liste {
  list-style: none;
  display: grid;
  gap: 14px;
}

.liste li {
  position: relative;
  padding-left: 22px;
}

.liste li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--bleu-texte);
}

.liste strong {
  font-weight: 700;
}

/* ---------------------------------- scène 2 : bibliothèque, module, programme */

.atelier {
  display: grid;
  gap: 18px;
  container-type: inline-size;
}

.briques {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brique,
.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--trait-fort);
  background: var(--feuille);
  white-space: nowrap;
}

.brique::before,
.puce::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ton, var(--bleu));
}

.t-cours,
.t-presentation {
  --ton: #1e5bb8;
}

.t-qcm {
  --ton: #2e6b3e;
}

.t-jeu {
  --ton: #b07a1a;
}

.t-exercice {
  --ton: #8b4a2b;
}

.t-questionnaire {
  --ton: #5f6b3a;
}

.t-document {
  --ton: #6f695f;
}

.atelier-bas {
  display: grid;
  gap: 18px;
}

.temps,
.etapes {
  list-style: none;
  display: grid;
  gap: 8px;
}

.temps li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--papier);
  border: 1px dashed var(--trait-fort);
}

.nom-temps {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--encre-2);
}

.temps .puce {
  justify-self: start;
}

.etape {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--trait);
  background: var(--feuille);
  font-size: 0.9rem;
}

.etape .num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--trait-fort);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.85rem;
}

.etape.vue .num {
  background: var(--vert);
  border-color: var(--vert);
  color: var(--feuille);
}

.etape.cible {
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px var(--bleu-doux);
}

.etape.cible .num {
  border-color: var(--bleu);
  color: var(--bleu-texte);
}

.titre-etape {
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.etape .puce-module {
  justify-self: start;
}

.etat {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--papier-2);
  color: var(--encre-2);
  display: inline-grid;
}

.etat > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.etat.ok {
  background: var(--vert-doux);
  color: var(--vert);
}

.etat.change {
  background: var(--bleu-doux);
  color: var(--bleu-texte);
}

.etat .etat-ferme {
  opacity: 0;
  visibility: hidden;
}

.etat svg {
  width: 12px;
  height: 12px;
}

@container (min-width: 520px) {
  .atelier-bas {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------------------------------------------- scène 3 : le quiz en direct */

.salle-quiz {
  display: grid;
  gap: 16px;
}

.quiz-tete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--encre-2);
}

.quiz-tete .direct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bleu-texte);
}

.quiz-tete .direct::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.quiz-question {
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Ce que montre le tableau du quiz en direct : combien ont répondu, puis la
   bonne réponse révélée. Aucune répartition des réponses par option : le
   quiz en direct n'en montre pas (live-host.tsx). */
.repondu {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--encre-2);
}

.repondu b {
  font-family: var(--titre);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--encre);
}

.repondu .jauge {
  height: 8px;
  border-radius: 6px;
  background: var(--papier-2);
  overflow: hidden;
}

.repondu .jauge i {
  display: block;
  width: 87.5%;
  height: 100%;
  border-radius: inherit;
  background: var(--bleu);
  transform-origin: 0 50%;
}

.options-quiz {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.options-quiz li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--trait);
  background: var(--papier-2);
  color: var(--encre-2);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.options-quiz .juste {
  border-color: var(--vert);
  background: var(--vert-doux);
  color: var(--vert);
}

.coche-quiz {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 196px;
  padding-top: 8px;
  border-bottom: 2px solid var(--encre);
}

.marche-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}

.marche-col .qui {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Les nombres du quiz en Literata : le zéro barré d'Atkinson s'y lit mal. */
.marche-col .points,
.quiz-tete > span:last-child {
  font-family: var(--titre);
  font-variant-numeric: lining-nums tabular-nums;
}

.marche-col .points {
  font-size: 0.78rem;
  color: var(--encre-2);
  font-variant-numeric: tabular-nums;
}

.marche {
  width: 100%;
  border-radius: 8px 8px 0 0;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--sur-bleu);
  transform-origin: 50% 100%;
}

.rang-1 .marche {
  height: 100px;
  background: var(--bleu);
}

.rang-2 .marche {
  height: 70px;
  background: #3f6dba;
}

.rang-3 .marche {
  height: 48px;
  background: #87a6d8;
  color: #13294d;
}

.etoile {
  width: 22px;
  height: 22px;
  color: #c8962c;
}

.jeux-liste {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.jeux-liste li {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--papier-2);
  color: var(--encre-2);
}

/* --------------------------------------------- scène 4 : la copie d'équipe */

.copie {
  background:
    linear-gradient(to right, transparent 46px, var(--marge) 46px, var(--marge) 47.5px, transparent 47.5px),
    linear-gradient(to bottom, var(--seyes-fort) 1px, transparent 1px) 0 14px / 100% 28px,
    var(--feuille);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  padding: 20px 18px 20px 62px;
  display: grid;
  gap: 14px;
  position: relative;
}

.copie-tete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--encre-2);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--trait);
}

.part {
  display: grid;
  gap: 4px;
}

.auteur {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  color: var(--sur-bleu);
}

.auteur.a1 {
  background: #1e5bb8;
}

.auteur.a2 {
  background: #8b4a2b;
}

.auteur.a3 {
  background: #2e6b3e;
}

.ecrit {
  font-size: 0.98rem;
  line-height: 1.5;
}

.tampon-rendu {
  position: absolute;
  top: 54px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vert);
  border: 2px solid var(--vert);
  border-radius: 6px;
  padding: 3px 8px;
  transform: rotate(-6deg);
  background: var(--feuille);
}

.correction {
  margin-top: 4px;
  border-radius: 10px;
  background: var(--bleu-doux);
  padding: 14px 14px 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: start;
}

.correction .titre-correction {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bleu-texte);
}

.correction p {
  font-size: 0.92rem;
  grid-column: 1;
}

.verdict {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.niveau {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--vert-doux);
  color: var(--vert);
  border: 1px solid currentColor;
}

.note {
  position: relative;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--marge-texte);
  padding: 8px 10px;
}

.note svg {
  position: absolute;
  inset: -4px -8px;
  width: calc(100% + 16px);
  height: calc(100% + 8px);
  max-width: none;
  overflow: visible;
}

.note svg path {
  fill: none;
  stroke: var(--marge-texte);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.puce-word {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  background: var(--feuille);
  border: 1px solid var(--trait-fort);
}

.puce-word svg {
  width: 14px;
  height: 14px;
}

/* ---------------------------------------------- scène 5 : le planning */

.planning {
  display: grid;
  gap: 14px;
}

.flux-liste {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flux {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--trait-fort);
  background: var(--feuille);
}

.flux::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ton);
}

.flux.fa,
.ev.fa {
  --ton: #1e5bb8;
  --ton-doux: var(--bleu-doux);
}

.flux.fb,
.ev.fb {
  --ton: #8b4a2b;
  --ton-doux: var(--terre-doux);
}

.semaine {
  display: grid;
  grid-template-columns: 30px repeat(5, minmax(0, 1fr));
  grid-template-rows: auto repeat(3, 46px);
  gap: 4px;
  font-size: 0.72rem;
}

.semaine .jour {
  text-align: center;
  font-weight: 700;
  color: var(--encre-2);
  padding-bottom: 2px;
}

.semaine .heure {
  color: var(--encre-2);
  font-size: 0.66rem;
  padding-top: 3px;
}

.semaine .case {
  border-radius: 6px;
  background: var(--papier);
  border: 1px solid var(--trait);
  position: relative;
  min-width: 0;
}

.ev {
  overflow-wrap: normal;
  hyphens: none;
  position: absolute;
  inset: 3px;
  border-radius: 4px;
  background: var(--ton-doux);
  border-left: 3px solid var(--ton);
  padding: 3px 5px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  font-size: 0.66rem;
  color: var(--encre);
}

.case.double .ev {
  padding-block: 1px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.case.double .ev.fa {
  bottom: 50%;
  margin-bottom: 1px;
}

.case.double .ev.fb {
  top: 50%;
  margin-top: 1px;
}

.halo {
  position: absolute;
  inset: -3px;
  border-radius: 8px;
  border: 2px solid var(--ambre);
  pointer-events: none;
}

.alerte {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ambre);
  background: var(--ambre-doux);
  border-radius: 6px;
  padding: 5px 10px;
}

.alerte svg {
  width: 14px;
  height: 14px;
}

.avancement {
  list-style: none;
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--trait);
}

.avancement li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.avancement .ou {
  color: var(--encre-2);
  font-weight: 400;
  font-size: 0.8rem;
}

.barre-av {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 6px;
  background: var(--papier-2);
  overflow: hidden;
}

.barre-av i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bleu);
  transform-origin: 0 50%;
}

.av-57 {
  width: 57%;
}

.av-75 {
  width: 75%;
}

.av-30 {
  width: 30%;
}

.av-72 {
  width: 72%;
}

.av-55 {
  width: 55%;
}

/* ----------------------------------------------------------- étudiants */

.deux-colonnes {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 900px) {
  .deux-colonnes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.liste.grande {
  margin-top: 28px;
  gap: 16px;
  font-size: 1.0625rem;
}

.mobile-etudiant {
  width: min(300px, 86%);
  margin-inline: auto;
  border: 7px solid var(--coque);
  border-radius: 34px;
  background: var(--papier);
  padding: 22px 16px 26px;
  display: grid;
  gap: 10px;
  position: relative;
}

.mobile-etudiant::before {
  content: "";
  width: 72px;
  height: 6px;
  border-radius: 6px;
  background: var(--trait-fort);
  justify-self: center;
  margin-bottom: 6px;
}

.mobile-etudiant .titre-app {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.5rem;
}

.mobile-etudiant .date-app {
  font-size: 0.8rem;
  color: var(--encre-2);
  margin-top: -8px;
}

.carte-jour {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
}

.carte-jour .type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bleu-texte);
}

.carte-jour .quoi {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  grid-column: 1;
}

.carte-jour .quand {
  font-size: 0.75rem;
  color: var(--encre-2);
  grid-column: 1;
}

.carte-jour .coche {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 26px;
  height: 26px;
}

.coche circle {
  fill: var(--vert-doux);
}

.coche path {
  fill: none;
  stroke: var(--vert);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.carte-jour.faite .quoi {
  text-decoration: line-through;
  text-decoration-color: var(--encre-2);
  color: var(--encre-2);
}

/* --------------------------------------------------------------- l'IA */

/* « Avec ou sans IA, vous avez toujours le dernier mot » (v5, D3 du point
   CP-20261003-0458) : trois chemins qui arrivent au même point, le
   formateur ; puis une correction proposée qu'il reprend avant de la rendre.
   L'état écrit dans la page est l'état FINAL (le module validé, la
   correction retouchée et rendue) : c'est lui qu'on lit sans script et avec
   « réduire les animations ». */

.ia-bas {
  margin-top: 64px;
}

@media (min-width: 900px) {
  .ia-bas {
    margin-top: 104px;
  }

  /* Sur grand écran, le dessin passe à gauche : il ne porte rien de
     focalisable, l'ordre de lecture reste celui du texte. */
  .ia-bas .scene {
    order: -1;
  }
}

.chemins-ia {
  margin-top: 28px;
  gap: 18px;
  counter-reset: chemin;
}

.chemins-ia li {
  padding-left: 40px;
  counter-increment: chemin;
}

.chemins-ia li::before {
  content: counter(chemin);
  left: 0;
  top: 0.05em;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--bleu-texte);
  color: var(--bleu-texte);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.titre-reprise {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  max-width: 24ch;
}

.texte-ia {
  margin-top: 16px;
  color: var(--encre-2);
  max-width: 58ch;
}

.encart-ia {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--rayon-grand);
  border: 1px dashed var(--trait-fort);
  color: var(--encre-2);
  max-width: 58ch;
}

.encart-ia strong {
  color: var(--encre);
}

/* Ce qui n'existe pas encore se dit en une ligne, derrière un rond vide. */
.en-preparation,
.options-preparation {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  max-width: 62ch;
}

.en-preparation {
  margin-top: 16px;
  color: var(--encre-2);
}

.en-preparation::before,
.options-preparation::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
}

/* La ligne des clones, sur la bande bleue, sous les options. */
.options-preparation {
  margin-top: 12px;
  color: var(--bande-douce);
}

@media (min-width: 640px) {
  .options-preparation {
    margin-left: 38px;
  }
}

/* Les trois chemins. Les colonnes n'ont pas d'écart : leurs milieux tombent
   à 50, 150 et 250 sur les 300 unités des branches dessinées dessous. */
.carrefour {
  max-width: 480px;
  margin-inline: auto;
  padding: 20px 12px 22px;
  display: grid;
  justify-items: center;
}

.voies {
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.voie {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  padding-inline: 4px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.25;
}

.voie b {
  color: var(--encre);
  font-weight: 700;
  margin-top: 4px;
}

.sous-voie {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--encre-2);
}

.ico-voie {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--feuille);
  border: 1.5px solid currentColor;
}

.ico-voie svg {
  width: 21px;
  height: 21px;
}

.ico-voie path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v-main {
  color: var(--terre);
}

.v-assistant {
  color: var(--vert);
}

.v-connecteur {
  color: var(--bleu-texte);
}

.branches {
  width: 100%;
  height: auto;
  margin-top: 8px;
  overflow: visible;
}

.branche {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.branche.b1 {
  stroke: var(--terre);
}

.branche.b2 {
  stroke: var(--vert);
}

.branche.b3 {
  stroke: var(--bleu-texte);
}

/* Les perles qui descendent les branches n'existent que pour le script. */
.perle {
  opacity: 0;
  visibility: hidden;
}

.perle.b1 {
  fill: var(--terre);
}

.perle.b2 {
  fill: var(--vert);
}

.perle.b3 {
  fill: var(--bleu-texte);
}

.valider {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--bleu);
  color: var(--sur-bleu);
  line-height: 1.2;
}

.valider b {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.05rem;
}

.valider .sous-voie {
  color: var(--bande-douce);
}

.sceau {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--sur-bleu);
  color: #1e5bb8;
  display: grid;
  place-items: center;
}

.sceau svg {
  width: 18px;
  height: 18px;
}

.sceau path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.descente {
  width: 2px;
  height: 24px;
  background: var(--trait-fort);
}

.arrivee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
}

.libelle-arrivee {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-2);
}

/* La correction reprise : biffée et réécrite à la main, au-dessus du mot,
   comme sur une copie papier. */
.reprise {
  max-width: 480px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.reprise-tete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--encre-2);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--trait);
}

.etat-correction {
  justify-self: start;
  display: inline-grid;
  font-size: 0.75rem;
  font-weight: 700;
}

.etat-correction > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid currentColor;
}

.etat-propose {
  color: var(--ambre);
  background: var(--ambre-doux);
  opacity: 0;
  visibility: hidden;
}

.etat-rendu {
  color: var(--vert);
  background: var(--vert-doux);
}

.etat-correction svg,
.bouton-rendre svg {
  width: 14px;
  height: 14px;
}

.etat-correction path,
.etat-correction circle,
.bouton-rendre path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proposition {
  border-radius: 10px;
  background: var(--bleu-doux);
  padding: 12px 16px 14px;
  display: grid;
  gap: 4px;
}

.titre-proposition {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bleu-texte);
}

.texte-reprise {
  font-size: 0.95rem;
  line-height: 2.25;
}

.rature-bloc {
  position: relative;
  display: inline-block;
  line-height: 1.4;
}

.rature {
  position: relative;
  text-decoration: none;
  color: var(--encre-2);
}

.trait-rature {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  border-radius: 2px;
  background: var(--marge-texte);
}

.retouche {
  position: absolute;
  left: 50%;
  bottom: 78%;
  translate: -50% 0;
  rotate: -4deg;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.95em;
  color: var(--marge-texte);
}

.verdict-reprise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 12px;
}

.note-reprise {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.3rem;
  font-variant-numeric: lining-nums;
}

.bouton-rendre {
  justify-self: end;
  display: inline-grid;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.bouton-rendre > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--rayon);
  border: 1px solid transparent;
}

.rendre-avant {
  background: var(--bleu);
  color: var(--sur-bleu);
  opacity: 0;
  visibility: hidden;
}

.bouton-rendre .rendre-apres {
  background: var(--vert-doux);
  color: var(--vert);
  border-color: currentColor;
}

.curseur-reprise {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: auto;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curseur-reprise path {
  fill: var(--encre);
  stroke: var(--feuille);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* --------------------------------------------- pour les établissements */

.bande {
  background: var(--bande);
  color: var(--bande-encre);
  position: relative;
  overflow: hidden;
}

/* Le grain d'une couverture de cahier, en lignes très fines. */
.bande::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  pointer-events: none;
}

.bande .oeil {
  color: #ffffff;
}

.bande .chapeau {
  color: var(--bande-douce);
}

.bande a:not(.bouton) {
  color: #ffffff;
}

.bande .bouton.plein {
  background: #fffdf9;
  color: #13294d;
}

.bande .bouton.plein:hover {
  background: #ffffff;
}

.bande .bouton.creux {
  color: var(--bande-encre);
  border-color: rgba(255, 255, 255, 0.6);
}

.bande .bouton.creux:hover {
  border-color: #ffffff;
}

/* Sur la bande bleue, l'anneau de focus passe en blanc (6,5:1). */
.bande :focus-visible {
  outline-color: #ffffff;
}

.bloc-etab,
.bloc-options {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--bande-trait);
}

.bloc-etab {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .bloc-etab,
  .options-entete {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
}

.bande h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.texte-etab > p {
  color: var(--bande-douce);
  margin-top: 14px;
  max-width: 56ch;
}

.liste.claire li::before {
  border-color: #ffffff;
}

.liste.claire {
  margin-top: 22px;
}

.liste.claire li {
  color: var(--bande-encre);
}

/* Le suivi des classes : une feuille posée sur la couverture, des barres et
   des points, aucun chiffre (rien qu'un lecteur pressé prendrait pour un
   chiffre d'usage). */
.tableau-suivi {
  background: var(--feuille);
  color: var(--encre);
  border-radius: var(--rayon-grand);
  padding: 18px;
  display: grid;
  gap: 4px;
  box-shadow: 0 24px 48px -28px rgba(5, 18, 45, 0.55);
}

.tete-suivi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--texte);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--trait-fort);
  color: var(--encre);
}

.export svg {
  width: 13px;
  height: 13px;
}

.colonnes-suivi,
.ligne-suivi {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 10px;
  align-items: center;
}

.colonnes-suivi {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--encre-2);
  padding-bottom: 6px;
}

.ligne-suivi {
  padding: 11px 0;
  border-top: 1px solid var(--trait);
}

.ligne-suivi .classe {
  font-weight: 700;
  font-size: 0.86rem;
  overflow-wrap: normal;
}

.ligne-suivi .barre-av {
  grid-column: auto;
  height: 10px;
}

.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pastilles i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bleu);
}

.pastilles i.vide {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--trait-fort);
}

.rendus {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.rendus i {
  width: 7px;
  border-radius: 2px;
  background: var(--terre);
  transform-origin: 50% 100%;
}

.rendus .h1 {
  height: 40%;
}

.rendus .h2 {
  height: 62%;
}

.rendus .h3 {
  height: 86%;
}

.rendus .h4 {
  height: 52%;
}

.rendus .h5 {
  height: 100%;
}

@media (max-width: 420px) {
  .tableau-suivi {
    padding: 16px 14px;
  }

  .colonnes-suivi,
  .ligne-suivi {
    grid-template-columns: 4.6rem minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.75fr);
    gap: 8px;
  }

  .ligne-suivi .classe {
    font-size: 0.8rem;
  }

  .colonnes-suivi {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }

  .pastilles {
    gap: 3px;
  }

  .pastilles i {
    width: 8px;
    height: 8px;
  }
}

/* Les options d'infrastructure : le texte et le serveur, puis quatre cartes
   égales, chacune avec sa pastille « Option » en forme de prise. */
.options-entete {
  display: grid;
  gap: 32px;
}

.options-grille {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .options-grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .options-grille {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.option-carte {
  background: var(--feuille);
  color: var(--encre);
  border-radius: var(--rayon-grand);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 40px -28px rgba(5, 18, 45, 0.6);
}

.tete-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ico-option {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bleu-doux);
  color: var(--bleu-texte);
  display: grid;
  place-items: center;
  flex: none;
}

.ico-option svg {
  width: 24px;
  height: 24px;
}

.ico-option path,
.ico-option rect,
.ico-option circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pastille-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 7px;
  border-radius: 999px;
  border: 1.5px solid var(--bleu-texte);
  color: var(--bleu-texte);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.pastille-option .prise {
  width: 30px;
  height: 12px;
  overflow: visible;
}

.option-carte h4 {
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.option-carte p {
  color: var(--encre-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.option-carte .badge-ouverture {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ambre-doux);
  color: var(--ambre);
  border: 1px solid currentColor;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.option-carte .badge-ouverture::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.options-pied {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--bande-encre);
}

.options-pied svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.options-pied path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Le serveur de l'établissement, et la veille, qui n'y est pas. */
.infra {
  display: grid;
  gap: 14px;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}

.serveur {
  border-radius: 16px;
  border: 1px solid var(--bande-trait);
  background: var(--bande-carte);
  padding: 18px;
  display: grid;
  gap: 10px;
  width: 100%;
}

.serveur-tete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bande-douce);
}

.serveur-tete b {
  font-family: var(--titre);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bande-encre);
}

.emplacement,
.veille-carte {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.emplacement {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--bande-trait);
}

.veille-carte {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
}

.emplacement .fentes {
  display: grid;
  gap: 3px;
}

.emplacement .fentes i {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.emplacement .sous-emp,
.veille-carte .sous-emp {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--bande-douce);
}

.veille-carte svg {
  width: 20px;
  height: 20px;
}

.veille-carte svg path,
.veille-carte svg circle {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
}

.led i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #8ee0a6;
  box-shadow: 0 0 0 3px rgba(142, 224, 166, 0.28);
}

.emplacement.attente .led i {
  background: #f5d58f;
  box-shadow: 0 0 0 3px rgba(245, 213, 143, 0.26);
}

.serveur-pied {
  font-size: 0.78rem;
  color: var(--bande-douce);
  display: flex;
  align-items: center;
  gap: 8px;
}

.serveur-pied svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.serveur-pied path,
.serveur-pied circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.interlocuteur {
  margin-top: 56px;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 16px;
  background: var(--bande-carte);
  border: 1px solid var(--bande-trait);
}

.interlocuteur h3 {
  font-size: 1.4rem;
}

.interlocuteur p {
  color: var(--bande-douce);
  margin-top: 8px;
}

@media (min-width: 900px) {
  .interlocuteur {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 28px 32px;
  }
}

/* ------------------------------------------------------------- portes */

/* Deux vraies cartes de couleur, une seule couleur de marque : l'établissement
   en bleu plein, le formateur sur papier dans un filet bleu épais. L'étudiant
   a sa bande à part, en dessous, avec ses trois boutons. */
.portes {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

@media (min-width: 900px) {
  .portes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .porte-etudiant {
    grid-column: 1 / -1;
  }
}

.porte {
  position: relative;
  border-radius: 18px;
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 900px) {
  .porte-formateur,
  .porte-etablissement {
    padding: 34px 32px 30px;
  }
}

.porte .qui {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.porte h2,
.porte h3 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}

.porte .boutons {
  margin-top: auto;
  padding-top: 8px;
}

.porte-formateur {
  background: var(--feuille);
  border: 3px solid var(--bleu);
}

.porte-formateur .qui {
  color: var(--bleu-texte);
}

.porte-formateur p:not(.qui) {
  color: var(--encre-2);
}

.porte-etablissement {
  background: var(--bleu);
  color: #ffffff;
  border: 3px solid var(--bleu);
  overflow: hidden;
}

/* Un carré de papier de travers dans le coin, comme une étiquette collée. */
.porte-etablissement::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 120px;
  height: 120px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(16deg);
  pointer-events: none;
}

.porte-etablissement .qui,
.porte-etablissement p:not(.qui) {
  color: var(--bande-douce);
}

.porte-etablissement :focus-visible {
  outline-color: #ffffff;
}

.bouton.blanc {
  background: #fffdf9;
  color: #13294d;
}

.bouton.blanc:hover {
  background: #ffffff;
}

.porte-etudiant {
  background: transparent;
  border: 1.5px dashed var(--trait-fort);
  padding: 22px;
}

.porte-etudiant .qui {
  color: var(--bleu-texte);
}

.porte-etudiant p:not(.qui) {
  color: var(--encre-2);
}

.porte-etudiant .texte-porte {
  display: grid;
  gap: 10px;
}

.porte-etudiant h2,
.porte-etudiant h3 {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
}

@media (min-width: 1100px) {
  .porte-etudiant {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 40px;
    padding: 26px 32px;
  }

  .porte-etudiant .boutons {
    margin-top: 0;
    padding-top: 0;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .porte-formateur:hover,
  .porte-etablissement:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -24px rgba(5, 18, 45, 0.45);
  }
}

.porte-ico {
  width: 54px;
  height: 54px;
}

.porte-ico .cadre {
  fill: none;
  stroke: var(--trait-fort);
  stroke-width: 2;
}

.porte-ico .lumiere {
  fill: var(--surligneur);
}

.porte-ico .battant {
  fill: var(--bleu);
}

.porte-etablissement .porte-ico .cadre {
  stroke: rgba(255, 255, 255, 0.7);
}

.porte-etablissement .porte-ico .lumiere {
  fill: rgba(255, 255, 255, 0.22);
}

.porte-etablissement .porte-ico .battant {
  fill: #ffffff;
}

/* ------------------------------------------------------------ questions */

.questions {
  margin-top: 40px;
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.questions details {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
}

.questions summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 20px;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.12rem;
  position: relative;
  border-radius: var(--rayon-grand);
}

.questions summary::-webkit-details-marker {
  display: none;
}

.questions summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--encre-2);
  border-bottom: 2px solid var(--encre-2);
  transform: rotate(45deg);
}

.questions details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
}

@media (prefers-reduced-motion: no-preference) {
  .questions summary::after {
    transition: transform 0.2s ease;
  }
}

.reponse {
  padding: 0 20px 20px;
  display: grid;
  gap: 10px;
  color: var(--encre-2);
  max-width: 68ch;
}

/* --------------------------------------------------------------- contact */

.contact {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: 18px;
  padding: 30px 22px;
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 1.5px;
  background: var(--marge);
  opacity: 0.6;
}

.contact > * {
  position: relative;
  padding-left: 16px;
}

.contact h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
}

.contact p {
  color: var(--encre-2);
  max-width: 60ch;
}

.coordonnees {
  font-style: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 1.15rem;
  font-weight: 700;
}

@media (min-width: 900px) {
  .contact {
    padding: 44px 48px 44px 40px;
  }

  .contact::before {
    left: 30px;
  }

  .contact > * {
    padding-left: 24px;
  }
}

/* ---------------------------------------------------------------- pied */

.pied {
  border-top: 1px solid var(--trait);
  padding-block: 44px 36px;
  position: relative;
  z-index: 1;
  background: var(--papier);
}

.pied .haut {
  display: grid;
  gap: 22px;
}

.pied ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.pied ul a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.pied ul a:hover {
  text-decoration: underline;
}

.pied .mentions {
  margin-top: 26px;
  display: grid;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--encre-2);
}

@media (min-width: 820px) {
  .pied .haut {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .pied ul {
    justify-content: flex-end;
  }
}

/* -------------------------------------------- pages simples et connexion */

.page-simple {
  padding-block: 48px 88px;
}

.texte {
  max-width: 760px;
}

.texte h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
}

.texte h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 10px;
}

.texte p,
.texte address {
  margin-top: 10px;
  color: var(--encre-2);
}

.texte address {
  font-style: normal;
}

.date-maj {
  margin-top: 40px !important;
  font-size: 0.9rem;
}

.connexion-grille {
  display: grid;
  gap: 40px;
}

@media (min-width: 940px) {
  .connexion-grille {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: start;
  }
}

.connexion-tete h1 {
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);
  letter-spacing: -0.02em;
}

.connexion-tete .sous {
  font-size: 1.15rem;
  color: var(--encre-2);
  margin-top: 16px;
  max-width: 48ch;
}

.porte-app {
  margin-top: 30px;
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-top: 4px solid var(--bleu);
  border-radius: 16px;
  padding: 24px 22px;
  display: grid;
  gap: 16px;
}

.porte-app .bouton {
  width: 100%;
  min-height: 56px;
  font-size: 1.1rem;
}

@media (min-width: 560px) {
  .porte-app .bouton {
    width: auto;
  }
}

.adresse-app {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--encre);
  background: var(--papier-2);
  border-radius: 6px;
  padding: 3px 8px;
}

.titre-etapes {
  font-size: 1.35rem;
  margin: 44px 0 18px;
}

.etapes-connexion {
  list-style: none;
  counter-reset: etape;
  display: grid;
  gap: 14px;
}

.etapes-connexion li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.etapes-connexion li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bleu-doux);
  color: var(--bleu-texte);
  font-family: var(--titre);
  font-weight: 600;
}

.etapes-connexion strong {
  display: block;
}

.etapes-connexion span {
  color: var(--encre-2);
}

.cartes-aide {
  display: grid;
  gap: 14px;
}

.carte-aide {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.carte-aide h2 {
  font-size: 1.2rem;
}

.carte-aide p,
.carte-aide li {
  color: var(--encre-2);
  font-size: 0.98rem;
}

.carte-aide .liste {
  gap: 8px;
}

/* -------------------------------------------------------------- podcast */

.lien-antenne {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px dashed var(--trait-fort);
  background: var(--feuille);
}

.lien-antenne .adresse {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.35rem;
}

.retour-copie {
  font-size: 0.9rem;
  color: var(--vert);
  font-weight: 700;
}

.trois-places {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .trois-places {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.place {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.place h3 {
  font-size: 1.35rem;
}

.place .lead {
  color: var(--encre-2);
}

.place .liste {
  gap: 8px;
  font-size: 0.97rem;
}

/* ------------------------------------------------- animations : la règle */

/*
  Rien n'est caché par la feuille de style en attendant un script : le texte
  et les boutons du haut de page sont là dès le premier affichage. Les blocs
  plus bas ne sont masqués par GSAP qu'une fois le script arrivé, et seulement
  s'ils ne sont pas déjà à l'écran (site.js, dejaVisible).
*/

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Les numéros de téléphone en Literata : le zéro barré d'Atkinson se lit
   mal dans un numéro. */
.tel {
  font-family: var(--titre);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums;
}

/* La veille, à part du serveur de l'établissement. */
.infra {
  display: grid;
  gap: 14px;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}

.veille-carte {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--bande-trait);
  font-size: 0.9rem;
  font-weight: 700;
}

.veille-carte svg {
  width: 20px;
  height: 20px;
}

.veille-carte svg path,
.veille-carte svg circle {
  fill: none;
  stroke: #cfe0ff;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.veille-carte .sous-emp {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--bande-douce);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 48px;
  }

  .contact h2,
  .contact > p {
    grid-column: 1;
  }

  .contact .coordonnees,
  .contact .boutons {
    grid-column: 2;
  }

  .contact .coordonnees {
    grid-row: 1;
    align-self: end;
    font-size: 1.5rem;
  }

  .contact .boutons {
    grid-row: 2;
    align-self: start;
  }
}

/* Le podcast, les pages simples */
.ondes {
  width: 22px;
  height: 14px;
  fill: currentColor;
}

.heros-podcast .sous {
  max-width: 62ch;
}

.heros-podcast .portes {
  margin-top: 40px;
}

.centre-bref {
  margin-top: 36px;
  justify-content: center;
}

.espace-haut {
  margin-top: 30px;
}

.bouton.discret {
  background: transparent;
  color: var(--bleu-texte);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding-inline: 8px;
}

.bouton.discret:hover {
  text-decoration-thickness: 2px;
}

.heros-podcast h1 .suite {
  font-size: 0.66em;
}

@media (max-width: 480px) {
  .ev {
    font-size: 0.6rem;
    padding: 2px 3px;
  }
}

/* Le lien qui suit une liste : « Comment vos étudiants se connectent ». */
.lien-suite {
  margin-top: 24px;
}

.lien-suite a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.lien-suite .fleche {
  width: 18px;
  height: 18px;
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .lien-suite .fleche {
    transition: transform 0.18s ease;
  }

  .lien-suite a:hover .fleche {
    transform: translateX(3px);
  }
}

/* /connexion/ : l'encart contre l'hameçonnage. */
.encart-securite {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--rayon-grand);
  background: var(--ambre-doux);
  color: var(--encre);
  border: 1px solid var(--trait-fort);
}

.encart-securite svg {
  width: 26px;
  height: 26px;
}

.encart-securite path {
  fill: none;
  stroke: var(--ambre);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/*
  Repli pour les navigateurs qui ne connaissent pas les unités cqw (Safari
  avant 16, Firefox avant 110) : les diapositives prennent des tailles fixes,
  plus sobres, au lieu de s'écrire au corps de la page.
*/
@supports not (width: 1cqw) {
  .diapo {
    padding: 5% 6%;
    gap: 8px;
  }

  .ecran-grand .diapo .surtitre {
    font-size: 0.7rem;
  }

  .ecran-grand .diapo .titre-diapo {
    font-size: clamp(1.15rem, 4.6vw, 2rem);
  }

  .ecran-grand .diapo .pilule,
  .ecran-grand .diapo .tuile,
  .ecran-grand .diapo .indice {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .ecran-grand .diapo .reponse {
    font-size: 0.95rem;
    padding: 4px 10px;
  }

  .ecran-grand .diapo .tuile b {
    width: 18px;
    height: 18px;
    font-size: 0.62rem;
  }

  .ecran-grand .diapo .minuteur {
    height: 5px;
  }

  .appareil .diapo {
    padding: 8%;
    gap: 2px;
  }

  .appareil .diapo .titre-diapo {
    font-size: 0.5rem;
  }

  .appareil .diapo .surtitre,
  .appareil .diapo .pilules,
  .appareil .diapo .tuiles {
    display: none;
  }

  .appareil .diapo .reponse {
    font-size: 0.45rem;
    padding: 1px 3px;
  }

  .curseur {
    width: 22px;
  }
}

/* À l'impression, tout ce que le script aurait pu laisser en attente se lit. */
@media print {
  .barre,
  .pause-scene,
  .evitement {
    display: none !important;
  }

  /* Les blocs de texte, les cartes d'options et chaque dessin (scènes,
     suivi des classes, serveur) : une page imprimée sans avoir défilé
     garderait sinon leur état de départ, transparent, réduit ou découpé. */
  [data-revele],
  [data-revele] > *,
  .scene *,
  .bloc-etab *,
  .bloc-options * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    clip-path: none !important;
  }

  .scene .flou {
    filter: none !important;
  }

  /* Les traits que le script dessine (le cercle autour de « 15/20 », la
     coche de la carte « Fait ») partent effacés : on les montre tracés. */
  .scene path {
    stroke-dashoffset: 0 !important;
  }

  /* Ce que le dessin cache aussi sans script : les slides suivantes, le
     curseur, l'impulsion du câble, l'étiquette « Fermé » (le module est
     montré ouvert). Le tampon « Rendu » garde son inclinaison. */
  .diapo + .diapo,
  .curseur,
  .fil i,
  .etat .etat-ferme,
  .perle,
  .etat-propose,
  .rendre-avant,
  .curseur-reprise {
    display: none !important;
  }

  .tampon-rendu {
    transform: rotate(-6deg) !important;
  }
}

/* ------------------------------------------------------------------ v6
   2 novembre 2026 : la page courte de la liste d'attente. Les fonctions du
   formateur en cartes, les applications sur la bande bleue (le simulateur
   d'appels en tête), le connecteur, le formulaire pas à pas. Tout se lit
   sans script : le script ne fait que masquer le volet du profil non choisi
   et envoyer sans recharger la page. */

.fonctions {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .fonctions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .fonctions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .fonctions.trois {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fonction {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.fonction h3,
.applis .option-carte h3 {
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--encre);
}

.fonction p {
  color: var(--encre-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ico-fonction {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bleu-doux);
  color: var(--bleu-texte);
  display: grid;
  place-items: center;
}

.ico-fonction svg {
  width: 24px;
  height: 24px;
}

.ico-fonction path,
.ico-fonction rect,
.ico-fonction circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.etudiants-ligne {
  margin-top: 26px;
  max-width: 70ch;
  color: var(--encre-2);
}

.etudiants-ligne strong {
  color: var(--encre);
}

@media (min-width: 1080px) {
  .applis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.applis .option-carte.vedette {
  outline: 3px solid var(--surligneur);
  outline-offset: -3px;
}

.ia-grille {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .ia-grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
}

.assistants {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pilule-ia {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--feuille);
  border: 1px solid var(--trait-fort);
  font-weight: 700;
  font-size: 0.92rem;
}

.liste-ia {
  list-style: none;
  display: grid;
  gap: 14px;
}

.liste-ia li {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  padding: 16px 18px;
  color: var(--encre-2);
  line-height: 1.5;
}

.liste-ia strong {
  color: var(--encre);
}

.ia-sans {
  margin-top: 16px;
  color: var(--encre-2);
  font-size: 0.95rem;
}

/* La liste d'attente */

.inscription-grille {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .inscription-grille {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

.carte-inscription {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  padding: 22px 18px 24px;
  min-width: 0;
}

@media (min-width: 640px) {
  .carte-inscription {
    padding: 28px 28px 30px;
  }
}

.formulaire {
  display: grid;
  gap: 18px;
}

.formulaire fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.formulaire legend {
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0;
}

.choix-profil {
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .choix-profil {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choix-profil legend {
    grid-column: 1 / -1;
  }
}

.profil {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid var(--trait-fort);
  border-radius: var(--rayon);
  cursor: pointer;
  background: var(--papier);
}

.profil input {
  position: absolute;
  left: 15px;
  top: 17px;
  width: 18px;
  height: 18px;
  accent-color: var(--bleu);
}

.profil:has(input:checked) {
  border-color: var(--bleu-texte);
  background: var(--bleu-doux);
}

.profil-nom {
  font-weight: 700;
}

.profil-sous {
  font-size: 0.88rem;
  color: var(--encre-2);
}

.champ {
  display: grid;
  gap: 6px;
}

.champ label,
.champ legend {
  font-weight: 700;
  font-size: 0.95rem;
}

.facultatif {
  font-weight: 400;
  color: var(--encre-2);
}

.formulaire input[type="email"],
.formulaire input[type="text"],
.formulaire input[type="tel"] {
  width: 100%;
  font: inherit;
  color: var(--encre);
  background: var(--papier);
  border: 1.5px solid var(--trait-fort);
  border-radius: var(--rayon);
  padding: 10px 12px;
}

.formulaire input::placeholder {
  color: var(--encre-2);
  opacity: 0.75;
}

.formulaire input:focus-visible {
  outline: 3px solid var(--bleu-texte);
  outline-offset: 1px;
}

.formulaire input[aria-invalid="true"] {
  border-color: var(--marge-texte);
}

.volet {
  display: grid;
  gap: 18px;
}

.appel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.appel legend {
  width: 100%;
}

.option-appel,
.consentement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.option-appel input,
.consentement input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--bleu);
}

.consentement {
  font-size: 0.95rem;
}

.formulaire .bouton {
  justify-self: start;
}

.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.retour-inscription:empty {
  display: none;
}

.retour-inscription {
  color: var(--marge-texte);
  font-weight: 700;
}

.mention-donnees {
  font-size: 0.85rem;
  color: var(--encre-2);
}

.inscription-erreur {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--rayon);
  background: var(--terre-doux);
  color: var(--terre);
  font-weight: 700;
}

.inscription-erreur:target {
  display: block;
}

.inscription-merci {
  display: grid;
  gap: 8px;
}

.inscription-merci:focus {
  outline: none;
}

.merci-titre {
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--vert);
}

/* v6, repris le 2 novembre à 11 h : le formulaire vit dans une fenêtre
   (<dialog>), ouverte par « S'inscrire » et « Rejoindre la liste
   d'attente ». Sans script, le lien vers #fenetre-inscription l'affiche dans
   la page (:target), et une erreur renvoyée par Skoole (#inscription-erreur)
   aussi. */

.bande-inscription {
  background: var(--papier-2);
}

.inscription-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

@media (min-width: 900px) {
  .inscription-grille {
    align-items: center;
  }
  .inscription-actions {
    justify-items: end;
  }
}

.bouton.grand {
  min-height: 60px;
  padding: 16px 40px;
  font-size: 1.15rem;
}

.fenetre-inscription {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  padding: 20px 18px 24px;
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  background: var(--feuille);
  color: var(--encre);
  box-shadow: 0 30px 60px -30px rgba(5, 18, 45, 0.55);
}

@media (min-width: 640px) {
  .fenetre-inscription {
    padding: 26px 28px 30px;
  }
}

.fenetre-inscription::backdrop {
  background: rgba(12, 14, 20, 0.6);
}

.fenetre-inscription:not([open]):target,
.fenetre-inscription:not([open]):has(:target) {
  display: block;
  position: static;
  margin: 32px auto;
}

.fenetre-tete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.fenetre-titre {
  font-family: var(--titre);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.fermer-fenetre {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--trait-fort);
  color: var(--encre);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}

.fermer-fenetre:hover {
  background: var(--papier-2);
}
