/* ==========================================================================
   Nouveau Nerdy : blocs partagés par les pages du SITE PUBLIC (tour Fable 1, zone Z1, 28/10/2026).
   S'ajoute à nerdy.css (socle Z0, non modifié ici). Préfixe nvx-.
   Ce que la maquette v4 (S\maquette\screens, DECISIONS_V4.md) ajoute au socle : FAQ en lignes, bande qui défile,
   offre en 3 cartes, bande EF courte, bande « compte à rebours », morceaux de produit dans un cadre, tuiles,
   témoignages en 3 couleurs, panneau de chat, cartes de matière sur fond encre, ligne « Parler à quelqu'un ».
   À remonter dans nerdy.css par le socle quand il le voudra (demande dans fable_r1_demandes.md).
   Règles de la DA : cartes blanches, rayon 12, bord fin ; aucun fond teinté derrière un texte courant.
   ========================================================================== */

/* ---------- Bandeau du haut en sombre : texte or clair sur le fond or sombre du socle (7,9:1), au lieu du blanc terne ---------- */
:root[data-theme="dark"] .n-announce{color:#F2BE5C}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .n-announce{color:#F2BE5C} }

/* ---------- FAQ en lignes : les règles de .nvx-faq vivent dans nerdy.css (socle, tour 2), avec .n-faq ---------- */

/* ---------- Bande de texte qui défile : « Nos élèves visent » ---------- */
.nvx-marquee{background:var(--surface); border-bottom:1px solid var(--line); overflow:hidden; padding-block:18px}
.nvx-marquee__track{display:flex; gap:0; width:max-content; animation:nvx-scroll 40s linear infinite}
.nvx-marquee:hover .nvx-marquee__track{animation-play-state:paused}
.nvx-marquee__set{display:flex; align-items:center; gap:0; white-space:nowrap}
.nvx-marquee__set span{font:500 .8125rem/1 var(--font-mono); letter-spacing:.12em; text-transform:uppercase; color:var(--muted); padding-inline:28px}
.nvx-marquee__set b{font:600 .8125rem/1 var(--font-mono); letter-spacing:.12em; text-transform:uppercase; color:var(--text); padding-inline:28px}
@keyframes nvx-scroll{from{transform:translateX(0)} to{transform:translateX(-50%)}}
@media (prefers-reduced-motion: reduce){ .nvx-marquee__track{animation:none; width:auto; flex-wrap:wrap; justify-content:center} .nvx-marquee__set + .nvx-marquee__set{display:none} }

/* ---------- Morceau de produit dans un cadre (encre, brume ou pointillé) ---------- */
.nvx-frame{border-radius:var(--r-l); padding:clamp(16px,2.5vw,28px); display:flex; align-items:center; justify-content:center; min-width:0}
.nvx-frame > .n-chunk,.nvx-frame > .nvx-chat{width:100%; box-shadow:var(--shadow-float)}
.nvx-frame--ink{background:var(--ink-deep)}
.nvx-frame--mist{background:var(--mist)}
.nvx-frame--dots{background:var(--teal-soft) radial-gradient(rgba(27,42,56,.12) 1px, transparent 1px) 0 0 / 12px 12px; border:1px solid var(--line)}
.nvx-frame--grid{background:var(--sky-soft); background-image:var(--tex-grid); border:1px solid var(--line)}
.nvx-frame--cream{background:var(--cream)}
.nvx-frame .n-chunk{box-shadow:var(--shadow-float)}
.nvx-frame__cap{font-size:.8125rem; color:var(--muted); margin-top:10px; align-self:flex-start}

/* ---------- Tuiles : carte blanche, morceau de produit en haut, titre, une ligne ---------- */
.nvx-tiles{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--grid-gap); align-items:stretch}
@media (max-width:1060px){ .nvx-tiles{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:560px){ .nvx-tiles{grid-template-columns:minmax(0,1fr)} }
.nvx-tile{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-m); padding:var(--s-5); display:flex; flex-direction:column; gap:var(--s-3); min-width:0}
.nvx-tile__vis{display:flex; flex-direction:column; gap:10px; min-height:88px; justify-content:flex-start; margin-bottom:var(--s-2)}
.nvx-tile h3{font:600 1.125rem/1.3 var(--font-sans); letter-spacing:0; display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:auto}
.nvx-tile p{color:var(--muted); font-size:.9375rem; line-height:1.5}
.nvx-bignum{font:400 2.25rem/1 var(--font-mono); letter-spacing:-.03em}
.nvx-bignum--l{font-size:2.75rem}

/* Morceaux de produit réutilisés */
.nvx-mini-rank{display:flex; flex-direction:column; gap:8px}
.nvx-mini-rank__top{font:400 1.75rem/1 var(--font-mono); letter-spacing:-.02em}
.nvx-mini-rank__bar{height:8px; border-radius:var(--r-pill); background:var(--mist); overflow:hidden}
.nvx-mini-rank__bar > i{display:block; height:100%; width:72%; background:var(--teal); border-radius:inherit}
.nvx-bell{width:100%; height:auto; display:block}
.nvx-week{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.nvx-week__d{display:flex; flex-direction:column; align-items:center; gap:4px; font:500 .625rem/1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.nvx-week__d i{width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:1.5px solid var(--line-strong); color:var(--muted); font:500 .6875rem/1 var(--font-mono); font-style:normal}
.nvx-week__d i .n-icon{width:14px; height:14px}
.nvx-week__d.is-done i{background:var(--steel); border-color:var(--steel); color:var(--on-steel)}
.nvx-week__d.is-today i{border-style:dashed; border-color:var(--steel)}
.nvx-week__d.is-exam i{background:var(--gold); border-color:var(--gold); color:var(--ink)}
.nvx-bubble{font-size:.875rem; line-height:1.45; padding:9px 13px; border-radius:var(--r-m); max-width:100%}
.nvx-bubble--me{align-self:flex-end; background:var(--steel-deep); color:var(--on-steel); border-bottom-right-radius:var(--r-xs)}
@media (min-width:1240px){ .nvx-tile__vis .nvx-bubble--ai{white-space:nowrap} }
.nvx-bubble--ai{align-self:flex-start; background:var(--sky-soft); color:var(--text); border-bottom-left-radius:var(--r-xs)}
:root[data-theme="dark"] .nvx-bubble--me{background:var(--steel); color:#0D1922}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .nvx-bubble--me{background:var(--steel); color:#0D1922} }
.nvx-sk{display:block; height:9px; border-radius:5px; background:var(--mist); width:100%}
.nvx-sk--s{width:60%} .nvx-sk--ko{background:var(--coral-soft)}
.nvx-field{border:1.5px solid var(--line-strong); border-radius:var(--r-s); padding:10px 12px; font:400 .9375rem/1.3 var(--font-mono); background:var(--paper); display:flex; justify-content:space-between; align-items:center; gap:8px; color:var(--text)}
.nvx-field__label{font-size:.8125rem; color:var(--muted); margin-bottom:6px}
.nvx-ok{display:inline-flex; align-items:center; gap:6px; color:var(--teal-ink); font:600 .8125rem/1.2 var(--font-sans)}
.nvx-bars{display:flex; flex-direction:column; gap:10px; font-size:.875rem; width:100%}
.nvx-bars > div{display:flex; flex-direction:column; gap:5px}
.nvx-bars span{display:flex; justify-content:space-between; gap:8px}
.nvx-bars--tiny{font-size:.75rem; gap:7px}
.nvx-bars--tiny .n-bar{height:7px}
.nvx-keys{display:flex; gap:6px; flex-wrap:wrap}
.nvx-keys i{width:30px; height:30px; border:1px solid var(--line-strong); border-radius:var(--r-s); display:flex; align-items:center; justify-content:center; font:500 .875rem/1 var(--font-mono); font-style:normal; color:var(--text); background:var(--surface)}
.nvx-wave{display:flex; align-items:center; gap:3px; height:28px}
.nvx-wave i{display:block; width:3px; border-radius:2px; background:var(--steel); height:var(--h, 12px)}

/* ---------- Panneau de chat (tuteur) ---------- */
.nvx-chat{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-m); display:flex; flex-direction:column; min-width:0; overflow:hidden}
.nvx-chat__head{padding:12px 16px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:flex-start; gap:12px}
.nvx-chat__head b{display:block; font:600 .9375rem/1.3 var(--font-sans)}
.nvx-chat__head small{display:block; font-size:.75rem; color:var(--muted); margin-top:2px}
.nvx-chat__body{padding:14px 16px; display:flex; flex-direction:column; gap:8px}
.nvx-chat__foot{display:flex; gap:8px; align-items:center; padding:12px 16px; border-top:1px solid var(--line)}
.nvx-chat__input{flex:1; min-width:0; border:1.5px solid var(--line); border-radius:var(--r-pill); padding:10px 14px; font-size:.875rem; color:var(--muted); background:var(--paper)}
.nvx-chat__btn{width:36px; height:36px; border-radius:50%; border:1px solid var(--line-strong); display:flex; align-items:center; justify-content:center; color:var(--muted); flex:none}
.nvx-chat__btn .n-icon{width:16px; height:16px}
.nvx-chat__note{font-size:.75rem; color:var(--muted); padding:0 16px 12px}

/* ---------- Étapes numérotées (01, 02, 03 dans une case) ---------- */
.nvx-steps{display:flex; flex-direction:column; gap:var(--s-5)}
.nvx-step{display:flex; align-items:center; gap:var(--s-4)}
.nvx-step__n{width:52px; height:52px; flex:none; border:1px solid var(--line-strong); border-radius:var(--r-s); display:flex; align-items:center; justify-content:center; font:400 1.25rem/1 var(--font-mono); color:var(--steel-deep); background:var(--surface)}
.nvx-step h3{font:600 1.125rem/1.3 var(--font-sans); letter-spacing:0}
.nvx-step p{color:var(--muted); font-size:.9375rem; margin-top:2px}

/* ---------- Témoignages : trois couleurs, citation en grand, avatar ---------- */
.nvx-quote{border-radius:var(--r-l); padding:var(--s-6); display:flex; flex-direction:column; gap:var(--s-5); margin:0; height:100%; min-width:0}
.nvx-quote--ink{background:var(--ink); color:#fff}
.nvx-quote--steel{background:var(--steel); color:#fff}
.nvx-quote--gold{background:var(--gold); color:var(--ink)}
.nvx-quote blockquote{margin:0; font-family:var(--font-serif); font-size:clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height:1.3; letter-spacing:var(--ls-tight); flex:1}
.nvx-quote .n-pill{align-self:flex-start; background:transparent; box-shadow:inset 0 0 0 1px currentColor; color:inherit; opacity:.9}
.nvx-quote figcaption{display:flex; align-items:center; gap:12px; font:600 .9375rem/1.3 var(--font-sans)}
.nvx-quote__av{width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font:400 1rem/1 var(--font-serif); flex:none; background:#fff; color:var(--ink)}
.nvx-quote__who{display:flex; flex-direction:column; gap:2px; min-width:0}
.nvx-quote__who small{font:400 .8125rem/1.3 var(--font-sans); opacity:.85}
.nvx-quote--gold .nvx-quote__av{background:var(--ink); color:#fff}
/* En sombre, --steel devient ciel (#5FAAD9) : blanc dessus ne ferait que 2,6:1, on garde l'acier profond (7:1) */
:root[data-theme="dark"] .nvx-quote--ink{background:var(--ink-deepest); box-shadow:inset 0 0 0 1px var(--line-strong)}
:root[data-theme="dark"] .nvx-quote--steel{background:#2E5E7C}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .nvx-quote--ink{background:var(--ink-deepest); box-shadow:inset 0 0 0 1px var(--line-strong)}
  :root:not([data-theme="light"]) .nvx-quote--steel{background:#2E5E7C}
}

/* ---------- Offre : trois cartes à bandeau ---------- */
.nvx-offers{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--grid-gap); align-items:stretch}
@media (max-width:960px){ .nvx-offers{grid-template-columns:minmax(0,1fr); max-width:520px; margin-inline:auto} }
.nvx-offer{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-m); display:flex; flex-direction:column; min-width:0; overflow:hidden}
.nvx-offer--main{border-color:var(--steel); box-shadow:var(--shadow-float)}
.nvx-offer__head{padding:14px 22px; background:var(--sky-soft); background-image:var(--tex-grid); border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap}
.nvx-offer--main .nvx-offer__head{background:var(--steel); background-image:none; color:var(--on-steel); border-bottom-color:var(--steel)}
.nvx-offer__head .n-eyebrow{color:inherit}
.nvx-offer--main .nvx-offer__head .n-eyebrow{color:var(--on-steel)}
.nvx-offer__body{padding:var(--s-5) 22px 22px; display:flex; flex-direction:column; gap:var(--s-3); flex:1}
.nvx-offer h3{font-family:var(--font-serif); font-weight:400; font-size:1.625rem; line-height:1.2; letter-spacing:var(--ls-tight)}
.nvx-offer__price{font:400 2.5rem/1 var(--font-mono); letter-spacing:-.03em; display:flex; align-items:baseline; gap:10px; flex-wrap:wrap}
.nvx-offer__price small{font:500 .6875rem/1 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.nvx-offer__who{font-size:.9375rem; line-height:1.45; color:var(--muted)}
.nv .nvx-offer ul{list-style:none; padding:0; margin:var(--s-2) 0 var(--s-4); display:flex; flex-direction:column; gap:10px}
.nvx-offer li{display:flex; gap:10px; align-items:flex-start; font-size:.9375rem; line-height:1.45}
.nvx-offer li .n-icon{color:var(--teal-ink); margin-top:3px; flex:none}
.nvx-offer p.nvx-offer__txt{font-size:.9375rem; color:var(--muted); line-height:1.5}
.nvx-offer .n-btn{margin-top:auto}
.nvx-offer__pill{font:500 .6875rem/1.4 var(--font-mono); letter-spacing:.04em; color:var(--teal-ink); background:var(--teal-soft); border-radius:var(--r-pill); padding:2px 10px}
.nvx-offer--main .nvx-offer__pill{background:transparent; box-shadow:inset 0 0 0 1px currentColor; color:var(--on-steel)}

/* ---------- Bande EF courte, bande encre (compte à rebours, échéance) ---------- */
.nvx-ef{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-m); padding:14px 22px; display:flex; align-items:center; gap:var(--s-4); flex-wrap:wrap}
.nvx-ef img{height:32px; width:auto; object-fit:contain}
:root[data-theme="dark"] .nvx-ef img{background:#fff; padding:5px 9px; border-radius:var(--r-s); height:42px}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .nvx-ef img{background:#fff; padding:5px 9px; border-radius:var(--r-s); height:42px} }
.nvx-ef__txt{flex:1 1 240px; display:flex; flex-direction:column; gap:2px; min-width:0}
.nvx-ef__txt .n-eyebrow{font-size:.6875rem}
.nvx-ef__txt p{font:600 1rem/1.3 var(--font-sans)}
.nvx-ef .n-btn{white-space:nowrap}
.nvx-ef .n-btn.p-ef-link{color:var(--text)}

.nvx-countdown{background:var(--ink); color:#fff; border-radius:var(--r-m); padding:18px 24px; display:flex; align-items:center; justify-content:space-between; gap:var(--s-4); flex-wrap:wrap; margin-top:var(--s-5)}
.nvx-countdown .n-eyebrow{color:var(--gold)}
.nvx-countdown__l{font:400 1rem/1.4 var(--font-sans); color:#DCE6EE; margin-top:4px}
.nvx-countdown__d{font:400 clamp(2rem,1.6rem + 1.4vw,2.75rem)/1 var(--font-mono); letter-spacing:-.02em; color:var(--gold)}
.nvx-countdown .n-pill--gold{background:#FFE9BC; color:#8A5A00}   /* couleurs fixes : la bande est encre dans les deux modes (5:1) */

/* ---------- Parler à quelqu'un : une ligne ---------- */
.nvx-talk{display:flex; align-items:center; justify-content:space-between; gap:var(--s-4); flex-wrap:wrap; padding:var(--s-5) 0; border-top:1px solid var(--line-strong); border-bottom:1px solid var(--line-strong)}
.nvx-talk__txt{display:flex; align-items:center; gap:12px; font-size:.9375rem; color:var(--text); min-width:0}
.nvx-talk__txt .n-icon{color:var(--steel-deep); flex:none}
.nvx-talk__txt b{font-weight:600}

/* ---------- Rangées texte + visuel ---------- */
.nvx-split{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(28px,5vw,80px); align-items:center}
.nvx-split + .nvx-split{margin-top:clamp(56px,7vw,112px)}
.nvx-split--flip > :first-child{order:2}
@media (max-width:860px){ .nvx-split{grid-template-columns:minmax(0,1fr); gap:var(--s-6)} .nvx-split--flip > :first-child{order:0} }
.nvx-split h2{font-size:clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height:1.2; max-width:18ch}
.nvx-split .n-lead{max-width:44ch}
.nvx-split .n-btn--outline{align-self:flex-start}

/* ---------- Cartes de matière sur bande encre ---------- */
.nvx-ink{background:var(--ink); color:#fff}
.nvx-ink h2,.nvx-ink h3{color:#fff}
.nvx-ink .n-eyebrow{color:var(--gold)}
.nvx-ink .n-lead,.nvx-ink .nvx-head p{color:#C9D6E0}
.nvx-subject{background:var(--ink-2); border:1px solid rgba(255,255,255,.08); border-radius:var(--r-m); padding:var(--s-5); display:flex; flex-direction:column; gap:10px; min-width:0; color:#fff}
.nvx-subject h3{font-size:1.5rem}
.nvx-subject p{color:#C9D6E0; font-size:.9375rem; line-height:1.5}
.nvx-subject__n{margin-top:auto; padding-top:var(--s-3); display:flex; align-items:baseline; gap:8px}
.nvx-subject__n b{font:400 1.75rem/1 var(--font-mono); letter-spacing:-.02em; color:var(--sky)}
.nvx-subject__n small{font-size:.875rem; color:#C9D6E0}
.nvx-subject .n-btn--outline{color:#fff; box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55); align-self:flex-start}
.nvx-subject .n-btn--outline:hover{box-shadow:inset 0 0 0 1.5px #fff; background:rgba(255,255,255,.08)}
:root[data-theme="dark"] .nvx-ink{background:var(--ink-deepest)} :root[data-theme="dark"] .nvx-subject{background:var(--surface)}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .nvx-ink{background:var(--ink-deepest)} :root:not([data-theme="light"]) .nvx-subject{background:var(--surface)} }
.nvx-ink .n-figures .n-stat__sub{color:#C9D6E0}

/* ---------- Déroulé d'une journée : une carte par heure ---------- */
.nvx-timeline{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px}
@media (max-width:1060px){ .nvx-timeline{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:560px){ .nvx-timeline{grid-template-columns:repeat(2,minmax(0,1fr))} }
.nvx-timeline > div{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-m); padding:16px; display:flex; flex-direction:column; gap:6px; min-width:0}
.nvx-timeline b{font:400 1.25rem/1 var(--font-mono); color:var(--steel-deep)}
.nvx-timeline span{font-size:.875rem; color:var(--muted); line-height:1.4}
.nvx-rule{border:0; border-top:1px solid var(--line-strong); margin:var(--s-5) 0 0}

/* ---------- Grille de cartes « guides » et petits liens ---------- */
.nvx-go{color:var(--steel-deep); font:500 .9375rem/1.3 var(--font-sans); display:inline-flex; align-items:center; gap:6px; text-decoration:none}
.nvx-go:hover{text-decoration:underline}

/* ---------- Fin de page : bande encre + appel ---------- */
/* Le pied de page (socle) garde une marge haute de --section-y : après une bande encre elle fait une bande vide, on la reprend ici.
   SEULEMENT quand la bande est le dernier bloc de la page (17/11/2026, point 33) : sur les pages concours une FAQ la suit, et la
   marge négative remontait cette FAQ par-dessus le bas de la bande (le bouton « Commencer gratuitement » collé à la section suivante). */
.nvx-final{background:var(--ink); color:#fff; text-align:center}
main > .nvx-final:last-child{margin-bottom:calc(-1 * var(--section-y))}
.nvx-final h2{color:#fff}
.nvx-final .n-container{display:flex; flex-direction:column; align-items:center; gap:var(--s-5)}
.nvx-final p{color:#DCE6EE; font-size:var(--t-lead); max-width:44ch}

/* ---------- En-tête centré de section ---------- */
.nvx-head{display:flex; flex-direction:column; gap:var(--s-3); margin-bottom:var(--s-7); align-items:center; text-align:center}
.nvx-head p{color:var(--muted); font-size:var(--t-lead); line-height:var(--lh-lead); max-width:46ch}
.nvx-head--left{align-items:flex-start; text-align:left}
.nvx-sources{font-size:.8125rem; color:var(--muted); line-height:1.6; overflow-wrap:anywhere}
.nvx-sources a{color:var(--muted)}
