/* ══════════════════════════════════════════════════════════════════════════════ */
/* TITRE      : habillage.css */
/* LICENCE    : AGPL-3.0 */
/* AUTEUR     : Atek Drisse */
/* GIT        : github.com/Marplestrange */
/* MAIL       : marplestrange@cassandra.center */
/* MODULE     : interface */
/* ZONE       : CN */
/* VERSION CN : 0.1.0  #000000 */
/* VERSION EC : néant */
/* EC LIÉES   : néant */
/* RÔLE       : habillage.css */
/* MÉTHODE    : à compléter par l'auteur (comment le fichier s'y prend) */
/* ══════════════════════════════════════════════════════════════════════════════ */
/* ▼▼▼ BORNE CN version=0.1.0 empreinte=834056 ▼▼▼ */
/* ═══ L'HABILLAGE UNIVERSEL ════════════════════════════════════════════════════════════
   Les écrans de l'ancienne interface (classes mx-*) gardent TOUTES leurs fonctions, leurs scènes et leurs pastilles ; ici on ne change que leur tenue, pour qu'ils ressemblent
   à la Logithèque et au reste de la V19 : même police (Inter, plus de chasse fixe sur les libellés), mêmes pastilles, mêmes boutons, mêmes puces de scènes, mêmes tuiles de chiffres.
   Tout est sous « body.d19 » : sans la disposition V19, rien ne change. Pour tout défaire : retirer le lien de cette feuille (interface/CN_index.html et outils/ui/CN_assembler.py). */

/* Les titres et les petits libellés : Inter, comme le kit */
body.d19 :is(.mx-fam,.mx-eyebrow,.mx-st,.mx-chart-h .mx-meta,.mx-kpi span,.mx-kpi small,.mx-meta){font-family:'Inter',system-ui,sans-serif;letter-spacing:.05em}
body.d19 :is(.mx-fam,.mx-eyebrow){font-size:10.5px;font-weight:650;color:var(--txt-faint)}
body.d19 .mx-st{font-size:11px;font-weight:600}
body.d19 .mx-kpi span{font-size:12px;font-weight:600;letter-spacing:0;color:var(--txt-soft)}
body.d19 .mx-kpi small{font-size:11px;letter-spacing:0}

/* Les pastilles : la même que le kit (.p) */
body.d19 .mx-app .mx-pill{font:600 11px/1.2 'Inter',system-ui,sans-serif;letter-spacing:0;border-radius:7px;padding:3px 8px;background:color-mix(in srgb,var(--txt-soft) 10%,transparent);color:var(--txt-soft)}
body.d19 .mx-app .mx-pill.ok{background:color-mix(in srgb,var(--ok) 13%,transparent);color:var(--ok)}
body.d19 .mx-app .mx-pill.regarder{background:color-mix(in srgb,var(--warn) 15%,transparent);color:var(--warn)}
body.d19 .mx-app .mx-pill.panne{background:color-mix(in srgb,var(--danger) 13%,transparent);color:var(--danger)}
body.d19 .mx-app .mx-pill.pas_encore{background:color-mix(in srgb,var(--info) 12%,transparent);color:var(--info)}

/* Les boutons : le même que le kit (.btn) */
body.d19 .mx-btn{font:600 13px/1.2 'Inter',system-ui,sans-serif;padding:7px 14px;border-radius:10px;border:1px solid var(--line-strong);background:var(--surface-solid);color:var(--txt);transition:border-color .15s,color .15s,filter .15s}
body.d19 .mx-btn:hover:not([disabled]){border-color:var(--accent);color:var(--accent)}
body.d19 .mx-btn.primary{background:var(--accent);border-color:transparent;color:var(--on-accent)}
body.d19 .mx-btn.primary:hover:not([disabled]){color:var(--on-accent);filter:brightness(1.08)}
body.d19 .mx-btn[disabled]{opacity:.45;cursor:not-allowed}

/* Les puces de scènes (« Vue : Maintenant · Une courbe… ») : les puces du kit */
body.d19 .mx-scene{font:600 12.5px/1.2 'Inter',system-ui,sans-serif;padding:5px 12px;border:1px solid var(--line);background:var(--surface);color:var(--txt-soft)}
body.d19 .mx-scene:hover{color:var(--accent);border-color:var(--accent)}
body.d19 .mx-scene.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}

/* Les tuiles de chiffres : la tuile « stat » du kit */
body.d19 .mx-kpi{background:var(--surface);border-radius:14px;padding:12px 14px}
body.d19 .mx-kpi b{font-size:22px;font-weight:650;letter-spacing:0}
body.d19 .mx-kpi em{font-size:12.5px}

/* Les lignes et les cartes : les rayons et l'air du kit */
body.d19 .mx-sec{border-radius:16px}
body.d19 .mx-rt b{font-weight:650}
body.d19 .mx-dot{width:8px;height:8px}

/* Le verdict : un trait plein, sans hachures (l'inconnu est un gris, pas un motif) */
body.d19 .mx-vmark{width:6px;border-radius:4px}
body.d19 .mx-vmark.inconnu{background:var(--txt-ghost)}
body.d19 .mx-vtitle{font-weight:650}

/* Un état vide : une ligne calme, pas un cadre en pointillés */
body.d19 .mx-silence{border:1px solid var(--line);border-style:solid;border-radius:12px;background:color-mix(in srgb,var(--txt-soft) 5%,transparent);color:var(--txt-soft)}

/* Les champs de recherche et les listes déroulantes */
body.d19 .mx-app :is(input[type=search],input[type=text],select){font-family:'Inter',system-ui,sans-serif}

@media (prefers-reduced-motion:reduce){body.d19 .mx-btn{transition:none}}
/* ▲▲▲ FIN BORNE CN ▲▲▲ */

/* ═══ EXPLICATIF CN / EC ═══════════════════════════════════════════════════════ */
/* CN : tout ce fichier est du nexus : à compléter */
/* EC : néant (aucun point d'évolution déclaré pour l'instant) */
/* LIEN : à compléter (contrat, fichiers voisins) */

/* ═══ SUITE : libellés, champs, tableaux ═══════════════════════════════════════════════ */

/* Tous les petits libellés en majuscules de l'ancienne interface (une quarantaine de classes) : Inter, comme le kit, plus de chasse fixe */
body.d19 .mx-fam,body.d19 .um-h,body.d19 .sl-lbl,body.d19 .sl-fam,body.d19 .sl-jour,body.d19 .jr-day,body.d19 .ev-jour,body.d19 .pl-n,body.d19 .s-label,body.d19 .sinfo-lbl,body.d19 .stat-lbl,body.d19 .bu-scenes .lab,body.d19 .cr-lbl,body.d19 .cr-sec .h,body.d19 .nt-prismes .lab,body.d19 .ca-sect,body.d19 .ca-mes dt,body.d19 .cv-sect,body.d19 .cv-reg label,body.d19 .cv-cadre .t,body.d19 .cv-carte .h,body.d19 .cv-et,body.d19 .pal-g,body.d19 .cn-g,body.d19 .bu-dow span,body.d19 .cr-dosl-h,body.d19 .cr-dosl-s,body.d19 .cr-rg-r .k,body.d19 .cr-prop-h,body.d19 .tk-grp,body.d19 .gd-grp,body.d19 .gd-hd,body.d19 .gd-tbl th,body.d19 .pf-e .src,body.d19 .nt-i .sr,body.d19 .nt-prov b,body.d19 .nt-pol th,body.d19 .nt-srcs th,body.d19 .rd-fld > label,body.d19 .rd-sel .l,body.d19 .rd-as .h .q,body.d19 .rd-grp,body.d19 .md-non .h,body.d19 .md-blk .lg .k,body.d19 .md-ac .r .q,body.d19 .md-tbl th,body.d19 .sv-tbl th,body.d19 .mms-lbl,body.d19 .gu-t .gu-o,body.d19 .cva-r b,body.d19 .cn-sep,body.d19 .rep-sep,body.d19 .rep-it-q,body.d19 .rep-fl .k,body.d19 .rep-ch .k,body.d19 .rep-s,body.d19 .rep-tg .t,body.d19 .rp-c label,body.d19 .bj-t,body.d19 .bj-bt,body.d19 .usermenu dt,body.d19 .ov-ev .tg,body.d19 .vital h5,body.d19 .cf-st h5,body.d19 .ac-kv dt,body.d19 .nte-pk-g,body.d19 .it-qui .nm,body.d19 .it-duel .q,body.d19 .sl-voix .et,body.d19 .sl-resume b,body.d19 .sl-aide-b b,body.d19 .sl-tip-b b,body.d19 .jr-env span,body.d19 .mv-liste th,body.d19 .fl-env span,body.d19 .fleet-field label,body.d19 .fp2-lbl,body.d19 .fp2-liste th,body.d19 .fp-table th,body.d19 .fp2-vide b,body.d19 .fp2-hs b,body.d19 .fp2-repli b,body.d19 .fp-sc-label,body.d19 .fleet-agg-label,body.d19 .att-tip-title,body.d19 .ses-kv dt,body.d19 .sl-fil .m .st,body.d19 .sl-m .qui .dest{font-family:'Inter',system-ui,sans-serif;font-size:10.5px;font-weight:650;letter-spacing:.07em}

/* Les titres de rails et de cartes qui étaient en chasse fixe */
body.d19 .mx-rail-h b,body.d19 .mx-body .mx-rail-h b{font:650 13.5px/1.3 'Inter',system-ui,sans-serif;letter-spacing:0;color:var(--txt-strong)}
body.d19 .tab-content :is(h1,h2,h3,h4):not(.mono){font-family:'Inter',system-ui,sans-serif}

/* Boutons, champs et listes : la police du kit partout (sauf ce qui se déclare « mono » : commandes, empreintes, expressions cron) */
body.d19 .tab-content :is(button,input,select,textarea):not(.mono):not([class*="mono"]){font-family:'Inter',system-ui,sans-serif}

/* Les champs : même rayon, même bordure, même anneau de focus que le kit */
body.d19 .tab-content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]),select,textarea){
  border:1px solid var(--line-strong);background:var(--surface-solid);color:var(--txt);border-radius:10px;transition:border-color .15s,box-shadow .15s}
body.d19 .tab-content :is(input,select,textarea):focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
body.d19 .tab-content :is(input,select,textarea)::placeholder{color:var(--txt-faint)}
body.d19 .tab-content :is(input,select,textarea)[disabled]{opacity:.55}
body.d19 .tab-content :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:var(--accent)}

/* Les étiquettes de champ sans style propre : un libellé discret, d'une seule taille */
body.d19 .tab-content label:not([class]){font:600 12.5px/1.3 'Inter',system-ui,sans-serif;color:var(--txt-soft)}

/* Les tableaux : une ligne fine entre les rangées, un en-tête discret */
body.d19 .tab-content table{border-collapse:collapse}
body.d19 .tab-content table th{font-family:'Inter',system-ui,sans-serif;font-size:10.5px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:var(--txt-faint);text-align:left;border-bottom:1px solid var(--line-strong)}
body.d19 .tab-content table td{border-bottom:1px solid var(--line)}
body.d19 .tab-content table tr:last-child td{border-bottom:0}
body.d19 .tab-content table tbody tr:hover td{background:color-mix(in srgb,var(--accent) 5%,transparent)}

