/* ═══════════════════════════════════════════════════════════════════════════
   Yedra — landing page (site vitrine pré-lancement).
   Les valeurs de marque vivent dans assets/brand/ (package « Sève ») : cette
   feuille ne fait que composer la page avec ces tokens, jamais de couleur,
   de rayon ou de courbe en dur qui existerait déjà en token.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Socle ───────────────────────────────────────────────────────────────── */
body { margin: 0; }
::selection { background: var(--color-acid); color: var(--color-acid-ink); }

.page {
  min-height: 100vh;
  background: var(--surface);
  color: var(--text-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes pulsedot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .4; } }

/* Captures d'app : une par thème */
.only-dark { display: none; }
.dark .only-light { display: none !important; }
.dark .only-dark { display: inline-block; }

/* Étiquette de donnée (DataChip du package) : la couleur est une donnée,
   toujours aquarellisée — wash en fond, ink en texte. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: color-mix(in oklab, var(--chip-base) 18%, var(--data-wash-base));
  color: color-mix(in oklab, var(--chip-base) 64%, var(--data-ink-base));
  border-radius: var(--radius-tile);
  font: 600 12px/1.4 var(--font-sans);
}
.chip__dot { width: 7px; height: 7px; border-radius: 99px; background: var(--chip-base); flex: none; }

/* Bouton acid du héros — ombre dure d'encre, s'écrase au clic (S5). */
.btn-acid {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--radius-control);
  background: var(--color-acid);
  color: var(--color-acid-ink);
  font: 700 15px var(--font-sans);
  border: 1.5px solid var(--color-acid-ink);
  box-shadow: 0 2px 0 0 #000;
  cursor: pointer;
  transition: transform .14s var(--ease-spring), box-shadow .14s ease;
}
.btn-acid:hover { transform: translateY(-1px); box-shadow: 0 3px 0 0 #000; }
.btn-acid:active { transform: translateY(1px); box-shadow: 0 1px 0 0 #000; }

/* ── Chrome de navigation ────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 20px clamp(28px, 4vw, 56px);
  pointer-events: none;
  box-sizing: border-box;
  transition: opacity .3s ease .1s;
}
.topbar__tools { display: inline-flex; align-items: center; gap: 16px; pointer-events: auto; }
.topbar__mobile { display: none; align-items: center; gap: 4px; pointer-events: auto; }

/* L'écran 1 quitté : la topbar se scinde (logo ←, utilitaires →) */
.topbar.nav-off { opacity: 0; transition: opacity .3s ease .3s; }
.topbar.nav-off > .topbar__tools { transform: translateX(56px); opacity: 0; }
.topbar > .topbar__tools { transition: transform .6s var(--ease-out-soft), opacity .34s ease; }
.topbar.nav-off * { pointer-events: none !important; }

/* Sélecteur de thème : satellite compact qui se déplie au survol / au clic */
.tsel { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px; }
.tsel--os { background: rgb(244 241 232 / .08); border: 1px solid rgb(244 241 232 / .16); }
.tsel--ink { background: var(--color-ink); flex: none; }
.tsel__root {
  width: 26px; height: 26px;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--color-stone-300);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.tsel__root i { font-size: 12px; }
.tsel-opts {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .45s var(--ease-spring), opacity .22s ease;
}
.tsel:hover .tsel-opts,
.tsel:focus-within .tsel-opts,
.tsel.tsel-open .tsel-opts { max-width: 96px; opacity: 1; }
.tsel__opt {
  width: 26px; height: 26px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--color-stone-400);
  transition: background .18s ease, color .18s ease;
}
.tsel__opt i { font-size: 11px; }
.tsel__opt[aria-pressed="true"] { background: var(--color-bone); color: var(--color-ink); }

/* Pilule de navigation (écrans 2–3) — toujours encre, CTA acid */
.navpill {
  position: fixed;
  top: 16px; left: 50%;
  z-index: 60;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 8px;
  transform-origin: 50% 0;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 18px rgb(15 16 13 / .28));
  transition: transform .65s var(--ease-spring) .18s, opacity .3s ease .18s;
}
.navpill.nav-off {
  opacity: 0;
  transform: translateX(-50%) translateY(-18px) scale(.9);
  pointer-events: none;
  transition: transform .45s var(--ease-out-soft), opacity .26s ease;
}
.navbar {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 54px;
  padding: 0 10px 0 20px;
  background: var(--color-ink);
  color: var(--color-bone);
  border-radius: 999px;
  box-shadow: var(--shadow-elevation);
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}
.navbar__logo { height: 20px; width: auto; display: block; flex: none; }
.navbar__actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.navbar__cta { border-radius: 99px; padding: .5rem 1rem; font-size: 13px; }

/* Dock mobile : la progression et LA seule action */
.mdock {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 65;
  transform: translateX(-50%);
  align-items: center;
  background: color-mix(in srgb, var(--color-ink) 94%, transparent);
  border-radius: 999px;
  padding: 5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgb(15 16 13 / .32);
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
}
.mdock__cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-acid);
  color: var(--color-acid-ink);
  font: 700 13.5px var(--font-sans);
  border: 1.5px solid var(--color-acid-ink);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 2px 0 0 var(--color-acid-ink);
  transition: transform .14s var(--ease-spring), box-shadow .14s ease;
  white-space: nowrap;
}
.mdock__cta:active { transform: translateY(1px); box-shadow: 0 0 0 0 var(--color-acid-ink); }

/* ── Le deck : 1 cran de molette = 1 écran (desktop) ─────────────────────── */
.deck.on { height: 100svh; overflow: hidden; }
.deck__track { transition: transform .8s var(--ease-out-soft); will-change: transform; }

.slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px 40px 18px;
}
.slide--full { padding: 0; max-width: none; }

.deck.on .slide { height: 100svh; overflow: hidden; }
.deck.on .slide > :first-child { margin-top: auto; }
.deck.on .slide > :last-child { margin-bottom: auto; }
/* Finale : le split acid remplit l'écran */
.deck.on #liste > :first-child { margin-top: 0; flex: 1 1 auto; min-height: 0; }

/* Révélation au défilement (hors deck) */
.rev-pre {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease-out-soft), transform .6s var(--ease-out-soft);
}
.rev-pre.rev-in, .rev-in { opacity: 1; transform: none; }
.deck.on .rev-pre { opacity: 1 !important; transform: none !important; filter: none !important; }

/* ── Entrées d'écran (classe .live sur l'écran courant) ──────────────────── */
.deck.on .bento__card,
.deck.on #liste > div {
  transition: transform .8s var(--ease-out-soft) var(--pxd, 0s),
              opacity .55s var(--ease-out-soft) var(--pxd, 0s),
              filter .65s var(--ease-out-soft) var(--pxd, 0s);
  will-change: transform, opacity, filter;
}
.deck.on .split {
  transition: transform .85s var(--ease-out-soft), border-radius .85s var(--ease-out-soft);
  will-change: transform;
}
.deck.on .slide:not(.live) .split { transform: scale(.9); border-radius: 40px; }
.deck.on .slide.leaving .split__content > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
.deck.on .slide.leaving .split__panel > div { transform: none !important; transition: none !important; }
.deck.on .slide.leaving .bento__card,
.deck.on #liste.slide.leaving > div { filter: blur(0); }

.deck.on .slide:not(.live) .bento__card,
.deck.on #liste.slide:not(.live) > div {
  opacity: 0;
  transform: translateY(calc(var(--dir, 1) * 88px)) scale(.96);
  filter: blur(9px);
  transition-duration: .4s, .35s, .3s;
  transition-delay: 0s, 0s, 0s;
}
/* Finale : même chorégraphie que le héros (zoom du split, pas de translation) */
.deck.on #liste.slide:not(.live) > div.split { opacity: 1; transform: scale(.9); filter: none; }

/* Les vignettes de démo montent en dernier */
.deck.on .bento__card > :last-child,
.deck.on .split__panel > div {
  transition: transform 1.15s var(--ease-out-soft) calc(var(--pxd, 0s) + .1s);
  will-change: transform;
}
.deck.on .slide:not(.live) .bento__card > :last-child { transform: translateY(calc(var(--dir, 1) * 110px)); transition-duration: .4s; transition-delay: 0s; }
.deck.on .slide:not(.live) .split__panel > div { transform: translate(52px, 52px); transition-duration: .4s; transition-delay: 0s; }

.deck.on .bento__card > h3,
.deck.on .bento__card > p {
  transition: transform .85s var(--ease-out-soft) calc(var(--pxd, 0s) + .05s),
              opacity .6s var(--ease-out-soft) calc(var(--pxd, 0s) + .05s),
              filter .6s var(--ease-out-soft) calc(var(--pxd, 0s) + .05s);
}
.deck.on .slide:not(.live) .bento__card > h3,
.deck.on .slide:not(.live) .bento__card > p {
  opacity: 0;
  transform: translateY(calc(var(--dir, 1) * 34px));
  filter: blur(6px);
  transition-duration: .3s, .25s, .25s;
  transition-delay: 0s, 0s, 0s;
}

/* Colonne gauche des splits : stagger 90ms */
.deck.on .split__content > * {
  transition: transform .7s var(--ease-out-soft) var(--pxd, 0s),
              opacity .55s var(--ease-out-soft) var(--pxd, 0s),
              filter .55s var(--ease-out-soft) var(--pxd, 0s);
}
.deck.on .slide:not(.live) .split__content > * {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition-duration: .3s, .3s, .3s;
  transition-delay: 0s, 0s, 0s;
}
.deck.on .split__content > :nth-child(2) { --pxd: .09s; }
.deck.on .split__content > :nth-child(3) { --pxd: .18s; }
.deck.on .bento__card:nth-child(2) { --pxd: .1s; }
.deck.on .bento__card:nth-child(3) { --pxd: .2s; }
.deck.on .bento__card:nth-child(4) { --pxd: .3s; }

/* ── Écran 1 · L'accroche ────────────────────────────────────────────────── */
.split {
  background: var(--color-ink);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  width: 100%;
  height: 100svh;
  min-height: 500px;
}
.split--final { background: var(--color-acid-hot); }
.split__content {
  position: relative;
  padding: clamp(28px, 4vw, 56px);
  padding-top: clamp(88px, 12vh, 128px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.split__panel { position: relative; min-width: 0; min-height: 340px; }
.split__panel--hero { background: color-mix(in srgb, var(--color-acid) 10%, var(--color-ink)); }
.split__panel--final { background: var(--color-acid-hot); }

.hero__logo {
  height: clamp(52px, 5.5vw, 76px);
  width: auto;
  align-self: flex-start;
  margin-bottom: clamp(24px, 3.5vh, 40px);
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--color-stone-100);
  text-wrap: balance;
}
.hero__lede {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-stone-400);
  text-wrap: pretty;
}
.hero__actions { margin-top: 30px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-note {
  margin: 0;
  position: absolute;
  bottom: clamp(24px, 3.5vw, 46px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(13.5px, 1.25vw, 15.5px);
  letter-spacing: 0.015em;
  color: var(--color-stone-400);
  white-space: nowrap;
}
.hero__shot {
  position: absolute;
  left: clamp(28px, 4vw, 56px);
  top: clamp(56px, 14%, 96px);
  right: -2px; bottom: -2px;
  border-radius: 16px 0 0 0;
  overflow: hidden;
  box-shadow: -24px -24px 56px rgb(0 0 0 / .55), 0 0 0 1px rgb(245 245 244 / .07);
  background: var(--color-bone);
}
.hero__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* ── Écrans 2–3 · Les bentos ─────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; width: 100%; }
.bento__card {
  background: var(--fam-fill);
  border-radius: 24px;
  padding: 22px 24px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bento__card[data-fam="tangerine"] { --fam-fill: var(--color-tangerine-fill); --fam-ink: var(--color-tangerine-ink); }
.bento__card[data-fam="cobalt"]    { --fam-fill: var(--color-cobalt-fill);    --fam-ink: var(--color-cobalt-ink); }
.bento__card[data-fam="clay"]      { --fam-fill: var(--color-clay-fill);      --fam-ink: var(--color-clay-ink); }
.bento__card[data-fam="sky"]       { --fam-fill: var(--color-sky-fill);       --fam-ink: var(--color-sky-ink); }
.bento__card[data-fam="iris"]      { --fam-fill: var(--color-iris-fill);      --fam-ink: var(--color-iris-ink); }
.bento__card[data-fam="rose"]      { --fam-fill: var(--color-rose-fill);      --fam-ink: var(--color-rose-ink); }
.bento__card[data-fam="teal"]      { --fam-fill: var(--color-teal-fill);      --fam-ink: var(--color-teal-ink); }
.bento__card[data-fam="butter"]    { --fam-fill: var(--color-butter-fill);    --fam-ink: var(--color-butter-ink); }

.bento__title { margin: 0; font: 700 18px/1.2 var(--font-display); letter-spacing: -.016em; color: var(--fam-ink); }
.bento__body { margin: 6px 0 16px; font: 400 13px/1.5 var(--font-sans); color: var(--text-1); opacity: .75; text-wrap: pretty; }
.bento__body--lg { margin: 8px 0 0; font: 400 13.5px/1.55 var(--font-sans); }

/* La vignette de démo « émerge » du bas de la carte */
.demo-slot { margin: auto auto 0; width: min(var(--demo-w), 96%); flex: none; }
/* La vignette n'est pas une carte posée : elle sort du bas de la carte bento —
   d'où le rayon haut seul et l'ombre qui monte, dans les deux thèmes. */
.demo-card,
.dark .demo-card {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -12px 32px rgb(24 28 16 / .12);
}
.demo-h { font: 700 16px/1.1 var(--font-display); letter-spacing: -.02em; }

/* Démo · Demandes ─────────────────────────────────────────────────────────*/
.demo-card--flux { height: 246px; padding: 13px 16px; display: flex; flex-direction: column; overflow: hidden; }
.flux__head { display: flex; align-items: center; gap: 10px; padding-bottom: 9px; }
.flux__count { margin-left: auto; font: 500 11.5px var(--font-mono); color: var(--text-2); }
.flux__row { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out-soft); }
.flux__row.is-open { grid-template-rows: 1fr; }
.flux__row > div { overflow: hidden; min-height: 0; }
.flux__line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-1); }
.flux__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.flux__nom { font: 600 12.5px/1.3 var(--font-sans); }
.flux__objet { font: 400 11.5px/1.3 var(--font-sans); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flux__when { font: 400 10.5px var(--font-mono); color: var(--text-3); flex: none; }
.flux__acts { display: flex; gap: 6px; flex: none; }
.flux__btn {
  height: 28px; padding: 0 9px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  background: var(--surface-card);
  color: var(--text-2);
  cursor: pointer;
}
.flux__btn i { font-size: 10px; }
.flux__btn .data-num { font: 600 9.5px var(--font-mono); color: var(--text-3); }
.flux__btn--ok { background: color-mix(in srgb, var(--color-emerald-500) 15%, var(--surface-card)); color: var(--color-emerald-600); }
.flux__btn--ok .data-num { color: inherit; }
.flux__state {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-tile);
  font: 600 11px var(--font-sans);
  flex: none;
}
.flux__state i { font-size: 9px; }
.flux__state--ok { background: color-mix(in srgb, var(--color-emerald-500) 15%, var(--surface-card)); color: var(--color-emerald-600); }
.flux__state--no { background: var(--surface-wash); color: var(--text-2); }
.flux__empty { padding: 26px 14px; border-radius: var(--radius-control); flex: 1; justify-content: center; }
.flux__empty-line { font: 400 18px/1.3 var(--font-editorial); font-style: italic; }
.flux__empty-sub { font: 400 12px var(--font-sans); color: var(--text-2); }

/* Démo · Annuaire ────────────────────────────────────────────────────────*/
.demo-card--seg { height: 232px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.seg__head { display: flex; align-items: center; gap: 10px; }
.seg__chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg__chips > span[data-seg-chips] { display: contents; }
.seg__chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-tile);
  background: var(--surface-wash);
  font: 500 11.5px var(--font-mono);
}
.seg__chip-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--seg-dot); flex: none; }
.seg__ghost {
  display: inline-flex;
  padding: 4px 11px;
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius-tile);
  color: var(--text-3);
  font: 500 11.5px var(--font-mono);
}
.seg__count { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.seg__num { font: 600 32px/1 var(--font-mono); letter-spacing: -.01em; }
.seg__label { font: 400 12.5px var(--font-sans); color: var(--text-2); }
.seg__saved { display: flex; align-items: center; gap: 12px; }
.seg__saved-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-tile);
  background: var(--surface-wash);
  border: 1px solid var(--border-1);
  font: 500 12px var(--font-mono);
}
.seg__saved-chip i { font-size: 10px; color: var(--text-3); }
.seg__saved-btn { padding: .45rem .9rem; font-size: 12.5px; }

/* Démo · ⌘K ──────────────────────────────────────────────────────────────*/
.demo-card--cmdk { background: var(--surface-card); overflow: hidden; }
.cmdk__bar { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--border-1); }
.cmdk__bar > .pi-search { font-size: 13px; color: var(--text-3); }
.cmdk__ph { font: 400 13.5px var(--font-sans); color: var(--text-3); }
.cmdk__q { font: 500 13.5px var(--font-mono); }
.cmdk__caret { display: inline-block; width: 1.5px; height: 15px; background: var(--text-1); animation: blink 1.1s steps(1) infinite; }
.cmdk__kbd { margin-left: auto; font: 500 10.5px var(--font-mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border-2); color: var(--text-2); }
.cmdk__body { height: 170px; overflow: hidden; display: flex; flex-direction: column; padding: 6px 0; }
.cmdk__res { display: flex; align-items: center; gap: 11px; padding: 9px 14px; transition: background .18s; }
.cmdk__res.is-sel { background: color-mix(in srgb, var(--color-acid) 18%, var(--surface-card)); }
.cmdk__avatar {
  width: 26px; height: 26px;
  border-radius: var(--radius-tile);
  background: var(--color-clay-fill);
  color: var(--color-clay-ink);
  display: flex; align-items: center; justify-content: center;
  font: 600 10px var(--font-mono);
  flex: none;
}
.cmdk__avatar--lg { width: 34px; height: 34px; border-radius: 10px; font: 600 11.5px var(--font-mono); }
.cmdk__icon {
  width: 26px; height: 26px;
  border-radius: var(--radius-tile);
  background: var(--surface-wash);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.cmdk__icon i { font-size: 11px; color: var(--text-2); }
.cmdk__label { font: 500 13px var(--font-sans); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk__kind { font: 500 9.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cmdk__exec {
  margin: 8px 14px;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-acid) 22%, var(--surface-card));
  color: var(--text-1);
  font: 600 12.5px var(--font-sans);
}
.cmdk__exec i { font-size: 11px; }
.cmdk__fiche {
  margin: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-card);
  background: var(--surface-card);
  padding: 13px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.cmdk__fiche-head { display: flex; align-items: center; gap: 10px; }
.cmdk__ident { display: flex; flex-direction: column; min-width: 0; }
.cmdk__name { font: 700 14px/1.2 var(--font-display); }
.cmdk__mail { font: 400 10.5px var(--font-mono); color: var(--text-3); }
.cmdk__fiche-chip { margin-left: auto; display: flex; }
.cmdk__facts { display: flex; gap: 14px; flex-wrap: wrap; }
.cmdk__facts .data-num { font: 400 11.5px var(--font-mono); color: var(--text-2); }
.cmdk__foot { font: 400 10.5px var(--font-mono); color: var(--text-3); border-top: 1px solid var(--border-1); padding-top: 8px; }
.cmdk__idle { margin: auto; font: 400 12.5px var(--font-sans); color: var(--text-3); padding: 20px; }
.cmdk__legend { display: flex; gap: 14px; padding: 9px 15px; border-top: 1px solid var(--border-1); }
.cmdk__legend .data-num { font: 400 10.5px var(--font-mono); color: var(--text-3); }
.cmdk__legend-end { margin-left: auto; font: 500 10.5px var(--font-mono) !important; color: var(--text-2) !important; }

/* Démo · Documents ───────────────────────────────────────────────────────*/
.demo-slot--wide { margin: auto auto 0; }
.demo-card--docs { overflow: hidden; }
.docs__head { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid var(--border-1); }
.docs__head .demo-h { font-size: 15px; }
.docs__count { margin-left: auto; font: 400 11px var(--font-mono); color: var(--text-3); }
.docs__row { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--border-1); }
.docs__row > .pi-file-pdf { font-size: 15px; color: var(--color-clay); flex: none; }
.docs__file { display: flex; flex-direction: column; min-width: 0; }
.docs__name { font: 500 12.5px var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs__meta { font: 400 10.5px var(--font-mono); color: var(--text-3); }
.docs__dl { margin-left: auto; font-size: 12px; color: var(--text-3); flex: none; }
.docs__foot { padding: 12px 15px; }
.docs__foot .data-num { font: 400 11px var(--font-mono); color: var(--text-3); }

/* Démo · Scénarios ───────────────────────────────────────────────────────*/
.demo-card--wf {
  margin: auto auto 0;
  background-color: var(--surface-card);
  width: min(560px, 96%);
  height: 252px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.wf-stage { transform: scale(0.56); transform-origin: top center; width: 614px; height: 432px; position: relative; flex: none; margin-top: 10px; }
.wf__links { position: absolute; inset: 0; width: 100%; height: 100%; }
.wf__node {
  position: absolute;
  box-sizing: border-box;
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--radius-control);
  padding: 10px 13px;
}
.wf__node-icon { width: 28px; height: 28px; border-radius: var(--radius-tile); display: flex; align-items: center; justify-content: center; flex: none; }
.wf__node-icon i { font-size: 12px; }
.wf__node-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wf__node-kick { font: 600 8.5px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.wf__node-title { font: 700 13px/1.2 var(--font-sans); white-space: nowrap; }
.wf__node-desc { font: 400 11px/1.35 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf__chip {
  position: absolute;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 99px;
  font: 700 10px var(--font-mono);
  letter-spacing: .06em;
}
.wf__badge {
  position: absolute; left: 2px; bottom: 2px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border-radius: 9px;
  background: var(--surface-card);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-card);
  font: 500 11.5px var(--font-mono);
  color: var(--text-1);
}
.wf__pulse { width: 6px; height: 6px; border-radius: 99px; background: var(--color-emerald-500); animation: pulsedot 2s ease-in-out infinite; }

/* Démo · Campagnes ───────────────────────────────────────────────────────*/
.demo-card--camp { height: 288px; padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.camp__head { display: flex; align-items: center; gap: 10px; }
.camp__name { font-size: 16.5px; }
.camp__sending { margin-left: auto; display: flex; align-items: center; gap: 7px; font: 500 11.5px var(--font-mono); color: var(--text-2); }
.camp__sending i { font-size: 12px; }
.camp__sent {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-tile);
  background: color-mix(in srgb, var(--color-emerald-500) 15%, var(--surface-card));
  color: var(--color-emerald-600);
  font: 600 12px var(--font-sans);
}
.camp__sent i { font-size: 10px; }
.camp__lbl { font: 600 11.5px var(--font-sans); color: var(--text-2); }
.camp__draft { display: flex; flex-direction: column; gap: 13px; flex: 1; }
.camp__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.camp__total { font: 600 12px var(--font-mono); color: var(--text-1); align-self: center; }
.camp__objet { display: flex; flex-direction: column; gap: 6px; }
.camp__field { display: block; font-size: 13px; }
.camp__send { margin-top: auto; justify-content: center; }
.camp__send i { font-size: 12px; }
.camp__sendingv { display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: center; }
.camp__gauge-head { display: flex; align-items: baseline; gap: 8px; }
.camp__gauge-num { font: 600 30px/1 var(--font-mono); letter-spacing: -.01em; }
.camp__gauge-tot { font: 400 13px var(--font-mono); color: var(--text-2); }
.camp__bar { height: 8px; border-radius: 99px; background: var(--surface-ghost); overflow: hidden; display: block; }
.camp__bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--color-iris); width: 0%; transition: width 2.4s var(--ease-out-soft); }
.camp__gauge-note { font: 400 12px var(--font-sans); color: var(--text-2); }
.camp__results { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.camp__eyebrow { font: 600 10.5px var(--font-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.camp__funnel { display: flex; flex-direction: column; gap: 11px; }
.camp__fun { display: grid; grid-template-columns: 82px 1fr auto; gap: 10px; align-items: center; }
.camp__fun-lbl { font: 500 12px var(--font-sans); color: var(--text-1); }
.camp__fun-bar { height: 9px; border-radius: 99px; background: var(--surface-ghost); overflow: hidden; display: block; }
.camp__fun-fill { display: block; height: 100%; border-radius: 99px; width: 0%; transition: width .9s var(--ease-out-soft); }
.camp__fun-val { font: 500 11.5px var(--font-mono); color: var(--text-2); white-space: nowrap; }
.camp__health { margin-top: auto; font: 400 11px var(--font-mono); color: var(--text-3); border-top: 1px solid var(--border-1); padding-top: 10px; }

/* Démo · Import ──────────────────────────────────────────────────────────*/
.demo-card--imp { height: 304px; padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.imp__head { display: flex; align-items: center; gap: 10px; }
.imp__head .demo-h { font-size: 16.5px; }
.imp__statut { margin-left: auto; font: 400 11px var(--font-mono); color: var(--text-3); }
.imp__drop {
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius-control);
  padding: 13px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px;
}
.imp__idle { display: flex; align-items: center; gap: 10px; }
.imp__idle > i { font-size: 14px; color: var(--text-3); }
.imp__idle-txt { display: flex; flex-direction: column; gap: 1px; }
.imp__idle-title { font: 500 12.5px var(--font-sans); color: var(--text-1); }
.imp__idle-sub { font: 400 10.5px var(--font-mono); color: var(--text-3); }
.imp__file {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--surface-wash);
  border: 1px solid var(--border-1);
  font: 500 12px var(--font-mono);
}
.imp__file i { font-size: 12px; color: var(--color-teal); }
.imp__lignes { font: 400 12.5px var(--font-sans); color: var(--text-2); }
.imp__lignes-n { font: 600 12.5px var(--font-mono); color: var(--text-1); }
.imp__maps { display: flex; flex-direction: column; gap: 7px; }
.imp__map {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 20px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface-wash);
  border-radius: 9px;
}
.imp__map .data-num { font: 500 12px var(--font-mono); }
.imp__map-vers { color: var(--color-teal-ink); }
.imp__map i { font-size: 10px; color: var(--text-3); }
.imp__sim { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border-1); padding-top: 10px; }
.imp__sim-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.imp__pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--radius-tile); font: 600 11px var(--font-mono); }
.imp__pill--ok { background: color-mix(in srgb, var(--color-emerald-500) 14%, var(--surface-card)); color: var(--color-emerald-600); }
.imp__pill--maj { background: var(--color-butter-wash); color: var(--color-butter-ink); }
.imp__pill--neutre { background: var(--surface-wash); color: var(--text-2); font-weight: 500; }
.imp__run { margin-left: auto; padding: .4rem .9rem; font-size: 12px; }
.imp__done { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.imp__check { flex: none; }
.imp__done-txt { display: flex; flex-direction: column; gap: 2px; }
.imp__done-title { font: 600 14px/1.3 var(--font-sans); }
.imp__done-sub { font: 400 10.5px var(--font-mono); color: var(--text-3); }
.imp__done-btn { margin-left: auto; padding: .4rem .8rem; font-size: 12px; }

/* Démo · Espace famille ──────────────────────────────────────────────────*/
.bento__card--pub { padding: 22px 0 0 24px; display: block; }
.pub__grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; height: 100%; }
.pub__text { padding: 0 0 28px; }
.pub__legend { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; }
.pub__dots { display: flex; gap: 5px; }
.pub__dot { width: 6px; height: 6px; border-radius: 99px; background: var(--border-2); transition: background .4s; }
.pub__dot.is-on { background: var(--text-1); }
.pub__legend-txt { font: 400 11.5px var(--font-mono); color: var(--color-butter-ink); }
.pub__portal {
  width: 300px;
  max-width: 100%;
  height: 288px;
  overflow: hidden;
  justify-self: end;
  margin-right: 24px;
  border-radius: 18px 18px 0 0;
  background: var(--pub-bg);
  box-shadow: 0 -12px 32px rgb(24 28 16 / .14);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  transition: background .8s ease;
}
.pub__brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 4px; }
.pub__mark {
  width: 46px; height: 46px;
  border-radius: var(--radius-control);
  background: var(--pub-acc);
  color: var(--pub-bg);
  display: flex; align-items: center; justify-content: center;
  font: 800 20px var(--font-display);
  transition: background .8s ease, color .8s ease;
}
.pub__ident { display: flex; flex-direction: column; gap: 3px; }
.pub__name { font: 800 20px/1.1 var(--font-display); letter-spacing: -.02em; color: #f4f1e8; }
.pub__sub { font: 400 10.5px var(--font-mono); color: rgb(244 241 232 / .55); }
.pub__panel { background: var(--pub-panel); border-radius: 14px; padding: 13px 14px; transition: background .8s ease; }
.pub__cta { display: flex; align-items: center; gap: 12px; }
.pub__cta-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--pub-acc);
  color: var(--pub-bg);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  transition: background .8s ease, color .8s ease;
}
.pub__cta-icon i { font-size: 13px; }
.pub__cta-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.pub__cta-title { font: 700 13px/1.2 var(--font-sans); color: #f4f1e8; }
.pub__cta-sub { font: 400 10.5px/1.4 var(--font-sans); color: rgb(244 241 232 / .55); }
.pub__cta-arrow { font-size: 12px; color: var(--pub-acc); transition: color .8s ease; }
.pub__infos { display: flex; flex-direction: column; gap: 9px; }
.pub__eyebrow { font: 600 9px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgb(244 241 232 / .45); }
.pub__line { display: flex; gap: 9px; align-items: center; font: 400 11.5px var(--font-sans); color: rgb(244 241 232 / .8); }
.pub__line i { font-size: 11px; color: rgb(244 241 232 / .45); }
.pub__tel { font-size: 11px; }
.pub__site {
  align-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid rgb(244 241 232 / .2);
  font: 600 12px var(--font-sans);
  color: #f4f1e8;
}
.pub__site i { font-size: 11px; color: var(--pub-acc); transition: color .8s ease; }

/* ── Écran 4 · La finale ─────────────────────────────────────────────────── */
.split__content--final { padding-top: clamp(64px, 9vh, 100px); padding-bottom: clamp(76px, 11vh, 118px); }
.final__wrap { width: 100%; max-width: 540px; margin: 0 auto; }
.final__logo { height: clamp(44px, 4.5vw, 64px); width: auto; display: block; margin-bottom: clamp(20px, 3vh, 36px); }
.final__kicker {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(13.5px, 1.2vw, 16px);
  letter-spacing: 0.01em;
  color: var(--color-forest);
}
.final__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.2vw, 66px);
  line-height: 1;
  letter-spacing: -0.032em;
  color: var(--color-acid-ink);
  text-wrap: balance;
}
.final__title .editorial { font-family: var(--font-editorial); font-style: italic; font-weight: 400; }
.final__lede {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--color-forest);
  text-wrap: pretty;
}
.wl__form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 26px 0 0; width: 100%; max-width: 440px; }
.wl__input {
  padding: 15px 18px;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--color-forest-deep);
  background: var(--color-bone-card);
  color: var(--color-ink);
  font: 500 15px var(--font-sans);
  outline: none;
  box-sizing: border-box;
}
.wl__input::placeholder { color: var(--color-stone-400); }
.wl__input:focus { box-shadow: var(--focus-ring); }
.wl__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px;
  border-radius: var(--radius-control);
  background: var(--color-ink);
  color: var(--color-acid-glow);
  font: 700 15.5px var(--font-sans);
  border: 1.5px solid var(--color-forest-deep);
  box-shadow: 0 3px 0 0 var(--color-forest-deep);
  cursor: pointer;
  transition: transform .14s var(--ease-spring), box-shadow .14s ease;
}
.wl__submit:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--color-forest-deep); }
.wl__submit:active { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--color-forest-deep); }
.wl__submit:disabled { cursor: progress; opacity: .45; box-shadow: none; transform: none; }
/* Piège à robots : hors du flux, hors du clavier, hors de l'arbre d'accessibilité. */
.wl__pot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wl__error { margin: 12px 0 0; font: 500 12.5px var(--font-mono); color: var(--color-forest); }
.wl__done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 26px; max-width: 460px; }
.wl__done-card {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px;
  border-radius: var(--radius-control);
  background: var(--color-ink);
  color: var(--color-bone);
  font-weight: 700;
  font-size: 15.5px;
}
.wl__done-card i { font-size: 14px; color: var(--color-acid-glow); }

.final__foot {
  bottom: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 92%;
  white-space: normal;
}
.final__copy {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(12.5px, 1.1vw, 14.5px);
  letter-spacing: 0.015em;
  color: var(--color-forest);
  white-space: nowrap;
}
.final__seo { font: 400 11px/1.5 var(--font-sans); color: var(--color-forest); opacity: .75; text-align: center; text-wrap: pretty; }
.final__astro { position: absolute; inset: 0; }
.final__astro img {
  position: absolute;
  left: 50%; bottom: -2px;
  transform: translateX(-50%);
  height: clamp(340px, 88vh, 820px);
  max-height: 98%;
  width: auto;
}

/* ── Mobile : flux vertical libre, chrome d'app ──────────────────────────── */
@media (max-width: 1080px) {
  .slide { padding: 64px 14px 18px; }
  .slide--full { padding: 0; }
  .chap-grid { grid-template-columns: 1fr !important; }
  .chap-grid > * { order: initial !important; }
  .bento__card { grid-column: 1 / -1 !important; order: initial !important; }
  .bento { gap: 12px; }

  .navpill { display: none !important; }
  .topbar { padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px; }
  .topbar, .topbar.nav-off { opacity: 1 !important; }
  .topbar.nav-off * { pointer-events: auto !important; }
  .topbar__tools { display: none !important; }
  .topbar__mobile { display: inline-flex; }
  .topbar.nav-off .m-theme { background: color-mix(in srgb, var(--text-1) 8%, transparent) !important; color: var(--text-2) !important; }
  .m-theme {
    width: 30px; height: 30px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgb(244 241 232 / .1);
    color: var(--color-stone-300);
    transition: background .3s ease, color .3s ease;
  }
  .m-theme i { font-size: 12px; }
  .mdock { display: inline-flex; }

  .split { grid-template-columns: 1fr; height: auto; min-height: 100svh; }
  .split__content { padding: 76px 20px 40px; }
  .hero-note { position: static; left: auto; bottom: auto; transform: none; margin-top: 26px; white-space: normal; }
  .final__foot { width: auto; max-width: 100%; align-items: flex-start; }
  .final__copy { white-space: normal; }
  .final__seo { text-align: left; }
  .split__panel { min-height: 300px; }
  .hero__shot { left: 18px; top: 24px; }
  .pub__portal { justify-self: start; margin-right: 0; }
}

@media (max-width: 640px) {
  .topbar { gap: 10px; }
  .split__content { padding: 78px 18px 34px; }
  .split__panel { min-height: 240px; }
  .bento__card { padding-left: 18px; padding-right: 18px; }
  .bento__card--pub { padding-right: 0; }
  .wf-stage { transform: scale(.44); }
  .final__lede { max-width: none; }
}

/* ── prefers-reduced-motion : on réduit, on ne tue pas ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rev-pre { opacity: 1; transform: none; }
  .tsel-opts { transition: opacity .2s ease; }
  .topbar, .topbar > .topbar__tools, .navpill { transition: opacity .3s ease !important; transform: none !important; }
  .navpill { transform: translateX(-50%) !important; }
  .cmdk__caret, .wf__pulse { animation: none; }
}

/* Turnstile : invisible tant que Cloudflare n'exige pas d'interaction ;
   en pleine largeur du formulaire quand il se montre. */
.wl__turnstile { width: 100%; }
.wl__turnstile:empty { display: none; }
