/* Site pilmo.fr — charte « Pastel » de l'app (apps/mobile/src/styles/mobile.css) :
   fond bleu ciel → lavande → pêche, cartes en verre blanc laiteux, texte presque noir,
   bleu pervenche pour l'action principale. Structure inspirée de x.ai/bot, sobriété de muse.ai. */

@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-display: swap;
  font-weight: 1 1000;
  src:
    url('/fonts/google-sans-flex.woff2') format('woff2') tech(variations),
    url('/fonts/google-sans-flex.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;
  --bg: #eceef8;
  --bg-grad:
    radial-gradient(90% 45% at 0% 100%, rgba(250, 226, 208, 0.95), transparent 72%),
    radial-gradient(75% 40% at 100% 78%, rgba(226, 214, 248, 0.9), transparent 70%),
    linear-gradient(180deg, #dbe6f8 0%, #e6e6f7 52%, #efe6f0 100%);
  --card: rgba(255, 255, 255, 0.72);
  --card-strong: rgba(255, 255, 255, 0.88);
  --card-inner: rgba(222, 228, 248, 0.78);
  --tile-blue: linear-gradient(155deg, #e6eefe 0%, #d6e2fb 100%);
  --tile-lavender: linear-gradient(155deg, #f1e6fc 0%, #e0d9fb 100%);
  --tile-peach: linear-gradient(155deg, #fdeee2 0%, #fbdcc9 100%);
  --tile-pink: linear-gradient(155deg, #fbe7f2 0%, #f5d8ea 100%);
  --border: rgba(30, 36, 70, 0.09);
  --border-strong: rgba(30, 36, 70, 0.16);
  --text: #15171c;
  --text-2: #4a4f5e;
  --text-3: #575c6c;
  --accent: #4f6ff0;
  --accent-2: #3450d4;
  --accent-deep: #3b58e0;
  --danger: #a82a33;
  --success: #146b41;
  --glass-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 6px 22px rgba(95, 110, 180, 0.1);
  --solid-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  --radius: 32px;
  --font: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100dvh;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent-2);
}

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

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

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card-strong);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ─── Boutons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease-out;
}

.btn:active {
  transform: scale(0.97);
}

.btn-solid {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: var(--solid-edge);
}

.btn-solid:hover {
  background: var(--accent-2);
}

.btn-solid[aria-busy='true'] {
  cursor: progress;
  opacity: 0.7;
}

.btn-ghost {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--glass-edge);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

/* ─── En-tête ─── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

/* ─── Accroche : texte à gauche, aperçu de l'app et Pilmo à droite ─── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px) var(--gutter) 0;
}

.pill {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--glass-edge);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(40px, 5.4vw, 64px);
}

.hero-lead {
  max-width: 480px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(18px, 2.2vw, 21px);
}

.hero .signup {
  margin: 36px 0 0;
}

.hero .signup-help {
  text-align: left;
  padding-left: 18px;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(380px, 100%);
  margin: 0;
  padding-top: 22%;
}

/* Pilmo, debout derrière le téléphone : seuls sa tête et ses bras dépassent. */
.hero-pilmo {
  position: absolute;
  top: 0;
  right: 6%;
  display: block;
  width: 40%;
}

.hero-pilmo-img {
  width: 100%;
}

.hero-visual .phone {
  position: relative;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
}

/* ─── Inscription ─── */

.signup {
  max-width: 480px;
  margin: 36px auto 0;
}

.signup-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--card-strong);
  box-shadow: var(--glass-edge);
}

.signup input[type='email'] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 8px 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.signup input[type='email']::placeholder {
  color: var(--text-3);
}

.signup input[type='email']:focus-visible {
  outline-offset: 0;
}

.signup input[aria-invalid='true'] {
  box-shadow: inset 0 0 0 2px var(--danger);
}

.signup-help {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
}

.signup-help a {
  color: var(--text-2);
}

.signup-help [data-state='error'] {
  color: var(--danger);
}

.signup-help [data-state='ok'] {
  color: var(--success);
  font-weight: 500;
}

@media (max-width: 479px) {
  .signup-row {
    flex-direction: column;
    border-radius: 28px;
  }

  .hero .signup-help {
    padding-left: 0;
    text-align: center;
  }

  .signup input[type='email'] {
    text-align: center;
    padding: 0 12px;
  }
}

/* Inscription réussie : pastille verte avec une coche qui se dessine. */
.signup-row {
  position: relative;
}

.signup-done {
  position: absolute;
  inset: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  font-weight: 600;
  opacity: 0;
  scale: 0.85;
  pointer-events: none;
  transition:
    opacity 300ms ease-out,
    scale 700ms var(--ease-soft);
}

.signup-done svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-done .signup-done {
  opacity: 1;
  scale: 1;
  pointer-events: auto;
}

.confetti {
  position: fixed;
  z-index: 50;
  display: block;
  pointer-events: none;
}

/* Piège à robots : invisible pour les personnes, rempli seulement par les robots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── Aperçu de l'app ─── */

.phone {
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 18px 16px 24px;
  border-radius: 48px;
  background: var(--bg-grad);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.9),
    0 30px 80px rgba(70, 85, 160, 0.22);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 18px;
  font-weight: 600;
}

.phone-bar img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 4px;
  font-size: 15px;
}

.bubble {
  padding: 10px 14px;
  border-radius: 20px;
}

.bubble-me {
  align-self: flex-end;
  max-width: 85%;
  background: var(--tile-lavender);
  border-bottom-right-radius: 6px;
}

.reply {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.reply-face {
  flex: none;
  width: 34px;
  height: auto;
  margin-top: 2px;
}

.reply-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.bubble-pilmo {
  align-self: flex-start;
  background: var(--card-strong);
  box-shadow: var(--glass-edge);
  border-top-left-radius: 6px;
}

.doc {
  padding: 16px;
  border-radius: 22px;
  background: var(--card-strong);
  box-shadow: var(--glass-edge);
}

.doc-kicker {
  color: var(--text-3);
  font-size: 13px;
}

.doc-client {
  font-weight: 600;
}

.doc-lines {
  margin: 12px 0 0;
  font-variant-numeric: tabular-nums;
}

.doc-lines div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-2);
}

.doc-lines dd {
  margin: 0;
}

.doc-lines .doc-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.doc-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.circled {
  position: relative;
  display: flex;
  flex: 1;
}

.fake-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  background: var(--card-inner);
  font-weight: 500;
  text-align: center;
}

.fake-btn-solid {
  background: var(--accent-deep);
  color: #fff;
}

/* ─── Téléphone de l'accroche : plusieurs exemples qui défilent (app.js), l'action principale
   toujours en bas, entourée. ─── */

.slides {
  position: relative;
  height: 392px;
}

.slide {
  position: absolute;
  inset: 0;
  justify-content: center;
}

.js .slide:not(.is-current) {
  visibility: hidden;
  opacity: 0;
}

.bubble-voice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mic {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2;
  stroke-linecap: round;
}

.slide-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

/* Nom de l'exemple affiché, discret, au-dessus des points. */
.slide-label {
  flex-basis: 100%;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
}

.slide-dots {
  display: flex;
  justify-content: center;
}

.slide-dots button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.slide-dots button::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  transition:
    width 300ms var(--ease-soft),
    background-color 300ms ease-out;
}

.slide-dots button:hover::before {
  background: var(--text-3);
}

.slide-dots button[aria-current='true']::before {
  width: 22px;
  background: var(--accent-deep);
}

.slide-pause {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}

.slide-pause:hover {
  color: var(--text);
}

.slide-pause svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* En pause : le bouton montre « lecture ». */
.slide-pause .icon-play {
  display: none;
  fill: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.slide-pause[aria-pressed='true'] .icon-play {
  display: block;
}

.slide-pause[aria-pressed='true'] .icon-pause {
  display: none;
}

/* ─── Comment ça se passe : le téléphone reste fixe pendant le défilement et joue la scène
   étape par étape (étape active posée par app.js ; sans JavaScript, tout est affiché). ─── */

.story {
  max-width: 1120px;
  margin: clamp(96px, 14vw, 160px) auto 0;
  padding: 0 var(--gutter);
}

.story > h2 {
  font-size: clamp(32px, 5vw, 52px);
  text-align: center;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.story-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
  max-width: 420px;
}

.story-step h3 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.story-step p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 19px;
}

.story-step .step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 0 18px;
  border-radius: 50%;
  background: var(--card-strong);
  box-shadow: var(--glass-edge);
  color: var(--accent-2);
  font-size: 17px;
  font-weight: 600;
}

.story-stage {
  position: sticky;
  top: max(10vh, 72px);
  align-self: start;
  padding: 10vh 0;
}

.story-phone .chat {
  min-height: 400px;
}

.story-caption {
  display: none;
}

.story-caption h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.story-caption p {
  margin-top: 8px;
  color: var(--text-2);
}

.mail-card {
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--card-strong);
  box-shadow: var(--glass-edge);
}

.mail-card .doc-kicker {
  margin-bottom: 4px;
}

.sent {
  align-self: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #dff3e8;
  color: var(--success);
  font-weight: 600;
}

@media (max-width: 860px) {
  .story-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
  }

  /* Téléphone collé en haut, réduit ; le texte des étapes défile en dessous. */
  .story-stage {
    z-index: 3;
    top: 0;
    padding: 12px 0 20px;
  }

  .story-phone {
    width: min(300px, 100%);
    font-size: 14px;
  }

  .story-phone .chat {
    min-height: 300px;
  }

  /* Les étapes ne servent plus qu'à mesurer le défilement : leur texte s'affiche sous le
     téléphone (légende remplie par app.js), jamais derrière lui. */
  .js .story-step {
    min-height: 55vh;
    max-width: none;
    opacity: 0 !important;
  }

  .js .story-caption {
    display: block;
    max-width: 340px;
    margin: 18px auto 0;
    text-align: center;
  }
}

/* ─── Pour qui ─── */

.audience {
  max-width: 680px;
  margin: clamp(88px, 14vw, 160px) auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}

.audience h2 {
  font-size: clamp(32px, 5vw, 52px);
}

.audience p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(18px, 2.2vw, 21px);
}

/* ─── Cartes ─── */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: clamp(48px, 7vw, 72px) auto 0;
  padding: 0 var(--gutter);
}

.card {
  position: relative;
  display: flex;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--glass-edge);
}

.card-blue {
  background: var(--tile-blue);
}

.card-peach {
  background: var(--tile-peach);
}

.card-lavender {
  background: var(--tile-lavender);
}

.card-pink {
  background: var(--tile-pink);
}

.card-text {
  position: relative;
  z-index: 1;
  max-width: 58%;
  padding: 36px;
}

.card h2 {
  font-size: clamp(24px, 2.6vw, 30px);
}

.card p {
  margin-top: 12px;
  color: var(--text-2);
}

.card img {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: 52%;
}

@media (max-width: 760px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    min-height: 0;
    flex-direction: column;
  }

  .card-text {
    max-width: none;
    padding: 28px 28px 0;
  }

  .card img {
    position: static;
    width: 54%;
    max-width: 240px;
    margin: 12px -4% -18% auto;
  }
}

/* ─── Questions ─── */

.faq {
  max-width: 720px;
  margin: clamp(88px, 14vw, 160px) auto 0;
  padding: 0 var(--gutter);
}

.faq h2 {
  margin-bottom: 24px;
  font-size: clamp(32px, 5vw, 52px);
  text-align: center;
}

.faq details {
  border-bottom: 1px solid var(--border-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--text-3);
  font-size: 24px;
  font-weight: 300;
  transition: transform 150ms ease-out;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 20px;
  color: var(--text-2);
}

/* ─── Dernier appel ─── */

.final {
  max-width: 640px;
  margin: clamp(88px, 14vw, 160px) auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}

.final-pilmo {
  position: relative;
  width: min(240px, 60%);
  margin: 0 auto 8px;
}

.final-pilmo-hop {
  display: block;
}

.final-pilmo-img {
  width: 100%;
}

.final h2 {
  font-size: clamp(36px, 6vw, 64px);
}

.final .signup {
  margin-top: 28px;
}

/* ─── Pied de page ─── */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1120px;
  margin: clamp(88px, 12vw, 136px) auto 0;
  padding: 24px var(--gutter) max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 14px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
}

/* ─── Pages de texte (mentions légales, merci) ─── */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) var(--gutter) 0;
}

.page h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.page h2 {
  margin: 40px 0 12px;
  font-size: 22px;
}

.page p,
.page li {
  color: var(--text-2);
}

.page p + p,
.page ul + p {
  margin-top: 12px;
}

.page ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.page .updated {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 14px;
}

.page .todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #fde7b0;
  color: var(--text);
}

.page-center {
  text-align: center;
}

.page-center img {
  width: min(220px, 60%);
  margin: 0 auto 16px;
}

.page-center .btn {
  margin-top: 28px;
}

.hl {
  position: relative;
  white-space: nowrap;
}

/* « s'en occupe » prend les reflets de la bulle d'antenne de Pilmo (bleu, violet, rose),
   tous assez foncés pour rester lisibles ; un éclat les traverse de temps en temps. */
.hl {
  background: linear-gradient(
    100deg,
    #3450d4 0%,
    #3450d4 30%,
    #6a4fe0 42%,
    #b4479c 50%,
    #6a4fe0 58%,
    #3450d4 70%,
    #3450d4 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ─── Objets de Pilmo (images d'Eddy) : flottent, surgissent au défilement, suivent
   légèrement la souris (app.js, propriété translate) et sautent quand on les touche. ─── */

.obj {
  position: absolute;
  z-index: 2;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.obj img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(70, 85, 160, 0.18));
  transition: scale 400ms var(--ease-soft);
}

.obj:hover img {
  scale: 1.12;
}

.obj-envelope {
  top: 14%;
  left: -12%;
  width: 96px;
}

.obj-calendar {
  right: -20%;
  bottom: 22%;
  width: 104px;
}

.audience,
.faq {
  position: relative;
}

.obj-list {
  top: -30px;
  left: -18%;
  width: 96px;
}

.obj-wallet {
  top: 60px;
  right: -18%;
  width: 92px;
}

.obj-star {
  top: -28px;
  right: 10%;
  width: 64px;
}

.obj-star-final {
  bottom: 18%;
  left: -34%;
  width: 52px;
}

.pokeable {
  cursor: pointer;
}

.card-img-wide {
  right: -4% !important;
  bottom: -8% !important;
  width: 66% !important;
}

@media (max-width: 760px) {
  .card-img-wide {
    width: 82% !important;
    max-width: 340px !important;
    margin: 4px -6% -8% auto !important;
  }
}

@media (max-width: 860px) {
  .obj-envelope {
    left: -2%;
    width: 72px;
  }

  /* Petit écran : le calendrier cacherait le contenu du téléphone. */
  .obj-calendar {
    display: none;
  }

  .obj-list {
    top: -72px;
    left: 4%;
    width: 64px;
  }

  .obj-wallet {
    top: -64px;
    right: 4%;
    width: 60px;
  }

  .obj-star {
    top: -36px;
    right: 4%;
    width: 50px;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.85);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Pilmo respire et se balance doucement, comme dans l'app. */
@keyframes float {
  from {
    transform: translateY(0) rotate(0deg);
  }
  to {
    transform: translateY(-6px) rotate(-1.5deg);
  }
}

@keyframes drift {
  from {
    transform: translateY(40px);
  }
  to {
    transform: translateY(-40px);
  }
}

@keyframes drift-far {
  from {
    transform: translateY(80px);
  }
  to {
    transform: translateY(-80px);
  }
}

@keyframes bob {
  to {
    transform: translateY(-10px) rotate(4deg);
  }
}

@keyframes hop {
  30% {
    translate: 0 -26px;
    scale: 1.08 0.94;
  }
  55% {
    translate: 0 0;
    scale: 0.96 1.04;
  }
  75% {
    scale: 1.02 0.98;
  }
}

@keyframes sheen {
  0%,
  55% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Accroche : entrée en cascade. */
  .hero-copy > *,
  .hero-visual .phone {
    animation: rise 1100ms var(--ease-soft) both;
  }

  .hero-title {
    animation-delay: 80ms;
  }

  /* Petit éclat irisé (texte court : coût d'affichage négligeable). */
  .hl {
    animation: sheen 5s ease-in-out 1.2s infinite;
  }

  .hero-lead {
    animation-delay: 160ms;
  }

  .hero .signup {
    animation-delay: 240ms;
  }

  .hero-visual .phone {
    animation-delay: 200ms;
  }

  /* Apparition et balancement sur l'image ; le saut au toucher sur son conteneur, pour ne
     jamais relancer l'apparition. */
  .hero-pilmo-img {
    animation:
      pop 1200ms var(--ease-soft) 500ms both,
      float 4s ease-in-out 1.7s infinite alternate;
  }

  /* Objets : flottent en continu, chacun à son rythme. */
  .obj img {
    animation: bob 4.5s ease-in-out infinite alternate;
  }

  .obj-calendar img,
  .obj-wallet img {
    animation-duration: 5.5s;
    animation-direction: alternate-reverse;
  }

  .hero .obj {
    animation: pop 1200ms var(--ease-soft) both;
  }

  .obj-envelope {
    animation-delay: 900ms !important;
  }

  .obj-calendar {
    animation-delay: 1150ms !important;
  }

  /* Objets plus bas : cachés puis surgissent quand ils arrivent à l'écran (app.js). */
  .js .obj-scroll {
    opacity: 0;
    scale: 0.4;
    transition:
      opacity 700ms var(--ease-soft),
      scale 1100ms var(--ease-soft);
  }

  .js .obj-scroll.is-in {
    opacity: 1;
    scale: 1;
  }

  .obj-wallet.is-in {
    transition-delay: 200ms;
  }

  /* Inscription réussie : la coche se dessine. */
  .signup-done svg path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .is-done .signup-done svg path {
    animation: draw 600ms var(--ease-soft) 250ms forwards;
  }

  /* Touché : petit saut, comme Pilmo dans l'app. */
  .obj.is-poked img,
  .pokeable.is-poked {
    animation: hop 650ms var(--ease-soft);
  }

  /* Exemples du téléphone : glissement doux, puis l'action principale s'entoure. */
  .js .slide {
    transition:
      opacity 600ms var(--ease-soft),
      translate 800ms var(--ease-soft),
      visibility 0s linear 600ms;
    translate: 0 14px;
  }

  .js .slide.is-current {
    translate: 0 0;
    transition:
      opacity 600ms var(--ease-soft) 150ms,
      translate 800ms var(--ease-soft) 150ms,
      visibility 0s;
  }

  /* Scène : chaque élément arrive à son étape. */
  .js .story-phone .s-reply,
  .js .story-phone .s-sent {
    opacity: 0;
    translate: 0 20px;
    transition:
      opacity 600ms var(--ease-soft),
      translate 800ms var(--ease-soft);
  }

  .js .story-phone.reached-2 .s-reply,
  .js .story-phone.reached-3 .s-sent {
    opacity: 1;
    translate: 0 0;
  }

  .s-send {
    transition:
      scale 300ms var(--ease-soft),
      background-color 300ms ease-out;
  }

  .story-phone.reached-3 .s-send {
    scale: 0.94;
    background: var(--success);
  }

  .story-step {
    transition: opacity 500ms ease-out;
  }

  .js .story-step:not(.is-active) {
    opacity: 0.3;
  }

  /* Défilement : les objets glissent à des vitesses différentes (profondeur). */
  @supports (animation-timeline: view()) {
    .obj {
      animation-name: drift;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
    }

    .obj-calendar,
    .obj-wallet {
      animation-name: drift-far;
    }
  }

  /* Hors de l'écran, toutes les boucles s'arrêtent (app.js). */
  [data-offscreen] *,
  [data-offscreen] {
    animation-play-state: paused !important;
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }

    .cards .card:nth-child(even) {
      animation-range: entry 8% cover 50%;
    }

    .final-pilmo-img {
      animation: pop linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
  }
}
