/* Mise en page : l'accroche avec la capture entière dans le téléphone, puis des rangées alternées texte / panneau pastel portant un morceau de vraie capture, la FAQ, l'appel final et un pied de page en carte.
   Palette de src/theme/colors.ts ; l'app n'a pas de thème sombre, la page non plus (choix délibéré). */
:root {
  --bg: #FFF6EA; --bg2: #FBEBD6; --card: #FFFFFF;
  --border: #F0E2D0; --outline: #8A6A4E;
  --ink: #4A3526; --body: #6B5442; --sub: #A18975;
  --primary: #F0883F; --primaryDark: #CE6A26; --primarySoft: #FBDDC2;
  --blueSoft: #D6E8FA; --yellowSoft: #FCEDC4; --greenSoft: #D6EFE0; --purpleSoft: #E4DCFA; --redSoft: #FBD9D5;
  --sky: #9ED3F2;
  --sticker: 3px 4px 0 var(--outline);
  --stickerSm: 2px 3px 0 var(--outline);
  --line: 2.5px solid var(--outline);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --text: "Nunito", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 24px; }

/* En-tête : logo à gauche, boutons des stores à droite */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 246, 234, .92); backdrop-filter: blur(10px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 24px var(--display); }
.brand img { border-radius: 11px; border: 2px solid var(--outline); }
.stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store { display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 6px 14px 6px 11px; border-radius: 12px; border: 2px solid var(--outline); font: 600 16px/1.05 var(--display); transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font: 600 9.5px var(--text); opacity: .75; }
.stores.lg .store { padding: 10px 20px 10px 16px; border-radius: 16px; border-width: 2.5px; box-shadow: var(--stickerSm); font-size: 20px; }
.stores.lg .store svg { width: 28px; height: 28px; }
.stores.lg .store small { font-size: 11px; }

.lead { font-size: 19px; color: var(--body); }
.phone { background: var(--ink); border-radius: 44px; padding: 10px; }
.phone img { width: 100%; border-radius: 35px; }

/* Accroche : titre et boutons à gauche, la capture entière dans le téléphone à droite */
.hero { padding-block: 56px 80px; background: radial-gradient(600px 420px at 85% 35%, var(--primarySoft), transparent 70%), radial-gradient(500px 360px at 0% 95%, var(--yellowSoft), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin: 22px 0 30px; max-width: 34em; }
.hero .stores { justify-content: flex-start; scroll-margin-top: 120px; }
.hero .store { padding: 10px 20px 10px 16px; border-radius: 16px; border-width: 2.5px; box-shadow: var(--stickerSm); font-size: 20px; }
.hero .store svg { width: 28px; height: 28px; }
.hero .store small { font-size: 11px; }
.hero-art { display: flex; justify-content: center; }
.phone.lg { width: 320px; max-width: 100%; rotate: 2deg; box-shadow: 6px 9px 0 var(--outline), 0 30px 60px -24px rgba(74, 53, 38, .45); }

/* Appel final */
.btn { display: inline-flex; align-items: center; background: var(--primary); color: #fff; font-weight: 800; padding: 16px 32px; font-size: 19px; border-radius: 999px; border: var(--line); box-shadow: var(--stickerSm); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(1px, 1px); box-shadow: 1px 2px 0 var(--outline); }
.final { padding-block: 40px 90px; text-align: center; background: radial-gradient(600px 300px at 50% 100%, var(--primarySoft), transparent 70%); }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 10px; }
.final .egg { width: 110px; animation: wobble 2.4s ease-in-out infinite; transform-origin: 50% 90%; margin-bottom: 18px; }
@keyframes wobble { 0%, 60%, 100% { rotate: 0deg; } 70% { rotate: -8deg; } 80% { rotate: 7deg; } 90% { rotate: -4deg; } }
.final p { color: var(--sub); font-weight: 700; margin-bottom: 28px; }

/* 2. Rangées alternées */
.rows { display: flex; flex-direction: column; gap: 40px; padding-block: 72px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.row:nth-child(even) .copy { order: 2; }
.copy { min-width: 0; }
.copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; margin-bottom: 12px; }
.copy p { color: var(--body); max-width: 30em; }
.panel { min-width: 0; height: 300px; border-radius: 40px; display: grid; place-items: center; padding: 28px; overflow: hidden; }
.panel .shot { max-width: 92%; border: 2.5px solid var(--outline); border-radius: 22px; box-shadow: var(--sticker); background: var(--card); overflow: hidden; }
.panel .shot img { width: auto; max-width: 100%; max-height: 236px; }
.row:nth-child(odd) .shot { rotate: 2deg; }
.row:nth-child(even) .shot { rotate: -2deg; }
.p-blue { background: var(--blueSoft); } .p-yellow { background: var(--yellowSoft); } .p-orange { background: var(--primarySoft); }
.p-purple { background: var(--purpleSoft); } .p-green { background: var(--greenSoft); }
/* Le bébé a sa propre colonne au centre, entre deux côtés égaux : il tombe pile au milieu du cadre.
   Dans chaque côté, l'espace se répartit également autour de la flèche, qui n'est collée ni à l'œuf, ni au bébé, ni à l'adulte. */
.shot.stages { width: 92%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 22px 6px 16px; }
.stages .side { min-width: 0; display: flex; align-items: center; justify-content: space-evenly; }
.stages .side figure { min-width: 0; flex: 0 1 auto; }
.stages .side .arrow { margin-inline: 6px; }
.stages figure { margin: 0; display: grid; grid-template-rows: 150px auto; align-items: center; justify-items: center; gap: 6px; }
.stages img { width: auto; object-fit: contain; }
.stages .st-oeuf { height: 70px; }
.stages .st-bebe { height: 64px; }
/* L'adulte prend toute la largeur de sa colonne, plafonnée : il grandit autant que le cadre le permet sans jamais en sortir. */
.panel .stages .st-adulte { width: 100%; max-width: 112px; height: auto; max-height: none; }
.stages figcaption { font: 600 15px var(--display); color: var(--ink); }
.stages .arrow { flex: none; width: 28px; height: 40px; margin-bottom: 26px; color: var(--primary); }

/* 3. FAQ */
.faq { padding-block: 24px 80px; max-width: 780px; margin: 0 auto; }
.faq h2 { font-size: clamp(28px, 3.4vw, 38px); text-align: center; margin-bottom: 28px; }
details { background: var(--card); border: var(--line); border-radius: 20px; margin-bottom: 14px; box-shadow: var(--stickerSm); }
summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font: 600 19px var(--display); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: var(--primarySoft); color: var(--primaryDark); display: grid; place-items: center; font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 18px; color: var(--body); }

/* 4. Pied de page en carte */
.foot { padding-bottom: 32px; }
.foot-card { background: var(--bg2); border-radius: 40px; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.foot-card .egg { width: 64px; }
.foot-card nav { display: flex; flex-direction: column; gap: 8px; font-weight: 700; color: var(--sub); font-size: 15px; }
.foot-card nav a:hover { color: var(--ink); }
.foot-card p { color: var(--sub); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 32px; }
  .row { grid-template-columns: 1fr; gap: 22px; }
  .row:nth-child(even) .copy { order: 0; }
  .copy { text-align: center; }
  .copy p { margin-inline: auto; }
  .panel { height: 260px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .nav .stores { display: none; }
  .panel { height: 230px; border-radius: 30px; padding: 20px; }
  .panel .shot img { max-height: 182px; }
  .shot.stages { width: 100%; padding: 16px 4px 12px; }
  .stages figure { grid-template-rows: 108px auto; }
  .stages .st-oeuf { height: 52px; } .stages .st-bebe { height: 50px; } .panel .stages .st-adulte { max-width: 84px; }
  .stages .arrow { width: 21px; height: 30px; margin-bottom: 24px; }
}

/* Choix de la langue */
.lang { display: flex; gap: 2px; background: var(--card); border: 2px solid var(--outline); border-radius: 999px; padding: 3px; font: 700 13px var(--text); }
.lang a { padding: 4px 10px; border-radius: 999px; color: var(--sub); }
.lang a[aria-current="page"] { background: var(--primarySoft); color: var(--primaryDark); }
.nav-end { display: flex; align-items: center; gap: 12px; }


/* Pages FAQ et Sources */
.page-hero { text-align: center; padding: 48px 0 8px; max-width: 780px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.page-hero .lead { color: var(--body); font-size: 19px; }
.search { margin: 28px auto 0; max-width: 560px; }
.search input { width: 100%; box-sizing: border-box; padding: 16px 22px; border: var(--line); border-radius: 999px; background: var(--card); box-shadow: var(--stickerSm); font: 600 17px var(--text); color: var(--ink); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--sub); }
.search input:focus { outline: 3px solid var(--primary); outline-offset: 2px; }
.pastille { flex: none; width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; max-width: 780px; margin: 32px auto 0; }
.cats a { display: flex; align-items: center; gap: 12px; background: var(--card); border: var(--line); border-radius: 18px; padding: 10px 14px; box-shadow: var(--stickerSm); font: 600 16px/1.2 var(--display); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.cats a:hover { transform: translate(1px, 1px); box-shadow: 1px 2px 0 var(--outline); }
.faq-list, .src-list { max-width: 780px; margin: 0 auto; }
.faq-group, .src-group { margin-top: 48px; scroll-margin-top: 90px; }
.faq-group h2, .src-group h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 3vw, 30px); margin-bottom: 18px; }
details { scroll-margin-top: 90px; }
details .a { padding: 0 22px 20px; color: var(--body); }
details .a p { padding: 0; margin: 0 0 10px; }
details .a ul { margin: 0 0 10px; padding-left: 22px; }
details .a li { margin-bottom: 6px; }
details .a > :last-child { margin-bottom: 0; }
details .a a, .src-card a:not(.tag), .src-note a { color: var(--primaryDark); text-decoration: underline; text-underline-offset: 3px; }
details .a strong, .src-card strong { color: var(--ink); }
.faq-empty { text-align: center; color: var(--sub); font-weight: 700; padding: 40px 0 0; }
.help-card { max-width: 780px; margin: 56px auto 72px; background: var(--primarySoft); border: var(--line); border-radius: 28px; box-shadow: var(--sticker); padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.help-card img { width: 64px; height: auto; }
.help-card h2 { font-size: clamp(24px, 3vw, 30px); }
.help-card p { color: var(--body); margin-bottom: 8px; }
.src-card { background: var(--card); border: var(--line); border-radius: 20px; box-shadow: var(--stickerSm); padding: 20px 22px; margin-bottom: 14px; }
.src-card h3 { font-size: 20px; margin-bottom: 8px; }
.src-card p { color: var(--body); }
.src-card .cite { margin-top: 10px; font-size: 15px; color: var(--sub); }
.src-card .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; font: 700 13px var(--text); padding: 4px 12px; border-radius: 999px; background: var(--bg2); color: var(--body); }
.tag.link { background: var(--primarySoft); color: var(--primaryDark); }
.src-note { margin: 32px 0 72px; color: var(--sub); font-size: 15px; text-align: center; }
@media (max-width: 560px) {
  .page-hero { padding-top: 32px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cats a { font-size: 14px; padding: 8px 10px; gap: 8px; }
  .pastille { width: 32px; height: 32px; font-size: 17px; border-radius: 11px; }
  .src-card { padding: 18px; }
}
.faq-more { text-align: center; margin-top: 28px; }
.faq details p a { color: var(--primaryDark); text-decoration: underline; text-underline-offset: 3px; }
.help-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 780px; margin: 28px auto 0; }
.help-nav a { background: var(--card); border: var(--line); border-radius: 999px; box-shadow: var(--stickerSm); padding: 8px 16px; font: 600 15px var(--display); color: var(--ink); }
.help-nav a:hover { transform: translate(1px, 1px); box-shadow: 1px 2px 0 var(--outline); }
details .a ol { margin: 0 0 10px; padding-left: 22px; }
details .a ol li { margin-bottom: 4px; }
.help-card, .faq-group { scroll-margin-top: 90px; }
