/* ==========================================================================
   Kodo — la vitrine

   Direction : du papier, de l'encre, un seul bleu. L'esprit des sites de
   Lusion (un objet vivant, beaucoup de retenue autour, de l'humour), traduit
   dans l'identité de l'app : plate, papier, sans halo ni néon.

   Trois voix typographiques, pas une de plus :
     - Plus Jakarta Sans, la voix de l'app, pour tout ce qui se lit ;
     - Instrument Serif en italique, pour le mot qui compte dans un titre ;
     - JetBrains Mono, pour les étiquettes et le code.
   ========================================================================== */

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
}

:root {
  --papier: #f4efe6;
  --papier-2: #ece5d8;
  --papier-3: #e2d8c6;
  --encre: #15171e;
  --encre-2: #50566a;
  --encre-3: #8b8f9a;
  --bleu: #2f6fc4;
  --bleu-clair: #4c9aff;
  --ligne: rgba(21, 23, 30, 0.13);

  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --marge: clamp(20px, 5vw, 72px);
  --ressort: cubic-bezier(0.2, 0.9, 0.25, 1.15);
  --doux: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--bleu);
  color: var(--papier);
}

a {
  color: inherit;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------------ grain */

/*
 * Le grain du papier, sur toute la page. Un bruit SVG en data URI : aucune
 * image à charger. `multiply` le fait foncer le papier, jamais l'éclaircir.
 */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}

@keyframes grain {
  25% {
    transform: translate(-3%, 2%);
  }
  50% {
    transform: translate(2%, -3%);
  }
  75% {
    transform: translate(-1%, -2%);
  }
}

/* ------------------------------------------------------------------ curseur */

.curseur-point,
.curseur-anneau {
  display: none;
}

.curseur-perso,
.curseur-perso * {
  cursor: none !important;
}

.curseur-perso .curseur-point,
.curseur-perso .curseur-anneau {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  pointer-events: none;
}

.curseur-point {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--encre);
}

.curseur-anneau {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
}

.curseur-anneau::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--encre);
  transition:
    transform 0.35s var(--doux),
    background 0.25s,
    border-color 0.25s;
}

.curseur-actif .curseur-anneau::before {
  transform: scale(1.7);
  border-color: var(--bleu);
}

.curseur-texte .curseur-anneau::before {
  transform: scale(2.3);
  background: var(--bleu);
  border-color: var(--bleu);
}

.curseur-etiquette {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--papier);
  opacity: 0;
  transition: opacity 0.2s;
}

.curseur-texte .curseur-etiquette {
  opacity: 1;
}

.curseur-dehors .curseur-point,
.curseur-dehors .curseur-anneau {
  opacity: 0;
}

/* ------------------------------------------------------------------ barre */

.barre {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px var(--marge);
  pointer-events: none;
  transition:
    background 0.35s,
    color 0.35s,
    padding 0.35s var(--doux),
    border-color 0.35s;
  border-bottom: 1px solid transparent;
}

/* dès qu'on descend, la barre prend un fond : le texte ne passe plus dessous */
.barre.remplie {
  padding-block: 12px;
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--ligne);
  pointer-events: auto;
}

/* au-dessus de la section sombre, elle s'inverse */
.barre.sombre {
  background: rgba(21, 23, 30, 0.82);
  color: var(--papier);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.barre.sombre nav {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.barre.sombre nav a:hover {
  background: var(--papier);
  color: var(--encre);
}

.barre.sombre .pastille-sortie {
  color: #b9bdc8;
}

.barre > * {
  pointer-events: auto;
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.marque img {
  border-radius: 10px;
}

.barre nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  padding: 5px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--ligne);
}

.barre nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.barre nav a:hover {
  background: var(--encre);
  color: var(--papier);
}

.pastille-sortie {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--encre-2);
}

.pastille-sortie i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bleu);
  animation: pouls 1.8s ease-in-out infinite;
}

@keyframes pouls {
  50% {
    transform: scale(0.55);
    opacity: 0.5;
  }
}

/* ------------------------------------------------------------------ héros */

.heros {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  padding: 120px var(--marge) 56px;
  overflow: hidden;
  isolation: isolate;
}

#encre {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  background: var(--papier);
}

.surtitre {
  margin: 0 0 22px;
  font: 600 12.5px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--encre-2);
}

h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3rem, 8.4vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

h1 em {
  font-size: 1.08em;
  letter-spacing: -0.02em;
  color: var(--bleu);
}

/* chaque ligne est une fenêtre : les mots montent dedans, un par un */
h1 .ligne {
  display: block;
  overflow: hidden;
  padding: 0.04em 0 0.08em;
}

h1 .mot {
  display: inline-block;
  transform: translateY(105%);
  animation: monte 1.1s var(--doux) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.085s);
}

@keyframes monte {
  to {
    transform: none;
  }
}

.heros-pied {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  margin-top: 40px;
  opacity: 0;
  animation: apparait 0.9s var(--doux) 0.9s forwards;
}

.heros-pied p {
  max-width: 400px;
  margin: 0;
  font-size: 17px;
  color: var(--encre-2);
}

@keyframes apparait {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Bit, en grand */
.bit-geant {
  justify-self: center;
  align-self: center;
  width: min(34vw, 440px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0;
  animation: bit-arrive 1.2s var(--ressort) 0.45s forwards;
  -webkit-tap-highlight-color: transparent;
}

@keyframes bit-arrive {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.85) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bit-geant svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bit-tete {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.bit-regard {
  transition: transform 0.08s linear;
}

.bit-yeux {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.07s;
}

.cligne .bit-yeux {
  transform: scaleY(0.1);
}

.yeux-joie,
.bras-joie,
.bouche-joie {
  display: none;
}

.content .yeux-ronds,
.content .bras-repos,
.content .bouche-repos {
  display: none;
}

.content .yeux-joie,
.content .bras-joie,
.content .bouche-joie {
  display: inline;
}

.bit-voyant {
  animation: voyant 2.4s ease-in-out infinite;
}

@keyframes voyant {
  50% {
    fill: #bcd8ff;
  }
}

.bit-bulle {
  position: absolute;
  right: calc(var(--marge) + min(8vw, 90px));
  top: 22%;
  max-width: 260px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  background: var(--encre);
  color: var(--papier);
  font: 600 15px/1.35 var(--mono);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transform-origin: 0 100%;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.3s var(--ressort);
}

.bit-bulle.visible {
  opacity: 1;
  transform: none;
}

.heros-indice {
  position: absolute;
  right: var(--marge);
  bottom: 30px;
  margin: 0;
  font: 500 12px/1.4 var(--mono);
  color: var(--encre-3);
  text-align: right;
  opacity: 0;
  animation: apparait 0.9s var(--doux) 1.6s forwards;
}

.heros-indice span {
  color: var(--encre);
}

/* ------------------------------------------------------------------ badge Google Play */

.badge-play {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding: 11px 22px 11px 16px;
  border-radius: 14px;
  background: var(--encre);
  color: #fff;
  transition: transform 0.35s var(--ressort);
  will-change: transform;
}

.badge-play svg {
  width: 30px;
  height: 30px;
}

.badge-play .mots {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.badge-play .petit {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge-play .gros {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------------ bandeau */

.bandeau {
  overflow: hidden;
  border-block: 1px solid var(--ligne);
  background: var(--papier);
  padding: 26px 0;
}

.bandeau-piste {
  display: flex;
  width: max-content;
  animation: defile 32s linear infinite;
}

.bandeau:hover .bandeau-piste {
  animation-play-state: paused;
}

.bandeau ul {
  display: flex;
  gap: 72px;
  margin: 0;
  padding: 0 36px;
  list-style: none;
}

.bandeau li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.bandeau li svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

@keyframes defile {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------------ sections */

section {
  position: relative;
  padding: clamp(90px, 13vw, 170px) var(--marge);
}

.numero {
  margin: 0 0 28px;
  font: 600 12.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bleu);
}

.grand {
  max-width: 1100px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.grand em {
  color: var(--bleu);
}

/* les apparitions : invisibles tant que le script ne les a pas vues passer */
.js [data-apparait] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--doux),
    transform 1.1s var(--doux);
  transition-delay: calc(var(--i, 0) * 0.07s);
}

.js [data-apparait].vu {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ méthode */

.atouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(56px, 8vw, 110px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--encre);
}

.atouts li {
  position: relative;
  padding: 30px 30px 42px 0;
  border-bottom: 1px solid var(--ligne);
  isolation: isolate;
}

.atouts li:not(:nth-child(3n + 1)) {
  padding-left: 30px;
  border-left: 1px solid var(--ligne);
}

/*
 * Au survol, l'encre monte dans la case, du bas vers le haut : un aplat qui
 * se remplit, pas une lueur qui s'allume.
 */
.atouts li::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--encre);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.6s var(--doux);
}

.atouts li:hover::before {
  clip-path: inset(0 0 0 0);
}

.atouts li:hover {
  color: var(--papier);
}

.atouts li:hover p {
  color: #c9ccd4;
}

.atouts li:hover .atout-num {
  color: var(--bleu-clair);
}

.atouts li:nth-child(3n + 1)::before {
  left: -14px;
}

.atout-num {
  display: block;
  margin-bottom: 44px;
  font: 600 13px/1 var(--mono);
  color: var(--encre-3);
  transition: color 0.3s;
}

.atouts h3 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.atouts p {
  margin: 0;
  max-width: 330px;
  color: var(--encre-2);
  font-size: 16px;
  transition: color 0.3s;
}

/* ------------------------------------------------------------------ récit */

.recit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 110px);
  background: var(--encre);
  color: var(--papier);
}

.recit .numero {
  color: var(--bleu-clair);
}

.recit-etape {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.22;
  transition: opacity 0.5s var(--doux);
}

.recit-etape.actif {
  opacity: 1;
}

.recit-etape h3 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.recit-etape h3 em {
  color: var(--bleu-clair);
}

.recit-etape p {
  max-width: 420px;
  margin: 0;
  font-size: 18px;
  color: #b9bdc8;
}

.recit-textes {
  /* de la marge sous la dernière étape : le téléphone reste épinglé pendant qu'elle passe */
  padding-bottom: 12vh;
}

.etape-capture {
  display: none;
}

.recit-telephone {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  /* centré dans ce qui reste sous la barre du haut */
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

/*
 * La hauteur du téléphone suit celle de l'écran : bornée par la largeur seule,
 * il dépassait sur un écran peu haut et sa partie haute passait sous la barre.
 */
.telephone {
  /* 65vw = 30vw de large une fois les proportions appliquées */
  height: min(80vh - 60px, 720px, 65vw);
  width: auto;
  aspect-ratio: 780 / 1688;
  padding: 11px;
  border-radius: 46px;
  background: #0a0c11;
  box-shadow:
    0 0 0 1.5px #2a2e39,
    0 40px 80px -30px rgba(0, 0, 0, 0.6);
  rotate: -3deg;
}

.telephone-ecran {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
}

.telephone-ecran img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.6s var(--doux),
    transform 0.9s var(--doux);
}

.telephone-ecran img.actif {
  opacity: 1;
  transform: none;
}

.telephone-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telephone-points i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #3b4050;
  transition:
    height 0.4s var(--doux),
    background 0.3s;
}

.telephone-points i.actif {
  height: 28px;
  background: var(--bleu-clair);
}

/* ------------------------------------------------------------------ essai */

.essai-rangee {
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 100px);
  margin-top: clamp(50px, 7vw, 90px);
}

.essai-bit {
  justify-self: center;
  width: min(24vw, 320px);
  aspect-ratio: 1;
}

.essai-bit svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.essai-carte {
  position: relative;
  border-radius: 20px;
  background: var(--encre);
  color: #e8eaf0;
  padding: 44px 30px 30px;
  box-shadow: 0 30px 60px -40px rgba(21, 23, 30, 0.7);
}

.essai-onglet {
  position: absolute;
  top: 14px;
  left: 30px;
  font: 600 12px/1 var(--mono);
  color: #7e8494;
}

.essai-carte pre {
  margin: 0;
  font: 500 clamp(18px, 2.4vw, 25px) / 1.6 var(--mono);
  white-space: pre-wrap;
}

.fct {
  color: #7fb4ff;
}

.cha {
  color: #f0c46a;
}

.var {
  color: #e8eaf0;
}

.nb {
  color: #ff9d7a;
}

.essai-question {
  margin: 34px 0 14px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.essai-choix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.essai-choix button {
  padding: 16px 10px;
  border: 1.5px solid var(--encre);
  border-bottom-width: 4px;
  border-radius: 14px;
  background: var(--papier);
  font: 600 17px/1 var(--mono);
  color: var(--encre);
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    opacity 0.3s;
}

.essai-choix button:hover {
  background: var(--papier-2);
}

.essai-choix button:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.repondu .essai-choix button {
  pointer-events: none;
  opacity: 0.4;
}

.repondu .essai-choix button.bonne {
  opacity: 1;
  background: var(--bleu);
  border-color: #1f4f93;
  color: #fff;
}

.faux .essai-choix button.choisi {
  opacity: 1;
  text-decoration: line-through;
}

/* dérouler sans connaître la hauteur : l'unique ligne de grille passe de 0fr à 1fr */
.essai-console {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 16px;
  border-radius: 16px;
  background: #0a0c11;
  color: #e8eaf0;
  font: 600 22px/1.4 var(--mono);
  transition: grid-template-rows 0.5s var(--doux);
}

.essai-console.ouverte {
  grid-template-rows: 1fr;
}

.essai-console-dedans {
  min-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: padding 0.5s var(--doux);
}

.essai-console.ouverte .essai-console-dedans {
  padding: 16px 22px 20px;
}

.essai-console-titre {
  display: block;
  margin-bottom: 8px;
  font: 600 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7e8494;
}

.essai-caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--bleu-clair);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.essai-verdict {
  min-height: 1.5em;
  margin: 16px 0 0;
  font-weight: 700;
  font-size: 18px;
}

.juste .essai-verdict {
  color: var(--bleu);
}

.essai-encore {
  display: none;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: 600 14px/1 var(--mono);
  color: var(--encre-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.repondu .essai-encore {
  display: inline-block;
}

.confetti {
  position: fixed;
  z-index: 65;
  width: 9px;
  height: 14px;
  border-radius: 1px;
  pointer-events: none;
}

/* ------------------------------------------------------------------ final */

.final {
  text-align: center;
  padding-block: clamp(120px, 16vw, 220px);
  border-top: 1px solid var(--ligne);
}

.final h2 {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.final h2 em {
  color: var(--bleu);
  font-size: 1.08em;
}

.final p {
  margin: 0 auto 38px;
  max-width: 460px;
  color: var(--encre-2);
}

/* ------------------------------------------------------------------ pied */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 34px var(--marge);
  border-top: 1px solid var(--encre);
  font-size: 14px;
  color: var(--encre-2);
}

footer .liens {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

footer a {
  text-decoration: none;
  font-weight: 600;
  color: var(--encre);
}

footer a:hover {
  color: var(--bleu);
}

.credits {
  margin: 0;
  padding: 0 var(--marge) 30px;
  font: 500 11px/1.5 var(--mono);
  color: var(--encre-3);
}

/* ------------------------------------------------------------------ petits écrans */

@media (max-width: 900px) {
  .barre nav {
    display: none;
  }

  .pastille-sortie {
    margin-left: auto;
  }

  .heros {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 96px;
  }

  .bit-geant {
    order: -1;
    width: min(46vw, 230px);
    justify-self: end;
    margin-bottom: 18px;
  }

  .bit-bulle {
    top: 88px;
    right: auto;
    left: var(--marge);
  }

  .heros-pied {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .heros-indice {
    display: none;
  }

  .atouts {
    grid-template-columns: 1fr;
  }

  .atouts li,
  .atouts li:not(:nth-child(3n + 1)) {
    padding: 26px 0 32px;
    border-left: 0;
  }

  .atout-num {
    margin-bottom: 20px;
  }

  /* le récit se déplie : chaque étape suivie de son écran */
  .recit {
    grid-template-columns: 1fr;
  }

  .recit-etape {
    min-height: 0;
    padding: 30px 0;
    opacity: 1;
  }

  .recit-textes {
    padding-bottom: 0;
  }

  .recit-telephone {
    display: none;
  }

  .etape-capture {
    display: block;
    width: min(260px, 68vw);
    margin: 28px 0 0;
    border-radius: 30px;
    border: 9px solid #0a0c11;
    box-shadow: 0 0 0 1.5px #2a2e39;
  }

  .essai-rangee {
    grid-template-columns: 1fr;
  }

  .essai-bit {
    display: none;
  }

  .essai-choix {
    grid-template-columns: 1fr 1fr;
  }
}

/*
 * Sans JavaScript (bloqué, désactivé, ou en échec), le téléphone montre au
 * moins son premier écran. Sans cette règle il restait blanc : c'est le script
 * qui pose la classe `actif`.
 */
html:not(.js) .telephone-ecran img:first-child {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ liste d'attente */

.vers-liste {
  align-self: center;
  font: 600 14px/1 var(--mono);
  color: var(--encre);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--bleu);
  white-space: nowrap;
}

.vers-liste:hover {
  color: var(--bleu);
}

.liste {
  width: min(560px, 100%);
  margin: 0 auto 44px;
  text-align: left;
}

.liste-titre {
  display: block;
  margin-bottom: 12px;
  font: 600 12.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bleu);
}

.liste-champ {
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1.5px solid var(--encre);
  border-radius: 18px;
  background: #fbf8f2;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.liste-champ:focus-within {
  border-color: var(--bleu);
  box-shadow: 0 0 0 4px rgba(47, 111, 196, 0.16);
}

.liste-champ input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  background: none;
  font: 500 18px/1.2 var(--sans);
  color: var(--encre);
  outline: none;
}

.liste-champ input::placeholder {
  color: var(--encre-3);
}

.liste-champ button {
  flex: none;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--encre);
  color: var(--papier);
  font: 700 16px/1 var(--sans);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}

.liste-champ button:hover {
  background: var(--bleu);
}

.liste-champ button:active {
  transform: scale(0.97);
}

.liste-champ button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* le piège à robots : hors de l'écran, pas `display: none` (certains robots l'ignorent) */
.liste-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.liste-promesse {
  margin: 12px 0 0 !important;
  font-size: 13.5px;
  color: var(--encre-2);
}

.liste-promesse a {
  color: var(--encre-2);
  text-underline-offset: 3px;
}

.liste-message {
  min-height: 1.4em;
  margin: 10px 0 0 !important;
  font-weight: 700;
  font-size: 16px;
}

.liste.envoyee .liste-message {
  color: var(--bleu);
}

.liste.erreur .liste-message {
  color: #b3261e;
}

/* une fois inscrit, le champ se referme : l'inscription est faite, on le dit */
.liste.envoyee .liste-champ {
  border-color: var(--bleu);
  background: rgba(47, 111, 196, 0.08);
}

.badge-discret {
  transform: scale(0.86);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .liste-champ {
    flex-direction: column;
  }

  .liste-champ button {
    padding: 15px;
  }

  .vers-liste {
    align-self: flex-start;
  }
}

.liste-champ input[type='email']:disabled {
  background: transparent;
  color: var(--bleu);
  -webkit-text-fill-color: var(--bleu);
  opacity: 1;
}

/* ------------------------------------------------------------------ les cours (accueil) */

.cours-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: clamp(46px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.cours-grille a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 24px 22px 26px;
  border: 1.5px solid var(--encre);
  border-radius: 22px;
  background: #fbf8f2;
  text-decoration: none;
  transition:
    transform 0.35s var(--ressort),
    background 0.25s,
    color 0.25s;
}

.cours-grille a:hover {
  transform: translateY(-6px) rotate(-1deg);
  background: var(--encre);
  color: var(--papier);
}

.cours-grille svg {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}

.cours-carte-nom {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.cours-carte-sous {
  font-size: 15px;
  color: var(--encre-2);
  transition: color 0.25s;
}

.cours-grille a:hover .cours-carte-sous {
  color: #b9bdc8;
}

.cours-carte-fleche {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 22px;
  transition: transform 0.3s var(--doux);
}

.cours-grille a:hover .cours-carte-fleche {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------ FAQ */

.faq {
  max-width: 880px;
  margin-top: clamp(40px, 6vw, 70px);
  border-top: 1px solid var(--encre);
}

.faq details {
  border-bottom: 1px solid var(--ligne);
}

.faq summary {
  position: relative;
  padding: 24px 50px 24px 0;
  list-style: none;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.01em;
  cursor: pointer;
}

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

/* un « + » qui devient « × » en tournant */
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  font: 400 30px/1 var(--mono);
  color: var(--bleu);
  transition: rotate 0.35s var(--ressort);
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq details p {
  max-width: 680px;
  margin: -6px 0 26px;
  color: var(--encre-2);
}

/* ------------------------------------------------------------------ pages de cours */

.page-cours main {
  padding-top: 70px;
}

.cours-tete {
  padding-bottom: clamp(40px, 6vw, 70px);
}

.cours-titre {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.cours-logo {
  width: clamp(64px, 9vw, 120px);
  height: clamp(64px, 9vw, 120px);
  flex: none;
}

.page-cours h1 {
  font-size: clamp(2.6rem, 6.4vw, 6.4rem);
  line-height: 0.95;
}

.page-cours h1 em {
  color: var(--bleu);
}

.cours-chapeau {
  max-width: 760px;
  margin: 34px 0 0;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--encre-2);
}

.cours-bloc {
  padding-block: clamp(50px, 7vw, 100px);
  border-top: 1px solid var(--ligne);
}

.cours-texte {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 18px;
  color: var(--encre-2);
}

.unites {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.unite {
  padding: 22px;
  border-radius: 20px;
  background: #fbf8f2;
  border: 1.5px solid var(--ligne);
}

.unite-num {
  font: 600 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bleu);
}

.unite h3 {
  margin: 10px 0 14px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.unite ul {
  margin: 0;
  padding-left: 18px;
  color: var(--encre-2);
  font-size: 15.5px;
}

.unite li + li {
  margin-top: 5px;
}

.ateliers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: atelier;
}

.ateliers li {
  counter-increment: atelier;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--encre);
  color: var(--papier);
  font-weight: 700;
}

.ateliers li::before {
  content: counter(atelier) ' · ';
  font-family: var(--mono);
  color: var(--bleu-clair);
}

.cours-deux {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
}

.cours-deux .grand {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.autres-cours {
  padding: 0 var(--marge) clamp(60px, 8vw, 100px);
}

.autres-cours ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.autres-cours a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1.5px solid var(--encre);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.autres-cours a:hover {
  background: var(--encre);
  color: var(--papier);
}

.autres-cours svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .cours-deux {
    grid-template-columns: 1fr;
  }

  .cours-titre {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------ langues */

.langues {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  background: rgba(244, 239, 230, 0.72);
  font: 700 11.5px/1 var(--mono);
  letter-spacing: 0.04em;
}

.langues a,
.langues span {
  padding: 6px 8px;
  border-radius: 999px;
  text-decoration: none;
}

.langues span {
  background: var(--encre);
  color: var(--papier);
}

.langues a {
  color: var(--encre-2);
}

.langues a:hover {
  color: var(--encre);
  background: var(--papier-2);
}

.barre.sombre .langues {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.barre.sombre .langues span {
  background: var(--papier);
  color: var(--encre);
}

.barre.sombre .langues a {
  color: #b9bdc8;
}

/* la suggestion : en bas, discrète, et elle ne revient pas une fois écartée */
.suggestion-langue {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: var(--encre);
  color: var(--papier);
  font-size: 14.5px;
  box-shadow: 0 18px 40px -18px rgba(21, 23, 30, 0.6);
  transform: translate(-50%, 140%);
  transition: transform 0.6s var(--ressort);
}

.suggestion-langue.visible {
  transform: translate(-50%, 0);
}

.suggestion-langue a {
  font-weight: 700;
  color: var(--bleu-clair);
  text-decoration: none;
  white-space: nowrap;
}

.suggestion-langue button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--papier);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .langues {
    margin-left: auto;
  }

  .pastille-sortie {
    display: none;
  }

  .suggestion-langue {
    border-radius: 18px;
    flex-wrap: wrap;
    row-gap: 6px;
  }
}
