/* izynote · landing, livraison 12 : « la copie double ».
 *
 * Toute la page est une copie à grands carreaux (réglure Seyès dessinée en CSS) :
 * lignes fines toutes les 8 px, lignes fortes et verticales toutes les 32 px, marge à
 * gauche. Les titres et les textes se posent sur les lignes : chaque bloc commence sur
 * la grille et un décalage (top) amène la ligne de base sur un trait.
 * Une seule famille (Bricolage Grotesque, deux fichiers : titres condensés très gras,
 * texte de 400 à 700), une seule couleur d'accent : le bleu du logo. Le rouge ne sert
 * qu'au cercle au stylo du titre.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-titre.woff2") format("woff2");
  font-weight: 800;
  font-stretch: 75%;
  font-style: normal;
  font-display: swap;
  ascent-override: 93%;
  descent-override: 27%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-texte.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
  ascent-override: 93%;
  descent-override: 27%;
  line-gap-override: 0%;
}

/* Polices de repli calées sur la largeur de Bricolage : rien ne bouge quand elle arrive. */
@font-face {
  font-family: "Bricolage Repli";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Roboto");
  size-adjust: 97%;
  ascent-override: 96%;
  descent-override: 28%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Bricolage Repli Titre";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Roboto Bold");
  font-weight: 800;
  size-adjust: 62%;
  ascent-override: 150%;
  descent-override: 44%;
  line-gap-override: 0%;
}

:root {
  --paper: #fbfbfe;
  --ink: #16151d;
  --ink-2: #3f3d4c;
  --ink-3: #5d5a6a;
  --accent: #1d3fbf;
  --accent-deep: #152e8c;
  --accent-wash: #e7ebfb;
  --pen: #d42a3c; /* seulement le cercle du titre */
  --google: #131314;

  /* Réglure Seyès, en teintes du bleu du logo : lignes fines à 7,5 %, ligne forte à 16 %,
     verticale à 12 % (le carreau du fond de page), marge à 50 %. */
  --rule-margin: rgb(29 63 191 / 0.5);
  --sq: 32px;
  --margin-x: 24px;
  --pad-l: calc(var(--margin-x) + 12px);
  --pad-r: 16px;

  --text: "Bricolage Grotesque", "Bricolage Repli", system-ui, sans-serif;
  --title: "Bricolage Grotesque", "Bricolage Repli Titre", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  scrollbar-color: rgb(29 63 191 / 0.35) transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  font-family: var(--text);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  caret-color: var(--accent);
  background-color: var(--paper);
  /* Un carreau de 32 px dessiné une fois (ligne forte, trois lignes fines, verticale),
     répété : moins coûteux à peindre que trois dégradés sur toute la page. */
  background-image:
    linear-gradient(90deg, transparent calc(var(--margin-x) - 1px), var(--rule-margin) calc(var(--margin-x) - 1px), var(--rule-margin) calc(var(--margin-x) + 1px), transparent calc(var(--margin-x) + 1px)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg fill='%231d3fbf'%3E%3Crect width='32' height='1' fill-opacity='.16'/%3E%3Crect y='8' width='32' height='1' fill-opacity='.075'/%3E%3Crect y='16' width='32' height='1' fill-opacity='.075'/%3E%3Crect y='24' width='32' height='1' fill-opacity='.075'/%3E%3Crect width='1' height='32' fill-opacity='.12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, var(--sq) var(--sq);
  background-position: 0 0, var(--margin-x) 0;
  background-repeat: no-repeat, repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgb(29 63 191 / 0.2);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip {
  position: absolute;
  left: var(--pad-l);
  top: 8px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

/* En-tête de la copie --------------------------------------------------------------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--pad-r) 0 var(--pad-l);
}

.brand {
  display: block;
  border-radius: 4px;
}

.brand__logo {
  display: block;
  width: auto;
  height: 26px;
}

.head-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.head-link:hover {
  text-decoration: underline;
}

/* Premier écran ------------------------------------------------------------------------- */

.hero {
  padding: 32px var(--pad-r) 0 var(--pad-l);
}

/* Titre : 4 lignes de 64 px, chaque ligne de base sur une ligne forte (toutes les 32 px).
   Ligne de base dans la boîte = 64/2 + 0,33 × 68 = 54,44 px ; décalage 9,56 px → 64. */
.hero__title {
  position: relative;
  top: 9.56px;
  margin: 0;
  font-family: var(--title);
  font-size: 68px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 64px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero__line,
.hero__seg {
  display: block;
  white-space: nowrap;
}

.pen {
  position: relative;
  display: inline-block;
}

.pen svg {
  position: absolute;
  left: -7%;
  top: -12%;
  width: 121%;
  height: 128%;
  overflow: visible;
  pointer-events: none;
}

/* Le cercle s'étire avec le mot : son trait s'épaissit sur les côtés, comme un vrai stylo. */
.pen path {
  fill: none;
  stroke: var(--pen);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
  animation: pen-draw 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.25s both;
}

@keyframes pen-draw {
  from {
    stroke-dashoffset: 1.002;
  }
}

/* Le seul mot surligné du haut de page : un coup de fluo qui passe après le cercle. */
.fluo {
  margin: 0 -0.08em;
  padding: 0 0.08em;
  border-radius: 0.18em 0.32em 0.28em 0.22em;
  background-color: transparent;
  background-image: linear-gradient(100deg, rgb(255 228 92 / 0.35), #ffe45c 7%, #ffe45c 93%, rgb(255 228 92 / 0.5));
  background-repeat: no-repeat;
  background-position: 0 70%;
  background-size: 100% 64%;
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: fluo-swipe 0.45s cubic-bezier(0.65, 0, 0.35, 1) 1.05s both;
}

@keyframes fluo-swipe {
  from {
    background-size: 0% 64%;
  }
}

/* Sous-titre : lignes de 32 px, une ligne de texte par carreau, comme on écrit sur une copie.
   Ligne de base = 16 + 0,33 × 18 = 21,94 px ; décalage 10,06 px → 32. */
.hero__lead {
  position: relative;
  top: 10.06px;
  max-width: 34ch;
  margin: 32px 0 0;
  font-size: 18px;
  font-weight: 450;
  line-height: 32px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__cta {
  margin-top: 32px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  height: 56px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--google);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(19 19 20 / 0.2), 0 12px 24px -12px rgb(19 19 20 / 0.55);
  transition: transform 0.15s var(--ease-out), background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-google svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn-google:hover {
  background: #2b2b2f;
}

.btn-google:active {
  transform: scale(0.98);
}

/* Note : 14/24, ligne de base = 12 + 4,62 = 16,62 px ; décalage 7,38 px → 24. */
.hero__note {
  position: relative;
  top: 7.38px;
  max-width: 400px;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-3);
}

/* Le bureau : une flashcard et un téléphone posés sur la copie, en 3D légère ------------ */

.desk {
  position: relative;
  height: 608px;
  margin-top: 40px;
  perspective: 1600px;
  perspective-origin: 50% 30%;
}

.phone {
  position: absolute;
  top: 84px;
  left: 2px;
  width: 248px;
  height: 520px;
  margin: 0;
  padding: 9px;
  border-radius: 42px;
  background: #1a1922;
  box-shadow:
    inset 0 0 0 1.5px #3a3946,
    0 2px 4px rgb(22 21 29 / 0.1),
    22px 34px 54px -20px rgb(22 21 29 / 0.5);
  transform: rotateX(10deg) rotateY(-14deg) rotateZ(-4deg);
  transform-origin: 50% 40%;
  animation: rise 0.95s var(--ease-out) 0.15s both;

  /* Écran de l'app : ses propres encres de correction */
  --ok: #18864b;
  --ok-wash: #e8f5ed;
  --ko: #d42a3c;
  --ko-wash: #fdeef0;
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 33px;
  background: #fff;
}

.phone__screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 74px;
  height: 22px;
  margin-left: -37px;
  border-radius: 11px;
  background: #1a1922;
}

.quiz {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 46px 14px 14px;
}

.quiz__course {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-3);
}

.quiz__tag {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.quiz__progress {
  margin-top: 14px;
}

.quiz__count {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 14px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.quiz__bar {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #e8eaf4;
}

.quiz__fill {
  display: block;
  width: 33.34%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.5s var(--ease-out);
}

.quiz__body {
  flex: 1;
  min-height: 0;
}

.quiz__q {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
  color: var(--ink);
  text-wrap: pretty;
}

.quiz__options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.opt {
  display: grid;
  grid-template-columns: 16px 1fr 20px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1.5px solid #dfe2f0;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.12s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.opt:hover:not([aria-disabled="true"]) {
  border-color: rgb(29 63 191 / 0.45);
}

.opt:active:not([aria-disabled="true"]) {
  transform: scale(0.985);
}

.opt[aria-disabled="true"] {
  cursor: default;
}

/* La case de QCM : cochée, elle se remplit au stylo bleu, un peu de travers. */
.opt__box {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgb(22 21 29 / 0.7);
  border-radius: 3px;
}

.opt.is-chosen .opt__box::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 1.5px;
  background: var(--accent);
  transform: rotate(-4deg);
}

.opt__mark {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.opt__mark path {
  fill: none;
  stroke-width: 2.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  animation: pen-draw 0.45s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.opt__mark path + path {
  animation-delay: 0.18s;
}

.opt.is-right {
  border-color: var(--ok);
  background: var(--ok-wash);
}

.opt.is-right .opt__mark path {
  stroke: var(--ok);
}

.opt.is-wrong {
  border-color: var(--ko);
  background: var(--ko-wash);
}

.opt.is-wrong .opt__mark path {
  stroke: var(--ko);
}

.quiz__feedback {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink-2);
}

.quiz__feedback:empty {
  display: none;
}

.quiz__verdict {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
}

.quiz__verdict.is-right {
  color: var(--ok);
}

.quiz__verdict.is-wrong {
  color: var(--ko);
}

.quiz__source {
  margin: 0;
}

.quiz__source b {
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.quiz__next {
  flex: none;
  height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.quiz__next:active {
  transform: scale(0.98);
}

.quiz__next[hidden] {
  display: none;
}

.quiz__score {
  margin: 34px 0 0;
  text-align: center;
}

.quiz__score-num {
  display: block;
  font-family: var(--title);
  font-size: 64px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 64px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.quiz__score-text {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

/* La flashcard : une fiche bristol, ligne d'en-tête et lignes fines. */
.flashcard {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 196px;
  height: 132px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateZ(70px) rotateX(8deg) rotateY(12deg) rotateZ(7deg);
  transform-style: preserve-3d;
  animation: rise 0.95s var(--ease-out) 0.3s both;
  -webkit-tap-highlight-color: transparent;
}

.flashcard__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out);
}

.flashcard[aria-pressed="true"] .flashcard__inner {
  transform: rotateY(180deg);
}

.flashcard__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 14px 9px;
  border-radius: 10px;
  background-color: #fff;
  background-image:
    linear-gradient(transparent 29px, var(--accent) 29px, var(--accent) 30.5px, transparent 30.5px),
    repeating-linear-gradient(transparent 0 19px, rgb(29 63 191 / 0.13) 19px 20px);
  background-position: 0 0, 0 31px;
  background-size: 100% 100%, 100% calc(100% - 31px);
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgb(22 21 29 / 0.12), 12px 24px 34px -14px rgb(22 21 29 / 0.42);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flashcard__face--back {
  transform: rotateY(180deg);
}

.flashcard__label {
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  color: var(--accent);
}

.flashcard__text {
  margin-top: 13px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 20px;
  color: var(--ink);
  text-wrap: pretty;
}

.flashcard__hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-3);
}

.flashcard__hint svg {
  width: 13px;
  height: 13px;
  flex: none;
}

@keyframes rise {
  from {
    translate: 0 40px;
  }
}

/* Sections ------------------------------------------------------------------------------
   Chaque bloc commence sur la grille de 8 px et chaque hauteur en est un multiple
   (pas de bordures : des ombres), pour que le texte reste posé sur les lignes. */

.section {
  padding: 96px var(--pad-r) 0 var(--pad-l);
}

/* h2 40/48 : ligne de base = 24 + 13,2 = 37,2 px ; décalage 2,8 px → 40. */
.section__title {
  position: relative;
  top: 2.8px;
  max-width: 15em;
  margin: 0;
  font-family: var(--title);
  font-size: 40px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 48px;
  color: var(--ink);
  text-wrap: balance;
}

.section__lead {
  position: relative;
  top: 10.06px;
  max-width: 36em;
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 450;
  line-height: 32px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Comment ça marche */
.steps__list {
  display: grid;
  gap: 32px;
  max-width: 36rem;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

/* Le numéro est écrit dans la marge, au stylo bleu, sur la ligne du titre de l'étape. */
.step__num {
  position: absolute;
  top: -2.56px;
  right: calc(100% + var(--pad-l) - var(--margin-x) + 6px);
  font-family: var(--title);
  font-size: 32px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 32px;
  color: var(--accent);
}

/* h3 20/24 : ligne de base = 12 + 6,6 = 18,6 px ; décalage 5,4 px → 24. */
.step__title {
  position: relative;
  top: 5.4px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ink);
}

/* Texte 16/24 : ligne de base = 12 + 5,28 = 17,28 px ; décalage 6,72 px → 24. */
.step__text {
  position: relative;
  top: 6.72px;
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-2);
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.sources li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(22 21 29 / 0.12), 0 1px 2px rgb(22 21 29 / 0.06);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.sources svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}

/* Pendant le cours : un vrai téléphone, l'écran de l'app */
.live__consent {
  position: relative;
  top: 7.38px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-3);
}

.live__figure {
  margin: 40px 0 0;
}

.device {
  position: relative;
  width: 300px;
  height: 600px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 46px;
  background: #1a1922;
  box-shadow:
    inset 0 0 0 1.5px #3a3946,
    0 2px 4px rgb(22 21 29 / 0.1),
    0 34px 60px -24px rgb(22 21 29 / 0.5);
}

.device__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 44px 16px 16px;
  overflow: hidden;
  border-radius: 36px;
  background: #fff;
}

.device__screen::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  border-radius: 12px;
  background: #1a1922;
}

.device__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  box-shadow: 0 1px 0 #eceef6;
  font-size: 12px;
  line-height: 16px;
}

.device__course {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--ink-3);
}

.tag {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.device__rec {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.device__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: rec-pulse 1.6s ease-in-out infinite;
}

@keyframes rec-pulse {
  50% {
    opacity: 0.35;
  }
}

/* Vue statique (sans animation) : alignée en bas, la dernière phrase visible. Pendant la
   séquence, le texte s'écrit depuis le haut puis glisse quand l'écran est plein. */
.transcript {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding-top: 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}

.transcript__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
}

.js .device.is-armed .transcript {
  justify-content: flex-start;
  -webkit-mask-image: none;
  mask-image: none;
}

.js .device.is-armed .transcript.is-scrolled {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}

.js .device.is-armed .transcript__list {
  transition: transform 0.6s var(--ease-out);
}

.tr {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 6px;
}

.tr__time {
  padding-top: 2px;
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.tr p {
  margin: 0;
  font-size: 14.5px;
  line-height: 21px;
  color: var(--ink);
  transition: color 0.5s var(--ease-out);
}

.tr.is-past p {
  color: #55525f;
}

.tr__flag {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  color: var(--accent);
}

/* Ce que le prof a souligné : souligné au stylo bleu */
.tr mark {
  background: none;
  font-weight: 600;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
}

.qcard {
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--accent-wash);
}

.qcard__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  color: var(--accent);
}

.qcard__q {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: var(--ink);
}

.qcard__ask {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 16px;
  color: var(--ink-2);
}

.qcard__answer {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(29 63 191 / 0.18);
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s var(--ease-out);
}

.qcard__answer:active {
  transform: scale(0.99);
}

.qcard__text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  transition: filter 0.8s var(--ease-out), opacity 0.8s var(--ease-out);
}

.qcard__hint {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.qcard__source {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-3);
  transition: opacity 0.5s var(--ease-out) 0.3s;
}

/* Avec JavaScript, la réponse reste floutée jusqu'au toucher ; sans, elle est lisible. */
.js .qcard:not(.is-revealed) .qcard__text {
  filter: blur(6px);
  opacity: 0.5;
  user-select: none;
}

.js .qcard:not(.is-revealed) .qcard__hint {
  display: flex;
}

.js .qcard:not(.is-revealed) .qcard__source {
  opacity: 0;
  transition-delay: 0s;
}

.js .device.is-armed .tr:not(.is-in),
.js .device.is-armed .qcard:not(.is-in) {
  display: none;
}

.js .device.is-armed .tr.is-in {
  animation: tr-in 0.52s var(--ease-out) both;
}

.js .device.is-armed .qcard.is-in {
  animation: card-in 0.56s var(--ease-out) both;
}

.js .device.is-armed .tr--signal .tr__flag {
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.js .device.is-armed .tr--signal:not(.is-marked) mark {
  text-decoration-color: transparent;
}

.js .device.is-armed .tr--signal.is-marked .tr__flag {
  opacity: 1;
}

.js .device.is-armed .tr--signal.is-marked mark {
  animation: mark-draw 0.8s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.js .device.is-armed .qcard.is-in:not(.is-revealed) .qcard__hint {
  animation: hint-pulse 1.6s ease-in-out 0.7s infinite;
}

@keyframes mark-draw {
  from {
    text-decoration-color: transparent;
  }

  to {
    text-decoration-color: var(--accent);
  }
}

@keyframes tr-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes hint-pulse {
  50% {
    opacity: 0.5;
  }
}

.live__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: 300px;
  min-height: 48px;
  margin: 16px auto 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-3);
}

.live__replay {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(22 21 29 / 0.16);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}

/* Masqué mais présent : sa place est gardée, rien ne saute quand il apparaît. */
.live__replay[hidden] {
  display: inline-block !important;
  visibility: hidden;
}

/* Après le cours : une fiche bristol, la synthèse du même cours */
.after__figure {
  margin: 40px 0 0;
}

.after__caption {
  position: relative;
  top: 7.38px;
  max-width: 560px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-3);
}

.fiche {
  max-width: 560px;
  padding: 0 24px 24px;
  border-radius: 12px;
  background-color: #fff;
  background-image: repeating-linear-gradient(transparent 0 23px, rgb(29 63 191 / 0.11) 23px 24px);
  background-position: 0 56px;
  background-size: 100% calc(100% - 56px);
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgb(22 21 29 / 0.1), 0 24px 40px -24px rgb(22 21 29 / 0.35);
}

.fiche__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  column-gap: 12px;
  height: 56px;
  margin: 0 -24px;
  padding: 0 24px;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.fiche__title {
  margin: 0;
  font-family: var(--title);
  font-size: 22px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 24px;
  color: var(--ink);
}

.fiche__meta {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-3);
}

.fiche__stamp {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  margin: 0;
  padding: 2px 8px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  transform: rotate(-4deg);
}

.fiche__parts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fiche__part {
  padding-top: 24px;
}

/* 17/24 : ligne de base = 12 + 5,61 = 17,61 px ; décalage 6,39 px → 24. */
.fiche__h {
  position: relative;
  top: 6.39px;
  display: flex;
  height: 24px;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ink);
}

.fiche__n {
  font-family: var(--title);
  font-size: 22px;
  font-weight: 800;
  font-stretch: 75%;
  color: var(--accent);
}

.fiche__points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fiche__points li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
}

.fiche__points p {
  position: relative;
  top: 6.72px;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}

/* 12/24 : ligne de base = 12 + 3,96 = 15,96 px ; décalage 8,04 px → 24. */
.fiche__time {
  position: relative;
  top: 8.04px;
  font-size: 12px;
  line-height: 24px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.fiche__flag {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  color: var(--accent);
}

.fiche__u {
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.fluo--still {
  animation: none;
}

/* Premier cours : une seule carte, ce que l'étudiant voit en direct. */
.plan {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(22 21 29 / 0.1), 0 20px 36px -24px rgb(22 21 29 / 0.35);
}

/* 20 + lignes de 24 (écart 8) + 20 : la hauteur reste un multiple de 8. */
.plan--first {
  max-width: 36rem;
  margin-top: 32px;
  padding: 20px 24px;
}

.plan__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan__list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}

.plan__list svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--accent);
}

.plans .btn-google {
  margin-top: 32px;
}

/* Pays */
.country {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.country__opt {
  position: relative;
  display: block;
}

.country__opt input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.country__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px 0 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(22 21 29 / 0.14);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: box-shadow 0.15s, color 0.15s;
}

.country__opt:hover .country__chip {
  box-shadow: inset 0 0 0 1.5px rgb(29 63 191 / 0.5);
}

.country__opt input:checked + .country__chip {
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--accent);
}

.country__opt input:focus-visible + .country__chip {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.flag {
  width: 24px;
  height: 16px;
  flex: none;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgb(22 21 29 / 0.14);
}

/* Questions fréquentes : un filet d'encre ouvre la liste, des filets fins séparent. */
.faq__list {
  max-width: 44rem;
  margin-top: 32px;
  box-shadow: 0 -2px 0 var(--ink);
}

.faq__item {
  box-shadow: 0 1px 0 rgb(22 21 29 / 0.14);
}

/* 17/24 dans 56 px : ligne de base = 14,39 + 17,61 = 32. */
.faq__item summary {
  position: relative;
  display: block;
  padding: 14.39px 48px 17.61px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

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

.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  top: 27px;
  right: 10px;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transition: transform 0.25s var(--ease-out);
}

.faq__item summary::after {
  transform: rotate(90deg);
}

.faq__item[open] summary::after {
  transform: rotate(0deg);
}

.faq__item summary:hover {
  color: var(--accent);
}

/* Une marge basse s'échapperait du details : un retrait intérieur garde la grille. */
.faq__item p {
  position: relative;
  top: 6.72px;
  margin: 0;
  padding: 0 32px 24px 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-2);
}

/* Clôture : 52/56 en quatre lignes ; ligne de base = 28 + 17,16 = 45,16 px ; décalage 2,84 px → 48. */
.closing {
  padding-bottom: 24px;
}

.closing__title {
  position: relative;
  top: 2.84px;
  margin: 0;
  font-family: var(--title);
  font-size: 52px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 56px;
  color: var(--ink);
}

.closing .btn-google {
  margin-top: 32px;
}

/* Barre « Continuer avec Google » collante, sur téléphone */
.sticky-cta {
  display: none;
}

@media (max-width: 899.98px) {
  .js .sticky-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: block;
    padding: 10px var(--pad-r) calc(10px + env(safe-area-inset-bottom)) var(--pad-l);
    background: var(--paper);
    box-shadow: 0 -1px 0 rgb(29 63 191 / 0.16), 0 -16px 24px -16px rgb(22 21 29 / 0.18);
    visibility: hidden;
    transform: translateY(105%);
    transition: transform 0.24s var(--ease-out), visibility 0s linear 0.24s;
  }

  .js .sticky-cta.is-visible {
    visibility: visible;
    transform: none;
    transition: transform 0.32s var(--ease-out), visibility 0s;
  }

  .sticky-cta .btn-google {
    max-width: none;
    height: 48px;
  }

  html.has-sticky-cta {
    scroll-padding-bottom: 96px;
  }
}

/* Pages légales : le texte écrit sur la copie --------------------------------------------- */

.doc {
  max-width: calc(44rem + var(--pad-l) + var(--pad-r));
  padding: 32px var(--pad-r) 0 var(--pad-l);
}

/* 44/48 : ligne de base = 24 + 14,52 = 38,52 px ; décalage 1,48 px → 40. */
.doc h1 {
  position: relative;
  top: 1.48px;
  margin: 0;
  font-family: var(--title);
  font-size: 44px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 48px;
  color: var(--ink);
  text-wrap: balance;
}

.doc__updated {
  position: relative;
  top: 7.38px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-3);
}

.doc h2 {
  position: relative;
  top: 5.4px;
  margin: 40px 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--ink);
}

.doc p,
.doc li {
  position: relative;
  top: 6.72px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-2);
}

.doc p {
  margin: 0 0 16px;
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--accent);
}

.doc strong {
  color: var(--ink);
}

@media (min-width: 768px) {
  .doc {
    padding-top: 64px;
  }

  /* 56/64 : ligne de base = 32 + 18,48 = 50,48 px ; décalage 13,52 px → 64. */
  .doc h1 {
    top: 13.52px;
    font-size: 56px;
    line-height: 64px;
  }
}

/* Pied de page ------------------------------------------------------------------------- */

.site-foot {
  margin-top: 64px;
  padding: 24px var(--pad-r) 40px var(--pad-l);
  font-size: 13px;
  line-height: 24px;
  color: var(--ink-3);
}

.foot {
  max-width: 64ch;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.foot p {
  margin: 0 0 8px;
}

/* Petits téléphones (moins de 360 px) : titre 52/56, lignes de base sur les lignes fines.
   Ligne de base = 28 + 0,33 × 52 = 45,16 px ; décalage 2,84 px → 48. */
@media (max-width: 359.98px) {
  .hero {
    padding-top: 24px;
  }

  .hero__title {
    top: 2.84px;
    font-size: 52px;
    line-height: 56px;
  }

  /* 16/24 : ligne de base 17,28 px ; décalage 6,72 px → 24. */
  .hero__lead {
    top: 6.72px;
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
  }

  .hero__cta {
    margin-top: 16px;
  }

  .hero__note {
    top: 7.71px;
    font-size: 13px;
  }

  .desk {
    height: 576px;
  }

  .phone {
    left: -4px;
    width: 232px;
    height: 488px;
  }

  .flashcard {
    right: -6px;
    width: 180px;
    height: 128px;
  }
}

/* Téléphones peu hauts (iPhone SE…) : titre 60/56 pour garder le bouton visible.
   Ligne de base = 28 + 0,33 × 60 = 47,8 px ; décalage 0,2 px → 48. */
@media (min-width: 360px) and (max-width: 767.98px) and (max-height: 700px) {
  .hero {
    padding-top: 24px;
  }

  .hero__title {
    top: 0.2px;
    font-size: 60px;
    line-height: 56px;
  }

  /* 17/24 : ligne de base 17,61 px ; décalage 6,39 px → 24. */
  .hero__lead {
    top: 6.39px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 24px;
  }

  .hero__cta {
    margin-top: 24px;
  }
}

/* Tablettes : la marge s'écarte, le titre tient en deux lignes de 96 px.
   Ligne de base = 48 + 0,33 × 80 = 74,4 px ; décalage 21,6 px → 96. */
@media (min-width: 768px) {
  :root {
    --margin-x: 64px;
    --pad-l: calc(var(--margin-x) + 32px);
    --pad-r: 48px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__title {
    top: 21.6px;
    font-size: 80px;
    line-height: 96px;
  }

  .hero__seg {
    display: inline;
  }

  /* 20/32 : ligne de base 22,6 px ; décalage 9,4 px → 32. */
  .hero__lead {
    top: 9.4px;
    max-width: 30em;
    font-size: 20px;
  }

  .btn-google {
    width: auto;
    min-width: 320px;
  }

  .desk {
    width: 560px;
    height: 664px;
    margin: 56px auto 0;
  }

  .phone {
    left: 40px;
    width: 272px;
    height: 570px;
  }

  .flashcard {
    top: 40px;
    right: 24px;
    width: 220px;
    height: 148px;
  }
}

/* Ordinateur : le texte et le bouton à gauche, les objets posés à droite sur la copie.
   Titre 84/96 : ligne de base = 48 + 27,72 = 75,72 px ; décalage 20,28 px → 96. */
@media (min-width: 1280px) {
  :root {
    --margin-x: max(96px, calc(50vw - 600px));
    --pad-r: max(48px, calc(50vw - 640px));
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-rows: auto auto auto 1fr;
    column-gap: 40px;
  }

  .hero__copy {
    display: contents;
  }

  .hero__title {
    grid-row: 1;
    top: 20.28px;
    font-size: 84px;
  }

  .hero__lead {
    grid-row: 2;
  }

  .hero__cta {
    grid-row: 3;
  }

  .desk {
    grid-column: 2;
    grid-row: 1 / 5;
    width: auto;
    height: 664px;
    margin: -16px 0 0;
  }
}

/* Titre 96/96 : ligne de base = 48 + 31,68 = 79,68 px ; décalage 16,32 px → 96. */
@media (min-width: 1440px) {
  .hero__title {
    top: 16.32px;
    font-size: 96px;
  }
}

/* Sections, petits téléphones : h2 36/40 (ligne de base 31,88 → 32), texte 16/24. */
@media (max-width: 359.98px) {
  .section {
    padding-top: 80px;
  }

  .section__title {
    top: 0.12px;
    font-size: 36px;
    line-height: 40px;
  }

  .section__lead {
    top: 6.72px;
    font-size: 16px;
    line-height: 24px;
  }

  .device {
    width: 264px;
    height: 528px;
    border-radius: 42px;
  }

  .live__caption {
    max-width: 264px;
  }

  .fiche {
    margin-right: -4px;
    padding-inline: 16px;
  }

  .fiche__head {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  /* 44/48 : ligne de base = 24 + 14,52 = 38,52 px ; décalage 1,48 px → 40. */
  .closing__title {
    top: 1.48px;
    font-size: 44px;
    line-height: 48px;
  }
}

/* Sections, tablettes : h2 56/64 (ligne de base 50,48 → 64), chapeau 20/32. */
@media (min-width: 768px) {
  .section {
    padding-top: 128px;
  }

  .section__title {
    top: 13.52px;
    font-size: 56px;
    line-height: 64px;
  }

  .section__lead {
    top: 9.4px;
    font-size: 20px;
  }

  /* Numéro 40/48 : ligne de base 37,2 px, ramenée sur celle du titre de l'étape (24). */
  .step__num {
    top: -13.2px;
    font-size: 40px;
    line-height: 48px;
  }

  .plans .btn-google {
    width: auto;
    min-width: 320px;
  }

  /* 72/80 en deux lignes : ligne de base = 40 + 23,76 = 63,76 px ; décalage 0,24 px → 64. */
  .closing__title {
    top: 0.24px;
    font-size: 72px;
    line-height: 80px;
  }

  .closing .btn-google {
    width: auto;
    min-width: 320px;
  }
}

/* Sections, ordinateur : le texte à gauche, l'objet à droite ; h2 64/64 (53,12 → 64). */
@media (min-width: 1280px) {
  .section__title {
    top: 10.88px;
    font-size: 64px;
  }

  .live,
  .after {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 64px;
    align-items: start;
  }

  .live__figure,
  .after__figure {
    margin-top: 0;
  }

  .fiche,
  .after__caption {
    width: 560px;
  }

  .faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: 64px;
    align-items: start;
  }

  .faq__list {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Livraison 14 ------------------------------------------------------------------------- */

/* « Continuer avec mon e-mail » : un lien discret, centré sous le bouton Google. */
.email-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  min-height: 44px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.email-link:hover {
  color: var(--ink);
}

.plans .email-link,
.closing .email-link {
  margin-top: 8px;
}


/* Après le cours : un exercice corrigé et un examen blanc, sous la synthèse. */
.extras {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin-top: 24px;
}

@media (min-width: 560px) {
  .extras {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.extra {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 20px 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(22 21 29 / 0.1), 0 20px 36px -24px rgb(22 21 29 / 0.35);
}

.extra__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: var(--accent);
}

.extra__text {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
}

.extra__verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  color: var(--ink);
}

.extra__verdict svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.extra__fine {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-3);
}

.extra__grade {
  position: relative;
  justify-self: start;
  margin: 10px 0 6px 8px;
  padding: 4px 14px;
  font-family: var(--title);
  font-size: 40px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  color: var(--ink);
}

.extra__grade svg {
  position: absolute;
  left: -10%;
  top: -16%;
  width: 120%;
  height: 132%;
  overflow: visible;
  pointer-events: none;
}

.extra__grade path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Téléphone animé du haut de page : mobile seulement (l'ordinateur et la tablette gardent le
   bureau). 6 écrans de 3 s en boucle (18 s) ; chaque animation suit la même horloge de 18 s,
   décalée du début de son écran. Seulement l'opacité et le déplacement (calculés par la carte
   graphique, rien ne bloque la page). Sans animation (réduction des mouvements), le premier
   écran reste affiché, en entier. */
.hp {
  display: none;
}

@media (max-width: 767.98px) {
  .desk {
    display: none;
  }

  .hero {
    padding-top: 16px;
  }

  /* Titre 50/48 en quatre lignes : le téléphone tient sous lui, sans défiler.
     Ligne de base = 24 + 0,33 × 50 = 40,5 px ; décalage 7,5 px → 48. */
  .hero__title {
    top: 7.5px;
    font-size: 50px;
    line-height: 48px;
  }

  .hero__lead {
    margin-top: 24px;
  }

  .hero__cta {
    margin-top: 24px;
  }

  .hp {
    display: block;
    position: relative;
    width: 228px;
    height: 292px;
    margin: 28px auto 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 84%, transparent);
    mask-image: linear-gradient(#000 84%, transparent);
  }
}

@media (max-width: 359.98px) {
  .hero__title {
    top: 6.5px;
    font-size: 44px;
    line-height: 44px;
  }

  .hp {
    width: 212px;
    height: 284px;
  }
}

.hp__frame {
  height: 360px;
  padding: 8px;
  border-radius: 38px;
  background: #1a1922;
  box-shadow: inset 0 0 0 1.5px #3a3946, 0 18px 36px -18px rgb(22 21 29 / 0.5);

  /* Écran de l'app : ses propres encres de correction */
  --ok: #18864b;
  --ok-wash: #e8f5ed;
}

.hp__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 40px 14px 14px;
  border-radius: 30px;
  background: #fff;
}

.hp__screen::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 64px;
  height: 20px;
  margin-left: -32px;
  border-radius: 10px;
  background: #1a1922;
}

.hp__course {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  overflow: hidden;
  font-size: 11px;
  line-height: 14px;
  color: var(--ink-3);
  white-space: nowrap;
}

.hp__tag {
  flex: none;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.hp__stage {
  position: relative;
  height: 180px;
  margin-top: 12px;
}

.hp__s {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  opacity: 0;
  animation: hp-show 18s linear infinite both;
}

.hp__s--1 { opacity: 1; }
.hp__s--2 { animation-delay: 3s; }
.hp__s--3 { animation-delay: 6s; }
.hp__s--4 { animation-delay: 9s; }
.hp__s--5 { animation-delay: 12s; }
.hp__s--6 { animation-delay: 15s; justify-items: center; }

.hp__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  color: var(--accent);
}

.hp__s--6 .hp__label {
  justify-self: start;
}

.hp__rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d42a3c;
}

.hp__line {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink);
  animation: hp-in 18s linear infinite both;
}

.hp__line--1 { animation-delay: 0.2s; }
.hp__line--2 { animation-delay: 0.9s; }
.hp__line--3 { animation-delay: 1.7s; }

.hp__hl {
  padding: 0 2px;
  border-radius: 3px;
  background: #ffe45c;
  color: inherit;
}

.hp__q {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  color: var(--ink);
}

.hp__q--sm {
  font-size: 13px;
  line-height: 18px;
}

/* La réponse du prof, floutée (un flou dessiné une fois), puis lisible par-dessus. */
.hp__answer {
  position: relative;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-wash);
  font-size: 13px;
  line-height: 18px;
  color: var(--ink);
}

.hp__answer-blur {
  display: block;
  color: transparent;
  text-shadow: 0 0 7px rgb(22 21 29 / 0.6);
  animation: hp-blur-out 18s linear 4.6s infinite both;
}

.hp__answer-text {
  position: absolute;
  inset: 10px 12px;
  opacity: 0;
  animation: hp-blur-in 18s linear 4.6s infinite both;
}

.hp__card {
  position: relative;
  height: 118px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(29 63 191 / 0.25), 0 8px 18px -12px rgb(22 21 29 / 0.35);
}

.hp__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  color: var(--ink);
}

.hp__face--front {
  animation: hp-flip-out 18s linear 7.5s infinite both;
}

.hp__face--back {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  opacity: 0;
  animation: hp-flip-in 18s linear 7.5s infinite both;
}

.hp__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 10px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1.5px rgb(22 21 29 / 0.14);
  font-size: 12.5px;
  line-height: 16px;
  color: var(--ink);
}

/* Une seule réponse : des cases rondes, comme dans l'app. */
.hp__box {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
}

/* La bonne réponse se coche : un calque vert qui apparaît, la case qui se remplit. */
.hp__opt--right {
  position: relative;
}

.hp__opt--right::before,
.hp__opt--right .hp__box::after {
  content: "";
  position: absolute;
  opacity: 0;
  animation: hp-check 18s linear 10.2s infinite both;
}

.hp__opt--right::before {
  inset: 0;
  border-radius: 9px;
  background: var(--ok-wash);
  box-shadow: inset 0 0 0 2px var(--ok);
}

.hp__opt--right .hp__box {
  position: relative;
  z-index: 1;
}

.hp__opt--right .hp__box::after {
  inset: 3px;
  border-radius: 50%;
  background: var(--ok);
}

.hp__opt--right {
  isolation: isolate;
}

.hp__opt--right::before {
  z-index: -1;
}

.hp__verdict {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  color: var(--ok);
  animation: hp-late 18s linear 13.2s infinite both;
}

.hp__verdict svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp__miss {
  margin: 0;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--ink-2);
  animation: hp-late 18s linear 13.7s infinite both;
}

.hp__grade {
  position: relative;
  margin: 22px 0 6px;
  padding: 6px 18px;
  font-family: var(--title);
  font-size: 46px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  color: var(--ink);
}

.hp__grade svg {
  position: absolute;
  left: -12%;
  top: -18%;
  width: 124%;
  height: 136%;
  overflow: visible;
  opacity: 0;
  animation: hp-circle 18s linear 15.6s infinite both;
}

.hp__grade path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp__note {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

/* Hors de l'écran : tout s'arrête (assets/main.js). */
.hp.is-paused *,
.hp.is-paused *::before,
.hp.is-paused *::after {
  animation-play-state: paused;
}

@keyframes hp-show {
  0% { opacity: 0; transform: translateY(8px); }
  2.2%, 15.5% { opacity: 1; transform: none; }
  16.67%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes hp-in {
  0% { opacity: 0; transform: translateY(4px); }
  2%, 13% { opacity: 1; transform: none; }
  14.5%, 100% { opacity: 0; }
}

@keyframes hp-late {
  0% { opacity: 0; transform: translateY(4px); }
  2%, 9% { opacity: 1; transform: none; }
  10%, 100% { opacity: 0; }
}

@keyframes hp-blur-out {
  0% { opacity: 1; }
  3%, 7% { opacity: 0; }
  8%, 100% { opacity: 1; }
}

@keyframes hp-blur-in {
  0% { opacity: 0; }
  3%, 7% { opacity: 1; }
  8%, 100% { opacity: 0; }
}

@keyframes hp-flip-out {
  0% { opacity: 1; transform: none; }
  2%, 8.5% { opacity: 0; transform: scaleX(0.92); }
  9%, 100% { opacity: 1; transform: none; }
}

@keyframes hp-flip-in {
  0% { opacity: 0; transform: scaleX(0.92); }
  2%, 8.5% { opacity: 1; transform: none; }
  9%, 100% { opacity: 0; transform: scaleX(0.92); }
}

@keyframes hp-check {
  0% { opacity: 0; }
  2%, 9.5% { opacity: 1; }
  10.5%, 100% { opacity: 0; }
}

@keyframes hp-circle {
  0% { opacity: 0; transform: scale(0.82) rotate(-6deg); }
  3%, 12% { opacity: 1; transform: none; }
  13%, 100% { opacity: 0; transform: scale(0.82) rotate(-6deg); }
}

/* Livraison 15 : avis d'étudiants, fiche du pays -------------------------------------------- */

/* Avis : sur téléphone, un ruban de cartes qui défile à l'horizontale et s'arrête sur chacune,
   le bord de la suivante visible ; sur ordinateur, des colonnes décalées, façon post-it.
   Jamais de défilement automatique. */
.reviews__track {
  display: flex;
  gap: 14px;
  margin: 24px calc(-1 * var(--pad-r)) 0 calc(-1 * var(--pad-l));
  padding: 18px var(--pad-r) 26px var(--pad-l);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad-l);
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

/* Le dernier espace à droite (le rembourrage d'un conteneur qui défile n'est pas toujours compté). */
.reviews__track::after {
  content: "";
  flex: 0 0 1px;
}

.reviews__track:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.review {
  flex: 0 0 84%;
  max-width: 340px;
  scroll-snap-align: start;
}

.review__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  margin: 0;
  padding: 26px 20px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(22 21 29 / 0.1), 0 18px 32px -22px rgb(22 21 29 / 0.4);
}

/* Un bout de ruban adhésif, comme une note collée sur la copie. */
.review__card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  border-radius: 2px;
  background: rgb(29 63 191 / 0.13);
  transform: rotate(-3deg);
}

.review--1 .review__card { transform: rotate(-0.8deg); }
.review--2 .review__card { transform: rotate(0.6deg); }
.review--3 .review__card { transform: rotate(-0.3deg); }
.review--2 .review__card::before { transform: rotate(4deg); }

.review__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review__tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.review__quote {
  margin: 0;
}

.review__hook {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  line-height: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

/* La partie la plus parlante, surlignée au marqueur (passée à l'apparition de la carte). */
.review__mark {
  margin: 0 -0.06em;
  padding: 0 0.06em;
  border-radius: 0.18em 0.32em 0.28em 0.22em;
  background-color: transparent;
  background-image: linear-gradient(100deg, rgb(255 228 92 / 0.35), #ffe45c 7%, #ffe45c 93%, rgb(255 228 92 / 0.5));
  background-repeat: no-repeat;
  background-position: 0 70%;
  background-size: 100% 64%;
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.review__text {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-2);
}

.review__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgb(29 63 191 / 0.22);
}

.review__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Initiales sur des teintes douces (palette des matières de l'app), jamais de photo. */
.review__avatar--0 { background: #e7ebfb; color: #1d3fbf; }
.review__avatar--1 { background: #f6e6e0; color: #8a3a21; }
.review__avatar--2 { background: #e5efe3; color: #3f5c3a; }
.review__avatar--3 { background: #f1e5f0; color: #63375f; }
.review__avatar--4 { background: #f6ecd6; color: #6f5010; }
.review__avatar--5 { background: #ddeeee; color: #1f5053; }
.review__avatar--6 { background: #e4e8ef; color: #3b4659; }
.review__avatar--7 { background: #f6e3e9; color: #84374f; }

.review__id {
  display: grid;
  min-width: 0;
}

.review__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: var(--ink);
}

.review__field {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-3);
}

.reviews__hint {
  display: none;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.js .reviews__hint {
  display: block;
}

.reviews .btn-google {
  margin-top: 28px;
}

.reviews .email-link {
  margin-top: 8px;
}

/* Apparition discrète, une fois, quand la section arrive à l'écran (assets/avis.js). */
.reviews.is-armed .review {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.reviews.is-in .review {
  opacity: 1;
  transform: none;
}

.reviews.is-in .review:nth-child(2) { transition-delay: 0.06s; }
.reviews.is-in .review:nth-child(3) { transition-delay: 0.12s; }
.reviews.is-in .review:nth-child(4) { transition-delay: 0.18s; }
.reviews.is-in .review:nth-child(5) { transition-delay: 0.24s; }
.reviews.is-in .review:nth-child(n + 6) { transition-delay: 0.3s; }

.reviews.is-armed .review__mark {
  background-size: 0% 64%;
  transition: background-size 0.45s cubic-bezier(0.65, 0, 0.35, 1) 0.45s;
}

.reviews.is-in .review__mark {
  background-size: 100% 64%;
}

@media (min-width: 600px) {
  .review {
    flex-basis: 360px;
  }
}

/* Ordinateur : plus de défilement, toutes les cartes à plat sur la copie, en colonnes décalées. */
@media (min-width: 900px) {
  .reviews__track {
    display: block;
    columns: 2;
    column-gap: 32px;
    margin: 40px 0 0;
    padding: 12px 6px 0;
    overflow: visible;
  }

  .reviews__track::after {
    display: none;
  }

  .review {
    max-width: none;
    margin-bottom: 32px;
    break-inside: avoid;
  }

  .review__card {
    height: auto;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  }

  .review--1 .review__card { transform: rotate(-1.2deg); }
  .review--2 .review__card { transform: rotate(1deg); }
  .review--3 .review__card { transform: rotate(-0.4deg); }

  .review__card:hover {
    box-shadow: 0 1px 2px rgb(22 21 29 / 0.1), 0 24px 40px -22px rgb(22 21 29 / 0.45);
    transform: rotate(0deg) translateY(-2px);
  }

  .js .reviews__hint {
    display: none;
  }

  .reviews .btn-google {
    margin-top: 8px;
  }
}

@media (min-width: 1280px) {
  .reviews__track {
    columns: 3;
  }
}

/* Pays : quatre drapeaux, et la fiche de ce qui s'adapte vraiment. */
.country-pick {
  max-width: 560px;
  margin-top: 28px;
}

.countries .country {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.countries .country__chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 72px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}

.countries .flag {
  width: 30px;
  height: 20px;
}

.country__name {
  max-width: 100%;
  white-space: nowrap;
}

/* Petits téléphones : « Luxembourg » tient en entier, sans être coupé. */
@media (max-width: 419.98px) {
  .countries .country {
    gap: 6px;
  }

  .countries .country__chip {
    padding: 0 2px;
    font-size: 12px;
    letter-spacing: -0.01em;
  }
}

/* Moins de 380 px : plus la place pour quatre noms à taille lisible. Deux drapeaux par ligne,
   le nom à côté, à la taille normale. */
@media (max-width: 379.98px) {
  .countries .country {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countries .country__chip {
    flex-direction: row;
    gap: 8px;
    height: 48px;
    font-size: 13px;
    letter-spacing: normal;
  }
}

.cpanels {
  margin-top: 16px;
}

.cpanel {
  display: none;
  position: relative;
  padding: 18px 20px 6px;
  border-radius: 12px;
  background-color: #fff;
  background-image: repeating-linear-gradient(transparent 0 23px, rgb(29 63 191 / 0.09) 23px 24px);
  background-position: 0 56px;
  box-shadow: 0 1px 2px rgb(22 21 29 / 0.1), 0 24px 40px -24px rgb(22 21 29 / 0.35);
  animation: cpanel-in 0.35s var(--ease-out) both;
}

/* La fiche du pays choisi : par le script, et sans lui grâce à :has(). */
.js .cpanels[data-shown="be"] .cpanel--be,
.js .cpanels[data-shown="fr"] .cpanel--fr,
.js .cpanels[data-shown="ch"] .cpanel--ch,
.js .cpanels[data-shown="lu"] .cpanel--lu {
  display: block;
}

html:not(.js) .country-pick:has(input[value="be"]:checked) .cpanel--be,
html:not(.js) .country-pick:has(input[value="fr"]:checked) .cpanel--fr,
html:not(.js) .country-pick:has(input[value="ch"]:checked) .cpanel--ch,
html:not(.js) .country-pick:has(input[value="lu"]:checked) .cpanel--lu {
  display: block;
}

@keyframes cpanel-in {
  from {
    opacity: 0;
    transform: translateY(10px) rotate(-0.6deg);
  }
}

.cpanel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-family: var(--title);
  font-size: 22px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 32px;
  color: var(--ink);
}

.cpanel__head .flag {
  width: 27px;
  height: 18px;
}

.cpanel__rows {
  margin: 0;
}

.cpanel__row {
  padding: 10px 0 12px;
  border-top: 1px dashed rgb(29 63 191 / 0.22);
}

.cpanel__row dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: var(--accent);
}

.cpanel__row dd {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}

.cpanel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.cpanel__chips li {
  padding: 3px 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px rgb(22 21 29 / 0.14);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

/* Le mot qui change, entouré au stylo bleu (le rouge reste au titre). */
.ring {
  position: relative;
  display: inline-block;
  margin: 0 0.18em;
  font-weight: 700;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

/* « Tes spécialités » (fiche de la France) : un peu d'air avant le mot entouré. */
.ring--gap {
  margin-left: 0.4em;
}

.ring svg {
  position: absolute;
  left: -8%;
  top: -16%;
  width: 116%;
  height: 132%;
  overflow: visible;
  pointer-events: none;
}

.ring path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  animation: pen-draw 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both;
}

.countries__note {
  position: relative;
  top: 7.38px;
  max-width: 560px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-3);
}

/* Ordinateur : le texte à gauche, les drapeaux et la fiche à droite, comme les sections voisines. */
@media (min-width: 1280px) {
  .countries {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 560px;
    grid-template-rows: auto auto 1fr;
    column-gap: 64px;
    align-items: start;
  }

  .countries .section__title {
    grid-column: 1;
    grid-row: 1;
  }

  .countries .section__lead {
    grid-column: 1;
    grid-row: 2;
  }

  .countries__note {
    grid-column: 1;
    grid-row: 3;
  }

  .country-pick {
    grid-column: 2;
    grid-row: 1 / 4;
    margin-top: 0;
  }
}

/* Livraison 19 : le tuteur IA ------------------------------------------------------------------- */

/* Une vraie question du cours d'exemple, puis la vraie réponse du tuteur sur une fiche posée sur la
   copie, avec les styles en boutons ronds comme dans l'app. Avec JavaScript, une seule réponse à la
   fois : les quatre sont empilées dans la même case, qui garde la hauteur de la plus longue (rien ne
   bouge autour quand le style change) ; chaque fiche, elle, s'arrête à la fin de son texte. */
.tdemo {
  max-width: 560px;
  margin: 40px 0 0;
}

.tdemo__course {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  line-height: 16px;
  color: var(--ink-3);
}

/* La question de l'élève : à droite, sur le bleu lavé, coin bas droit presque carré (comme dans l'app). */
.tdemo__q {
  width: fit-content;
  max-width: 88%;
  margin: 16px 0 0 auto;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  background: var(--accent-wash);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--ink);
  text-wrap: balance;
}

/* Quatre styles d'un mot sur une seule rangée dès 375 px (deux sur deux en dessous) : jamais un
   style seul sur sa rangée. */
.tdemo__styles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tdemo__style {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(29 63 191 / 0.28), 0 1px 2px rgb(22 21 29 / 0.06);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.12s var(--ease-out);
}

.tdemo__style:hover {
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 1px 2px rgb(22 21 29 / 0.06);
}

.tdemo__style:active {
  transform: scale(0.97);
}

.tdemo__style[aria-pressed="true"] {
  background: var(--accent);
  box-shadow: 0 6px 14px -8px rgb(29 63 191 / 0.7);
  color: #fff;
}

/* Sans JavaScript, les boutons ne servent à rien : seules les réponses, l'une sous l'autre. */
html:not(.js) .tdemo__styles {
  display: none;
}

.tdemo__answers {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.js .tdemo__answers {
  grid-template-areas: "a";
  gap: 0;
}

.js .tdemo__a {
  grid-area: a;
  align-self: start;
  visibility: hidden;
  opacity: 0;
}

.js .tdemo__a.is-shown {
  visibility: visible;
  opacity: 1;
  animation: tdemo-in 0.45s var(--ease-out) both;
}

/* La fiche bristol : ligne d'en-tête bleue de 2 px (le style), puis des lignes fines tous les 32 px. */
.tdemo__a {
  padding: 0 20px 24px;
  border-radius: 12px;
  background-color: #fff;
  background-image: repeating-linear-gradient(transparent 0 31px, rgb(29 63 191 / 0.11) 31px 32px);
  background-position: 0 48px;
  background-size: 100% calc(100% - 48px);
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgb(22 21 29 / 0.1), 0 24px 40px -24px rgb(22 21 29 / 0.35);
}

.tdemo__label {
  display: flex;
  align-items: center;
  height: 48px;
  margin: 0 -20px;
  padding: 0 20px;
  box-shadow: inset 0 -2px 0 var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--accent);
}

/* Texte 20/32 posé sur les lignes de la fiche : ligne de base = 16 + 6,6 = 22,6 px ; la ligne fine
   est à 31 px du haut de chaque ligne de texte → décalage 8,4 px. */
.tdemo__text {
  position: relative;
  top: 8.4px;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  color: var(--ink);
}

.tdemo__text--verse {
  white-space: pre-line;
}

/* « L'effet de test », souligné au stylo bleu dans chaque style : le même contenu, un autre ton. */
.tdemo__key {
  position: relative;
  font-weight: 700;
  white-space: nowrap;
}

.tdemo__key svg {
  position: absolute;
  left: -2%;
  bottom: -7px;
  width: 104%;
  height: 10px;
  overflow: visible;
}

.tdemo__key path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.js .tdemo__a.is-shown .tdemo__key path {
  animation: tdemo-pen 0.7s var(--ease-out) 0.35s both;
}

.tdemo__cut {
  font-weight: 400;
  color: var(--ink-3);
}

.tdemo__caption {
  position: relative;
  top: 7.38px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-3);
}

@keyframes tdemo-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes tdemo-pen {
  from {
    stroke-dashoffset: 1;
  }
}

@media (max-width: 374.98px) {
  .tdemo__styles {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Petits téléphones : texte 18/32 (ligne de base 21,94 px → décalage 9,06 px). */
@media (max-width: 359.98px) {
  .tdemo__q {
    font-size: 18px;
    line-height: 26px;
  }

  .tdemo__a {
    padding-inline: 16px;
  }

  .tdemo__label {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .tdemo__text {
    top: 9.06px;
    font-size: 18px;
  }
}

/* Ordinateur : le texte à gauche, la démonstration à droite, comme les autres sections. */
@media (min-width: 1280px) {
  .tutor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    column-gap: 64px;
    align-items: start;
  }

  .tutor__figure {
    margin-top: 0;
  }

  .tdemo__style {
    padding: 0 18px;
  }
}
