/* =================================
   PRENDS SOIN DE MAMAN — PAGE SPECIFIC STYLES
================================= */

:root {
  --margin: 40px;
  --gap: 96px;
  --col-gap: 20px; /* espacement entre colonnes de la grille */
  --cols: 12;      /* grille 12 colonnes */

  /*
    Largeur d'une colonne =
    (100vw - marges gauche/droite - (11 gaps entre 12 colonnes)) / 12
  */
  --col: calc((100vw - (var(--margin) * 2) - (var(--col-gap) * 11)) / 12);

  /*
    Largeur de 6 colonnes + 5 gaps internes =
    utilisée pour la couverture et la vidéo
  */
  --six-cols: calc((var(--col) * 6) + (var(--col-gap) * 5));
}

/* ── INTRO : titre gauche / texte droite ── */
.maman-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  padding: 120px var(--margin) 80px var(--margin);
  align-items: start;
}

.maman-title {
  margin: 0;
  padding-right: 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 96px;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.maman-body {
  margin: 0;
  padding-top: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 100%;
}

/* ── GRILLE DE 4 ILLUSTRATIONS ── */
/* Chaque illustration = 3 colonnes sur 12. Gap = 20px entre elles. */
/* Pas de marge gauche/droite : les images touchent les bords */
.maman-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--col-gap); /* 20px entre chaque illustration */
  padding: 0 var(--margin);
  margin-bottom: var(--gap);
}

.maman-grid img {
  display: block;
  width: 100%;
  height: auto; /* hauteur naturelle de l'image, pas de crop */
}

/* ── IMAGE CENTRALE : couverture du livre ── */
/* 6 colonnes centrées sur 12 */
.maman-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--margin);
  margin-bottom: var(--gap);
}

.maman-cover-img {
  display: block;
  width: var(--six-cols); /* exactement 6 colonnes */
  max-width: 100%;
}

/* ── LÉGENDE (sous la couverture et sous la vidéo) ── */
.maman-caption {
  margin: 24px 0 0; /* un peu plus d'espace au dessus */
  font-family: 'Krub', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #888;
  text-align: center;
}

/* ── BLOC VIDÉO ── */
/* 6 colonnes centrées sur 12, même alignement que la couverture */
.maman-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--margin);
  margin-bottom: var(--gap);
}

/* Placeholder beige visible tant que la vidéo n'est pas ajoutée */
.maman-video-placeholder {
  width: var(--six-cols); /* exactement 6 colonnes */
  max-width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f0ebe3;
}

/* Style pour quand tu branches ta vraie vidéo */
.maman-video-player {
  display: block;
  width: var(--six-cols);
  max-width: 100%;
  height: calc(var(--six-cols) * (1350 / 1080)); /* ratio exact 1080×1350 */
  object-fit: fill; /* remplit exactement le cadre, zéro bande */
  background: transparent;
}

/* ── MÉTADONNÉES : Client / Outils ── */
.maman-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 88px var(--margin) 100px var(--margin);
}

.maman-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.maman-meta-label {
  font-family: 'Krub', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.maman-meta-value {
  font-family: 'Krub', sans-serif;
  font-weight: 400;
  font-size: 14px;
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 768px) {
  :root {
    --margin: 20px;
    --gap: 56px;
    --col-gap: 12px;
    --col: calc((100vw - 40px - (var(--col-gap) * 11)) / 12);
    --six-cols: calc((var(--col) * 6) + (var(--col-gap) * 5));
  }

  /* Intro : empile titre puis texte */
  .maman-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 96px var(--margin) 48px var(--margin);
  }

  .maman-title {
    padding-right: 0;
    font-size: clamp(42px, 11vw, 72px);
    line-height: 0.96;
  }

  .maman-body {
    padding-top: 0;
    font-size: clamp(18px, 5vw, 24px);
  }

  /* Grille : 2 colonnes au lieu de 4 */
  .maman-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .maman-grid img {
    height: auto;
  }

  /* Couverture et vidéo : pleine largeur sur mobile */
  .maman-cover-img,
  .maman-video-placeholder,
  .maman-video-player {
    width: 100%;
  }

  /* Meta : empile verticalement */
  .maman-meta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px var(--margin) 120px var(--margin);
  }

  .maman-meta-label,
  .maman-meta-value {
    font-size: 11px;
  }
}