/* Site de présentation du Carnet de Bébé.
   Palette tirée de l'application : ciel du matin, nuit, lagon (couleur de l'appli), abricot (icône), lavande (sommeil). */
:root {
  --ciel: #EAF1F6;
  --ciel-2: #DCE8F0;
  --nuit: #142B44;
  --lagon: #2E6E8E;
  --abricot: #F3B88C;
  --lavande: #8B7FD6;
  --brume: #51667A;
  --blanc: #FFFFFF;
  --rond: "Nunito", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mesure: 34rem;
  --gouttiere: clamp(16px, 5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ciel); color: var(--nuit); font: 1.0625rem/1.6 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--rond); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lagon); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--nuit); color: var(--blanc); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--lagon); color: var(--blanc); font: 800 1.05rem var(--rond); text-decoration: none; border: 2px solid var(--lagon);
  transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #255d78; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--lagon); }
.btn-ghost:hover { background: var(--blanc); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.fine { font-size: .9rem; color: var(--brume); }

/* en-tête */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 12px var(--gouttiere);
  background: color-mix(in srgb, var(--ciel) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.15rem var(--rond); }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--brume); font-weight: 700; }
.top nav a:hover { color: var(--nuit); }

/* héros : le geste de la nuit et la respiration lente d'un bébé qui dort */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 6vw, 88px) var(--gouttiere) clamp(48px, 7vw, 104px); max-width: 1280px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 900; max-width: 11ch; text-wrap: balance; }
.lead { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: var(--mesure); color: #2C445C; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 14px; }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.breath { position: absolute; width: min(520px, 92%); aspect-ratio: 1; background: radial-gradient(circle at 35% 35%, #F7CDA9, var(--abricot) 45%, #E9A372);
  border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; animation: breathe 4.6s ease-in-out infinite, morph 18s ease-in-out infinite; opacity: .9; }
.breath-2 { width: min(420px, 74%); background: radial-gradient(circle at 60% 40%, #B9B2EE, var(--lavande)); mix-blend-mode: multiply; opacity: .55;
  translate: 18% 16%; animation-duration: 4.6s, 23s; animation-delay: -1.4s, -6s; }
@keyframes breathe { 0%, 100% { scale: 1; } 45% { scale: 1.06; } }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; rotate: 0deg; }
  33% { border-radius: 58% 42% 44% 56% / 55% 58% 42% 45%; rotate: 8deg; }
  66% { border-radius: 40% 60% 52% 48% / 42% 52% 48% 58%; rotate: -6deg; }
}
.phone { position: relative; margin: 0; width: 290px; padding: 11px; border-radius: 46px; background: var(--nuit);
  box-shadow: 0 40px 80px -30px rgba(20, 43, 68, .55), inset 0 0 0 2px #2C4A68; }
.phone .screen { border-radius: 36px; overflow: hidden; background: var(--ciel); aspect-ratio: 390 / 844; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .45s ease; }
.hero .phone { rotate: -4deg; animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* les moments de la nuit apparaissent l'un après l'autre, une seule fois */
.moments { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.moments li { position: absolute; display: flex; gap: 10px; align-items: baseline; padding: 10px 16px; border-radius: 18px;
  background: var(--blanc); box-shadow: 0 12px 30px -12px rgba(20, 43, 68, .35); font-weight: 700; white-space: nowrap;
  opacity: 0; translate: 0 10px; animation: moment .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: .6s; }
.moments b { font: 900 1rem var(--rond); color: var(--lagon); }
.moments li:nth-child(1) { top: 14%; left: -2%; }
.moments li:nth-child(2) { animation-delay: 1.5s; }
.moments li:nth-child(3) { animation-delay: 2.4s; }
.moments li:nth-child(4) { animation-delay: 3.6s; }
.moments li:nth-child(2) { top: 36%; right: -4%; }
.moments li:nth-child(3) { bottom: 30%; left: -6%; }
.moments li:nth-child(4) { bottom: 9%; right: 2%; background: var(--nuit); color: var(--blanc); }
.moments li:nth-child(4) b { color: var(--abricot); }
@keyframes moment { to { opacity: 1; translate: 0 0; } }

/* bandeau photo */
.photo-band { position: relative; margin: 0 var(--gouttiere); border-radius: 40px; overflow: hidden; max-width: 1280px; }
@media (min-width: 1408px) { .photo-band { margin: 0 auto; } }
.photo-band img { width: 100%; height: clamp(320px, 52vw, 620px); object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 43, 68, .78) 0%, rgba(20, 43, 68, .35) 38%, transparent 62%); }
.photo-band p { z-index: 1; position: absolute; left: clamp(20px, 5vw, 64px); bottom: clamp(20px, 5vw, 56px); max-width: 18ch;
  font: 900 clamp(1.7rem, 4vw, 3.2rem)/1.05 var(--rond); color: var(--blanc); text-shadow: 0 2px 24px rgba(20, 43, 68, .5); letter-spacing: -0.02em; }

/* une journée : la seule vraie séquence de la page, d'où les heures */
.day { padding: clamp(64px, 9vw, 128px) var(--gouttiere); max-width: 1280px; margin: 0 auto; }
.day h2, .family h2, .data h2, .ask h2, .install h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 900; text-wrap: balance; }
.day-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 6vw, 96px); margin-top: 48px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 clamp(56px, 12vh, 140px) 28px; border-left: 3px solid var(--ciel-2); max-width: var(--mesure); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: -11px; top: 6px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--ciel); border: 3px solid var(--ciel-2); transition: background .3s, border-color .3s; }
.steps li.on::before { background: var(--abricot); border-color: var(--abricot); }
.steps li.on { border-left-color: var(--abricot); }
.steps time { font: 900 1.05rem var(--rond); color: var(--lagon); }
.steps h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin: 4px 0 10px; }
.steps p { color: #2C445C; }
.steps .shot { display: none; }
.day-phone { position: sticky; top: 96px; align-self: start; display: grid; place-items: center; }
.day-phone::before { content: ""; position: absolute; width: 360px; aspect-ratio: 1; border-radius: 50%; background: var(--ciel-2); }

/* à plusieurs */
.family { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(64px, 9vw, 128px) var(--gouttiere); background: var(--nuit); color: var(--ciel); }
.family-photo img { border-radius: 220px 220px 40px 40px; width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; }
.family-text { max-width: 36rem; }
.family-text > p { margin-top: 18px; font-size: 1.15rem; color: #C9D8E5; }
.roles { margin: 32px 0 0; display: grid; gap: 4px; }
.roles div { padding: 18px 0; border-top: 1px solid #2C4A68; display: grid; grid-template-columns: 13rem 1fr; gap: 16px; }
.roles dt { font: 800 1.15rem var(--rond); color: var(--abricot); }
.roles dd { margin: 0; color: #D7E3EE; }
.family .note { margin-top: 24px; color: #AFC3D5; font-size: .95rem; }

/* question */
.ask { padding: clamp(64px, 9vw, 128px) var(--gouttiere); max-width: 52rem; margin: 0 auto; text-align: center; }
.ask p { margin: 20px auto 0; font-size: 1.2rem; max-width: var(--mesure); color: #2C445C; }
.ask .fine { font-size: .95rem; color: var(--brume); }

/* données */
.data { padding: 0 var(--gouttiere) clamp(64px, 9vw, 128px); max-width: 1280px; margin: 0 auto; }
.data ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 96px); }
.data li { padding: 22px 0; border-top: 2px solid var(--ciel-2); max-width: var(--mesure); color: #2C445C; }
.data b { color: var(--nuit); font-family: var(--rond); font-weight: 800; font-size: 1.1rem; }

/* installer */
.install { position: relative; padding: 0 var(--gouttiere) clamp(64px, 9vw, 120px); max-width: 1280px; margin: 0 auto; }
.install-photo { width: 100%; height: clamp(280px, 40vw, 520px); object-fit: cover; border-radius: 40px; }
.install-card { position: relative; margin: -120px auto 0; max-width: 40rem; background: var(--blanc); border-radius: 32px; padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 60px -30px rgba(20, 43, 68, .35); }
.install-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.install-card ol { margin: 24px 0 18px; padding-left: 1.4rem; display: grid; gap: 12px; }
.install-card li::marker { font: 900 1.05rem var(--rond); color: var(--lagon); }
.install-card .btn { margin-top: 24px; }

.foot { padding: 32px var(--gouttiere) 48px; text-align: center; color: var(--brume); font-size: .9rem; display: grid; gap: 6px; }

/* téléphone et tablette */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-stage { min-height: 560px; }
  .day-grid { grid-template-columns: 1fr; }
  .day-phone { display: none; }
  .steps .shot { display: block; width: min(260px, 70%); margin: 20px 0 0; border-radius: 26px; box-shadow: 0 24px 48px -24px rgba(20, 43, 68, .45); border: 6px solid var(--nuit); }
  .family { grid-template-columns: 1fr; }
  .family-photo img { max-height: 420px; border-radius: 160px 160px 32px 32px; }
  .data ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .brand span { display: none; }
  .hero-stage { min-height: 520px; }
  .phone { width: 240px; border-radius: 40px; }
  .phone .screen { border-radius: 30px; }
  .moments li { font-size: .88rem; padding: 8px 12px; }
  .moments li:nth-child(1) { left: 0; }
  .moments li:nth-child(2) { right: 0; }
  .moments li:nth-child(3) { left: 0; }
  .moments li:nth-child(4) { right: 0; }
  .roles div { grid-template-columns: 1fr; gap: 4px; }
  .photo-band, .install-photo { border-radius: 28px; }
  .install-card { margin-top: -60px; }
}

/* mouvements réduits : tout reste visible, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breath, .hero .phone { animation: none; }
  .moments li { animation: none; opacity: 1; translate: 0 0; }
  .phone .screen img { transition: none; }
}
