/* ==========================================================================
   Sections 10 à 12 : toute la famille, pour chaque âge, confiance.
   D'après les planches Page-{1440,390}-3 et le prototype Proto-Age-{1440,390}
   (docs/design/site-vitrine/maquette/), reprises avec les jetons du site (D5, D11).
   S'appuie sur sections-a.css (.section-a, .entete-section, .pastille-titre) et telephone.css (téléphone, briques app-*).
   Mobile d'abord ; deux colonnes dès 900 px, trois dès 1100 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-c.js et js/age.js. Sans JS, en pause ou en mouvement réduit : états finaux,
   rien ne bouge (bloc « Mouvement réduit » en bas du fichier).
   ========================================================================== */

/* 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) {
  .section-c .entete-section, .ages__onglets, .age-pan { background: var(--creme); }
}

.section-c { padding-top: var(--e7); }

/* ==========================================================================
   10 · Toute la famille : mosaïque
   ========================================================================== */
.mosaique { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e4); margin-top: var(--e6); }
.tuile {
  position: relative; box-sizing: border-box; min-width: 0; overflow: hidden; padding: 22px 20px;
  border-radius: var(--r-carte); background: var(--papier); box-shadow: var(--ombre-carte);
}
.tuile h3 { font-size: 1.375rem; line-height: 1.2; }
.tuile > p, .tuile__texte > p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--encre-douce); }

/* Entrée de la tuile (.entree) + soulèvement au survol : la propriété « translate » ne touche pas à l'entrée (« transform ») */
html .tuile.entree { transition: translate 200ms var(--courbe-sortie), box-shadow 200ms var(--courbe-sortie); }
html.js .tuile.entree.est-visible {
  transition: opacity var(--duree-entree) var(--courbe-sortie), transform var(--duree-entree) var(--courbe-sortie), translate 200ms var(--courbe-sortie), box-shadow 200ms var(--courbe-sortie);
  transition-delay: calc(var(--i, 0) * var(--cascade)), calc(var(--i, 0) * var(--cascade)), 0s, 0s;
}
@media (hover: hover) {
  .tuile:hover { translate: 0 -4px; box-shadow: 0 2px 4px rgba(11, 43, 34, .06), 0 16px 32px -14px rgba(11, 43, 34, .3), 0 28px 56px -26px rgba(11, 43, 34, .35); }
}

/* Jusqu'à 4 enfants */
.fam-enfants { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fam-enfant {
  min-width: 0; padding: 10px 2px; border-radius: 16px; background: var(--sable);
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
}
.fam-enfant img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.fam-enfant__nom { font: 600 0.875rem/1.15 var(--police-titre); color: var(--encre); }
.fam-enfant__age { font: 700 0.75rem/1.3 var(--police-texte); color: var(--encre-douce); }
.fam-etoiles {
  display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 10px 0 6px; border-radius: var(--r-pastille);
  background: var(--ambre); color: var(--vert-nuit); font: 600 0.9375rem/1 var(--police-titre); font-variant-numeric: tabular-nums;
}
.fam-etoiles .ic { font-size: 18px; }
.fam-enfant--libre { justify-content: center; border: 2px dashed var(--gris-clair); background: transparent; color: var(--encre-douce); }
.fam-enfant--libre .fam-enfant__nom { color: var(--encre-douce); }
.fam-enfant__plus { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--gris-vert); display: grid; place-items: center; font-size: 24px; }
.fam-enfant__nom-long { display: none; }

/* Un proche suit à distance */
.tuile--proche h3 { padding-right: 44px; }
.fam-suivi { margin-top: 16px; padding: 14px; border-radius: 20px; background: var(--sable); }
.fam-suivi__titre { font: 600 1rem/1.3 var(--police-titre); color: var(--encre); }
.fam-suivi__ligne { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.fam-suivi__rond { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--peche); color: var(--peche-texte); font: 600 1.25rem/1 var(--police-titre); }
.fam-suivi__texte { flex: 1; min-width: 0; display: block; }
.fam-suivi__texte strong { display: block; font: 700 1rem/1.3 var(--police-texte); color: var(--encre); }
.fam-suivi__texte span { display: block; font-size: 0.8125rem; line-height: 1.4; color: var(--encre-douce); }
.fam-coeur { position: absolute; right: 20px; top: 20px; font-size: 32px; color: var(--orange); }

/* Son téléphone dès 10 ans : le haut de l'écran de l'ado, en cadre qui dépasse en bas de la tuile */
.tuile--ado { display: flex; flex-direction: column; padding-bottom: 0; }
.tuile--ado > p { margin-bottom: 18px; }
.mini-tel {
  width: 224px; max-width: 100%; height: 230px; margin: auto auto 0; padding: 7px 7px 0; border-radius: 36px 36px 0 0;
  background: var(--encre); flex: none;
}
.mini-tel__ecran { position: relative; width: 100%; height: 100%; border-radius: 30px 30px 0 0; overflow: hidden; background: var(--vert-nuit); isolation: isolate; }
.mini-tel__contenu {
  position: absolute; left: 0; top: 0; width: 390px; transform: scale(.538); transform-origin: 0 0;
  padding: 44px 16px 0; color: var(--creme); font: 400 15px/1.4 var(--police-texte); text-align: left;
}
.mini-tel .ado-prenom { font-size: 26px; }
.mini-tel .ado-date { font-size: 14px; }
.mini-tel .ado-tete img { width: 52px; height: 52px; }
.mini-tel .ado-niveau { margin-top: 12px; }
.mini-tel .ado-niveau__nom { font-size: 17px; }
.mini-tel .ado-niveau__reste { font-size: 13px; }
.mini-tel .ado-titre { font-size: 18px; padding-top: 16px; }

/* Le mode tablette : dessinée en unités --u (1 u = 1 px à 500 px de large), elle rétrécit avec sa zone */
.tab-zone { container-type: inline-size; width: 100%; max-width: 500px; margin-top: 16px; }
.tab-cadre { --u: calc(min(100cqw, 500px) / 500); position: relative; height: calc(330 * var(--u)); }
.tablette {
  position: absolute; left: 0; top: calc(18 * var(--u)); width: 100%; height: calc(300 * var(--u)); box-sizing: border-box;
  padding: calc(12 * var(--u)); border-radius: calc(30 * var(--u)); background: var(--encre);
  box-shadow: 0 2px 4px rgba(11, 43, 34, .08), 0 30px 50px -26px rgba(11, 43, 34, .45);
}
.tablette__ecran {
  width: 100%; height: 100%; display: flex; align-items: center; gap: calc(28 * var(--u)); padding: 0 calc(28 * var(--u));
  border-radius: calc(20 * var(--u)); background: var(--vert-nuit); color: var(--creme); overflow: hidden;
}
.scan { position: relative; width: calc(150 * var(--u)); height: calc(150 * var(--u)); flex: none; display: grid; place-items: center; }
.scan__cercle { position: absolute; border-radius: 50%; border: calc(2 * var(--u)) solid rgba(252, 185, 1, .18); }
.scan__cercle--ext { inset: 0; }
.scan__cercle--int { inset: calc(18 * var(--u)); border-color: rgba(252, 185, 1, .32); }
.scan__bouton { width: calc(78 * var(--u)); height: calc(78 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: var(--ambre); color: var(--vert-nuit); font-size: calc(42 * var(--u)); }
.scan__texte { min-width: 0; }
.scan__titre { font: 600 calc(32 * var(--u))/1.05 var(--police-titre); }
.scan__aide { margin-top: calc(8 * var(--u)); font-size: calc(14 * var(--u)); line-height: 1.4; color: var(--gris-clair); }
.scan__famille {
  display: inline-flex; align-items: center; gap: calc(6 * var(--u)); margin-top: calc(14 * var(--u)); height: calc(34 * var(--u));
  padding: 0 calc(14 * var(--u)) 0 calc(10 * var(--u)); border-radius: 999px; background: var(--vert-profond);
  font: 600 calc(15 * var(--u))/1 var(--police-titre); white-space: nowrap;
}
.scan__famille .ic { font-size: calc(18 * var(--u)); color: var(--ambre); }
.scan-carte {
  position: absolute; left: calc(62 * var(--u)); top: 0; width: calc(118 * var(--u)); height: calc(76 * var(--u)); box-sizing: border-box;
  display: flex; align-items: center; gap: calc(8 * var(--u)); padding: 0 calc(10 * var(--u));
  border-radius: calc(14 * var(--u)); background: var(--papier); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5);
  transform: none; color: var(--encre); font: 600 calc(15 * var(--u))/1 var(--police-titre);
}
.scan-carte img { width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; object-fit: cover; object-position: 50% 22%; }

/* Micro-animations : au survol (ordinateur) ou à l'entrée de la tuile (classe .joue, posée par js/sections-c.js) */
@keyframes famSautille { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes famBat { 0%, 100% { transform: scale(1); } 25%, 75% { transform: scale(1.18); } 50% { transform: scale(1); } }
@keyframes famCoche { from { transform: scale(.6); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes famPose { from { transform: translateY(-16px) rotate(-8deg); } to { transform: none; } }   /* annotation de la maquette : de −8° à 0° (décision Yassin 2026-12-01) */
@keyframes famPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.tuile--enfants.joue .fam-enfant:not(.fam-enfant--libre) img { animation: famSautille 250ms var(--courbe-sortie) calc(var(--k, 0) * 60ms) both; }
.tuile--proche.joue .fam-coeur { animation: famBat 600ms var(--courbe-ressort) both; }
.tuile--ado.joue .fam-ado-coche { animation: famCoche 200ms var(--courbe-sortie) both; }
.tuile--tablette.joue .scan-carte { animation: famPose 450ms var(--courbe-ressort) both; }
.tuile--tablette.joue .scan__cercle { animation: famPulse 400ms var(--courbe-sortie) 450ms both; }
@media (hover: hover) {
  .tuile--enfants:hover .fam-enfant:not(.fam-enfant--libre) img { animation: famSautille 250ms var(--courbe-sortie) calc(var(--k, 0) * 60ms) both; }
  .tuile--proche:hover .fam-coeur { animation: famBat 600ms var(--courbe-ressort) both; }
  .tuile--ado:hover .fam-ado-coche { animation: famCoche 200ms var(--courbe-sortie) both; }
}

@media (min-width: 900px) {
  .section-c { padding-top: var(--e7); }
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e5); margin-top: var(--e7); }
  .tuile--large { grid-column: span 2; }
  .tuile { padding: 28px; border-radius: var(--r-grand); }
  .tuile h3 { font-size: 1.5rem; }
  .tuile > p, .tuile__texte > p { margin-top: 8px; font-size: 1rem; }
  .tuile--proche h3 { padding-right: 56px; }
  .fam-enfants { margin-top: 24px; gap: 16px; }
  .fam-enfant { padding: 18px 12px; gap: 6px; border-radius: 22px; }
  .fam-enfant img { width: 72px; height: 72px; }
  .fam-enfant__nom { font-size: 1.125rem; }
  .fam-enfant__age { font-size: 0.8125rem; }
  .fam-enfant__plus { width: 72px; height: 72px; font-size: 32px; }
  .fam-enfant__nom-long { display: inline; }
  .fam-suivi { margin-top: 24px; padding: 16px; border-radius: 22px; }
  .fam-suivi__rond { width: 48px; height: 48px; }
  .fam-coeur { right: 28px; top: 26px; font-size: 36px; }
  .mini-tel { height: 250px; }
  .tuile--ado > p { margin-bottom: 22px; }
  .tab-zone { margin-top: 24px; }
}
@media (min-width: 1100px) {
  .mosaique { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tuile--tablette { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; }
  .tuile--tablette .tab-zone { margin-top: 0; }
}

/* ==========================================================================
   11 · Pour chaque âge : sélecteur
   ========================================================================== */
.ages__grille { display: grid; gap: var(--e5); grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "onglets" "tel" "textes"; }
.ages__tete { grid-area: tete; max-width: none; }
.ages__onglets { grid-area: onglets; min-width: 0; }
.ages__tel { grid-area: tel; display: flex; justify-content: center; }
.ages__tel .telephone { --tel-echelle: .6; }
.ages__textes { grid-area: textes; display: grid; min-width: 0; }

/* Onglets : la pastille verte glisse sous l'onglet choisi (250 ms, ressort doux) ; l'onglet choisi porte aussi une coche */
.onglets { position: relative; display: flex; padding: 4px; border-radius: var(--r-pastille); background: var(--sable); }
.onglets__indic {
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 4); border-radius: var(--r-pastille);
  background: var(--vert-action); transform: translateX(calc(var(--age, 1) * 100%));
  transition: transform 250ms var(--courbe-ressort);
}
.onglet {
  position: relative; z-index: 1; flex: 1; min-width: 0; height: 48px; padding: 0 4px; border: 0; border-radius: var(--r-pastille);
  background: transparent; color: var(--encre-douce); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  white-space: nowrap; font: 600 1rem/1 var(--police-titre); transition: color var(--duree-micro) var(--courbe-sortie);
}
.onglet:hover { color: var(--encre); }
@media (max-width: 419px) { .onglet { font-size: 0.9375rem; gap: 2px; } .section-c .onglet__coche { font-size: 14px; } }
.onglet.est-choisi, .onglet.est-choisi:hover { color: #fff; }
.onglet:focus-visible { border-radius: var(--r-pastille); }
.section-c .onglet__coche { display: none; font-size: 18px; }
.section-c .onglet.est-choisi .onglet__coche { display: block; }

/* Texte d'accompagnement : les quatre cartes sont empilées dans la même case, la plus haute règle la hauteur (rien ne saute) */
.age-pan {
  grid-area: 1 / 1; box-sizing: border-box; padding: 20px; border-radius: var(--r-carte); background: var(--papier); box-shadow: var(--ombre-carte);
  opacity: 0; visibility: hidden; transition: opacity 150ms var(--courbe-sortie), visibility 0s linear 150ms;
}
.age-pan.est-choisi { opacity: 1; visibility: visible; transition: opacity 300ms var(--courbe-sortie) 80ms, visibility 0s; }
.age-pan__tete { display: flex; align-items: center; gap: 12px; }
.age-pan__tete img { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.age-pan__tete h3 { font-size: 1.1875rem; line-height: 1.2; color: var(--vert-nuit); }
.age-pan__tete p { font: 700 0.8125rem/1.3 var(--police-texte); color: var(--encre-douce); }
.age-pan ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.age-pan li { display: flex; gap: 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--encre); }
.age-pan__ico { flex: none; color: var(--vert-action); font-size: 22px; }

/* Écrans du téléphone : l'ancien s'efface (150 ms), le nouveau glisse de 16 px dans le sens de l'onglet, en fondu (300 ms) */
.ag-ecran {
  opacity: 0; visibility: hidden; transform: translateX(16px) scale(var(--tel-echelle));
  transition: opacity 150ms var(--courbe-sortie), transform 300ms var(--courbe-sortie), visibility 0s linear 150ms;
}
.ag-ecran.avant { transform: translateX(-16px) scale(var(--tel-echelle)); }
.ag-ecran.est-choisi { opacity: 1; visibility: visible; transform: scale(var(--tel-echelle)); transition: opacity 300ms var(--courbe-sortie), transform 300ms var(--courbe-sortie), visibility 0s; }
/* Sans JS : un seul écran (6-8 ans) et les quatre textes l'un sous l'autre */
html:not(.js) .ag-ecran:not(.ag-ecran--defaut) { display: none; }
html:not(.js) .ag-ecran--defaut { opacity: 1; visibility: visible; transform: scale(var(--tel-echelle)); }
html:not(.js) .ages__onglets { display: none; }
html:not(.js) .age-pan { grid-area: auto; opacity: 1; visibility: visible; margin-bottom: var(--e3); }
html:not(.js) .ages__textes { display: block; }

.ag-grille { display: grid; }

/* --- Écran 3-5 ans (Ilyas) : gros pictos --- */
.ag-gros-prenom { font-size: 40px; }
.ag-gros-solde { height: 44px; padding: 0 16px 0 10px; gap: 4px; font-size: 24px; }
.ag-gros-solde .ic { font-size: 30px; }
.ag-gros-anneau { position: relative; width: 96px; height: 96px; flex: none; }
.ag-gros-anneau__texte { position: absolute; inset: 0; display: grid; place-items: center; font: 600 28px/1 var(--police-titre); }
.ag-gros-carte { box-sizing: border-box; display: flex; align-items: center; gap: 16px; min-height: 140px; margin: 14px 16px 0; padding: 16px; border-radius: 32px; background: var(--vert-profond); }
.ag-gros-picto { width: 104px; height: 104px; flex: none; border-radius: 30px; display: grid; place-items: center; background: var(--ambre); color: var(--vert-nuit); font-size: 64px; }
.ag-gros-picto--corail { background: var(--corail); }
.ag-gros-carte--faite .ag-gros-picto, .ag-gros-carte--faite .ag-gros-carte__texte { opacity: .78; }
.ag-gros-carte__texte { flex: 1; min-width: 0; }
.ag-gros-carte__titre { font: 600 25px/1.15 var(--police-titre); }
.ag-etoiles { display: flex; margin-top: 6px; color: var(--ambre); font-size: 28px; }
.ag-gros-rond { box-sizing: border-box; width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.ag-gros-rond--plein { background: var(--ambre); color: var(--vert-nuit); font-size: 42px; }
.ag-gros-rond--vide { border: 4px dashed var(--ambre); color: var(--ambre); font-size: 40px; }
.ag-gros-prieres { display: flex; justify-content: center; gap: 56px; margin: 26px 16px 0; }
.ag-gros-priere { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 19px/1.2 var(--police-titre); }
.ag-gros-priere__rond { box-sizing: border-box; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; border: 3px dashed var(--gris-vert); }
.ag-gros-priere__rond--faite { border: 0; background: var(--vert-foret); }
.ag-gros-priere__rond svg { width: 62px; height: 62px; }

/* --- Écran 9-12 ans (Yusuf) : liste compacte --- */
.ag-sobre-identite { display: flex; align-items: center; gap: 12px; padding: 20px 20px 4px 24px; }
.ag-sobre-identite__nom { flex: 1; min-width: 0; }
.ag-sobre-prenom { font: 600 30px/1.1 var(--police-titre); }
.ag-sobre-identite__ligne { display: flex; align-items: center; gap: 10px; margin-top: 8px; font: 600 14px/1.2 var(--police-texte); color: var(--gris-clair); }
.ag-sobre-solde { display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 12px 0 7px; border-radius: 999px; background: var(--ambre); color: var(--vert-nuit); font: 600 17px/1 var(--police-titre); }
.ag-sobre-solde .ic { font-size: 20px; }
.ag-sobre-jour { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.ag-sobre-anneau { position: relative; width: 72px; height: 72px; }
.ag-sobre-anneau > span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 20px/1 var(--police-titre); }
.ag-sobre-coran { box-sizing: border-box; display: flex; align-items: center; gap: 12px; min-height: 72px; margin: 12px 16px 0; padding: 12px 12px 12px 16px; border-radius: 24px; background: var(--vert-foret); }
.ag-sobre-coran__ico { font-size: 28px; color: var(--citron); }
.ag-sobre-coran__texte { flex: 1; min-width: 0; }
.ag-sobre-coran__titre { font: 600 18px/1.2 var(--police-titre); }
.ag-sobre-coran__sous { margin-top: 2px; font-size: 14px; color: var(--gris-clair); }
.ag-sobre-coran__lire { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ambre); color: var(--vert-nuit); font-size: 30px; }
.ag-sobre-titre { padding: 18px 24px 8px; font: 600 18px/1.3 var(--police-titre); }
.ag-liste { margin: 0 16px; padding: 4px 4px 4px 16px; border-radius: 24px; background: var(--vert-profond); }
.ag-ligne { display: flex; align-items: center; gap: 12px; min-height: 60px; border-bottom: 1px solid var(--vert-foret); }
.ag-ligne:last-child { border-bottom: 0; }
.ag-ligne__ico { font-size: 24px; }
.ag-ligne__ico--ambre { color: var(--ambre); }
.ag-ligne__ico--citron { color: var(--citron); }
.ag-ligne__ico--corail { color: var(--corail); }
.ag-ligne__nom { flex: 1; min-width: 0; font: 700 16px/1.3 var(--police-texte); }
.ag-ligne--faite .ag-ligne__nom { color: var(--gris-clair); }
.ag-ligne__pts { font: 700 14px/1 var(--police-texte); color: var(--ambre); }
.ag-ligne__etat { box-sizing: border-box; width: 30px; height: 30px; margin: 0 12px 0 4px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--gris-vert); font-size: 20px; }
.ag-ligne__etat--fait { border: 0; background: var(--vert-vif); color: var(--vert-nuit); }
.ag-sobre-prieres { display: flex; gap: 6px; margin: 0 16px; }
.ag-sp { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 12px/1.2 var(--police-texte); }
.ag-sp__rond { box-sizing: border-box; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--gris-vert); }
.ag-sp__rond--faite { border: 0; background: var(--vert-foret); }
.ag-sp__rond svg { width: 26px; height: 26px; }

/* --- Écran ado (« Salam, Yusuf ») et haut de la tuile « dès 10 ans » --- */
.ag-ado { box-sizing: border-box; padding: 44px 16px 0; }
.ado-tete { display: flex; align-items: center; gap: 12px; padding: 8px 4px 0; }
.ado-tete > div { flex: 1; }
.ado-tete img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.ado-prenom { font: 600 30px/1.15 var(--police-titre); }
.ado-date { font: 600 15px/1.4 var(--police-texte); color: var(--gris-clair); }
.ado-niveau { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 24px; background: var(--vert-profond); }
.ado-niveau svg { flex: none; }
.ado-anneau__piste { stroke: rgba(183, 201, 192, .22); stroke-width: 8; }
.ado-anneau__plein { stroke: var(--vert-vif); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 109 163.4; }
.ado-niveau__texte { flex: 1; min-width: 0; }
.ado-niveau__nom { font: 600 18px/1.2 var(--police-titre); }
.ado-niveau__reste { font-size: 14px; line-height: 1.35; color: var(--gris-clair); }
.ado-solde { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 12px 0 7px; border-radius: 999px; background: var(--ambre); color: var(--vert-nuit); font: 600 17px/1 var(--police-titre); }
.ado-solde .ic { font-size: 20px; }
.ado-titre { padding: 18px 4px 8px; font: 600 19px/1.3 var(--police-titre); }
.ado-defis { padding: 4px 4px 4px 14px; border-radius: 24px; background: var(--vert-profond); }
.ado-defi { display: flex; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid var(--vert-foret); }
.ado-defi:last-child { border-bottom: 0; }
.ado-defi__picto { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--vert-nuit); font-size: 24px; }
.ado-defi__picto--ambre { background: var(--ambre); }
.ado-defi__picto--citron { background: var(--citron); }
.ado-defi__nom { flex: 1; min-width: 0; font: 700 16px/1.3 var(--police-texte); }
.ado-defi__fait, .ado-defi__vide { box-sizing: border-box; width: 30px; height: 30px; margin-right: 12px; border-radius: 50%; display: grid; place-items: center; }
.ado-defi__fait { background: var(--vert-vif); color: var(--vert-nuit); font-size: 20px; }
.ado-defi__vide { border: 2px solid var(--gris-vert); }
.ado-prieres { display: flex; gap: 4px; padding: 14px 8px; border-radius: 24px; background: var(--vert-profond); }
.ado-priere { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 12px/1.2 var(--police-texte); }
.ado-priere__fleur, .ado-priere__vide { width: 30px; height: 30px; }
.ado-priere__vide { box-sizing: border-box; border-radius: 50%; border: 2px dashed var(--gris-vert); }
.ado-coran { box-sizing: border-box; display: flex; align-items: center; gap: 12px; min-height: 68px; margin-top: 12px; padding: 12px 12px 12px 16px; border-radius: 24px; background: var(--vert-foret); }
.ado-coran__ico { font-size: 28px; color: var(--citron); }
.ado-coran__texte { flex: 1; min-width: 0; }
.ado-coran__titre { font: 600 18px/1.2 var(--police-titre); }
.ado-coran__sous { margin-top: 2px; font-size: 14px; color: var(--gris-clair); }
.ado-coran__fleche { font-size: 26px; color: var(--gris-clair); }

@media (min-width: 900px) {
  .ages__grille {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--e8); row-gap: var(--e5);
    grid-template-areas: "tete tel" "onglets tel" "textes tel"; grid-template-rows: auto auto 1fr; align-items: start;
  }
  .ages__tel .telephone { --tel-echelle: .8; }
  .ages__onglets { margin-top: var(--e2); }
  .ages__textes { max-width: 620px; }
  .onglets { display: inline-flex; }
  .onglet { flex: none; width: 132px; height: 52px; padding: 0 10px; font-size: 1.125rem; }
  .section-c .onglet__coche { font-size: 20px; }
  .age-pan { padding: 24px 28px; border-radius: var(--r-grand); }
  .age-pan__tete { gap: 14px; }
  .age-pan__tete img { width: 56px; height: 56px; }
  .age-pan__tete h3 { font-size: 1.375rem; }
  .age-pan__tete p { font-size: 0.875rem; }
  .age-pan ul { margin-top: 16px; gap: 10px; }
  .age-pan li { font-size: 1rem; }
}

/* ==========================================================================
   12 · Confiance : quatre engagements, icônes au trait, Coran 31:18
   ========================================================================== */
.engagements { list-style: none; margin: var(--e6) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.engagement {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start;
  padding: 16px; border-radius: var(--r-carte); background: var(--papier); box-shadow: var(--ombre-carte);
}
.engagement__icone { grid-row: 1 / span 2; width: 44px; height: 44px; stroke: var(--vert-action); stroke-width: 1.6; }
.engagement h3 { font-size: 1.1875rem; line-height: 1.25; color: var(--vert-nuit); }
.engagement p { margin-top: 4px; font-size: 0.875rem; line-height: 1.45; color: var(--encre-douce); }

/* Tracé : stroke-dashoffset de 100 % à 0 (pathLength = 1), 600 ms (400 ms sur téléphone), 120 ms d'écart entre icônes */
.trait { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 400ms var(--courbe-sortie), opacity 60ms linear; }
.confiance.est-prete .engagement:not(.est-dessinee) .trait { stroke-dashoffset: 1; opacity: 0; }

/* Le verset : un seul bloc, simple fondu après les icônes. Aucun déplacement, aucune animation de mot. */
.verset {
  box-sizing: border-box; max-width: 720px; margin: var(--e5) auto 0; padding: 22px 18px; border-radius: 24px;
  background: var(--vert-profond); color: var(--creme); text-align: center;
  transition: opacity 500ms var(--courbe-sortie);
}
.confiance.est-prete .verset:not(.est-vu) { opacity: 0; }
.verset figcaption { font: 700 0.75rem/1.4 var(--police-texte); color: var(--gris-clair); }
.verset blockquote { margin: 8px 0 0; }
.verset__arabe { margin: 0; font: 400 1.875rem/1.9 var(--police-arabe); direction: rtl; }
.verset__traduction { margin-top: 2px; font-size: 1.125rem; line-height: 1.45; }
.verset__reference { margin-top: 6px; font: 700 0.8125rem/1.3 var(--police-texte); color: var(--gris-clair); }

@media (min-width: 900px) {
  .engagements { margin-top: var(--e7); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e5); }
  .engagement { display: block; padding: 28px 24px; border-radius: var(--r-grand); }
  .engagement__icone { width: 56px; height: 56px; }
  .engagement h3 { margin-top: 16px; font-size: 1.3125rem; }
  .engagement p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.5; }
  .trait { transition: stroke-dashoffset 600ms var(--courbe-sortie) calc(var(--k, 0) * 120ms), opacity 60ms linear calc(var(--k, 0) * 120ms); }
  .verset { margin-top: var(--e6); padding: 28px 32px; border-radius: var(--r-grand); transition-duration: 600ms; }
  .verset figcaption { font-size: 0.8125rem; }
  .verset blockquote { margin-top: 10px; }
  .verset__arabe { font-size: 2.25rem; }
  .verset__traduction { margin-top: 4px; font-size: 1.25rem; }
  .verset__reference { margin-top: 6px; font-size: 0.875rem; }
}

/* ==========================================================================
   Mouvement réduit ou pause des animations : états finaux, rien ne bouge
   (la section entre avec .entree, en fondu ; survol = ombre seulement ; le sélecteur change d'écran par un fondu de 150 ms)
   ========================================================================== */
html:is(.mouvement-reduit, .anim-pause) .tuile * { animation: none !important; }
html:is(.mouvement-reduit, .anim-pause) .tuile:hover { translate: none; }
html:is(.mouvement-reduit, .anim-pause) .tuile.entree { transition: box-shadow 200ms linear; }
html:is(.mouvement-reduit, .anim-pause) .trait { stroke-dashoffset: 0 !important; opacity: 1 !important; transition: none; }
html:is(.mouvement-reduit, .anim-pause) .verset { opacity: 1 !important; transition: none; }
html:is(.mouvement-reduit, .anim-pause) .onglets__indic, html:is(.mouvement-reduit, .anim-pause) .onglet { transition: none; }
html:is(.mouvement-reduit, .anim-pause) .ag-ecran, html:is(.mouvement-reduit, .anim-pause) .ag-ecran.avant { transform: scale(var(--tel-echelle)); transition: opacity 150ms linear, visibility 0s linear 150ms; }
html:is(.mouvement-reduit, .anim-pause) .ag-ecran.est-choisi { transition: opacity 150ms linear, visibility 0s; }
html:is(.mouvement-reduit, .anim-pause) .age-pan, html:is(.mouvement-reduit, .anim-pause) .age-pan.est-choisi { transition-duration: 150ms; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .onglets__indic, .onglet { transition: none; }
  .ag-ecran, .ag-ecran.avant { transform: scale(var(--tel-echelle)); transition: opacity 150ms linear, visibility 0s linear 150ms; }
  .ag-ecran.est-choisi { transition: opacity 150ms linear, visibility 0s; }
  .age-pan, .age-pan.est-choisi { transition-duration: 150ms; transition-delay: 0s; }
}

/* ==========================================================================
   Bornes du chemin (voir css/chemin.css et sections-a.css).
   Jusqu'à 1299 px : une étoile au centre en bas de chaque section, le sentier passe derrière les blocs (fond de page).
   Dès 1300 px : il passe dans la marge, comme dans les planches. La section 9 sort à gauche (x = 48) : la 10 y reste,
   passe au centre en bas, la 11 reprend à droite (le téléphone est à gauche du sentier), la 12 revient à gauche.
   ========================================================================== */
.borne--famille-sortie, .borne--ages-entree, .borne--ages-sortie, .borne--confiance-entree, .borne--confiance-sortie { display: none; }
.borne--famille-etoile, .borne--ages-etoile, .borne--confiance-etoile { left: 50%; bottom: 32px; }

@media (min-width: 1300px) {
  .borne--famille-etoile { left: 48px; bottom: auto; top: 42%; }
  .borne--famille-sortie { display: block; left: 50%; bottom: 0; }

  .borne--ages-entree { display: block; left: calc(100% - 48px); top: 150px; }
  .borne--ages-etoile { left: calc(100% - 48px); bottom: auto; top: 56%; }
  .borne--ages-sortie { display: block; left: 50%; bottom: 0; }

  .borne--confiance-entree { display: block; left: 48px; top: 150px; }
  .borne--confiance-etoile { left: 48px; bottom: auto; top: 60%; }
  .borne--confiance-sortie { display: block; left: 48px; bottom: 0; }
}
