/* ============================================================
   Ajouts des pages « Pour qui » (14 novembre 2026), modèle : la page Parents.
   Chargée après signal.css et ajouts-publics.css, sur ces seules pages.
   1. Les schémas de la bibliothèque (parcours/schemas.html), règles copiées de outils/schemas/gen.py.
   2. L’aiguillage « pour vous, ou pour votre enfant ? » sous le héros.
   3. Les besoins liés : la liste du hub (.profils-liste.hub) sur trois colonnes.
   4. Les trois dimensions de l’épuisement parental.
   5. Le moment de pause : photo de séance et texte (.portrait inversé).
   ============================================================ */
/* 1 */
.sch{margin:0;max-width:1000px}
.sch svg{width:100%;height:auto;display:block;overflow:visible}
.sch figcaption{margin-top:18px;font-family:var(--ui);font-size:.88rem;color:var(--encre-2)}
.sch .l{fill:none;stroke:var(--encre);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sch .l2{fill:none;stroke:var(--encre-2);stroke-width:1.1;stroke-dasharray:3 5}
.sch .l3{fill:none;stroke:var(--encre-2);stroke-width:1}
.sch .a{fill:none;stroke:var(--signal);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sch .pt{fill:var(--signal)}
.sch .rond{fill:var(--papier);stroke:var(--encre);stroke-width:1.7}
.sch .pince{fill:var(--encre)}
.sch .zone{fill:var(--papier-2)}.sch .zone2{fill:var(--orange-pale)}
.sch .seg{fill:none;stroke:var(--encre)}.sch .seg-acc{fill:none;stroke:var(--signal)}
.sch text.grand{font-size:52px;font-weight:600;font-family:var(--titre)}.sch text.num{font-weight:600;fill:var(--signal-s)}
.sch .hab{fill:var(--encre-2)}
.sch .dend path{fill:none;stroke:var(--encre);stroke-linecap:round}.sch .d0{stroke-width:1.6}.sch .d1{stroke-width:1.1}.sch .d2{stroke-width:.8}.sch .d3{stroke-width:.6}
.sch .neur .corps{fill:var(--papier);stroke:var(--encre);stroke-width:1.6}.sch .neur .noyau{fill:var(--encre);opacity:.75}
.sch .neur.pale{opacity:.5}.sch .bouton{fill:var(--encre)}.sch .myel{fill:var(--papier);stroke:var(--encre);stroke-width:1.6}
.sch .boite{fill:var(--papier);stroke:var(--encre);stroke-width:1.6}.sch .boite-acc{fill:var(--orange-pale);stroke:var(--signal);stroke-width:1.8}
.sch .barre{fill:none;stroke:var(--signal);stroke-width:2.6;stroke-linecap:round}
.sch .eau{fill:var(--papier-2)}.sch .glace{fill:var(--papier)}
.sch .m1{fill:var(--papier-2)}.sch .m2{fill:color-mix(in srgb,var(--orange-pale) 45%,var(--papier-2))}.sch .m3{fill:var(--orange-pale)}.sch .m4{fill:color-mix(in srgb,var(--signal) 38%,var(--orange-pale))}
.sch text{font-family:var(--ui);font-size:16px;fill:var(--encre)}
.sch text.s{font-size:14px;fill:var(--encre-2)}
.sch text.b{font-weight:600}
.sch text.lt{font-family:var(--texte);font-style:italic;font-size:16px}
@media (max-width:900px){.sch text{font-size:20px}.sch text.s{font-size:18px}}
body.nf .sch{margin:var(--esp-figure,40px) 0 0;max-width:1000px}
/* 2 */
.aiguillage{padding:0 !important}
.aiguillage .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;padding-top:18px;padding-bottom:18px;border-top:1.6px solid var(--encre);border-bottom:1px solid var(--filet);font-family:var(--ui);font-size:1rem}
.aiguillage p{margin:0 !important;max-width:none !important;font-family:var(--ui)}
.aiguillage .liens{display:flex;gap:18px;flex-wrap:wrap}
/* 3 */
.besoins-lies{margin-top:var(--esp-chapeau-contenu,28px)}
/* 4 */
.dimensions{list-style:none;margin:var(--esp-figure,40px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gout,24px);counter-reset:d}
.dimensions li{border-top:1.6px solid var(--encre);padding-top:16px;counter-increment:d}
.dimensions li::before{content:counter(d);display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1.6px solid var(--encre);font-family:var(--ui);font-weight:600;font-size:.9rem;margin-bottom:12px}
.dimensions li:last-child::before{background:var(--signal);border-color:var(--signal);color:#fff}
.dimensions b{display:block;font-family:var(--titre);font-size:1.25rem;font-weight:600;line-height:1.15;margin-bottom:6px}
.dimensions p{margin:0 !important;font-size:1rem;max-width:none !important}
@media (max-width:760px){.dimensions{grid-template-columns:1fr}}
/* 5 */
.portrait.inverse{direction:rtl}.portrait.inverse>*{direction:ltr}
.portrait .pause-texte p{font-size:1.15rem}
.portrait.inverse .photo img{width:100%;aspect-ratio:4/5;height:auto;object-fit:cover}
.portrait.inverse{grid-template-columns:4fr 7fr}   /* rtl : la première piste (4fr) est à droite, c’est la photo */
@media (max-width:900px){.portrait.inverse{grid-template-columns:1fr}}

/* ============================================================
   Retours d’Alexis du 14 novembre 2026 sur la page Parents
   ============================================================ */
/* 6. Tête : la photo à la taille des pages d’explication (colonnes 8 à 12, carrée), texte sur sept colonnes ; sur téléphone, pleine largeur en 3:2 */
@media (min-width:901px){
  .v2-pages .hero.lecture-tete.tete-besoin.photo-grande .texte{grid-column:1/8}
  .v2-pages .hero.lecture-tete.tete-besoin.photo-grande .visuel{grid-column:8/13;max-width:none;margin-top:0 !important;justify-self:stretch;align-self:center}
  .v2-pages .hero.lecture-tete.tete-besoin.photo-grande .visuel .att{aspect-ratio:1}
}
@media (max-width:900px){
  .v2-pages .hero.lecture-tete.tete-besoin.photo-grande .visuel{display:block;grid-column:1/-1;max-width:none;margin-top:24px !important;justify-self:stretch}
  .v2-pages .hero.lecture-tete.tete-besoin.photo-grande .visuel .att{aspect-ratio:3/2}
}
/* 7. Les trois dimensions : titre sur une ligne ; dès que la colonne rétrécit, les trois s’empilent */
.dimensions b{white-space:nowrap;font-size:clamp(1rem,1.35vw,1.15rem)}
@media (max-width:1000px){.dimensions{grid-template-columns:1fr}.dimensions b{font-size:1.15rem;white-space:normal}}
/* 8. « 45 minutes » : le titre ouvre la colonne de texte, la photo est seule à droite */
.portrait.inverse .pause-texte .tete{margin-bottom:var(--esp-chapeau-contenu,28px)}
.portrait.inverse .pause-texte .tete h2{max-width:none !important}
/* 9. Le nuage des besoins (.nuage) : un centre, six branches qui se tracent une fois, six nœuds cliquables ;
      au survol le nom passe en orange, le point se remplit et la branche s’allume ; en fond, le brouhaha d’une journée.
      Sur téléphone : une liste sur filets, sans branches ni fond. */
.nuage{position:relative;margin:var(--esp-figure,40px) 0 0;aspect-ratio:1000/560;max-width:none}
.nuage .branches{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.nuage .branches path{fill:none;stroke:var(--encre);stroke-width:1.4;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.55;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke .25s,opacity .25s}
.nuage.anime .branches path{animation:nuage-trace 1.1s cubic-bezier(.4,0,.2,1) forwards}
.nuage.anime .branches path.b2{animation-delay:.12s}.nuage.anime .branches path.b3{animation-delay:.24s}.nuage.anime .branches path.b4{animation-delay:.36s}.nuage.anime .branches path.b5{animation-delay:.48s}.nuage.anime .branches path.b6{animation-delay:.6s}
@keyframes nuage-trace{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.nuage .branches path{stroke-dashoffset:0;animation:none !important}}
.nuage .fond{position:absolute;inset:0;pointer-events:none}
.nuage .fond i{position:absolute;left:calc(var(--x)*1%);top:calc(var(--y)*1%);transform:translate(-50%,-50%);font-family:var(--texte);font-style:italic;font-size:.95rem;color:var(--encre-2);opacity:.42;white-space:nowrap}
.nuage .centre{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;display:grid;justify-items:center;gap:10px;font-family:var(--ui);font-weight:500;font-size:.9rem;color:var(--encre);background:var(--papier);padding:10px 14px;border-radius:4px}
.nuage .centre .rond{width:16px;height:16px;border-radius:50%;background:var(--encre)}
.nuage .noeuds{list-style:none;margin:0;padding:0}
.nuage .noeuds li{position:absolute;left:calc(var(--x)*1%);top:calc(var(--y)*1%);margin:0;width:max-content;max-width:26ch}
.nuage .noeuds a{display:block;position:relative;padding:0 0 0 24px;text-decoration:none;color:var(--encre)}
.nuage .noeuds .pt{position:absolute;left:0;top:50%;width:12px;height:12px;margin-top:-6px;border-radius:50%;border:1.6px solid var(--encre);background:var(--papier);transition:background .2s,border-color .2s}
.nuage .noeuds b{display:block;font-family:var(--titre);font-weight:600;font-size:1.25rem;line-height:1.1;letter-spacing:-.012em;transition:color .2s}
.nuage .noeuds b svg{display:inline-block;width:18px;height:18px;overflow:visible;vertical-align:-2px;margin-left:6px;transition:transform .2s}
.nuage .noeuds b svg path{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nuage .noeuds p{margin:6px 0 0;font-family:var(--texte);font-size:.95rem;line-height:1.4;color:var(--encre-2)}
.nuage .noeuds li.gauche{transform:translate(-100%,-50%)}
.nuage .noeuds li.gauche a{padding:0 24px 0 0;text-align:right}
.nuage .noeuds li.gauche .pt{left:auto;right:0}
.nuage .noeuds li{transform:translateY(-50%)}
.nuage .noeuds a:hover b,.nuage .noeuds a:focus-visible b{color:var(--accent)}
.nuage .noeuds a:hover b svg,.nuage .noeuds a:focus-visible b svg{transform:translateX(4px)}
.nuage .noeuds a:hover .pt,.nuage .noeuds a:focus-visible .pt{background:var(--accent);border-color:var(--accent)}
.nuage:has(.n1 a:hover,.n1 a:focus-visible) .branches .b1,.nuage:has(.n2 a:hover,.n2 a:focus-visible) .branches .b2,.nuage:has(.n3 a:hover,.n3 a:focus-visible) .branches .b3,
.nuage:has(.n4 a:hover,.n4 a:focus-visible) .branches .b4,.nuage:has(.n5 a:hover,.n5 a:focus-visible) .branches .b5,.nuage:has(.n6 a:hover,.n6 a:focus-visible) .branches .b6{stroke:var(--accent);opacity:1;stroke-width:1.8}
@media (max-width:900px){
  .nuage{aspect-ratio:auto}
  .nuage .branches,.nuage .fond,.nuage .centre{display:none}
  .nuage .noeuds{border-top:1.6px solid var(--encre)}
  .nuage .noeuds li,.nuage .noeuds li[class]{position:static;transform:none;width:auto;max-width:none;border-bottom:1px solid var(--filet)}
  .nuage .noeuds a,.nuage .noeuds li.gauche a{padding:16px 0 16px 26px;text-align:left}
  .nuage .noeuds li.gauche .pt{left:0;right:auto}
  .nuage .noeuds .pt{top:24px;margin-top:0}
  .nuage .noeuds b{font-size:1.15rem}
}

/* 10. Schémas de la bibliothèque (.sch) : pleine largeur sur ordinateur ; sur téléphone, plus grands et on fait glisser (même construction que les tableaux) */
body.nf .sch{max-width:none}
.sch .defile{display:block}
@media (max-width:900px){
  .sch .defile{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding-bottom:8px}
  .sch .defile svg{width:780px;min-width:780px;max-width:none}
  .sch .defile::before{content:"Faites glisser pour voir le schéma";display:block;position:sticky;left:0;width:max-content;max-width:100%;font-family:var(--ui);font-weight:500;font-size:var(--t-legende,.8rem);color:var(--encre-2);margin-bottom:10px}
  .sch text{font-size:17px}.sch text.s{font-size:15px}
}
/* 11. La photo de séance sur téléphone (3:2) : cadrée sur la personne, pas sur la fenêtre */
@media (max-width:900px){.portrait.inverse .photo img{object-position:50% 62% !important}}

/* Titre des pages « Pour qui » (18 novembre 2026, retour d’Alexis : « écrit beaucoup trop gros, illisible »).
   Ces titres sont longs (deux idées séparées par deux-points) : à la taille du titre de l’accueil, ils prenaient
   cinq lignes. Taille réduite, pour tenir en trois ou quatre lignes à côté de la photo. */
.v2-pages .hero.lecture-tete.tete-besoin.photo-grande h1{font-size:clamp(2.1rem,3.3vw,3rem) !important;line-height:1.08 !important;letter-spacing:-.018em}
@media (max-width:900px){
  .v2-pages .hero.lecture-tete.tete-besoin.photo-grande h1{font-size:clamp(1.75rem,7vw,2.1rem) !important;line-height:1.1 !important}
}
