/* ==========================================================================
   izynote — feuille de style unique (landing + pages légales)
   Une seule police : IBM Plex Sans (auto-hébergée).
   Une seule couleur d’accent : le bleu stylo #1d3fbf.
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Couleurs */
  --paper: #f5f1e8;        /* fond : papier chaud */
  --sheet: #fffdf8;        /* feuille d’examen */
  --ink: #1a1813;          /* encre */
  --ink-2: #4f4a41;        /* texte secondaire, 7,8:1 sur le fond */
  --ink-3: #6b655b;        /* métadonnées, 5,1:1 sur le fond */
  --rule: #ddd6c8;         /* filets */
  --rule-strong: #c4bba9;
  --accent: #1d3fbf;       /* bleu stylo : seule couleur d’accent */
  --accent-wash: #e4e8f7;  /* teinte claire du même bleu */
  --google: #131314;       /* bouton Google, thème sombre officiel */

  /* Typographie */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.625rem, 1.15rem + 2vw, 2.5rem);
  --text-display: clamp(1.875rem, 0.9rem + 5vw, 4.25rem);

  /* Espacements, base 4 px */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --gutter: 1rem;
  --max: 72rem;

  /* Matière */
  --radius: 4px;
  --radius-sm: 2px;
  --shadow-sheet: 0 1px 1px rgb(60 46 24 / 0.05), 0 10px 28px -14px rgb(60 46 24 / 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pen: cubic-bezier(0.6, 0, 0.3, 1);
}

@media (min-width: 600px) {
  :root { --gutter: 1.5rem; }
}

@media (min-width: 900px) {
  :root { --gutter: 2rem; }
}

@media (prefers-contrast: more) {
  :root {
    --ink-2: #2f2b25;
    --ink-3: #4f4a41;
    --rule: #a39a8a;
    --rule-strong: #7d7465;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--rule-strong) var(--paper);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
  font-kerning: normal;
  caret-color: var(--accent);
  -webkit-tap-highlight-color: transparent;
}

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

ol, ul {
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-weight: 600;
  text-wrap: balance;
}

p, li, dd, figcaption {
  text-wrap: pretty;
}

svg {
  display: block;
}

sup {
  font-size: 0.7em;
  line-height: 0;
  vertical-align: 0.42em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

a:hover {
  text-decoration-color: currentColor;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

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

.skip {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 100;
  padding: var(--s-2) var(--s-3);
  background: var(--ink);
  color: var(--sheet);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 3.5rem;
  padding-top: env(safe-area-inset-top);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

/* Logo : le point du i est la case noircie au bleu stylo (logo/kit/GUIDE-LOGO.md) */
.brand__logo {
  display: block;
  width: auto;
  height: 1.625rem;
}

.head-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: calc(-1 * var(--s-2));
  padding-inline: var(--s-2);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.head-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 900px) {
  .site-head { min-height: 4.5rem; }
}

/* --------------------------------------------------------------------------
   Bouton « Continuer avec Google » (charte Google, thème sombre)
   -------------------------------------------------------------------------- */

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 24rem;
  min-height: 3.25rem;
  padding: 0 1.375rem;
  background: var(--google);
  color: #e3e3e3;
  border: 1px solid #8e918f;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(19 19 20 / 0.18), 0 6px 14px -8px rgb(19 19 20 / 0.45);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.btn-google svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.btn-google:hover {
  background: #26262b;
}

.btn-google:active {
  transform: scale(0.98);
  box-shadow: 0 1px 1px rgb(19 19 20 / 0.2);
  transition-duration: 60ms;
}

@media (min-width: 600px) {
  .btn-google { width: auto; }
}

.cta {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.cta__note {
  max-width: 30rem;
  font-size: var(--text-sm);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Hero : l’accroche corrigée au stylo bleu
   -------------------------------------------------------------------------- */

.hero {
  padding-block: var(--s-6) var(--s-7);
}

.hero__title {
  max-width: 16em;
  font-size: var(--text-display);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero__title .line {
  display: block;
}

.hero__lead {
  max-width: 33rem;
  margin-top: var(--s-4);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .hero { padding-block: var(--s-8); }
  .hero__lead {
    max-width: 36rem;
    margin-top: var(--s-5);
    font-size: 1.3125rem;
  }
}

/* Traits de stylo : un mot entouré, une expression soulignée */
.pen {
  position: relative;
  white-space: nowrap;
}

.pen svg {
  position: absolute;
  overflow: visible;
  color: var(--accent);
  pointer-events: none;
}

.pen path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pen--circle {
  margin-inline: 0.06em;
}

.pen--circle svg {
  top: 0.08em;
  left: -0.3em;
  width: calc(100% + 0.6em);
  height: 1.12em;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .pen path {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1.002;
    animation: pen-draw 560ms var(--ease-pen) 380ms forwards;
  }
}

@keyframes pen-draw {
  to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .section { padding-block: var(--s-9); }
}

.section__title {
  max-width: 20em;
  font-size: var(--text-2xl);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.section__title .line {
  display: block;
}

.section__lead {
  max-width: 36rem;
  margin-top: var(--s-3);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-2);
}

@media (max-width: 899.98px) {
  .split > * + * { margin-top: var(--s-6); }
}

@media (min-width: 900px) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-9);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   Feuille d’examen (composant partagé)
   -------------------------------------------------------------------------- */

.sheet {
  padding: var(--s-4);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--shadow-sheet);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (min-width: 600px) {
  .sheet { padding: var(--s-5); }
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--ink);
}

.sheet__title {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.sheet__meta {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.sheet__stamp {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.sheet__id {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.field {
  display: flex;
  flex: 1 1 7rem;
  align-items: flex-end;
  gap: 6px;
}

.field__line {
  flex: 1;
  height: 1em;
  border-bottom: 1px dotted var(--rule-strong);
}

.field--noma {
  flex: 0 0 auto;
}

.noma {
  display: flex;
  gap: 3px;
}

.noma i {
  width: 13px;
  height: 17px;
  border: 1px solid var(--rule-strong);
}

.rules {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}

.rules dt {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.rules dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sheet__note {
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-xs);
  color: var(--ink-2);
}

.q {
  padding-top: var(--s-4);
}

.q__num {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-3);
}

.q__text {
  margin-top: var(--s-1);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.45;
}

.opts {
  display: grid;
  margin-top: var(--s-3);
}

.opts li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.125rem;
}

.box {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-2);
  border-radius: var(--radius-sm);
}

/* Case noircie au stylo, comme sur une grille de QCM */
.is-picked .box::after {
  content: "";
  position: absolute;
  inset: 2px 2px 2.5px 2.5px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(-3deg);
}

.opts .opt-skip {
  margin-top: var(--s-1);
  padding-top: var(--s-2);
  border-top: 1px dashed var(--rule);
  color: var(--ink-2);
}

.opts em {
  margin-left: auto;
  font-size: var(--text-xs);
  font-style: normal;
  color: var(--ink-3);
}

.sheet__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-1) var(--s-4);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.docs {
  display: grid;
  gap: 2px;
  margin-top: var(--s-2);
}

.docs li {
  display: flex;
  gap: 0.625rem;
  font-size: var(--text-sm);
}

.docs li span {
  flex: none;
  min-width: 3.25rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.docs--steps li span {
  min-width: 1.5rem;
}

.ruled {
  height: 7rem;
  margin-top: var(--s-3);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 1.6875rem,
    var(--rule) 1.6875rem 1.75rem
  );
}

.ruled p {
  font-size: var(--text-sm);
  line-height: 1.75rem;
  color: var(--ink-2);
}

.ruled--short {
  height: 3.5rem;
}

/* --------------------------------------------------------------------------
   Démo : deux profils, deux examens
   -------------------------------------------------------------------------- */

.switch {
  display: none;
}

.js .switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: var(--s-5);
  padding: 3px;
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}

.switch button {
  min-height: 44px;
  padding: 0 var(--s-2);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  touch-action: manipulation;
  appearance: none;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.switch button:active {
  transform: scale(0.97);
  transition-duration: 60ms;
}

.switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--sheet);
}

@media (max-width: 359.98px) {
  .switch button { font-size: var(--text-sm); }
}

.copies {
  display: grid;
  gap: var(--s-7);
  margin-top: var(--s-5);
}

.copie__who {
  display: grid;
  gap: 0.125rem;
  margin-bottom: var(--s-3);
}

.copie__who strong {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.copie__who span {
  font-size: var(--text-sm);
  color: var(--ink-3);
}

@media (max-width: 899.98px) {
  .js .switch + .copies { margin-top: var(--s-4); }
  .js .copie.is-off { display: none; }
}

@media (max-width: 899.98px) and (prefers-reduced-motion: no-preference) {
  .copies[data-touched] .copie:not(.is-off) {
    animation: copie-in 280ms var(--ease-out) both;
  }
}

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

@media (min-width: 900px) {
  .js .switch { display: none; }
  .copies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-6);
    align-items: start;
    margin-top: var(--s-7);
  }
}

.demo__note {
  max-width: 40rem;
  margin-top: var(--s-5);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

/* Sélecteur de pays : discret, au-dessus de la démonstration, masqué sans JavaScript */
.country {
  display: none;
}

.js .country {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.375rem;
  margin-top: var(--s-4);
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.country__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.country label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
}

.country label:not(:last-child)::after {
  content: "·";
  content: "·" / "";
  padding-inline: 0.0625rem;
  color: var(--ink-3);
}

.country input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.country label span {
  padding: 0.25rem 0.3125rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.34em;
  transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out);
}

.country label:hover span {
  color: var(--ink);
  text-decoration-color: var(--rule-strong);
}

.country input:checked + span {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

.country input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 359.98px) {
  .js .country { font-size: var(--text-sm); }
  .country label span { padding-inline: 0.1875rem; }
}

.js .country ~ .variant .switch {
  margin-top: var(--s-2);
}

/* Variantes par pays : la France s’affiche par défaut, y compris sans JavaScript.
   Le script en tête de page pose data-country sur <html> avant le rendu. */
.variant {
  display: none;
}

html:not([data-country]) .variant[data-variant="fr"],
html[data-country="fr"] .variant[data-variant="fr"],
html[data-country="be"] .variant[data-variant="be"],
html[data-country="ch"] .variant[data-variant="ch"],
html[data-country="lu"] .variant[data-variant="lu"] {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  [data-demo][data-touched] .variant {
    animation: copie-in 280ms var(--ease-out) both;
  }
}

@media (min-width: 900px) {
  .js .country ~ .variant .copies {
    margin-top: var(--s-6);
  }
}

/* --------------------------------------------------------------------------
   Démonstration : le cours qui s’écrit pendant que le prof parle (écran à filmer)
   -------------------------------------------------------------------------- */

.live {
  display: grid;
  gap: var(--s-6);
}

.live__figure {
  margin: 0;
}

.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 23rem;
  height: 38rem;
  margin-inline: auto;
  padding: var(--s-4);
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-radius: 2rem;
  box-shadow: var(--shadow-sheet);
}

.phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0 var(--s-1) var(--s-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-sm);
}

.phone__course {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
  font-weight: 600;
}

.phone__tag {
  flex: none;
  padding: 2px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.phone__rec {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.4375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.phone__dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .phone__dot { animation: rec-pulse 1.6s ease-in-out infinite; }
}

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

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

.transcript__list {
  display: grid;
  gap: var(--s-4);
  padding: 0 var(--s-1) var(--s-3);
}

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

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

.js .phone.is-armed .transcript__list {
  transition: transform 600ms var(--ease-out);
}

.tr {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--s-2);
}

.tr__time {
  padding-top: 0.1875rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.tr p {
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--ink);
  transition: color 500ms var(--ease-out);
}

.tr.is-past p {
  color: var(--ink-2);
}

.tr__flag {
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
}

/* « Attention, ça tombera » : souligné au bleu stylo */
.tr mark,
.signals mark {
  background: none;
  font-weight: 600;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
}

.qcard {
  margin-top: var(--s-2);
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}

.qcard__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
}

.qcard__q {
  margin-top: var(--s-1);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.qcard__ask {
  margin-top: var(--s-2);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.qcard__answer {
  position: relative;
  display: block;
  width: 100%;
  margin-top: var(--s-2);
  padding: var(--s-3);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 120ms var(--ease-out);
}

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

.qcard__text {
  display: block;
  font-weight: 500;
  line-height: 1.45;
  transition: filter 800ms var(--ease-out), opacity 800ms var(--ease-out);
}

.qcard__hint {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.qcard__source {
  margin-top: var(--s-2);
  font-size: 0.75rem;
  color: var(--ink-3);
  transition: opacity 500ms var(--ease-out) 300ms;
}

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

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

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

/* Séquence animée, seulement quand le script la prend en charge */
.js .phone.is-armed .tr:not(.is-in),
.js .phone.is-armed .qcard:not(.is-in) {
  display: none;
}

.js .phone.is-armed .tr.is-in {
  animation: tr-in 520ms var(--ease-out) both;
}

.js .phone.is-armed .qcard.is-in {
  animation: card-in 560ms var(--ease-out) both;
}

.js .phone.is-armed .tr--signal .tr__flag {
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}

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

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

.js .phone.is-armed .tr--signal.is-marked mark {
  animation: mark-draw 800ms var(--ease-pen) both;
}

@keyframes mark-draw {
  from { text-decoration-color: transparent; }
  to { text-decoration-color: var(--accent); }
}

@media (prefers-reduced-motion: no-preference) {
  .js .phone.is-armed .qcard.is-in:not(.is-revealed) .qcard__hint {
    animation: hint-pulse 1.6s ease-in-out 700ms infinite;
  }
}

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

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

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

.live__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  max-width: 23rem;
  min-height: 44px;
  margin: var(--s-3) auto 0;
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.live__replay {
  min-height: 44px;
  padding: 0 var(--s-4);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}

/* Masqué mais présent : sa place est réservée, la page ne saute pas quand il apparaît */
.live__replay[hidden] {
  display: inline-block;
  visibility: hidden;
}

.live__consent {
  max-width: 23rem;
  margin: var(--s-3) auto 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.live {
  margin-top: var(--s-6);
}

/* Carte « Ce que ton prof a dit de retenir » */
.signals__list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}

.signals__list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

@media (min-width: 900px) {
  .live {
    grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
    column-gap: var(--s-8);
    align-items: start;
  }

  .signals { align-self: center; }
}

/* --------------------------------------------------------------------------
   Apporte ton cours : trois façons d’apporter un cours, une seule tuile
   -------------------------------------------------------------------------- */

.bring {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-6) 0 0;
}

.bring__sources {
  display: grid;
  gap: var(--s-2);
}

.source {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.source__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.source strong {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}

.source__detail {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.bring__arrow {
  justify-self: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ink-3);
  transform: rotate(90deg);
}

.course__items {
  margin-top: var(--s-1);
}

.course__items li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 3rem;
  border-bottom: 1px solid var(--rule);
}

.course__items li:last-child {
  border-bottom: 0;
}

.course__items svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink-2);
}

.course__meta {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  white-space: nowrap;
}

.bring__caption {
  margin-top: var(--s-2);
  font-weight: 500;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .bring {
    grid-template-columns: minmax(0, 5fr) auto minmax(0, 6fr);
    align-items: center;
    column-gap: var(--s-6);
  }

  .bring__arrow { transform: none; }
  .bring__caption { grid-column: 1 / -1; }
}

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

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 3.5rem;
  padding-block: var(--s-3);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.008em;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}

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

.faq-item summary:focus-visible {
  outline-offset: 2px;
}

.faq-icon {
  position: relative;
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 220ms var(--ease-out);
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-item p {
  max-width: 40rem;
  padding-bottom: var(--s-5);
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Clôture et pied de page
   -------------------------------------------------------------------------- */

.closing__title .line {
  display: block;
}

.closing__title {
  font-size: clamp(2rem, 1rem + 4.4vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.site-foot {
  padding-block: var(--s-7) calc(var(--s-7) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.foot {
  display: grid;
  gap: var(--s-4);
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--s-5);
}

.foot .brand {
  color: var(--ink);
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
}

.foot p {
  max-width: 42rem;
}

/* --------------------------------------------------------------------------
   Barre collante (mobile) : matière translucide, apparaît hors des autres CTA
   -------------------------------------------------------------------------- */

.sticky-cta {
  display: none;
}

@media (max-width: 899.98px) {
  .js .sticky-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: block;
    padding: 0.625rem var(--gutter) calc(0.625rem + env(safe-area-inset-bottom));
    background: rgb(245 241 232 / 0.84);
    border-top: 1px solid rgb(26 24 19 / 0.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    visibility: hidden;
    transform: translateY(105%);
    transition: transform 240ms var(--ease-out), visibility 0s linear 240ms;
  }

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

  .sticky-cta .btn-google {
    width: 100%;
    max-width: none;
    min-height: 3rem;
  }

  html.has-sticky-cta {
    scroll-padding-bottom: 6rem;
  }
}

@media (max-width: 899.98px) and (prefers-reduced-motion: reduce) {
  .js .sticky-cta {
    opacity: 0;
    transform: none;
    transition: opacity 160ms ease, visibility 0s linear 160ms;
  }

  .js .sticky-cta.is-visible {
    opacity: 1;
    transition: opacity 160ms ease, visibility 0s;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .js .sticky-cta {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */

.doc {
  padding-block: var(--s-6) var(--s-9);
}

.doc h1 {
  max-width: 20em;
  font-size: var(--text-2xl);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.doc__updated {
  margin-top: var(--s-2);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.doc h2 {
  max-width: 68ch;
  margin-top: var(--s-7);
  font-size: var(--text-xl);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.doc p,
.doc ul {
  max-width: 68ch;
  margin-top: var(--s-3);
  color: var(--ink-2);
}

.doc ul {
  padding-left: 1.25em;
  list-style: disc;
}

.doc li + li {
  margin-top: 0.375rem;
}

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

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

.todo {
  padding: 0 0.25em;
  background: var(--accent-wash);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--accent);
}

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