/* Yomi — le site.

   LA RÈGLE, et tout le reste en découle :
   le décor de l'app ne touche jamais le fond de la page. Il vit à l'intérieur
   de « scènes » — des fenêtres cadrées, découpées net. Dehors, la page est une
   surface unie et constante.

   Pourquoi : l'app peut se permettre un décor plein écran parce que chaque
   écran est dessiné contre ce décor précis, à une taille connue. Une page web
   n'a ni taille connue ni point d'arrêt connu, et son texte est long. Un décor
   de fond y rend le contraste imprévisible — il n'est plus dessiné, il est
   espéré. En le cadrant, il redevient une décision.

   Corollaire : **le verre ne s'utilise que par-dessus le monde, donc dans une
   scène. Sur la page, c'est du papier** — une surface franche, un filet, une
   ombre douce. Du verre translucide sur un fond uni ne laisse rien transparaître :
   c'est un effet qui ne fait que salir.

   Les couleurs restent celles de l'app (Yomi/Foundation/Tokens.swift) : chacune
   a sa face de jour et sa face de nuit, et --night les fait basculer. Sur la
   page, --night vaut 0 ou 1 (le thème). Dans la scène de la nuit, et là
   seulement, il glisse de l'un à l'autre : c'est une démonstration, pas un
   habillage. */

@property --night { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --day: calc((1 - var(--night)) * 100%);

  /* Texte */
  --ink:   color-mix(in oklab, #1E2A22 var(--day), #F1EFE8);
  --label: color-mix(in oklab, #4E5F52 var(--day), #C6CFC7);
  --muted: color-mix(in oklab, #6E7E70 var(--day), #9FAAA1);

  /* La surface de la page : le décor « Uni » de l'app (Theme.plain). */
  --page:  color-mix(in oklab, #FBFAF7 var(--day), #14181B);
  /* Le papier : les cartes, posées sur la page. */
  --paper: color-mix(in oklab, #FFFFFF var(--day), #1B2226);
  --paper-sunk: color-mix(in oklab, #F2F0E8 var(--day), #171E22);
  --line:  color-mix(in oklab, #E4E2D8 var(--day), #2A3238);
  --line-soft: color-mix(in oklab, #EFEDE4 var(--day), #232A2F);

  /* Accents — trois, pas plus */
  --water: color-mix(in oklab, #5A97CC var(--day), #8DBFE8);
  --water-light: color-mix(in oklab, #BFE0F7 var(--day), #D6ECFA);
  --green: color-mix(in oklab, #3E7A4B var(--day), #8CC297);
  --terracotta: color-mix(in oklab, #D98B60 var(--day), #E8A67E);

  /* L'ombre est vert-gris, jamais noire */
  --shadow: color-mix(in oklab, #32543A var(--day), #05080C);

  /* Le verre, pour l'intérieur des scènes seulement */
  --glass-fill: color-mix(in oklab, #FFFFFF var(--day), #1A2430);
  --glass-border: color-mix(in oklab, #FFFFFF var(--day), #C9D3DB);

  /* La pilule sombre : vert profond le jour, crème la nuit */
  --pill-from: color-mix(in oklab, #2C3D30 var(--day), #F7F4EC);
  --pill-to:   color-mix(in oklab, #17211B var(--day), #E4E0D4);
  --pill-text: color-mix(in oklab, #F5F3EC var(--day), #1E2A22);

  --r-chip: 999px;
  --r-tile: 20px;
  --r-card: 26px;
  --r-scene: 32px;

  /* L'échelle typographique : cinq marches, et pas une de plus.
     display (h1) › chapitre (h2) › fonction (h3) › chapeau › corps.
     Chaque marche fait au moins 1,4× la suivante : c'est ce qui se lit. */
  --fs-h1: clamp(2.8rem, 6vw, 4.5rem);
  --fs-h2: clamp(2.4rem, 4.8vw, 3.8rem);
  --fs-h3: clamp(2.1rem, 3.7vw, 3.05rem);
  --fs-lede: clamp(1.1rem, 1.5vw, 1.28rem);
  --fs-body: clamp(16px, 1.15vw, 17px);

  /* L'échelle du vide : trois valeurs, nommées par ce qu'elles font. */
  --gap-beat: clamp(72px, 9vw, 128px);     /* entre deux fonctions d'un même chapitre */
  --gap-chapter: clamp(104px, 13vw, 176px); /* entre deux chapitres */
  --gap-title: clamp(18px, 2vw, 26px);      /* d'un titre à son texte */

  --gutter: clamp(20px, 5vw, 40px);
  --measure: 1180px;

  color-scheme: light;
}

/* Le thème suit le téléphone, ou le choix fait dans l'en-tête — comme le
   réglage « Apparence » de l'app : auto, clair, sombre. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --night: 1; color-scheme: dark; }
}
:root[data-theme="dark"] { --night: 1; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 Manrope, ui-sans-serif, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: color-mix(in oklab, var(--green) 22%, transparent); }

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

/* La langue : les deux textes sont dans la page, le CSS en cache un. */
html[data-lang="fr"] t-en,
html[data-lang="en"] t-fr { display: none; }
t-fr, t-en { display: contents; }

/* ─── Typographie ──────────────────────────────────────────────────────────
   Une seule famille, quatre graisses, et le semi-gras réservé au seul mot
   qu'on veut faire ressortir — la règle de DESIGN.md. */

h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.032em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.028em; line-height: 1.08; }
h1 b, h2 b, h3 b { font-weight: 600; }

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.lede { font-size: var(--fs-lede); color: var(--label); max-width: 36ch; }
.body { color: var(--label); font-size: var(--fs-body); line-height: 1.65; max-width: 44ch; margin-top: var(--gap-title); }
.small { font-size: 0.87rem; color: var(--muted); }

/* ─── Mise en page ─────────────────────────────────────────────────────────
   Les sections ne se ressemblent pas : deux colonnes, deux colonnes inversées,
   pleine largeur, centré. C'est ce qui empêche la page de s'endormir. */

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

section { padding-block: clamp(76px, 10vw, 140px); }
section + section { border-top: 1px solid var(--line-soft); }

.two {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .two { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); }
  .two.flip { grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); }
  .two.flip > :first-child { order: 2; }
}

/* ─── L'en-tête ────────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--page) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
          backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.top.sunk { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font: 600 17px/1 Manrope, sans-serif;
  letter-spacing: -0.02em;
}
.mark img { width: 28px; height: 28px; border-radius: 8px; }

.top nav { display: none; margin-inline: auto; gap: 4px; }
@media (min-width: 900px) { .top nav { display: flex; } }
.top nav a {
  padding: 8px 13px;
  border-radius: var(--r-chip);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--label);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.top nav a:hover { color: var(--ink); background: var(--paper-sunk); }

.top-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 900px) { .top-end { margin-left: 0; } }

/* Les deux petits commutateurs : la langue, et l'apparence. */
.seg {
  display: flex;
  padding: 3px;
  border-radius: var(--r-chip);
  background: var(--paper-sunk);
  border: 1px solid var(--line);
}
.seg button {
  border: 0;
  background: none;
  padding: 6px 11px;
  border-radius: var(--r-chip);
  font: 600 11.5px/1 Manrope, sans-serif;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px color-mix(in oklab, var(--shadow) 10%, transparent); }
.seg.icons button { padding: 6px 9px; display: grid; place-items: center; }
.seg svg { width: 15px; height: 15px; display: block; }


/* ─── Boutons ──────────────────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--r-chip);
  background: linear-gradient(to bottom, var(--pill-from), var(--pill-to));
  color: var(--pill-text);
  font: 600 15.5px/1 Manrope, sans-serif;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, calc(0.14 + 0.4 * var(--night))),
    0 10px 20px color-mix(in oklab, #141E18 calc(14% - 6% * var(--night)), transparent);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s;
}
.pill:hover { transform: translateY(-1.5px); filter: brightness(1.07); }
.pill:active { transform: translateY(0) scale(0.985); }

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 600 15px/1 Manrope, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.ghost:hover { border-color: var(--muted); transform: translateY(-1.5px); }

/* ─── Le papier : les surfaces de la page ──────────────────────────────────── */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow:
    0 1px 2px color-mix(in oklab, var(--shadow) 5%, transparent),
    0 12px 28px color-mix(in oklab, var(--shadow) calc(7% - 3% * var(--night)), transparent);
}

/* ─── LA SCÈNE : le monde de l'app, cadré ──────────────────────────────────── */

.scene {
  /* --day est substitué au moment du calcul, sur l'élément qui le déclare :
     déclaré une seule fois sur :root, il fige la valeur de --night d'alors et
     l'hérite telle quelle. Sans cette ligne, changer --night dans une scène ne
     déplace que les opacités du ciel, jamais les couleurs — le verre et l'encre
     restent en face de jour au milieu de la nuit. */
  --day: calc((1 - var(--night)) * 100%);

  position: relative;
  overflow: hidden;
  border-radius: var(--r-scene);
  border: 1px solid color-mix(in oklab, var(--shadow) 10%, transparent);
  min-height: clamp(340px, 42vw, 520px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  box-shadow:
    0 2px 4px color-mix(in oklab, var(--shadow) 8%, transparent),
    0 24px 48px color-mix(in oklab, var(--shadow) calc(12% - 5% * var(--night)), transparent);
}

/* Le ciel est un dégradé, pas une image : net à toute largeur, et il peut
   changer d'heure — ce qu'une image ne sait pas faire. */
.scene-sky { position: absolute; inset: 0; z-index: -3; }
.scene-sky::before,
.scene-sky::after {
  content: "";
  position: absolute;
  inset: 0;
}
.scene-sky::before {
  background: linear-gradient(to bottom, #C3D2DA 0%, #DCE2DF 34%, #EFEDE3 64%, #F5F2E8 100%);
  opacity: calc(1 - var(--night));
}
.scene-sky::after {
  background: linear-gradient(to bottom, #0D141C 0%, #17202B 40%, #222C35 72%, #2A3138 100%);
  opacity: var(--night);
}

/* Les collines : la bande du rendu, toute sa largeur, jamais recadrée. */
.scene-hills { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: -2; }
.scene-hills::before,
.scene-hills::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 26%);
}
.scene-hills::before { background-image: url("img/collines-jour.webp"); opacity: calc(1 - var(--night)); }
.scene-hills::after  { background-image: url("img/collines-nuit.webp"); opacity: var(--night); }

/* Le halo : blanc le jour, une lampe chaude la nuit (Theme.glow). */
.scene-glow {
  position: absolute;
  left: 8%; top: -14%;
  width: 58%; aspect-ratio: 1;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle, color-mix(in oklab, #FFFFFF var(--day), #FFD9A0) 0%, transparent 66%);
  opacity: calc(0.42 - 0.26 * var(--night));
  filter: blur(26px);
  pointer-events: none;
}

/* ─── L'étagère, à l'intérieur d'une scène ─────────────────────────────────── */

.shelf { padding: 0 clamp(14px, 4%, 40px) clamp(20px, 5%, 40px); }
.shelf-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 5%, 64px);
}

.plant {
  position: relative;
  border: 0;
  background: none;
  padding: 0;
  display: block;
  cursor: default;
}
.plant[data-water] { cursor: pointer; }
.plant[data-water]:focus-visible { outline-offset: 6px; }

.plant-art {
  display: block;   /* un span reste « inline », et une largeur y est ignorée */
  position: relative;
  /* Species.shelfScale : les hautes et étroites prennent moins de large, pour
     que les pots aient l'air d'une seule taille. */
  width: calc(clamp(74px, 13vw, 158px) * var(--scale, 1));
}
.plant-art img {
  display: block;
  width: 100%;
  height: auto;
  /* Ombre de contact serrée + ombre portée décalée à droite : la lumière vient
     d'en haut à gauche, comme la fenêtre des rendus. */
  filter:
    drop-shadow(0 3px 2px color-mix(in oklab, var(--shadow) 32%, transparent))
    drop-shadow(5px 14px 16px color-mix(in oklab, var(--shadow) calc(16% + 10% * var(--night)), transparent));
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 1.1, 0.3, 1);
}
.plant-art .art-ok { position: absolute; inset: 0; }
.plant .art-ok   { opacity: 0; transform: scale(0.985) translateY(3px); }
.plant.ok .art-ok { opacity: 1; transform: none; }
.plant.ok .art-soif { opacity: 0; transform: scale(1.01); }
.plant.fixed .art-ok { position: static; opacity: 1; transform: none; }
.plant.fixed .art-soif { display: none; }

/* Dans une scène, et seulement là, le verre a quelque chose à laisser passer. */
.glass {
  background: color-mix(in oklab, var(--glass-fill) calc((0.5 + 0.22 * var(--night)) * 100%), transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
          backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, var(--glass-border) calc((0.9 - 0.55 * var(--night)) * 100%), transparent),
    inset 0 0 0 1px color-mix(in oklab, var(--glass-border) calc((0.4 - 0.2 * var(--night)) * 100%), transparent),
    0 12px 24px color-mix(in oklab, var(--shadow) 16%, transparent);
}

/* La goutte : un dessin, pas un emoji — un emoji change de forme sur chaque
   machine, et c'est le détail qui dit « pas dessiné » plus fort que tout. */
.drop {
  position: absolute;
  top: -4%;
  left: 50%;
  translate: -50% -100%;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--water);
  animation: breathe 2.8s ease-in-out infinite;
  transition: opacity 0.5s, scale 0.5s;
}
.drop svg { width: 13px; height: 13px; }
.plant.ok .drop { animation: none; opacity: 0; scale: 0.7; }

@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.hint {
  position: absolute;
  top: -4%;
  left: 50%;
  translate: -50% -190%;
  padding: 5px 11px;
  border-radius: var(--r-chip);
  font: 600 11.5px/1 Manrope, sans-serif;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  animation: nudge 3.4s ease-in-out infinite;
  transition: opacity 0.4s;
}
.plant.ok .hint { animation: none; opacity: 0; }
@keyframes nudge {
  0%, 62%, 100% { opacity: 0.6; transform: translateY(0); }
  76%           { opacity: 1;   transform: translateY(-3px); }
}

.ripple {
  position: absolute;
  left: 50%; bottom: 8%;
  translate: -50% 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--water);
  opacity: 0;
  pointer-events: none;
}
.plant.poured .ripple { animation: ripple 1.1s ease-out; }
@keyframes ripple {
  0%   { opacity: 0.8; scale: 0.4; }
  100% { opacity: 0;   scale: 5; }
}

/* La tablette de verre, en vraie perspective. */
.board {
  height: 15px;
  margin-top: -1px;
  border-radius: 3px 3px 10px 10px;
  transform: rotateX(32deg);
  transform-origin: top center;
}
.shelf-names {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 5%, 64px);
  margin-top: 14px;
}
.shelf-names span {
  width: calc(clamp(74px, 13vw, 158px) * var(--scale, 1));
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--label);
  white-space: nowrap;
}

/* La phrase de l'app, posée dans la scène. --night est une propriété déclarée,
   donc elle se transitionne : la scène de la nuit glisse d'une face à l'autre
   au lieu de sauter. */
.scene-say {
  position: absolute;
  top: clamp(14px, 4%, 26px);
  left: clamp(14px, 4%, 26px);
  z-index: 2;
  margin: 0;
  padding: 9px 16px;
  border-radius: var(--r-chip);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.scene-say b { font-weight: 600; }

#scene-nuit { transition: --night 1.8s cubic-bezier(0.4, 0, 0.25, 1); }
#hero .scene { justify-content: flex-end; }

/* ─── 1. Le héros ──────────────────────────────────────────────────────────── */

#hero { padding-top: clamp(48px, 7vw, 86px); }
#hero .two { align-items: center; }
#hero h1 { margin-bottom: 20px; }


.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; }
.badges span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.badges svg { width: 14px; height: 14px; color: var(--green); }

/* ─── 2. Le geste ──────────────────────────────────────────────────────────── */

.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.chip {
  padding: 10px 17px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line);
  background: var(--paper-sunk);
  color: var(--ink);
  font: 500 14.5px/1 Manrope, sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.chip:hover { transform: translateY(-1px); border-color: var(--muted); }
.chip[aria-pressed="true"] {
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* ─── 3. Le tour ───────────────────────────────────────────────────────────── */

#tour .scene { min-height: clamp(380px, 40vw, 520px); justify-content: space-between; }
.notif {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-radius: 18px;
  max-width: 380px;
  margin: clamp(18px, 4%, 32px) auto 0;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.6s, transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}
.notif.in { opacity: 1; transform: none; }
.notif img { width: 32px; height: 32px; border-radius: 9px; }
.notif b { display: block; font: 600 13.5px/1.4 Manrope, sans-serif; }
.notif span { font-size: 13.5px; color: var(--label); }

.round-done {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--label);
  min-height: 1.5em;
}
.round-cta { display: flex; justify-content: center; margin-top: 14px; transition: opacity 0.5s; }
.round.done .round-cta { opacity: 0; pointer-events: none; }

/* ─── 4. Les soixante ──────────────────────────────────────────────────────── */

#especes { overflow: hidden; }
.ribbon {
  margin-top: clamp(34px, 5vw, 54px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.ribbon-track {
  display: flex;
  gap: clamp(16px, 2.6vw, 34px);
  width: max-content;
  align-items: flex-end;
  animation: drift 160s linear infinite;
}
.ribbon-b .ribbon-track { animation-duration: 200s; animation-direction: reverse; margin-top: 22px; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ribbon figure {
  margin: 0;
  width: calc(clamp(72px, 7vw, 100px) * var(--scale, 1));
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ribbon figure:hover { transform: translateY(-7px); }
.ribbon img {
  width: 100%;
  height: auto;
  filter: drop-shadow(3px 8px 10px color-mix(in oklab, var(--shadow) 14%, transparent));
}
/* Une seule ligne, hauteur fixe : des légendes qui partaient sur trois lignes à
   des hauteurs différentes, c'est ce qui faisait « pas fini ». */
.ribbon figcaption {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--label);
  line-height: 1.3;
  height: 2.6em;
  overflow: hidden;
}

/* ─── 5. La nuit ───────────────────────────────────────────────────────────── */

/* La seule scène dont l'heure bouge. Elle traverse la journée quand on arrive
   dessus, et on peut la refaire basculer à la main. */
#nuit .scene { justify-content: center; align-items: center; padding: clamp(20px, 4%, 40px); }

.sheet {
  width: min(360px, 100%);
  padding: 22px;
  border-radius: var(--r-card);
}
.sheet-head { display: flex; align-items: center; gap: 14px; }
.sheet-head img { width: 64px; height: auto; }
.sheet-head h3 { font-size: 1.55rem; margin-bottom: 4px; }
.sheet-head p { font-size: 12.5px; color: var(--muted); }

.tank { margin-top: 20px; }
.tank-bar { height: 7px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 12%, transparent); overflow: hidden; }
.tank-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, var(--water-light), var(--water));
  width: 22%;
  transition: width 1.4s cubic-bezier(0.2, 1, 0.3, 1);
}
.tank-l { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 8px; }

.facts { list-style: none; padding: 0; margin: 20px 0 0; }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--ink);
  border-top: 1px solid color-mix(in oklab, var(--glass-border) 22%, transparent);
}
.facts li span:first-child { color: var(--muted); }

.scene-switch {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  display: flex;
  padding: 3px;
  border-radius: var(--r-chip);
}
.scene-switch button {
  border: 0;
  background: none;
  padding: 6px 12px;
  border-radius: var(--r-chip);
  font: 600 11.5px/1 Manrope, sans-serif;
  color: color-mix(in oklab, var(--ink) 62%, transparent);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.scene-switch button[aria-pressed="true"] {
  background: linear-gradient(to bottom, var(--pill-from), var(--pill-to));
  color: var(--pill-text);
}

/* ─── 6. Le prix ───────────────────────────────────────────────────────────── */

#prix .wrap { max-width: 980px; }
.price-head { text-align: center; max-width: min(100%, 760px); margin: 0 auto clamp(40px, 5vw, 60px); }
.price-head .eyebrow { margin-inline: auto; display: flex; width: fit-content; }
.price-head .body { margin-inline: auto; text-align: center; max-width: 52ch; }

.only {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: start;
  max-width: 760px;
  margin-inline: auto;
}

.deal { padding: 30px; display: flex; flex-direction: column; }
.deal.ours { border-color: color-mix(in oklab, var(--green) 40%, var(--line)); }
.deal-n {
  font: 300 clamp(2.6rem, 5vw, 3.6rem)/1 Manrope, sans-serif;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.deal-when { margin-top: 8px; font-size: 14px; color: var(--muted); }
.deal-rule { border: 0; border-top: 1px solid var(--line-soft); margin: 24px 0; }
.deal ul { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.deal li { display: flex; gap: 11px; padding: 7px 0; color: var(--label); }
.deal li svg { width: 15px; height: 15px; flex: none; margin-top: 4px; }
.deal.ours li svg { color: var(--green); }
.deal-foot { margin-top: auto; padding-top: 26px; }

.after-price { text-align: center; margin-top: clamp(30px, 4vw, 44px); }

/* ─── Le pied ──────────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); padding-block: clamp(50px, 6vw, 72px) 30px; }
.foot-grid {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 24px; } }

.foot-brand { grid-column: 1 / -1; }
@media (min-width: 760px) { .foot-brand { grid-column: auto; } }
.foot-brand p { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 30ch; }

.foot h4 {
  margin: 0 0 14px;
  font: 600 11.5px/1 Manrope, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--label); text-decoration: none; font-size: 14.5px; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }

.foot-bar {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* ─── L'arrivée ────────────────────────────────────────────────────────────── */

.rise { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 1, 0.3, 1); }
.rise.in { opacity: 1; transform: none; }
.rise.d1 { transition-delay: 0.08s; }
.rise.d2 { transition-delay: 0.16s; }

/* ─── Les deux pages qu'on lit ─────────────────────────────────────────────── */

.doc main { max-width: 46rem; margin: 0 auto; padding: clamp(50px, 8vh, 80px) var(--gutter) clamp(60px, 8vw, 90px); }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin: clamp(36px, 5vw, 52px) 0 10px; }
.doc h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--label); }
.doc p + p, .doc p + ul { margin-top: 14px; }
.doc ul { padding-left: 1.15em; margin: 14px 0 0; }
.doc li { margin: 6px 0; }
.doc a { color: var(--green); text-underline-offset: 3px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc em { font-style: italic; }
.doc .date { color: var(--muted); font-size: 0.93rem; }
.doc .lede { font-size: 1.08rem; max-width: none; margin-top: 16px; }
.doc .card { padding: 20px 24px; margin: 22px 0; }
.doc .card p:first-child, .doc .card ul:first-child { margin-top: 0; }
.doc .rule { display: none; }

/* ─── Ce qui bouge s'arrête si on l'a demandé ──────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track, .drop, .hint { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .plant-art img, .notif, .tank-fill { transition-duration: 0.01s; }
}

/* ─── 4. Les vraies captures ───────────────────────────────────────────────── */

.screens {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  grid-template-columns: 1fr;
  justify-items: center;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (min-width: 720px) { .screens { grid-template-columns: repeat(3, 1fr); } }
.screens figure { margin: 0; max-width: 270px; text-align: center; }
.screens img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  /* Un écran posé, pas un rectangle collé : un liseré fin et une ombre longue. */
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--shadow) 12%, transparent),
    0 18px 40px color-mix(in oklab, var(--shadow) calc(16% - 6% * var(--night)), transparent);
}
.screens figcaption { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

html[data-lang="fr"] .en-only,
html[data-lang="en"] .fr-only { display: none; }

/* ─── 5. Les six fiches ────────────────────────────────────────────────────── */

.picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 16px);
  margin-top: clamp(36px, 5vw, 56px);
  margin-bottom: 22px;
}
.picker button {
  border: 1px solid transparent;
  background: none;
  border-radius: var(--r-tile);
  padding: 10px 10px 8px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 8px;
  width: clamp(76px, 10vw, 106px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.picker button:hover { transform: translateY(-3px); }
.picker button[aria-selected="true"] { background: var(--paper); border-color: var(--line); }
.picker img {
  width: 100%;
  height: clamp(64px, 7vw, 86px);
  object-fit: contain;
  object-position: center bottom;
}
.picker span { font-size: 12px; font-weight: 500; color: var(--label); text-align: center; line-height: 1.25; }
.picker button[aria-selected="true"] span { color: var(--ink); }

.fiche { padding: clamp(24px, 3.4vw, 40px); }
.fiche-top { display: grid; gap: 22px; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 720px) { .fiche-top { grid-template-columns: 1fr auto; } }
.fiche h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.fiche-latin { font-style: italic; color: var(--muted); font-size: 14px; margin-top: 4px; }
.fiche-char { color: var(--label); margin-top: 16px; max-width: 46ch; font-size: 1.05rem; }
.fiche-rhythm { text-align: left; }
@media (min-width: 720px) { .fiche-rhythm { text-align: right; } }
.fiche-rhythm b { display: block; font: 300 2.5rem/1 Manrope, sans-serif; letter-spacing: -0.035em; }
.fiche-rhythm span { font-size: 12.5px; color: var(--muted); }

.fiche-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  margin-top: 28px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-tile);
  overflow: hidden;
}
@media (min-width: 680px) { .fiche-grid { grid-template-columns: 1fr 1fr; } }
.fiche-grid div { background: var(--paper); padding: 18px 20px; }
.fiche-grid h4 {
  margin: 0 0 6px;
  font: 600 11px/1 Manrope, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.fiche-grid p { font-size: 14px; color: var(--label); }
.fiche-grid .safe { color: var(--green); font-weight: 500; }
.fiche-grid .care { color: var(--terracotta); font-weight: 500; }

/* ─── 8. Qui fait ça ───────────────────────────────────────────────────────── */

.maker { max-width: 46rem; text-align: center; }
.maker .eyebrow { margin-inline: auto; display: flex; width: fit-content; }
.maker .body { margin-inline: auto; }

/* ─── 9. L'essai ───────────────────────────────────────────────────────────── */

.trial {
  display: grid;
  gap: 20px;
  align-items: center;
  grid-template-columns: 1fr;
  padding: 28px;
  margin-top: 18px;
}
@media (min-width: 720px) { .trial { grid-template-columns: auto 1fr; gap: 36px; } }
.trial-n { font: 300 2.6rem/1 Manrope, sans-serif; letter-spacing: -0.035em; white-space: nowrap; }
.trial-l { font-size: 13px; color: var(--muted); margin-top: 6px; max-width: 18ch; }
.trial p:last-child { color: var(--label); font-size: 15px; }

/* ─── 10. Les questions ────────────────────────────────────────────────────── */

.faq { max-width: 46rem; }
.faq details {
  border-top: 1px solid var(--line-soft);
  padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; color: var(--label); max-width: 60ch; }
.faq a { color: var(--green); text-underline-offset: 3px; }

/* ─── 2. La reconnaissance ─────────────────────────────────────────────────── */

.ident {
  margin: auto clamp(16px, 5%, 40px);
  padding: 22px;
  border-radius: var(--r-card);
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  max-width: 340px;
  align-self: center;
}
.ident-shot {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--glass-fill) 40%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--glass-border) 40%, transparent);
}
.ident-shot img {
  width: 92%;
  height: auto;
  filter: drop-shadow(0 6px 10px color-mix(in oklab, var(--shadow) 22%, transparent));
  transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s;
}
.ident[data-state="wait"] .ident-shot img { transform: scale(1.06); filter: blur(1.5px) drop-shadow(0 6px 10px color-mix(in oklab, var(--shadow) 22%, transparent)); }

.ident-say { min-height: 5.2em; display: grid; align-content: center; }
.ident-say p, .ident-say .ident-found { grid-area: 1 / 1; transition: opacity 0.4s; }
.ident-idle, .ident-wait, .ident-found { opacity: 0; pointer-events: none; }
.ident[data-state="idle"] .ident-idle,
.ident[data-state="wait"] .ident-wait,
.ident[data-state="found"] .ident-found { opacity: 1; }

.ident-idle, .ident-wait { font-size: 14.5px; color: var(--label); margin: 0; }
.ident-found { display: grid; gap: 3px; }
.ident-found b { font: 300 1.9rem/1 Manrope, sans-serif; letter-spacing: -0.03em; }
.ident-found em { font-style: italic; font-size: 13px; color: var(--muted); }
.ident-found span { font-size: 13px; color: var(--label); margin-top: 6px; }

.ident[data-state="found"] #ident-go { opacity: 0; pointer-events: none; }
#ident-go { transition: opacity 0.4s; }

/* Une capture seule, à côté d'un texte. */
.screens.one { grid-template-columns: 1fr; margin-top: 0; }
.screens.one figure { max-width: 290px; }

/* ─── Les blocs repris de la structure de référence ────────────────────────── */

/* Une section centrée, pour les charnières du récit. */
.wrap.center { max-width: 44rem; text-align: center; }
.wrap.center .eyebrow { display: flex; width: fit-content; margin-inline: auto; }

/* Le lien secondaire sous l'appel principal. */
.second { margin-top: 18px; font-size: 14.5px; }
.second a { color: var(--label); text-underline-offset: 4px; }
.second a:hover { color: var(--ink); }

/* Le bouton de chaque bloc : on peut se décider sans remonter en haut. */
.block-cta { margin-top: 28px; }

/* Le problème, en trois temps. */
.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 26px 24px 28px; }
.step-art {
  height: 104px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 18px;
}
/* max-height, et pas height:100% : la rangée d'une grille en `auto` grandit à
   la hauteur de l'image, et le pourcentage se résout alors contre elle — le
   rendu débordait de sa carte et passait par-dessus le texte. */
.step-art img {
  max-height: 104px;
  width: auto;
  height: auto;
  filter: drop-shadow(3px 8px 10px color-mix(in oklab, var(--shadow) 16%, transparent));
}
.step h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Le bandeau de confiance : des faits, pas des étoiles inventées. */
.trust {
  display: grid;
  gap: 26px 18px;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 760px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust b {
  display: block;
  font: 300 clamp(2.4rem, 5vw, 3.4rem)/1 Manrope, sans-serif;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.trust span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* L'appel final. */
.final { padding-block: clamp(10px, 2vw, 24px); }
.final h2 { margin-bottom: 18px; }

#final { border-top: 1px solid var(--line-soft); }

/* Le bouton dans la carte du prix. */
.deal .deal-foot .pill { width: 100%; }

/* ─── L'en-tête ────────────────────────────────────────────────────────────── */

.top .wrap { gap: clamp(12px, 2vw, 26px); height: 70px; }
.mark img { width: 30px; height: 30px; }

/* Le bouton de téléchargement : la pilule de l'app, avec la pomme. */
.pill.store { gap: 8px; padding: 11px 18px; font-size: 14.5px; }
.pill.store svg { width: 17px; height: 17px; }
.pill.store.big { padding: 15px 26px; font-size: 16px; }
.pill.store.big svg { width: 19px; height: 19px; }

.lang-swap {
  display: none;
  align-items: center;
  gap: 5px;
  font: 600 11.5px/1 Manrope, sans-serif;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.lang-swap button {
  border: 0;
  background: none;
  padding: 4px 2px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.lang-swap button[aria-pressed="true"] { color: var(--ink); }
.lang-swap button:hover { color: var(--ink); }
@media (min-width: 560px) { .lang-swap { display: inline-flex; } }

/* ─── Le héros ─────────────────────────────────────────────────────────────── */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }

/* ─── Ses conseils ─────────────────────────────────────────────────────────────── */


.reviews {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: clamp(36px, 4vw, 56px);
}
@media (min-width: 880px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

.review { margin: 0; padding: 26px 24px; display: flex; flex-direction: column; }
.review blockquote {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--label);
}
.tip-cat {
  font: 600 11.5px/1 Manrope, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.tip blockquote { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.tip-foot { margin-top: 26px; font-size: 14.5px; color: var(--muted); max-width: 52ch; margin-inline: auto; }
.tip-foot b { color: var(--ink); font-weight: 600; }
.review figcaption {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 13.5px;
}
.review figcaption b { font-weight: 600; }
.review figcaption span { color: var(--muted); font-size: 12.5px; }

/* ─── La grille de tout ce que l'app sait faire ────────────────────────────── */

.grid-all {
  display: grid;
  gap: 30px 34px;
  grid-template-columns: 1fr;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (min-width: 680px) { .grid-all { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-all { grid-template-columns: repeat(3, 1fr); } }

.grid-all > div { padding-top: 24px; border-top: 1px solid var(--line-soft); }
.gi {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green);
  box-shadow: 0 1px 2px color-mix(in oklab, var(--shadow) 6%, transparent);
}
.gi svg { width: 22px; height: 22px; }
.grid-all h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 7px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.grid-all h3::before {
  content: "";
  width: 5px; height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  translate: 0 -2px;
}
.grid-all p { font-size: 15px; color: var(--label); line-height: 1.6; max-width: 34ch; }

/* ─── La page, forme « Planta » : un héros, une longue suite de fonctions ──── */

/* La ligne de fabrication, sous le héros. */
.made {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--muted);
}
.made .dot { opacity: 0.4; }

/* Chaque fonction : un texte et son objet, alternés. */
.feat { margin-top: var(--gap-beat); }
.feat h3 { margin-bottom: 0; }

/* Les titres à l'intérieur des cartes sont des h4 : ils ne concurrencent pas
   le titre de la fonction juste à côté. */
.sheet-head h4 { font: 300 1.55rem/1 Manrope, sans-serif; letter-spacing: -0.03em; margin-bottom: 4px; }
.grid-all h4 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.grid-all h4::before { content: none; }
.grid-all { margin-top: var(--gap-chapter); }

/* ─── La formule ────────────────────────────────────────────────────── */

.plans {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-inline: auto;
}
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); max-width: 980px; } }
.plan-tag {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--green) 14%, transparent);
  color: var(--green);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}
.tiers { display: grid; gap: 28px; margin: 44px auto 0; max-width: 760px; }
@media (min-width: 720px) { .tiers { grid-template-columns: 1fr 1fr; gap: 48px; } }
.tiers .plan-all-l { text-align: left; margin: 0; }
.tiers .plan-all { margin: 16px 0 0; max-width: none; }
.plan-all.one-col { grid-template-columns: 1fr; }

.plan { padding: 30px 28px; display: flex; flex-direction: column; }
.plan.best { border-color: color-mix(in oklab, var(--green) 42%, var(--line)); }
.plan-name {
  font: 600 11.5px/1 Manrope, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.plan.best .plan-name { color: var(--green); }
.plan-n {
  font: 300 clamp(2.4rem, 5vw, 3.2rem)/1 Manrope, sans-serif;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.plan-n small {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 8px;
}
.plan-l { margin: 14px 0 26px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.plan .pill { margin-top: auto; width: 100%; }

.plan-all {
  list-style: none;
  padding: 0;
  margin: clamp(32px, 4vw, 48px) auto 0;
  max-width: 760px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  font-size: 14.5px;
}
@media (min-width: 720px) { .plan-all { grid-template-columns: 1fr 1fr; } }
.plan-all li { display: flex; gap: 11px; color: var(--label); }
.plan-all svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--green); }

/* ─── Les arrivées, par où le bloc se trouve ───────────────────────────────── */

/* Tout montait du bas, à la même vitesse : au troisième bloc, l'œil avait
   compris et cessait de regarder. Les colonnes de droite arrivent de la droite,
   celles de gauche de la gauche, et seuls les blocs centrés montent. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .two > :first-child.rise,
  .two > :first-child .rise,
  .two.flip > :last-child.rise,
  .two.flip > :last-child .rise { transform: translate(-26px, 10px); }

  .two > :last-child.rise,
  .two > :last-child .rise,
  .two.flip > :first-child.rise,
  .two.flip > :first-child .rise { transform: translate(26px, 10px); }

  .rise.in, .two > *.rise.in, .two > * .rise.in { transform: none; }
}

/* Les cartes des trois temps du problème et de la grille arrivent en cascade. */
.steps > .rise:nth-child(2), .reviews > .rise:nth-child(2) { transition-delay: 0.09s; }
.steps > .rise:nth-child(3), .reviews > .rise:nth-child(3) { transition-delay: 0.18s; }

/* ─── Une scène bord à bord ────────────────────────────────────────────────── */

.bleed { margin-top: clamp(36px, 5vw, 56px); }
.scene.wide {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  min-height: clamp(360px, 44vw, 560px);
  justify-content: flex-end;
}
/* La bande de collines est dessinée sur toute la largeur du cadre : dans une
   scène qui fait l'écran entier, elle doublerait de taille. On la rabaisse. */
.scene.wide .scene-hills { height: 42%; }
.scene.wide .shelf { padding-bottom: clamp(28px, 5%, 56px); }
.scene.wide .plant-art { width: calc(clamp(96px, 11vw, 210px) * var(--scale, 1)); }
.scene.wide .shelf-names span { width: calc(clamp(96px, 11vw, 210px) * var(--scale, 1)); }
.scene.wide .shelf-row, .scene.wide .shelf-names { gap: clamp(16px, 7vw, 120px); }

/* ─── La hiérarchie typographique ──────────────────────────────────────────── */

/* Une première tentative avait fait du titre de fonction une *étiquette* de
   19 px semi-gras : à peine plus grande que le texte, et plus petite que les
   titres de fin de page. On a remis la chose dans l'ordre : le titre de fonction
   est de nouveau un titre — léger, une seule fin en semi-gras — et c'est l'écart
   avec le chapitre (1,45×) et avec le corps (2×) qui fait la hiérarchie. */
#fonctions > .wrap.center:first-of-type { margin-bottom: 0; }

/* ─── Casser la répétition des ciels ───────────────────────────────────────── */

/* Toutes les scènes partagent le même décor. Un léger décalage de teinte par
   scène suffit à ce que deux d'entre elles ne se ressemblent plus, sans
   fabriquer de nouveaux rendus. */
.scene.warm .scene-sky, .scene.warm .scene-hills { filter: hue-rotate(-14deg) saturate(1.16) brightness(1.03); }
.scene.cool .scene-sky, .scene.cool .scene-hills { filter: hue-rotate(12deg) saturate(0.88) brightness(0.99); }
.scene.late .scene-sky, .scene.late .scene-hills { filter: hue-rotate(-26deg) saturate(1.3) brightness(0.96); }

/* ─── Bloc 5 du plan : la section du journal passe en nuit ─────────────────── */

/* Piège, et il est plus profond que celui déjà noté : `var(--day)` est
   substitué **sur :root**, donc --ink, --page et les autres arrivent ici déjà
   figés en face de jour. Redéclarer --day ne suffit pas — il faut redéclarer
   les tokens eux-mêmes, qui se résolvent alors avec le --day local. */
.night-band {
  --night: 1;
  --day: 0%;

  --ink:   color-mix(in oklab, #1E2A22 var(--day), #F1EFE8);
  --label: color-mix(in oklab, #4E5F52 var(--day), #C6CFC7);
  --muted: color-mix(in oklab, #6E7E70 var(--day), #9FAAA1);
  --page:  color-mix(in oklab, #FBFAF7 var(--day), #14181B);
  --paper: color-mix(in oklab, #FFFFFF var(--day), #1B2226);
  --paper-sunk: color-mix(in oklab, #F2F0E8 var(--day), #171E22);
  --line:  color-mix(in oklab, #E4E2D8 var(--day), #2A3238);
  --line-soft: color-mix(in oklab, #EFEDE4 var(--day), #232A2F);
  --water: color-mix(in oklab, #5A97CC var(--day), #8DBFE8);
  --water-light: color-mix(in oklab, #BFE0F7 var(--day), #D6ECFA);
  --green: color-mix(in oklab, #3E7A4B var(--day), #8CC297);
  --terracotta: color-mix(in oklab, #D98B60 var(--day), #E8A67E);
  --shadow: color-mix(in oklab, #32543A var(--day), #05080C);
  --glass-fill: color-mix(in oklab, #FFFFFF var(--day), #1A2430);
  --glass-border: color-mix(in oklab, #FFFFFF var(--day), #C9D3DB);
  --pill-from: color-mix(in oklab, #2C3D30 var(--day), #F7F4EC);
  --pill-to:   color-mix(in oklab, #17211B var(--day), #E4E0D4);
  --pill-text: color-mix(in oklab, #F5F3EC var(--day), #1E2A22);

  background: var(--page);
  color: var(--ink);
  border-radius: var(--r-scene);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 56px);
  margin-top: var(--gap-chapter);
  box-shadow: 0 30px 60px color-mix(in oklab, #05080C 18%, transparent);
}
.night-band .scene { border-color: color-mix(in oklab, #C9D3DB 16%, transparent); }


/* ─── L'étagère à sept plantes ─────────────────────────────────────────────── */

/* Trois plantes qu'on a déjà vues trois fois : l'étagère pleine largeur en
   reçoit sept. Elle se vide par les bords quand l'écran rétrécit, pour que les
   plus centrales restent — on n'écrase pas sept pots dans 390 px. */
.scene.wide .plant-art { width: calc(clamp(72px, 9vw, 172px) * var(--scale, 1)); }
.scene.wide .shelf-names span { width: calc(clamp(72px, 9vw, 172px) * var(--scale, 1)); }
.scene.wide .shelf-row, .scene.wide .shelf-names { gap: clamp(10px, 3.6vw, 64px); }
@media (max-width: 1000px) {
  .scene.wide .shelf-row > :nth-child(1), .scene.wide .shelf-names > :nth-child(1),
  .scene.wide .shelf-row > :nth-child(7), .scene.wide .shelf-names > :nth-child(7) { display: none; }
}
@media (max-width: 640px) {
  .scene.wide .shelf-row > :nth-child(2), .scene.wide .shelf-names > :nth-child(2),
  .scene.wide .shelf-row > :nth-child(6), .scene.wide .shelf-names > :nth-child(6) { display: none; }
  .scene.wide .plant-art { width: calc(clamp(88px, 26vw, 150px) * var(--scale, 1)); }
  .scene.wide .shelf-names span { width: calc(clamp(88px, 26vw, 150px) * var(--scale, 1)); }
}
/* Dans la scène finale il n'y a pas de noms, et seulement cinq plantes. */
.final-scene .shelf-row { gap: clamp(10px, 3.6vw, 64px); }
@media (max-width: 640px) {
  .final-scene .shelf-row > :nth-child(1), .final-scene .shelf-row > :nth-child(5) { display: none; }
}

/* ─── Deux fonctions photo, côte à côte ────────────────────────────────────── */

.duo {
  display: grid;
  gap: clamp(48px, 6vw, 72px) clamp(24px, 3.4vw, 48px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-item { display: flex; flex-direction: column; min-width: 0; }
/* Même hauteur de scène des deux côtés : c'est ce qui fait une rangée. */
.duo-scene {
  min-height: clamp(360px, 38vw, 470px);
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(28px, 3.4vw, 40px);
}
.duo-text .body { margin-top: var(--gap-title); max-width: 40ch; }
.duo-scene .ident { width: min(86%, 340px); }
.duo-scene .stage { position: absolute; inset: 0; height: auto; }
.duo-scene .device {
  left: 50%;
  right: auto;
  bottom: -26%;
  height: 100%;
  translate: none;
  transform: translateX(-50%) rotate(-1.2deg);
}

/* ─── Les tarifs : ce que les deux formules ont en commun ──────────────────── */

.plan-all-l {
  max-width: 760px;
  margin: clamp(36px, 4.4vw, 52px) auto 0;
  font: 600 11.5px/1 Manrope, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.plan-all { margin-top: 18px; }

/* ─── La grammaire d'un texte de fonction ──────────────────────────────────── */

/* Un titre, une phrase, deux ou trois repères. Jamais un paragraphe : c'est le
   bloc gris de cinq lignes qui rendait ces sections illisibles. Le titre dit le
   sujet, la phrase dit l'idée, et chaque repère porte son mot-clé en gras — on
   peut ne lire que les gras et avoir tout compris. */
.feat .lede, .duo-text .lede, .section-head .lede, #fonctions .wrap.center > .lede {
  margin-top: var(--gap-title);
  max-width: 34ch;
  color: var(--label);
}
.points { list-style: none; margin: clamp(22px, 2.6vw, 30px) 0 0; padding: 0; max-width: 46ch; }
.points li {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--label);
}
.points li:last-child { border-bottom: 1px solid var(--line-soft); }
.points b { color: var(--ink); font-weight: 600; }
.points b::after { content: ""; }

@media (min-width: 900px) {
  .points.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3.4vw, 48px); max-width: none; }
  .points.row li { border-bottom: 0; padding: 18px 0 0; }
  .points.row li:last-child { border-bottom: 0; }
  .points.row b { display: block; margin-bottom: 4px; }
}
.section-head { max-width: 640px; margin-inline: auto; text-align: center; }
.section-head .lede { margin-inline: auto; text-align: center; max-width: 44ch; }

/* ─── Le héros : l'app, deux écrans ────────────────────────────────────────── */

/* Deux captures droites, décalées en hauteur : l'étagère à gauche, la fiche
   d'une plante à droite. Pas d'inclinaison (elle floutait le texte des captures),
   et la seconde déborde par le bas pour dire « il y a encore de l'app dessous ». */
.hero-scene {
  min-height: clamp(440px, 48vw, 600px);
  justify-content: flex-end;
}
.hero-scene .device {
  position: absolute;
  height: 84%;
  translate: var(--px, 0) var(--py, 0);
  transition: translate 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.hero-scene .device.a { left: 9%; top: 7%; }
.hero-scene .device.b { right: 8%; bottom: -7%; height: 86%; }
.hero-scene .device img {
  display: block;
  height: 100%;
  width: auto;
  border-radius: 13%/6.4%;
  box-shadow:
    0 0 0 7px color-mix(in oklab, #10151A 92%, transparent),
    0 0 0 8px color-mix(in oklab, #7E8A93 55%, transparent),
    0 34px 54px color-mix(in oklab, var(--shadow) 38%, transparent);
}
@media (max-width: 620px) {
  .hero-scene .device.a { left: 5%; }
  .hero-scene .device.b { right: 5%; }
}
/* `display: block` ci-dessus l'emportait sur le masquage de la langue absente. */
html[data-lang="fr"] .hero-scene .device img.en-only,
html[data-lang="en"] .hero-scene .device img.fr-only { display: none; }


/* ─── Les pièces : de vraies photos d'intérieur ────────────────────────────── */

/* Le site répétait les mêmes collines et les mêmes trois plantes derrière chaque
   scène. Une pièce par usage : c'est ce qui dit où vivent les plantes. La règle
   de la page ne change pas — la photo reste dans un cadre, jamais sur le fond. */
.scene-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.scene-photo.day   { opacity: calc(1 - var(--night)); }
.scene-photo.night { opacity: var(--night); }
.hero-scene .scene-photo { object-position: 38% 50%; }
.duo-scene .scene-photo { object-position: 50% 40%; }

/* La pièce de la démo change avec la pièce choisie. */
.rc-room { margin: -6px 0 0; position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-tile); overflow: hidden; border: 1px solid var(--line); }
.rc-room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.rc-room img.on { opacity: 1; }

/* La fin de page : la phrase sur le papier, puis une fenêtre qui s'ouvre
   dessous, bord à bord. La photo porte les plantes, rien ne la recouvre. */
#final { padding-block: clamp(76px, 10vw, 140px) 0; }
.final-scene { margin-top: clamp(48px, 6vw, 80px); min-height: clamp(360px, 42vw, 620px); border-bottom: 0; }


/* ─── La fiche réelle, dans la scène jour / nuit ───────────────────────────── */

/* Deux captures de la même fiche, l'une avec l'app en clair, l'autre en sombre :
   elles se fondent avec la photo de la pièce quand on change de face. */
#scene-nuit { min-height: clamp(460px, 50vw, 600px); justify-content: center; align-items: center; }
.device.fiche {
  position: absolute;
  left: 50%;
  top: 9%;
  height: 112%;
  aspect-ratio: 520 / 1131;
  transform: translateX(-50%);
  border-radius: 11%/5%;
  box-shadow:
    0 0 0 7px color-mix(in oklab, #10151A 92%, transparent),
    0 0 0 8px color-mix(in oklab, #7E8A93 55%, transparent),
    0 34px 54px rgba(0, 0, 0, 0.35);
}
.device.fiche img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.device.fiche img.light { opacity: calc(1 - var(--night)); }
.device.fiche img.dark  { opacity: var(--night); }
html[data-lang="fr"] .device.fiche img.en-only,
html[data-lang="en"] .device.fiche img.fr-only { display: none; }
.scene-switch { z-index: 3; }

/* ─── La rangée de souvenirs, en capture ───────────────────────────────────── */

.cap-scene { min-height: clamp(320px, 34vw, 430px); justify-content: center; align-items: center; }
.cap-scene .cap {
  width: min(86%, 440px);
  height: auto;
  border-radius: 26px;
  box-shadow: 0 2px 4px rgba(20, 30, 24, 0.12), 0 26px 44px rgba(20, 30, 24, 0.3);
}
html[data-lang="fr"] .cap-scene .cap.en-only,
html[data-lang="en"] .cap-scene .cap.fr-only { display: none; }

/* ─── Petits réglages restés de passes précédentes ─────────────────────────── */

/* Les repères d'un chapitre centré sortent de sa colonne étroite : trois
   colonnes de 14 caractères se lisent mal. */
.wrap.center .points.row { text-align: left; }
@media (min-width: 900px) {
  .wrap.center .points.row {
    width: min(calc(100vw - 2 * var(--gutter)), 940px);
    position: relative;
    left: 50%;
    translate: -50% 0;
  }
}

/* La notification du tour ne doit pas retomber sur les gouttes des plantes. */
.scene.round { min-height: clamp(430px, 40vw, 540px); }
.scene.round .plant-art { width: calc(clamp(72px, 9.4vw, 122px) * var(--scale, 1)); }
.scene.round .notif { margin-bottom: 22px; }

/* La bande de collines avait un bord net, qui se lisait comme une dalle grise
   sous le ciel de nuit : elle se fond sur la moitié de sa hauteur. */
.scene-hills::before, .scene-hills::after {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 58%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 58%);
}

/* Le chapitre des fonctions s'ouvre directement sur son premier bloc. */
#fonctions > .feat:first-child { margin-top: 0; }

/* ─── L'arrosage : un mock-up, pas une démo ────────────────────────────────── */

/* Deux écrans de l'app, l'un devant l'autre, dans une pièce. C'est tout : le
   visuel dit « voilà comment l'app gère l'arrosage », sans rien à manipuler. */
.phones-scene { min-height: clamp(440px, 46vw, 600px); justify-content: center; }
.phones-scene .ph {
  position: absolute;
  height: 92%;
  aspect-ratio: 520 / 1131;
  border-radius: 11%/5%;
  box-shadow:
    0 0 0 7px color-mix(in oklab, #10151A 92%, transparent),
    0 0 0 8px color-mix(in oklab, #7E8A93 55%, transparent),
    0 34px 54px rgba(0, 0, 0, 0.32);
}
.phones-scene .ph img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.phones-scene .ph.a { left: 9%; top: 6%; z-index: 2; }
.phones-scene .ph.b { right: 8%; bottom: -8%; height: 88%; }
html[data-lang="fr"] .phones-scene .ph img.en-only,
html[data-lang="en"] .phones-scene .ph img.fr-only { display: none; }
@media (max-width: 620px) {
  .phones-scene .ph.a { left: 5%; }
  .phones-scene .ph.b { right: 5%; }
}

.pill.soon { pointer-events: none; cursor: default; }
