/* ======================================================================
   Famille « fond » de la mise en page éditoriale, 23 novembre 2026 (Alexis).
   Pages : les trois articles (neurofeedback/articles/…) et les cinq pages de fond Neurofeedback
   (qu-est-ce-que-le-neurofeedback, neuroptimal, combien-de-seances, deroulement-d-une-seance, comprendre-notre-cerveau).
   Chargée en dernier, après signal.css et les feuilles de page. Elle COMPLÈTE le socle « Mise en page éditoriale (body.ed) »
   de signal.css : même géométrie (--ed-col, --ed-moyen), même vocabulaire d’encadré (bordure fine, coin arrondi, fond clair).
   Elle ne touche à aucun schéma (svg, .circuit, .parcours.cr-p, .cr-acc, .cr-al, .boucle).

   Sommaire :  1. l’ouverture (l’essentiel, le sommaire)   2. la ligne « Une question avant de réserver »
   3. listes face à face (.est-nest-pas)   4. comparaison en deux encadrés (.comparatif)   5. tableau à titre (.tableau-cote)
   6. trois repères (.reperes-trois)   7. liste de repères sans titre (.reperes-v7)   8. deux développements côte à côte
   9. frises et suites d’étapes   10. téléphone et tablette   11. tableaux en fiches sur téléphone
   ====================================================================== */

/* 1. L’ouverture : « L’essentiel en quelques lignes » s’ouvre comme une section (le signe du logo, le repère en orange),
      à la place du filet encre ; le sommaire reste une liste sur filets fins, plus discrète.
      Le signe est le même dessin que celui que signal.js pose au-dessus des repères de section (ici fixe, sans animation). */
body.nf.ed main .ouverture>.wrap>.essentiel{border-top:0 !important;padding-top:0 !important}
body.nf.ed main .ouverture>.wrap>.essentiel::before{content:"";display:block;width:160px;height:20px;margin:0 0 18px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 20'%3E%3Cpath d='M0 10 H 62 C 66 10, 68 2, 72 10 S 78 18, 82 10 L 96 10 M120 10 H 160' fill='none' stroke='%231C2140' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='108' cy='10' r='4.5' fill='%23F0562A'/%3E%3C/svg%3E") no-repeat left center/160px 20px}
body.nf.ed main .ouverture>.wrap>.essentiel>.repere{font-family:var(--ui);font-weight:600;color:var(--signal-s);letter-spacing:.01em}
body.nf.ed main .ouverture>.wrap>.essentiel>p{font-size:var(--ed-t-chapeau) !important;line-height:1.5 !important;color:var(--encre);text-wrap:pretty}
body.nf.ed main .ouverture>.wrap>.sommaire{border-top:1px solid var(--filet) !important;margin-top:40px !important}

/* 2. « Une question avant de réserver ? » : la ligne tient dans la colonne de lecture, la phrase à gauche, le bouton à droite.
      (Le socle passe tout paragraphe enfant direct de la section en bloc : la ligne perdait sa mise en rangée sur « NeurOptimal® ».)
      Sur la section sombre, elle garde la largeur de la suite d’étapes qu’elle ferme. */
body.nf.ed.v7-pages main .sec:where(:not(.nuit))>.wrap>.apres-sequence{grid-column:1/-1;width:100%;max-width:var(--ed-col) !important;margin-left:auto !important;margin-right:auto !important}
body.nf.ed.v7-pages main .sec>.wrap>p.rappel{display:flex !important;margin-top:var(--esp-figure) !important}

/* 3. Deux listes face à face (.est-nest-pas : « ce que c’est / ce que ce n’est pas », « réactif / réfléchi », le contenu du livret) :
      un encadré de largeur moyenne, comme les autres listes de repères ; le titre, quand il y en a un, à gauche. */
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas{box-sizing:border-box;grid-column:1/-1;display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 36px;width:100% !important;max-width:var(--ed-moyen) !important;margin-left:auto !important;margin-right:auto !important;padding:28px 36px 30px !important;border:1px solid var(--filet) !important;border-radius:var(--ed-rayon);background:var(--fond-clair,#FFFDF9)}
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas:has(>h3){grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,4fr)}
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas>h3{grid-column:auto !important;padding:0 !important;max-width:none !important;font-family:var(--titre);font-weight:600;font-size:1.25rem !important;line-height:1.25 !important;letter-spacing:-.012em}
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas>.col{grid-column:auto !important;margin-top:0 !important}
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas li:last-child{border-bottom:0}
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas li::before{background:var(--fond-clair,#FFFDF9)}
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas .oui li::before{background:var(--accent)}
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas.sans-tetes ul{border-top:0 !important}
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas+.texte{margin-top:var(--esp-figure) !important}
body.nf.ed.v7-pages main .sec>.wrap>.tete+.est-nest-pas{margin-top:8px !important}

/* 4. Comparaison en deux encadrés (.comparatif : « Linéaire / Dynamique ») : largeur moyenne, deux boîtes claires,
      un filet de couleur en tête de chacune (encre pour l’approche historique, orange pour celle du cabinet) ; la référence en légende. */
body.nf.ed.v7-pages main .sec>.wrap>.comparatif{box-sizing:border-box;width:100%;max-width:var(--ed-moyen);margin:8px auto 0;gap:28px}
body.nf.ed.v7-pages main .sec>.wrap>.comparatif>.col{box-sizing:border-box;padding:22px 28px 14px;border:1px solid var(--filet);border-top:4px solid var(--encre);border-radius:6px 6px var(--ed-rayon) var(--ed-rayon);background:var(--fond-clair,#FFFDF9)}
body.nf.ed.v7-pages main .sec>.wrap>.comparatif>.col.cabinet{border-top-color:var(--signal)}
body.nf.ed.v7-pages main .sec>.wrap>.comparatif h3{font-size:1.25rem !important;line-height:1.25 !important;max-width:none !important}
body.nf.ed.v7-pages main .sec>.wrap>.comparatif+p.src{margin-top:28px !important;padding-top:12px;border-top:1px solid var(--filet);font-family:var(--ui);font-size:var(--ed-t-legende) !important;line-height:1.45;color:var(--encre-2)}

/* 5. Tableau à titre (.preuves.tableau-cote, page « NeurOptimal® ») : le dessin de « Ce que cela explique » du socle,
      un encadré de largeur moyenne, le titre en tête, la référence en légende sous le tableau.
      (« La ville » de « Comprendre notre cerveau » garde sa construction : réglée à la main avec Alexis, ajouts-cerveau.css.) */
body.nf.ed.v7-pages main .sec:where(:not([id="ville"]))>.wrap>.preuves.tableau-cote{box-sizing:border-box;display:block !important;width:100% !important;max-width:var(--ed-moyen) !important;padding:30px 36px 22px !important;border:1px solid var(--filet) !important;border-radius:var(--ed-rayon);background:var(--fond-clair,#FFFDF9)}
body.nf.ed.v7-pages main .sec:where(:not([id="ville"]))>.wrap>.preuves.tableau-cote>.cote-titre{max-width:none !important;margin:0 0 10px !important;padding:0 !important}
body.nf.ed.v7-pages main .sec:where(:not([id="ville"]))>.wrap>.preuves.tableau-cote table{width:100%}
body.nf.ed.v7-pages main .sec:where(:not([id="ville"]))>.wrap>.preuves.tableau-cote tbody tr:last-child :is(th,td){border-bottom:0 !important}
body.nf.ed.v7-pages main .sec:where(:not([id="ville"]))>.wrap>.preuves.tableau-cote>.src{margin:6px 0 0 !important;padding-top:12px;border-top:1px solid var(--filet);font-size:var(--ed-t-legende) !important;line-height:1.45;max-width:none !important}

/* 6. Trois repères côte à côte (.reperes-trois, « Ce que NeurOptimal® ne fait pas ») : un seul encadré de largeur moyenne,
      trois colonnes séparées par un filet fin. */
body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois{box-sizing:border-box;grid-column:1/-1;width:100% !important;max-width:var(--ed-moyen) !important;margin-left:auto !important;margin-right:auto !important;padding:10px 36px !important;border:1px solid var(--filet) !important;border-radius:var(--ed-rayon);background:var(--fond-clair,#FFFDF9)}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois ul{gap:0 !important}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois li{border:0 !important;padding:20px 28px 22px 26px !important}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois li+li{border-left:1px solid var(--filet) !important;padding-left:54px !important}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois li::before{top:calc(20px + .72em - 5px) !important;background:var(--fond-clair,#FFFDF9)}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois li+li::before{left:28px}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois li:last-child{padding-right:0 !important}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois.titres li b{font-weight:600;font-size:1.2rem;line-height:1.25}
body.nf.ed.v7-pages main .sec>.wrap>.tete+.reperes-trois{margin-top:12px !important}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois+.texte{margin-top:var(--esp-figure) !important}

/* 7. Une liste de repères sans titre (.reperes-v7 sans h3, « Quand en parler à son médecin ») : cinq colonnes étroites
      devenaient illisibles ; une seule liste, dans un encadré à la largeur de la colonne de lecture. */
body.nf.ed.v7-pages main .sec>.wrap>.reperes-v7:not(:has(>h3)){display:block !important;max-width:var(--ed-col) !important;padding:14px 28px !important}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-v7:not(:has(>h3)) ul{display:block !important;border-top:0 !important;margin:0 !important}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-v7:not(:has(>h3)) li{border-top:0 !important;border-bottom:1px solid var(--filet);padding:11px 0 11px 26px !important;font-family:var(--texte);font-weight:400;line-height:1.4 !important}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-v7:not(:has(>h3)) li::before{top:calc(11px + .68em - 5px) !important}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-v7:not(:has(>h3)) li:last-child{border-bottom:0}
/* même dessin pour une liste simple partagée en deux moitiés (.est-nest-pas.sans-tetes, « Le livret ») : une seule liste dans la colonne */
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas.sans-tetes{display:block !important;max-width:var(--ed-col) !important;padding:14px 28px !important}
body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas.sans-tetes>.col:not(:last-child) li:last-child{border-bottom:1px solid var(--filet)}
body.nf.ed.v7-pages main .sec>.wrap>.reperes-v7 li::before{background:var(--fond-clair,#FFFDF9)}

/* 8. Deux développements côte à côte (« Le rythme / Le suivi », « Le principe / Les ressentis ») : .ed-paire et .ed-encadre du socle,
      posés sur l’ancienne .paire.deux-reperes ; le repère garde sa place au-dessus de l’intertitre. */
body.nf.ed main .ed-paire.paire{margin-top:0}
body.nf.ed main .ed-paire>.ed-encadre>.repere{margin:0 0 8px !important;font-family:var(--ui);font-weight:600;font-size:1rem !important;color:var(--signal-s)}
body.nf.ed main .ed-paire>.ed-encadre>h3{max-width:none !important;font-size:1.3rem !important;margin-bottom:12px !important}
body.nf.ed main .ed-paire>.ed-encadre>p{font-size:1.05rem !important;line-height:1.6 !important;text-wrap:pretty}

/* 9. Frises et suites d’étapes.
      Le parcours d’une séance (ol.parcours-seance) : une figure de largeur moyenne, centrée sur l’axe de la page. */
body.nf.ed.v7-pages main .sec>.wrap>.parcours-seance{grid-column:1/-1;width:100%;max-width:var(--ed-moyen);margin-left:auto !important;margin-right:auto !important}
/* la frise d’histoire garde la largeur de la grille (cinq dates) ; de l’air au-dessus */
body.nf.ed.v7-pages main .sec>.wrap>.sequence.frise{margin-top:var(--esp-figure) !important}

/* 10. Téléphone et tablette (900 px et moins) : les encadrés de cette feuille passent en une colonne */
@media (max-width:900px){
  body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas,
  body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas:has(>h3){grid-template-columns:1fr;gap:0;padding:22px 20px 14px !important}
  body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas>h3{margin-bottom:16px !important}
  body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas>.col+.col{margin-top:20px !important}
  body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas.sans-tetes{padding:8px 20px !important}
  body.nf.ed.v7-pages main .sec>.wrap>.est-nest-pas.sans-tetes>.col+.col{margin-top:0 !important}
  body.nf.ed.v7-pages main .sec>.wrap>.comparatif{grid-template-columns:1fr;gap:20px}
  body.nf.ed.v7-pages main .sec>.wrap>.comparatif>.col{padding:20px 20px 10px}
  body.nf.ed.v7-pages main .sec:where(:not([id="ville"]))>.wrap>.preuves.tableau-cote{padding:22px 20px 18px !important}
  body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois{padding:6px 20px !important}
  body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois li,
  body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois li+li{border-left:0 !important;padding:16px 0 16px 26px !important}
  body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois li+li{border-top:1px solid var(--filet) !important}
  body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois li::before,
  body.nf.ed.v7-pages main .sec>.wrap>.reperes-trois li+li::before{left:0;top:calc(16px + .72em - 5px) !important}
  body.nf.ed.v7-pages main .sec>.wrap>.reperes-v7:not(:has(>h3)){padding:8px 20px !important}
}

/* 11. Tableaux sur téléphone (700 px et moins) : plus de défilement de côté (une colonne restait cachée à droite).
       Le tableau passe en fiches empilées : un encadré, une fiche par ligne, séparées par un filet ; l’en-tête de ligne devient le titre
       de la fiche et chaque cellule est précédée, en petit, du nom de sa colonne.
       Les noms de colonne sont repris MOT POUR MOT des en-têtes du tableau (qui restent dans la page pour les lecteurs d’écran) :
       si un en-tête change dans le HTML, le reprendre ici. (Plus propre à terme : un attribut data-label sur chaque cellule.)
       Concerne « La ville » (#ville, Comprendre notre cerveau) et « Dirigé ou dynamique » (#difference, NeurOptimal®). */
@media (max-width:700px){
  body.nf.ed.v7-pages main .sec>.wrap>.preuves.tableau-cote{box-sizing:border-box;display:block !important;padding:22px 20px 8px !important;border:1px solid var(--filet) !important;border-radius:var(--ed-rayon);background:var(--fond-clair,#FFFDF9)}
  body.nf.ed.v7-pages main .sec>.wrap>.preuves.tableau-cote>.cote-titre{max-width:none !important;margin:0 0 6px !important;padding:0 !important}
  body.nf.ed main .preuves.tableau-cote .tableau-defilant{overflow:visible !important;border-right:0 !important}
  body.nf.ed main .preuves.tableau-cote .tableau-defilant::before{display:none !important}
  body.nf.ed main .preuves.tableau-cote .tableau-defilant>.tableau{display:block !important;min-width:0 !important;width:100% !important}
  body.nf.ed main .preuves.tableau-cote .tableau thead{position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;clip:rect(0 0 0 0) !important}
  body.nf.ed main .preuves.tableau-cote .tableau tbody{display:block !important}
  body.nf.ed main .preuves.tableau-cote .tableau tbody tr{display:block !important;padding:16px 0 18px !important;border-bottom:1px solid var(--filet)}
  body.nf.ed main .preuves.tableau-cote .tableau tbody tr:last-child{border-bottom:0 !important}
  body.nf.ed main .preuves.tableau-cote .tableau tbody :is(th,td){display:block !important;width:auto !important;white-space:normal !important;padding:0 !important;border:0 !important;text-align:left !important}
  body.nf.ed main .preuves.tableau-cote .tableau tbody th{font-family:var(--titre);font-weight:600;font-size:1.15rem !important;line-height:1.25 !important;color:var(--encre)}
  body.nf.ed main .preuves.tableau-cote .tableau tbody td{margin-top:10px;font-size:1.0625rem !important;line-height:1.5 !important}
  body.nf.ed main .preuves.tableau-cote .tableau tbody :is(th,td)::before{display:block;margin:0 0 2px;font-family:var(--ui);font-weight:500;font-size:.8125rem;line-height:1.3;letter-spacing:.01em;color:var(--encre-2)}
  body.nf.ed main #ville .tableau tbody th::before{content:"Dans la ville"}
  body.nf.ed main #ville .tableau tbody td:nth-child(2)::before{content:"Dans le corps"}
  body.nf.ed main #ville .tableau tbody td:nth-child(3)::before{content:"Son rôle"}
  body.nf.ed main #difference .tableau tbody td:nth-child(2)::before{content:"Neurofeedback dirigé"}
  body.nf.ed main #difference .tableau tbody td:nth-child(3)::before{content:"NeurOptimal®"}
  body.nf.ed main .preuves.tableau-cote>.src{margin-bottom:12px !important}
}
