/* tabi — feuille unique du site.
   DA « carnet tamponné », reprise de src/lib/theme.ts : papier washi crème,
   encre sumi, indigo d'estampe pour l'action. Règle héritée de l'app et tenue
   ici aussi : le vermillon ne porte JAMAIS une action ordinaire, il ne marque
   que le moment où quelque chose vient s'estampiller. */

/* ---------------------------------------------------------------- polices */
/* Auto-hébergées : le site n'appelle aucun domaine tiers (cf. confidentialité).
   Mincho est livré en sous-ensemble latin — 8,2 Mo de jeu CJK complet n'ont
   rien à faire sur une page latine (48 Ko une fois réduit). */

@font-face {
  font-family: 'Jakarta';
  src: url('../fonts/PlusJakartaSans-500.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Jakarta';
  src: url('../fonts/PlusJakartaSans-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Jakarta';
  src: url('../fonts/PlusJakartaSans-800.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Mincho';
  src: url('../fonts/ShipporiMincho-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Mincho';
  src: url('../fonts/ShipporiMincho-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */

:root {
  --paper: #f5f1ea;
  --surface: #fdfaf3;
  --surface-alt: #eae3d5;
  --hairline: #e0d8c7;

  --ink: #211d15;
  --ink-soft: #6c6353;
  --ink-faint: #a29884;

  --accent: #2e5f7f;
  --accent-wash: #e3eaee;
  --seal: #c8472b;
  --jade: #4e7d5b;

  --sumi: #191610; /* fond de la carte sombre */
  --on-dark: #f5f2ea;
  --on-dark-soft: rgba(245, 242, 234, 0.64);
  --on-dark-faint: rgba(245, 242, 234, 0.34);
  --on-dark-rule: rgba(245, 242, 234, 0.14);

  --r-field: 12px;
  --r-card: 18px;
  --r-sheet: 28px;

  /* Easing signature de l'app — « ma », le temps qui se pose. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: clamp(20px, 5vw, 48px);
  --measure: 1140px;
  --band: clamp(76px, 11vw, 148px);

  --shadow: 0 8px 20px rgba(33, 29, 21, 0.07);
  --shadow-lift: 0 18px 44px rgba(33, 29, 21, 0.12);
}

/* ------------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jakarta', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fibre du washi — une seule texture, très basse, jamais sur les cartes. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-field);
  z-index: 100;
  text-decoration: none;
}
.skip:focus {
  left: var(--gutter);
}

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

/* ------------------------------------------------------------ typographie */

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.h1,
.h2,
.h3 {
  font-family: 'Mincho', ui-serif, Georgia, serif;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

.h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 600;
}

.lede {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

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

.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--surface);
}

/* ------------------------------------------------------------ navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--hairline);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand__seal {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  transform: rotate(-4deg);
}
.brand__name {
  font-family: 'Mincho', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--ink);
}

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.lang a,
.lang span {
  padding: 6px 12px;
  text-decoration: none;
  color: var(--ink-faint);
}
.lang [aria-current='true'] {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 780px) {
  .nav__links {
    display: none;
  }
}

/* --------------------------------------------------------------- boutons */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: var(--r-field);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.badge--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.badge--ghost:hover {
  border-color: var(--ink-faint);
}
.badge__icon {
  width: 21px;
  height: 21px;
  flex: none;
}
.badge__text {
  display: grid;
  line-height: 1.15;
}
.badge__kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.66;
}
.badge__name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.badges-note {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

/* --------------------------------------------------------- hero + sceau */

.hero {
  padding-block: clamp(52px, 8vw, 92px) var(--band);
}

.hero__grid {
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 940px) {
  .hero__grid {
    /* La colonne de texte mène : le titre doit tenir « Partage un reel. » sur
       une ligne, sinon la thèse se lit en quatre morceaux. */
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
    gap: clamp(40px, 4.5vw, 60px);
  }
}

/* La scène : le geste de l'app joué une fois, en vrai.
   C'est le seul endroit de la page où le vermillon apparaît en action. */
.stage {
  position: relative;
  padding: 30px clamp(18px, 3vw, 34px) 26px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow);
}

.stage__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.replay {
  border: 0;
  background: none;
  padding: 4px 2px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.replay:hover {
  color: var(--accent);
}

/* Le lien partagé */
.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  padding: 13px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-field);
  background: var(--paper);
}
.chip__icon {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--ink-faint);
}
.chip__src {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.chip__url {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Balayage indigo : tabi lit la description. */
.chip__scan {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent
  );
}

/* La liaison — la route tiretée de l'app, verticale ici. */
.stage__link {
  display: block;
  height: 46px;
  margin-inline: auto;
  width: 2px;
  border-left: 2px dashed var(--hairline);
  opacity: 0;
}

/* Le spot rangé */
.spot {
  position: relative;
  padding: 20px 22px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--paper);
  opacity: 0;
}
.spot__cat {
  margin: 0 0 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.spot__name {
  margin: 0;
  font-family: 'Mincho', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 1.34rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding-right: 68px;
}
.spot__meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-right: 68px;
}

/* Le tampon lui-même */
.spot__seal {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  transform: rotate(-4deg);
  opacity: 0;
}
/* L'encre qui prend — une auréole qui s'ouvre sous le sceau. */
.spot__bleed {
  position: absolute;
  top: 44px;
  right: 46px;
  width: 10px;
  height: 10px;
  margin: -5px -5px 0 0;
  border-radius: 999px;
  border: 2px solid var(--seal);
  opacity: 0;
  pointer-events: none;
}

/* Séquence — jouée à la première apparition, rejouable au clic. */
.stage.is-playing .chip {
  animation: chip-in 0.7s var(--ease) both;
}
.stage.is-playing .chip__scan {
  animation: scan 1s var(--ease) 0.65s both;
}
.stage.is-playing .stage__link {
  animation: fade-in 0.5s var(--ease) 1.5s both;
}
.stage.is-playing .spot {
  animation: spot-in 0.75s var(--ease) 1.75s both;
}
.stage.is-playing .spot__seal {
  animation: seal-down 0.5s var(--ease) 2.35s both;
}
.stage.is-playing .spot__bleed {
  animation: bleed 0.75s var(--ease) 2.45s both;
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(-14px) rotate(-1.2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes scan {
  from {
    opacity: 1;
    transform: translateX(-100%);
  }
  to {
    opacity: 0;
    transform: translateX(280%);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes spot-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes seal-down {
  from {
    opacity: 0;
    transform: rotate(-16deg) scale(1.75);
  }
  70% {
    opacity: 1;
    transform: rotate(-2deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: rotate(-4deg) scale(1);
  }
}
@keyframes bleed {
  from {
    opacity: 0.5;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(9);
  }
}

/* État final figé — hors séquence, et seul état si l'animation est refusée. */
.stage.is-done .chip,
.stage.is-done .stage__link,
.stage.is-done .spot,
.stage.is-done .spot__seal {
  opacity: 1;
}

/* ------------------------------------------------------------- sections */

.band {
  padding-block: var(--band);
}

.band--rule {
  border-top: 1px solid var(--hairline);
}

.band__head {
  max-width: 42ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Le geste : trois temps reliés par la route tiretée. */
.flow {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 840px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  /* La route qui relie les trois temps, derrière les pastilles. */
  .flow::before {
    content: '';
    position: absolute;
    top: 21px;
    left: 14%;
    right: 14%;
    height: 0;
    border-top: 2px dashed var(--hairline);
  }
}

.flow__step {
  position: relative;
}

.flow__dot {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  margin-bottom: 22px;
  box-shadow: 0 0 0 5px var(--paper);
  position: relative;
}
.flow__dot svg {
  width: 20px;
  height: 20px;
}

.flow__title {
  margin: 0 0 8px;
}
.flow__body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 34ch;
}

/* ------------------------------------------------- carte (acte sombre) */

.band--dark {
  background: var(--sumi);
  color: var(--on-dark);
}
.band--dark .h2 {
  color: var(--on-dark);
}
.band--dark .lede,
.band--dark .muted {
  color: var(--on-dark-soft);
}
.band--dark .eyebrow {
  color: var(--on-dark-faint);
}
.band--dark .eyebrow::after {
  background: var(--on-dark-rule);
}

.map {
  margin-top: clamp(36px, 4vw, 56px);
  border: 1px solid var(--on-dark-rule);
  border-radius: var(--r-sheet);
  overflow: hidden;
  background: #12100b;
}
.map svg {
  display: block;
  width: 100%;
  height: auto;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--on-dark-soft);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  flex: none;
}
.legend .is-step {
  background: var(--accent);
}
.legend .is-spot {
  background: var(--seal);
  border-radius: 3px;
}

/* Sur petit écran la carte redescend à ~0,4× : les annotations deviennent
   illisibles bien avant d'être inutiles. On garde le tracé, la légende HTML
   juste en dessous porte le sens. */
@media (max-width: 760px) {
  .map__anno {
    display: none;
  }
}

/* Tracé de la route : révélé au scroll, jamais en boucle. */
.map__route {
  stroke-dasharray: 5 7;
}
.map__stop,
.map__spot,
.map__pin {
  opacity: 0;
}
.map.is-in .map__stop,
.map.is-in .map__spot,
.map.is-in .map__pin {
  animation: pop 0.6s var(--ease) both;
}
.map.is-in .map__stop:nth-of-type(2) {
  animation-delay: 0.1s;
}
.map.is-in .map__stop:nth-of-type(3) {
  animation-delay: 0.2s;
}
.map.is-in .map__stop:nth-of-type(4) {
  animation-delay: 0.3s;
}
.map.is-in .map__spot {
  animation-delay: 0.45s;
}
.map.is-in .map__pin {
  animation-delay: 0.55s;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- budget */

.budget {
  display: grid;
  gap: clamp(40px, 5vw, 68px);
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .budget {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

.ledger {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sheet);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.ledger__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
}
.ledger__trip {
  margin: 0;
  font-family: 'Mincho', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.ledger__days {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* Bascule de devise — la lecture change, pas les montants. */
.switch {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  padding: 3px;
  gap: 2px;
}
.switch button {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  padding: 6px 14px;
  border-radius: 999px;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease);
}
.switch button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 16px;
  padding: 15px 0 13px;
  border-bottom: 1px solid var(--hairline);
}
.row__label {
  font-weight: 600;
  font-size: 0.98rem;
}
.row__amount {
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.row__alt {
  grid-column: 2;
  justify-self: end;
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.row__bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 4px;
}

.row--total {
  border-bottom: 0;
  border-top: 2px solid var(--ink);
  margin-top: 10px;
  padding-top: 18px;
}
.row--total .row__label {
  font-family: 'Mincho', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.row--total .row__amount {
  font-size: 1.45rem;
}

.ledger__rate {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------------------------------------------------- confidentialité */

.pledge {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 760px) {
  .pledge {
    grid-template-columns: 1fr 1fr;
  }
}
.pledge > div {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 760px) {
  .pledge > div:nth-child(odd) {
    padding-right: 44px;
    border-right: 1px solid var(--hairline);
  }
  .pledge > div:nth-child(even) {
    padding-left: 44px;
  }
}
.pledge dt {
  font-family: 'Mincho', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.pledge dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 44ch;
}

/* --------------------------------------------------------------- clôture */

.close {
  text-align: center;
  padding-block: var(--band);
  border-top: 1px solid var(--hairline);
}
.close .lede {
  margin-inline: auto;
}
.close .badges {
  justify-content: center;
}

/* ----------------------------------------------------------------- pied */

.foot {
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline);
  padding-block: 54px 40px;
  font-size: 0.92rem;
}
.foot__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.foot h2 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.foot a {
  color: var(--ink-soft);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot__note {
  margin: 16px 0 0;
  color: var(--ink-faint);
  max-width: 34ch;
  font-size: 0.88rem;
}
.foot__base {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* --------------------------------------------------------- pages légales */

.legal {
  padding-block: clamp(48px, 7vw, 84px) var(--band);
}
.legal__inner {
  max-width: 74ch;
  margin-inline: auto;
}
.legal__back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.legal__back:hover {
  color: var(--ink);
}
.legal__updated {
  margin: 14px 0 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

/* Corps du document — le seul endroit du site où l'on lit longtemps :
   mesure courte, sections espacées, filet sous chaque titre. */
.legal__inner section {
  margin-top: 46px;
}
.legal__inner section > h2 {
  font-family: 'Mincho', ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.legal__inner h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 30px 0 6px;
}
.legal__inner p,
.legal__inner li {
  color: var(--ink-soft);
}
.legal__inner p {
  margin: 14px 0 0;
}
.legal__inner ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 9px;
}
.legal__inner strong {
  color: var(--ink);
  font-weight: 800;
}

/* Tableau des sous-traitants — défile seul, la page ne bouge pas. */
.table-scroll {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
}
.legal__inner table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 0.9rem;
}
.legal__inner th,
.legal__inner td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--ink-soft);
}
.legal__inner th {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.legal__inner tbody tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--r-card);
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.callout p {
  margin: 0;
  color: var(--ink);
}
.callout p + p {
  margin-top: 10px;
}

/* -------------------------------------------------- mouvement réduit */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* La scène et la carte se montrent abouties, pas figées à l'état initial. */
  .chip,
  .stage__link,
  .spot,
  .spot__seal,
  .map__stop,
  .map__spot,
  .map__pin {
    opacity: 1 !important;
  }
  .replay {
    display: none;
  }
}

@media print {
  .nav,
  .foot__base,
  .toc {
    display: none;
  }
  body {
    background: #fff;
  }
}
