/* ============================================================================
   Le site de Fulmar, quatrième édition (2026-11-24) : à la manière d'Apple
   (skill apple-design, « Apple jusqu'au bout », choix d'Augustin).
   - Police du système partout (SF Pro sur Mac et iPhone), approche réglée par
     taille ; le pochoir ne vit plus que dans le logo, vectorisé.
   - Blanc, gris de tuile, vrai noir ; l'orange de la marque pour le logo et les
     grands textes, un orange plus profond pour les boutons et les liens (lisible
     en petit). Vert, jaune et rouge restent les états d'un NAS.
   - Matières translucides (barre, feuille du menu, notification), ressorts à
     amortissement critique, retour au toucher dès l'appui, mouvement réduit,
     transparence réduite et contraste renforcé respectés.
   Charte : docs/marque/. Système : DESIGN.md.
   ========================================================================= */

:root {
  color-scheme: light dark;

  /* --- Lettres : celles du système ------------------------------------------ */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --code: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* --- Fonds et encres ------------------------------------------------------- */
  --bg: light-dark(#ffffff, #000000);
  --tile: light-dark(#f5f5f7, #161617);
  --tile-raised: light-dark(#ffffff, #1d1d1f);
  --ink: light-dark(#1d1d1f, #f5f5f7);
  --muted: light-dark(#6e6e73, #86868b);
  --rule: light-dark(#d2d2d7, #424245);
  --hairline: light-dark(#e8e8ed, #2c2c2e);

  /* --- La marque ------------------------------------------------------------- */
  --brand: #f25914;
  /* Boutons et liens : un orange plus profond mais sans bleu, vif ; blanc dessus 4,7:1. */
  --button: #cc4700;
  --button-hover: #b33e00;
  --link: light-dark(#cc4700, #ff8a50);

  /* --- Les états d'un NAS (couleurs système d'Apple) ------------------------- */
  --ok: light-dark(#34c759, #30d158);
  --ok-ink: light-dark(#1d7a3a, #30d158);
  --watch: light-dark(#ffcc00, #ffd60a);
  --watch-ink: light-dark(#8a5a00, #ffd60a);
  --fail: light-dark(#ff3b30, #ff453a);
  --fail-ink: light-dark(#c81e1e, #ff6961);

  /* --- Matières -------------------------------------------------------------- */
  --chrome: light-dark(rgb(255 255 255 / 0.72), rgb(22 22 23 / 0.72));
  /* Presque opaque : imbriquée dans la barre floutée, la feuille ne peut pas flouter la page. */
  --sheet: light-dark(rgb(255 255 255 / 0.98), rgb(22 22 23 / 0.98));
  --shadow-tile: 0 2px 12px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-shot: 0 30px 60px -20px rgb(0 0 0 / 0.25), 0 8px 20px -8px rgb(0 0 0 / 0.12);

  /* --- Mouvement : ressort à amortissement critique (réponse 0,35 s) ---------- */
  --spring: linear(0, 0.0604, 0.1881, 0.3327, 0.4695, 0.5881, 0.6859, 0.7637, 0.8242, 0.8704, 0.9052, 0.9311, 0.9502, 0.9642, 0.9743, 0.9817, 0.9869, 0.9907, 0.9934, 0.9954, 0.9967, 0.9977, 0.9984, 0.9989, 0.9992, 1);
  --spring-time: 0.53s;
  --press: 100ms ease-out;

  /* --- Mise en page ---------------------------------------------------------- */
  --wide: 1180px;
  --narrow: 980px;
  --gutter: max(22px, env(safe-area-inset-left));
  --bar: 52px;
  --radius-tile: 28px;
  --radius-card: 18px;
  --radius-field: 12px;
}

/* ============================================================================
   Base
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 12px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  overflow-x: clip;
}

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

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

fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

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

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  color: var(--ink);
}

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

strong {
  font-weight: 600;
}

::selection {
  background: color-mix(in srgb, var(--brand) 28%, transparent);
}

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

main:focus {
  outline: none;
}

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

.nowrap {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 980px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.indent {
  max-width: var(--narrow);
  margin-inline: auto;
}

/* ============================================================================
   Boutons : un retour dès l'appui, jamais au relâché
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: 980px;
  font: inherit;
  font-size: 1.0625rem;
  letter-spacing: -0.022em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform var(--press);
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary {
  background: var(--button);
  color: #ffffff;
}

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

.btn-secondary {
  background: transparent;
  color: var(--link);
  border-color: currentColor;
}

.btn-secondary:hover {
  background: var(--button);
  border-color: var(--button);
  color: #ffffff;
}

.btn-small {
  min-height: 30px;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  letter-spacing: -0.016em;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

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

.text-link::after {
  content: "\203A";
  margin-left: 0.25em;
}

/* ============================================================================
   La barre : une matière translucide, le contenu passe dessous
   ========================================================================= */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

/* Bord du défilement : le filet n'apparaît que quand le contenu passe sous la barre. */
@supports (animation-timeline: scroll()) {
  .masthead {
    animation: scroll-edge linear both;
    animation-timeline: scroll();
    animation-range: 0 48px;
  }
}

@keyframes scroll-edge {
  from {
    box-shadow: 0 1px 0 transparent;
  }
  to {
    box-shadow: 0 1px 0 var(--hairline);
  }
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--bar);
}

.brand {
  display: flex;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  border-radius: 6px;
}

.wordmark:hover {
  text-decoration: none;
}

.logo {
  width: auto;
  height: 24px;
}

.logo .ring {
  stroke: var(--brand);
}

.masthead-nav {
  display: none;
  gap: 2rem;
}

.masthead-nav a {
  color: var(--ink);
  opacity: 0.8;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.masthead-nav a:hover,
.masthead-nav a[aria-current="true"] {
  opacity: 1;
  text-decoration: none;
}

.masthead-nav a[aria-current="true"] {
  font-weight: 600;
}

.masthead-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: none;
  color: var(--ink);
  opacity: 0.8;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
}

.lang-switch:hover {
  opacity: 1;
  text-decoration: none;
}

.masthead-cta.btn-small {
  min-height: 28px;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
}

/* --- Le menu du téléphone : une feuille translucide, <details> sans script --- */

.menu {
  display: block;
}

.menu-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  list-style: none;
  cursor: pointer;
  border-radius: 980px;
  -webkit-tap-highlight-color: transparent;
}

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

.menu-icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform var(--spring-time) var(--spring),
    top var(--spring-time) var(--spring);
}

.menu-icon::before {
  top: 2px;
}

.menu-icon::after {
  top: 8.5px;
}

.menu[open] .menu-icon::before {
  top: 5.25px;
  transform: rotate(45deg);
}

.menu[open] .menu-icon::after {
  top: 5.25px;
  transform: rotate(-45deg);
}

/* La barre a un flou d'arrière-plan : elle devient le repère des éléments fixés qu'elle
   contient. La feuille se place donc sous elle, sur toute la hauteur restante. */
.menu-sheet {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--bar));
  z-index: 49;
  padding: 1.5rem var(--gutter) 3rem;
  background: var(--sheet);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  overflow-y: auto;
}

.menu-sheet nav {
  display: grid;
  gap: 0.25rem;
  max-width: var(--narrow);
  margin-inline: auto;
}

.menu-sheet a {
  display: block;
  padding: 0.4rem 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.007em;
  line-height: 1.2;
}

.menu-sheet a:hover {
  text-decoration: none;
  color: var(--link);
}

@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-sheet {
    animation: sheet-in var(--spring-time) var(--spring) both;
  }
  .menu[open] .menu-sheet a {
    animation: sheet-link var(--spring-time) var(--spring) both;
  }
  .menu[open] .menu-sheet a:nth-child(2) {
    animation-delay: 20ms;
  }
  .menu[open] .menu-sheet a:nth-child(3) {
    animation-delay: 40ms;
  }
  .menu[open] .menu-sheet a:nth-child(4) {
    animation-delay: 60ms;
  }
  .menu[open] .menu-sheet a:nth-child(5) {
    animation-delay: 80ms;
  }
  .menu[open] .menu-sheet a:nth-child(6) {
    animation-delay: 100ms;
  }
  .menu[open] .menu-sheet a:nth-child(7) {
    animation-delay: 120ms;
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    -webkit-backdrop-filter: saturate(100%) blur(0);
    backdrop-filter: saturate(100%) blur(0);
  }
}

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

:root:has(.menu[open]) {
  overflow: hidden;
}

@media (min-width: 64rem) {
  .masthead-nav,
  .lang-switch {
    display: flex;
  }
  .menu {
    display: none;
  }
}

/* --- La proposition de langue ------------------------------------------------ */

.suggest {
  background: var(--tile);
  font-size: 0.875rem;
  letter-spacing: -0.016em;
}

.suggest-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 48px;
  text-align: center;
}

.suggest-close {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform var(--press);
}

.suggest-close:hover {
  background: var(--hairline);
}

.suggest-close:active {
  transform: scale(0.92);
}

.suggest-close span::before,
.suggest-close span::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--muted);
}

.suggest-close span::before {
  transform: rotate(45deg);
}

.suggest-close span::after {
  transform: rotate(-45deg);
}

/* ============================================================================
   Sections : de l'espace, des titres centrés, des tuiles
   ========================================================================= */

.section {
  padding-block: clamp(4.5rem, 11vw, 8rem);
}

.section-head {
  max-width: var(--narrow);
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.section-title h2 {
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.005em;
}

.section-lead {
  max-width: 40rem;
  margin: 1rem auto 0;
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.3125rem);
  line-height: 1.38;
  letter-spacing: 0.011em;
  color: var(--muted);
}

.calibration {
  display: none;
}

/* Sur le gris de tuile, un lien un ton plus profond reste au-dessus de 4,5:1. */
.instrument,
.road-col,
.join,
.section-sunk,
.suggest,
.footer {
  --link: light-dark(#b33e00, #ff8a50);
}

/* Les bandes : gris de tuile (fondateurs) et vrai noir (contexte, IA et API).
   Dans une bande, les jetons sont redéfinis : chaque composant suit. */
.section-sunk {
  /* Fond fixé en dur : la bande redéfinit --tile pour les tuiles qu'elle porte. */
  background: light-dark(#f5f5f7, #161617);
  --tile: var(--tile-raised);
}

.context,
.section-night {
  --bg: #000000;
  --tile: #1d1d1f;
  --tile-raised: #2c2c2e;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --rule: #424245;
  --hairline: #2c2c2e;
  --link: #ff8a50;
  --ok-ink: #30d158;
  --watch-ink: #ffd60a;
  --fail-ink: #ff6961;
  color-scheme: dark;
  background: #000000;
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  .context,
  .section-night {
    background: #0c0c0d;
  }
}

/* ============================================================================
   L'ouverture : le titre, la phrase, les actions, puis le produit en grand
   ========================================================================= */

.hero {
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  text-align: center;
  overflow: clip;
}

.hero-head {
  max-width: 56rem;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2.75rem, 1.2rem + 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero h1 .h1-a,
.hero h1 em {
  display: block;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero .lead {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.3125rem);
  line-height: 1.38;
  letter-spacing: 0.011em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem 1rem;
  margin-top: 2rem;
}

.compat,
.stage {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  letter-spacing: -0.016em;
  color: var(--muted);
}

.stage {
  margin-top: 0.4rem;
}

.hero-shot {
  max-width: var(--wide);
  margin: clamp(3rem, 8vw, 5rem) auto 0;
}

.hero-shot .shot-frame {
  border-radius: clamp(12px, 2vw, 22px);
  box-shadow: var(--shadow-shot);
}

/* ============================================================================
   Le contexte : Synology et Active Insight, en bande noire
   ========================================================================= */

.context {
  padding-block: clamp(4.5rem, 11vw, 8rem);
}

.context-grid {
  max-width: var(--narrow);
  margin-inline: auto;
  text-align: center;
}

.context h2 {
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.005em;
}

.context-body {
  margin-top: 1.5rem;
}

.context-lead {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.3125rem);
  line-height: 1.38;
  letter-spacing: 0.011em;
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.fact {
  padding: 2rem;
  border-radius: var(--radius-card);
  background: var(--tile);
}

.fact-date {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.007em;
  color: var(--brand);
}

.fact dd {
  margin-top: 0.5rem;
  color: var(--ink);
}

.source {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.context-ours {
  max-width: 34rem;
  margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.004em;
  color: var(--ink);
}

@media (min-width: 40rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================================
   Le calcul : une tuile, une phrase réglable, deux lectures, un verdict
   ========================================================================= */

.instrument {
  max-width: var(--narrow);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-tile);
  background: var(--tile);
}

.sentence {
  text-align: center;
}

.sentence-line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.004em;
}

.sentence-line + .sentence-line {
  margin-top: 0.5rem;
}

.sentence-submit {
  margin-top: 1rem;
}

/* Le compteur : − et + apparaissent avec le script. */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  margin-inline: 0.15em;
  vertical-align: middle;
  border-radius: 980px;
  background: var(--tile-raised);
  box-shadow: var(--shadow-tile);
}

.field-inline {
  width: 3.2ch;
  padding: 0.05em 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.field-inline::-webkit-outer-spin-button,
.field-inline::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper:not(:has(.stepper-button:not([hidden]))) .field-inline {
  width: 4ch;
}

.stepper-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, transform var(--press);
}

.stepper-button:hover {
  background: var(--hairline);
}

.stepper-button:active {
  transform: scale(0.9);
  background: var(--rule);
}

.stepper-minus,
.stepper-plus {
  position: relative;
  width: 14px;
  height: 14px;
}

.stepper-minus::before,
.stepper-plus::before,
.stepper-plus::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: currentColor;
}

.stepper-minus::before,
.stepper-plus::before {
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
}

.stepper-plus::after {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
}

/* Le sélecteur segmenté : la pastille glisse sur un ressort. */
.segmented {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  vertical-align: middle;
  border-radius: 980px;
  background: light-dark(rgb(118 118 128 / 0.12), rgb(118 118 128 / 0.24));
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.segment {
  position: relative;
  z-index: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.segment input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.segment span {
  display: block;
  padding: 0.55em 1.1em;
  border-radius: 980px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.segment input:checked + span {
  color: var(--ink);
  font-weight: 600;
}

.segment input:focus-visible + span {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
}

.segmented-thumb {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 980px;
  background: var(--tile-raised);
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.12), 0 3px 1px rgb(0 0 0 / 0.04);
  transition: transform var(--spring-time) var(--spring);
}

.segmented:has(.segment:nth-of-type(2) input:checked) .segmented-thumb {
  transform: translateX(100%);
}

/* Les deux lectures. */
.instrument-grid {
  display: block;
}

.readout {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 2.75rem);
}

.reading {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--tile-raised);
  text-align: center;
}

.reading-main {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.reading-name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  color: var(--muted);
}

.reading-value {
  margin-top: 0.6rem;
}

.figure,
.figure-big,
.matrix-figure,
.counter-n,
.fact-date {
  font-variant-numeric: tabular-nums lining-nums;
}

.reading-value .figure {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.figure.is-free,
.figure-big.is-free {
  color: var(--ok-ink);
}

.reading-unit {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  letter-spacing: -0.016em;
  color: var(--muted);
}

.reading-detail {
  max-width: 24rem;
  margin: 0.9rem auto 0;
  font-size: 0.875rem;
  line-height: 1.43;
  letter-spacing: -0.016em;
  color: var(--muted);
}

.reading-engine {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  letter-spacing: -0.016em;
  color: var(--muted);
  text-align: center;
}

.reading-engine .figure {
  font-size: 1.3125rem;
  font-weight: 600;
}

.instrument-foot {
  max-width: 44rem;
  margin: 1.75rem auto 0;
  text-align: center;
}

.verdict {
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.1875rem);
  line-height: 1.42;
  letter-spacing: 0.006em;
}

.verdict-lead {
  font-weight: 600;
}

.verdict-lead.is-free {
  color: var(--ok-ink);
}

.instrument-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.instrument-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .instrument.is-settling .reading-value .figure {
    animation: settle var(--spring-time) var(--spring);
  }
}

@keyframes settle {
  from {
    opacity: 0.35;
    transform: translateY(6px);
  }
}

@media (min-width: 45rem) {
  .readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================================
   Face à Active Insight : un tableau, notre colonne en avant
   ========================================================================= */

.versus-wrap {
  max-width: var(--narrow);
  margin-inline: auto;
}

.versus {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.versus th,
.versus td {
  padding: 1.1rem 0.9rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.43;
}

.versus thead th {
  padding-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.011em;
  border-bottom: 1px solid var(--rule);
}

.versus thead th.versus-us {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--brand);
}

.versus-corner {
  width: 22%;
  border-bottom: 1px solid var(--rule);
}

.versus tbody tr {
  border-bottom: 1px solid var(--hairline);
}

.versus tbody th {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
}

.versus td {
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.versus td.versus-us {
  color: var(--ink);
}

.section > .wrap > .source {
  text-align: center;
  margin-top: 1.5rem;
}

@media (max-width: 39.99rem) {
  .versus thead {
    display: none;
  }
  .versus tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
    padding-block: 1rem;
  }
  .versus tbody th {
    grid-column: 1 / -1;
    padding: 0 0 0.5rem;
  }
  .versus td {
    padding: 0;
  }
  .versus td::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
  }
}

/* ============================================================================
   Ce que voit Fulmar : des tuiles, puis les captures
   ========================================================================= */

.scale {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-tile);
  background: var(--tile);
  text-align: center;
}

.scale-lead {
  max-width: 34rem;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.3125rem, 1.1rem + 0.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.009em;
}

.scale-steps {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.scale-step {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--tile-raised);
}

.scale-bar {
  display: block;
  width: 2.5rem;
  height: 6px;
  border-radius: 6px;
  background: var(--ok);
}

.scale-step.is-watch .scale-bar {
  background: var(--watch);
}

.scale-step.is-fail .scale-bar {
  background: var(--fail);
}

.scale-word {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.011em;
  color: var(--ok-ink);
}

.scale-step.is-watch .scale-word {
  color: var(--watch-ink);
}

.scale-step.is-fail .scale-word {
  color: var(--fail-ink);
}

.scale-text {
  margin-top: 0.4rem;
}

.scale-nas {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  letter-spacing: -0.016em;
  color: var(--muted);
}

.scale-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.spec {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.spec-row {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--tile);
}

.spec dt {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.spec dd {
  margin-top: 0.4rem;
  color: var(--muted);
}

@media (min-width: 45rem) {
  .scale-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .spec {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Les captures : un cadre arrondi, une ombre portée, une légende discrète. */
.shots {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  max-width: var(--wide);
}

.shot figcaption {
  max-width: 40rem;
  margin: 0.9rem auto 0;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-align: center;
}

.shot-tag {
  font-weight: 600;
  color: var(--ink);
}

.shot-frame {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--tile);
  box-shadow: var(--shadow-tile);
}

.shot-frame img {
  width: 100%;
}

.shots-duo .shot:last-child .shot-frame {
  max-width: 300px;
  margin-inline: auto;
  border-radius: 36px;
}

@media (min-width: 56rem) {
  .shots-duo {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    align-items: end;
  }
}

/* ============================================================================
   L'IA et l'API : en bande noire
   ========================================================================= */

.ai {
  display: grid;
  gap: 1.5rem 1rem;
  max-width: var(--wide);
}

@media (min-width: 64rem) {
  .ai {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
  .ai-points {
    grid-column: 1 / -1;
  }
}

.ai-label {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.ai-chat-card {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-card);
  background: var(--tile);
}

.ai-turn + .ai-turn {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}

.ai-who {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.ai-turn:not(.ai-turn-you) .ai-who {
  color: var(--brand);
}

.ai-question {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.011em;
}

.ai-answer {
  margin-top: 0.35rem;
}

.ai-trace {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.ai-trace code {
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: var(--tile-raised);
  color: var(--ink);
  font-family: var(--code);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.ai-code pre {
  margin: 0;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: #000000;
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--ink);
  font-family: var(--code);
  font-size: 0.8125rem;
  line-height: 1.65;
  letter-spacing: 0;
  scrollbar-color: var(--rule) transparent;
}

.ai-code code {
  font-family: inherit;
}

.tok-key {
  color: var(--muted);
}

.tok-verb {
  font-weight: 700;
  color: var(--brand);
}

.tok-fail {
  color: var(--fail-ink);
}

.ai-points {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.ai-points li {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--tile);
}

.ai-points h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.ai-points p {
  margin-top: 0.5rem;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .ai-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================================
   Comment ça marche : trois étapes, la notification en matière
   ========================================================================= */

.route {
  display: grid;
  gap: 1rem;
  max-width: var(--wide);
  margin-inline: auto;
}

.station {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-tile);
  background: var(--tile);
}

.station-mark {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}

.station-relay .station-mark {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--brand);
}

.station h3 {
  margin-top: 1.25rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.007em;
}

.station-note {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  letter-spacing: -0.016em;
  color: var(--muted);
}

.station-text {
  margin-top: 1rem;
}

.route-local {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: -0.016em;
  color: var(--muted);
  text-align: center;
}

/* La notification : une matière translucide posée sur l'orange. */
.notif {
  margin-top: 1.5rem;
  padding: 1.25rem 1rem 1rem;
  border-radius: 22px;
  background: var(--brand);
}

.notif-label {
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.notif-card {
  padding: 0.8rem 1rem 0.9rem;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.25);
  color: #1d1d1f;
}

.notif-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: #3a3a3c;
}

.notif-app {
  font-weight: 600;
  color: #1d1d1f;
}

.notif-head time {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.state-word {
  font-weight: 600;
}

.state-word.is-fail {
  color: #c81e1e;
}

.notif-title {
  margin-top: 0.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.notif-body {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: -0.016em;
  color: #3a3a3c;
}

@media (min-width: 56rem) {
  .route {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

/* ============================================================================
   Les prix : un tableau à comparer, trois formules en colonnes
   ========================================================================= */

.matrix-wrap {
  max-width: var(--narrow);
  margin-inline: auto;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.matrix th,
.matrix td {
  padding: 0.95rem 0.6rem;
  vertical-align: middle;
}

.matrix thead th,
.matrix-corner {
  vertical-align: top;
  padding-bottom: 1.5rem;
}

.matrix-corner {
  width: 44%;
}

.matrix-plan {
  text-align: center;
  font-weight: 400;
}

.matrix-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.matrix-figure {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
}

.matrix-note,
.matrix-audience {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.matrix-audience {
  margin-top: 0.3rem;
  font-weight: 600;
  color: var(--ink);
}

.matrix-group th {
  padding-top: 2.5rem;
  padding-bottom: 0.75rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.011em;
  border-bottom: 1px solid var(--rule);
}

.matrix tbody tr:not(.matrix-group) {
  border-bottom: 1px solid var(--hairline);
}

.matrix tbody th[scope="row"] {
  text-align: left;
  font-weight: 400;
  line-height: 1.4;
}

.matrix td {
  text-align: center;
}

.matrix-check {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  color: var(--ink);
}

.matrix-dash {
  display: inline-block;
  width: 0.8rem;
  height: 1.5px;
  vertical-align: middle;
  background: var(--rule);
}

.matrix-word {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.matrix-soon {
  font-size: 0.875rem;
  color: var(--muted);
}

.prices-note {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  font-size: 0.875rem;
  letter-spacing: -0.016em;
  color: var(--muted);
  text-align: center;
}

.prices-note:first-child {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
  letter-spacing: -0.022em;
  color: var(--ink);
}

@media (max-width: 39.99rem) {
  .matrix th,
  .matrix td {
    padding: 0.75rem 0.2rem;
  }
  .matrix-corner {
    width: 34%;
  }
  .matrix-name {
    font-size: 1.0625rem;
  }
  .matrix-figure {
    font-size: 1.3125rem;
  }
  .matrix-note,
  .matrix-audience {
    font-size: 0.6875rem;
  }
  .matrix tbody th[scope="row"] {
    padding-left: 0;
    font-size: 0.875rem;
  }
  .matrix-word,
  .matrix-soon {
    font-size: 0.75rem;
  }
}

/* ============================================================================
   Les fondateurs : bande grise, deux offres en tuiles blanches
   ========================================================================= */

.founders-soon {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  font-size: 1.3125rem;
  line-height: 1.38;
  letter-spacing: 0.011em;
  text-align: center;
}

.offers {
  display: grid;
  gap: 1rem;
  max-width: var(--narrow);
  margin-inline: auto;
}

.offer {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-tile);
  background: var(--tile);
}

.offer h3,
.offer-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.007em;
}

.offer > p {
  margin-top: 0.9rem;
  color: var(--muted);
}

.offer > .offer-terms {
  color: var(--ink);
  font-weight: 600;
}

.offers-page {
  margin-block: 2rem;
}

@media (min-width: 56rem) {
  .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.guarantee {
  max-width: 40rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  text-align: center;
}

.guarantee h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.guarantee p {
  margin-top: 0.6rem;
  color: var(--muted);
}

/* Le compteur des places Perso. */
.counter {
  margin-top: 1.75rem;
}

.counter-figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
}

.counter-n {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
}

.counter-n {
  transition: opacity 0.24s ease;
}

.counter-n.is-changing {
  opacity: 0.25;
}

.counter-label {
  font-weight: 600;
}

.counter-gone,
.counter-then,
.counter-full {
  font-size: 0.875rem;
  letter-spacing: -0.016em;
  color: var(--muted);
}

.counter-full {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.counter-live {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.gauge {
  margin-top: 1rem;
}

.gauge-rail {
  width: 100%;
  height: 18px;
  overflow: visible;
}

.gauge-ticks {
  stroke: var(--rule);
  stroke-width: 1;
}

.gauge-track {
  fill: var(--hairline);
}

.gauge-fill {
  fill: var(--brand);
}

.gauge-tier {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.gauge-legend {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* ============================================================================
   Formulaires : des champs arrondis, une erreur à côté du champ
   ========================================================================= */

.buy,
.join {
  display: grid;
  gap: 1.25rem;
}

.buy {
  margin-top: 1.75rem;
}

.join {
  max-width: 36rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-tile);
  background: var(--tile);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.radios legend,
.join-optional > legend {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.016em;
}

.join-optional > legend {
  margin-bottom: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-field);
  background: var(--tile-raised);
  color: var(--ink);
  font: inherit;
  letter-spacing: -0.022em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.95rem) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent);
}

.field input[aria-invalid="true"],
.check input[aria-invalid="true"] {
  border-color: var(--fail);
}

.help {
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.pro-total {
  font-weight: 600;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.check,
.radio {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.check input,
.radio input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
  accent-color: var(--button);
}

.radios {
  display: grid;
  gap: 0.5rem;
}

.join-row {
  display: grid;
  gap: 1rem;
}

.join-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.form-error {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-field);
  background: color-mix(in srgb, var(--fail) 10%, transparent);
  color: var(--fail-ink);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.016em;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inline-form {
  display: inline;
}

@media (min-width: 40rem) {
  .join-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

/* ============================================================================
   La feuille de route : quatre tuiles
   ========================================================================= */

.road {
  display: grid;
  gap: 1rem;
}

.road.indent {
  max-width: var(--wide);
}

.road-col {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--tile);
}

.road-col h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.road-date {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  color: var(--link);
}

.road-col ul {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.road-col li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9375rem;
  line-height: 1.43;
  letter-spacing: -0.02em;
}

.road-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.road-done li::before {
  background: var(--brand);
}

@media (min-width: 40rem) {
  .road {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .road {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ============================================================================
   Les questions : un accordéon, le signe tourne sur un ressort
   ========================================================================= */

.faq-list {
  max-width: 50rem;
  border-top: 1px solid var(--rule);
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.011em;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.faq-sign {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform var(--spring-time) var(--spring);
}

.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--ink);
}

.faq-sign::before {
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
}

.faq-sign::after {
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
}

.faq-item[open] .faq-sign {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 44rem;
  padding-bottom: 1.5rem;
  color: var(--muted);
}

/* ============================================================================
   Pages de passage, pages juridiques, pied de page
   ========================================================================= */

.message {
  padding-block: clamp(4rem, 12vw, 8rem);
}

.message-wrap {
  max-width: 40rem;
  text-align: center;
}

.message-wrap > * + * {
  margin-top: 1rem;
}

.message h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.message .buy,
.message .join,
.message form {
  text-align: left;
}

.legal {
  padding-block: clamp(3rem, 8vw, 5rem) clamp(4rem, 10vw, 7rem);
}

.legal-wrap {
  max-width: 46rem;
}

.legal-wrap h1 {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.003em;
}

.legal-wrap h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.009em;
}

.legal-wrap h3 {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  font-weight: 600;
}

.legal-wrap p,
.legal-wrap ul {
  margin-top: 0.85rem;
}

.legal-wrap ul > li {
  position: relative;
  padding-left: 1.1rem;
}

.legal-wrap ul > li + li {
  margin-top: 0.4rem;
}

.legal-wrap ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.legal-draft {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 980px;
  background: color-mix(in srgb, var(--watch) 28%, transparent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.016em;
}

.legal-intro {
  color: var(--muted);
}

.todo {
  padding: 0.05em 0.35em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--watch) 35%, transparent);
  color: var(--ink);
  font-weight: 600;
}

.footer {
  padding-block: 2rem 3rem;
  background: var(--tile);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer .logo {
  height: 20px;
}

.footer-publisher {
  margin-top: 0.6rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.footer-links a {
  color: var(--ink);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-note {
  max-width: 40rem;
}

/* ============================================================================
   Entrées au défilement : discrètes, et seulement pour ce qu'on montre
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .shot,
    .instrument,
    .scale,
    .route,
    .matrix-wrap,
    .versus-wrap,
    .offers,
    .road,
    .facts,
    .ai {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

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

/* ============================================================================
   Préférences du visiteur : mouvement, transparence, contraste
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:active,
  .stepper-button:active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .masthead,
  .menu-sheet {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .notif-card {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: light-dark(#3a3a3c, #d1d1d6);
    --rule: light-dark(#1d1d1f, #f5f5f7);
  }
  .masthead {
    background: var(--bg);
    box-shadow: 0 1px 0 var(--rule);
  }
  .instrument,
  .scale,
  .spec-row,
  .station,
  .offer,
  .road-col,
  .fact,
  .reading,
  .join,
  .ai-chat-card,
  .ai-points li {
    box-shadow: inset 0 0 0 1px var(--rule);
  }
}

@media print {
  .masthead,
  .menu,
  .suggest,
  .footer-links {
    display: none;
  }
  .context,
  .section-night,
  .section-sunk {
    background: none;
    color: #000000;
  }
}
