/* Les Pandoulou — feuille de style unique. Aucune ressource externe. */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --creme: #fff8ec;
  --blanc: #ffffff;
  --texte: #3b3346;
  --texte-doux: #6b6177;
  --orange: #ff8a3d;   /* Nino */
  --rose: #ee4f97;     /* Lili */
  --ciel: #4fb3ea;     /* Pompon */
  --vert: #4fae5a;     /* Papa */
  --jaune: #ffc23d;    /* Maman */
  --bleu: #3a7fe0;     /* Pic */
  --rouge-yt: #e62117;
  --ombre: 0 6px 18px rgba(59, 51, 70, .12);
  --rayon: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
.conteneur { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete {
  background: linear-gradient(180deg, #dff2ff 0%, var(--creme) 100%);
  padding: 28px 0 8px;
  text-align: center;
}
.entete h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .5px;
}
.entete h1 span:nth-child(5n+1) { color: var(--orange); }
.entete h1 span:nth-child(5n+2) { color: var(--rose); }
.entete h1 span:nth-child(5n+3) { color: var(--ciel); }
.entete h1 span:nth-child(5n+4) { color: var(--vert); }
.entete h1 span:nth-child(5n+5) { color: var(--jaune); }
.accroche {
  margin: 10px auto 22px;
  max-width: 640px;
  font-size: clamp(1.1rem, 3.6vw, 1.35rem);
  color: var(--texte-doux);
}
.image-famille {
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  border: 6px solid var(--blanc);
  width: 100%;
  height: auto;
}

/* ---------- Boutons ---------- */
.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 26px 0 8px;
}
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--blanc);
  box-shadow: var(--ombre);
  transition: transform .15s ease;
  min-height: 56px;
}
.bouton:hover, .bouton:focus-visible { transform: translateY(-2px); }
.bouton:focus-visible { outline: 4px solid var(--jaune); outline-offset: 3px; }
.bouton svg { width: 28px; height: 28px; flex: none; }
.bouton-youtube { background: var(--rouge-yt); }
.bouton-instagram { background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #833ab4); }

/* ---------- Sections ---------- */
section { padding: 40px 0 10px; }
h2 {
  text-align: center;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin: 0 0 6px;
}
.sous-titre { text-align: center; color: var(--texte-doux); margin: 0 0 26px; }

/* ---------- La famille ---------- */
.famille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.perso {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  border-top: 8px solid var(--c);
  padding: 12px 14px 16px;
  text-align: center;
}
.perso img {
  height: 210px;
  width: auto;
  margin: 0 auto 6px;
  object-fit: contain;
}
.perso h3 { margin: 0; font-size: 1.45rem; color: var(--c); }
.perso .age {
  display: inline-block;
  background: var(--c);
  color: var(--blanc);
  border-radius: 999px;
  padding: 1px 12px;
  font-size: .9rem;
  font-weight: 600;
  margin: 4px 0 8px;
  white-space: nowrap;
}
.perso p { margin: 0; font-size: 1rem; color: var(--texte-doux); }
.nino   { --c: var(--orange); }
.lili   { --c: var(--rose); }
.pompon { --c: var(--ciel); }
.papa   { --c: var(--vert); }
.maman  { --c: #e0a400; }  /* jaune un peu plus foncé pour que le texte se lise */
.pic    { --c: var(--bleu); }

@media (min-width: 700px) {
  .famille { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .perso img { height: 260px; }
  .perso p { font-size: 1.05rem; max-width: 260px; margin-inline: auto; }
}
@media (max-width: 380px) {
  .perso .age { white-space: normal; }
}

/* ---------- Nos comptines ---------- */
.comptines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.carte {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease;
}
.carte:hover, .carte:focus-visible { transform: translateY(-3px); }
.carte:focus-visible { outline: 4px solid var(--jaune); outline-offset: 3px; }
.carte img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; }
.carte-texte { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.carte h3 { margin: 0 0 6px; font-size: 1.3rem; }
.carte p { margin: 0 0 12px; color: var(--texte-doux); font-size: 1rem; }
.carte .badge {
  margin-top: auto;
  align-self: flex-start;
  background: #fff1d6;
  color: #9a5b00;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: .9rem;
  font-weight: 600;
}

/* ---------- Pied de page ---------- */
.pied {
  margin-top: 46px;
  background: var(--blanc);
  padding: 26px 0 30px;
  text-align: center;
  font-size: .95rem;
  color: var(--texte-doux);
  border-top: 6px solid var(--jaune);
}
.pied p { margin: 6px 0; }

/* ---------- Page mentions légales ---------- */
.texte-legal {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 22px clamp(18px, 4vw, 40px) 30px;
  margin-top: 20px;
}
.texte-legal h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); margin: 0 0 10px; color: var(--bleu); }
.texte-legal h2 { text-align: left; font-size: 1.4rem; margin: 26px 0 6px; color: var(--texte); }
.texte-legal p, .texte-legal li { font-size: 1rem; }
.a-completer { background: #fff1a8; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.retour { display: inline-block; margin-top: 22px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton, .carte { transition: none; }
}
