/* ============================================================================
   Page « À propos », VERSION 2 (23 novembre 2026, demande d’Alexis), reprise le même jour après son retour :
   « tu es parti un peu trop loin, fais en sorte que ça ressemble au reste du site ».
   Reliée EN DERNIER, dans la seule copie de travail neurofeedback/a-propos/v2.html (body.jf). Classes préfixées .jf-

   RÈGLE DE CETTE FEUILLE : aucune typographie propre à la page. Tout vient du site.
   - Titres en Bricolage Grotesque, texte en Source Serif 4, aux tailles du site (le h1 n’est pas touché : jeton --t-page).
   - Fraunces seulement là où la « version 2 » éditoriale l’emploie, avec ses valeurs (assets/ed-v2.css) :
     numéro de partie (.v2-num), chapeau et lettrine du premier chapitre, citation en exergue.
   - Composants repris tels quels par leurs classes : héros de la page actuelle (.hero.ap-hero, ajouts-a-propos.css),
     citation à filet orange (blockquote.esprit), tête de section (.tete, .repere, signe posé par signal.js),
     bloc Juliette orange pâle (#juliette .portrait), rangées à filet (.familles-liste), avis (.avis), appel final (.appel-final).
   Propre à la page : la géométrie des chapitres (celle des pages « Vos besoins » version 2 : rail, colonne, marge),
   et la ligne de vie au crayon (outils/crayon.py) qui occupe le rail à la place du sommaire.

   Sommaire : 1. jetons  2. ouverture  3. fiche  4. chapitres  5. ligne de vie  6. marge  7. séance  8. bloc Juliette
   9. avis et fin  10. largeur moyenne  11. téléphone  12. mouvement
   ============================================================================ */

/* 1. Jetons : ceux de la version 2 éditoriale ------------------------- */
body.jf{
  --v2-rail:168px;
  --v2-gap:46px;
  --v2-col:48rem;
  --v2-car:"Fraunces","Source Serif 4",Georgia,serif;
  --v2-etiquette:.78rem;
  --jf-entre:72px;
}
body.jf main{overflow-x:clip}

/* 2. Ouverture : le héros de la page actuelle, la photo orange plus grande */
body.jf .jf-ouverture .texte{grid-column:1/7}
body.jf .jf-ouverture .jf-o-photo{grid-column:7/13;aspect-ratio:912/1020}
body.jf .jf-ouverture .jf-o-photo img{object-position:50% 20%}
body.jf .jf-ouverture blockquote.esprit{margin-top:28px}
body.jf .jf-ouverture blockquote.esprit{max-width:30rem}
body.jf .jf-ouverture blockquote.esprit p{text-wrap:pretty}

/* 3. Fiche : trois repères sous un filet d’encre ----------------------- */
body.jf .jf-fiche dl{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1.5px solid var(--encre);border-bottom:1px solid var(--filet)}
body.jf .jf-fiche dl>div{padding:18px 20px 22px 0;display:grid;gap:8px;align-content:start}
body.jf .jf-fiche dl>div+div{padding-left:24px;border-left:1px solid var(--filet)}
body.jf .jf-fiche dt{margin:0;font-family:var(--ui);font-weight:500;font-size:.95rem;line-height:1.3;color:var(--signal-s)}
body.jf .jf-fiche dd{margin:0;display:grid;gap:5px;justify-items:start;font-family:var(--titre);font-weight:600;font-size:1.3rem;line-height:1.2;letter-spacing:-.012em;color:var(--encre)}
body.jf .jf-fiche dd>span:not(.etoiles){font-family:var(--ui);font-weight:400;font-size:.95rem;letter-spacing:0;color:var(--encre-2)}
body.jf .jf-fiche dd a{color:inherit;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px;text-decoration-color:var(--accent)}
body.jf .jf-fiche .etoiles svg{width:16px;height:16px}

/* 4. Chapitres : la partie numérotée des pages « Vos besoins » version 2 */
body.jf .jf-recit{padding:var(--jf-entre) 0 0}
body.jf .jf-chap{padding:0 0 var(--jf-entre);border:0}
body.jf .jf-chap>.wrap{display:grid;grid-template-columns:calc(var(--v2-rail) + var(--v2-gap)) minmax(0,var(--v2-col)) minmax(0,1fr);grid-template-rows:auto auto auto;align-items:start}
body.jf main .jf-chap .tete.jf-tete{grid-column:2/4;grid-row:1;display:block;position:relative;border-top:1px solid var(--encre);padding-top:30px;margin:0;text-align:left}
body.jf .jf-num{display:block;font-family:var(--v2-car);font-variation-settings:"opsz" 144;font-weight:300;font-size:4.4rem;line-height:.82;letter-spacing:-.03em;color:var(--signal);margin:0 0 26px}
body.jf main .jf-tete .signe{margin:0 0 10px}
body.jf main .jf-tete .repere{font-family:var(--ui);font-weight:600;font-size:var(--v2-etiquette);letter-spacing:.11em;text-transform:uppercase;color:var(--signal-s);margin:0;padding:0}
body.jf main .jf-chap .jf-tete h2{font-size:clamp(2.05rem,3.2vw,3rem) !important;line-height:1.04 !important;letter-spacing:-.03em;max-width:var(--v2-col) !important;margin:16px 0 0 !important;text-wrap:balance}
body.jf .jf-corps{grid-column:2;grid-row:2;min-width:0;margin-top:28px}
body.jf .jf-large{grid-column:2/4;min-width:0}
body.jf .jf-corps.jf-large{grid-row:2}
body.jf main .jf-corps>p{margin:0;max-width:none;font-family:var(--texte);font-size:1.25rem !important;line-height:1.62 !important;color:var(--encre)}
body.jf main .jf-corps>p+p{margin-top:1em}
/* le chapeau et la lettrine : une seule fois, au premier chapitre, comme dans la version 2 */
body.jf main .jf-corps>p.jf-chapeau{font-family:var(--v2-car);font-variation-settings:"opsz" 36;font-weight:400;font-size:1.62rem !important;line-height:1.36 !important;letter-spacing:-.006em;text-wrap:pretty}
body.jf main .jf-corps>p.jf-chapeau::first-letter{float:left;font-family:var(--v2-car);font-variation-settings:"opsz" 144;font-weight:500;font-size:4.55em;line-height:.76;margin:.085em .1em 0 -.03em;color:var(--signal)}
body.jf main .jf-corps>p.jf-chapeau+p{margin-top:28px}
/* la citation en exergue de la version 2 : Fraunces italique, un trait orange au-dessus */
body.jf .jf-exergue{position:relative;border:0;padding:30px 0 0;margin:44px 0 40px;max-width:none}
body.jf .jf-exergue::before{content:"";position:absolute;top:0;left:0;width:64px;height:3px;background:var(--signal)}
body.jf main .jf-exergue p{margin:0;max-width:none;font-family:var(--v2-car);font-variation-settings:"opsz" 72;font-style:italic;font-weight:400;font-size:clamp(1.6rem,2.5vw,2.2rem) !important;line-height:1.2 !important;letter-spacing:-.014em;color:var(--encre);text-wrap:balance}
body.jf .jf-exergue:last-child{margin-bottom:0}

/* 5. Ligne de vie : le trait au crayon des schémas, discret, dans le rail */
body.jf .jf-rail{grid-column:1;grid-row:1/4;align-self:stretch;position:relative;justify-self:start;width:24px;margin-left:calc(var(--v2-rail) - 24px)}
body.jf .jf-rail svg{position:absolute;left:0;top:0;width:24px;height:calc(100% + var(--jf-entre));overflow:visible}
body.jf .jf-rail path{fill:none;stroke:var(--encre);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;opacity:.5}
body.jf .jf-rail .fin{stroke-width:.8;opacity:.28}
body.jf .jf-point{position:absolute;left:50%;top:-5px;width:11px;height:11px;margin-left:-5.5px;border-radius:50%;background:var(--signal);box-shadow:0 0 0 5px var(--papier);z-index:1}
body.jf .jf-dernier .jf-rail svg{height:100%}
body.jf .jf-point.jf-bout{top:auto;bottom:-5px}

/* 6. Marge : une photo, une note sous un filet d’encre ----------------- */
body.jf .jf-marge{grid-column:3;grid-row:2;margin-top:28px;padding-left:var(--v2-gap);display:grid;gap:26px;align-content:start;min-width:0}
body.jf .jf-marge .photo{background:var(--papier-2)}
body.jf .jf-marge .photo img{display:block;width:100%;height:auto}
body.jf .jf-note{border-top:1px solid var(--encre);padding-top:14px;display:grid;gap:4px;justify-items:start}
body.jf main .jf-note p{margin:0;max-width:none}
body.jf main .jf-note-rep{font-family:var(--ui);font-weight:600;font-size:var(--v2-etiquette) !important;line-height:1.3 !important;letter-spacing:.11em;text-transform:uppercase;color:var(--signal-s)}
body.jf main .jf-note-nom{font-family:var(--titre);font-weight:600;font-size:1.4rem !important;line-height:1.15 !important;letter-spacing:-.012em;color:var(--encre);margin-top:8px !important}
body.jf main .jf-note-par{font-family:var(--ui);font-size:1rem !important;line-height:1.45 !important;color:var(--encre-2)}
body.jf .jf-note .lien{margin-top:12px;font-family:var(--ui);font-size:.98rem}

/* 7. La séance en trois temps, sur la largeur (dessin de la séquence de l’accueil : numéro orange, titre, texte) */
body.jf .jf-seance-bloc{grid-row:3;margin-top:48px}
body.jf main .jf-seance-bloc h3{font-size:1.6rem !important;line-height:1.15 !important;letter-spacing:-.022em;max-width:none !important;margin:0 0 20px}
body.jf .jf-seance{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--gout)}
body.jf .jf-seance li{border-top:1px solid var(--encre);padding-top:16px;display:grid;gap:8px;align-content:start}
body.jf .jf-seance .n{font-family:var(--titre);font-weight:600;font-size:1.3rem;line-height:1;color:var(--signal)}
body.jf .jf-seance b{display:block;font-family:var(--titre);font-weight:600;font-size:1.3rem;line-height:1.15;letter-spacing:-.012em;margin-bottom:8px}
body.jf main .jf-seance p{margin:0;max-width:none;font-family:var(--texte);font-size:1.0625rem !important;line-height:1.5 !important;color:var(--encre)}
body.jf main .jf-suite-lien{margin:26px 0 0;max-width:none;font-family:var(--ui);font-size:1rem !important}
body.jf main .jf-aussi{margin:40px 0 0;padding-top:18px;border-top:1px solid var(--filet);max-width:var(--v2-col);font-family:var(--texte);font-size:1.0625rem !important;line-height:1.55 !important;color:var(--encre-2)}
body.jf .jf-aussi .lien{font-family:var(--ui);font-size:.98rem;margin-left:8px;white-space:nowrap}
body.jf .jf-corps.jf-large .familles-liste{margin-top:0}

/* 8. Bloc Juliette (composant du site, fond orange pâle) : la citation, puis son nom */
body.jf #juliette .portrait blockquote{margin-top:14px}
body.jf main #juliette .jf-qui{margin:0;font-family:var(--ui);font-weight:500;font-size:1rem !important;color:var(--encre)}
body.jf .jf-recit.jf-suite{padding-top:var(--jf-entre)}
body.jf .jf-avant-bloc .jf-rail svg{height:calc(100% + var(--jf-entre))}

/* 9. Avis et fin : composants du site ---------------------------------- */
body.jf #avis .avis .etoiles svg{width:18px;height:18px}
body.jf #avis .sec-fin{justify-content:center}
body.jf main .appel-final .jf-nom{margin:18px 0 0;font-family:var(--titre);font-weight:600;font-size:1.15rem !important;line-height:1.2 !important;letter-spacing:-.01em;color:var(--encre)}
body.jf .jf-fin-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:14px 20px}

/* 10. Largeur moyenne : le rail se resserre, la marge passe sous le texte */
@media (max-width:1279px){
  body.jf{--v2-rail:56px;--v2-gap:28px}
  body.jf .jf-chap>.wrap{grid-template-columns:calc(var(--v2-rail) + var(--v2-gap)) minmax(0,1fr);grid-template-rows:auto auto auto auto}
  body.jf main .jf-chap .tete.jf-tete,body.jf .jf-large{grid-column:2}
  body.jf .jf-rail{grid-row:1/5;margin-left:8px}
  body.jf .jf-corps{max-width:var(--v2-col)}
  body.jf .jf-corps.jf-large{max-width:none}
  body.jf .jf-marge{grid-column:2;grid-row:3;padding-left:0;margin-top:36px;max-width:var(--v2-col);grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--gout)}
  body.jf .jf-seance-bloc{grid-row:4}
}
@media (max-width:900px){
  /* l’ouverture au téléphone : fil d’Ariane, titre, grande photo, puis le texte */
  body.jf main .jf-ouverture>.wrap{display:flex !important;flex-direction:column;align-items:stretch;gap:0}
  body.jf main .jf-ouverture .texte{display:contents}
  body.jf main .jf-ouverture .fil-ariane{order:1 !important}
  body.jf main .jf-ouverture h1{order:2 !important}
  body.jf main .jf-ouverture .jf-o-photo{order:3 !important;position:relative !important;inset:auto !important;float:none !important;width:100% !important;max-width:none !important;height:auto !important;aspect-ratio:1/1;margin:24px 0 0 !important}
  body.jf .jf-ouverture .jf-o-photo img{object-position:50% 12%}
  body.jf main .jf-ouverture .ap-ouverture{order:4 !important}
  body.jf main .jf-ouverture blockquote.esprit{order:5 !important;max-width:none}
  body.jf main .jf-ouverture .ap-actions{order:6 !important}
  body.jf .jf-fiche dl{grid-template-columns:minmax(0,1fr)}
  body.jf .jf-fiche dl>div+div{padding-left:0;border-left:0;border-top:1px solid var(--filet)}
  body.jf .jf-seance{grid-template-columns:minmax(0,1fr);row-gap:26px}
  body.jf .jf-fin-actions{justify-content:flex-start}
}

/* 11. Téléphone : une colonne, la ligne de vie au bord gauche ---------- */
@media (max-width:759px){
  body.jf{--v2-rail:24px;--v2-gap:10px;--jf-entre:56px}
  body.jf .jf-rail{margin-left:-4px}
  body.jf .jf-num{font-size:3.1rem;margin-bottom:20px}
  body.jf main .jf-tete .repere{font-size:.74rem}
  body.jf main .jf-corps>p{font-size:1.125rem !important;line-height:1.58 !important}
  body.jf main .jf-corps>p.jf-chapeau{font-size:1.32rem !important}
  body.jf .jf-exergue{margin:34px 0 30px;padding-top:24px}
  body.jf .jf-marge{grid-template-columns:minmax(0,1fr)}
  body.jf main .jf-seance-bloc h3{font-size:1.35rem !important}
  body.jf .jf-aussi .lien{display:inline-block;margin:8px 0 0}
  body.jf .jf-fin-actions .btn,body.jf .jf-fin-actions .btn-2{flex:1 1 100%;justify-content:center;text-align:center}
}

/* 12. Mouvement : la ligne se trace une fois, à l’arrivée à l’écran (classe jf-vu posée par le script de la page) */
@media (prefers-reduced-motion:no-preference){
  body.jf .jf-rail .tr{stroke-dasharray:1;stroke-dashoffset:0;transition:stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1)}
  body.jf .jf-rail .fin{transition-delay:.15s}
  body.jf .jf-point{transition:transform .45s cubic-bezier(.3,1.6,.5,1)}
  .js body.jf .jf-chap:not(.jf-vu) .jf-rail .tr{stroke-dashoffset:1}
  .js body.jf .jf-chap:not(.jf-vu) .jf-rail .jf-point{transform:scale(0)}
}

/* 24 novembre 2026 (Alexis) : la ligne « Spécialiste certifiée… » est retirée du haut de page (la certification est dans les repères juste dessous) ;
   la citation du haut tient sur deux lignes sur ordinateur (toute la largeur de la colonne, lignes équilibrées). */
body.jf .jf-ouverture blockquote.esprit{max-width:none}
body.jf .jf-ouverture blockquote.esprit p{text-wrap:balance}
@media (min-width:901px){
  body.jf .jf-ouverture blockquote.esprit p{font-size:clamp(1.35rem,2.05vw,1.9rem) !important;line-height:1.3}
}
