/* Feuille de style du site public de Stepia.
 *
 * Le site prolonge l'application : même palette (design system One Hour Labs),
 * mêmes polices, même teinte par outil, même mascotte. Les valeurs reprennent
 * `src/ui/theme.ts` et `src/ui/featureVisuals.ts` ; si la palette change, c'est
 * là qu'il faut la relire.
 */

@font-face {
  font-family: 'Nunito';
  src: url('/site/fonts/nunito-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/site/fonts/nunito-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/site/fonts/nunito-900.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/site/fonts/atkinson-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/site/fonts/atkinson-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/site/fonts/atkinson-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  --canvas: #f7f4ef;
  --surface: #ffffff;
  --subtle: #f0edf3;
  --lavender: #e8e1f0;
  --line: #e0dae6;
  --ink: #17111f;
  --ink-body: #2b2236;
  --ink-soft: #4d425b;
  --violet: #312051;
  --violet-900: #25173e;
  --violet-700: #492d6c;
  --violet-600: #603a87;
  --violet-500: #7952a0;
  --violet-300: #bda2dd;
  --violet-200: #d1bfe8;
  --orange: #e89a4a;
  --orange-deep: #c9772a;
  --amber-bg: #fff6db;
  --amber-ink: #3f3218;

  /* Une teinte par outil, la même que dans l'application. */
  --timer-bg: #fff4d6;
  --timer-line: #ebd08a;
  --schedule-bg: #e6f3e2;
  --schedule-line: #b3d3ac;
  --tokens-bg: #fbe6ec;
  --tokens-line: #e2b5c3;
  --communication-bg: #efe8f7;
  --communication-line: #c7b1db;

  --font-title: 'Nunito', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 4vw, 40px);
  --header-height: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lift: 0 22px 44px -26px rgb(23 17 31 / 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  scrollbar-color: var(--violet-500) var(--subtle);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--violet);
}

::selection {
  background: var(--violet-200);
  color: var(--ink);
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

.site-header :focus-visible,
.hero :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible,
.mode--studio :focus-visible {
  outline-color: var(--orange);
}

.icon {
  flex: none;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100%, 1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  width: min(100%, 820px + var(--gutter) * 2);
}

/* --- Boutons et liens ----------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms var(--ease-out);
}

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

.button--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 1rem;
}

.button--primary {
  background: var(--violet);
  color: #fff;
}

.button--primary:hover {
  background: var(--violet-700);
}

.button--accent {
  background: var(--orange);
  color: var(--ink);
}

.button--accent:hover {
  background: #f0ac63;
}

.button--outline {
  border-color: var(--violet);
  color: var(--violet);
}

.button--outline:hover {
  background: var(--lavender);
}

.button--outline-light {
  border-color: rgb(255 255 255 / 0.55);
  color: #fff;
}

.button--outline-light:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.button--quiet {
  min-height: 44px;
  padding: 0 16px;
  background: var(--subtle);
  color: var(--violet);
  font-size: 0.95rem;
}

.button--quiet:hover {
  background: var(--lavender);
}

.button[disabled] {
  opacity: 0.5;
  cursor: default;
}

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

.text-link {
  color: var(--violet);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color 160ms ease;
  text-decoration-color: var(--violet-300);
}

.text-link:hover {
  text-decoration-color: var(--violet);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
}

.facts {
  display: grid;
  gap: 10px;
}

.facts li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}

.facts .icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--tint-line, var(--lavender));
  color: var(--ink);
}

.facts--spaced {
  gap: 16px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--violet);
  color: #fff;
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
  min-height: var(--header-height);
  white-space: nowrap;
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 46px;
}

.tool-nav {
  display: flex;
  gap: 2px;
  margin-right: auto;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.tool-chip:hover,
.tool-chip[aria-current='page'] {
  background: rgb(255 255 255 / 0.12);
}

.tool-chip__slot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgb(255 255 255 / 0.6);
  border-radius: 50%;
  color: transparent;
}

.tool-chip[data-tool='timer'] {
  --chip: var(--timer-bg);
}
.tool-chip[data-tool='schedule'] {
  --chip: var(--schedule-bg);
}
.tool-chip[data-tool='tokens'] {
  --chip: var(--tokens-bg);
}
.tool-chip[data-tool='communication'] {
  --chip: var(--communication-bg);
}

/* Hors de l'accueil, la pastille porte simplement la teinte de l'outil. */
.tool-chip:not([data-slot]) .tool-chip__slot,
.tool-chip.is-filled .tool-chip__slot {
  border-color: var(--chip);
  background: var(--chip);
}

.tool-chip.is-filled .tool-chip__slot {
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a,
.header-link,
.lang-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
}

.site-nav a:hover,
.header-link:hover,
.lang-link:hover,
.site-nav a[aria-current='page'] {
  background: rgb(255 255 255 / 0.12);
}

.lang-link {
  border: 1.5px solid rgb(255 255 255 / 0.45);
  padding: 0 12px;
  min-height: 36px;
  font-size: 0.9rem;
}

.site-header__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}

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

.menu summary:hover,
.menu[open] summary {
  background: rgb(255 255 255 / 0.12);
}

.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: grid;
  gap: 2px;
  width: min(320px, calc(100vw - var(--gutter) * 2));
  padding: 12px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.menu__panel a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.menu__panel a:not(.button):hover {
  background: var(--subtle);
}

.menu__panel .button {
  margin-top: 8px;
}

@media (max-width: 1320px) {
  .site-nav {
    display: none;
  }
  .menu {
    display: block;
  }
}

@media (max-width: 900px) {
  .header-link {
    display: none;
  }
  .tool-chip {
    padding: 0 4px;
  }
  .tool-chip__label {
    display: none;
  }
  /* Sans libellé, les pastilles n'ont de sens que sur l'accueil, où elles sont
     les emplacements de la plaquette. Ailleurs, le menu les remplace. */
  body:not(.is-home) .tool-nav {
    visibility: hidden;
  }
}

@media (max-width: 560px) {
  .site-header__actions .button {
    display: none;
  }
  .brand span {
    display: none;
  }
}

/* --- Héros : l'escalier de la mascotte ------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  /* Le bas du héros prend la couleur de la section suivante : la plaquette
     enjambe la frontière entre les deux. */
  background: linear-gradient(to bottom, var(--violet) 0 calc(100% - 96px), var(--timer-bg) calc(100% - 96px) 100%);
  color: #fff;
  padding-top: clamp(28px, 5vw, 64px);
}

.hero__grid {
  position: relative;
  display: grid;
}

.stairs {
  --rise: clamp(2.5rem, 1.1rem + 6.2vw, 5.4rem);
  --run: clamp(1.9rem, 0.4rem + 7vw, 8.5rem);
  margin: 0;
  color: #fff;
  font-size: var(--rise);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: nowrap;
}

/* Chaque ligne du titre est posée sur une marche. La marche est un bloc qui
   part du début de la ligne, s'étend sur un giron, et descend jusqu'au bas du
   héros : les trois blocs côte à côte dessinent l'escalier vu de profil. */
.stairs__step {
  position: relative;
  display: block;
  width: max-content;
  margin-left: calc(var(--step) * var(--run));
  padding: 0.12em 0 0.1em 0.3em;
}

.stairs__step::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  top: 100%;
  width: var(--run);
  height: 200vh;
  border-top: 7px solid var(--orange);
  background: var(--violet-700);
}

/* La première marche part du bord de l'écran, la dernière va jusqu'à l'autre. */
.stairs__step--first::before {
  left: -100vw;
  width: calc(100vw + var(--run));
}

.stairs__step--last::before {
  width: 200vw;
}

.hero__grid {
  z-index: 0;
}

.hero__mascot {
  position: absolute;
  z-index: 1;
  right: 0;
  /* Un peu d'air entre la mascotte et la dernière marche. */
  top: calc(var(--rise-total) - var(--mascot-height) - 18px);
  width: var(--mascot-width);
  --mascot-width: clamp(190px, 27vw, 372px);
  --mascot-height: calc(var(--mascot-width) * 0.747);
  --rise-total: calc(clamp(2.5rem, 1.1rem + 6.2vw, 5.4rem) * 1.08 * 3 + clamp(2.5rem, 1.1rem + 6.2vw, 5.4rem) * 0.66);
}

.hero__pitch {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 44rem;
  padding: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 56px);
}

.hero__lead {
  font-size: clamp(1.08rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.55;
  color: #f5f0fa;
  white-space: pre-line;
}

@media (max-width: 720px) {
  .hero__mascot {
    position: static;
    order: -1;
    width: 132px;
    margin-left: auto;
    margin-bottom: -18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Un seul mouvement d'entrée : les marches se posent l'une après l'autre,
     puis la mascotte arrive sur la dernière. */
  .stairs__step {
    animation: step-in 620ms var(--ease-out) both;
    animation-delay: calc(var(--step) * 150ms + 80ms);
  }

  .hero__mascot {
    animation:
      mascot-in 700ms var(--ease-out) 560ms both,
      mascot-float 5.2s ease-in-out 1400ms infinite alternate;
  }

  @keyframes step-in {
    from {
      opacity: 0;
      transform: translateY(0.45em);
    }
  }

  @keyframes mascot-in {
    from {
      opacity: 0;
      transform: translateY(-28px) scale(0.94);
    }
  }

  @keyframes mascot-float {
    to {
      translate: 0 -7px;
    }
  }
}

/* --- La plaquette de l'accueil -------------------------------------------- */

.board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 200px);
  grid-template-areas:
    'head slots reward'
    'hint hint hint';
  gap: 18px clamp(16px, 2.4vw, 32px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px);
  margin-bottom: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink-body);
  box-shadow: var(--shadow-lift);
}

.board__head {
  grid-area: head;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.board__title {
  font-size: 1.5rem;
  line-height: 1.15;
}

.board__slots {
  grid-area: slots;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 20px);
}

.slot {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 2px;
  border-radius: 20px;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 800;
  text-decoration: none;
}

.slot__disc {
  display: grid;
  place-items: center;
  width: clamp(64px, 8.4vw, 104px);
  aspect-ratio: 1;
  border: 3px solid var(--violet-300);
  border-radius: 50%;
  background: var(--surface);
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}

/* Un emplacement vide montre déjà, en fantôme, le jeton qui lui revient. */
.slot__disc img {
  width: 78%;
  filter: grayscale(1);
  opacity: 0.26;
  transition:
    opacity 240ms ease,
    filter 240ms ease;
}

.slot:hover .slot__disc {
  border-color: var(--violet-500);
}

.slot--timer {
  --tint: var(--timer-bg);
  --tint-line: var(--timer-line);
}
.slot--schedule {
  --tint: var(--schedule-bg);
  --tint-line: var(--schedule-line);
}
.slot--tokens {
  --tint: var(--tokens-bg);
  --tint-line: var(--tokens-line);
}
.slot--communication {
  --tint: var(--communication-bg);
  --tint-line: var(--communication-line);
}

.slot.is-filled .slot__disc {
  border-color: var(--tint-line);
  background: var(--tint);
}

.slot.is-filled .slot__disc img {
  filter: none;
  opacity: 1;
}

.board__reward {
  grid-area: reward;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 116px;
  padding: 14px;
  border: 3px dashed var(--violet-500);
  border-radius: 20px;
  background: var(--subtle);
  color: var(--violet);
  font-family: var(--font-title);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.board__reward.is-ready {
  border-style: solid;
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.board__hint {
  grid-area: hint;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 150px);
    grid-template-areas:
      'head reward'
      'slots slots'
      'hint hint';
  }
  .board__reward {
    min-height: 84px;
  }
}

@media (max-width: 480px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'head' 'slots' 'reward' 'hint';
  }
  .board__slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
  }
  .slot__disc {
    width: 88px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .slot.is-new .slot__disc,
  .tool-chip.is-new .tool-chip__slot {
    animation: token-press 520ms var(--ease-out);
  }

  @keyframes token-press {
    0% {
      transform: scale(1.5);
      opacity: 0.2;
    }
    60% {
      transform: scale(0.94);
      opacity: 1;
    }
    100% {
      transform: scale(1);
    }
  }
}

/* --- Sections des outils -------------------------------------------------- */

.tool {
  padding-block: clamp(56px, 8vw, 120px);
  background: var(--tint);
}

.tool--timer {
  --tint: var(--timer-bg);
  --tint-line: var(--timer-line);
}
.tool--schedule {
  --tint: var(--schedule-bg);
  --tint-line: var(--schedule-line);
}
.tool--tokens {
  --tint: var(--tokens-bg);
  --tint-line: var(--tokens-line);
}
.tool--communication {
  --tint: var(--communication-bg);
  --tint-line: var(--communication-line);
}

.tool__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    'text demo'
    'shots shots';
  gap: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px);
  align-items: start;
}

.tool--flip .tool__grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    'demo text'
    'shots shots';
}

.tool__text {
  grid-area: text;
  display: grid;
  gap: 16px;
  justify-items: start;
}

.tool__character {
  width: clamp(120px, 14vw, 176px);
  margin-bottom: -4px;
}

.tool__promise {
  color: var(--violet-700);
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
}

.tool__text .text-link {
  margin-top: 6px;
}

.tool__demo {
  grid-area: demo;
  display: grid;
  gap: 12px;
}

.tool__earned {
  min-height: 1.6em;
  color: var(--violet-700);
  font-family: var(--font-title);
  font-weight: 800;
}

.tool__shots {
  grid-area: shots;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-items: center;
  margin: 0;
}

.tool__shots .device--tablet {
  grid-column: 1 / -1;
  grid-row: 1;
  width: min(100%, 780px);
  justify-self: start;
}

.tool__shots .device--phone {
  grid-column: 2;
  grid-row: 1;
  width: clamp(130px, 21vw, 244px);
  margin-bottom: -28px;
  z-index: 1;
}

.tool--flip .tool__shots .device--tablet {
  justify-self: end;
}

.tool--flip .tool__shots {
  grid-template-columns: auto minmax(0, 1fr);
}

.tool--flip .tool__shots .device--phone {
  grid-column: 1;
}

.tool__shots.tool__shots--pair,
.tool--flip .tool__shots.tool__shots--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
}

.tool__shots.tool__shots--pair .device--tablet,
.tool--flip .tool__shots.tool__shots--pair .device--tablet {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
}

/* Le second écran descend d'un cran : deux tablettes côte à côte, pas un
   diptyque symétrique. */
.tool__shots.tool__shots--pair .device--tablet + .device--tablet {
  margin-top: clamp(24px, 5vw, 72px);
}

figcaption {
  grid-column: 1 / -1;
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  justify-self: start;
}

.tool__shots--pair figcaption {
  margin-top: 8px;
}

.device {
  background: var(--ink);
  box-shadow: var(--shadow-lift);
}

.device img {
  width: 100%;
  background: var(--canvas);
}

.device--tablet {
  padding: clamp(6px, 1vw, 12px);
  border-radius: clamp(16px, 2.4vw, 30px);
}

.device--tablet img {
  border-radius: clamp(10px, 1.6vw, 19px);
}

.device--phone {
  padding: clamp(5px, 0.7vw, 8px);
  border-radius: clamp(20px, 3vw, 36px);
}

.device--phone img {
  border-radius: clamp(15px, 2.4vw, 28px);
}

@media (max-width: 900px) {
  .tool__grid,
  .tool--flip .tool__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'text' 'demo' 'shots';
  }
}

@media (max-width: 720px) {
  /* Sur un petit écran, le téléphone ne mord que sur le bord de la tablette. */
  .tool__shots .device--tablet,
  .team__shots .device--tablet {
    width: 86%;
  }
  .tool__shots .device--phone,
  .team__shots .device--phone {
    width: 30%;
    min-width: 96px;
  }
  .tool__shots.tool__shots--pair,
  .tool--flip .tool__shots.tool__shots--pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool__shots.tool__shots--pair .device--tablet {
    width: 100%;
  }
  .tool__shots.tool__shots--pair .device--tablet + .device--tablet {
    margin-top: 0;
  }
}

/* --- Démonstrations ------------------------------------------------------- */

.demo {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1.5px solid var(--tint-line);
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  container-type: inline-size;
}

.demo__title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 900;
}

.demo__label {
  font-family: var(--font-title);
  font-weight: 800;
}

.demo__note {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.demo__status {
  min-height: 1.5em;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--violet);
}

.demo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-title);
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease;
}

.chip small {
  font-size: 0.82em;
  font-weight: 700;
}

.chip:hover {
  border-color: var(--violet-500);
}

.chip[aria-pressed='true'] {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--subtle);
}

.segmented button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.segmented button[aria-pressed='true'] {
  background: var(--surface);
  box-shadow: 0 2px 6px -2px rgb(23 17 31 / 0.25);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--violet);
}

.round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 56px;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--violet);
  font-family: var(--font-title);
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    transform 160ms var(--ease-out);
}

.round:hover {
  background: var(--lavender);
}

.round:active {
  transform: scale(0.95);
}

.round--primary {
  padding: 0 24px;
  background: var(--violet);
  color: #fff;
}

.round--primary:hover {
  background: var(--violet-700);
}

.round--small {
  min-width: 46px;
  min-height: 46px;
  padding: 0;
}

/* Timer */

.demo-timer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  justify-items: center;
}

.demo-timer__stage {
  width: min(100%, 260px);
  aspect-ratio: 1;
}

.demo-timer__controls {
  display: grid;
  gap: 14px;
  justify-items: start;
  width: 100%;
}

@container (min-width: 520px) {
  .demo-timer {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
  }
}

.disc {
  width: 100%;
  height: 100%;
}

.disc__face {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 3;
}

.disc__tick {
  stroke: var(--ink-soft);
  stroke-opacity: 0.45;
  stroke-width: 2;
  stroke-linecap: round;
}

.disc__tick--major {
  stroke: var(--violet);
  stroke-opacity: 1;
  stroke-width: 3.5;
}

.disc__fill {
  fill: none;
  stroke: var(--violet);
}

.disc__hub {
  fill: var(--surface);
}

.disc__time {
  fill: var(--violet);
  font-family: var(--font-title);
  font-size: 27px;
  font-weight: 900;
}

.reveal {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1.5px solid var(--timer-line);
  border-radius: 24px;
  background: var(--timer-bg);
}

.reveal[hidden] {
  display: none;
}

.reveal img {
  width: 86%;
}

.reveal__tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.reveal__tiles span {
  background: var(--violet);
  outline: 1px solid var(--violet);
  transition: opacity 420ms ease;
}

.reveal__tiles span.is-gone {
  opacity: 0;
}

.reveal__time {
  position: absolute;
  bottom: 10px;
  left: 50%;
  translate: -50% 0;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--violet);
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 900;
}

/* Séquentiel */

.demo-schedule {
  display: grid;
  gap: 16px;
}

.demo-schedule__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
}

.demo-schedule__head .demo__title {
  grid-column: 1 / -1;
}

.progress {
  display: flex;
  gap: 6px;
}

.progress span {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: var(--line);
  transition: background-color 260ms ease;
}

.progress .is-done {
  background: var(--violet);
}

.progress .is-current {
  background: var(--orange);
}

.progress__text {
  font-family: var(--font-title);
  font-weight: 800;
}

.demo-schedule__card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 16px 18px;
  border-radius: 22px;
  background: var(--lavender);
}

.demo-schedule__image {
  width: min(62%, 220px);
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.demo-schedule__image:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: 4px;
}

.demo-schedule__image img {
  width: 100%;
}

.demo-schedule__label {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.demo-schedule__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-schedule__next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
}

.demo-schedule__thumb {
  display: block;
  width: 54px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .demo-schedule__card.is-changing .demo-schedule__image,
  .demo-schedule__card.is-changing .demo-schedule__label {
    animation: step-swap 380ms var(--ease-out);
  }

  @keyframes step-swap {
    from {
      opacity: 0;
      transform: translateX(22px);
    }
  }
}

/* Jetons */

.demo-tokens {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@container (min-width: 480px) {
  .demo-tokens {
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
    align-items: center;
  }
  .demo-tokens__foot {
    grid-column: 1 / -1;
  }
}

.demo-tokens__reward {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.demo-tokens__picture {
  width: min(100%, 170px);
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}

.demo-tokens__name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 900;
}

.demo-tokens__side {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.demo-tokens__slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 260px;
}

.token-slot {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 3px solid var(--violet);
  border-radius: 50%;
  background: var(--surface) center / contain no-repeat;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.token-slot:hover {
  background-color: var(--lavender);
}

.token-slot[aria-pressed='true'] {
  background-color: var(--violet);
}

.demo-tokens__slots:not([data-style='classic']) .token-slot {
  border-color: transparent;
  background-color: transparent;
}

.demo-tokens__slots[data-style='dinosaur'] .token-slot {
  background-image: url('/site/img/tokens/dinosaur-outline.webp');
}
.demo-tokens__slots[data-style='dinosaur'] .token-slot[aria-pressed='true'] {
  background-image: url('/site/img/tokens/dinosaur.webp');
}
.demo-tokens__slots[data-style='fish'] .token-slot {
  background-image: url('/site/img/tokens/fish-outline.webp');
}
.demo-tokens__slots[data-style='fish'] .token-slot[aria-pressed='true'] {
  background-image: url('/site/img/tokens/fish.webp');
}
.demo-tokens__slots[data-style='flower'] .token-slot {
  background-image: url('/site/img/tokens/flower-outline.webp');
}
.demo-tokens__slots[data-style='flower'] .token-slot[aria-pressed='true'] {
  background-image: url('/site/img/tokens/flower.webp');
}

.demo-tokens__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1.5px solid var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .token-slot.is-new {
    animation: token-press 460ms var(--ease-out);
  }
}

/* Tableau de communication */

.demo-aac {
  display: grid;
  gap: 14px;
}

.aac__strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.aac__sentence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.aac__hint {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.aac__tools {
  display: flex;
  gap: 6px;
}

.aac__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr);
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: var(--communication-bg);
}

.aac__core,
.aac__page {
  display: grid;
  gap: 8px;
  align-content: start;
}

.aac__core {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-right: 14px;
  border-right: 2px solid var(--communication-line);
}

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

.tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 78px;
  padding: 6px 4px;
  border: 1.5px solid var(--tile-line, var(--line));
  border-radius: 14px;
  background: var(--tile, var(--surface));
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.tile img {
  width: clamp(34px, 62%, 54px);
}

.tile:hover {
  transform: translateY(-2px);
}

.tile:active {
  transform: scale(0.95);
}

/* Une couleur par nature de mot, comme dans l'application. */
.tile--pronoun {
  --tile: #fff4d6;
  --tile-line: #ebd08a;
}
.tile--verb {
  --tile: #e3f3df;
  --tile-line: #b3d3ac;
}
.tile--answer {
  --tile: #fbe6ec;
  --tile-line: #e2b5c3;
}
.tile--social,
.tile--adjective {
  --tile: #e4eefb;
  --tile-line: #b3cdee;
}
.tile--noun {
  --tile: #ffe9d4;
  --tile-line: #efc59a;
}
.tile--regulator {
  --tile: #ffffff;
  --tile-line: var(--violet-500);
}

.aac__sentence .tile {
  width: 62px;
  min-height: 66px;
  cursor: default;
  font-size: 0.72rem;
}

.aac__sentence .tile:hover {
  transform: none;
}

.aac__spoken {
  min-height: 1.6em;
  color: var(--ink-soft);
}

@container (max-width: 430px) {
  .aac__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    padding: 8px;
    gap: 8px;
  }
  .aac__core {
    padding-right: 8px;
  }
  .aac__page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tile {
    min-height: 70px;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .aac__sentence .tile.is-new {
    animation: token-press 380ms var(--ease-out);
  }
}

/* --- En équipe ------------------------------------------------------------ */

.team {
  padding-block: clamp(64px, 9vw, 128px);
}

.team__intro {
  display: grid;
  gap: 16px;
  max-width: 46rem;
}

.team__intro p,
.calm__intro p {
  font-size: 1.15rem;
}

.team__modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 48px);
}

.mode {
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: start;
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: 28px;
}

.mode h3 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 900;
}

.mode--studio {
  background: var(--violet);
  color: #f5f0fa;
}

.mode--studio h3 {
  color: #fff;
}

.mode--studio .text-link {
  color: #fff;
  text-decoration-color: var(--orange);
}

.mode--companion {
  background: var(--lavender);
}

.team__detail {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(40px, 6vw, 80px);
}

.team__shots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin: 0;
}

.team__shots .device--tablet {
  grid-column: 1 / -1;
  grid-row: 1;
  width: min(100%, 700px);
}

.team__shots .device--phone {
  grid-column: 2;
  grid-row: 1;
  width: clamp(120px, 17vw, 210px);
  margin-bottom: -24px;
  z-index: 1;
}

.team__points {
  display: grid;
}

.team__points div {
  display: grid;
  gap: 4px;
  padding-block: 18px;
  border-top: 2px solid var(--line);
}

.team__points div:last-child {
  border-bottom: 2px solid var(--line);
}

.team__points dt {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .team__modes,
  .team__detail {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Le calme est une fonction -------------------------------------------- */

.calm {
  padding-block: clamp(64px, 9vw, 128px);
  background: var(--surface);
}

.calm__intro {
  display: grid;
  gap: 16px;
  max-width: 44rem;
}

.calm__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(32px, 6vw, 88px);
  margin-top: clamp(32px, 5vw, 64px);
}

.calm__list li {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
  padding-top: 22px;
  border-top: 3px solid var(--violet);
}

.glyphs {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.glyphs span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 66px;
  border-radius: 14px;
  background: var(--lavender);
  color: var(--violet);
  font-size: 2.4rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .calm__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Limites et données --------------------------------------------------- */

.trust {
  padding-block: clamp(56px, 8vw, 104px);
}

.trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.boundaries {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 24px;
  background: var(--amber-bg);
  color: var(--amber-ink);
}

.boundaries h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
}

.boundaries p + p {
  margin-top: 10px;
}

.boundaries__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f5d27b;
  color: var(--amber-ink);
}

.data {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.data h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
}

@media (max-width: 900px) {
  .trust__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .boundaries {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Questions fréquentes ------------------------------------------------- */

.faq {
  padding-block: clamp(40px, 6vw, 88px);
}

.faq__list {
  margin-top: clamp(20px, 3vw, 36px);
  border-top: 2px solid var(--line);
}

.faq details {
  border-bottom: 2px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 14px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  color: var(--violet);
  transition: transform 220ms var(--ease-out);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details p {
  max-width: 68ch;
  padding-bottom: 22px;
}

/* --- Appel final ---------------------------------------------------------- */

.closing {
  padding-block: clamp(56px, 8vw, 112px);
  background: var(--violet);
  color: #f5f0fa;
}

.closing__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.closing__inner > div {
  display: grid;
  gap: 16px;
  justify-items: start;
  max-width: 42rem;
}

.closing h2 {
  color: #fff;
}

.closing__mascot {
  width: clamp(120px, 20vw, 250px);
}

.closing__bravo {
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--violet-700);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
}

.closing .actions {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .closing__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.site-footer {
  padding-block: clamp(40px, 6vw, 72px) 28px;
  background: var(--violet-900);
  color: #d1bfe8;
  font-size: 1rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.site-footer a {
  color: #f5f0fa;
  text-decoration: none;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__brand {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.site-footer__note {
  display: grid;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  font-size: 0.94rem;
}

.site-footer__note p:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

@media (max-width: 820px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* --- Pages de contenu ----------------------------------------------------- */

.page-hero {
  padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 80px);
  background: var(--tint, var(--lavender));
}

.page-hero--timer {
  --tint: var(--timer-bg);
  --tint-line: var(--timer-line);
}
.page-hero--schedule {
  --tint: var(--schedule-bg);
  --tint-line: var(--schedule-line);
}
.page-hero--tokens {
  --tint: var(--tokens-bg);
  --tint-line: var(--tokens-line);
}
.page-hero--communication {
  --tint: var(--communication-bg);
  --tint-line: var(--communication-line);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.page-hero__grid > div {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem);
  letter-spacing: -0.022em;
}

.page-hero__lead {
  max-width: 40rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-body);
}

.page-hero__character {
  width: clamp(150px, 26vw, 340px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.breadcrumb a {
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-hero__character {
    order: -1;
    width: 132px;
  }
}

.page__body {
  display: grid;
  gap: clamp(56px, 8vw, 112px);
  padding-block: clamp(48px, 7vw, 104px);
}

.block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.block:nth-of-type(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.block:nth-of-type(even) .block__text {
  order: 2;
}

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

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

.block__figure {
  display: grid;
  justify-items: center;
  margin: 0;
}

.block__figure .device--tablet {
  width: 100%;
}

.block__figure .device--phone {
  width: min(100%, 290px);
}

.block--text,
.block--text:nth-of-type(even) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 46rem;
}

@media (max-width: 900px) {
  .block,
  .block:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
  }
  .block:nth-of-type(even) .block__text {
    order: 0;
  }
}

.uses {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 28px;
  background: var(--lavender);
}

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

.uses ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.uses li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.page__body .faq {
  padding-block: 0;
  max-width: 820px;
}

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

.others ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin-top: clamp(20px, 3vw, 32px);
}

/* Les mêmes tuiles teintées que l'accueil d'un carnet dans l'application. */
.other {
  display: grid;
  gap: 8px;
  justify-items: start;
  height: 100%;
  padding: 20px;
  border: 1.5px solid var(--tint-line);
  border-radius: 22px;
  background: var(--tint);
  color: var(--ink-body);
  text-decoration: none;
  transition: transform 200ms var(--ease-out);
}

.other:hover {
  transform: translateY(-4px);
}

.other img {
  width: 104px;
}

.other span {
  display: grid;
  gap: 4px;
}

.other strong {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
}

.other--timer {
  --tint: var(--timer-bg);
  --tint-line: var(--timer-line);
}
.other--schedule {
  --tint: var(--schedule-bg);
  --tint-line: var(--schedule-line);
}
.other--tokens {
  --tint: var(--tokens-bg);
  --tint-line: var(--tokens-line);
}
.other--communication {
  --tint: var(--communication-bg);
  --tint-line: var(--communication-line);
}

@media (max-width: 720px) {
  .others ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pages légales */

.page__body--prose {
  gap: 20px;
  max-width: calc(820px + var(--gutter) * 2);
}

.prose-card {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 36px);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.prose-card h2 {
  margin-bottom: 4px;
  font-size: 1.5rem;
}

.prose-card h3 {
  margin-top: 10px;
  font-size: 1.05rem;
}

.prose-card--notice {
  border-color: #f5d27b;
  background: var(--amber-bg);
  color: var(--amber-ink);
}

.updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

/* --- Tarifs --------------------------------------------------------------- */

.pricing--home {
  padding-block: clamp(64px, 9vw, 128px);
  background: var(--surface);
}

.pricing__intro {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.pricing__intro p {
  font-size: 1.15rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
}

.plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  padding: clamp(22px, 2.8vw, 34px);
  border: 1.5px solid var(--line);
  border-radius: 28px;
  background: var(--canvas);
}

.page .plan {
  background: var(--surface);
}

.plan h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 900;
}

.plan__audience {
  color: var(--ink-soft);
}

.plan__price {
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.15;
}

.plan__price strong {
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.plan__alt {
  margin-top: -8px;
  color: var(--ink-soft);
  font-family: var(--font-title);
  font-weight: 800;
}

.plan .facts {
  align-content: start;
  padding-block: 6px;
}

/* L'offre du milieu porte la couleur de la marque : c'est celle des
   professionnels, à qui le site s'adresse autant qu'aux familles. */
.plan.plan--studio-pro {
  border-color: var(--violet);
  background: var(--violet);
  color: #f5f0fa;
}

.plan--studio-pro h3,
.plan--studio-pro .plan__price {
  color: #fff;
}

.plan--studio-pro .plan__audience,
.plan--studio-pro .plan__alt {
  color: #d1bfe8;
}

.plan--studio-pro .facts .icon {
  background: var(--orange);
}

.plan--studio-pro .button--primary {
  background: var(--orange);
  color: var(--ink);
}

.plan--studio-pro .button--primary:hover {
  background: #f0ac63;
}

.plan--studio-pro :focus-visible {
  outline-color: var(--orange);
}

.companion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px clamp(20px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(14px, 2vw, 24px);
  padding: clamp(22px, 2.8vw, 34px);
  border-radius: 28px;
  background: var(--lavender);
}

.companion > div {
  display: grid;
  gap: 8px;
  max-width: 44rem;
}

.companion h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  font-weight: 900;
}

.plans__note,
.pricing__more {
  margin-top: 20px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .plans,
  .companion {
    grid-template-columns: minmax(0, 1fr);
  }
}
.tool-nav {
  display: none;
}

.site-header__actions {
  margin-left: auto;
}
