/* ==========================================================================
   Sections 6 à 9 : les prières, le Coran, le trésor, l'espace parent.
   D'après les planches Page-{1440,390}-2 (sections 6 à 8) et -3 (section 9) et B-Prieres-{1440,390}
   (docs/design/site-vitrine/), reprises avec les jetons du site (D5, D11).
   S'appuie sur sections-a.css (.section-a, .entete-section, .pastille-titre, pictos, .pl-etoiles, .ecran--clair, .ecran--nuit)
   et sur telephone.css (téléphone, briques app-*).
   Mobile d'abord ; ordinateur dès 900 px ; le sentier passe sur le côté dès 1300 px (bornes en bas du fichier).
   États animés : posés par js/sections-b.js. Sans JS, en pause ou en mouvement réduit : états finaux,
   rien ne bouge (aucun état « prête » : voir .est-prete).
   ========================================================================== */

/* Sur téléphone (et jusqu'à 1299 px), le sentier passe au centre, derrière les blocs de texte : ils ont le fond de la page */
@media (max-width: 1299px) {
  .prieres .entete-section, .idees, .parent__puces, .coran__tete, .coran__seance, .coran__objectif, .tresor .entete-section,
  .parent__tete, .tresor__tel figcaption, .priere__texte { background: var(--creme); }
}

.section-b .entete-section--centre { text-align: center; }
.section-b .idee__icone { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 26px; }
.section-b .idee__icone .ic { font-size: 26px; }

/* Petites listes « trois idées » (prières, trésor) et puces de l'espace parent */
.idees { list-style: none; margin: var(--e6) 0 0; padding: 0; display: grid; gap: var(--e4); }
.idee, .puce { display: flex; align-items: flex-start; gap: var(--e3); min-width: 0; }
.idee h3, .puce h3 { font: 600 1.0625rem/1.25 var(--police-titre); color: var(--encre); }
.idee p, .puce p { margin-top: 2px; font-size: 0.9375rem; line-height: 1.45; color: var(--encre-douce); }
@media (min-width: 900px) {
  .idees--tresor { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e5); }
}

/* Cartes sombres (Mes fleurs, Mon jardin) */
.carte-nuit { box-sizing: border-box; min-width: 0; padding: var(--e4); border-radius: var(--r-grand); background: var(--vert-profond); color: var(--creme); box-shadow: var(--ombre-carte); }
.carte-nuit__entete { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e2); }
.carte-nuit__entete h3 { font: 600 1.125rem/1.2 var(--police-titre); color: var(--creme); }
.carte-nuit__entete > span { font: 700 0.8125rem/1.2 var(--police-texte); color: var(--gris-clair); text-align: right; }
.carte-nuit__note { margin-top: 10px; font-size: 0.875rem; line-height: 1.4; color: var(--gris-clair); }

/* ==========================================================================
   6 · Les prières
   ========================================================================== */
.prieres { padding-top: var(--e7); }

/* Téléphone : sentier en lacets, une fleur à gauche puis à droite, son nom de l'autre côté */
.arc-prieres { list-style: none; margin: var(--e6) 0 0; padding: 0; display: flex; flex-direction: column; }
.priere { position: relative; display: flex; align-items: flex-start; gap: var(--e3); min-height: 128px; padding-left: calc(25% - 36px); }
.priere:nth-child(even) { flex-direction: row-reverse; padding-left: 0; padding-right: calc(25% - 36px); text-align: right; }
.priere:last-child { min-height: 108px; }
.priere__fleur {
  position: relative; width: 72px; height: 72px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--papier); box-shadow: var(--ombre-carte); font-size: 48px;
}
.priere__fleur .ic { transition: transform 450ms var(--courbe-ressort), opacity 200ms linear; }
.priere__texte { display: flex; flex-direction: column; justify-content: center; align-self: flex-start; min-height: 72px; padding: 0 var(--e1); border-radius: var(--r-petit); }
.priere__nom { font: 600 1.25rem/1.15 var(--police-titre); color: var(--encre); }
.priere__moment { font: 700 0.8125rem/1.3 var(--police-texte); color: var(--encre-douce); }
.borne--priere { left: 25%; top: 36px; }
.priere:nth-child(even) .borne--priere { left: 75%; }
.borne--pri-etoile-centre { left: 50%; top: calc(100% - 4px); }

/* Fleurs qui éclosent : échelle .2 → 1, rotation −40° → 0, 450 ms, ressort doux (JS actif seulement) */
.arc-prieres.est-prete .priere:not(.est-eclose) .priere__fleur .ic { transform: scale(.2) rotate(-40deg); opacity: 0; }

.prieres__bas { display: grid; gap: var(--e5); margin-top: var(--e6); }
.prieres__bas .idees { margin-top: 0; }

/* Mes fleurs : 15 derniers jours, 5 par ligne ; pétales pleins = prières faites, pointillés = pas encore */
.fleurs-jours { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 4px; text-align: center; }
.fleurs-jours li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fleurs-jours .ic { font-size: 44px; }
.fleurs-jours__jour { font: 700 0.75rem/1.2 var(--police-texte); color: var(--gris-clair); font-variant-numeric: tabular-nums; }
.fleurs-jours .est-aujourdhui .fleurs-jours__jour { color: var(--creme); }
.serie { display: flex; align-items: center; gap: var(--e2); margin-top: 14px; padding: 10px 12px; border-radius: 16px; background: var(--vert-foret); font: 700 0.9375rem/1.3 var(--police-texte); }
.serie .ic { font-size: 24px; color: var(--ambre); }

/* Mon jardin : 12 fleurs, la 13e pousse quand la journée est complète (480 ms, ressort doux) */
.jardin__compte { display: grid; justify-items: end; }
.jardin__compte > span { grid-area: 1 / 1; transition: opacity 200ms linear; }
.jc12 { opacity: 0; }
.jardin__scene { position: relative; height: 150px; margin-top: 12px; border-radius: 20px; background: var(--vert-nuit); overflow: hidden; }
.jardin__lune { position: absolute; right: 20px; top: 14px; width: 26px; height: 26px; color: var(--ambre); }
.jardin__sol { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: var(--vert-foret); border-radius: 50% 50% 0 0 / 18px 18px 0 0; }
.plante { position: absolute; bottom: 22px; left: var(--x); width: 3px; height: var(--h); border-radius: 2px; background: var(--vert-vif); transform-origin: 50% 100%; }
.plante__tete { position: absolute; left: -6px; top: -12px; width: 15px; height: 15px; border-radius: 50%; background: var(--c); }
.plante__feuille { position: absolute; left: 3px; top: 45%; width: 9px; height: 6px; border-radius: 0 8px 0 8px; background: var(--vert-vif); }
.plante--fantome { left: 94.8%; height: 28px; width: 0; border-left: 2px dashed var(--gris-vert); border-radius: 0; background: none; opacity: 0; }
.plante--nouvelle { transition: transform 480ms var(--courbe-ressort), opacity 200ms linear; }
.carte-jardin.est-prete:not(.est-pousse) .plante--nouvelle { transform: scaleY(0); opacity: 0; }
.carte-jardin.est-prete:not(.est-pousse) .plante--fantome { opacity: 1; }
.carte-jardin.est-prete:not(.est-pousse) .jc12 { opacity: 1; }
.carte-jardin.est-prete:not(.est-pousse) .jc13 { opacity: 0; }

@media (min-width: 900px) {
  .prieres { padding-top: var(--e7); }
  .arc-prieres { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: var(--e3); margin-top: var(--e7); }
  .priere, .priere:nth-child(even) {
    flex: 1; min-width: 0; min-height: 0; flex-direction: column; align-items: center; gap: var(--e3);
    padding: 0; text-align: center; margin-top: 84px;
  }
  .priere:nth-child(2), .priere:nth-child(4) { margin-top: 36px; }
  .priere:nth-child(3) { margin-top: 0; }
  .priere:last-child { min-height: 0; }
  .priere__fleur { width: 80px; height: 80px; font-size: 54px; }
  .priere__texte { align-self: center; align-items: center; min-height: 0; }
  .priere__nom { font-size: 1.375rem; }
  .priere__moment { font-size: 0.875rem; }
  .borne--priere, .priere:nth-child(even) .borne--priere { left: 50%; top: 40px; }
  .borne--pri-etoile-centre { left: 50%; top: calc(100% + 8px); }

  .prieres__bas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e5); margin-top: var(--e7); }
  .prieres__bas .idees { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e5); }
  .carte-nuit { padding: var(--e5); }
}
@media (min-width: 1100px) {
  .prieres__bas { grid-template-columns: minmax(0, 1fr) 340px 340px; align-items: start; }
  .prieres__bas .idees { grid-column: auto; grid-template-columns: none; gap: var(--e5); }
}

/* ==========================================================================
   7 · Le Coran
   ========================================================================== */
.coran__grille { display: grid; gap: var(--e5); grid-template-columns: minmax(0, 1fr); }
.coran__tete { max-width: none; }
.coran__etiquettes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pastille-premium {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px;
  border-radius: var(--r-pastille); background: var(--vert-nuit); color: var(--creme); font: 700 0.8125rem/1 var(--police-texte);
}
.pastille-premium .ic { font-size: 18px; color: var(--ambre); }
.etiquette-petite { font: 800 0.75rem/1.3 var(--police-texte); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); }

/* Séance en trois temps */
.seance { list-style: none; margin: var(--e2) 0 0; padding: 0; display: flex; gap: 20px; }
.seance li {
  position: relative; flex: 1; min-width: 0; min-height: 72px; padding: 8px 4px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 28px; background: var(--sable); font: 600 0.9375rem/1.1 var(--police-titre); color: var(--encre); text-align: center;
}
.seance .ic { font-size: 22px; color: var(--vert-action); }
.seance__fleche { position: absolute; right: -19px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--gris-vert); }
@media (min-width: 560px) {
  .seance li { flex-direction: row; min-height: 56px; gap: 8px; border-radius: var(--r-pastille); font-size: 1.0625rem; white-space: nowrap; }
}

/* Le parent écoute, puis valide */
.coran__parent { box-sizing: border-box; padding: 20px; border-radius: var(--r-grand); background: var(--papier); box-shadow: var(--ombre-carte); color: var(--encre); }
.coran__parent-titre { display: flex; align-items: center; gap: var(--e2); font: 600 1.25rem/1.2 var(--police-titre); }
.coran__parent-titre .ic { font-size: 24px; color: var(--vert-action); }
.coran__recite { display: flex; align-items: center; gap: var(--e3); margin-top: var(--e3); }
.coran__recite img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex: none; }
.coran__recite-qui { display: block; font-size: 0.875rem; color: var(--encre-douce); }
.coran__recite-sourate { display: block; font: 600 1.1875rem/1.2 var(--police-titre); }
.coran__choix { display: flex; gap: 10px; margin-top: 14px; }
.coran__choix-bouton {
  flex: 1; min-height: 48px; box-sizing: border-box; display: grid; place-items: center; padding: 0 var(--e2);
  border: 2px solid var(--vert-action); border-radius: var(--r-pastille); color: var(--vert-action);
  font: 600 1rem/1.1 var(--police-titre); text-align: center;
}
.coran__choix-bouton--plein { background: var(--vert-action); color: #fff; }
.coran__parent-note { display: flex; align-items: flex-start; gap: var(--e2); margin-top: var(--e3); font: 700 0.8125rem/1.4 var(--police-texte); color: var(--encre-douce); }
.coran__parent-note .ic { font-size: 18px; margin-top: 1px; color: var(--vert-action); }

/* Objectifs : trois choix, un seul coché */
.objectifs { list-style: none; margin: var(--e2) 0 0; padding: 0; display: flex; gap: var(--e2); }
.objectif {
  flex: 1; min-width: 0; min-height: 56px; box-sizing: border-box; display: flex; align-items: center; gap: var(--e2);
  padding: 8px 10px; border: 2px solid #D0C6B4; border-radius: 18px; background: var(--papier);
}
.objectif--choisi { border-color: var(--vert-action); background: var(--vert-pale-2); }
.objectif__rond { width: 12px; height: 12px; flex: none; box-sizing: border-box; border: 2px solid #91A69C; border-radius: 50%; }
.objectif--choisi .objectif__rond { border-color: var(--vert-action); background: var(--vert-action); }
.objectif__nom { display: block; font: 600 0.9375rem/1.15 var(--police-titre); color: var(--encre); }
.objectif__nb { display: block; font: 700 0.75rem/1.3 var(--police-texte); color: var(--encre-douce); }

/* Puzzle : un disque de neuf pièces, une par sourate du Hizb ’Amma ; trois sont gagnées */
.puzzle-panneau {
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: var(--e4);
  padding: 20px 24px 22px; border-radius: 32px; background: var(--vert-profond); color: var(--creme);
}
.puzzle-panneau__titre { align-self: flex-start; display: flex; align-items: center; gap: var(--e2); font: 700 0.875rem/1.3 var(--police-texte); color: var(--gris-clair); }
.puzzle-panneau__titre .ic { font-size: 20px; color: var(--ambre); }
.puzzle-panneau__bas { font: 600 1.0625rem/1.25 var(--police-titre); text-align: center; }
.puzzle { position: relative; width: min(100%, 440px); aspect-ratio: 1; }
.puzzle__grille {
  list-style: none; margin: 0; padding: 0; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px;
  background: var(--vert-profond);
}
.piece { position: relative; box-sizing: border-box; display: flex; padding: 8px; background: var(--vert-foret); }
/* Le texte de chaque pièce se range du côté du centre du disque, pour ne pas être rogné par les bords ronds */
.piece:nth-child(3n+1) { justify-content: flex-end; text-align: right; }
.piece:nth-child(3n+2) { justify-content: center; text-align: center; }
.piece:nth-child(3n) { justify-content: flex-start; text-align: left; }
.piece:nth-child(-n+3) { align-items: flex-end; }
.piece:nth-child(n+4):nth-child(-n+6) { align-items: center; }
.piece:nth-child(n+7) { align-items: flex-start; }
.piece__nom { font: 700 0.75rem/1.1 var(--police-texte); color: var(--gris-clair); }
.piece--gagnee { padding: 0; }
.piece__corps {
  position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--piece); color: var(--vert-nuit);
  transition: transform 500ms var(--courbe-ressort), opacity 200ms linear; transition-delay: calc(var(--k) * 150ms);
}
.piece:nth-child(3n+1) .piece__corps { align-items: flex-end; }
.piece:nth-child(3n+2) .piece__corps { align-items: center; }
.piece:nth-child(3n) .piece__corps { align-items: flex-start; }
.piece:nth-child(-n+3) .piece__corps { justify-content: flex-end; }
.piece__corps .ic { font-size: 16px; }
.piece--gagnee .piece__nom { font: 600 0.8125rem/1.1 var(--police-titre); color: var(--vert-nuit); transition: opacity 200ms linear; transition-delay: calc(var(--k) * 150ms + 500ms); }
.piece__fente { box-sizing: border-box; padding: 4px 6px; border: 2px dashed var(--corail); border-radius: 10px; font: 700 0.75rem/1.1 var(--police-texte); color: var(--peche); }
.piece-libre {
  position: absolute; left: -14px; top: 34%; z-index: 2; width: 84px; height: 84px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 14px; background: var(--corail); color: var(--vert-nuit); transform: rotate(-9deg); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.piece-libre .ic { font-size: 16px; }
.piece-libre__nom { font: 600 0.8125rem/1.1 var(--police-titre); }
.piece-libre__etat { font: 700 0.6875rem/1.1 var(--police-texte); }

/* Puzzle qui s'emboîte : glissement de 40 px et rotation 8° → 0, 500 ms, ressort doux, cascade de 150 ms ; le nom revient ensuite en fondu de 200 ms */
.puzzle.est-prete:not(.est-pose) .piece__corps { transform: translate(-40px, -16px) rotate(8deg); opacity: 0; }
.puzzle.est-prete:not(.est-pose) .piece--gagnee .piece__nom { opacity: 0; }

@media (min-width: 900px) {
  .coran__parent-titre { font-size: 1.25rem; }
  .coran__choix-bouton { font-size: 1rem; }
  .seance li { font-size: 1.0625rem; }
  .puzzle-panneau { padding: 24px 24px 26px; border-radius: 40px; gap: var(--e5); }
  .puzzle-panneau__titre { font-size: 0.875rem; }
  .puzzle-panneau__bas { font-size: 1.25rem; }
  .piece { padding: 15px; }
  .piece__corps { padding: 15px; gap: 2px; }
  .piece__corps .ic { font-size: 20px; }
  .piece--gagnee .piece__nom { font-size: 1.0625rem; }
  .piece__nom { font-size: 0.9375rem; }
  .piece__fente { font-size: 0.9375rem; }
  .piece-libre { left: -72px; top: 41%; width: 131px; height: 131px; border-radius: 18px; gap: 3px; }
  .piece-libre .ic { font-size: 20px; }
  .piece-libre__nom { font-size: 1.0625rem; }
  .piece-libre__etat { font-size: 0.75rem; }
  .objectif { padding: 8px 14px; }
  .objectif__nom { font-size: 1.0625rem; }
}
@media (min-width: 1000px) {
  .coran__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 580px); column-gap: var(--e7); row-gap: var(--e5); grid-template-areas: "tete puzzle" "seance puzzle" "parent puzzle" "objectif puzzle"; grid-template-rows: auto auto auto 1fr; }
  .coran__tete { grid-area: tete; }
  .puzzle-panneau { grid-area: puzzle; align-self: start; justify-content: flex-start; padding-bottom: 30px; }
  .coran__seance { grid-area: seance; }
  .coran__parent { grid-area: parent; }
  .coran__objectif { grid-area: objectif; }
  .puzzle { margin-top: var(--e3); }
}
@media (max-width: 999px) {
  .coran__grille { grid-template-areas: none; }
  .coran__tete { order: 1; } .puzzle-panneau { order: 2; } .coran__seance { order: 3; } .coran__parent { order: 4; } .coran__objectif { order: 5; }
}
@media (max-width: 379px) {
  .objectif { padding: 8px; gap: 6px; }
  .objectif__nom { font-size: 0.875rem; }
}

/* ==========================================================================
   8 · Le trésor : deux téléphones, une demande qui voyage
   ========================================================================== */
.tresor__scene { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--e6); margin-top: var(--e6); }
.tresor__tel { position: relative; z-index: 1; margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--e3); }
.tresor__tel .telephone { --tel-echelle: .72; }
.tresor__tel figcaption { padding: 2px 10px; border-radius: var(--r-petit); font: 700 0.9375rem/1.3 var(--police-texte); color: var(--encre); text-align: center; }
.tresor__tel .ecran--clair { background: var(--creme); }
@media (max-width: 379px) { .tresor__tel .telephone, .parent__tel .telephone { --tel-echelle: .68; } }
@media (min-width: 900px) {
  .tresor__scene { flex-direction: row; justify-content: center; align-items: flex-start; gap: clamp(96px, 14vw, 200px); margin-top: var(--e7); }
}
@media (min-width: 1000px) { .tresor__tel .telephone, .parent__tel .telephone { --tel-echelle: .8; } }

/* Trajet pointillé de la demande (tracé par js/sections-b.js, seulement avec JS) et bulle qui le suit */
.tresor__arc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; pointer-events: none; }
.tresor__arc-trait { fill: none; stroke: var(--gris-vert); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.tresor__bulle {
  position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px;
  border-radius: var(--r-pastille); background: var(--papier); box-shadow: var(--ombre-carte); color: var(--encre);
  font: 700 0.875rem/1 var(--police-texte); white-space: nowrap; opacity: 0; pointer-events: none;
}
.tresor__bulle .ic { font-size: 18px; color: var(--vert-action); }

/* Écran « Mon trésor » (enfant), pixels « téléphone » */
.tr-haut { padding: 56px 24px 0; font: 600 34px/1.1 var(--police-titre); }
.tr-solde { display: flex; align-items: center; gap: 14px; margin: 18px 16px 0; padding: 18px 20px; border-radius: 28px; background: var(--ambre); color: var(--vert-nuit); }
.tr-solde__etoile { font-size: 48px; }
.tr-solde__nombre { display: block; font: 600 56px/1 var(--police-titre); font-variant-numeric: tabular-nums; }
.tr-solde__texte { display: block; margin-top: 2px; font: 700 15px/1.2 var(--police-texte); }
.tr-niveau { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--vert-nuit); color: var(--ambre); font: 700 14px/1 var(--police-texte); }
.tr-liste-titre { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 24px 0; font: 600 22px/1.2 var(--police-titre); }
.tr-liste-titre span { font: 700 15px/1.2 var(--police-texte); color: var(--gris-clair); }
.tr-reco { display: flex; align-items: center; gap: 12px; margin: 10px 16px 0; padding: 12px; border-radius: 24px; background: var(--vert-profond); }
.tr-reco__texte { flex: 1; min-width: 0; }
.tr-reco__nom { display: block; font: 600 18px/1.2 var(--police-titre); }
.tr-reco__prix { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; color: var(--ambre); font: 600 17px/1 var(--police-titre); }
.tr-reco__prix .ic { font-size: 20px; }
.tr-bouton {
  display: grid; flex: none; min-width: 112px; height: 48px; box-sizing: border-box; padding: 0 16px; border-radius: 999px;
  background: var(--ambre); color: var(--vert-nuit); font: 600 17px/1 var(--police-titre); transition: transform 150ms var(--courbe-sortie), background 200ms linear;
}
.tr-bouton > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 4px; transition: opacity 200ms linear; }
.tr-bouton .ic { font-size: 20px; }
.tr-bouton__accordee { opacity: 0; }

/* Écran « Ma famille » (parent), pixels « téléphone » : espace parent clair */
.pa-haut { display: flex; align-items: center; gap: 8px; padding: 56px 20px 0 24px; }
.pa-titre { flex: 1; font: 600 34px/1.1 var(--police-titre); color: var(--vert-action); }
.pa-mode { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--vert-nuit); color: var(--creme); font: 700 14px/1 var(--police-texte); }
.pa-mode .ic { font-size: 22px; color: var(--ambre); }
.pa-reglage { width: 40px; height: 40px; display: grid; place-items: center; font-size: 26px; color: var(--encre-douce); }
.pa-resume { display: flex; align-items: center; gap: 14px; margin: 16px 16px 0; padding: 14px 16px; border-radius: 24px; background: var(--sable); }
.pa-anneau { position: relative; width: 64px; height: 64px; flex: none; }
.pa-anneau svg { display: block; width: 64px; height: 64px; }
.pa-anneau__piste { stroke: var(--filet); stroke-width: 7; }
.pa-anneau__plein { stroke: var(--vert-action); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 169.65 169.65; }
.pa-anneau > span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 17px/1 var(--police-titre); color: var(--encre); }
.pa-date { display: block; font: 600 14px/1.2 var(--police-texte); color: var(--encre-douce); }
.pa-fait { display: block; margin-top: 2px; font: 700 17px/1.25 var(--police-texte); color: var(--encre); }
.pa-jours { display: flex; gap: 4px; margin: 14px 16px 0; padding: 4px; border-radius: 999px; background: var(--sable); }
.pa-jours span { flex: 1; height: 40px; display: grid; place-items: center; border-radius: 999px; font: 600 15px/1 var(--police-titre); color: var(--encre-douce); }
.pa-jours .pa-jours__actif { background: var(--vert-nuit); color: var(--creme); }
.pa-h { display: flex; align-items: center; gap: 8px; margin: 20px 24px 0; font: 600 22px/1.2 var(--police-titre); color: var(--encre); }
.pa-compte { min-width: 24px; height: 24px; box-sizing: border-box; padding: 0 7px; border-radius: 12px; background: var(--ambre); color: var(--vert-nuit); font: 700 14px/24px var(--police-texte); text-align: center; }
.pa-carte { margin: 10px 16px 0; padding: 14px; border-radius: 24px; background: var(--papier); box-shadow: 0 1px 2px rgba(11, 43, 34, .06), 0 10px 24px -16px rgba(11, 43, 34, .25); }
.pa-demande__haut { display: flex; align-items: center; gap: 12px; }
.pa-demande__haut img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex: none; }
.pa-demande__texte { flex: 1; min-width: 0; display: block; font-size: 14px; line-height: 1.3; color: var(--encre-douce); }
.pa-demande__texte strong { display: block; font: 700 17px/1.25 var(--police-texte); color: var(--encre); }
.pa-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pa-refuser, .pa-accorder { height: 48px; box-sizing: border-box; display: grid; place-items: center; border-radius: 999px; font: 600 17px/1 var(--police-titre); }
.pa-refuser { border: 2px solid var(--vert-action); color: var(--vert-action); transition: opacity 200ms linear; }
.pa-accorder { background: var(--vert-action); color: #fff; transition: transform 150ms var(--courbe-sortie); }
.pa-accorder > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 4px; transition: opacity 200ms linear; }
.pa-accorder .ic { font-size: 20px; }
.pa-accorder__ok { opacity: 0; }
.pa-enfant { display: flex; align-items: center; gap: 10px; padding: 20px 14px; }
.pa-enfant__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pa-enfant__texte strong { font: 700 18px/1.2 var(--police-texte); color: var(--encre); }
.pa-enfant__progres { display: flex; align-items: center; gap: 10px; font: 700 14px/1 var(--police-texte); color: var(--encre-douce); font-variant-numeric: tabular-nums; }
.pa-barre { position: relative; flex: 1; max-width: 110px; height: 8px; border-radius: 4px; background: var(--filet); overflow: hidden; }
.pa-barre span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--vert-action); }
.pa-enfant__acces { display: inline-flex; align-items: center; gap: 4px; font: 700 13px/1.2 var(--police-texte); color: var(--ambre-texte); }
.pa-enfant__acces .ic { font-size: 16px; }
.pa-enfant__chevron { font-size: 24px; color: var(--encre-douce); }
.pa-valider { display: flex; align-items: center; gap: 12px; }
.pa-valider__picto { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--ambre-pale); color: var(--ambre-texte); font-size: 24px; }
.pa-valider__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; color: var(--encre-douce); }
.pa-valider__texte strong { font: 700 16px/1.25 var(--police-texte); color: var(--encre); }
.pa-valider__bouton { flex: none; display: grid; place-items: center; height: 40px; padding: 0 14px; border: 2px solid var(--vert-action); border-radius: 999px; color: var(--vert-action); font: 600 15px/1 var(--police-titre); }

/* La demande du trésor : cachée tant qu'elle n'est pas « arrivée » (JS actif seulement) */
.tresor__scene .pa-demande { transition: opacity 300ms var(--courbe-sortie), transform 300ms var(--courbe-sortie); }
.tresor__scene.est-prete:not(.etat-recu) .pa-demande { opacity: 0; transform: translateY(12px); }
.tresor__scene.etat-appui-enfant .tr-bouton { transform: scale(.94); }
.tresor__scene.etat-appui-parent .pa-accorder { transform: scale(.94); }
.tresor__scene.etat-accorde .tr-bouton__demander { opacity: 0; }
.tresor__scene.etat-accorde .tr-bouton__accordee { opacity: 1; }
.tresor__scene.etat-accorde .tr-bouton { background: var(--vert-vif); }
.tresor__scene.etat-accorde .pa-accorder__texte { opacity: 0; }
.tresor__scene.etat-accorde .pa-accorder__ok { opacity: 1; }
.tresor__scene.etat-accorde .pa-refuser { opacity: .35; }

/* ==========================================================================
   9 · L'espace parent
   ========================================================================== */
.parent__grille { display: grid; gap: var(--e6); grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "tel" "puces" "bulles"; justify-items: stretch; }
.parent__tete { grid-area: tete; max-width: none; }
.parent__tel { grid-area: tel; display: flex; justify-content: center; }
.parent__tel .telephone { --tel-echelle: .72; }
.parent__tel .ecran--clair { background: var(--creme); }
.parent__puces { grid-area: puces; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e3); }
.puce { position: relative; padding: 14px 16px; border-radius: 20px; background: var(--papier); box-shadow: var(--ombre-carte); }
.parent__bulles { grid-area: bulles; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e3); }
.bulle { padding: 14px 16px; border-radius: 20px; background: var(--papier); box-shadow: var(--ombre-carte); color: var(--encre); transition: opacity 400ms var(--courbe-ressort), transform 400ms var(--courbe-ressort); }
.bulle__etiquette { display: flex; align-items: center; gap: 6px; font: 700 0.8125rem/1.3 var(--police-texte); color: var(--ambre-texte); }
.bulle__etiquette .ic { font-size: 18px; }
.bulle h3 { margin-top: 4px; font: 600 1.0625rem/1.25 var(--police-titre); }
.bulle p:last-child { margin-top: 4px; font-size: 0.875rem; line-height: 1.45; color: var(--encre-douce); }
/* Bulles : une à une, fondu et montée de 12 px (JS actif seulement) */
.parent__bulles.est-prete .bulle:not(.est-vue) { opacity: 0; transform: translateY(12px); }

.pa-defil { position: absolute; left: 0; top: 0; width: 100%; padding-bottom: 28px; will-change: transform; }

@media (min-width: 1000px) {
  .parent__grille {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: var(--e7); row-gap: var(--e5);
    grid-template-areas: "tete tel bulles" "puces tel bulles"; grid-template-rows: auto 1fr; align-items: start;
  }
  .parent__tel { grid-row: 1 / span 2; }
  .parent__puces { align-self: start; }
  .puce::after { content: ""; position: absolute; left: 100%; top: 50%; width: var(--e7); border-top: 3px dotted var(--gris-clair); }
  .parent__bulles { align-self: center; gap: var(--e5); }
  .bulle { padding: 18px 20px; }
}

/* ==========================================================================
   Mouvement réduit ou pause des animations : états finaux, en fondu (la section entre avec .entree), rien ne se déplace
   ========================================================================== */
html:is(.mouvement-reduit, .anim-pause) .arc-prieres .priere__fleur .ic { transform: none !important; opacity: 1 !important; transition: none; }
html:is(.mouvement-reduit, .anim-pause) .carte-jardin .plante--nouvelle { transform: none !important; opacity: 1 !important; transition: none; }
html:is(.mouvement-reduit, .anim-pause) .carte-jardin .plante--fantome, html:is(.mouvement-reduit, .anim-pause) .carte-jardin .jc12 { opacity: 0 !important; }
html:is(.mouvement-reduit, .anim-pause) .carte-jardin .jc13 { opacity: 1 !important; }
html:is(.mouvement-reduit, .anim-pause) .puzzle .piece__corps { transform: none !important; opacity: 1 !important; transition: none; }
html:is(.mouvement-reduit, .anim-pause) .puzzle .piece--gagnee .piece__nom { opacity: 1 !important; transition: none; }
html:is(.mouvement-reduit, .anim-pause) .tresor__scene .pa-demande { opacity: 1 !important; transform: none !important; transition: none; }
html:is(.mouvement-reduit, .anim-pause) .tresor__bulle { display: none; }
html:is(.mouvement-reduit, .anim-pause) .bulle { opacity: 1 !important; transform: none !important; transition: opacity 300ms linear; }
html:is(.mouvement-reduit, .anim-pause) .pa-defil { transform: none !important; }

/* ==========================================================================
   Bornes du chemin (voir css/chemin.css et sections-a.css).
   Jusqu'à 1299 px : le sentier passe au centre, derrière les blocs (fond de page) ; il traverse les fleurs des prières.
   Dès 1300 px : il passe dans la marge, comme dans les planches (x = 50 et x = 1392 sur 1440), sauf sur l'arc des prières.
   Les bornes sont dans des éléments qui ne bougent pas (jamais dans un bloc .entree ni dans une pièce animée).
   ========================================================================== */
.borne--pri-descente, .borne--pri-sortie, .borne--pri-etoile, .borne--coran-sortie, .borne--tresor-droite, .borne--tresor-centre, .borne--parent-gauche, .borne--parent-sortie { display: none; }
.borne--coran-etoile, .borne--tresor-etoile, .borne--parent-etoile { left: 50%; bottom: 32px; }

@media (min-width: 1300px) {
  .borne--pri-etoile-centre { display: none; }

  .borne--pri-descente { display: block; left: 48px; top: 450px; }
  .borne--pri-etoile { display: block; left: calc(100% - 48px); top: 540px; }
  .borne--pri-sortie { display: block; left: calc(100% - 48px); bottom: 0; }

  .borne--coran-etoile { left: calc(100% - 48px); bottom: auto; top: 24%; }
  .borne--coran-sortie { display: block; left: calc(100% - 48px); bottom: 0; }

  .borne--tresor-etoile { left: calc(100% - 48px); bottom: auto; top: 46%; }
  .borne--tresor-droite { display: block; left: calc(100% - 48px); bottom: 140px; }
  .borne--tresor-centre { display: block; left: 50%; bottom: 0; }

  .borne--parent-gauche { display: block; left: 48px; top: 150px; }
  .borne--parent-etoile { left: 48px; bottom: auto; top: 58%; }
  .borne--parent-sortie { display: block; left: 48px; bottom: 0; }
}
