/* Franko — site public.
   Direction : la précision d'un relevé bancaire suisse, la chaleur d'un outil de famille. Pétrole profond, chiffres en Manrope,
   illustrations construites en vrai HTML (les mêmes composants que l'app), jamais de captures floues. */
:root {
  --bg: #f4f6f5; --surface: #ffffff; --surface-2: #edf1ef; --ink: #10201d; --muted: #536360; --faint: #8a9795; --line: #dfe5e2;
  --primary: #0d5c57; --primary-2: #0a4744; --primary-ink: #ffffff; --primary-soft: #dcefec; --tint: #e7f2f0;
  --fixed: #3d62a6; --daily: #b4741a; --savings: #23855a; --invest: #6a54ad; --danger: #b3322a; --danger-soft: #fbe8e5; --ok: #23855a; --ok-soft: #e1f2e9; --warn-soft: #fbf1dc; --warn: #8f5d10;
  --shadow-lg: 0 40px 80px -40px rgba(10, 71, 68, .45), 0 12px 30px -12px rgba(16, 32, 29, .18);
  --shadow: 0 1px 2px rgba(16, 32, 29, .05), 0 8px 24px -8px rgba(16, 32, 29, .10);
  --font-ui: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-fig: "Manrope", "Public Sans", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0c1312; --surface: #141c1b; --surface-2: #1b2524; --ink: #e6eeec; --muted: #9aaaa7; --faint: #6d7d7a; --line: #24302e;
    --primary: #5cc3b9; --primary-2: #4aa79e; --primary-ink: #04201d; --primary-soft: #14302d; --tint: #122422;
    --fixed: #8daae2; --daily: #e8b15a; --savings: #5fcf98; --invest: #b5a1ec; --danger: #ff8e7c; --danger-soft: #391c18; --ok: #5fcf98; --ok-soft: #15302a; --warn-soft: #322819; --warn: #efc46b;
    --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .7); --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0c1312; --surface: #141c1b; --surface-2: #1b2524; --ink: #e6eeec; --muted: #9aaaa7; --faint: #6d7d7a; --line: #24302e;
  --primary: #5cc3b9; --primary-2: #4aa79e; --primary-ink: #04201d; --primary-soft: #14302d; --tint: #122422;
  --fixed: #8daae2; --daily: #e8b15a; --savings: #5fcf98; --invest: #b5a1ec; --danger: #ff8e7c; --danger-soft: #391c18; --ok: #5fcf98; --ok-soft: #15302a; --warn-soft: #322819; --warn: #efc46b;
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .7); --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-fig); line-height: 1.1; margin: 0; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--danger); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.kicker { font: 700 .8rem var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 12px; font: 700 1rem var(--font-ui); text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }

/* navigation */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; padding-top: env(safe-area-inset-top); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.25rem/1 var(--font-fig); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav .links { display: flex; gap: 24px; }
.nav .links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav .links a:hover { color: var(--ink); }
.nav .end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: 10px; }
.langs button { border: 0; background: none; color: var(--muted); font: 700 .8rem var(--font-ui); padding: 6px 9px; border-radius: 7px; cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.signin { color: var(--ink); font-weight: 650; text-decoration: none; font-size: .95rem; }

/* héros */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 45%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 64px 88px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin-top: 22px; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.checks { margin-top: 26px; display: flex; gap: 18px; flex-wrap: wrap; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 7px; }
.checks svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* appareil : vraie interface en HTML */
.stage { position: relative; justify-self: center; width: min(100%, 400px); }
.device { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 36px; padding: 14px; box-shadow: var(--shadow-lg); }
.device .screen { background: var(--bg); border-radius: 26px; padding: 16px 14px 18px; display: grid; gap: 12px; }
.ui-top { display: flex; justify-content: space-between; align-items: center; font: 700 .85rem var(--font-fig); }
.ui-top span:last-child { color: var(--muted); font: 600 .78rem var(--font-ui); }
.ui-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.ui-eyebrow { font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ui-big { font: 800 2.1rem/1.1 var(--font-fig); letter-spacing: -.03em; margin: 6px 0 4px; }
.ui-big small { font-size: .85rem; color: var(--muted); font-weight: 700; margin-left: 4px; }
.ui-sub { font-size: .76rem; color: var(--muted); }
.ui-bank { margin-top: 10px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: .74rem; color: var(--muted); display: grid; gap: 1px; }
.ui-bank b { color: var(--ink); }
.ui-meter { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.ui-meter i { display: block; height: 100%; width: 62%; background: var(--primary); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; background: var(--ok-soft); color: var(--ok); text-transform: none; letter-spacing: 0; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ui-list { display: grid; }
.ui-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .78rem; }
.ui-row:first-child { border-top: 0; padding-top: 0; }
.ui-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--fixed)) 14%, var(--surface)); color: var(--c, var(--fixed)); }
.ui-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-row b { display: block; font-weight: 650; font-size: .8rem; }
.ui-row small { color: var(--muted); font-size: .7rem; }
.ui-state { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; border: 1px solid var(--line); border-radius: 99px; padding: 4px 9px 4px 5px; color: var(--muted); white-space: nowrap; }
.ui-state i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--faint); display: grid; place-items: center; }
.ui-state.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.ui-state.done i { background: var(--ok); border-color: var(--ok); }
.ui-state.done i::after { content: ""; width: 5px; height: 3px; border-left: 1.5px solid var(--surface); border-bottom: 1.5px solid var(--surface); transform: rotate(-45deg) translate(0, -1px); }
.float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); font-size: .8rem; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.float b { display: block; font-size: .82rem; }
.float small { color: var(--muted); }
.float.f1 { left: -56px; top: -26px; }
.float.f2 { right: -64px; bottom: -28px; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 6s ease-in-out infinite; }
  .float.f2 { animation-delay: -3s; }
  @keyframes bob { 50% { transform: translateY(-6px); } }
}

/* banques */
.banks { border-block: 1px solid var(--line); background: var(--surface); }
.banks .wrap { display: flex; align-items: center; gap: 28px; padding-block: 22px; flex-wrap: wrap; justify-content: center; }
.banks p { font-size: .85rem; color: var(--muted); font-weight: 600; }
.banks ul { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.banks li { font: 800 1.02rem var(--font-fig); color: var(--faint); letter-spacing: -.01em; }

/* sections */
section.band { padding-block: 104px; }
section.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 52px; }
.head h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 800; }
.head .lead { margin-top: 16px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lead { margin-inline: auto; }

/* le problème */
.truth { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.ledger .line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.02rem; }
.ledger .line:first-child { border-top: 0; padding-top: 0; }
.ledger .line span:last-child { font: 700 1.1rem var(--font-fig); font-variant-numeric: tabular-nums; }
.ledger .line small { display: block; color: var(--muted); font-size: .85rem; }
.ledger .line.total { border-top: 2px solid var(--ink); font-weight: 700; }
.ledger .line.total span:last-child { font-size: 1.6rem; }
.truth ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.truth li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); }
.truth li b { color: var(--ink); }
.dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font: 800 .82rem var(--font-fig); }

/* fonctionnalités alternées */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 104px; }
.feature.rev .copy { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); font-weight: 800; }
.feature .copy p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.feature .copy ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature .copy li { display: flex; gap: 10px; align-items: flex-start; }
.feature .copy li svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 3px; }
.visual { background: linear-gradient(160deg, var(--tint), transparent 70%); border: 1px solid var(--line); border-radius: 26px; padding: 34px; display: grid; place-items: center; min-height: 380px; }
.visual > .ui-card { width: min(100%, 400px); box-shadow: var(--shadow-lg); }
.tag { display: inline-block; font-size: .66rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.tag.mute { background: var(--surface-2); color: var(--muted); }
.flow-mini .r { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .8rem; }
.flow-mini .r:first-child { border-top: 0; }
.flow-mini .r.sum { font-weight: 700; background: var(--surface-2); margin: 0 -14px; padding: 8px 14px; border-top: 0; }
.flow-mini .r.total { font: 800 .95rem var(--font-fig); border-top: 2px solid var(--ink); }
.flow-mini .r small { display: block; color: var(--muted); font-size: .7rem; }

/* grille de petites fonctionnalités */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 96px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.alt .mini { background: var(--bg); }
.mini .ui-ic { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px; }
.mini .ui-ic svg { width: 20px; height: 20px; }
.mini h3 { font-size: 1.08rem; margin-bottom: 6px; letter-spacing: -.01em; }
.mini p { color: var(--muted); font-size: .95rem; }

/* étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.step .n { font: 800 2.6rem/1 var(--font-fig); color: var(--primary); opacity: .35; letter-spacing: -.04em; }
.step h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.step p { color: var(--muted); }

/* comparatif */
.compare { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; border-top: 1px solid var(--line); text-align: center; font-size: .95rem; }
.compare thead th { border-top: 0; font: 700 .95rem var(--font-fig); }
.compare th[scope=row] { text-align: left; font-weight: 600; }
.compare .us { background: var(--tint); }
.compare thead .us { color: var(--primary); }
.compare svg { width: 20px; height: 20px; vertical-align: middle; }
.yes { color: var(--ok); } .no { color: var(--faint); } .part { color: var(--warn); font-size: .85rem; font-weight: 600; }

/* prix */
.billing { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 32px; }
.billing button { border: 0; background: none; padding: 9px 18px; border-radius: 9px; font: 700 .92rem var(--font-ui); color: var(--muted); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.billing .save { color: var(--ok); margin-left: 6px; }
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin-inline: auto; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; gap: 18px; align-content: start; }
.price.pro { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); position: relative; }
.price .badge { position: absolute; top: -13px; left: 32px; background: var(--primary); color: var(--primary-ink); font: 700 .75rem var(--font-ui); padding: 5px 12px; border-radius: 99px; }
.price h3 { font-size: 1.3rem; }
.price .amt { font: 800 3rem/1 var(--font-fig); letter-spacing: -.03em; }
.price .amt small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.price .per { color: var(--muted); font-size: .92rem; min-height: 1.5em; }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.price li svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }
.price .btn { width: 100%; }
.fineprint { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.faq summary { font: 700 1.05rem var(--font-fig); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-ui); color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); }

/* appel final */
.final { background: var(--primary-2); color: #fff; border-radius: 28px; padding: 64px 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.final::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.final h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; color: #fff; }
.final p { margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: 1.08rem; }
.final .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.final .btn.primary { background: #fff; border-color: #fff; color: #0a4744; }
.final .btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }

footer.site { padding-block: 72px 40px; }
footer.site .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
footer.site h4 { font: 700 .82rem var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer.site a { color: var(--ink); text-decoration: none; font-size: .95rem; }
footer.site a:hover { color: var(--primary); }
footer.site .about { color: var(--muted); font-size: .95rem; margin-top: 14px; max-width: 30em; }
footer.site .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }

/* page légale */
.legal { max-width: 760px; padding-block: 24px 64px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; }

@media (max-width: 1180px) { .float.f1 { left: -12px; } }
@media (max-width: 960px) {
  .nav .links { display: none; }
  .hero .wrap, .truth, .feature, .final { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 32px 64px; gap: 48px; }
  .feature.rev .copy { order: 0; }
  .feature { gap: 32px; }
  .grid6, .steps { grid-template-columns: 1fr 1fr; }
  .final .cta { justify-content: flex-start; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .float.f1 { left: -8px; top: -18px; } .float.f2 { right: -8px; bottom: -18px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section.band { padding-block: 72px; }
  .feature + .feature { margin-top: 72px; }
  .grid6, .steps, .prices { grid-template-columns: 1fr; }
  .visual { padding: 18px; min-height: 0; }
  .final { padding: 40px 24px; border-radius: 22px; }
  .signin { display: none; }
  .nav .wrap { gap: 12px; }
  .float { display: none; }
}
@media (max-width: 380px) {
  .nav .end { gap: 6px; }
  .langs button { padding: 6px 7px; }
  .nav .btn.small { padding-inline: 12px; }
  .brand { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ===================== motion =====================
   Héros : une vague à l'arrivée (titre, puis texte et boutons, téléphone, cartes flottantes).
   Sections : une seule entrée par bloc au défilement, toujours visible au repos (jamais à opacité 0). */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-draw: cubic-bezier(.645, .045, .355, 1); }
@media (prefers-reduced-motion: no-preference) {
  .intro .hero [data-in] { animation: heroIn .6s var(--ease-out) both; animation-delay: var(--d, 0ms); }
  .intro .hero .eyebrow[data-in] { animation-name: fadeOnly; }
  .intro .hero .device { animation: deviceIn .8s var(--ease-out) both; animation-delay: 120ms; }
  .intro .hero .float { animation: fadeOnly .5s ease both, bob 6s ease-in-out 1.2s infinite; }
  .intro .hero .float.f1 { animation-delay: 620ms, 1.2s; }
  .intro .hero .float.f2 { animation-delay: 720ms, 4.2s; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(14px); } }
  @keyframes deviceIn { from { opacity: 0; transform: translateY(28px) scale(.97); } }
  @keyframes fadeOnly { from { opacity: 0; } }

  .rv { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .rv.pre { opacity: .3; transform: translateY(24px); }
  .rv-kids > * { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--i, 0ms); }
  .rv-kids.pre > * { opacity: .3; transform: translateY(14px); }
  .feature .visual.rv { transition-delay: 90ms; }

  .compare .yes svg { stroke-dasharray: 30; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease-draw); transition-delay: var(--i, 0ms); }
  .compare.pre .yes svg { stroke-dashoffset: 30; }

  .ui-state.done i { animation: pop .38s var(--ease-out); }
  .ui-state i::after { transition: opacity .2s ease; }
  @keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
  .ui-meter i { transition: width 1s var(--ease-out); }
  .btn svg { transition: transform .2s var(--ease-out); }
  .btn:hover svg { transform: translateX(3px); }
  .final::after { animation: drift 14s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }
  .flash-num { animation: numFlash .6s ease; }
  @keyframes numFlash { 30% { color: var(--primary); } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 620px) {
  .intro .hero .float { animation: none; }
}

/* ===================== prototype du téléphone (façon Smart Animate) ===================== */
/* ressort doux : léger dépassement, arrêt net */
:root { --spring: cubic-bezier(.2, .9, .25, 1.15); --spring-dur: .56s; }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .0072 1.1%, .0289 2.2%, .1155 4.5%, .2546 6.8%, .5203 10.8%, .7646 15.1%, .8635 17.4%, .9449 19.8%, 1.0068 22.2%, 1.0506 24.7%, 1.0779 27.3%, 1.0898 29.9%, 1.0891 32.1%, 1.0802 34.4%, 1.0546 38.6%, 1.0233 44.1%, 1.0063 48.4%, .9957 53.9%, .9927 59.8%, .9996 77.4%, 1); }
}
.device { overflow: visible; }
.device .screen { position: relative; overflow: hidden; }
.proto { display: grid; }
/* les trois écrans sont empilés dans la même cellule : le cadre garde la taille du plus haut, comme un frame Figma */
.proto-step { grid-area: 1 / 1; display: grid; gap: 12px; align-content: start; visibility: hidden; }
.proto-step.is-on, .proto-step.is-leaving { visibility: visible; }
.proto-step.is-leaving { pointer-events: none; z-index: 0; }
.proto-step.is-on { z-index: 1; }
.proto-dots { display: flex; justify-content: center; gap: 6px; padding-top: 2px; }
.proto-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .4s var(--spring), background-color .3s ease; }
.proto-dots i.on { width: 18px; background: var(--primary); }
.ui-chart { width: 100%; height: auto; display: block; margin: 8px 0 6px; }
.ui-chart .g { stroke: var(--line); stroke-width: 1; }
.ui-chart .ideal { stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 5 5; }
.ui-chart .area { fill: var(--daily); opacity: .14; }
.ui-chart .line { fill: none; stroke: var(--daily); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ui-chart .dot { fill: var(--daily); stroke: var(--surface); stroke-width: 2; }
.tap { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 22%, transparent); border: 2px solid color-mix(in srgb, var(--primary) 60%, transparent); opacity: 0; pointer-events: none; z-index: 3; transition: transform .62s var(--spring), opacity .25s ease; }
.tap.show { opacity: 1; }
.tap::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; }
.r.insert { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .proto.played .proto-step.is-on { animation: stepIn var(--spring-dur) var(--spring) both; }
  .proto-step.is-leaving { animation: stepOut .32s cubic-bezier(.4, 0, 1, 1) both; }
  @keyframes stepIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)) scale(.985); filter: blur(3px); } }
  @keyframes stepOut { to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -28px)) scale(.985); filter: blur(3px); } }
  .tap.press { transform-origin: center; scale: .82; transition: scale .12s ease; }
  .tap.press::after { animation: ripple .5s ease-out; }
  @keyframes ripple { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }
  .ui-state { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
  .ui-state.done i { animation: pop .42s var(--spring); }
  .proto-step.drawn .line { stroke-dasharray: 1; animation: drawLine 1s cubic-bezier(.645, .045, .355, 1) .15s both; }
  .proto-step.drawn .area { animation: fadeOnly .5s ease .7s both; }
  .proto-step.drawn .dot { transform-box: fill-box; transform-origin: center; animation: dotPop .4s var(--spring) 1s both; }
  @keyframes drawLine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes dotPop { from { transform: scale(0); } }
  .proto-step[data-step="2"].is-on .r { animation: rowIn .5s var(--spring) both; }
  .proto-step[data-step="2"].is-on .r:nth-child(3) { animation-delay: 60ms; }
  .proto-step[data-step="2"].is-on .r:nth-child(4) { animation-delay: 110ms; }
  .proto-step[data-step="2"].is-on .r:nth-child(5) { animation-delay: 150ms; }
  @keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
  /* illustrations : les lignes arrivent en vague, avec le même ressort */
  .rv-kids > * { transition-timing-function: var(--spring); transition-duration: .62s; }
  .r.insert.collapse { display: grid; grid-template-rows: 0fr; padding-block: 0; border-top-width: 0; opacity: 0; transition: grid-template-rows .55s var(--spring), padding .55s var(--spring), opacity .35s ease .1s; }
  .r.insert.collapse.open { grid-template-rows: 1fr; padding-block: 7px; border-top-width: 1px; opacity: 1; }
  .r.insert.collapse.open { animation: rowGlow 1.4s ease .3s; }
  @keyframes rowGlow { 0%, 100% { background: transparent; } 30% { background: color-mix(in srgb, var(--primary) 12%, transparent); } }
}

/* note du fondateur */
.founder-band { padding-block: 72px; }
.founder { margin: 0 auto; max-width: 760px; display: grid; gap: 22px; }
.founder blockquote { margin: 0; font: 600 clamp(1.25rem, 2.4vw, 1.6rem)/1.45 var(--font-fig); letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.founder figcaption { display: flex; align-items: center; gap: 12px; }
.founder .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font: 800 1.1rem var(--font-fig); }
.founder b { display: block; }
.founder small { color: var(--muted); font-size: .9rem; }
.grid6.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid6.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid6.four { grid-template-columns: 1fr; } }

/* prototype : contenu des écrans 2 et 3 */
.ui-cats { display: grid; gap: 10px; }
.ui-cats .c { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; font-size: .78rem; color: var(--muted); }
.ui-cats .c b { color: var(--ink); font-weight: 650; }
.ui-cats .c i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.ui-cats .c i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--c); }
.ui-amt { margin-left: auto; font-size: .8rem; font-weight: 650; color: var(--ink); }
.ui-add { color: var(--muted); font-size: .78rem; border: 1px dashed var(--line); border-radius: 10px; padding: 8px; }
.ui-add .ui-ic { opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .proto-step.drawn .ui-cats .c i::after { animation: barGrow .7s var(--spring) both; animation-delay: calc(.9s + var(--k, 0) * 70ms); transform-origin: left; }
  .proto-step.drawn .ui-cats .c:nth-child(3) i::after { --k: 1; }
  .proto-step.drawn .ui-cats .c:nth-child(4) i::after { --k: 2; }
  .proto-step[data-step="2"].is-on .ui-list { animation: rowIn .5s var(--spring) .22s both; }
  @keyframes barGrow { from { transform: scaleX(0); } }
}
