/* CHANTIER A · LES POINTS DE CONSTANCE ET DE CROISSANCE (01/10 ; D-PT7, D-PT8, D-PT5 ; FUSION-POINTS.md). Un fichier à part (la fusion
   des 3 chantiers du 01/10 reste simple). Classe, sobre, « entre le jeu et un peu Instagram » : aucun rouge, aucune couleur de poste.
   · « Ta série » à l'Accueil : 3 lignes au plus (⏰ · 💰 · 🚪), sans barre ; tenue aujourd'hui : le chiffre et ✓ en vert ;
   · les Tops : la mesure qui classe une ligne (🎯, sinon 🎤, sinon 🚪), en petit à côté du chiffre ;
   · le congé prévu dans la fiche (le Gérant) et le bureau fermé (Les points) : 6 pastilles de jour, un toucher ; ‹ › les suivantes.
   La vérification du 01/10 : la carte « Ta série » toujours là (un titre, les 3 lignes même à 0, un toucher : la règle) ; la ligne
   qui brille a ses coins arrondis ; un jour de congé : 🌴 à la place de son rond. */
.app--nova .nv-s3 { gap: 2px; padding-top: 10px; padding-bottom: 10px; }
.app--nova .nv-s3-b { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app--nova .nv-s3-h { display: flex; align-items: center; justify-content: space-between; min-height: 22px; margin-bottom: 2px; }
.app--nova .nv-s3-i { color: var(--gris); font-size: 15px; line-height: 1; }
.app--nova .nv-s3-l { display: flex; align-items: center; gap: 8px; min-height: 30px; margin: 0 -4px; padding: 0 4px; border-radius: 12px; }
.app--nova .nv-s3-ico { flex: none; width: 26px; font-size: 19px; line-height: 1; text-align: center; }
.app--nova .nv-s3-t { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app--nova .nv-s3-t b { font-family: var(--f-titre); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.app--nova .nv-s3-l--ok .nv-s3-t b { color: var(--vert); }
/* la semaine en petits ronds : pleins (tenus), vides (à venir) ; tous pleins : la couleur « or » de la fête */
.app--nova .nv-s3-sem { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.app--nova .nv-s3-sem i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ligne); background: transparent; }
.app--nova .nv-s3-sem i.on { border-color: var(--vert); background: var(--vert); }
.app--nova .nv-s3-sem--ok i.on { border-color: var(--etoile); background: var(--etoile); }
.app--nova .nv-s3-sem i.nv-s3-conge { width: auto; height: auto; border: 0; border-radius: 0; font-size: 10px; font-style: normal; line-height: 1; }
/* la règle (un toucher sur « Ta série ») : 3 lignes, puis les 3 paliers en grand */
.app--nova .nv-s3r { display: flex; flex-direction: column; gap: 10px; }
.app--nova .nv-s3r-l { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--encre); }
.app--nova .nv-s3r-p { display: flex; gap: 8px; margin-top: 4px; }
.app--nova .nv-s3r-p span { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; background: color-mix(in srgb, var(--encre) 6%, transparent); }
.app--nova .nv-s3r-p b { font-family: var(--f-titre); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--encre); }
.app--nova .nv-s3r-p small { font-size: 14px; color: var(--gris); }
.app--nova .nv-s3r-s { margin: 0; font-size: 15px; color: var(--gris); }

.app--nova .nv-top-ico { font-size: .82em; margin-left: 2px; }
.app--nova .nv-top1 .nv-top-pts .nv-top-ico { font-size: 15px; }
.app--nova .nv-top-nb .nv-top-pts { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }

.app--nova .nv-conges { padding: 10px 6px 12px; border-top: 1px solid var(--ligne); }
.app--nova .nv-conges-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.app--nova .nv-conges-t { margin: 0 6px; font-weight: 700; font-size: 16px; }
.app--nova .nv-conges-fls { display: flex; gap: 4px; }
.app--nova .nv-conges-fl { min-width: 48px; min-height: 48px; padding: 0; border: 1px solid var(--ligne); border-radius: 14px; background: transparent; color: var(--encre); font-size: 22px; line-height: 1; }
.app--nova .nv-conges-fl[disabled] { opacity: .3; }
.app--nova .nv-conge-j[disabled] { opacity: .4; }
.app--nova .nv-conges-j { display: flex; gap: 4px; }
.app--nova .nv-conge-j { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 48px; min-height: 52px; padding: 4px 0; border-radius: 14px; text-align: center; line-height: 1.1; }
.app--nova .nv-conge-j small { font-size: 12px; font-weight: 700; color: var(--gris); }
.app--nova .nv-conge-j b { font-family: var(--f-titre); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.app--nova .nv-conge-j[aria-pressed="true"]::before { content: none; }
.app--nova .nv-conge-j[aria-pressed="true"] small { color: inherit; }

.app--nova .nv-pts-v--long { font-size: 16px; }

/* ============================== JEU-REGLES (12/10/2026) : la journée en paliers, la barre d'équipe, la série en semaines ==============================
   Le look JEU de NOVA, sobre : trois métaux (le bronze, l'argent, l'or : --etoile), des crans sur les barres, des médailles au bout,
   presque aucun mot. Clair et sombre : les jetons de base.css (--etoile, --vert, --surface-2) et ces trois-là. */
#app, .app--nova, .app--grand { --jr-bronze: #A8642B; --jr-argent: #7C8B96; --jr-or: var(--etoile); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #app, :root:not([data-theme="light"]) .app--nova, :root:not([data-theme="light"]) .app--grand { --jr-bronze: #D68A4C; --jr-argent: #B7C3CC; } }
:root[data-theme="dark"] #app, :root[data-theme="dark"] .app--nova, :root[data-theme="dark"] .app--grand { --jr-bronze: #D68A4C; --jr-argent: #B7C3CC; }

/* une médaille (ou sa place, un rond vide) */
.jr-med { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 17px; line-height: 1; }
.jr-med--0::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1.5px dashed var(--ligne); }
/* les crans d'une barre (le bronze, l'argent) */
.app--nova .nv-barre--crans { overflow: visible; }
.app--nova .nv-barre--crans i { overflow: hidden; }
.app--nova .nv-barre u, .jr-barre u { position: absolute; top: -2px; bottom: -2px; left: calc(var(--x) * 100%); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--surface); box-shadow: 0 0 0 .5px color-mix(in srgb, var(--encre) 18%, transparent); text-decoration: none; }
.app--nova .nv-mi-l--p1 .nv-mi-n b { color: var(--jr-bronze); }
.app--nova .nv-mi-l--p2 .nv-mi-n b { color: var(--jr-argent); }
.app--nova .nv-mi-l--p3 { --c: var(--vert); }
.app--nova .nv-mi-l--p3 .nv-mi-n b { color: var(--vert); }
/* une barre simple (l'équipe, la bande, le grand écran) */
.jr-barre { position: relative; display: block; flex: 1 1 auto; min-width: 40px; height: 10px; border-radius: 999px; background: var(--surface-2); }
.jr-barre i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--m-portes, var(--cyan)); }

/* LA PISTE DE SA JOURNÉE (en tête des missions) : la médaille gagnée · la piste à 3 médailles · « 6/12 » */
.app--nova .jr-pj { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--encre) 5%, transparent); }
.app--nova .jr-pj--1 { background: color-mix(in srgb, var(--jr-bronze) 14%, transparent); }
.app--nova .jr-pj--2 { background: color-mix(in srgb, var(--jr-argent) 18%, transparent); }
.app--nova .jr-pj--3 { background: color-mix(in srgb, var(--jr-or) 20%, transparent); }
.app--nova .jr-pj .jr-pj-grande { width: 34px; height: 34px; font-size: 28px; }
.app--nova .jr-pj .jr-pj-grande.jr-med--0::before { width: 22px; height: 22px; }
.app--nova .jr-pj-piste { position: relative; flex: 1 1 auto; min-width: 0; height: 26px; }
.app--nova .jr-pj-fond { position: absolute; left: 0; right: 12px; top: 9px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.app--nova .jr-pj-fond i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--jr-bronze), var(--jr-argent) 60%, var(--jr-or)); }
.app--nova .jr-pj-m { position: absolute; top: 1px; left: calc(var(--x) * (100% - 12px)); transform: translateX(-50%); font-size: 18px; line-height: 24px; filter: grayscale(1); opacity: .45; }
.app--nova .jr-pj-m.on { filter: none; opacity: 1; }
.app--nova .jr-pj-n { flex: none; font-family: var(--f-titre); font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; }
.app--nova .jr-pj-n b { font-size: 20px; font-weight: 800; color: var(--encre); }

/* LA BARRE D'ÉQUIPE (l'Accueil) */
.app--nova .jr-eq { display: flex; flex-direction: column; gap: 6px; }
.app--nova .jr-eq-qui { font-family: var(--f-titre); font-weight: 700; color: var(--gris); }
.app--nova .jr-eq-l { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.app--nova .jr-eq-mot { flex: none; width: 92px; font-size: 14px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app--nova .jr-eq-n { flex: none; min-width: 96px; font-family: var(--f-titre); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app--nova .jr-eq-n b { font-size: 19px; font-weight: 800; }
.app--nova .jr-eq-n small { color: var(--gris); }
.app--nova .jr-eq-l--semaine .jr-eq-n b { font-size: 16px; }
.app--nova .jr-eq-l--or .jr-barre i { background: var(--vert); }

/* TA SÉRIE en semaines */
.app--nova .jr-sw .jr-sw-l { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.app--nova .jr-sw-feu { font-size: 24px; line-height: 1; filter: grayscale(1); opacity: .5; }
.app--nova .jr-sw-feu.on { filter: none; opacity: 1; }
.app--nova .jr-sw-n { font-size: 15px; font-weight: 600; color: var(--encre); }
.app--nova .jr-sw-n b { font-family: var(--f-titre); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.app--nova .jr-sw-rec { color: var(--gris); font-size: 13px; }
.app--nova .jr-sw-joker { margin-left: auto; font-size: 20px; line-height: 1; }
.app--nova .jr-sw-joker--pris { filter: grayscale(1); opacity: .35; }
.app--nova .jr-sw-sem { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.app--nova .jr-sw-ronds { display: inline-flex; gap: 6px; flex: 1 1 auto; }
.app--nova .jr-rd { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.app--nova .jr-rd i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ligne); background: transparent; }
.app--nova .jr-rd small { font-size: 11px; color: var(--gris); line-height: 1; }
.app--nova .jr-rd--1 i { border-color: var(--jr-bronze); background: var(--jr-bronze); }
.app--nova .jr-rd--2 i { border-color: var(--jr-argent); background: var(--jr-argent); }
.app--nova .jr-rd--3 i { border-color: var(--jr-or); background: var(--jr-or); }
.app--nova .jr-rd--venir i { border-style: dashed; }
.app--nova .jr-rd--ferme i { border-color: transparent; background: color-mix(in srgb, var(--encre) 8%, transparent); }
.app--nova .jr-sw-c { flex: none; font-family: var(--f-titre); font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; }
.app--nova .jr-sw-c b { font-size: 20px; font-weight: 800; color: var(--encre); }
.app--nova .jr-sw-c--ok, .app--nova .jr-sw-c--ok b { color: var(--vert); }
.app--nova .jr-sw-l2 { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ligne); font-size: 14px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app--nova .jr-sw-best b { font-family: var(--f-titre); font-weight: 800; font-size: 16px; color: var(--encre); }

/* LE PROFIL : sa série, ses records */
.app--nova .jr-pf { display: flex; flex-direction: column; gap: 8px; }
.app--nova .jr-pf-serie { display: flex; align-items: baseline; gap: 6px; font-size: 22px; }
.app--nova .jr-pf-serie b { font-family: var(--f-titre); font-weight: 800; font-size: 30px; }
.app--nova .jr-pf-serie small { font-size: 15px; color: var(--encre); }
.app--nova .jr-pf-rec { margin-left: auto; font-size: 14px; color: var(--gris); }
.app--nova .jr-pf-recs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.app--nova .jr-pf-r { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: color-mix(in srgb, var(--jr-or) 12%, transparent); font-size: 17px; }
.app--nova .jr-pf-r b { font-family: var(--f-titre); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }

/* LE DUEL POUR L'HONNEUR */
.app--nova .df-honneur { margin: 6px 0 10px; padding: 10px 12px; border-radius: 12px; text-align: center; font-family: var(--f-titre); font-weight: 700; font-size: 18px; background: color-mix(in srgb, var(--etoile) 12%, transparent); }

/* LA BANDE (toutes les pages de la journée) : la médaille de sa journée, la petite barre de l'équipe ; les paliers des chiffres */
.bd-jr { flex: none; display: inline-flex; align-items: center; gap: 2px; font-family: var(--f-titre); font-weight: 700; font-size: 13px; color: var(--gris); }
.bd-jr .jr-med { width: 18px; height: 18px; font-size: 15px; }
.bd-eq { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 13px; }
.bd-eq .jr-barre--bande { width: 34px; min-width: 34px; flex: none; height: 6px; }
.bd-eq .jr-barre--bande u { top: -1px; bottom: -1px; }
.bd-l2--missions .bd-m--p1 b { color: var(--jr-bronze, #A8642B); }
.bd-l2--missions .bd-m--p2 b { color: var(--jr-argent, #7C8B96); }
.bd-barres span u { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--surface); text-decoration: none; }
html[data-ecran="j05"] .app:not(.app--grand) > .zone-bandeau .bd-jr { order: 2; }
html[data-ecran="j05"] .app:not(.app--grand) > .zone-bandeau .bd-jr small { display: none; }
html[data-ecran="j05"] .app:not(.app--grand) > .zone-bandeau .bd-eq { order: 2; }
html[data-ecran="j05"] .app:not(.app--grand) > .zone-bandeau .bd-eq .jr-barre--bande { width: 26px; min-width: 26px; }

/* LE GRAND ÉCRAN DU GÉRANT : la barre d'équipe EN GRAND, en haut de la carte (comme un tableau de jeu) */
.app--grand .jr-ge { position: relative; width: min(560px, 100%); min-width: 320px; padding: 12px 16px 10px;
  border-radius: 18px; border: 1px solid color-mix(in srgb, var(--ligne) 75%, transparent); background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 6px 24px rgba(21, 33, 42, .18); pointer-events: none; }
.app--grand .jr-ge[hidden] { display: none; }
.app--grand .jr-ge-t { display: flex; align-items: baseline; gap: 12px; font-family: var(--f-titre); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.app--grand .jr-ge-ens { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; }
.app--grand .jr-ge-l { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.app--grand .jr-ge-mot { flex: none; width: 96px; font-size: 15px; color: var(--gris); }
.app--grand .jr-ge-n { flex: none; min-width: 130px; font-family: var(--f-titre); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app--grand .jr-ge-n b { font-size: 30px; font-weight: 800; color: var(--encre); }
.app--grand .jr-ge-n small { color: var(--gris); }
.app--grand .jr-ge-l--semaine .jr-ge-n b { font-size: 22px; }
.app--grand .jr-ge-piste { position: relative; flex: 1 1 auto; min-width: 0; padding-top: 18px; }
.app--grand .jr-barre--grand { height: 14px; }
.app--grand .jr-ge-l--semaine .jr-barre--grand { height: 9px; }
.app--grand .jr-ge-m { position: absolute; top: -2px; left: calc(var(--x) * 100%); transform: translateX(-50%); font-size: 16px; line-height: 18px; filter: grayscale(1); opacity: .45; }
.app--grand .jr-ge-m.on { filter: none; opacity: 1; }
.app--grand .jr-ge-med { width: 34px; height: 34px; font-size: 28px; }
.app--grand .jr-ge-l--semaine .jr-ge-med { width: 26px; height: 26px; font-size: 21px; }
.app--grand .jr-ge-l--semaine .jr-ge-m { display: none; }
@media (prefers-reduced-motion: reduce) { .jr-barre i, .app--nova .jr-pj-fond i { transition: none; } }

/* jeu-etape1 (12/10) : avec « ❄ Blocs seulement » en haut à droite de la carte, la barre en grand s'arrête avant lui (à l'ordinateur, le
   bouton descend à 70 px : la barre passait dessous, « On gagne ensemble » coupé) */
.app--grand .get-carte-zone:has(.get-hiver:not([hidden])) .jr-ge { width: min(560px, calc(100% - 110px)); }

/* premiere-porte (13/10) : « 🥇 First one in the field : Prénom I. » — en tête du Jour EN DIRECT (l'Accueil) et sous la barre d'équipe
   du grand écran ; l'or des trophées (--etoile), une seule ligne, jamais une heure */
.app--nova .nv-pp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 2px 4px 8px; padding: 6px 10px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--etoile) 55%, transparent);
  background: color-mix(in srgb, var(--etoile) 14%, var(--surface)); font-size: 12px; line-height: 1.3; }
.app--nova .nv-pp-t { font-weight: 700; color: var(--encre); }
.app--nova .nv-pp-n { font-weight: 800; color: var(--encre); }
.app--nova .nv-pp--toi { box-shadow: 0 0 0 2px color-mix(in srgb, var(--etoile) 45%, transparent); }
.app--grand .jr-ge-pp { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--ligne) 70%, transparent);
  font-family: var(--f-titre); font-size: 16px; font-weight: 700; color: var(--encre); }
.app--grand .jr-ge-pp b { font-size: 20px; font-weight: 800; }
/* la bande du Terrain (et des écrans de la journée) : « 🥇 Léo P. » (la phrase entière : aria-label, title) ; sur la carte (la ligne mince,
   pleine à 390 px) : la médaille seule, cerclée d'or quand c'est lui */
.bd-pp { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--etoile) 55%, transparent); background: color-mix(in srgb, var(--etoile) 16%, var(--surface));
  font-family: var(--f-titre); font-size: 12px; font-weight: 700; color: var(--encre); }
.bd-pp--toi { box-shadow: 0 0 0 1px color-mix(in srgb, var(--etoile) 60%, transparent); }
/* sur la carte du Terrain : la bande fine est pleine à 390 px (une médaille de plus y rognait le chiffre des closes) — la pastille y est
   cachée ; le 1er de l'équipe se lit dans le Jour en direct (l'Accueil), la bande à 2 lignes des autres écrans, le grand écran */
html[data-ecran="j05"] .app:not(.app--grand) > .zone-bandeau .bd .bd-pp { display: none; }
