/* Accueil : bloc « forces » (retours de Jordi du 19/11/2026). Classes propres à ce bloc (préfixe nvf-).
   Carte compacte (retour de Jordi : raccourcir la section), radar avec la moyenne du top 20 % en pointillés dorés, 10 semaines animées par nv_home_forces.js. */

/* Doré du trait : var(--gold) en sombre ; un cran plus soutenu sur fond blanc pour rester bien visible. */
.nvf-frame{--nvf-gold-line:#E9A43A; padding:clamp(10px,1.4vw,14px); container-type:inline-size}
:root[data-theme="dark"] .nvf-frame{--nvf-gold-line:var(--gold)}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .nvf-frame{--nvf-gold-line:var(--gold)} }

.nvf-card{padding:14px 18px; gap:10px}
.nvf-head{display:flex; justify-content:space-between; align-items:center; gap:12px}
.nvf-head .n-pill{flex:none}
.nvf-head .n-eyebrow{font-size:.8125rem; white-space:nowrap; letter-spacing:.07em}
.nvf-wk{display:inline-block; min-width:2ch; color:var(--steel-deep); font-weight:700}
.nvf-wk.is-tick{animation:nvf-tick .6s var(--ease, ease) both}
@keyframes nvf-tick{
  0%{transform:translateY(-.45em); opacity:0}
  45%{transform:translateY(0); opacity:1; color:var(--gold-ink)}
  100%{transform:none; opacity:1}
}

/* Frise des 10 semaines */
.nvf-frise{flex:1; min-width:0; display:flex; align-items:center; gap:8px; font-size:.6875rem; color:var(--muted)}
.nvf-frise__crans{flex:1; display:flex; gap:3px}
.nvf-frise__crans i{flex:1; height:6px; border-radius:var(--r-pill); background:var(--mist); transition:background-color .3s, opacity .3s}
.nvf-frise__crans i.is-done{background:var(--steel); opacity:.35}
.nvf-frise__crans i.is-now{background:var(--steel)}

/* Radar + barres côte à côte ; empilés quand la carte est étroite */
.nvf-body{display:flex; align-items:center; gap:18px}
.nvf-radar{width:192px; flex:none; height:auto; display:block; overflow:visible}
.nvf-side{flex:1; min-width:0; display:flex; flex-direction:column; gap:9px}

.nvf-grid{fill:none; stroke:var(--line-strong); stroke-width:1; stroke-dasharray:3 3}
.nvf-me{fill:var(--sky); fill-opacity:.32; stroke:var(--steel); stroke-width:2; stroke-linejoin:round}
.nvf-top{fill:none; stroke:var(--nvf-gold-line); stroke-width:2.6; stroke-dasharray:5 3.5; stroke-linejoin:round}
.nvf-name{font:500 12px var(--font-mono); fill:var(--muted)}
.nvf-gold{font:700 12.5px var(--font-mono); font-variant-numeric:tabular-nums; fill:var(--gold-ink)}

.nvf-bars{display:flex; flex-direction:column; gap:6px; font-size:.8125rem}
.nvf-row{display:flex; flex-direction:column; gap:3px}
.nvf-row__lab{display:flex; justify-content:space-between; gap:8px; line-height:1.2}
.nvf-row__lab b{font-weight:600}
.nvf-bar{position:relative; height:7px; border-radius:var(--r-pill); background:var(--mist)}
.nvf-bar i{display:block; height:100%; border-radius:inherit; background:var(--steel)}
.nvf-bar--coral i{background:var(--coral)}
/* Repère doré : la moyenne du top 20 % sur la barre */
.nvf-bar s{position:absolute; top:-3px; width:3px; height:13px; margin-left:-1.5px; border-radius:2px; background:var(--nvf-gold-line); box-shadow:0 0 0 1.5px var(--surface)}

.nvf-rank{display:flex; flex-direction:column; gap:6px; font-size:.8125rem; line-height:1.2}
.nvf-rank > span{display:flex; justify-content:space-between; gap:8px}
.nvf-rank b{font-weight:700}
.nvf-rank__n{display:inline-block; min-width:2ch; text-align:right}
.nvf-rank__scale{position:relative; height:6px; border-radius:var(--r-pill); background:var(--mist); margin-inline:7px}
.nvf-rank__scale i{position:absolute; top:50%; width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 2px var(--surface)}

.nvf-legend{display:flex; align-items:center; gap:8px; margin:0; font-size:.75rem; line-height:1.3; color:var(--muted)}
.nvf-legend i{flex:none; width:22px; height:0; border-top:2.6px dashed var(--nvf-gold-line)}

/* Carte moyenne : la frise passe sous l'en-tête */
@container (max-width:480px){
  .nvf-head{flex-wrap:wrap; row-gap:8px}
  .nvf-frise{order:3; flex-basis:100%}
}
@container (max-width:440px){
  .nvf-head .n-eyebrow{font-size:.75rem; letter-spacing:.05em}
  .nvf-body{flex-direction:column; align-items:stretch; gap:10px}
  .nvf-radar{width:100%; max-width:214px; align-self:center}
  .nvf-card{padding:14px}
}

@media (prefers-reduced-motion: reduce){
  .nvf-wk.is-tick{animation:none}
  .nvf-frise__crans i{transition:none}
}
