/* TILT — le site. L'identité de l'application (app/src/lib/theme.ts) : noir profond, un seul jaune, des titres en
   capitales serrées (Anton), Barlow pour lire, JetBrains Mono pour les étiquettes, Caveat pour l'écriture du prof.
   Chaque matière garde sa teinte (ecole/matieres.json) ; l'ambre ne sert qu'à l'histoire. Inspiré du site de
   Dossier sensible, le jeu d'enquête : même charpente, une autre école. */

/* Les polices de l'app, servies par le site (www/outils/preparer.py) : aucune requête vers un tiers. */
@font-face {
  font-family: 'Anton';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../assets/polices/anton-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../assets/polices/barlow-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../assets/polices/barlow-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../assets/polices/barlow-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../assets/polices/barlow-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Caveat';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../assets/polices/caveat-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Caveat';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../assets/polices/caveat-700.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../assets/polices/jetbrains-mono-500.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../assets/polices/jetbrains-mono-700.woff2') format('woff2');
}

:root {
  --ink: #0a0a0a;
  --board: #121212;
  --panel: #151515;
  --panel2: #1e1e1e;
  --dim: #2a2a2a;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f0;
  --soft: #b5b5ac;
  --muted: #9a9a92;
  --faint: #6e6e66;
  --paper: #f0ebd8;
  --yellow: #ffd400;
  --yellow-deep: #e6bf00;
  --on-yellow: #0a0a0a;
  --red: #ff453a;
  --green: #3ddc84;
  --blue: #6fb8ff;
  --amber: #e6a85c;

  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --body: Barlow, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --hand: Caveat, 'Segoe Print', cursive;

  --gutter: clamp(18px, 4vw, 44px);
  --wrap: min(1180px, 100% - 2 * var(--gutter));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--yellow);
  color: var(--on-yellow);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}

[hidden] {
  display: none !important;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ───────────── Briques ───────────── */

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--on-yellow);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Le numéro de la leçon et son nom, comme un titre de chapitre dans l'app. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--yellow);
  font: 700 12px/1.2 var(--mono);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.kicker b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--yellow);
  letter-spacing: 0;
}

.kicker--plain {
  color: var(--yellow);
}

.btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 22px;
  border: 1px solid var(--yellow);
  border-radius: 16px;
  background: var(--yellow);
  color: var(--on-yellow);
  font: 700 17px/1.2 var(--body);
  text-decoration: none;
  transform: translate(var(--mx), var(--my));
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.2s,
    border-color 0.2s;
  will-change: transform;
}

.btn i {
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.btn i::before {
  content: '→';
}

.btn:hover {
  box-shadow: 0 12px 40px rgba(255, 212, 0, 0.3);
}

.btn:hover i {
  transform: translateX(5px);
}

.btn:active {
  transform: translate(var(--mx), var(--my)) scale(0.97);
}

.btn--small {
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 15px;
  white-space: nowrap;
}

.btn--big {
  padding: 22px 28px;
  font-size: 19px;
  border-radius: 18px;
}

.btn--ghost {
  background: rgba(10, 10, 10, 0.45);
  border-color: var(--line2);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: flex-start;
  gap: 10px;
}

.btn--ghost svg {
  width: 18px;
  height: 18px;
  fill: var(--yellow);
}

.btn--ghost i {
  margin-left: auto;
  color: var(--yellow);
}

.btn--ghost:hover {
  box-shadow: none;
  border-color: var(--yellow);
}

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #170c02;
}

.btn--amber:hover {
  box-shadow: 0 12px 40px rgba(230, 168, 92, 0.32);
}

.btn--lava {
  background: #ff6a3d;
  border-color: #ff6a3d;
  color: #1a0700;
}

.btn--lava:hover {
  box-shadow: 0 12px 40px rgba(255, 106, 61, 0.34);
}

.stamp {
  --tone: var(--yellow);
  display: inline-block;
  padding: 7px 12px;
  border: 2px solid var(--tone);
  border-radius: 6px;
  outline: 1px solid var(--tone);
  outline-offset: -5px;
  color: var(--tone);
  font: 700 12px/1 var(--mono);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  transform: rotate(-7deg);
}

.stamp--red {
  --tone: var(--red);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

.dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ───────────── L'enseigne : TILT, comme sur un flipper ───────────── */

.sign {
  display: flex;
  gap: 0.02em;
  font: 400 clamp(96px, 15vw, 220px) / 0.86 var(--display);
  color: var(--yellow);
  text-transform: uppercase;
  transform-origin: 50% 90%;
}

.sign b {
  display: inline-block;
  font-weight: 400;
  text-shadow:
    0 0 12px rgba(255, 212, 0, 0.55),
    0 0 42px rgba(255, 212, 0, 0.35),
    0 0 110px rgba(255, 170, 0, 0.25);
  animation: light-up 1.6s steps(1) both;
}

.sign b:nth-child(2) {
  animation-delay: 0.18s;
}

.sign b:nth-child(3) {
  animation-delay: 0.4s;
}

.sign b:nth-child(4) {
  animation-delay: 0.55s;
}

@keyframes light-up {
  0% {
    opacity: 0.08;
    text-shadow: none;
  }
  12% {
    opacity: 1;
  }
  18% {
    opacity: 0.15;
    text-shadow: none;
  }
  30% {
    opacity: 1;
  }
}

/* De loin en loin, la machine penche : l'enseigne s'emballe, une lettre saute (js/fx.js). */
.sign.is-tilt {
  animation: tilt 0.62s var(--ease);
}

.sign.is-tilt b {
  animation: flicker 0.62s steps(1);
}

.sign b.is-jump {
  animation: jump 0.9s var(--spring);
}

@keyframes tilt {
  0% {
    transform: none;
  }
  18% {
    transform: rotate(-4deg) translateX(-10px);
  }
  38% {
    transform: rotate(3deg) translateX(8px);
  }
  58% {
    transform: rotate(-1.5deg);
  }
  100% {
    transform: none;
  }
}

@keyframes flicker {
  0%,
  40%,
  70% {
    opacity: 1;
  }
  20%,
  55% {
    opacity: 0.25;
    text-shadow: none;
  }
}

@keyframes jump {
  0% {
    transform: none;
  }
  35% {
    transform: translateY(-0.16em) rotate(-8deg);
  }
  100% {
    transform: none;
  }
}

/* ───────────── Barre du haut ───────────── */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.bar.is-stuck {
  background: rgba(10, 10, 10, 0.74);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

.bar__brand {
  text-decoration: none;
}

.bar__logo {
  display: block;
  font: 400 34px/1 var(--display);
  color: var(--yellow);
  letter-spacing: 0.5px;
  transition: transform 0.4s var(--spring);
}

.bar__brand:hover .bar__logo {
  transform: rotate(-6deg) scale(1.06);
}

.bar__nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.bar__nav a {
  position: relative;
  padding: 8px 10px;
  color: var(--soft);
  font: 500 12px/1 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.bar__nav a::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.bar__nav a:hover,
.bar__nav a.is-here {
  color: var(--text);
}

.bar__nav a:hover::after,
.bar__nav a.is-here::after {
  transform: scaleX(1);
}

/* ───────────── Ouverture ───────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  padding: 120px var(--gutter) 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 45% at 25% 75%, rgba(255, 212, 0, 0.22), transparent 70%);
  mix-blend-mode: screen;
  animation: breathe 7s ease-in-out infinite alternate;
}

@keyframes breathe {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 0.9;
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.35) 55%, rgba(10, 10, 10, 0.5) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.65) 0%, rgba(10, 10, 10, 0) 26%, rgba(10, 10, 10, 0.5) 70%, var(--ink) 100%);
}

.hero__ref {
  position: absolute;
  top: 82px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 10px/1 var(--mono);
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.hero__ref span {
  white-space: nowrap;
}

.hero__ref span:first-child {
  color: var(--yellow);
}

.hero__ref [data-hero-lesson] {
  color: var(--text);
  transition: opacity 0.25s;
}

.hero__ref [data-hero-lesson].is-changing {
  opacity: 0;
}

.hero__ref i {
  flex: 1;
  height: 1px;
  background: var(--line2);
}

.hero__ref b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: blink 1.4s ease-in-out infinite alternate;
}

@keyframes blink {
  to {
    opacity: 0.2;
  }
}

.hero__body {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 860px;
}

.hero__title {
  display: grid;
  gap: 10px;
  font-weight: 400;
}

.hero__claim {
  display: block;
  max-width: 19ch;
  font: 400 clamp(32px, 4.3vw, 60px) / 0.98 var(--display);
  text-transform: uppercase;
  color: var(--text);
  animation: rise 1s 0.7s var(--ease) both;
}

.hero__lead {
  max-width: 560px;
  color: var(--soft);
  font-size: clamp(17px, 1.6vw, 20px);
  animation: rise 1s 0.9s var(--ease) both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  animation: rise 1s 1.05s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* L'appel entrant de Clara. */
.ring {
  position: absolute;
  right: var(--gutter);
  bottom: 120px;
  z-index: 2;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(410px, calc(100% - 2 * var(--gutter)));
  padding: 14px 14px 14px 14px;
  border: 1px solid var(--line2);
  border-radius: 26px;
  background: rgba(22, 22, 22, 0.66);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  animation:
    ring-in 0.9s 2.2s var(--spring) both,
    ring-shake 4.2s 3.4s ease-in-out infinite;
}

@keyframes ring-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }
}

@keyframes ring-shake {
  0%,
  12%,
  100% {
    transform: none;
  }
  2%,
  6%,
  10% {
    transform: rotate(-1.4deg);
  }
  4%,
  8% {
    transform: rotate(1.4deg);
  }
}

.ring__halo {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 64px;
  height: 64px;
  margin-top: -32px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.55);
  animation: halo 1.6s ease-out infinite;
}

@keyframes halo {
  to {
    box-shadow: 0 0 0 22px rgba(255, 212, 0, 0);
  }
}

.ring img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid var(--yellow);
}

.ring__state {
  color: var(--yellow);
  font: 700 10px/1.3 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ring__name {
  font: 700 18px/1.2 var(--body);
}

.ring__role {
  color: var(--muted);
  font-size: 14px;
}

.ring__keys {
  display: flex;
  gap: 10px;
}

.ring__key {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: transform 0.2s var(--spring);
}

.ring__key svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.ring__key--no {
  background: var(--red);
}

.ring__key--yes {
  background: var(--green);
  animation: nudge 1.2s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: scale(1.1);
  }
}

.ring__key:hover {
  transform: scale(1.12);
}

.ring.is-taken {
  animation: none;
  border-color: rgba(61, 220, 132, 0.5);
}

.ring.is-taken .ring__halo,
.ring.is-taken .ring__key--yes {
  animation: none;
}

.ring.is-taken .ring__state {
  color: var(--green);
}

.ring.is-refused {
  animation: refused 0.5s var(--ease) forwards;
}

@keyframes refused {
  to {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }
}

/* La bande des matières. */
.tape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  background: var(--yellow);
  color: var(--on-yellow);
  transform: rotate(-1.2deg) translateY(-26px);
  transform-origin: center;
}

.tape__run {
  display: flex;
  width: max-content;
  animation: tape 70s linear infinite;
}

.tape__run span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font: 700 12px/1 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tape__run span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--on-yellow));
  box-shadow: 0 0 0 2px var(--on-yellow);
}

.tape__run em {
  font: 700 19px/1 var(--hand);
  letter-spacing: 0;
  text-transform: none;
}

@keyframes tape {
  to {
    transform: translateX(-50%);
  }
}

/* ───────────── Chapitres ───────────── */

.chapter {
  position: relative;
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(90px, 13vw, 170px) 0 0;
}

.chapter__head {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.chapter h2 {
  font: 400 clamp(40px, 5.4vw, 74px) / 0.96 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.chapter__lead {
  max-width: 640px;
  color: var(--soft);
  font-size: clamp(17px, 1.5vw, 20px);
}

/* ───────────── 01 · La méthode ───────────── */

.methode__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

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

.step {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 12px;
  width: 100%;
  padding: 18px 18px 18px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  text-align: left;
  overflow: hidden;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.step::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: calc(var(--p) * 100%);
  background: var(--yellow);
  opacity: 0;
}

.step.is-on {
  background: var(--panel);
  border-color: var(--line2);
}

.step.is-on::after {
  opacity: 1;
}

.step__n {
  grid-row: span 2;
  color: var(--faint);
  font: 700 13px/1.6 var(--mono);
  transition: color 0.3s;
}

.step.is-on .step__n {
  color: var(--yellow);
}

.step__t {
  font: 700 21px/1.25 var(--body);
  color: var(--soft);
  transition: color 0.3s;
}

.step.is-on .step__t,
.step:hover .step__t {
  color: var(--text);
}

.step__d {
  overflow: hidden;
  max-height: 0;
  color: var(--soft);
  font-size: 16px;
  transition:
    max-height 0.45s var(--ease),
    margin 0.45s var(--ease);
}

.step.is-on .step__d {
  max-height: 160px;
  margin-top: 6px;
}

/* Le téléphone. */
.phone {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
}

.phone__glow {
  position: absolute;
  inset: 12% -18% 8%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 212, 0, 0.28), transparent 70%);
  filter: blur(30px);
  animation: breathe 6s ease-in-out infinite alternate;
}

.phone__body {
  position: relative;
  padding: 12px;
  border-radius: 54px;
  background: linear-gradient(145deg, #2c2c2e, #0d0d0d 45%, #1b1b1d);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 40px 90px rgba(0, 0, 0, 0.7);
}

.phone__island {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 5;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  border-radius: 20px;
  background: #000;
}

.phone__screen {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 43px;
  overflow: hidden;
  background: var(--ink);
}

.phone__status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 26px 0 32px;
  font: 700 14px/1 var(--body);
}

.phone__status svg {
  width: 62px;
  fill: currentColor;
  color: var(--text);
}

.phone__flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.phone__flash.go {
  animation: flash 0.45s ease-out;
}

@keyframes flash {
  from {
    opacity: 0.16;
  }
}

.phone__cap,
.phone__sound {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.phone__sound {
  margin-top: 6px;
  color: var(--faint);
}

.phone__sound.is-on {
  color: var(--yellow);
}

/* Un écran est dessiné à la taille d'un téléphone (390 × 844) puis mis à l'échelle du cadre (--k). */
.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s,
    visibility 0.4s;
}

.screen.is-on {
  opacity: 1;
  visibility: visible;
}

.fit {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 844px;
  transform: scale(var(--k, 0.86));
  transform-origin: 0 0;
  padding: 58px 20px 26px;
  overflow: hidden;
}

/* L'appel. */
.screen--call .fit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255, 212, 0, 0.2) 0%, rgba(255, 212, 0, 0.04) 34%, var(--ink) 62%);
}

.screen--call .fit > :not(.board) {
  flex: none;
}

.call__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.call__round {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line2);
  color: var(--text);
  font-size: 18px;
}

.call__status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--yellow);
  font: 700 13px/1 var(--mono);
  letter-spacing: 1px;
}

.call__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}

.screen--call.is-live .call__status i {
  background: var(--red);
}

.call__who {
  display: flex;
  align-items: center;
  gap: 14px;
}

.call__face,
.chat__face {
  position: relative;
  display: block;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  overflow: hidden;
}

.call__face img,
.chat__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.screen--call.is-speaking .call__face {
  box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.6);
  animation: halo 1.2s ease-out infinite;
}

.call__name {
  font: 400 26px/1.1 var(--display);
  text-transform: uppercase;
}

.call__sub {
  color: var(--muted);
  font-size: 15px;
}

.call__said {
  min-height: 72px;
  padding: 12px 15px;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  font: 500 16px/1.4 var(--body);
}

.call__said::before {
  content: '“ ';
  color: var(--yellow);
  font: 400 22px/1 var(--display);
}

.call__said:empty {
  visibility: hidden;
}

.call__heard {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.call__heard.is-live {
  color: var(--text);
}

.board {
  position: relative;
  flex: 1;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--board);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.board.is-up {
  opacity: 1;
  transform: none;
}

.board__kicker {
  color: var(--yellow);
  font: 700 10px/1 var(--mono);
  letter-spacing: 2px;
}

.board__title {
  margin-top: 4px;
  font: 700 17px/1.2 var(--body);
}

.board__fig {
  width: 170px;
  margin: 2px auto 0;
  overflow: visible;
}

.board__fig path {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.board__sq {
  stroke: #6fb8ff;
  fill: rgba(111, 184, 255, 0.12) !important;
  opacity: 0;
  transition: opacity 0.5s;
}

.board__sq--c {
  stroke: var(--yellow);
  fill: rgba(255, 212, 0, 0.16) !important;
}

.board__tri {
  stroke: var(--text);
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.2s var(--ease);
}

.board__angle {
  stroke: var(--text);
  stroke-width: 1.5 !important;
}

.board__fig text {
  fill: var(--text);
  font: 700 18px var(--hand);
  text-anchor: middle;
  opacity: 0;
  transition: opacity 0.5s;
}

.board.is-up .board__tri {
  stroke-dashoffset: 0;
}

.board.is-squares .board__sq,
.board.is-squares text {
  opacity: 1;
}

.board__line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font: 700 25px/1.15 var(--hand);
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.5s,
    transform 0.5s var(--ease);
}

.board__line i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--yellow);
  color: var(--yellow);
  font: 700 11px/1 var(--mono);
  font-style: normal;
}

.board__line u {
  text-decoration: none;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--on-yellow);
}

.board__line.is-on {
  opacity: 1;
  transform: none;
}

.call__wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 34px;
}

.call__wave i {
  width: 5px;
  height: 10%;
  border-radius: 3px;
  background: var(--faint);
  transition: height 0.08s;
}

.call__wave.is-live i {
  background: var(--yellow);
}

.call__keys {
  display: flex;
  justify-content: space-around;
  padding-top: 4px;
}

.call__keys span {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
}

.call__keys b {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line2);
  font-size: 22px;
  color: var(--text);
}

.call__hang b {
  width: 68px;
  height: 68px;
  background: var(--red);
  border-color: var(--red);
  transform: rotate(135deg);
}

/* Le moment où ça fait tilt : l'acquis. */
.acquired {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: radial-gradient(60% 40% at 50% 50%, rgba(255, 212, 0, 0.34), rgba(10, 10, 10, 0.92) 75%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.acquired.is-on {
  opacity: 1;
}

.acquired__tag {
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--green);
  color: #03140a;
  font: 700 12px/1 var(--mono);
  letter-spacing: 3px;
}

.acquired__sign {
  font: 400 110px/0.9 var(--display);
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(255, 212, 0, 0.6);
  transform: scale(0.6) rotate(-6deg);
  transition: transform 0.6s var(--spring);
}

.acquired.is-on .acquired__sign {
  transform: rotate(-6deg);
}

.acquired__what {
  font: 700 19px/1.2 var(--body);
}

.acquired__pts {
  color: var(--yellow);
  font: 700 15px/1 var(--mono);
}

/* Les messages. */
.screen--chat .fit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ink);
}

.chat__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.chat__top .chat__face {
  width: 50px;
  height: 50px;
}

.chat__name {
  font: 700 18px/1.2 var(--body);
}

.chat__sub {
  color: var(--green);
  font: 500 13px/1.3 var(--body);
}

.chat__thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 20px;
  font: 500 16px/1.35 var(--body);
}

.msg--them {
  align-self: flex-start;
  background: var(--panel2);
  border-bottom-left-radius: 6px;
}

.msg--me {
  align-self: flex-end;
  background: var(--yellow);
  color: var(--on-yellow);
  border-bottom-right-radius: 6px;
}

.relecture {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 82%;
  padding: 9px 12px;
  border: 1px dashed rgba(255, 212, 0, 0.5);
  border-radius: 14px;
  font: 500 14px/1.3 var(--body);
}

.relecture__tag {
  color: var(--yellow);
  font: 700 10px/1 var(--mono);
  letter-spacing: 2px;
}

.relecture s {
  color: var(--red);
}

.relecture ins {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.screen--chat .chat__thread > * {
  opacity: 0;
  transform: translateY(10px);
}

.screen--chat.is-on .chat__thread > * {
  animation: pop 0.45s var(--ease) forwards;
}

.screen--chat.is-on .chat__thread > :nth-child(1) {
  animation-delay: 0.3s;
}
.screen--chat.is-on .chat__thread > :nth-child(2) {
  animation-delay: 1.3s;
}
.screen--chat.is-on .chat__thread > :nth-child(3) {
  animation-delay: 2.1s;
}
.screen--chat.is-on .chat__thread > :nth-child(4) {
  animation-delay: 3.3s;
}
.screen--chat.is-on .chat__thread > :nth-child(5) {
  animation-delay: 4.6s;
}
.screen--chat.is-on .chat__thread > :nth-child(6) {
  animation-delay: 5.5s;
}

@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}

.chat__field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line2);
  border-radius: 24px;
  color: var(--faint);
  font-size: 16px;
}

.chat__field b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--on-yellow);
}

/* La leçon vidéo, la copie, les progrès. */
.screen--video .fit,
.screen--copie .fit,
.screen--progres .fit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: radial-gradient(80% 40% at 50% 0%, rgba(255, 212, 0, 0.12), transparent 70%), var(--ink);
}

.video__kicker {
  color: var(--yellow);
  font: 700 11px/1 var(--mono);
  letter-spacing: 2px;
}

.video__title {
  font: 400 40px/0.98 var(--display);
  text-transform: uppercase;
}

.video__frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line2);
}

.video__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.video__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--yellow);
}

.screen--video.is-on .video__bar i {
  animation: grow 12s linear infinite;
}

@keyframes grow {
  to {
    width: 100%;
  }
}

.video__chapters {
  display: grid;
  gap: 8px;
}

.video__chapters li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--soft);
  font: 600 16px/1.2 var(--body);
}

.video__chapters b {
  color: var(--faint);
  font: 700 12px/1 var(--mono);
}

.video__chapters .is-done {
  color: var(--muted);
}

.video__chapters .is-now {
  border-color: var(--yellow);
  color: var(--text);
}

.video__chapters .is-now b {
  color: var(--yellow);
}

.video__quiz {
  margin-top: auto;
  padding: 16px;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--on-yellow);
  font: 700 17px/1 var(--body);
  display: flex;
  justify-content: space-between;
}

.copie__sheet {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(60, 110, 200, 0.25) 35px 36px),
    var(--paper);
  color: #1c2a4a;
  overflow: hidden;
}

.copie__line {
  display: grid;
  grid-template-columns: 1fr auto 30px;
  align-items: center;
  gap: 8px;
  height: 36px;
  font: 700 22px/1 var(--hand);
}

.copie__line i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font: 700 16px/1 var(--body);
  font-style: normal;
  color: #fff;
  transform: scale(0);
}

.copie__line .ok {
  background: #20a35a;
}

.copie__line .ko {
  background: var(--red);
}

.screen--copie.is-on .copie__line i {
  animation: stampin 0.5s var(--spring) forwards;
}

.screen--copie.is-on .copie__line:nth-child(1) i {
  animation-delay: 1.4s;
}
.screen--copie.is-on .copie__line:nth-child(2) i {
  animation-delay: 1.9s;
}
.screen--copie.is-on .copie__line:nth-child(3) i {
  animation-delay: 2.4s;
}

@keyframes stampin {
  to {
    transform: scale(1);
  }
}

.copie__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -10%;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(255, 212, 0, 0.55), transparent);
  opacity: 0;
}

.screen--copie.is-on .copie__scan {
  animation: scan 1.3s 0.2s ease-in-out;
}

@keyframes scan {
  0% {
    opacity: 1;
    top: -15%;
  }
  100% {
    opacity: 1;
    top: 100%;
  }
}

.copie__hint {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(255, 212, 0, 0.4);
  font: 500 15px/1.4 var(--body);
  opacity: 0;
  transform: translateY(10px);
}

.copie__hint .chat__face {
  width: 44px;
  height: 44px;
}

.copie__hint b {
  display: block;
  color: var(--yellow);
}

.screen--copie.is-on .copie__hint {
  animation: pop 0.5s 3s var(--ease) forwards;
}

.copie__score {
  margin-top: auto;
  text-align: center;
  color: var(--soft);
  font-size: 16px;
}

.copie__score b {
  color: var(--yellow);
  font: 400 30px/1 var(--display);
  margin-right: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stats p {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font: 500 12px/1.2 var(--body);
}

.stats b {
  color: var(--yellow);
  font: 400 28px/1 var(--display);
}

.subjects {
  display: grid;
  gap: 9px;
}

.subjects li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  font: 700 15px/1.2 var(--body);
}

.subjects li small {
  color: var(--muted);
  font: 700 12px/1 var(--mono);
}

.subjects li i {
  grid-column: span 2;
  height: 6px;
  border-radius: 3px;
  background: var(--dim);
  overflow: hidden;
}

.subjects li i::before {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--tone, var(--yellow));
  transition: width 1.3s var(--ease);
}

.screen--progres.is-on .subjects li i::before {
  width: var(--value);
}

/* ───────────── 02 · La salle des profs ───────────── */

.staff {
  --lx: 50%;
  --ly: 40%;
  position: relative;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    var(--board);
  padding: clamp(18px, 3vw, 36px);
  overflow: hidden;
  isolation: isolate;
}

/* La salle est dans la pénombre ; la lumière suit la souris. */
.staff__light {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle 300px at var(--lx) var(--ly),
    transparent 0%,
    rgba(8, 8, 8, 0.25) 45%,
    rgba(8, 8, 8, 0.82) 100%
  );
  transition: opacity 0.6s;
}

.staff.is-lit .staff__light,
.staff.is-touch .staff__light {
  opacity: 0;
}

.staff__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
}

.staff__hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  transform: translateX(-50%);
  color: var(--muted);
  font: 700 11px/1 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.4s;
}

.staff.is-lit .staff__hint {
  opacity: 0;
}

.prof {
  --tone: var(--yellow);
  --ry: 0deg;
  --rx: 0deg;
  position: relative;
  perspective: 900px;
  aspect-ratio: 3 / 4.3;
}

.prof__in {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry)) rotateX(var(--rx));
  transition: transform 0.7s var(--ease);
}

.prof.is-flipped .prof__in {
  transform: rotateY(180deg);
}

.prof__face,
.prof__back {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--line2);
  background: var(--panel);
}

.prof__face img {
  position: absolute;
  inset: 0;
  /* La carte penchée par la souris (en 3D), la photo passerait devant ses boutons et prendrait leurs clics. */
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease);
}

.prof:hover .prof__face img {
  transform: scale(1.08);
}

.prof__face::before,
.prof__face::after {
  pointer-events: none;
}

/* Seule la face visible se touche. */
.prof.is-flipped .prof__face,
.prof:not(.is-flipped) .prof__back {
  pointer-events: none;
}

.prof__face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.94) 88%);
}

.prof__face::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: 22px;
  box-shadow: inset 0 0 0 2px var(--tone);
  opacity: 0;
  transition: opacity 0.3s;
}

.prof:hover .prof__face::before,
.prof.is-talking .prof__face::before {
  opacity: 1;
}

.prof__meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  gap: 5px;
}

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

.prof__chips span {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--chip);
  color: #0a0a0a;
  font: 700 9px/1 var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.prof__name {
  font: 400 clamp(19px, 1.9vw, 25px) / 1 var(--display);
  text-transform: uppercase;
}

.prof__keys {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.prof__btn {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line2);
  font: 700 12px/1 var(--body);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.2s,
    color 0.2s;
}

.prof__btn--flip {
  justify-content: center;
  width: 32px;
  padding: 0;
  font: 700 15px/1 var(--display);
}

/* Au doigt, des boutons à la taille d'un pouce. */
.staff.is-touch .prof__btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 13px;
}

.staff.is-touch .prof__btn--flip {
  width: 40px;
  padding: 0;
  font-size: 18px;
}

.staff.is-touch .prof__back {
  cursor: pointer;
}

/* Une petite carte (deux par ligne sur un téléphone) : au dos, l'anecdote seule, et on la touche pour revenir. */
@media (max-width: 640px) {
  .prof__back {
    gap: 8px;
    padding: 14px 12px;
  }

  .prof__back .kicker {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .prof__fact {
    font-size: 15px;
    line-height: 1.12;
  }

  .prof__devise,
  .prof__back .prof__btn--back {
    display: none;
  }

  .prof__back::after {
    content: 'Touche pour revenir';
    color: var(--muted);
    font-size: 11px;
  }
}

@media (hover: hover) {
  .prof__btn:hover {
    background: var(--yellow);
    color: var(--on-yellow);
  }
}

.prof__btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.prof__eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.prof__eq i {
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: currentColor;
}

.prof.is-talking .prof__btn--play {
  background: var(--yellow);
  color: var(--on-yellow);
}

.prof.is-talking .prof__btn--play svg {
  display: none;
}

.prof.is-talking .prof__eq {
  display: inline-flex;
}

/* Ce que le prof vient de dire, en sous-titre manuscrit. */
.prof__quote {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  z-index: 3;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--on-yellow);
  font: 700 18px/1.12 var(--hand);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition:
    opacity 0.3s,
    transform 0.4s var(--spring);
  pointer-events: none;
}

.prof.is-talking .prof__quote {
  opacity: 1;
  transform: none;
}

.prof__back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  background:
    radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--tone) 28%, transparent), transparent 70%),
    var(--panel);
}

.prof__back .kicker {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--tone);
}

.prof__fact {
  flex: 1;
  font: 700 clamp(17px, 1.55vw, 21px) / 1.12 var(--hand);
  color: var(--text);
}

.prof__devise {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

/* ───────────── 03 · Les leçons vidéo ───────────── */

.film {
  --rx: 0deg;
  --ry: 0deg;
  --tone: var(--yellow);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 80px);
  perspective: 1200px;
}

.film--hg {
  --tone: var(--amber);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}

.film--hg .film__media {
  order: 2;
}

.film--volcan {
  --tone: #ff6a3d;
}

.film__media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line2);
  background: #000;
  transform: rotateY(var(--ry)) rotateX(var(--rx));
  transition: transform 0.5s var(--ease);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.film__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 60%, transparent);
  animation: halo-tone 2s ease-out infinite;
  transition: transform 0.3s var(--spring);
}

@keyframes halo-tone {
  to {
    box-shadow: 0 0 0 26px transparent;
  }
}

.film__play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  fill: #0a0a0a;
}

.film__play:hover {
  transform: scale(1.1);
}

.film__place {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.72);
  font: 700 11px/1 var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.film__sheet {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.film__who {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 16px;
}

.film__who img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  border: 2px solid var(--tone);
}

.film__who b {
  color: var(--text);
}

.film h3 {
  font: 400 clamp(34px, 4vw, 54px) / 0.98 var(--display);
  text-transform: uppercase;
}

.film__pitch {
  color: var(--soft);
}

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

.film__chapters li {
  display: inline-flex;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  font: 600 14px/1 var(--body);
}

.film__chapters b {
  color: var(--tone);
  font: 700 12px/1 var(--mono);
}

/* ───────────── 04 · À toi ───────────── */

.lab {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}

.lab__board {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--line2);
  background: var(--board);
  overflow: hidden;
  touch-action: none;
}

.lab__svg {
  width: 100%;
  height: auto;
}

.lab__tri {
  fill: rgba(245, 245, 240, 0.06);
  stroke: var(--text);
  stroke-width: 3;
  stroke-linejoin: round;
}

.lab__right {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
}

.lab__sq {
  stroke-width: 2.5;
  stroke-linejoin: round;
  transition: fill 0.3s;
}

.lab__sq--a {
  fill: rgba(111, 184, 255, 0.14);
  stroke: #6fb8ff;
}

.lab__sq--b {
  fill: rgba(61, 220, 132, 0.12);
  stroke: var(--green);
}

.lab__sq--c {
  fill: rgba(255, 212, 0, 0.14);
  stroke: var(--yellow);
}

.lab__area {
  font: 700 26px var(--hand);
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: var(--board);
  stroke-width: 5px;
}

.lab__handle {
  cursor: grab;
}

.lab__handle circle:first-child {
  fill: rgba(255, 212, 0, 0.18);
  transition: r 0.2s;
}

.lab__handle circle:last-child {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 3;
}

.lab__handle:hover circle:first-child,
.lab__handle.is-drag circle:first-child {
  r: 24;
}

.lab__handle.is-drag {
  cursor: grabbing;
}

.lab__sign {
  position: absolute;
  left: 50%;
  top: 50%;
  font: 400 clamp(80px, 12vw, 150px) / 1 var(--display);
  color: var(--yellow);
  text-shadow:
    0 0 20px rgba(255, 212, 0, 0.7),
    0 0 80px rgba(255, 170, 0, 0.5);
  transform: translate(-50%, -50%) scale(0.4) rotate(-10deg);
  opacity: 0;
  pointer-events: none;
}

.lab__sign.is-on {
  animation: tilt-win 1.5s var(--spring) forwards;
}

@keyframes tilt-win {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(-10deg);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(-6deg);
  }
  35% {
    opacity: 0.35;
  }
  45% {
    opacity: 1;
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-6deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.15) rotate(-6deg);
  }
}

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

.lab__eq {
  font: 700 clamp(34px, 3.6vw, 50px) / 1.1 var(--hand);
}

.lab__eq .a {
  color: #6fb8ff;
}

.lab__eq .b {
  color: var(--green);
}

.lab__eq .c {
  color: var(--yellow);
}

.lab__note {
  color: var(--soft);
}

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

.lab__presets button {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  font: 700 14px/1 var(--mono);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.lab__presets button:hover,
.lab__presets button.is-found {
  border-color: var(--yellow);
  color: var(--yellow);
}

.lab__score {
  color: var(--muted);
  font: 700 12px/1 var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.lab__score span {
  color: var(--yellow);
}

/* La carte du piège. */
.trap {
  display: grid;
  justify-items: center;
  margin-top: clamp(50px, 7vw, 90px);
}

.trap__card {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  perspective: 1200px;
}

.trap__face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid var(--line2);
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.8s var(--spring);
}

.trap__face--front {
  background:
    radial-gradient(70% 70% at 50% 0%, rgba(230, 168, 92, 0.22), transparent 70%),
    var(--panel);
}

.trap__face--back {
  background: var(--paper);
  color: #1b1b1b;
  transform: rotateY(180deg);
}

.trap__card.is-flipped .trap__face--front {
  transform: rotateY(-180deg);
}

.trap__card.is-flipped .trap__face--back {
  transform: none;
}

.trap__q {
  font: 700 clamp(30px, 4vw, 46px) / 1.05 var(--hand);
}

.trap__tap {
  color: var(--muted);
  font: 700 11px/1 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.trap__a {
  max-width: 420px;
  font: 500 18px/1.45 var(--body);
}

.trap__sig {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5a5348;
  font: 700 18px/1 var(--hand);
}

.trap__sig img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
}

/* ───────────── 05 · Les tarifs ───────────── */

.offers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px 22px;
  border-radius: 26px;
  border: 1px solid var(--line2);
  background: var(--panel);
}

.offer--hot {
  border-color: var(--yellow);
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(255, 212, 0, 0.2), transparent 70%),
    var(--panel);
  box-shadow: 0 30px 80px rgba(255, 212, 0, 0.12);
}

.offer__ribbon {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--on-yellow);
  font: 700 10px/1 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.offer__name {
  color: var(--yellow);
  font: 700 12px/1 var(--mono);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.offer__price b {
  font: 400 46px/1 var(--display);
}

.offer__price span {
  margin-left: 6px;
  color: var(--muted);
}

.offer ul {
  display: grid;
  align-content: start;
  gap: 9px;
  flex: 1;
  color: var(--soft);
  font-size: 16px;
}

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

.offer li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}

.offer li b {
  color: var(--text);
}

.offer .btn {
  width: 100%;
}

.offers__more {
  margin-top: 22px;
  color: var(--soft);
  text-align: center;
  font-size: 16px;
}

.offers__more b {
  color: var(--text);
  white-space: nowrap;
}

.parents {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 40px;
  align-items: start;
  margin-top: clamp(40px, 6vw, 70px);
  padding: clamp(22px, 3vw, 36px);
  border-radius: 26px;
  border: 1px dashed rgba(255, 212, 0, 0.35);
}

.parents ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  color: var(--soft);
  font-size: 16px;
}

.parents li b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font: 400 22px/1.05 var(--display);
  text-transform: uppercase;
}

/* ───────────── 06 · Une question ? ───────────── */

.question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(26px, 5vw, 80px);
  align-items: center;
}

.question .chapter__head {
  margin-bottom: 0;
}

.sms {
  display: flex;
  flex-direction: column;
  height: 600px;
  border-radius: 36px;
  border: 1px solid var(--line2);
  background: var(--ink);
  box-shadow:
    inset 0 0 0 8px #141414,
    0 40px 90px rgba(0, 0, 0, 0.6);
  padding: 18px 16px 16px;
  overflow: hidden;
}

.sms__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 14px;
  border-bottom: 1px solid var(--line);
}

.sms__top .chat__face {
  width: 46px;
  height: 46px;
}

.sms__thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 4px;
  overflow-y: auto;
  scrollbar-width: none;
}

.sms__thread .msg {
  animation: pop 0.4s var(--ease) both;
  opacity: 0;
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  background: var(--panel2);
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  50% {
    transform: translateY(-4px);
    opacity: 0.5;
  }
}

.sms__chips {
  display: flex;
  gap: 8px;
  padding: 4px 2px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sms__chips button {
  flex: none;
  padding: 9px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 212, 0, 0.5);
  color: var(--yellow);
  font: 600 14px/1 var(--body);
  transition: background 0.2s;
}

.sms__chips button:hover {
  background: rgba(255, 212, 0, 0.12);
}

.sms__form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line2);
  border-radius: 26px;
}

.sms__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 500 16px var(--body);
  outline: none;
}

.sms__form button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
}

.sms__form svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--on-yellow);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───────────── Clôture ───────────── */

.fin {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-top: clamp(100px, 14vw, 180px);
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(60% 60% at 50% 45%, rgba(255, 212, 0, 0.14), transparent 70%);
}

.sign--big {
  font-size: clamp(140px, 30vw, 400px);
  justify-content: center;
}

.fin h2 {
  font: 400 clamp(46px, 7vw, 90px) / 0.95 var(--display);
  text-transform: uppercase;
}

.fin p:not(.sign) {
  color: var(--soft);
}

.foot {
  display: grid;
  gap: 8px;
  padding: 36px var(--gutter) max(36px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}

.foot b {
  color: var(--yellow);
  font: 400 18px/1 var(--display);
}

/* La notification d'un prof. */
.ping {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  top: 84px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(380px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid var(--line2);
  background: rgba(28, 28, 30, 0.82);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: left;
  animation: ping-in 0.6s var(--spring);
}

.ping.is-leaving {
  animation: ping-out 0.38s var(--ease) forwards;
}

@keyframes ping-in {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

@keyframes ping-out {
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

.ping img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
}

.ping span {
  flex: 1;
  display: grid;
  font-size: 15px;
  line-height: 1.3;
}

.ping i {
  font-style: normal;
  color: var(--soft);
}

.ping small {
  align-self: flex-start;
  color: var(--faint);
  font-size: 12px;
}

/* La leçon en grand. */
.cine {
  width: min(1100px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #000;
  overflow: visible;
}

.cine::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cine video {
  width: 100%;
  border-radius: 20px;
}

.cine__close {
  position: absolute;
  right: -10px;
  top: -52px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
}

.cine__quality {
  position: absolute;
  left: 0;
  top: -46px;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font: 700 12px/1 var(--mono, var(--body));
}

.cine__quality.is-hd {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--on-yellow);
}

.cine__close svg {
  width: 20px;
  height: 20px;
  stroke: var(--on-yellow);
  stroke-width: 2.6;
  stroke-linecap: round;
}

/* ───────────── Écrans moyens et petits ───────────── */

@media (max-width: 1100px) {
  .bar__nav {
    display: none;
  }

  .bar .btn--small {
    margin-left: auto;
  }

  .staff__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .methode__stage,
  .film,
  .film--hg,
  .lab,
  .question {
    grid-template-columns: minmax(0, 1fr);
  }

  .film--hg .film__media {
    order: 0;
  }

  .phone {
    order: -1;
    width: min(100%, 330px);
  }

  .ring {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .hero {
    padding-bottom: 96px;
  }

  .parents {
    grid-template-columns: minmax(0, 1fr);
  }

  .parents ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .staff__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff__hint {
    display: none;
  }

  .offers {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__ref span:last-child,
  .tag__more {
    display: none;
  }

  .ring {
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    padding: 12px;
  }

  .ring img,
  .ring__halo {
    width: 52px;
    height: 52px;
  }

  .ring__halo {
    left: 12px;
    margin-top: -26px;
  }

  .ring__key {
    width: 44px;
    height: 44px;
  }

  .ring__keys {
    gap: 8px;
  }

  .sms {
    height: 540px;
  }

  .step {
    padding: 14px 12px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ───────────── Pied de page : les liens ───────────── */

.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-top: 10px;
}

.foot__links a {
  color: var(--soft);
  text-decoration: none;
  font: 600 14px/1.4 var(--body);
  transition: color 0.2s;
}

.foot__links a:hover {
  color: var(--yellow);
}

.foot__eodia b {
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.offers__more a {
  color: var(--yellow);
}

/* ───────────── Les pages d'information (conditions, données) ───────────── */

.legal {
  width: min(820px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 130px 0 90px;
}

.legal__head {
  display: grid;
  gap: 16px;
  margin-bottom: 46px;
}

.legal__head h1 {
  font: 400 clamp(42px, 6vw, 72px) / 0.96 var(--display);
  text-transform: uppercase;
}

.legal__head p {
  color: var(--soft);
}

.legal__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.legal__toc a {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  color: var(--soft);
  font: 600 14px/1 var(--body);
  text-decoration: none;
}

.legal__toc a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.legal section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font: 400 30px/1.05 var(--display);
  text-transform: uppercase;
}

.legal h2 span {
  color: var(--yellow);
  font: 700 13px/1 var(--mono);
}

.legal p,
.legal li {
  color: var(--soft);
  font-size: 17px;
}

.legal p + p,
.legal p + ul,
.legal ul + p,
.legal table + p {
  margin-top: 12px;
}

.legal ul {
  display: grid;
  gap: 8px;
}

.legal li {
  position: relative;
  padding-left: 20px;
}

.legal li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

.legal b,
.legal strong {
  color: var(--text);
}

.legal a {
  color: var(--yellow);
}

.legal table {
  width: 100%;
  margin-top: 6px;
  border-collapse: collapse;
  font-size: 16px;
}

.legal th,
.legal td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--soft);
}

.legal th {
  color: var(--yellow);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.legal td:first-child {
  color: var(--text);
  font-weight: 600;
}

.legal__box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 212, 0, 0.4);
}

@media (max-width: 620px) {
  .legal table,
  .legal tbody,
  .legal tr,
  .legal td {
    display: block;
  }

  .legal thead {
    display: none;
  }

  .legal tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .legal td {
    padding: 2px 0;
    border: 0;
  }
}

/* ───────────── Le code d'un partenaire (js/code.js) ───────────── */

/* Arrivé par le lien d'un partenaire : un bandeau discret, en bas, dit la remise qui suivra jusqu'à l'application. */
.promo {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: rgba(21, 21, 21, 0.9);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  transform: translateX(-50%);
  animation: promo-in 0.5s var(--spring);
}

@keyframes promo-in {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}

.promo__label {
  flex: none;
  padding: 6px 9px;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--on-yellow);
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.promo__label b {
  font-weight: 700;
}

.promo__text {
  min-width: 0;
}

.promo__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.promo__close:hover {
  background: var(--panel2);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .promo {
    animation: none;
  }
}
