/* ============================================================
   Yoka Shift — feuille de style unique
   Direction : éditorial clair et calme.
   Base neutre chaude (pierre), un seul accent (argile).
   Aucune dépendance, aucune requête sortante.
   ============================================================ */

/* ---------- 1. Jetons ------------------------------------- */

:root {
  /* Surfaces et encres — blanc cassé très clair, à peine refroidi.
     Tout le neutre penche du même côté : jamais de gris chaud mêlé
     à du gris froid. */
  --bg:            #F8FAF9;
  --bg-sunk:       #EFF4F2;
  --surface:       #FFFFFF;
  --ink:           #1D2B29;
  --ink-2:         #576866;
  --ink-3:         #8FA19D;
  --line:          rgba(29, 43, 41, 0.10);
  --line-strong:   rgba(29, 43, 41, 0.20);

  /* Accent unique, vert d'eau, saturation 43 % — assez clair pour
     ne pas alourdir la page, assez dense pour rester lisible. */
  --accent:        #3E9B85;
  --accent-ink:    #FFFFFF;
  --accent-soft:   rgba(62, 155, 133, 0.10);

  /* Châssis du téléphone : argent clair, pour que l'élément le plus
     grand de la page cesse d'être un gros bloc noir. */
  --bezel:         linear-gradient(170deg, #EDEFF0, #C3C9CB 55%, #DEE1E2);
  --bezel-sheen:   rgba(255, 255, 255, 0.85);

  /* Ombres teintées par le fond, jamais du noir pur. */
  --shadow-sm:  0 1px 2px rgba(31, 61, 55, 0.05),
                0 2px 6px rgba(31, 61, 55, 0.04);
  --shadow-md:  0 12px 28px -14px rgba(31, 61, 55, 0.20);
  --shadow-lg:  0 40px 70px -40px rgba(31, 61, 55, 0.35),
                0 8px 24px -16px rgba(31, 61, 55, 0.20);

  --shell:   1280px;
  --gutter:  clamp(1.25rem, 5vw, 4.5rem);
  --radius:  18px;
  --radius-lg: 28px;

  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur:   0.45s;

  color-scheme: light;
}

/* Le thème sombre reste une préférence du visiteur, pas une direction :
   mêmes teintes, simplement inversées, et volontairement discret. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #101714;
    --bg-sunk:     #16201D;
    --surface:     #1B2522;
    --ink:         #EAF2EF;
    --ink-2:       #9BAFAA;
    --ink-3:       #6E807B;
    --line:        rgba(234, 242, 239, 0.13);
    --line-strong: rgba(234, 242, 239, 0.26);

    --accent:      #63C6AC;
    --accent-ink:  #101714;
    --accent-soft: rgba(99, 198, 172, 0.12);

    --bezel:       linear-gradient(170deg, #2F3634, #141918 55%, #262D2B);
    --bezel-sheen: rgba(255, 255, 255, 0.16);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 28px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 70px -40px rgba(0, 0, 0, 0.8),
                 0 8px 24px -16px rgba(0, 0, 0, 0.5);

    color-scheme: dark;
  }
}

/* ---------- 2. Socle -------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a:hover { text-decoration-color: var(--accent); }

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

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

/* ---------- 3. Fragments typographiques -------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

.display {
  font-size: clamp(2.75rem, 7.4vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
  max-width: 48ch;
  line-height: 1.6;
}

.prose { max-width: 62ch; color: var(--ink-2); }

.serif {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ---------- 4. Boutons ------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition: transform 0.18s var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }

.btn--solid {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn--solid:hover { background: var(--accent); color: var(--accent-ink); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--quiet {
  padding-inline: 0;
  color: var(--ink-2);
}
.btn--quiet:hover { color: var(--accent); }

.btn[aria-busy='true'] { pointer-events: none; opacity: 0.65; }

.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- 5. En-tête ------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  margin-right: auto;
}
.wordmark__mark { width: 1.5rem; height: 1.5rem; color: var(--ink); flex: none; }
.wordmark__mark .shift { fill: var(--accent); transition: transform 0.4s var(--ease); }
.wordmark:hover .shift { transform: translateX(2px); }
.wordmark__text em { font-style: normal; color: var(--ink-3); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }

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

.lang-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-switch button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}

/* Repère de 1 px en haut de page : l'observateur s'en sert pour savoir
   si l'on a quitté le sommet. Hors flux, invisible, non cliquable. */
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ---------- 6. Sections ----------------------------------- */

.section { padding-block: clamp(5rem, 11vw, 9.5rem); }
.section--sunk { background: var(--bg-sunk); }

.section__head .h2 { margin-top: 1rem; }

.section__head {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 900px) {
  .section__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 3rem;
  }
}

/* ---------- 7. Héros -------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
  overflow: clip;
}

/* Halo très doux derrière le téléphone — pseudo-élément, donc
   jamais dans le flux et jamais repeint au scroll. */
.hero::before {
  content: '';
  position: absolute;
  inset: auto -10% 10% 40%;
  height: 60%;
  background: radial-gradient(60% 60% at 60% 40%, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }
  .hero__text  { grid-column: 1 / span 6; }
  .hero__stage { grid-column: 8 / span 5; }
}

.hero__text > * + * { margin-top: 1.6rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-3);
}
.hero__meta > div { display: grid; gap: 0.1rem; }
.hero__meta dd { margin: 0; }
.hero__meta b { font-weight: 500; color: var(--ink); }

/* ---------- 8. Téléphone ---------------------------------- */

.phone {
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
  aspect-ratio: 515 / 1120;
  padding: 10px;
  border-radius: 2.9rem;
  background: var(--bezel);
  box-shadow: var(--shadow-lg);
}
.phone::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 2.35rem;
  box-shadow: inset 0 1px 0 var(--bezel-sheen);
  pointer-events: none;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2.35rem;
  overflow: hidden;
  background: var(--bg-sunk);
}
.phone__screen img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Squelette de chargement, proportionné à l'écran qu'il remplace. */
.phone__skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-sunk);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.1rem;
  transition: opacity 0.4s var(--ease);
}
.phone__skeleton::before {
  content: '';
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--line);
}
.phone__skeleton::after {
  content: '';
  width: 42%;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--line);
}
.phone__skeleton[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .phone__skeleton { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.45; } }

.hero__stage { display: grid; gap: 1.5rem; justify-items: center; }
@media (min-width: 980px) {
  .hero .hero__stage .phone { transform: rotate(1.2deg); }
}

/* ---------- 9. Principes (liste divisée, pas des cartes) --- */

.principles { border-top: 1px solid var(--line); }

.principle {
  display: grid;
  gap: 0.5rem 2.5rem;
  grid-template-columns: 1fr;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}
@media (min-width: 860px) {
  .principle {
    grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
  .principle:hover { background: var(--accent-soft); }
}

.principles .principle:nth-child(2) { --i: 1; }
.principles .principle:nth-child(3) { --i: 2; }
.principles .principle:nth-child(4) { --i: 3; }

.principle__index {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.45rem;
}
.principle__title {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.03em;
}
.principle__body { color: var(--ink-2); max-width: 54ch; }

/* ---------- 10. Fiche app --------------------------------- */

.app {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .app {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }
  .app__stage { position: sticky; top: 7rem; }
}

.app__stage { --i: 1; }

.app__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}
.app__icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.15rem;
  box-shadow: var(--shadow-md);
  flex: none;
}
.app__name { font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -0.04em; }
.app__tagline { color: var(--ink-3); font-size: 0.95rem; }

.app__body > * + * { margin-top: 1.25rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.tag {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-2);
  background: var(--surface);
}

.spec {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.spec__row {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr);
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.spec__row dt { color: var(--ink-3); }
.spec__row dd { margin: 0; color: var(--ink); }

.app__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Badge App Store — artwork officiel d'Apple, servi tel quel.
   Les guidelines interdisent de le redessiner, de le recolorer ou
   de le déformer : on ne règle que sa hauteur et son espace libre. */
.appstore {
  display: inline-flex;
  border-radius: 8px;
  transition: transform 0.18s var(--ease), opacity 0.3s var(--ease);
}
.appstore img {
  display: block;
  height: 48px;
  width: auto;
}
.appstore:hover { opacity: 0.82; }
.appstore:active { transform: translateY(1px) scale(0.985); }
.appstore:focus-visible { outline-offset: 4px; }

/* Sélecteur de thème */
.theme-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.theme-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.72rem 0.34rem 0.34rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 0.8rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.18s var(--ease);
}
.theme-switch button:hover { border-color: var(--line-strong); color: var(--ink); }
.theme-switch button:active { transform: scale(0.97); }
.theme-switch button[aria-pressed='true'] {
  border-color: var(--ink);
  color: var(--ink);
}
.theme-switch .dot--light    { background: linear-gradient(135deg, #DCEAF2, #E4EFE2); }
.theme-switch .dot--daysky   { background: linear-gradient(135deg, #9CCDF2, #DCEFFB); }
.theme-switch .dot--nightsky { background: linear-gradient(135deg, #1B2A52, #4A5F9E); }
.theme-switch .dot--bali     { background: linear-gradient(135deg, #0A1C12, #5BD09A); }
.theme-switch .dot--dark     { background: linear-gradient(135deg, #242424, #4A4A4A); }

.theme-switch .dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex: none;
}

/* Vignettes secondaires */
.shots {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.shot { display: grid; gap: 0.7rem; }
.shots .shot:nth-child(2) { --i: 1; }
.shots .shot:nth-child(3) { --i: 2; }
.shot img {
  width: min(100%, 232px);
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-sunk);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .shot:hover img { transform: translateY(-4px); }
}
/* Libellé hors de la carte, en dessous — mise en page galerie. */
.shot figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

/* Sous 720 px, trois écrans côte à côte deviennent illisibles :
   la rangée se transforme en bande défilante avec accroche. */
@media (max-width: 719px) {
  .shots {
    grid-template-columns: repeat(3, 62vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: thin;
  }
  .shot { scroll-snap-align: center; }
  .shot img { width: 100%; }
}

/* ---------- 11. État vide : l'app suivante ----------------- */

.next-app {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 11px,
      var(--accent-soft) 11px 12px
    );
}
@media (min-width: 820px) {
  .next-app { grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 2rem; }
}
.next-app__glyph {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: var(--bg);
}
.next-app h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.next-app p { color: var(--ink-2); font-size: 0.95rem; max-width: 52ch; }

/* ---------- 12. Studio ------------------------------------ */

.studio {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .studio { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .studio__quote { grid-column: 1 / span 5; }
  .studio__text  { grid-column: 7 / span 6; }
}
.studio__text { --i: 1; }
.studio__quote .eyebrow { margin-bottom: 1.75rem; }

.studio__quote blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.studio__quote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.studio__text > * + * { margin-top: 1.1rem; }

/* ---------- 13. Contact ----------------------------------- */

/* Sans formulaire, l'adresse elle-même devient l'objet de la section. */
.contact { border-top: 1px solid var(--line); }

.contact__mail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.contact__mail-text {
  font-size: clamp(1.6rem, 5.5vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.contact__mail-arrow {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--ink-3);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.contact__mail:hover { color: var(--accent); }
.contact__mail:hover .contact__mail-arrow {
  color: var(--accent);
  transform: translateX(8px);
}
@media (prefers-reduced-motion: no-preference) and (min-width: 700px) {
  .contact__mail:hover { padding-left: 0.75rem; }
}
.contact__mail:active { transform: translateY(1px); }

.contact__note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* ---------- 14. Pied de page ------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
  font-size: 0.88rem;
  color: var(--ink-3);
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
}
.site-footer__blurb { font-size: 0.88rem; }
.site-footer .wordmark { margin-bottom: 1rem; }

.site-footer h4 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.site-footer li + li { margin-top: 0.45rem; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer__base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ---------- 15. Révélation au scroll ----------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- 16. Page légale ------------------------------- */

.legal {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .legal {
    grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    grid-template-areas:
      'head head'
      'toc  body'
      '.    back';
    column-gap: clamp(3rem, 6vw, 6rem);
  }
  .legal__head { grid-area: head; }
  .legal__toc  { grid-area: toc; position: sticky; top: 7rem; align-self: start; }
  .legal__body { grid-area: body; }
  .legal__back { grid-area: back; }
}

.legal__head { max-width: 42ch; }
.legal__head .h2 { margin-top: 1rem; }
.legal__date {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.legal__toc {
  display: grid;
  gap: 0.1rem;
  border-left: 1px solid var(--line);
}
.legal__toc a {
  padding: 0.4rem 0 0.4rem 1rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 0.88rem;
  color: var(--ink-3);
  text-decoration: none;
}
.legal__toc a:hover {
  color: var(--ink);
  border-left-color: var(--accent);
}

.legal__body section + section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.legal__body h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 1.1rem;
}
.legal__body p {
  max-width: 68ch;
  color: var(--ink-2);
}
.legal__body p + p { margin-top: 1rem; }
.legal__body a { color: var(--ink); }

.legal__facts { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.legal__facts > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
@media (min-width: 620px) {
  .legal__facts > div {
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
    gap: 1rem;
  }
}
.legal__facts > div:last-child { border-bottom: 0; }
.legal__facts dt { color: var(--ink-3); }
.legal__facts dd { margin: 0; color: var(--ink); }

.legal__back { margin-top: clamp(2.5rem, 5vw, 4rem); }
