/* Nova V3 — visuel V1 + parcours V2 : la carte se dessine autour du H de Nova */
.nv2-proto { margin: 0; justify-self: start; font-family: var(--police-donnees); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 999px; padding: 4px 10px; }
.nv2-aide { margin: -6px 0 12px; color: var(--texte-doux, var(--texte)); font-size: var(--t-s, .95rem); }
.nv1-puce input[type=checkbox]:checked + span { background: var(--accent); color: #101211; border-color: var(--accent); }
.nv2-stations .nv1-puce input[type=checkbox]:checked + span { background: var(--accent); border-color: var(--accent); color: #101211; }
.nv1-puce input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.nv2-tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nv2-tag { font: inherit; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px 8px 18px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--fond)); color: var(--texte); border: 1px solid var(--accent); cursor: pointer; }
.nv2-tag svg { width: 12px; height: 12px; }
.nv2-tag:hover, .nv2-tag:focus-visible { background: color-mix(in srgb, #FFB4A8 18%, var(--fond)); border-color: #FFB4A8; }
.nv2-tag:focus-visible, .nv2-sug:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nv2-vide { color: var(--texte-doux, var(--texte)); }
.nv2-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.nv2-sug { font: inherit; font-size: var(--t-s, .95rem); min-height: 44px; padding: 6px 14px; border-radius: 999px; background: transparent; color: var(--texte); border: 1px dashed color-mix(in srgb, var(--texte) 50%, transparent); cursor: pointer; }
.nv2-ajout input { font-size: var(--t-m, 1.05rem); }
.nv2-h { font-size: var(--t-m, 1.05rem); margin: 6px 0 10px; }
.nv2-modules { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.nv2-modules li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--texte) 18%, transparent); }
.nv2-modules a { color: var(--texte); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nv2-modules a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nv2-modules span { font-size: var(--t-s, .9rem); color: var(--texte-doux, var(--texte)); }
.nv2-note { margin: 14px 0 0; font-size: var(--t-s, .9rem); color: var(--texte-doux, var(--texte)); }
.nv3 .nv1-carte dl div { grid-template-columns: 12rem 1fr; }
.nv3 .nv2-col { max-width: 46rem; }
/* scène : le H au centre, la carte autour */
.nv3-avatar { align-self: start; position: sticky; top: calc(var(--barre, 72px) + 12px); padding-top: clamp(8px, 2vw, 32px); }
.nv3-scene { position: relative; width: min(100%, 560px); aspect-ratio: 720 / 530; display: grid; place-items: center; }
.nv3-scene .nova-h { width: 28% !important; transition: width .8s var(--courbe-sortie, ease); }
.nv3:not(.nv3-actif) .nv3-scene .nova-h { width: 78% !important; }
.nv3-carte { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nv3-n text { font-family: var(--police-donnees); font-size: 15px; fill: color-mix(in srgb, var(--texte) 86%, transparent); paint-order: stroke; stroke: var(--fond); stroke-width: 4px; stroke-linejoin: round; }
.nv3-n .nv3-c { fill: var(--fond); stroke: color-mix(in srgb, var(--texte) 70%, transparent); stroke-width: 1.6; }
.nv3-n .nv3-halo { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.nv3-n--tool rect { fill: color-mix(in srgb, var(--texte) 80%, transparent); }
.nv3-n--tool text { font-size: 14px; fill: color-mix(in srgb, var(--texte) 72%, transparent); }
.nv3-n--hot .nv3-c { fill: var(--accent); stroke: var(--accent); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent)); }
.nv3-n--hot .nv3-halo { opacity: .8; }
.nv3-n--hot text { fill: var(--accent); }
.nv3-l { stroke: color-mix(in srgb, var(--texte) 22%, transparent); stroke-width: 1; }
.nv3-l--chain { stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1.6; }
.nv3-l--chain.chaud { stroke: var(--accent); stroke-width: 2.4; }
.nv3-l--link { stroke: color-mix(in srgb, var(--texte) 14%, transparent); }
.nv3-l--silo { stroke: #FFB4A8; stroke-width: 1.4; stroke-dasharray: 5 5; }
.nv3-x { stroke: #FFB4A8; stroke-width: 2; fill: none; }
.nv3-p { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.nv3-p--link { fill: var(--texte); filter: none; }
.nv3-nom { margin: 0; font-family: var(--police-donnees); font-size: var(--t-donnees, .85rem); color: var(--texte); text-align: center; }
.nv3:not(.nv3-actif) .nv3-legende { display: none; }
.nv3-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-family: var(--police-donnees); font-size: .8rem; color: var(--texte-doux, var(--texte)); }
.nv3-legende b { color: var(--texte); margin-left: 4px; }
.nv3-pt { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--texte) 70%, transparent); }
.nv3-pt--g { background: var(--accent); border-color: var(--accent); }
.nv3-pt--o { background: color-mix(in srgb, var(--texte) 80%, transparent); border: 0; border-radius: 2px; }
.nv3-pt--s { width: 14px; height: 0; border: 0; border-top: 2px dashed #FFB4A8; border-radius: 0; vertical-align: 3px; }
.nv3.nv3-actif .nova-avatar__nom { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js-mouvement .nv3-n { animation: nv3-entre .6s var(--courbe-sortie, ease) both; }
  .js-mouvement .nv3-l { stroke-dasharray: var(--len) var(--len); animation: nv3-trace .9s var(--courbe-sortie, ease) both; }
  .js-mouvement .nv3-l--silo { stroke-dasharray: 5 5; animation: nv3-fondu .6s ease both; }
  .js-mouvement .nv3-x { animation: nv3-fondu .4s ease both; }
  .js-mouvement .nv3-n--hot .nv3-halo { animation: nv3-pouls 1.8s ease-out infinite; }
  .pause-mouvement .nv3-n, .pause-mouvement .nv3-l, .pause-mouvement .nv3-halo { animation: none !important; }
  @keyframes nv3-entre { from { opacity: 0; } }
  @keyframes nv3-trace { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
  @keyframes nv3-fondu { from { opacity: 0; } }
  @keyframes nv3-pouls { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
}
@media (max-width: 959px) {
  .nv3-avatar { position: relative; top: 0; grid-template-columns: 1fr !important; justify-content: center !important; justify-items: center; padding-top: 0; }
  .nv3-scene { width: min(100%, 420px); }
  .nv3:not(.nv3-actif) .nv3-scene { aspect-ratio: auto; width: clamp(120px, 30vw, 180px); }
  .nv3:not(.nv3-actif) .nv3-scene .nova-h { width: 100% !important; }
  .nv3:not(.nv3-actif) .nv3-carte { display: none; }
  .nv3-n text { font-size: 20px; stroke-width: 5px; }
  .nv3-n:not(.nv3-n--hot) text { display: none; }
  .nv3-legende { font-size: .72rem; gap: 2px 12px; }
  .nv3-nom { font-size: .78rem; }
  .nv3-scene { width: 100%; }
  .nv3-scene .nova-h { width: 26% !important; }
  .nv3 .nv1-carte dl div { grid-template-columns: 1fr; }
}
/* V4 : confirmation (récapitulatif modifiable) */
.nv4-fac { color: var(--texte-doux, var(--texte)); font-weight: 400; }
.nv4-recap { margin-top: 8px; padding: clamp(18px, 2.4vw, 32px); border-radius: 18px; border: 1px solid color-mix(in srgb, var(--texte) 20%, transparent); background: color-mix(in srgb, var(--texte) 4%, var(--fond)); }
.nv4-recap h2:focus { outline: none; }
.nv4-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.nv4-ligne { display: grid; gap: 4px; align-content: start; }
.nv4-ligne--large { grid-column: 1 / -1; }
.nv4-ligne label { font-size: var(--t-s, .9rem); color: var(--texte-doux, var(--texte)); }
.nv4-ligne input, .nv4-ligne textarea { font: inherit; font-size: var(--t-m, 1.05rem); color: var(--texte); background: color-mix(in srgb, var(--texte) 6%, var(--fond)); border: 1px solid color-mix(in srgb, var(--texte) 38%, transparent); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.nv4-ligne input:focus, .nv4-ligne textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.nv4-ligne [aria-invalid="true"], .nv4-consent [aria-invalid="true"] { border-color: #FFB4A8; outline-color: #FFB4A8; }
.nv4-err { margin: 0; min-height: 0; font-size: var(--t-s, .9rem); color: #FFB4A8; }
.nv4-err:empty { display: none; }
.nv4-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; }
.nv4-consent input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.nv4-consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nv4-consent label { font-size: var(--t-s, .95rem); line-height: 1.5; }
.nv4-consent a { color: var(--texte); text-decoration: underline; }
.nv4-merci { margin-top: 8px; padding: clamp(18px, 2.4vw, 32px); border-radius: 18px; border: 1px solid var(--accent); }
.nv4-merci:focus { outline: none; }
@media (max-width: 599px) { .nv4-grille { grid-template-columns: 1fr; } }
.nv3-avatar { padding-bottom: 64px; }

/* ===== V5 (audit) ===== */
.nv5-promesse { font-size: var(--t-m, 1.1rem); line-height: 1.5; max-width: 40rem; margin: .4rem 0 .6rem; color: var(--texte); }
.nv5-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem; padding: 0; }
.nv5-badges li { border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 999px; padding: 4px 12px; font-size: .9rem; color: var(--texte); }
.nv5-pourquoi { display: flex; gap: 8px; align-items: baseline; margin: -.2rem 0 .7rem; font-size: .9rem; color: var(--texte-doux, var(--texte)); }
.nv5-pourquoi span { flex: none; display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 50%; border: 1px solid currentColor; font-size: .75em; font-style: italic; font-weight: 700; }
.nv5-autre { margin-top: .8rem; }
.nv5-synthese dl { display: grid; gap: 6px; margin: 0 0 1rem; padding: 12px 14px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--texte) 5%, transparent); border-radius: 0 10px 10px 0; }
.nv5-synthese dl div { display: grid; grid-template-columns: 11rem 1fr; gap: 10px; }
.nv5-synthese dt { color: var(--texte-doux, var(--texte)); font-size: .9rem; } .nv5-synthese dd { margin: 0; }
.nv5-h4 { margin-bottom: .3rem; }
.nv5-resume { max-width: 30rem; margin: .5rem auto 0; font-size: .88rem; line-height: 1.45; text-align: center; color: var(--texte); }
.nv5-resume p { margin: .15rem 0; } .nv5-resume b { color: var(--accent); font-weight: 600; }
.nv5-apercu .nv5-sous { margin: -.3rem 0 .8rem; color: var(--texte-doux, var(--texte)); }
.nv5-h3 { font-size: 1rem; margin: 1.1rem 0 .4rem; letter-spacing: .01em; }
.nv5-liste, .nv5-gestes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.nv5-gestes li { padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--texte) 22%, transparent); border-radius: 10px; }
.nv5-geste { margin: 0; font-weight: 600; } .nv5-car { margin: .2rem 0; font-size: .9rem; color: var(--texte-doux, var(--texte)); }
.nv5-gestes a { font-size: .9rem; color: var(--accent); text-underline-offset: 3px; }
.nv5-plan { margin: 0; padding-left: 1.3rem; display: grid; gap: 4px; }
.nv5-equipe { margin: 1rem 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--texte) 6%, transparent); font-size: .95rem; }
.nv5-equipe p { margin: 0; }
.nv5-rangs { display: grid; gap: 0; margin: .6rem 0 1rem; border-top: 1px solid color-mix(in srgb, var(--texte) 18%, transparent); }
.nv5-rang { border-bottom: 1px solid color-mix(in srgb, var(--texte) 18%, transparent); padding: 10px 0; }
.nv5-rang__tete { display: grid; grid-template-columns: 10rem 1fr auto; gap: 12px; align-items: baseline; }
.nv5-rang__titre { margin: 0; font-size: .9rem; color: var(--texte-doux, var(--texte)); }
.nv5-rang__vue { margin: 0; overflow-wrap: anywhere; }
.nv5-modif { font: inherit; font-size: .9rem; background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 4px; min-height: 44px; }
.nv5-modif:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nv5-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 8px; }
.nv5-edit--1 { grid-template-columns: 1fr; }
.nv5-lien { margin-left: 1rem; }
@media (max-width: 599px) {
  .nv5-rang__tete { grid-template-columns: 1fr auto; } .nv5-rang__vue { grid-column: 1 / -1; grid-row: 2; }
  .nv5-edit { grid-template-columns: 1fr; }
  .nv5-synthese dl div { grid-template-columns: 1fr; gap: 0; }
  .nv5-lien { display: block; margin: .8rem 0 0; }
  /* carte compacte sur mobile */
  .nv3.nv3-actif .nv3-scene { width: min(100%, 330px); margin: 0 auto; }
  .nv3.nv3-actif .nv3-carte text { font-size: 15px; }
  .nv5-resume { font-size: .8rem; }
}
