/* ============================================================
   Bambino — page d'accueil (les autres pages utilisent landing.css)
   Le site s'ouvre comme un numéro de la gazette : double page,
   titre courant, folios, photos légendées comme dans le magazine.
   Palette et EB Garamond repris de l'app (mobile/src/theme/colors.ts).
   ============================================================ */

:root {
  --lin:          #EEE6D9;  /* fond de l'app */
  --papier:       #FFFFFF;  /* page de la gazette */
  --papier-chaud: #F7F2EA;
  --encre:        #1A1A1A;
  --encre-douce:  #5C4A3A;
  --encre-pale:   #8A7A6A;
  --noyer:        #8A6851;  /* primaire de l'app */
  --noyer-fonce:  #6B4F3D;
  --chene:        #D8BF9F;
  --chene-clair:  #F0E6D8;
  --chocolat:     #3A2A21;
  --filet:        #D9CEBC;

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(48px, 6vw, 88px);
  --print-shadow: 0 28px 48px -28px rgba(58, 42, 33, 0.45), 0 2px 6px rgba(58, 42, 33, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--lin);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--noyer); text-decoration: none; }
a:hover { color: var(--noyer-fonce); }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--noyer); outline-offset: 3px; border-radius: 4px; }

h2 {
  font-weight: 500;
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--noyer); color: var(--papier);
  padding: 8px 16px; border-radius: 10px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }

.rubric {
  font-style: italic;
  color: var(--noyer);
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}
.section-lead {
  font-size: 1.25rem;
  color: var(--encre-douce);
  margin: 0;
  max-width: 40ch;
  text-wrap: pretty;
}
.section-head { max-width: 42rem; margin: 0 0 clamp(32px, 4vw, 56px); }

/* ---------- Boutons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta-row--center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--noyer); color: var(--papier); }
.btn-primary:hover { background: var(--noyer-fonce); color: var(--papier); }
.btn-soon {
  color: var(--encre-pale);
  border-color: var(--filet);
  font-style: italic;
  font-weight: 500;
  cursor: default;
}
/* Un seul bouton de store sur téléphone (data-platform posé dans le <head>) */
[data-platform="ios"] [data-store="android"],
[data-platform="android"] [data-store="ios"] { display: none; }

.btn-outline { color: var(--noyer); border-color: var(--noyer); }
.btn-outline:hover { background: var(--noyer); color: var(--papier); }
.btn-light { background: var(--chene-clair); color: var(--chocolat); }
.btn-light:hover { background: var(--papier); color: var(--chocolat); }
.btn-outline-light { color: var(--chene-clair); border-color: rgba(240, 230, 216, 0.45); }
.btn-outline-light:hover { color: var(--papier); border-color: var(--papier); }

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--lin) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--filet);
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--encre-douce); font-size: 1rem; }
.nav a:hover { color: var(--noyer); }

.nav-toggle { display: none; }
@media (max-width: 1099px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -8px; color: var(--encre-douce);
  }
  .nav-toggle-bars { position: relative; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 2px;
    background: currentColor; border-radius: 2px; transition: transform .25s ease, top .25s ease;
  }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--filet);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 4px; font-size: 1.125rem; color: var(--encre); border-bottom: 1px solid var(--filet); }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- Hero : double page ---------- */
.hero { padding: clamp(20px, 4vw, 56px) 0 clamp(40px, 5vw, 64px); }

.spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--papier);
  border-radius: 3px;
  box-shadow: 0 40px 70px -40px rgba(58, 42, 33, 0.45), 0 2px 8px rgba(58, 42, 33, 0.08);
}
.page {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3.2vw, 44px);
}
.page--right { border-top: 1px solid var(--filet); }

@media (min-width: 900px) {
  .spread { grid-template-columns: 1fr 1fr; }
  .page--right { border-top: 0; }
  /* Pli central de la gazette */
  .spread::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 72px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(58, 42, 33, 0.05) 40%,
      rgba(58, 42, 33, 0.13) 50%,
      rgba(58, 42, 33, 0.05) 60%,
      transparent 100%);
    pointer-events: none;
  }
}

.running-head {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--encre-douce);
}
.running-head--right { text-align: right; font-style: italic; }
.folio {
  margin: 0;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--encre-pale);
}
.folio--right { text-align: right; }

.page__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.5vw, 48px) 0;
  max-width: 34rem;
}
.hero__title {
  font-weight: 500;
  font-size: clamp(2.375rem, 3.5vw, 3.375rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--noyer);
}
.hero__lead {
  font-size: 1.25rem;
  color: var(--encre-douce);
  max-width: 36ch;
  margin: 0 0 2rem;
  text-wrap: pretty;
}

.plate { margin: 16px 0 14px; flex: 1; }
.plate img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}
/* Sur desktop, la double page tient dans l'écran : le titre reste visible */
@media (min-width: 900px) {
  .plate img {
    aspect-ratio: auto;
    height: clamp(360px, calc(100svh - 300px), 660px);
  }
}
.plate figcaption {
  margin-top: 12px;
  font-size: 1.0625rem;
  color: var(--encre);
  text-align: center;
}

/* Un seul moment animé : la photo de la double page se « révèle » comme un tirage */
@media (prefers-reduced-motion: no-preference) {
  .plate img { animation: develop 1.6s cubic-bezier(.22, 1, .36, 1) both; }
  .page--left .page__body { animation: settle .9s ease-out .15s both; }
}
@keyframes develop {
  from { opacity: 0; filter: saturate(0.15) brightness(1.12); }
  to   { opacity: 1; filter: none; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Le numéro du mois ---------- */
.issue__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 900px) {
  .issue__grid { grid-template-columns: 1.1fr 1fr; }
}
.issue__prints {
  position: relative;
  padding: 0 16% 22% 0;
}
.print img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: var(--print-shadow);
}
.print--back {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
}
.print--back img {
  border: 8px solid var(--papier);
  transform: rotate(2deg);
}

.facts { margin: 2.25rem 0 0; }
.facts > div {
  padding: 1rem 0;
  border-top: 1px solid var(--filet);
}
.facts dt { font-weight: 600; }
.facts dd { margin: 0.25rem 0 0; color: var(--encre-douce); }

/* ---------- Comment ça marche ---------- */
.how { background: var(--papier); }
.how__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 900px) {
  .how__grid { grid-template-columns: 0.8fr 1.2fr; }
}
.how__phone { display: flex; justify-content: center; }
.phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1206 / 2622;
  background: var(--encre);
  border-radius: 42px;
  padding: 10px;
  filter:
    drop-shadow(0 24px 32px rgba(26, 22, 18, 0.20))
    drop-shadow(0 6px 10px rgba(26, 22, 18, 0.14));
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--papier);
}
.phone__screen picture { height: 100%; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .how__phone { order: 2; }
  .phone { max-width: 220px; border-radius: 34px; padding: 8px; }
  .phone__screen { border-radius: 26px; }
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.25rem 0 2.5rem;
  padding: 0;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--filet);
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-size: 2.5rem;
  line-height: 1;
  font-style: italic;
  color: var(--noyer);
}
.steps h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; margin: 0 0 0.25rem; }
.steps p { margin: 0; color: var(--encre-douce); }

/* ---------- Bandeau photo ---------- */
.band-photo { padding-top: var(--section); }
.band-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 2px;
}
@media (min-width: 760px) {
  .band-photo img { aspect-ratio: 16 / 9; }
}
.band-photo figcaption {
  margin-top: 12px;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--encre-pale);
}

/* ---------- Pourquoi les parents adorent ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  margin: 0 0 clamp(48px, 6vw, 88px);
}
.story:last-child { margin-bottom: 0; }
.story__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.story__text h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.story__text p { margin: 0; color: var(--encre-douce); max-width: 60ch; }

.story--plain .story__text {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  border-left: 2px solid var(--chene);
}

@media (min-width: 900px) {
  .story { grid-template-columns: 5fr 6fr; }
  .story--flip { grid-template-columns: 6fr 5fr; }
  .story--flip .story__photo { order: 2; }
  .story--plain { grid-template-columns: 1fr; }
  .story--wide { grid-template-columns: 7fr 5fr; }
}

/* ---------- Offres ---------- */
.offers { background: var(--papier); }
.price-sheet {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--encre);
  border-bottom: 1px solid var(--filet);
  margin-bottom: 2.5rem;
}
.price {
  position: relative;
  padding: 2rem clamp(16px, 3vw, 40px);
}
.price + .price { border-top: 1px solid var(--filet); }
@media (min-width: 760px) {
  .price-sheet { grid-template-columns: repeat(3, 1fr); }
  .price + .price { border-top: 0; border-left: 1px solid var(--filet); }
}
.price--best { background: var(--papier-chaud); }
.price__tag {
  position: absolute;
  top: 2rem;
  right: clamp(16px, 3vw, 40px);
  margin: 0;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--noyer);
}
.price h3 { font-size: 1.375rem; font-weight: 500; margin: 0 0 1.25rem; }
.price__amount { margin: 0; color: var(--encre-douce); }
.price__amount strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  color: var(--encre);
  font-feature-settings: "lnum";
}
.price__terms { margin: 0.5rem 0 0; font-style: italic; color: var(--encre-pale); }

/* ---------- Offrir ---------- */
.gift__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.gift__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 2px;
}
.gift__card {
  position: relative;
  margin: -64px 12px 0;
  padding: clamp(28px, 4vw, 56px);
  background: var(--papier);
  box-shadow: var(--print-shadow);
  border-radius: 3px;
}
.gift__card p { color: var(--encre-douce); margin: 0 0 1rem; max-width: 52ch; }
.gift__card .gift__note { font-size: 1rem; font-style: italic; color: var(--encre-pale); margin-bottom: 1.75rem; }
@media (min-width: 900px) {
  .gift__grid { grid-template-columns: repeat(12, 1fr); }
  .gift__photo { grid-column: 1 / span 7; grid-row: 1; }
  /* Calée en bas : la carte laisse voir la malle et les peluches */
  .gift__card { grid-column: 7 / span 6; grid-row: 1; align-self: end; margin: 0 0 48px; }
}

/* ---------- Professionnels ---------- */
.pro { background: var(--papier); }
.pro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .pro__grid { grid-template-columns: 7fr 5fr; }
}
.pro__copy p { color: var(--encre-douce); margin: 0 0 1rem; max-width: 60ch; }
.pro__copy .pro__note { font-style: italic; color: var(--encre-pale); margin-bottom: 1.75rem; }
.pro__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
}

/* ---------- Clôture ---------- */
.closing {
  background: var(--chocolat);
  color: var(--chene-clair);
  padding: clamp(64px, 8vw, 104px) 0;
  text-align: center;
}
.closing h2 {
  color: var(--papier);
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  max-width: 24ch;
  margin: 0 auto 1rem;
}
.closing .btn-soon { color: var(--chene); border-color: rgba(216, 191, 159, 0.35); }
.closing p {
  color: var(--chene);
  font-size: 1.25rem;
  max-width: 52ch;
  margin: 0 auto 2rem;
  text-wrap: balance;
}

/* ---------- Pied de page ---------- */
.footer {
  background: #2B1F19;
  padding: 28px 0;
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer a { color: var(--chene-clair); font-size: 0.9375rem; font-style: italic; }
.footer a:hover { color: var(--papier); text-decoration: underline; }
.footer__copy { color: var(--encre-pale); font-size: 0.875rem; font-style: italic; }
