/* NOVA Terrain — les styles des écrans, repris des modules du prototype (5-prototype/ecrans/*.js : jr- c5- prl- mo- cx-),
   puis les ajouts de l’app (carte Leaflet, identité). Propriété : équipe Téléphone. */
/* ---- journée (10-journee.js, préfixe jr-) ---- */

.jr-cahier { margin: auto 0 0; padding-top: 18px; text-align: center; font-size: 11.5px; color: var(--gris-clair); letter-spacing: .02em; }
.jr-proto { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; border: 1.5px dashed var(--gris-clair); border-radius: 12px; background: transparent; color: var(--gris); cursor: pointer; text-align: left; font: inherit; font-size: 14.5px; line-height: 1.3; }
.jr-proto:active { background: var(--surface-2); }
.jr-proto-tag { flex: none; font-family: var(--f-titre); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--gris); }
.jr-proto-texte { flex: 1; min-width: 0; }
.jr-proto-note { font-size: 12.5px; color: var(--gris); text-align: center; }
.jr-tete { display: flex; align-items: center; gap: 12px; }
.jr-tete-textes { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jr-tete-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-weight: 700; font-size: 16px; }
.jr-tete-marque { color: var(--gris); font-weight: 600; font-size: 14px; }
.jr-date { font-size: 30px; line-height: 1.05; }
.jr-ligne { display: flex; gap: 10px; align-items: flex-start; }
.jr-ligne-icone { flex: none; width: 24px; text-align: center; font-size: 18px; line-height: 1.3; }
.jr-ligne-texte { flex: 1; min-width: 0; }
.jr-ligne-texte .jr-mini { display: block; font-size: 13.5px; color: var(--gris); margin-top: 1px; }
.jr-zone-icone { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-doux); color: var(--accent-texte); display: grid; place-items: center; font-size: 19px; }
.jr-permis { font-size: 15px; }
.jr-route { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.35; }
.jr-cibles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jr-cibles > div { background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jr-cible-v { font-family: var(--f-titre); font-weight: 800; font-size: 24px; line-height: 1.05; white-space: nowrap; }
.jr-cible-l { font-size: 13px; color: var(--gris); line-height: 1.25; }
.jr-bloc { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--ombre); }
.jr-viser { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jr-pas { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--encre); background: var(--surface); font-family: var(--f-titre); font-weight: 800; font-size: 26px; line-height: 1; cursor: pointer; color: var(--encre); display: grid; place-items: center; padding: 0; }
.jr-pas:active { background: var(--surface-2); }
.jr-viser-v { font-family: var(--f-titre); font-weight: 800; font-size: 32px; min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.jr-fin { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-weight: 600; }
.jr-select, .jr-input { min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--ligne); border-radius: 10px; background: var(--surface); color: var(--encre); font: inherit; font-weight: 600; max-width: 100%; }
.jr-input { width: 100%; font-size: 18px; letter-spacing: .04em; }
.jr-champ { width: 100%; min-height: 88px; padding: 10px 12px; border: 1.5px solid var(--ligne); border-radius: 12px; background: var(--surface); color: var(--encre); font: inherit; resize: vertical; }
.jr-champ:focus, .jr-input:focus, .jr-select:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.jr-sous-bouton { font-size: 13.5px; color: var(--gris); text-align: center; margin-top: -4px; }
.jr-case { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 2px; border: 0; background: transparent; color: var(--encre); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jr-case-boite { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--gris); display: grid; place-items: center; font-weight: 800; font-size: 16px; line-height: 1; color: #FFFFFF; background: var(--surface); }
.jr-case[aria-checked="true"] .jr-case-boite { background: var(--vert); border-color: var(--vert); }
.jr-case-texte { flex: 1; min-width: 0; }
.jr-cases { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); padding: 2px 12px; }
.jr-cases .jr-case + .jr-case { border-top: 1px solid var(--ligne); }
.jr-etoile.pleine { fill: var(--etoile); stroke: var(--etoile); }
.jr-etoile.vide { fill: none; stroke: var(--gris-clair); stroke-width: 1.6; }
.jr-titre-bilan { display: flex; flex-direction: column; gap: 2px; }
.jr-titre-bilan h2 { font-size: 28px; }
.jr-obj { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ligne); }
.jr-obj:first-child { border-top: 0; padding-top: 0; }
.jr-obj:last-child { padding-bottom: 0; }
.jr-obj-icone { flex: none; width: 26px; font-size: 20px; line-height: 1.4; text-align: center; }
.jr-obj-texte { flex: 1; min-width: 0; }
.jr-obj-v { font-family: var(--f-titre); font-weight: 800; font-size: 25px; margin-right: 4px; }
.jr-obj-quand { font-size: 13.5px; color: var(--vert); font-weight: 600; }
.jr-obj-manque { font-size: 13.5px; color: var(--gris); }
.jr-obj svg { flex: none; margin-top: 4px; }
.jr-ent { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; min-height: 40px; border-radius: 8px; overflow: hidden; }
.jr-ent-barre { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--cyan-doux); border-radius: 8px; }
.jr-ent > span:not(.jr-ent-barre) { position: relative; }
.jr-ent-v { font-family: var(--f-titre); font-weight: 800; font-size: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.jr-ent-l { font-weight: 600; font-size: 15px; }
.jr-ent-t { font-size: 13px; color: var(--gris); white-space: nowrap; }
.jr-ents { display: flex; flex-direction: column; gap: 3px; }
.jr-cyd { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--ligne); }
.jr-cyd:first-child { border-top: 0; padding-top: 0; }
.jr-cyd:last-child { padding-bottom: 0; }
.jr-cyd-code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14.5px; font-weight: 700; }
.jr-cyd-actions { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.jr-cyd-actions .jr-case { width: auto; flex: 1 1 auto; }
.jr-resume { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jr-resume-case { background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jr-resume-v { font-family: var(--f-titre); font-weight: 800; font-size: 22px; line-height: 1.1; white-space: nowrap; }
.jr-resume-l { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--gris); }
.jr-glisse { position: relative; height: 68px; border-radius: 18px; background: var(--sos); color: #FFFFFF; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; flex: none; }
.jr-glisse--2 { background: var(--sos-doux); color: var(--sos); box-shadow: inset 0 0 0 2px var(--sos); }
.jr-glisse-texte { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px 0 74px; font-family: var(--f-titre); font-weight: 800; font-size: 19px; font-size: clamp(15px, 4.8cqi, 20px); letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; text-align: center; opacity: calc(1 - var(--progres, 0) * .8); pointer-events: none; }
.jr-glisse-poignee { position: absolute; left: 6px; top: 6px; width: 56px; height: 56px; border-radius: 13px; border: 0; background: #FFFFFF; color: var(--sos); font-family: var(--f-titre); font-weight: 800; font-size: 20px; letter-spacing: -.12em; cursor: grab; touch-action: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: transform .2s ease-out; padding: 0; z-index: 1; }
.jr-glisse-poignee:active { cursor: grabbing; }
.jr-glisse--2 .jr-glisse-poignee { background: var(--sos); color: #FFFFFF; }
.jr-glisse--fait { background: var(--surface-2); color: var(--encre); box-shadow: inset 0 0 0 2px var(--ligne); }
.jr-glisse--fait .jr-glisse-texte { padding: 0 12px; text-transform: none; letter-spacing: .01em; opacity: 1; }
.jr-glisse--fait small { font-family: var(--f-texte); font-weight: 500; font-size: 13px; color: var(--gris); margin-left: 6px; }
.jr-sos-tete { display: flex; gap: 12px; align-items: center; }
.jr-sos-icone { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--sos-doux); color: var(--sos); display: grid; place-items: center; }
.jr-sos-icone svg { width: 30px; height: 30px; }
.jr-sos-tete h2 { font-size: 28px; }
.jr-texto { background: var(--surface-2); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 15px; }
.jr-texto-a { font-size: 12.5px; color: var(--gris); margin-bottom: 4px; font-weight: 600; }
.jr-notif { background: var(--surface-2); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.jr-notif-tete { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gris); }
.jr-notif-app { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: #FFFFFF; display: grid; place-items: center; font-family: var(--f-titre); font-weight: 800; font-size: 14px; }
.jr-notif-titre { font-weight: 700; font-size: 17px; }
.jr-frise { list-style: none; margin: 0 0 0 7px; padding: 0 0 0 16px; border-left: 2px solid var(--ligne); display: flex; flex-direction: column; gap: 10px; }
.jr-frise li { position: relative; font-size: 14.5px; }
.jr-frise li::before { content: ''; position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gris); }
.jr-frise b { font-family: var(--f-titre); font-size: 16px; }
.jr-puces { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.jr-etiquette { font-weight: 600; font-size: 14.5px; }
.jr-etapes { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.jr-etat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jr-grand-chiffre { font-family: var(--f-titre); font-weight: 800; font-size: 26px; }
.jr-lien-heures { display: block; margin-top: 4px; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--accent-texte); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }

/* ---- carte (20-carte.js, préfixe c5-) ---- */

:root { --c5-violet: #6D28D9; --c5-violet-doux: #EFE8FC; --c5-bande: #15212A; --c5-bande-texte: #F3F5F4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c5-violet: #B79CF5; --c5-violet-doux: #291E42; --c5-bande: #E8EEEC; --c5-bande-texte: #15212A; } }
:root[data-theme="dark"] { --c5-violet: #B79CF5; --c5-violet-doux: #291E42; --c5-bande: #E8EEEC; --c5-bande-texte: #15212A; }
.c5-carte { flex: 1; min-height: 0; height: 100%; display: flex; flex-direction: column; position: relative; }
.c5-plan { flex: 1; min-height: 120px; position: relative; overflow: hidden; }
.c5-plan > .plan { position: absolute; inset: 0; height: 100% !important; }
.c5-haut { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; z-index: 7; }
.c5-haut-g, .c5-haut-d { display: flex; flex-direction: column; gap: 6px; pointer-events: none; min-width: 0; }
.c5-haut-g { align-items: flex-start; } .c5-haut-d { align-items: flex-end; flex: none; }
.c5-haut-g > *, .c5-haut-d > * { pointer-events: auto; }
.c5-oeil { min-height: 44px; min-width: 44px; max-width: 100%; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); font-weight: 600; font-size: 13px; line-height: 1.15; text-align: left; box-shadow: var(--ombre); cursor: pointer; }
.c5-zoom { min-height: 44px; min-width: 88px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); font-family: var(--f-titre); font-weight: 700; font-size: 16px; box-shadow: var(--ombre); cursor: pointer; }
.c5-retour-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.c5-ouvre { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--vert); color: #FFFFFF; font-family: var(--f-titre); font-weight: 800; font-size: 16px; white-space: nowrap; cursor: pointer; }
.c5-ban-action--vert { background: var(--vert); color: #FFFFFF; min-height: 52px; font-size: 17px; }
.c5-banniere--vert { background: var(--vert-doux); border-color: var(--vert); }
.c5-haut > * { pointer-events: auto; }
.c5-sos { min-width: 60px; height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid #FFFFFF; background: var(--sos); color: #FFFFFF; font-family: var(--f-titre); font-weight: 800; font-size: 18px; letter-spacing: .08em; box-shadow: var(--ombre); cursor: pointer; }
.c5-filtres { height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); font-family: var(--f-titre); font-weight: 700; font-size: 16px; box-shadow: var(--ombre); cursor: pointer; }
.c5-filtres svg { width: 20px; height: 20px; }
.c5-filtres b { min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 12.5px; line-height: 20px; text-align: center; padding: 0 5px; }
/* « Me recentrer » : le rond du prototype (shell/index.html), en bas à droite, au-dessus de la carte (revue du 27/09) */
.plan-recentrer { position: absolute; right: 12px; bottom: 12px; z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ligne);
  background: var(--surface); color: var(--encre); display: grid; place-items: center; cursor: pointer; box-shadow: var(--ombre); padding: 0; }
.plan-recentrer svg { width: 26px; height: 26px; }
.c5-avec-bas .plan-recentrer { bottom: 80px; }
.c5-avec-bas .plan-echelle { display: none; }
.c5-banniere { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); box-shadow: var(--ombre); font-size: 14px; line-height: 1.25; }
.c5-banniere b { font-weight: 700; }
.c5-banniere--ambre { background: var(--ambre-doux); border-color: var(--ambre); }
.c5-banniere--violet { background: var(--c5-violet-doux); border-color: var(--c5-violet); }
.c5-ban-icone { flex: none; font-size: 19px; line-height: 1; }
.c5-ban-texte { flex: 1; min-width: 0; }
.c5-ban-action { flex: none; min-height: 44px; max-width: 42%; padding: 0 12px; border-radius: 10px; border: 0; background: var(--encre); color: var(--fond); font-family: var(--f-titre); font-weight: 700; font-size: 16px; line-height: 1.05; cursor: pointer; }
.c5-retour { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--c5-bande); color: var(--c5-bande-texte); box-shadow: 0 8px 28px rgba(0, 0, 0, .3); animation: c5Monte .18s ease-out; }
/* au-dessus de « 📍 Position… » (z 5) : « Annuler (5 s) » et « Elle ouvre ! » restent visibles et touchables pendant que le
   tag attend sa position (iPhone écran éteint entre les portes : presque chaque tag ; trouvé par l'épreuve du trottoir) */
.c5-retour.c5-sort { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.c5-retour-ligne { display: flex; align-items: center; gap: 10px; }
.c5-retour-textes { flex: 1; min-width: 0; }
.c5-retour-titre { font-family: var(--f-titre); font-weight: 600; font-size: 18px; line-height: 1.15; }
.c5-retour-titre b { font-size: 24px; font-weight: 800; }
.c5-retour-sous { font-size: 13.5px; opacity: .88; margin-top: 2px; line-height: 1.3; }
.c5-annuler { flex: none; min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(128, 128, 128, .28); color: inherit; font-family: var(--f-titre); font-weight: 700; font-size: 16px; letter-spacing: .02em; white-space: nowrap; cursor: pointer; }
.c5-maj { text-transform: uppercase; font-weight: 800; letter-spacing: .05em; }
.c5-puces-titre { font-size: 12.5px; opacity: .8; margin-bottom: -2px; }
.c5-puces { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 2px; }
.c5-puces::-webkit-scrollbar { display: none; }
.c5-puce { flex: none; white-space: nowrap; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font-weight: 600; font-size: 14px; cursor: pointer; opacity: .92; }
.c5-attente { position: absolute; left: 10px; right: 10px; top: 116px; z-index: 5; padding: 12px 14px; border-radius: 14px; background: var(--ambre-doux); border: 2px solid var(--ambre); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 6px; }
.c5-attente-titre { font-family: var(--f-titre); font-weight: 800; font-size: 22px; }
.c5-attente-sous { font-size: 14px; }
.c5-attente-verrou { align-self: flex-start; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); font-weight: 600; cursor: pointer; }
.c5-flash { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; }
.c5-flash.c5-eclair { animation: c5Eclair .34s ease-out; }
@keyframes c5Eclair { 0% { opacity: .45; } 100% { opacity: 0; } }
@keyframes c5Monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .c5-retour, .c5-flash.c5-eclair { animation: none; } }
.c5-porte { flex: none; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; padding: 8px 12px 6px; background: var(--surface); border-top: 1px solid var(--ligne); box-shadow: 0 -4px 14px rgba(21, 33, 42, .07); }
.c5-porte-tete { display: flex; align-items: center; gap: 8px; }
.c5-fleche { flex: none; width: 56px; height: 56px; border-radius: 14px; border: 0; background: var(--surface-2); color: var(--encre); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; cursor: pointer; font-family: var(--f-titre); font-weight: 700; }
.c5-fleche svg { width: 24px; height: 24px; }
.c5-fleche small { font-size: 13px; color: var(--gris); line-height: 1.05; }
.c5-fleche--vide { background: transparent; cursor: default; }
.c5-fleche--imm { background: var(--surface-2); cursor: default; font-size: 22px; line-height: 1; }
.c5-numero { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.c5-numero .t-grand { font-size: 40px; }
.c5-app { font-family: var(--f-titre); font-weight: 700; font-size: 22px; color: var(--accent-texte); }
.c5-lignes { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.c5-rue { font-size: 14.5px; color: var(--gris); line-height: 1.3; }
.c5-rappel { font-size: 14px; font-weight: 600; color: var(--c5-violet); line-height: 1.3; }
.c5-rappel--neutre { color: var(--encre); font-weight: 500; }
.c5-verdict { font-size: 14px; font-weight: 600; line-height: 1.3; }
.c5-verdict--ok { color: var(--vert); }
.c5-verdict--ambre { color: var(--ambre-texte); }   /* 5,5:1 au soleil (revue du 27/09 : 4,1:1 avec l'ambre des fonds) */
.c5-verdict--ardoise { color: var(--ardoise); }
.c5-verdict--info { color: var(--gris); font-weight: 500; }
.c5-alerte { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: var(--ambre-doux); color: var(--ambre); font-weight: 700; }
.c5-marcher { min-height: 44px; padding: 0 12px; margin-top: 2px; border-radius: 999px; border: 1px dashed var(--gris); background: transparent; color: var(--encre); font-weight: 600; font-size: 14px; cursor: pointer; }
.c5-boutons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c5-imm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.c5-du { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--c5-violet-doux); border: 1px solid var(--c5-violet); color: var(--c5-violet); font-size: 14px; line-height: 1.3; }
.c5-du-t { flex: 1; min-width: 0; }
.c5-du-t b { font-weight: 700; }
.c5-du-b { flex: none; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--c5-violet); background: var(--surface); color: var(--encre); font-family: var(--f-titre); font-weight: 700; font-size: 16px; cursor: pointer; }
.c5-secondaires { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.c5-plus span { font-size: 26px; letter-spacing: .12em; line-height: 1; }
.c5-derniere { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; font-size: 13.5px; color: var(--gris); }
.c5-derniere button { min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--accent-texte); font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; }
.c5-feuille { flex: none; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.c5-cahier { font-size: 11.5px; line-height: 1.35; color: var(--gris-clair); text-align: center; }
.c5-cahier-bas { margin-top: auto; padding-top: 10px; font-size: 11.5px; color: var(--gris-clair); text-align: center; }
.c5-barrette { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.c5-unite { min-height: 44px; min-width: 72px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--surface); color: var(--encre); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.c5-unite svg { width: 22px; height: 22px; flex: none; }
.c5-unite[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-doux); }
.c5-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.c5-grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c5-log { min-height: 64px; padding: 4px 2px; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--surface); color: var(--encre); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-family: var(--f-titre); font-weight: 700; font-size: 19px; line-height: 1; }
.c5-log svg { width: 24px; height: 24px; }
.c5-log small { font-family: var(--f-texte); font-weight: 500; font-size: 11.5px; color: var(--gris); line-height: 1.1; text-align: center; }
.c5-log[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-doux); }
.c5-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--gris); }
.c5-leg span { display: inline-flex; align-items: center; gap: 4px; }
.c5-leg svg { width: 18px; height: 18px; }
.c5-leg-svg { width: 26px; height: 26px; }
.c5-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.c5-chip { min-height: 44px; padding: 0 12px 0 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--surface); color: var(--gris); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.c5-chip svg { width: 22px; height: 22px; }
.c5-chip[aria-pressed="true"] { border-color: var(--encre); color: var(--encre); background: var(--surface-2); }
.c5-chip[aria-pressed="false"] svg { opacity: .35; }
.c5-fiche-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.c5-fiche-num .c5-app { color: var(--gris); }
.c5-etiq { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 2px 10px; border-radius: 999px; background: var(--ambre-doux); color: var(--encre); font-weight: 600; font-size: 14px; }
.c5-historique .nl-titre { font-size: 15.5px; }
.c5-ferie { min-height: 48px; border-radius: 12px; border: 1px dashed var(--ligne); color: var(--gris); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--f-titre); font-weight: 700; font-size: 17px; text-align: center; padding: 4px; }
.c5-ferie small { font-family: var(--f-texte); font-weight: 500; font-size: 12px; }
.c5-plage .nb-sous { font-size: 13.5px; }
.c5-j11-tete { display: flex; flex-direction: column; gap: 2px; }
.c5-maquette { border: 2px solid var(--ambre); border-radius: 14px; background: var(--ambre-doux); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.c5-maquette-titre { font-family: var(--f-titre); font-weight: 800; font-size: 20px; }
.c5-etapes { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.c5-champ { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14.5px; }
.c5-champ input { min-height: 48px; font: inherit; font-size: 18px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--ligne); background: var(--surface); color: var(--encre); width: 100%; }
.c5-erreur { color: var(--ambre); font-weight: 600; font-size: 14px; min-height: 18px; }

/* ---- relances (30-presenter-relances.js, préfixe prl-) ---- */
  .prl { --prl-violet: #7C3AED; --prl-violet-doux: #F1EAFE; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prl { --prl-violet: #B196FF; --prl-violet-doux: #2A2140; } }
  .prl-resume-titre { font-family: var(--f-titre); font-weight: 800; font-size: 22px; line-height: 1.1; }
  .prl-resume-sous { color: var(--gris); font-size: 15px; }
  .prl-rangee { display: flex; flex-wrap: wrap; gap: 8px; }
  .prl-rangee .nb { flex: 1 1 140px; }
  .prl-rappels { display: flex; flex-direction: column; gap: 8px; }
  .prl-rappel { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--surface); color: inherit; text-align: left; width: 100%; font: inherit; cursor: pointer; box-shadow: var(--ombre); }
  .prl-rappel:active { background: var(--surface-2); }
  .prl-rappel--du { border: 2px solid var(--prl-violet); background: var(--prl-violet-doux); }
  .prl-rappel--fait { opacity: .72; box-shadow: none; }
  .prl-heure { flex: none; width: 64px; text-align: center; font-family: var(--f-titre); color: var(--prl-violet); }
  .prl-heure b { display: block; font-size: 25px; line-height: 1; font-weight: 800; }
  .prl-heure small { display: block; font-size: 13px; font-weight: 600; margin-top: 3px; color: var(--gris); }
  .prl-txt { flex: 1; min-width: 0; }
  .prl-adr { font-family: var(--f-titre); font-weight: 700; font-size: 21px; line-height: 1.1; }
  .prl-sous { color: var(--gris); font-size: 14px; line-height: 1.3; margin-top: 2px; }
  .prl-etat { flex: none; font-family: var(--f-titre); font-weight: 700; font-size: 14px; line-height: 1.15; padding: 4px 9px; border-radius: 999px; text-align: center; max-width: 96px; }
  .prl-etat--du { background: var(--prl-violet); color: #FFFFFF; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prl-etat--du { color: #15212A; } }
  .prl-etat--prevu { border: 1.5px solid var(--prl-violet); color: var(--prl-violet); }
  .prl-etat--honore { background: var(--vert-doux); color: var(--vert); }
  .prl-etat--manque { background: var(--surface-2); color: var(--gris); }
  .prl-etat--sansReponse { background: var(--surface-2); color: var(--gris); border: 1px dashed var(--gris-clair); }
  .prl-rang { font-family: var(--f-titre); font-weight: 800; font-size: 18px; }
  .prl-groupe { font-family: var(--f-titre); font-weight: 700; font-size: 16px; color: var(--encre); margin: 4px 2px -4px; display: flex; justify-content: space-between; gap: 8px; }
  .prl-groupe span { color: var(--gris); font-weight: 600; }
  .prl-action { position: sticky; bottom: 0; z-index: 1; margin: 2px -16px -28px; padding: 12px 16px 16px; background: linear-gradient(180deg, transparent, var(--fond) 26%); }
  .prl-fait .nl-titre { text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* ---- motivation (40-motivation.js, préfixe mo-) ---- */

.mo-cahier { margin-top: auto; padding-top: 18px; font-size: 11.5px; color: var(--gris-clair); text-align: center; letter-spacing: .02em; }
.mo-sous button { flex: 1 1 auto; padding: 0 6px; font-size: 15.5px; }
.mo-tete { display: flex; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; font-size: 14px; color: var(--gris); font-weight: 600; margin: 0 2px; }
.mo-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 19px; line-height: 1; flex: none; }
.mo-ic--gris { filter: grayscale(1); opacity: .7; }
.mo-jauges { display: flex; flex-direction: column; gap: 14px; }
.mo-jauge { cursor: pointer; border-radius: 12px; padding: 6px; margin: -6px; -webkit-tap-highlight-color: transparent; }
.mo-jauge:active { background: var(--surface-2); }
.mo-sous-jauges { justify-content: space-between; margin-top: 2px; }
.mo-feuille-jauge { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.mo-etoiles-tete { display: flex; align-items: center; gap: 10px; }
.mo-sortie { font-family: var(--f-titre); font-weight: 800; font-size: 27px; line-height: 1.1; }
.mo-rythme { font-family: var(--f-titre); font-weight: 700; font-size: 18px; }
.mo-etoile-liste { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--ligne); padding-top: 10px; }
.mo-etoile-ligne { display: flex; gap: 8px; font-size: 14.5px; line-height: 1.35; }
.mo-etoile-s { flex: none; width: 18px; color: var(--gris-clair); font-size: 16px; }
.mo-etoile-ligne--ok .mo-etoile-s { color: var(--etoile); }
.mo-rappel-ok { width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; background: var(--vert); color: #FFFFFF; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.mo-pastille-du { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #7C3AED; color: #fff; font-size: 13px; }
.mo-entonnoir { display: flex; flex-direction: column; }
.mo-ent-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; column-gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--ligne); }
.mo-ent-ligne:first-child { border-top: 0; }
.mo-ent-ligne b { font-family: var(--f-titre); font-size: 21px; font-variant-numeric: tabular-nums; text-align: right; order: 3; }
.mo-ent-ligne small { color: var(--gris); font-size: 13px; text-align: right; white-space: nowrap; order: 2; }
.mo-objectifs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mo-objectif { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; background: var(--surface-2); border-radius: 12px; padding: 10px 4px; }
.mo-objectif b { font-family: var(--f-titre); font-size: 26px; line-height: 1; }
.mo-objectif span:last-child { font-size: 12.5px; color: var(--gris); line-height: 1.2; }
.mo-objectif-ic { font-size: 20px; }
.mo-chiffres { display: grid; grid-template-columns: fit-content(58%) minmax(0, 1fr); gap: 6px 12px; font-size: 14.5px; align-items: baseline; }
.mo-chiffres > * { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.mo-chiffres b { text-align: right; font-weight: 700; max-width: 100%; }
.mo-chiffres > span { color: var(--gris); }
.mo-barre { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.mo-barre i { display: block; height: 100%; border-radius: 5px; background: var(--ardoise); }
.mo-barre .mo-barre--vert { background: var(--vert); } .mo-barre .mo-barre--accent { background: var(--accent); } .mo-barre .mo-barre--ambre { background: var(--ambre); }
.mo-flash-prog { font-family: var(--f-titre); font-size: 18px; } .mo-flash-prog b { font-size: 26px; }
.mo-flash-grand { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-titre); }
.mo-flash-grand b { font-size: 56px; font-weight: 800; line-height: 1; }
.mo-flash-grand span { font-size: 26px; font-weight: 700; color: var(--gris); }
.mo-flash-grand--gris b { color: var(--gris); }
.mo-flash-regle { font-family: var(--f-titre); font-weight: 700; font-size: 21px; }
.mo-sous-section { margin: -4px 2px 0; }
/* semaine */
.mo-pastilles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mo-jour { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mo-jour-l { font-family: var(--f-titre); font-weight: 700; font-size: 14px; color: var(--gris); }
.mo-jour-d { font-size: 12px; color: var(--gris); }
.mo-jour--auj .mo-jour-l, .mo-jour--auj .mo-jour-d { color: var(--accent-texte); font-weight: 700; }
.mo-rond { width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; border: 2px solid var(--ligne); background: var(--surface); color: var(--gris); }
.mo-rond--jc { background: var(--etoile); border-color: var(--etoile); color: #FFFFFF; }
.mo-rond--faite { background: var(--surface-2); color: var(--encre); }
.mo-rond--encours { border-color: var(--accent); border-style: dashed; color: var(--accent-texte); }
.mo-rond--neutre { background: var(--cyan-doux); border-color: var(--cyan); color: var(--cyan); }
.mo-rond--ferme { border-style: dotted; }
.mo-rond--mini { width: 22px; max-width: 22px; font-size: 11px; border-width: 1.5px; flex: none; }
.mo-semaine-phrase { font-family: var(--f-titre); font-weight: 800; font-size: 30px; line-height: 1.05; margin-top: 6px; }
.mo-reste { font-family: var(--f-titre); font-weight: 700; font-size: 18px; }
.mo-joker { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.mo-joker-ic { font-size: 24px; line-height: 1.1; }
.mo-serie { display: flex; gap: 12px; align-items: center; }
.mo-serie-ic { font-size: 40px; line-height: 1; }
.mo-serie-n { font-family: var(--f-titre); font-weight: 800; font-size: 32px; line-height: 1; }
.mo-sem-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--ligne); padding-top: 10px; }
.mo-sem-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 13.5px; }
.mo-sem-du { color: var(--gris); }
.mo-sem-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--gris); margin-top: -2px; }
.mo-sem-p { display: flex; gap: 2px; }
.mo-sem-r { font-family: var(--f-titre); font-weight: 700; font-size: 15px; white-space: nowrap; }
.mo-graph { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; padding-top: 4px; }
.mo-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.mo-col-v { font-family: var(--f-titre); font-weight: 700; font-size: 13px; height: 16px; line-height: 16px; }
.mo-col-b { width: 70%; max-width: 30px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--ardoise); }
.mo-col-b--jc { background: var(--vert); }
.mo-col-l { font-family: var(--f-titre); font-weight: 700; font-size: 13px; color: var(--gris); height: 18px; line-height: 18px; }
.mo-graph-cible { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--encre); opacity: .45; pointer-events: none; }
.mo-graph-cible i { position: absolute; right: 0; top: -17px; font-style: normal; font-family: var(--f-titre); font-weight: 700; font-size: 12px; }
.mo-legende { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--gris); }
.mo-legende span { display: inline-flex; align-items: center; gap: 5px; }
.mo-seg-grille, .mo-seg2, .mo-seg4, .mo-seg5 { flex-shrink: 0; }
.mo-seg-grille > .nso { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mo-seg-grille--3 > .nso { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mo-seg-grille--3 { container-type: inline-size; }
@container (max-width: 330px) { .mo-seg-grille--3 > .nso button { font-size: 15px; } }
.mo-seg-grille > .nso button { white-space: normal; line-height: 1.1; padding: 4px 6px; min-width: 0; }
.mo-label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.mo-texte { font: inherit; font-weight: 400; min-height: 56px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); resize: vertical; width: 100%; }
.mo-erreur { color: var(--accent-texte); font-weight: 700; }
/* classements */
.mo-seg4 > .nso button, .mo-seg2 > .nso button, .mo-seg5 > .nso button { flex: 1 1 0; min-width: 0; padding: 0 4px; }
.mo-seg2 > .nso button, .mo-seg5 > .nso button { font-size: 16px; }
.mo-filtres { gap: 8px; }
.mo-filtres > .mo-seg2 { flex: 1 1 0; min-width: 0; }
.mo-seg2--seul { display: flex; align-items: center; justify-content: center; min-height: 48px; background: var(--surface-2); border-radius: 12px; }
.mo-cat-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 2px -4px; }
.mo-cat-titre b { font-family: var(--f-titre); font-size: 20px; }
.mo-rangs { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.mo-rang { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 8px 12px; border-top: 1px solid var(--ligne); }
.mo-rang:first-child { border-top: 0; }
.mo-rang--moi { background: var(--accent-doux); }
.mo-rang-n { width: 22px; flex: none; text-align: center; font-family: var(--f-titre); font-weight: 800; font-size: 20px; color: var(--gris); }
.mo-av { position: relative; flex: none; display: inline-block; line-height: 0; }
.mo-trophee { position: absolute; right: -7px; bottom: -5px; font-size: 17px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.mo-fusee { position: absolute; left: -6px; top: -6px; font-size: 16px; line-height: 1; }
.mo-rang-nom { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; }
.mo-toi { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--sur-accent); vertical-align: 1px; }
.mo-toi--recrue { background: var(--rang-2); color: #0B1116; }
.mo-rang-val { font-family: var(--f-titre); font-weight: 800; font-size: 23px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mo-jc { color: var(--etoile); font-size: 16px; margin-left: 3px; vertical-align: 3px; }
.mo-fraicheur { justify-content: space-between; margin: -4px 0; }
.mo-trophs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mo-troph { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.25; min-width: 0; }
.mo-troph .mo-trophee { font-size: 14px; }
/* store et points */
.mo-solde { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mo-solde b { font-family: var(--f-titre); font-weight: 800; font-size: 42px; line-height: 1; }
.mo-solde > span:last-child { font-family: var(--f-titre); font-weight: 700; font-size: 18px; color: var(--gris); }
.mo-store-nav { gap: 6px; }
.mo-store-nav > .mo-seg2 { flex: 1; min-width: 0; }
.mo-store-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mo-tuile { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 10px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; box-shadow: var(--ombre); cursor: pointer; text-align: left; min-width: 0; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.mo-tuile:active { background: var(--surface-2); }
.mo-tu-img, .mo-fiche-img { height: 76px; border-radius: 10px; display: grid; place-items: center; font-size: 38px; line-height: 1; background: var(--surface-2); }
.mo-fiche-img { height: 120px; font-size: 64px; }
.mo-tu-img--ambre { background: var(--ambre-doux); } .mo-tu-img--accent { background: var(--accent-doux); } .mo-tu-img--cyan { background: var(--cyan-doux); }
.mo-tu-img--vert { background: var(--vert-doux); } .mo-tu-img--ardoise { background: var(--ardoise-doux); } .mo-tu-img--gris { background: var(--surface-2); }
.mo-tag { position: absolute; top: 14px; left: 14px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface); color: var(--accent-texte); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.mo-tu-nom { font-weight: 700; font-size: 15px; line-height: 1.2; min-height: 36px; }
.mo-tu-prix { font-family: var(--f-titre); font-weight: 800; font-size: 20px; line-height: 1; }
.mo-tu-prix small { font-size: 14px; color: var(--gris); font-weight: 700; }
.mo-tu-ok { color: var(--vert); font-weight: 700; font-size: 14px; }
.mo-tu-manque { color: var(--gris); font-size: 13px; line-height: 1.25; }
.mo-barre-mini { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.mo-barre-mini i { display: block; height: 100%; background: var(--ardoise); }
.mo-demandes { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.mo-demande { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid var(--ligne); }
.mo-demande:first-child { border-top: 0; }
.mo-demande > .rangee-fixe { width: 100%; }
.mo-dem-etat { font-family: var(--f-titre); font-weight: 700; font-size: 15px; white-space: nowrap; }
.mo-dem-etat--ok { color: var(--vert); } .mo-dem-etat--accent { color: var(--accent-texte); } .mo-dem-etat--gris { color: var(--gris); }
.mo-remise { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 0; }
.mo-remise-ic { font-size: 56px; line-height: 1; }
.mo-journal { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.mo-journal-date { padding: 8px 14px 4px; font-family: var(--f-titre); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); background: var(--surface-2); }
.mo-journal-ligne { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--ligne); font-size: 15px; }
.mo-journal-ligne b { font-family: var(--f-titre); font-size: 18px; white-space: nowrap; }
.mo-journal-ligne small { font-size: 12.5px; }
/* gains */
.mo-periode { justify-content: space-between; }
.mo-montant { font-family: var(--f-titre); font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -.01em; }
.mo-statuts { gap: 6px; }
.mo-statut { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.mo-vente-s { font-family: var(--f-titre); font-weight: 800; font-size: 18px; min-width: 26px; text-align: center; color: var(--vert); }
.mo-vente-tete { display: flex; gap: 10px; align-items: center; }
.mo-vente-m { font-family: var(--f-titre); font-weight: 800; font-size: 22px; white-space: nowrap; }
.mo-frise { list-style: none; margin: 0 0 0 8px; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 12px; border-left: 2px solid var(--ligne); }
.mo-frise li { position: relative; }
.mo-frise li > span { position: absolute; left: -26px; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); color: var(--vert); font-size: 14px; line-height: 18px; text-align: center; }
/* badges */
.mo-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mo-badge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 10px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; box-shadow: var(--ombre); cursor: pointer; font: inherit; color: inherit; min-width: 0; min-height: 96px; }
.mo-badge-ic { font-size: 32px; line-height: 1; }
.mo-badge-nom { font-weight: 600; font-size: 13px; line-height: 1.2; text-align: center; }
.mo-badge-grand { font-size: 72px; text-align: center; line-height: 1.1; }
.mo-neuf { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--accent-doux); color: var(--accent-texte); }
.mo-badge .mo-neuf { position: absolute; top: 6px; right: 6px; }
.mo-prochain { display: flex; flex-direction: column; gap: 5px; padding: 6px 0; border-top: 1px solid var(--ligne); }
.mo-prochain:first-child { border-top: 0; }
/* comment on compte */
.mo-intro { font-size: 16px; }
.mo-acc { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.mo-acc details { border-top: 1px solid var(--ligne); }
.mo-acc details:first-child { border-top: 0; }
.mo-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 16px; -webkit-tap-highlight-color: transparent; }
.mo-acc summary::-webkit-details-marker { display: none; }
.mo-acc summary::after { content: '›'; flex: none; font-size: 24px; line-height: 1; color: var(--gris); transform: rotate(90deg); transition: transform .15s; }
.mo-acc details[open] summary::after { transform: rotate(-90deg); }
.mo-acc details[open] summary { color: var(--accent-texte); }
.mo-acc-corps { padding: 0 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.mo-exemple { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.mo-exemple b { display: block; font-family: var(--f-titre); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-bottom: 2px; }
.mo-puces { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
/* flash (gérant) */
.mo-champ { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; border-top: 1px solid var(--ligne); }
.mo-champ:first-child { border-top: 0; }
.mo-champ-l { font-family: var(--f-titre); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.mo-bascule { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px; border-radius: 12px; border: 2px solid var(--ligne); background: var(--surface); cursor: pointer; font: inherit; font-weight: 600; color: var(--encre); }
.mo-bascule[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-doux); }
.mo-bascule small { color: var(--gris); font-weight: 500; }
.mo-stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mo-stepper button { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--encre); background: var(--surface); font-family: var(--f-titre); font-weight: 800; font-size: 24px; cursor: pointer; color: var(--encre); }
.mo-stepper b { font-family: var(--f-titre); font-weight: 800; font-size: 30px; min-width: 40px; text-align: center; }
/* plus et sos */
.mo-sos { box-shadow: 0 6px 18px rgba(200, 16, 46, .28); }
.mo-glisse { position: relative; height: 64px; border-radius: 16px; background: var(--sos-doux); border: 2px solid var(--sos); overflow: hidden; touch-action: none; }
.mo-glisse-texte { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 60px; padding-right: 8px; font-family: var(--f-titre); font-weight: 800; font-size: 17px; color: var(--sos); pointer-events: none; text-align: center; line-height: 1.1; }
.mo-glisse-bouton { position: absolute; left: 4px; top: 4px; width: 52px; height: 52px; border: 0; border-radius: 12px; background: var(--sos); color: #FFFFFF; display: grid; place-items: center; cursor: grab; touch-action: none; }
.mo-glisse-bouton svg { width: 26px; height: 26px; }
.mo-grise { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border: 1px solid var(--ligne); border-radius: 12px; }
.mo-grise > .rangee-fixe { width: 100%; }

/* ---- compléments (70-complements.js, préfixe cx-) ---- */

.cx-cahier { margin-top: auto; padding-top: 18px; text-align: center; font-size: 11.5px; color: var(--gris-clair); }
.cx-kv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 6px 12px; font-size: 14.5px; }
.cx-kv span { color: var(--gris); }
.cx-kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.cx-tete { font-family: var(--f-titre); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.cx-zone-nom { font-family: var(--f-titre); font-weight: 800; font-size: 24px; line-height: 1.1; }
.cx-libre { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ligne); }
.cx-libre:first-child { border-top: 0; padding-top: 2px; }
.cx-libre-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-libre-t b { font-family: var(--f-titre); font-size: 18px; }
.cx-libre-t span { font-size: 13.5px; color: var(--gris); }
.cx-memo { display: flex; flex-direction: column; gap: 6px; }
.cx-memo h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.cx-memo h3 span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-doux); color: var(--accent-texte); font-size: 16px; flex: none; }
.cx-memo p, .cx-memo li { font-size: 15px; line-height: 1.4; }
.cx-memo ul, .cx-memo ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.cx-dit { background: var(--surface-2); border-radius: 12px 12px 12px 4px; padding: 8px 12px; font-style: italic; }
.cx-prix { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; font-size: 15px; }
.cx-prix b { font-family: var(--f-titre); font-size: 19px; }
.cx-prix s { color: var(--gris); }
.cx-objection { padding: 8px 0; border-top: 1px solid var(--ligne); }
.cx-objection:first-child { border-top: 0; padding-top: 0; }
.cx-objection b { display: block; }
.cx-t0 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cx-t0 .nch-libelle { overflow-wrap: normal; word-break: normal; font-size: 12.5px; }
.cx-route { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.35; }
.cx-choix { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--ligne); }
.cx-choix:first-child { border-top: 0; }
.cx-choix-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-choix-t span { font-size: 13.5px; color: var(--gris); }
.cx-bascule { min-width: 64px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--surface); color: var(--encre); font-weight: 700; cursor: pointer; }
.cx-bascule[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: #FFFFFF; }
.cx-bascule[aria-disabled="true"] { opacity: .6; cursor: default; }


/* ======================================================================================================================
   Ajouts de l'app (équipe Téléphone) : la carte Leaflet, l'identité, les petits morceaux propres au Lot 1a.
   ====================================================================================================================== */
.ecran-marge { padding: 16px; }
.jr-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #0B1116; color: #FFFFFF; font-family: var(--f-titre); font-weight: 700; font-size: 20px; box-shadow: inset 0 0 0 4px var(--rang-1); }
.nc .jr-avatar { width: 48px; height: 48px; font-size: 18px; }
.c5-etage { font-family: var(--f-titre); font-weight: 700; font-size: 15px; color: var(--gris); margin: 4px 2px -4px; letter-spacing: .04em; }
.c5-sans-carte { position: absolute; left: 10px; right: 10px; top: 64px; z-index: 5; }
.c5-carte { flex: 1; min-height: 0; height: 100%; display: flex; flex-direction: column; position: relative; }
.s8-point { display: block; width: 12px; height: 12px; margin: 0 7px; border-radius: 50%; border: 2px solid var(--gris); background: var(--surface); }
.pr-hote { position: absolute; inset: 0; --presenter-z: 15; }
.pr-hote .demarrage { height: 100%; }

/* la carte Leaflet (aucune tuile : le sol, puis les rues de la Géobase dessinées) */
.ct-carte { position: absolute; inset: 0; background: var(--carte-sol); z-index: 0; }
.ct-carte.leaflet-container { background: var(--carte-sol); font-family: var(--f-texte); outline: none; }
.ct-carte .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .7); color: #5B6C73; padding: 0 5px; }
:root[data-theme="dark"] .ct-carte .leaflet-control-attribution { background: rgba(14, 22, 27, .7); color: #9DB0B7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ct-carte .leaflet-control-attribution { background: rgba(14, 22, 27, .7); color: #9DB0B7; } }
.ct-carte .leaflet-control-attribution a { color: inherit; }
.c5-avec-bas .ct-carte .leaflet-control-attribution { display: none; }
.ct-pin-icone, .ct-nom-icone, .ct-coin-icone, .ct-moi-icone { background: none; border: 0; }
.ct-pin { position: relative; width: 44px; height: 44px; cursor: pointer; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.ct-pin svg { display: block; overflow: visible; }
.ct-pin:focus-visible { outline: 3px solid var(--accent); border-radius: 50%; }
.ct-num { position: absolute; left: 50%; bottom: 42px; transform: translateX(-50%); padding: 1px 7px; border-radius: 6px; background: var(--accent); color: #FFFFFF; font-family: var(--f-titre); font-weight: 800; font-size: 14px; white-space: nowrap; pointer-events: none; }
.ct-nom { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--f-titre); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; color: var(--carte-texte); text-shadow: 0 0 3px var(--carte-sol), 0 0 3px var(--carte-sol); pointer-events: none; }
.ct-nom--mien { color: var(--encre); font-size: 13.5px; }
.ct-coin { display: flex; flex-direction: column; align-items: center; gap: 0; }
.ct-coin span { font-family: var(--f-titre); font-weight: 800; font-size: 11px; color: var(--encre); background: var(--surface); border-radius: 4px; padding: 0 3px; margin-top: -2px; }
.ct-moi svg { transition: transform .3s; }

/* l'identité : activation, NIP */
.id-tete { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 0 4px; }
.id-tete h2 { font-size: 30px; }
.id-logo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--encre); color: var(--fond); font-family: var(--f-titre); font-weight: 800; font-size: 34px; }
.id-champ-code { display: flex; flex-direction: column; gap: 4px; }
.id-champ-code input { min-height: 64px; font-family: var(--f-titre); font-weight: 800; font-size: 34px; letter-spacing: .3em; text-align: center; border: 2px solid var(--ligne); border-radius: 14px; background: var(--surface); color: var(--encre); width: 100%; padding: 0 8px; }
.id-champ-code input:focus { border-color: var(--accent); outline: none; }
.id-erreur { min-height: 22px; color: var(--ambre); font-weight: 600; font-size: 15px; text-align: center; }
.id-nip { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.id-points { display: flex; gap: 18px; padding: 8px 0; }
.id-point { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--encre); }
.id-point--plein { background: var(--encre); }
.id-clavier { display: grid; grid-template-columns: repeat(3, minmax(64px, 88px)); gap: 12px; }
.id-touche { min-height: 64px; border-radius: 16px; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); font-family: var(--f-titre); font-weight: 700; font-size: 30px; cursor: pointer; box-shadow: var(--ombre); }
.id-touche:active { background: var(--surface-2); }
.id-puces { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; }
.cx-dit-mot { font-weight: 600; }

/* Une seule fenêtre de NOVA à la fois (app.js, revue du 27/09) */
.autre-fenetre { position: fixed; inset: 0; z-index: 100; background: var(--fond); display: grid; place-items: center; padding: 24px 16px; }
.autre-fenetre-boite { max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.autre-fenetre-boite h2 { margin: 0; font-family: var(--f-titre); font-size: 26px; }
.autre-fenetre-boite p { margin: 0; color: var(--gris); }
