/* Les pages publiques prolongent le sable, le bleu et la typographie de site.css.
   Les pages d'aide et les documents gardent leur mesure de lecture. */
.public-page { --page-width: 1240px; --gutter: clamp(20px, 4vw, 64px); }
.public-page::before { display: none; }
.public-page [hidden] { display: none !important; }
.public-page img { max-width: 100%; }
.public-page h1, .public-page h2, .public-page h3 { text-wrap: balance; }
.public-page a { text-underline-offset: .2em; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px 20px; background: var(--surface); }
.skip-link:focus { top: 12px; }
/* **L'en-tête reste là quand on défile** : « Créer un compte » et « Tarifs »
   ne devraient jamais être à un aller-retour de distance. Son fond est un
   pseudo-élément pleine largeur, verre dépoli, qui n'apparaît qu'une fois la
   page quittée : en haut, l'en-tête se pose sur le halo comme avant. */
.public-page { overflow-x: clip; }
html:has(.public-page) { scroll-padding-top: 96px; }
.site-header {
  max-width: calc(var(--page-width) + var(--gutter) * 2); margin: auto;
  padding: 25px var(--gutter); display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  position: sticky; top: 0; z-index: 10; isolation: isolate;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 50%; margin-inline: -50vw;
  z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px -24px rgb(15 23 42 / .45);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; white-space: nowrap; font-size: 21px; font-weight: 750; letter-spacing: -.025em; }
.brand .mark { --mark: 42px; margin: 0; flex: none; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--dim); text-decoration: none; font-size: 15px; font-weight: 550; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta { color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 11px 18px; background: var(--surface); }
.site-nav .nav-cta:hover { border-color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 56px; padding: 14px 24px; border-radius: 12px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 650; line-height: 1.4; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.icon { display: inline-block; width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.landing main { max-width: none; padding: 0; margin: 0; }
.wrap { max-width: calc(var(--page-width) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 70px 80px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(48px, 5.8vw, 84px); font-weight: 650; letter-spacing: -.04em; line-height: 1.04; margin: 0 0 28px; }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 38ch; color: var(--dim); font-size: 20px; line-height: 1.65; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-note { color: var(--mute); font-size: 14px; margin: 15px 0 0; }
.hero-audience { display: flex; gap: 12px; align-items: center; margin-top: 55px; color: var(--dim); font-size: 14px; }
.hero-audience .icon { color: var(--accent); width: 28px; height: 28px; }
.hero-audience span { max-width: 26ch; line-height: 1.5; }
.showcase { position: relative; height: 635px; margin: 0; isolation: isolate; }
.showcase-backdrop { position: absolute; inset: 58px -12px 34px 22px; background: var(--accent-soft); border-radius: 16px; }
.device { background: var(--surface); padding: 7px; border-radius: 32px; box-shadow: 0 25px 60px -20px rgb(15 23 42 / .32); }
.device img { display: block; width: 100%; height: auto; border-radius: 25px; }
.device-front { position: absolute; width: 282px; left: 4%; top: 0; z-index: 2; transform: translateY(var(--parallax-front, 0px)) rotate(-5deg); }
.device-back { position: absolute; width: 238px; right: 0; top: 58px; transform: translateY(var(--parallax-back, 0px)) rotate(7deg); background: var(--bg); }
.showcase-caption { position: absolute; z-index: 3; bottom: 50px; right: 3%; background: var(--surface); padding: 18px 24px; border-radius: 12px; box-shadow: 0 12px 40px -18px rgb(15 23 42 / .3); display: flex; gap: 14px; align-items: center; }
.showcase-caption .icon { width: 30px; height: 30px; color: var(--accent); }
.showcase-caption b { display: block; font-weight: 650; }
.showcase-caption span { font-size: 14px; color: var(--dim); }
.showcase > figcaption { position: absolute; bottom: -2px; width: 100%; text-align: center; font-size: 12px; color: var(--mute); }
.essentials { border-block: 1px solid var(--border); display: flex; justify-content: space-between; gap: 30px; padding-block: 25px; }
.essentials p { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 15px; color: var(--dim); }
.essentials .icon { color: var(--accent); }
.demo { padding-block: 95px 0; text-align: center; }
.demo .section-copy { margin-inline: auto; }
.demo-video { display: block; width: 100%; max-width: 960px; height: auto; margin: 0 auto; border-radius: 22px; border: 1px solid var(--border); background: var(--border); box-shadow: 0 24px 60px -30px rgba(15, 23, 42, .35); }
.demo-note { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.product { padding-block: 105px; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.section-title { font-size: clamp(36px, 4vw, 54px); line-height: 1.1; letter-spacing: -.035em; font-weight: 650; margin: 0 0 22px; }
.section-copy { color: var(--dim); font-size: 18px; max-width: 46ch; margin: 0 0 32px; }
.product-tabs { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.product-tab { font: inherit; text-align: left; color: var(--dim); padding: 23px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 8px 22px; }
.product-tab b { font-size: 21px; font-weight: 650; color: var(--text); }
.product-tab span { grid-column: 1; font-size: 15px; line-height: 1.6; max-width: 40ch; }
.product-tab .icon { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.product-tab[aria-selected="true"] b, .product-tab[aria-selected="true"] .icon { color: var(--accent); }
.product-tab[aria-selected="true"] .icon { transform: translateX(4px); }
.product-tab:hover b { color: var(--accent); }
.product-tab:disabled { cursor: default; }
.product-preview { margin: 0; background: var(--accent-soft); border-radius: 16px; padding: 36px 32px 26px; text-align: center; }
.preview-device { width: 264px; margin-inline: auto; }
.preview-device img { width: 100%; aspect-ratio: 390 / 844; }
.product-preview figcaption { font-size: 13px; color: var(--dim); margin-top: 22px; }
.team-band { background: var(--accent); color: var(--on-accent); padding-block: 68px; }
.team-content { display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; align-items: center; }
.team-band .section-title { max-width: 13ch; margin-bottom: 0; }
.team-band p { font-size: 18px; line-height: 1.7; margin: 0 0 22px; }
.team-band .text-link { color: var(--on-accent); text-decoration: underline; }
.getting-started { padding-block: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.getting-started .button { margin-top: 8px; }
.manager-note { margin: 28px 0 0; font-size: 14px; max-width: 45ch; color: var(--dim); }
.manager-note strong { display: block; margin-bottom: 4px; }
.install { scroll-margin-top: 30px; }
.install h2 { margin: 0 0 24px; font-size: 25px; font-weight: 650; letter-spacing: -.025em; }
.platform { border-top: 1px solid var(--border); padding-block: 20px; }
.platform:last-child { border-bottom: 1px solid var(--border); }
.platform h3 { margin: 0 0 5px; font-size: 18px; font-weight: 650; }
.platform p { margin: 0 0 8px; color: var(--dim); font-size: 15px; max-width: 48ch; }
.status-label { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; vertical-align: middle; }
.site-footer { max-width: calc(var(--page-width) + var(--gutter) * 2); margin: 0 auto; padding: 36px var(--gutter) 28px; border: 0; }
.footer-top { padding-top: 30px; border-top: 1px solid var(--border); display: flex; align-items: start; justify-content: space-between; gap: 32px; }
.footer-top .brand { font-size: 19px; }
.footer-top .mark { --mark: 34px; }
.footer-top nav { display: flex; justify-content: end; flex-wrap: wrap; gap: 14px 26px; max-width: 600px; }
.footer-top nav a { text-decoration: none; color: var(--dim); padding-block: 5px; }
.footer-top nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { margin-top: 30px; color: var(--mute); font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }
.footer-bottom p { margin: 0; }
.invitation { max-width: 650px; margin: 60px auto; text-align: center; padding-inline: 24px; }
.invitation h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 18px; }
.invitation > p { color: var(--dim); }
.invitation .code { font-family: ui-monospace, monospace; font-size: clamp(22px, 5vw, 32px); letter-spacing: .16em; padding: 24px 12px; margin: 30px 0 22px; background: var(--accent-soft); border-radius: 12px; }
.invitation small { display: block; margin-top: 16px; color: var(--mute); }
.invitation #noapp { padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--border); }
.invitation-mode .getting-started { display: block; max-width: 650px; padding-block: 24px; }
.invitation-mode .install { width: 100%; }

/* Inscription : le formulaire garde tous ses champs, groupés par intention. */
.signup main { max-width: calc(1160px + var(--gutter) * 2); display: grid; grid-template-columns: .9fr 1fr; gap: 100px; padding: 55px var(--gutter) 70px; margin: auto; align-items: start; }
.signup-story { position: sticky; top: 45px; padding-top: 15px; }
.signup-story h2 { font-size: clamp(38px, 4.1vw, 60px); letter-spacing: -.035em; line-height: 1.1; font-weight: 650; margin: 0 0 24px; }
.signup-story h2 span { color: var(--accent); }
.signup-story > p { color: var(--dim); font-size: 18px; max-width: 35ch; }
.signup-story img { width: 235px; height: auto; display: block; margin: 25px auto; }
.signup-steps { list-style: none; padding: 0; counter-reset: signup; margin: 28px 0; }
.signup-steps li { counter-increment: signup; display: grid; grid-template-columns: 30px 1fr; gap: 0 14px; margin: 20px 0; color: var(--dim); font-size: 14px; }
.signup-steps li::before { content: counter(signup); grid-row: 1 / 3; border: 1px solid var(--border); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; color: var(--accent); font-weight: 650; }
.signup-steps b { color: var(--text); font-size: 16px; font-weight: 650; }
.signup-panel { padding: 36px; background: var(--surface); border-radius: 16px; border: 1px solid var(--border); }
.signup h1 { font-size: 32px; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 12px; font-weight: 650; }
.signup .updated { font-size: 14px; margin-bottom: 24px; color: var(--dim); }
.signup .lede { background: var(--warm-soft); border: 0; padding: 16px 18px; border-radius: 10px; margin-bottom: 30px; }
.signup .lede p { font-size: 14px; color: var(--dim); margin: 0; }
.signup .lede strong { color: var(--warm); }
.signup #trial-line:not([hidden]) { margin-top: 10px; }
.signup fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.signup fieldset + fieldset { margin-top: 26px; }
.signup legend { padding: 0; margin-bottom: 20px; font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.signup legend span { color: var(--mute); margin-right: 10px; font-size: 14px; }
.signup label { margin-bottom: 18px; }
.signup .lbl { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 14px; margin-bottom: 7px; font-weight: 550; }
.signup .hint { font-size: 12px; line-height: 1.6; color: var(--mute); margin-top: 6px; }
.signup input[type=text], .signup input[type=email], .signup input[type=password] { min-height: 52px; border-color: var(--control); border-radius: 9px; padding: 12px 14px; font-size: 16px; }
.signup input::placeholder, .account input::placeholder { color: var(--mute); opacity: 1; }
.signup input[aria-invalid="true"] { border-color: var(--danger); }
.signup .row { gap: 16px; }
.signup .row label { min-width: 0; }
.signup .terms { padding: 0; margin-top: 25px; background: none; border: 0; border-radius: 0; }
.signup .terms span { font-size: 13px; line-height: 1.65; }
.signup button[type=submit] { min-height: 56px; margin-top: 12px; border-radius: 10px; }
.signup .password-field { position: relative; }
.signup .password-field input { padding-right: 93px; }
.signup .password-toggle { position: absolute; right: 5px; top: 5px; width: auto; min-height: 42px; padding: 7px 10px; margin: 0; background: transparent; color: var(--accent); font-size: 13px; border-radius: 7px; }
.signup .say { font-size: 14px; }
.signup .form-help { text-align: center; margin: 18px 0 0; font-size: 12px; color: var(--mute); }
.signup .form-help a { white-space: nowrap; }
.signup .signup-panel footer { font-size: 12px; }

/* La grille de tarifs et les états du paiement restent portés par tarifs.html. */
.pricing main { max-width: calc(1160px + var(--gutter) * 2); padding: 60px var(--gutter) 70px; }
.pricing-layout { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "intro decision" "paliers decision"; grid-template-rows: auto 1fr; column-gap: 80px; row-gap: 10px; align-items: start; }
.pricing-intro { grid-area: intro; }
.pricing .decision { grid-area: decision; }
.pricing-paliers { grid-area: paliers; margin-bottom: 0; }
.pricing-paliers h2 { margin-bottom: 8px; }
.pricing-paliers .paliers th, .pricing-paliers .paliers td { padding-block: 7px; }
.pricing-paliers .paliers-note { margin-top: 8px; }
.pricing .head { display: block; margin-bottom: 28px; }
.pricing h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.08; font-weight: 650; }
.pricing .head img { width: 165px; margin-top: 25px; }
.pricing .lead { font-size: 18px; margin-top: 22px; }
.pricing .decision { background: var(--surface); padding: 30px; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 0; }
.pricing .periode { padding: 24px 16px 20px; }
.pricing .prix { font-size: clamp(26px, 3vw, 36px); }
.pricing .prix small { display: inline-block; }
.pricing .chrono { margin-block: 24px; }
.pricing .gages { margin-bottom: 0; }
.pricing-details { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 85px; }
.pricing-details h2 { font-size: 26px; line-height: 1.2; font-weight: 650; margin-bottom: 25px; }
.pricing .compris li { padding-block: 14px; }
.pricing .faq summary { padding-block: 19px; }
.pricing main > footer { margin-top: 25px; }

/* `place-items` AUTANT que `display` : la page centrait son formulaire avec
   `body { display: grid; place-items: center }`, et repasser le corps en
   `block` ne suffisait pas. Chrome applique désormais `justify-items` en
   disposition de bloc — l'en-tête restait donc rétréci sur son contenu et
   centré, seul de tout le site à ne pas commencer au bord. Une déclaration
   qu'on croit neutralisée par une autre ne l'est que si on l'écrit. */
.account { display: block; place-items: normal; }
.account main { max-width: 540px; margin: 50px auto 90px; padding: 36px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.account h1 { font-size: 32px; line-height: 1.15; margin-bottom: 18px; }
.account main > .mark { display: none; }
.account input { min-height: 52px; }
.account button { min-height: 56px; }

/* Les documents — aide, conditions, confidentialité, suppression de compte.
   Ils prennent l'en-tête commun et rien d'autre : leur contenu garde sa
   mesure de lecture, parce qu'un texte de loi lu à 1240 px de large ne se lit
   pas.

   L'en-tête, lui, NE SE RÉTRÉCIT PAS avec le texte. On a essayé de le caler
   sur la colonne de lecture pour que la marque et la première lettre du titre
   tombent sur la même verticale : le résultat était une barre de navigation
   qui change de largeur d'une page à l'autre, et c'est ce qu'on voit en
   premier. Un en-tête appartient au SITE, pas à la page ; une seule ligne
   d'implantation pour toutes vaut mieux qu'un alignement par page. */
.doc main { padding-top: .75rem; }

@media (min-width: 1500px) { .hero { padding-block: 95px 105px; } }
@media (max-width: 1100px) {
  .hero { gap: 24px; }
  .hero h1 { font-size: 64px; }
  .showcase { height: 540px; }
  .device-front { width: 238px; left: 0; }
  .device-back { width: 204px; top: 55px; }
  .showcase-caption { bottom: 37px; right: 0; padding: 14px 18px; }
  .product, .getting-started, .team-content { gap: 60px; }
  .signup main { gap: 48px; }
  .signup-panel { padding: 28px; }
  .pricing-layout, .pricing-details { gap: 40px; }
  .pricing .decision { padding: 24px; }
}
@media (max-width: 800px) {
  .site-header { padding-block: 20px; }
  .site-nav { gap: 20px; }
  .site-nav .nav-discover { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 45px 50px; gap: 50px; }
  .hero-copy { max-width: 600px; }
  .hero h1 { font-size: clamp(46px, 8vw, 66px); max-width: 14ch; }
  .hero .lead { max-width: 43ch; font-size: 18px; }
  .hero-audience { margin-top: 28px; }
  .hero-audience span { max-width: none; }
  .showcase { width: 100%; max-width: 470px; height: 610px; margin-inline: auto; }
  .device-front { width: 264px; left: 12px; }
  .device-back { width: 228px; right: 10px; }
  .showcase-backdrop { inset: 45px 0 45px; }
  .showcase-caption { bottom: 58px; }
  .essentials { gap: 18px; }
  .essentials p { font-size: 13px; gap: 8px; }
  .product { gap: 35px; padding-block: 75px; }
  .product-preview { padding: 26px 12px 20px; }
  .preview-device { width: 220px; }
  .product-tab { padding-block: 18px; }
  .product-tab b { font-size: 19px; }
  .team-content, .getting-started { gap: 40px; }
  .signup main { display: block; max-width: 650px; padding-top: 28px; }
  .signup-story { display: none; }
  .pricing main { padding-top: 30px; }
  .pricing-layout { grid-template-columns: 1fr; grid-template-areas: "intro" "decision" "paliers"; grid-template-rows: auto; gap: 24px; max-width: 600px; margin-inline: auto; }
  .pricing .head { display: flex; align-items: center; gap: 25px; }
  .pricing .head img { width: 125px; margin: 0; }
  .pricing h1 { font-size: 40px; }
  .pricing .lead { font-size: 16px; }
  .pricing-details { gap: 35px; padding-top: 65px; }
}
@media (max-width: 560px) {
  .demo { padding-block: 60px 0; }
  .demo-video { border-radius: 14px; }
  .site-header { gap: 16px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand .mark { --mark: 36px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
  .site-nav .nav-help, .site-nav .nav-cta { display: none; }
  .hero { padding-top: 35px; gap: 38px; }
  .hero h1 { font-size: clamp(44px, 11.8vw, 62px); margin-bottom: 22px; }
  .hero .lead { font-size: 17px; margin-bottom: 25px; }
  .hero-actions { gap: 8px 18px; }
  .hero-actions .button { padding-inline: 20px; }
  .hero-actions .text-link { font-size: 15px; }
  .hero-audience { display: none; }
  .showcase { height: 490px; max-width: 365px; }
  .device-front { width: 214px; left: 5px; }
  .device-back { width: 179px; right: 5px; top: 42px; }
  .device { padding: 5px; border-radius: 25px; }
  .device img { border-radius: 20px; }
  .showcase-caption { bottom: 40px; padding: 13px 16px; gap: 10px; }
  .showcase-caption b { font-size: 14px; }
  .showcase-caption span { font-size: 12px; }
  .showcase-caption .icon { width: 23px; height: 23px; }
  .essentials { display: grid; gap: 15px; padding-block: 22px; }
  .essentials p { font-size: 14px; }
  .product { grid-template-columns: 1fr; padding-block: 58px; gap: 30px; }
  .section-title { font-size: 38px; }
  .section-copy { font-size: 16px; margin-bottom: 26px; }
  .product-tab span { max-width: none; }
  .product-preview { padding: 28px 22px 20px; }
  .preview-device { width: 238px; }
  .team-band { padding-block: 45px; }
  .team-content, .getting-started { grid-template-columns: 1fr; gap: 28px; }
  .team-band .section-title { max-width: 15ch; }
  .team-band p { font-size: 16px; }
  .getting-started { padding-block: 58px 25px; gap: 48px; }
  .footer-top { display: block; }
  .footer-top nav { justify-content: start; margin-top: 24px; gap: 8px 20px; }
  .footer-bottom { display: block; font-size: 12px; }
  .footer-bottom p + p { margin-top: 12px; }
  .signup main { padding: 15px var(--gutter) 40px; }
  .signup-panel { background: none; border: 0; border-radius: 0; padding: 0; }
  .signup h1 { font-size: 34px; max-width: 16ch; }
  .signup .updated { margin-bottom: 20px; }
  .signup input[type=text], .signup input[type=email], .signup input[type=password] { background: var(--surface); }
  .signup .row { display: grid; grid-template-columns: 1fr; gap: 0; }
  .signup .terms span { font-size: 14px; }
  .signup .hint { font-size: 13px; }
  .pricing .head { display: block; }
  .pricing .head .light, .pricing .head .dark { display: none; }
  .pricing h1 { font-size: clamp(32px, 8.8vw, 42px); }
  .pricing .decision { padding: 22px 16px; }
  .pricing .periode { padding: 20px 12px 17px; }
  .pricing .prix { font-size: 29px; }
  .pricing .prix small { font-size: 13px; }
  .pricing .note { font-size: 12px; }
  .pricing-details { grid-template-columns: 1fr; padding-top: 50px; gap: 15px; }
  .pricing main > footer { margin-top: 0; }
  .account main { margin: 25px var(--gutter) 60px; width: auto; padding: 24px; }
}

/* ── Le mouvement ────────────────────────────────────────────────────────
   Tout ce qui suit est du CSS piloté par le défilement : aucun script, aucune
   bibliothèque, et rien qui cache un contenu si le navigateur ne sait pas le
   faire — `@supports` garde chaque effet, et sans lui la page est celle
   d'avant. `prefers-reduced-motion: reduce` éteint tout (plus bas). */
@supports (animation-timeline: scroll()) {
  /* Le verre de l'en-tête se lève au premier défilement. */
  .site-header::before {
    animation: kh-header-on linear both;
    animation-timeline: scroll(root); animation-range: 0 90px;
  }
  @keyframes kh-header-on { from { opacity: 0; } }

  /* Et il se resserre. La boîte garde sa hauteur dans le flux — ce que le
     rembourrage perd, la marge le rend —, sinon la page sauterait de vingt
     pixels sous le doigt au moment même où l'on défile. */
  .site-header {
    animation: kh-header-tight linear both;
    animation-timeline: scroll(root); animation-range: 0 120px;
  }
  @keyframes kh-header-tight { to { padding-block: 11px; margin-bottom: 28px; } }
  .site-header .brand { animation: kh-brand-tight linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  @keyframes kh-brand-tight { to { font-size: 18px; } }
  /* La marque se lit en `var(--mark)` : déclarée en longueur, la variable
     s'anime au lieu de sauter d'une valeur à l'autre. */
  @property --mark { syntax: "<length>"; inherits: true; initial-value: 44px; }
  .site-header .brand .mark { animation: kh-mark-tight linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  @keyframes kh-mark-tight { to { --mark: 32px; } }
  .site-nav .nav-cta { animation: kh-cta-tight linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  @keyframes kh-cta-tight { to { padding-block: 8px; } }
}

@media (prefers-reduced-motion: no-preference) {
  /* L'arrivée : le titre, puis le reste, en cascade courte. */
  .hero-copy > *, .pricing-intro > *, .showcase, .pricing .decision {
    animation: kh-enter .8s cubic-bezier(.2, .75, .2, 1) both;
  }
  .hero-copy > :nth-child(2), .pricing-intro > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3), .pricing-intro > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(n+4), .pricing-intro > :nth-child(n+4) { animation-delay: .24s; }
  .showcase, .pricing .decision { animation-delay: .18s; animation-duration: 1s; }
  @keyframes kh-enter { from { opacity: 0; transform: translateY(26px); } }

  /* Ce qui se touche répond. */
  .button, .cta, .nav-cta, .product-tab, .periode {
    transition: transform .25s cubic-bezier(.2, .75, .2, 1), box-shadow .25s, border-color .2s, background-color .2s;
  }
  @media (hover: hover) {
    .button:hover, .cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
    .nav-cta:hover, .periode:hover { transform: translateY(-1px); }
    .product-tab:hover { transform: translateX(4px); }
  }

  @supports (animation-timeline: view()) {
    /* La profondeur : le halo descend moins vite que la page, le fond des
       captures remonte, la bulle « une photo, une signature » dérive. */
    body::before {
      animation: kh-halo linear both;
      animation-timeline: scroll(root); animation-range: 0 760px;
    }
    @keyframes kh-halo { to { transform: translateY(300px) scale(1.25); opacity: .35; } }

    /* Deux lueurs, bleue et chaude, qui restent dans le fond et dérivent sur
       toute la longueur de la page, à contre-sens l'une de l'autre : c'est
       elles qui font voir la profondeur — le halo du haut, à lui seul, était
       trop pâle pour qu'on le voie bouger, en sombre surtout. */
    body::after {
      content: ""; position: fixed; inset: -25vh -15vw; z-index: -2; pointer-events: none;
      background:
        radial-gradient(32% 28% at 18% 34%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        radial-gradient(30% 26% at 84% 68%, color-mix(in srgb, var(--warm) 18%, transparent), transparent 70%);
      filter: blur(30px);
      animation: kh-aurora linear both;
      animation-timeline: scroll(root);
    }
    @keyframes kh-aurora {
      from { transform: translate3d(0, 6vh, 0) rotate(0deg) scale(1); }
      to { transform: translate3d(-4vw, -22vh, 0) rotate(10deg) scale(1.18); }
    }
    .showcase-backdrop, .showcase-caption {
      animation: kh-drift linear both;
      animation-timeline: scroll(root); animation-range: 0 700px;
    }
    .showcase-caption { animation-name: kh-float; }
    @keyframes kh-drift { to { transform: translateY(-46px); } }
    @keyframes kh-float { to { transform: translate(-22px, -64px); } }

    /* Les sections montent à leur rencontre. */
    .landing .essentials, .landing .demo > :not(.demo-video), .landing .product > *,
    .landing .team-content > *, .landing .getting-started > *,
    .pricing-details > section {
      animation: kh-rise linear both;
      animation-timeline: view(); animation-range: entry 0% cover 28%;
    }
    @keyframes kh-rise { from { opacity: 0; transform: translateY(56px); } }

    /* La vidéo s'ouvre en grand en entrant. */
    .demo-video {
      animation: kh-open linear both;
      animation-timeline: view(); animation-range: entry 0% cover 42%;
    }
    @keyframes kh-open { from { transform: scale(.86) translateY(30px); filter: saturate(.5) brightness(.92); opacity: .4; } }

    /* L'aperçu du produit pivote légèrement en place. */
    .preview-device {
      animation: kh-tilt linear both;
      animation-timeline: view(); animation-range: entry 0% cover 40%;
    }
    @keyframes kh-tilt { from { transform: perspective(900px) rotateY(-14deg) rotateX(6deg) translateY(40px); } }

    /* Les lignes des paliers arrivent une à une. */
    .pricing-paliers tbody tr {
      animation: kh-row .6s cubic-bezier(.2, .75, .2, 1) both;
    }
    .pricing-paliers tbody tr:nth-child(2) { animation-delay: .3s; }
    .pricing-paliers tbody tr:nth-child(3) { animation-delay: .36s; }
    .pricing-paliers tbody tr:nth-child(4) { animation-delay: .42s; }
    .pricing-paliers tbody tr:nth-child(5) { animation-delay: .48s; }
    .pricing-paliers tbody tr:first-child { animation-delay: .24s; }
    @keyframes kh-row { from { opacity: 0; transform: translateX(-14px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .public-page *, .public-page *::before, .public-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .device-front { transform: rotate(-5deg); }
  .device-back { transform: rotate(7deg); }
  /* Sans animation, le verre de l'en-tête reste levé : un en-tête transparent
     au-dessus du texte qui défile serait illisible. */
  .site-header::before { opacity: 1 !important; }
}
