/* Pinoo, site public, v2 « le site est le jardin ».
   Une seule feuille, aucune ressource tierce. Couleurs reprises du thème de l'app (contenu/decors.json).
   Espacements en multiples de 4, une seule courbe de mouvement, comme l'app. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../polices/CormorantGaramond_600SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../polices/NunitoSans_400Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../polices/NunitoSans_600SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ===== Neutres : tout est ici, pour changer le fond ou l'encre en un seul endroit. =====
     Fond retenu : blanc lilas. Autres fonds essayés : crème #F7F0E5, blanc chaud #FBF8F5. */
  --fond: #F8F5FA;          /* fond des sections et de la page */
  --papier: #FDFBFE;        /* texte sur la prune (bouton) */
  --encre: #2F2536;         /* aubergine profond, texte principal (13,5:1 sur le fond) */
  --encre-douce: #6B5F73;   /* gris prune, texte secondaire (5,5:1 sur le fond) */
  --filet: #E6DFEB;         /* filet lilas gris très clair */
  --filet-fort: #CEC3D6;    /* filet de sol, séparateurs marqués */
  --cadre-telephone: #2F2536;
  --ombre: rgba(47, 37, 54, 0.4);
  --surligne: #F5DCE6;      /* champs « À CONFIRMER » et bandeau brouillon */

  /* Couleurs de marque */
  --prune: #5C3B6E;         /* LA seule action de chaque écran */
  --prune-fonce: #4A2E59;
  --lavande: #8F7FBF;       /* touches : goutte de rosée, progression */

  /* Décor « Nuit douce » de l'app : seulement pour le moment du soir. */
  --nuit: #1C2142;
  --nuit-surface: #272E55;
  --nuit-encre: #F4F0F8;
  --nuit-encre-douce: #C5C0D6;
  --nuit-accent: #C7B3E6;
  --nuit-filet: #3B4373;

  --titres: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --texte: "Nunito Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 20px; --e6: 24px;
  --e8: 32px; --e10: 40px; --e12: 48px; --e16: 64px; --e20: 80px; --e24: 96px; --e32: 128px;

  --courbe: cubic-bezier(0.22, 1, 0.36, 1);
  --court: 160ms;
  --long: 420ms;

  --largeur: 1200px;
  --marge: 20px;
  --entete: 64px;
}
@media (min-width: 900px) {
  :root { --marge: 48px; --entete: 80px; --gauche-scene: min(max(var(--marge), (100vw - var(--largeur)) / 2), 7vw); }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--titres);
  font-weight: 600;
  color: inherit;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(42px, 9vw, 72px); line-height: 1; }
h2 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; }
h3 { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.12; letter-spacing: 0; }

p { margin: 0; }
p + p { margin-top: var(--e4); }

a { color: var(--prune); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--prune-fonce); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--prune);
  outline-offset: 3px;
  border-radius: 4px;
}

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.aller-au-contenu {
  position: absolute;
  left: var(--marge);
  top: -80px;
  z-index: 20;
  background: var(--prune);
  color: var(--papier);
  padding: var(--e3) var(--e4);
  border-radius: 8px;
}
.aller-au-contenu:focus { top: var(--e2); color: var(--papier); }

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--marge));
  margin: 0 auto;
  padding: 0 var(--marge);
}
.conteneur-texte > * { max-width: 760px; }

/* Bandeau « brouillon juridique » : pages légales seulement. */
.bandeau-brouillon {
  background: var(--surligne);
  color: var(--encre);
  padding: var(--e3) var(--marge);
  font-size: 17px;
}
.bandeau-brouillon strong { font-weight: 600; }

/* ---------- En-tête : le nom et trois liens, groupés à gauche ---------- */
.entete { position: relative; z-index: 5; }
.entete-ligne {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: var(--e8);
  min-height: var(--entete);
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: var(--e2);
  min-height: 48px;
  color: var(--prune);
  text-decoration: none;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
}
.marque:hover { color: var(--prune-fonce); }
.marque img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: var(--e5); }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--encre);
  text-decoration: none;
  font-size: 18px;
  text-underline-offset: 6px;
}
.nav a:hover { color: var(--prune); text-decoration: underline; text-decoration-thickness: 1px; }
.nav a[aria-current="page"] { color: var(--prune); text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 400px) {
  .entete-ligne { column-gap: var(--e5); }
  .nav { gap: var(--e4); }
  .marque { font-size: 27px; }
  .nav a { font-size: 17px; }
}

/* ---------- Boutons : une seule pilule, l'action de l'écran ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e2);
  min-height: 56px;
  padding: 0 var(--e8);
  border-radius: 999px;
  border: 0;
  background: var(--prune);
  color: var(--papier);
  font-family: var(--texte);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--court) var(--courbe), transform var(--court) var(--courbe);
}
.bouton:hover { background: var(--prune-fonce); color: var(--papier); }
.bouton:active { transform: scale(0.98); }
.bouton[disabled] { opacity: 0.6; cursor: default; }
/* Action secondaire (stores, essai à l'année) : un lien souligné, pas une seconde pilule. */
.bouton-second {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--prune);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.bouton-second:hover { background: none; color: var(--prune-fonce); text-decoration-thickness: 2px; }
.lien-bouton {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--prune);
  font: inherit;
  font-size: 18px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
}
.lien-bouton:hover { color: var(--prune-fonce); text-decoration-thickness: 2px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e3) var(--e6); }
.disponibilite { font-size: 18px; color: var(--encre-douce); }
.stores { display: flex; flex-wrap: wrap; gap: var(--e2) var(--e6); }
.stores[hidden], .essai-web[hidden], [data-bientot][hidden] { display: none; }

/* ---------- La goutte de rosée, détail propre à Pinoo ---------- */
.goutte {
  display: inline-block;
  width: 0.62em;
  height: 0.8em;
  background: var(--lavande);
  clip-path: path("M5 0 C5 0 10 6.4 10 8.6 A5 4.8 0 0 1 0 8.6 C0 6.4 5 0 5 0 Z");
  vertical-align: -0.05em;
}
.insecable { white-space: nowrap; }
.gouttes { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e3); }
.gouttes li { position: relative; padding-left: var(--e8); }
.gouttes li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 10px;
  height: 13px;
  background: var(--lavande);
  clip-path: path("M5 0 C5 0 10 6.4 10 8.6 A5 4.8 0 0 1 0 8.6 C0 6.4 5 0 5 0 Z");
}

/* ---------- Boucles animées (chargées à la demande par commun.js) ---------- */
.boucle {
  position: absolute;
  max-width: none;
  opacity: 0;
  transition: opacity var(--long) var(--courbe);
  pointer-events: none;
}
.boucle.prete { opacity: 1; }
.avec-boucle > img:not(.boucle) { transition: opacity var(--long) var(--courbe); }
.avec-boucle.anime > img:not(.boucle) { opacity: 0; }

/* =====================================================================
   ACCUEIL
   ===================================================================== */

/* En-tête de l'accueil : posé sur la scène en grand écran, sur le crème en téléphone. */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .page-accueil .entete { position: absolute; top: 0; left: 0; right: 0; }
}

/* ---------- 1. La scène ---------- */
.ouverture { container-type: inline-size; overflow: clip; position: relative; }
.ouverture-int {
  /* Téléphone et tablette en hauteur : décor portrait de l'app (1024 x 1536).
     --B : hauteur de la peinture. Elle couvre l'écran, ou toute la largeur si l'écran est trapu. */
  --B: max(calc(100svh - var(--entete)), 150cqw);
  position: relative;
  min-height: var(--B);
  padding-top: calc(var(--B) * 0.6);
}
.scene-peinture {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--B) / 1.5);
  height: var(--B);
  max-width: none;
  transform: translateX(-50%);
  background: #EADCD8;
}
/* Fondu du bas de la peinture vers le fond de la page. */
.ouverture-int::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--B) * 0.66);
  height: calc(var(--B) * 0.34 + 1px);
  background: linear-gradient(transparent, var(--fond) 78%);
  pointer-events: none;
}
.scene-animal {
  z-index: 2;
  position: absolute;
  left: 50%;
  width: calc(var(--B) * 0.235);
  /* pieds sur le chemin de pierre clair, à 57 % de la hauteur de la peinture */
  top: calc(var(--B) * 0.57 - var(--B) * 0.235);
  transform: translateX(-50%);
}
.scene-animal img { width: 100%; height: auto; }
.ouverture-texte {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--e5);
  padding: 0 var(--marge) var(--e10);
}
.ouverture h1 {
  font-size: clamp(44px, 12.4cqw, 64px);
  line-height: 0.96;
  max-width: 11em;
}
.ouverture .chapeau { font-size: 19px; max-width: 33em; }
.ouverture .ia { font-size: 17px; color: var(--encre); max-width: 34em; }
.ouverture .disponibilite { color: var(--encre); }
.ouverture .actions { row-gap: var(--e2); }

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .ouverture-int {
    /* Grand écran : scène paysage générée (1536 x 1024), zone calme à gauche. */
    --H: max(100svh, 640px);
    --IW: max(100cqw, calc(var(--H) * 1.5));
    min-height: var(--H);
    padding-top: 0;
    display: flex;
    align-items: center;
  }
  .scene-peinture {
    left: 0;
    transform: none;
    width: var(--IW);
    height: calc(var(--IW) / 1.5);
    background: #F6DDD0;
  }
  .ouverture-int::after { top: auto; bottom: 0; height: 18%; }
  .scene-animal {
    left: calc(var(--IW) * 0.6);
    width: calc(var(--IW) * 0.2);
    top: calc(var(--IW) / 1.5 * 0.78 - var(--IW) * 0.2);
    transform: none;
  }
  /* Le texte reste dans la zone calme de la peinture (les 44 % de gauche), quelle que soit la largeur. */
  .ouverture-texte {
    width: 100%;
    margin: 0;
    padding: calc(var(--entete) + var(--e4)) var(--marge) var(--e12) var(--gauche-scene);
    gap: var(--e5);
  }
  .ouverture-texte > * { max-width: calc(var(--IW) * 0.36 - var(--gauche-scene)); }
  .ouverture h1 {
    font-size: clamp(56px, min(5.6cqw, 9svh), 96px);
    line-height: 0.95;
    max-width: calc(var(--IW) * 0.45 - var(--gauche-scene));
  }
  .ouverture .chapeau { order: 2; font-size: 20px; max-width: min(30em, calc(var(--IW) * 0.36 - var(--gauche-scene))); }
  .ouverture .actions { order: 3; margin-top: var(--e2); }
  .ouverture .ia { order: 4; max-width: min(30em, calc(var(--IW) * 0.34 - var(--gauche-scene))); }
  .page-accueil .entete .conteneur { max-width: none; padding-left: var(--gauche-scene); }
}

/* ---------- Titres de section ---------- */
.section-tete { display: grid; gap: var(--e4); max-width: 42em; }
.section-tete p { font-size: 19px; color: var(--encre-douce); max-width: 36em; }

/* ---------- 2. Une journée avec ton Pinoo ---------- */
.journee { padding-top: var(--e16); }
@media (min-width: 900px) { .journee { padding-top: var(--e32); } }

.moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--e10);
  padding-top: var(--e16);
}
.moment-texte { display: grid; gap: var(--e4); align-content: start; max-width: 32em; }
.moment-heure {
  font-family: var(--titres);
  font-weight: 600;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--prune);
  margin-bottom: var(--e2);
}
.moment-texte h3 { margin-bottom: var(--e1); }
.moment-texte .note { color: var(--encre-douce); font-size: 17px; }

/* Les téléphones : une vraie capture dans un contour simple. */
.telephones { position: relative; display: flex; align-items: flex-start; gap: var(--e4); }
.telephone {
  margin: 0;
  width: min(60vw, 300px);
  flex: none;
  border-radius: 36px;
  padding: 8px;
  background: var(--cadre-telephone);
  box-shadow: 0 30px 60px -30px var(--ombre);
}
.telephone img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 674 / 1150;
  object-fit: cover;
  background: var(--papier);
}
.telephone-second { width: min(38vw, 220px); margin-top: var(--e24); margin-left: -8vw; }
.moment.inverse .telephones { justify-content: flex-end; }
.telephones figcaption { font-size: 16px; color: var(--encre-douce); margin-top: var(--e3); padding: 0 var(--e3); }

@media (min-width: 900px) {
  .moment {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--e6);
    align-items: start;
    padding-top: var(--e24);
  }
  .moment-texte { grid-column: 7 / span 5; padding-top: var(--e24); }
  .moment .telephones { grid-column: 1 / span 6; grid-row: 1; justify-content: flex-end; }
  .moment.inverse .moment-texte { grid-column: 2 / span 5; }
  .moment.inverse .telephones { grid-column: 7 / span 6; justify-content: flex-start; }
  .telephone { width: 320px; }
  .telephone-second { width: 240px; margin-left: calc(-1 * var(--e12)); }
}

/* Le soir : la page passe en « Nuit douce », comme le jardin de l'app à 20 h. */
.soir {
  margin-top: var(--e24);
  background: var(--nuit);
  color: var(--nuit-encre);
  padding: var(--e20) 0 var(--e24);
}
.soir .moment { padding-top: 0; }
.soir .moment-heure { color: var(--nuit-accent); }
.soir .moment-texte p { color: var(--nuit-encre); }
.soir .moment-texte .note { color: var(--nuit-encre-douce); }
.soir a { color: var(--nuit-accent); }
.soir :focus-visible { outline-color: var(--nuit-accent); }
.soir .telephone { background: #0E1126; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7); }
.soir .telephones figcaption { color: var(--nuit-encre-douce); }
@media (min-width: 900px) { .soir { padding: var(--e24) 0 var(--e32); } }

/* ---------- 3. La famille des douze ---------- */
.famille-section { padding-top: var(--e24); }
@media (min-width: 900px) { .famille-section { padding-top: var(--e32); } }
.famille-tete { display: grid; gap: var(--e5); }
@media (min-width: 900px) {
  .famille-tete { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--e12); align-items: end; }
}

/* Interrupteur petit / grand : deux mots, celui qui est choisi est souligné. */
.choix-age {
  display: inline-flex;
  align-items: center;
  gap: var(--e1) var(--e5);
  flex-wrap: wrap;
  justify-self: start;
}
.choix-age[hidden] { display: none; }
.choix-age-legende { font-size: 18px; color: var(--encre-douce); flex-basis: 100%; }
.choix-age button {
  min-height: 48px;
  padding: 0 var(--e1);
  border: 0;
  background: none;
  color: var(--encre-douce);
  font-family: var(--titres);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  transition: color var(--court) var(--courbe), text-decoration-color var(--court) var(--courbe);
}
.choix-age button:hover { color: var(--encre); text-decoration-color: var(--filet-fort); }
.choix-age button[aria-pressed="true"] { color: var(--prune); text-decoration-color: var(--prune); }

.famille {
  list-style: none;
  margin: var(--e10) 0 0;
  padding: 0 var(--marge) var(--e4);
  display: flex;
  align-items: flex-end;
  gap: var(--e6);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--marge);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* une seule ligne de sol sous toute la famille */
  background: linear-gradient(var(--filet-fort), var(--filet-fort)) left calc(100% - 88px) / 100% 1px no-repeat;
  background-attachment: local;
}
.famille::-webkit-scrollbar { display: none; }
.membre {
  flex: none;
  scroll-snap-align: start;
  display: grid;
  justify-items: center;
  text-align: center;
  width: max-content;
  min-width: 112px;
}
.membre img {
  --taille: 1;
  height: calc(150px * var(--taille));
  width: auto;
  max-width: none;
}
.famille[data-age="grand"] .membre img { height: calc(196px * var(--taille)); }
/* tailles un peu différentes, comme une vraie famille */
.membre:nth-child(1) img { --taille: 1; }
.membre:nth-child(2) img { --taille: 1.08; }
.membre:nth-child(3) img { --taille: 0.84; }
.membre:nth-child(4) img { --taille: 1.04; }
.membre:nth-child(5) img { --taille: 0.92; }
.membre:nth-child(6) img { --taille: 0.96; }
.membre:nth-child(7) img { --taille: 0.72; }
.membre:nth-child(8) img { --taille: 0.9; }
.membre:nth-child(9) img { --taille: 1.02; }
.membre:nth-child(10) img { --taille: 1.1; }
.membre:nth-child(11) img { --taille: 0.94; }
.membre:nth-child(12) img { --taille: 1; }
.membre-nom {
  font-family: var(--titres);
  font-weight: 600;
  font-size: 23px;
  line-height: 28px;
  margin-top: var(--e4);
  white-space: nowrap;
}
.membre-forme { font-size: 16px; line-height: 28px; color: var(--encre-douce); height: 28px; }
.famille-indice { font-size: 16px; color: var(--encre-douce); margin-top: var(--e3); }

@media (min-width: 900px) {
  .famille {
    overflow: visible;
    padding: 0;
    margin: var(--e16) auto 0;
    max-width: calc(var(--largeur) + 2 * var(--marge));
    padding: 0 var(--marge);
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    row-gap: var(--e10);
    column-gap: 0;
    background: none;
  }
  /* deux rangées de six, la seconde décalée d'un demi-pas, chacune sur sa ligne de sol */
  .membre {
    grid-column: span 2;
    width: auto;
    min-width: 0;
    background: linear-gradient(var(--filet-fort), var(--filet-fort)) left calc(100% - 72px) / 100% 1px no-repeat;
  }
  .membre:nth-child(7) { grid-column: 2 / span 2; }
  .membre img { height: calc(168px * var(--taille)); }
  .famille[data-age="grand"] .membre img { height: calc(224px * var(--taille)); }
  .famille-indice { display: none; }
}

/* ---------- 4. Le quiz, porte d'entrée ---------- */
.porte { padding-top: var(--e24); }
.porte-grille { display: grid; gap: var(--e10); }
.porte-texte { display: grid; gap: var(--e5); align-content: center; max-width: 34em; }
.porte-texte p { font-size: 19px; }
.porte-texte .note { font-size: 17px; color: var(--encre-douce); }
.porte .actions { margin-top: var(--e2); }
@media (min-width: 900px) {
  .porte { padding-top: var(--e32); }
  .porte-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--e16); align-items: center; }
  .porte .telephones { justify-content: center; }
}

/* ---------- 5. Le prix, en typographie ---------- */
.prix-bloc { padding-top: var(--e24); }
.prix-ligne {
  border-top: 1px solid var(--filet-fort);
  padding-top: var(--e8);
  display: grid;
  gap: var(--e6);
}
.prix-chiffres { font-family: var(--titres); font-weight: 600; line-height: 0.95; font-variant-numeric: lining-nums; }
.prix-chiffres .montant { display: block; font-size: clamp(64px, 14vw, 144px); letter-spacing: -0.02em; }
.prix-chiffres .periode { display: block; font-size: clamp(28px, 4vw, 40px); color: var(--encre-douce); margin-top: var(--e2); }
.prix-detail { display: grid; gap: var(--e3); align-content: end; max-width: 30em; }
.prix-detail p { font-size: 19px; }
@media (min-width: 900px) {
  .prix-bloc { padding-top: var(--e32); }
  .prix-ligne { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--e16); align-items: end; }
}

/* ---------- 6. À savoir ---------- */
.savoir { padding: var(--e24) 0; }
.savoir-grille {
  border-top: 1px solid var(--filet-fort);
  padding-top: var(--e8);
  display: grid;
  gap: var(--e8);
}
.savoir-texte { display: grid; gap: var(--e4); max-width: 34em; align-content: start; }
.savoir-texte h2 { font-size: clamp(34px, 5vw, 48px); margin-bottom: var(--e2); }
@media (min-width: 900px) {
  .savoir { padding: var(--e32) 0 var(--e24); }
  .savoir-grille { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--e16); }
}

/* Numéros d'urgence : le chiffre en grand, ce qu'il est à côté, un filet entre chaque. */
.numeros { list-style: none; padding: 0; margin: var(--e3) 0 0; display: grid; }
.numeros li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--e4);
  padding: var(--e2) 0;
  border-bottom: 1px solid var(--filet);
}
.numeros li:first-child { border-top: 1px solid var(--filet); }
.numeros a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  color: var(--prune);
  text-decoration: none;
  font-variant-numeric: lining-nums tabular-nums;
}
.numeros a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* =====================================================================
   PAGES SECONDAIRES
   ===================================================================== */
.page-tete { padding: var(--e12) 0 var(--e10); display: grid; gap: var(--e4); }
.page-tete h1 { font-size: clamp(44px, 8vw, 80px); line-height: 0.98; }
.page-tete p { color: var(--encre-douce); font-size: 20px; max-width: 32em; }
@media (min-width: 900px) { .page-tete { padding: var(--e20) 0 var(--e12); } }

.prose { padding-bottom: var(--e24); }
.prose > h2 {
  font-size: clamp(32px, 4.4vw, 42px);
  margin: var(--e16) 0 var(--e4);
  padding-top: var(--e6);
  border-top: 1px solid var(--filet);
}
.prose h3 { font-size: 26px; margin: var(--e8) 0 var(--e3); }
.prose ul, .prose ol { padding-left: var(--e6); margin: var(--e3) 0 0; }
.prose li + li { margin-top: var(--e2); }
.prose .gouttes, .prose .numeros { padding-left: 0; }
.prose .numeros li + li { margin-top: 0; }
.prose p + ul, .prose p + ol { margin-top: var(--e3); }
.prose ul + p, .prose ol + p { margin-top: var(--e4); }
.a-confirmer {
  background: var(--surligne);
  color: var(--encre);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9em;
  white-space: nowrap;
}
.sommaire { display: grid; gap: 0; padding: var(--e2) 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.sommaire a { display: inline-flex; min-height: 48px; align-items: center; }
.date-version { color: var(--encre-douce); font-size: 17px; margin-top: var(--e10); }

/* Prix (page) : deux montants côte à côte, séparés par un filet, sans encadré. */
.formules { display: grid; gap: var(--e6); border-top: 1px solid var(--filet-fort); padding-top: var(--e6); }
@media (min-width: 640px) {
  .formules { grid-template-columns: 1fr 1fr; gap: 0; }
  .formule + .formule { border-left: 1px solid var(--filet); padding-left: var(--e8); }
}
.formule-nom { font-size: 18px; color: var(--encre-douce); }
.formule-prix {
  font-family: var(--titres);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 80px);
  line-height: 1;
  margin-top: var(--e2);
  font-variant-numeric: lining-nums;
  letter-spacing: -0.02em;
}
.formule-detail { color: var(--encre-douce); margin-top: var(--e2); font-size: 18px; }
.prose .essai-web { margin-top: var(--e5); }
.prose .essai-web .actions, .suite .essai-web .actions { margin-top: var(--e5); }

/* Questions fréquentes */
.faq { display: grid; border-top: 1px solid var(--filet-fort); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 64px;
  padding: var(--e5) var(--e10) var(--e5) 0;
  position: relative;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: var(--e2);
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--prune);
  border-bottom: 2px solid var(--prune);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--court) var(--courbe);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .reponse { padding: 0 0 var(--e6); display: grid; gap: var(--e3); max-width: 36em; }
.faq .reponse p + p { margin-top: 0; }

/* Étapes numérotées (suppression du compte) : le chiffre en serif, sans pastille. */
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: var(--e4) 0 0; display: grid; gap: var(--e4); }
.etapes li { counter-increment: etape; position: relative; padding-left: var(--e10); }
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -0.2em;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  color: var(--prune);
  font-variant-numeric: lining-nums;
}
.prose .etapes { padding-left: 0; }
.prose .etapes li + li { margin-top: 0; }

/* Prestataires (politique de confidentialité) : une rubrique par prestataire, séparées par un filet. */
.prestataires { display: grid; gap: 0 var(--e8); margin-top: var(--e4); }
@media (min-width: 700px) { .prestataires { grid-template-columns: 1fr 1fr; } }
.prestataire { border-top: 1px solid var(--filet); padding: var(--e4) 0 var(--e5); }
.prose .prestataire h3 { margin: 0 0 var(--e2); font-size: 24px; }
.prose .prestataire ul { list-style: none; padding: 0; margin: 0; }
.prose .prestataire li + li { margin-top: var(--e1); }

/* 404 */
.page-404 { padding-top: var(--e16); padding-bottom: var(--e24); display: grid; gap: var(--e5); justify-items: start; }
.page-404 img { width: 220px; }
.page-404 h1 { font-size: clamp(44px, 8vw, 80px); line-height: 0.98; }

/* =====================================================================
   QUIZ
   ===================================================================== */
.quiz { padding-bottom: var(--e24); min-height: 70vh; }
.quiz-ecran[hidden] { display: none; }

/* Accueil du quiz : trois petits posés sur le chemin du jardin, le titre en dessous.
   La peinture n'a pas de cadre : elle sort du bord de l'écran et se fond dans le fond de la page. */
.quiz-seuil,
.resultat-visuel {
  container-type: inline-size;
  position: relative;
  margin: 0 calc(-1 * var(--marge));
  overflow: clip;
  aspect-ratio: 1 / 0.92;
  -webkit-mask-image: linear-gradient(#000 74%, transparent);
  mask-image: linear-gradient(#000 74%, transparent);
}
.quiz-seuil-peinture,
.resultat-peinture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 26%;
  background: #EADCD8;
}
.quiz-intro-animaux {
  position: absolute;
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 2cqw;
}
.quiz-intro-animaux img { height: 30cqw; width: auto; max-width: none; }
.quiz-intro-animaux img:nth-child(2) { height: 36cqw; }
.quiz-intro-animaux img:nth-child(3) { height: 27cqw; }
.quiz-intro { display: grid; gap: var(--e5); max-width: 36em; padding-top: var(--e2); }
.quiz-intro h1 { font-size: clamp(44px, 10vw, 88px); line-height: 0.96; }
.quiz-intro p { font-size: 19px; }
.quiz-intro .note { color: var(--encre-douce); font-size: 17px; }
.quiz-intro .actions { margin-top: var(--e2); }
@media (min-width: 900px) {
  .quiz-accueil { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--e12); align-items: center; }
  .quiz-seuil,
  .resultat-visuel {
    margin: 0 0 0 calc(-1 * max(var(--marge), (100vw - var(--largeur)) / 2));
    aspect-ratio: 1 / 0.8;
    -webkit-mask-image: linear-gradient(#000 70%, transparent), linear-gradient(to right, #000 72%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(#000 70%, transparent), linear-gradient(to right, #000 72%, transparent);
    mask-composite: intersect;
  }
  .quiz-seuil-peinture, .resultat-peinture { object-position: 50% 32%; }
  .quiz-intro-animaux { bottom: 16%; left: 54%; }
  .quiz-intro-animaux img { height: 22cqw; }
  .quiz-intro-animaux img:nth-child(2) { height: 26cqw; }
  .quiz-intro-animaux img:nth-child(3) { height: 20cqw; }
  .quiz-intro { padding-top: 0; }
}

/* Progression : neuf gouttes de rosée qui se remplissent. */
.progression { display: grid; gap: var(--e3); padding-top: var(--e8); margin-bottom: var(--e10); max-width: 680px; }
.progression-texte { font-size: 17px; color: var(--encre-douce); font-variant-numeric: tabular-nums; }
.progression-gouttes { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.progression-gouttes li {
  width: 14px;
  height: 18px;
  background: var(--filet-fort);
  clip-path: path("M7 0 C7 0 14 9 14 12 A7 6.6 0 0 1 0 12 C0 9 7 0 7 0 Z");
  transition: background-color var(--long) var(--courbe);
}
.progression-gouttes li.faite { background: var(--lavande); }
.progression-gouttes li.courante { background: var(--prune); }

.question { max-width: 680px; }
.question h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.02; margin-bottom: var(--e8); outline: none; }
.options { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--filet-fort); }
.options li { border-bottom: 1px solid var(--filet-fort); }
.option {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e4);
  text-align: left;
  padding: var(--e4) var(--e2) var(--e4) 0;
  border: 0;
  background: none;
  color: var(--encre);
  font: inherit;
  font-size: 20px;
  line-height: 1.35;
  cursor: pointer;
  transition: color var(--court) var(--courbe), background-color var(--court) var(--courbe);
}
.option::after {
  content: "";
  flex: none;
  width: 16px;
  height: 20px;
  background: var(--filet-fort);
  clip-path: path("M8 0 C8 0 16 10 16 13.4 A8 7.4 0 0 1 0 13.4 C0 10 8 0 8 0 Z");
  transition: background-color var(--court) var(--courbe), transform var(--long) var(--courbe);
}
.option:hover { color: var(--prune); }
.option:hover::after { background: var(--lavande); }
.option[aria-pressed="true"] { color: var(--prune); font-weight: 600; }
.option[aria-pressed="true"]::after { background: var(--prune); transform: scale(1.25); }
.question-bas { margin-top: var(--e6); }

/* Résultat : l'animal dans son jardin, le texte à côté. */
.resultat { display: grid; gap: var(--e8); padding-top: var(--e4); }
.resultat-visuel .animal-cadre { position: absolute; left: 50%; bottom: 12%; width: 52%; transform: translateX(-50%); }
.resultat-visuel .animal-cadre img { width: 100%; height: auto; }
.resultat-texte { display: grid; gap: var(--e4); }
.resultat-texte h1 { font-size: clamp(52px, 12vw, 96px); line-height: 0.95; }
.resultat-sur { color: var(--encre-douce); font-size: 19px; }
.resultat-traits { font-weight: 600; font-size: 19px; }
.resultat-pourquoi { color: var(--encre-douce); }
.resultat-texte .choix-age { margin-top: var(--e2); }
.resultat-voici { font-family: var(--titres); font-weight: 600; font-size: 30px; line-height: 1.15; margin-top: var(--e2); }
.resultat-phrase { font-size: 19px; }
.resultat-actions { display: grid; gap: var(--e1); justify-items: start; margin-top: var(--e4); }
.resultat-actions .bouton { margin-bottom: var(--e2); }
@media (min-width: 900px) {
  .resultat { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--e12); align-items: center; padding-top: var(--e4); }
  .resultat-visuel .animal-cadre { width: 40%; left: 54%; bottom: 14%; }
}

/* Galerie de choix : la famille, en boutons, posée sur des lignes de sol. */
.galerie-choix {
  list-style: none;
  margin: var(--e10) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--e8) var(--e2);
}
@media (min-width: 900px) { .galerie-choix { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--e10) var(--e4); } }
.galerie-choix li { border-bottom: 1px solid var(--filet-fort); }
.galerie-choix button {
  width: 100%;
  min-height: 48px;
  padding: var(--e2) 0 var(--e3);
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: start;
  height: 100%;
}
.galerie-choix img { height: 104px; width: auto; max-width: 100%; object-fit: contain; transition: transform var(--long) var(--courbe); }
@media (min-width: 900px) { .galerie-choix img { height: 132px; } }
.galerie-choix button:hover img { transform: translateY(-4px); }
.galerie-choix .fiche-nom { font-family: var(--titres); font-weight: 600; font-size: 21px; line-height: 1.1; margin-top: var(--e3); text-align: center; }
.galerie-choix .fiche-age { font-size: 16px; color: var(--encre-douce); }
.marque-suggere { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; line-height: 1.3; text-align: center; font-weight: 600; color: var(--prune); min-height: 22px; }
.galerie-choix .suggere .marque-suggere::before {
  content: "";
  width: 9px;
  height: 12px;
  background: var(--prune);
  clip-path: path("M4.5 0 C4.5 0 9 6 9 8 A4.5 4.3 0 0 1 0 8 C0 6 4.5 0 4.5 0 Z");
}
.galerie-choix .suggere { border-bottom-color: var(--prune); border-bottom-width: 2px; }

.suite { display: grid; gap: var(--e5); max-width: 40em; padding-top: var(--e8); }
.suite h1 { font-size: clamp(44px, 9vw, 80px); line-height: 0.98; }
.suite-animal { display: flex; align-items: flex-end; gap: var(--e4); border-bottom: 1px solid var(--filet-fort); padding-bottom: var(--e3); }
.suite-animal img { width: 120px; height: 120px; object-fit: contain; }
.suite .essai-web .bouton-second { margin-left: var(--e2); }

/* =====================================================================
   PIED DE PAGE
   ===================================================================== */
.pied { border-top: 1px solid var(--filet-fort); padding: var(--e12) 0 var(--e10); font-size: 17px; }
.pied-grille { display: grid; gap: var(--e8); }
@media (min-width: 900px) { .pied-grille { grid-template-columns: 2fr 1fr 1fr; } }
.pied h2 { font-family: var(--texte); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: var(--e2); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--encre); }
.pied li a:hover { color: var(--prune); }
.pied .petit { color: var(--encre-douce); margin-top: var(--e3); max-width: 28em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* Titres qui reçoivent le focus par script (changement d'écran du quiz) : pas d'anneau, ce ne sont pas des commandes. */
h1[tabindex="-1"]:focus { outline: none; }
