/* ============================================================================
   NATURES D'HEURES — le référentiel de calcul : tableau groupé par famille,
   vue par plage d'identifiants, analyse, et la fiche avec sa formule.
   Passation « design_handoff_natures » (Projet EasyTime, Design 28).

   SA PROPRE FEUILLE, ET SON PROPRE <link> DANS App.razor. La passation demandait
   de concaténer à modele-erp.css ; c'est précisément ce que la découpe d'App.razor
   a défait : chaque écran ajouté en queue du gabarit entrait en conflit avec tous
   les autres sur la dernière ligne du fichier et sur une clé de cache commune,
   jamais sur la substance.

   PRÉFIXE .nat-. Trois familles de la passation ont été renommées, pour ne pas
   poser un nom de GABARIT dans une feuille d'ÉCRAN — le deuxième écran qui en
   aurait besoin devrait alors charger celle du premier :
     .cv-lbl / .cv-avert / .cv-erreur  →  .nat-lbl / .nat-avert / .nat-erreur
                                          (les deux derniers retirés le 2026-09-08 :
                                          le bandeau d'état du gabarit .mx-blocage
                                          les dit tous les deux, et mieux)
     .mx-switch                        →  .nat-switch, puis de nouveau .mx-switch
     .mx-input-suffixe                 →  .nat-suffixe, puis de nouveau .mx-input-suffixe
     .tbl-legende                      →  .tbl-methode (déjà dans easytime-shell.css,
                                          même rôle : la note sous la table)
   Les deux derniers ont fait l'aller-retour annoncé : « le jour où un deuxième écran
   emploie l'interrupteur ou le suffixe d'unité, ils remontent dans modele-erp.css sous
   leur nom .mx- ». Les paramètres généraux les employaient déjà ; ils sont remontés en
   section 11 du gabarit, et cette feuille ne garde que la réserve de padding du suffixe.

   AUCUNE COULEUR EN DUR : tout passe par les jetons --et-* de easytech-theme.css,
   sans quoi la bascule sombre et la prochaine bascule de charte laisseraient cet
   écran en arrière.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. TABLEAU GROUPÉ PAR FAMILLE
   Le bandeau de famille remplace un sélecteur de groupe : il dit où l'on est,
   et la facette « Famille » du panneau filtre déjà.
   --------------------------------------------------------------------------- */
.nat-cadre { background: var(--et-surface); overflow-x: auto; }
.nat-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.nat-table thead th {
    padding: var(--et-cellule-tete-y) 16px;
    background: var(--et-table-head);
    border-bottom: 1px solid var(--et-table-head-fonce);
    font-family: var(--et-font-mono);
    font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--et-sur-ardoise);
    white-space: nowrap; text-align: left;
    cursor: pointer; user-select: none;
}
.nat-table thead th.droite { text-align: right; }
.nat-table thead th.centre { text-align: center; }
.nat-table thead th .fleche { margin-left: 4px; color: var(--et-form-blue-l); }

.nat-table tbody td {
    padding: var(--et-cellule-y) 16px;
    border-bottom: 1px solid var(--et-rang);
    white-space: nowrap;
    color: var(--et-ink);
}
.nat-table tbody td.droite { text-align: right; }
.nat-table tbody td.centre { text-align: center; }
.nat-table tbody td.id { font-size: 12px; color: var(--et-faint); }

.nat-table tbody tr:not(.nat-bandeau) { cursor: pointer; }
.nat-table tbody tr:not(.nat-bandeau):hover { background: var(--et-survol); }
/* Une nature société se distingue au fond, sans qu'il faille lire la colonne Type. */
.nat-table tbody tr.est-societe { background: var(--et-surface-3); }

.nat-bandeau td {
    padding: var(--et-cellule-total-y) 16px !important;
    background: var(--et-tint);
    border-top: 1px solid var(--et-filet-fort);
    border-bottom: 1px solid var(--et-filet-fort) !important;
}
.nat-bandeau .filet { display: inline-block; width: 3px; height: 13px; vertical-align: -2px; margin-right: 10px; }
.nat-bandeau .libelle { font-size: 13px; font-weight: 700; color: var(--et-table-head-encre); }
.nat-bandeau .compte { margin-left: 10px; font-family: var(--et-font-mono); font-size: 12px; color: var(--et-muted); }

.nat-code {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    background: var(--et-neutre-bg);
    font-family: var(--et-font-mono);
    font-size: 12px; font-weight: 500;
    color: var(--et-table-head-encre);
}

.nat-table .cellule-nom { white-space: normal; border-right: 1px solid var(--et-rang); }
.nat-table .cellule-nom .nom { font-weight: 600; color: var(--et-ink); }
.nat-table .cellule-nom .nom.est-inactive { color: var(--et-faint); font-weight: 500; }

/* ---------------------------------------------------------------------------
   2. LES TROIS MARQUEURS QUE LE RÉFÉRENTIEL NE PORTAIT PAS
   Chacun désigne une information qui décide du résultat d'un calcul, et qu'aucune
   colonne de la table ne porte.
   --------------------------------------------------------------------------- */

/* « Σ total » : la nature est une SOMME. L'employer dans une formule à côté de
   l'une de ses composantes la compterait deux fois. */
.nat-total {
    display: inline-flex; align-items: center;
    margin-left: 7px; padding: 1px 7px;
    background: var(--et-neutre-bg);
    border: 1px solid var(--et-filet-fort);
    font-family: var(--et-font-mono);
    font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--et-table-head-encre);
    cursor: help;
}

/* « rang n » : l'ordre d'évaluation. Une nature calculée passe après ses variables. */
.nat-rang {
    display: inline-flex; align-items: center;
    margin-left: 7px; padding: 1px 7px;
    background: var(--et-tint);
    font-family: var(--et-font-mono);
    font-size: 12px; font-weight: 500;
    color: var(--et-form-blue-d);
}
/* Un cycle n'a pas de rang : aucune des natures en cause ne peut être évaluée. */
.nat-rang.est-cycle { background: var(--et-danger-badge-bg); color: var(--et-danger-ink); }

/* « ↗ n » : nombre de formules qui l'emploient. La désactiver ne les arrête pas. */
.nat-emploi {
    margin-left: 7px;
    font-family: var(--et-font-mono);
    font-size: 12px;
    color: var(--et-faint);
    cursor: help;
}

.nat-type {
    display: inline-flex; align-items: center;
    padding: 2px 9px; font-size: 12px; font-weight: 600;
}
.nat-type.est-systeme { background: var(--et-neutre-bg); color: var(--et-muted); }
.nat-type.est-societe { background: var(--et-tint); color: var(--et-form-blue-d); }

/* Un tiret gris signifie « aucune majoration », non « 0 % » : nul n'est pas zéro. */
/* .mono reste PORTÉE par les familles de l'écran, jamais globale : un nom aussi court posé
   sur la racine serait revendiqué par le premier écran qui l'écrirait pour autre chose. */
.nat-table .mono, .nat-formule .mono { font-family: var(--et-font-mono); }

/* ---------------------------------------------------------------------------
   3. INTERRUPTEUR D'ÉTAT ET CRAYON
   Bleu et non orange : l'orange reste au seul bouton d'engagement de l'écran.
   --------------------------------------------------------------------------- */
.nat-bascule {
    display: block; width: 34px; height: 18px; padding: 0;
    border: none; border-radius: var(--et-r-pill);
    background: var(--et-filet-fort);
    position: relative; cursor: pointer;
    transition: background .12s ease;
}
.nat-bascule.est-actif { background: var(--et-form-blue); }
.nat-bascule:disabled { cursor: not-allowed; opacity: .6; }
.nat-bascule:focus-visible { outline: 2px solid var(--et-form-blue); outline-offset: 2px; }
.nat-bascule .pastille {
    position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--et-surface);
    box-shadow: var(--et-ombre-pose);
    transition: left .12s ease;
}
.nat-bascule.est-actif .pastille { left: 18px; }

/* ---------------------------------------------------------------------------
   6. FICHE — CE QU'IL RESTE À DIRE APRÈS LE PORTAGE AU GABARIT (2026-09-08)

   ELLE EMPLOIE MAINTENANT LA GRILLE DENSE. Ce bloc décrivait l'inverse : une
   grille propre (.nat-identite, .nat-trio, .nat-large, .nat-cases) posée pour
   lire famille, unité et majoration côte à côte, au motif qu'une colonne
   d'étiquettes de 158 px en aurait fait trois lignes dans une modale de 620 px.
   L'écart était réel, sa raison ne l'était pas : la modale passe à 700 px comme
   les fiches des paramètres d'organisation, et trois rangées de la grille dense
   se lisent mieux que trois colonnes de 140 px dont deux portent un <select>.
   Ce qui est perdu — la lecture en une ligne — coûtait cinq notes d'aide
   écrites à la main sous les champs, dont deux pouvaient s'afficher ensemble ;
   ChampFiche arbitre erreur > avertissement > aide en un seul endroit.

   NE RESTENT DONC ICI QUE LES TROIS CHOSES QUE LE GABARIT NE PEUT PAS DIRE :
   la largeur de la modale, la réserve du suffixe « % », et l'étiquette de
   l'atelier de formule (section 7), qui n'est pas une rangée de fiche.
   --------------------------------------------------------------------------- */

/* LA LARGEUR EST CELLE DU CRAN COURANT (2026-09-10) — 660 px, celle du gabarit,
   donc rien à écrire dans la page ni ici. Cette feuille posait 700 px pour sept
   champs, deux <select> de référentiel aux libellés longs et l'atelier de
   formule ; .reforg-modale posait les mêmes 700 px pour la même raison, et
   c'était déjà le signe que ce n'était pas une largeur d'écran mais une largeur
   de gabarit. */

/* La mention du pied dit ce que l'enregistrement fera — ou ce qui l'empêche.
   L'emplacement est celui du gabarit (.mx-modale-mention) ; seul l'état
   « attention » est propre à cette fiche, qui refuse d'enregistrer une formule
   fautive et le dit là. */
.nat-modale .mx-modale-mention.est-attention { color: var(--et-avertissement-ink); }

/* L'étiquette de l'atelier de formule (section 7). Elle survit à la grille
   propre parce que l'atelier n'est pas un champ : il n'a pas de rangée, donc
   pas de libellé de gabarit à recevoir. */
.nat-lbl {
    display: block; margin-bottom: 5px;
    font-size: 12px; font-weight: 600; color: var(--et-ink);
}
.nat-lbl .req { margin-left: 2px; color: var(--et-danger-ink); }

/* Champ suffixé par son unité — « 50 » puis « % », pour qu'on ne saisisse pas « 1,5 ».
   Le composant vit dans le gabarit (.mx-input-suffixe, modele-erp.css § 11) ; ne reste
   ici que la réserve, que commande le seul suffixe de cet écran : « % ». */
.nat-suffixe { --mx-suffixe-reserve: 28px; }

/* ---------------------------------------------------------------------------
   7. NATURE CALCULÉE ET SA FORMULE
   --------------------------------------------------------------------------- */

/* .nat-switch A ÉTÉ PROMU EN .mx-switch (modele-erp.css, section 11), avec
   l'écran des paramètres généraux qui portait la même copie. Rien ne reste ici :
   cette fiche n'avait aucun réglage propre à l'interrupteur. */

.nat-formule { margin-top: 14px; }
.nat-formule .ligne-saisie { display: flex; gap: 8px; align-items: stretch; }
.nat-formule .champ {
    flex: 1; min-width: 0; display: flex;
    border: 1px solid var(--et-filet-fort); background: var(--et-surface);
}
.nat-formule .champ.est-erreur { border-color: var(--et-danger); }
.nat-formule .champ:focus-within { border-color: var(--et-form-blue); }
.nat-formule .champ .ico {
    flex: none; width: 34px; display: grid; place-items: center;
    background: var(--et-surface-2); border-right: 1px solid var(--et-hairline);
    color: var(--et-muted);
}
.nat-formule .champ input {
    flex: 1; min-width: 0; height: 38px; padding: 0 11px;
    border: none; background: transparent;
    font-family: var(--et-font-mono); font-size: 13px; color: var(--et-ink);
    outline: none;
}

/* Le verdict ne s'affiche qu'après « Vérifier » : signaler une erreur de syntaxe à
   chaque frappe rendrait la saisie illisible avant d'être finie. */
.nat-formule .verdict { margin-top: 8px; padding: 10px 13px; font-size: 13px; line-height: 1.55; }
.nat-formule .verdict.est-erreur { background: var(--et-danger-badge-bg); border: 1px solid var(--et-danger-bord); color: var(--et-danger-ink); }
.nat-formule .verdict.est-avert { background: var(--et-avertissement-bg); border: 1px solid var(--et-avertissement-bord); color: var(--et-avertissement-ink); }
.nat-formule .verdict.est-valide { background: var(--et-succes-bg); border: 1px solid var(--et-succes-bord); color: var(--et-succes-ink); }

.nat-formule .grammaire { margin-top: 9px; font-size: 12px; line-height: 1.6; color: var(--et-muted); }
.nat-formule .grammaire .mono { font-family: var(--et-font-mono); color: var(--et-form-blue-d); }

.nat-formule .tete-variables { margin-top: 9px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nat-formule .tete-variables .lbl {
    font-family: var(--et-font-mono); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em; color: var(--et-muted);
}
.nat-formule .tete-variables .note { font-size: 12px; color: var(--et-faint); }

.nat-formule .jetons { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; max-height: 132px; overflow: auto; }
.nat-formule .jeton {
    height: 24px; padding: 0 8px;
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--et-surface); border: 1px solid var(--et-filet-fort);
    font-family: var(--et-font-mono); font-size: 12px; color: var(--et-ink);
    cursor: pointer; white-space: nowrap;
}
.nat-formule .jeton:hover { border-color: var(--et-form-blue); background: var(--et-tint); }
.nat-formule .jeton.est-employe { background: var(--et-tint); border-color: var(--et-form-blue-l); color: var(--et-form-blue-d); }
.nat-formule .jeton .sigma { color: var(--et-faint); }

/* .nat-mention EST PARTIE avec le portage du 2026-09-08 : la mention du pied est
   l'emplacement .mx-modale-mention du gabarit, et seul son état « attention »
   reste dit ici (section 6). */

/* ===========================================================================
   REPRISE DU 2026-10-02 (docs/modeles/design_handoff_natures_heures)
   Tuiles, bandeau, onglets et pastilles viennent du gabarit. Ici : la barre de
   recherche, le tableau compact à huit colonnes sur une ligne, les cartes sous
   1024 px, l'interrupteur de 44 px, et la fiche à libellés au-dessus.
   =========================================================================== */
.nat-vues { margin-bottom: 12px; }

.nat-signal-ligne { align-items: center; flex-wrap: wrap; }
.nat-signal-txt { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nat-signal-acte { flex: none; }
@media (max-width: 1024px) { .nat-signal-acte { min-height: 44px; } }
@media (max-width: 640px)  { .nat-signal-acte { flex: 1 1 100%; justify-content: center; margin-left: 18px; } }

/* La barre : recherche et origine à gauche, les gestes à droite. */
.nat-barre { flex-wrap: wrap; gap: 10px; }
.nat-recherche {
    flex: 1 1 240px; max-width: 380px; display: flex; align-items: center; gap: 8px;
    height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--et-bord-champ); background: var(--et-surface);
}
.nat-recherche .bi { color: var(--et-muted); }
.nat-recherche input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--et-ink); }
.nat-recherche input:focus { outline: none; }
.nat-recherche:focus-within { border-color: var(--et-form-blue); }
.nat-origine { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--et-muted); }
.nat-origine .mx-select { height: 44px; width: auto; }

/* Le tableau : une ligne par nature, l'en-tête cliquable en vrai bouton. */
.nat-table thead th { padding: 0; font-family: inherit; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--et-sur-ardoise-plein); cursor: default; }
.nat-tri {
    width: 100%; min-height: 36px; padding: 0 12px; border: 0; background: transparent;
    font: inherit; color: inherit; text-align: inherit; cursor: pointer;
}
.nat-tri:focus-visible { outline: 2px solid var(--et-sur-ardoise-plein); outline-offset: -2px; }
.nat-table thead th[aria-sort="ascending"] .nat-tri::after { content: " ↑"; }
.nat-table thead th[aria-sort="descending"] .nat-tri::after { content: " ↓"; }
.nat-table tbody td { padding: var(--et-cellule-y) 12px; }
@media (max-width: 1024px) { .nat-table tbody td { height: 44px; } }   /* règle tactile, sous 1024 px seulement : posée dès le bureau, la hauteur figeait la ligne (lot AK2) */
.nat-table tbody td.id { font-size: 13px; color: var(--et-muted); }
.nat-table tbody td.code { font-weight: 600; }
.nat-table .cellule-nom { border-right: 0; white-space: nowrap; }
.nat-table .cellule-nom .nom { font-weight: 600; }
.nat-table tbody tr.est-inactive .cellule-nom .nom { color: var(--et-muted); font-weight: 500; text-decoration: line-through; }
/* Désactivée MAIS employée : la formule qui la lit tourne à zéro. Ligne teintée, filet rouge. */
.nat-table tbody tr.est-videe > td { background: var(--et-danger-badge-bg); }
.nat-table tbody tr.est-videe > td:first-child { box-shadow: inset 3px 0 0 var(--et-danger); }
.nat-bandeau td { padding: var(--et-cellule-total-y) 12px !important; background: var(--et-surface-2); border-top: 0; }
.nat-bandeau .libelle { color: var(--et-ink); }
.nat-bandeau .compte { color: var(--et-muted); font-weight: 600; }

/* Les marques : des pastilles à l'encre, plus de tiret ni de flèche grisés. */
.nat-total { margin-left: 8px; padding: 1px 8px; border: 0; border-radius: var(--et-r-pill); text-transform: none; letter-spacing: 0; font-family: inherit; font-weight: 600; background: var(--et-rang); color: var(--et-ink); }
.nat-rang { margin-left: 8px; padding: 1px 8px; border-radius: var(--et-r-pill); font-family: inherit; font-weight: 600; }
.nat-emploi { margin-left: 8px; font-family: inherit; font-weight: 600; color: var(--et-ink); }
.nat-type { border-radius: var(--et-r-pill); }
.nat-type.est-systeme { background: var(--et-rang); color: var(--et-ink); }

/* L'interrupteur : la cible fait 44 px, la piste reste à sa taille. */
.nat-bascule { width: 44px; height: 40px; border-radius: 0; background: transparent; display: flex; align-items: center; }
.nat-bascule.est-actif { background: transparent; }
.nat-bascule .piste {
    position: relative; display: block; width: 36px; height: 20px;
    border-radius: var(--et-r-pill); background: var(--et-bord-champ); transition: background .12s ease;
}
.nat-bascule.est-actif .piste { background: var(--et-form-blue); }
.nat-bascule .pastille { top: 2px; left: 2px; width: 16px; height: 16px; }
.nat-bascule.est-actif .pastille { left: 18px; }

/* Sous 1024 px : une carte par nature, comme le gabarit de liste. */
@media (max-width: 1024px) {
    .nat-table, .nat-table tbody { display: block; width: 100%; }
    .nat-table thead { display: none; }
    .nat-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-bottom: 1px solid var(--et-rang); }
    .nat-table tbody tr > td { display: block; height: auto; padding: 0; border: 0; white-space: normal; }
    .nat-table tbody tr.nat-bandeau { padding: 0; }
    .nat-table tbody tr.nat-bandeau > td { flex: 1 1 100%; }
    .nat-table tbody td.id { order: 1; }
    .nat-table tbody td.code { order: 2; }
    /* Ligne 1 : identifiant, code et interrupteur ; ligne 2 : le libellé et ses marques ;
       ligne 3 : unité, majoration, code ERP, origine. */
    .nat-table tbody td.actif { order: 3; margin-left: auto; }
    .nat-table tbody td.cellule-nom { order: 4; flex: 1 1 100%; min-width: 0; }
    .nat-table tbody td.unite, .nat-table tbody td.majo, .nat-table tbody td.erp, .nat-table tbody td.origine { order: 5; font-size: 13px; color: var(--et-muted); }
    .nat-table tbody td.majo { text-align: left; }
    .nat-table .cellule-nom { white-space: normal; }
    .nat-table tbody td.cellule-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
    .nat-table .cellule-nom .nom { flex: 1 1 100%; }
    .nat-total, .nat-rang, .nat-emploi { margin: 0; white-space: normal; }
    .nat-cadre { overflow-x: visible; }
    .nat-table tbody tr.est-videe { background: var(--et-danger-badge-bg); box-shadow: inset 3px 0 0 var(--et-danger); }
    .nat-table tbody tr.est-videe > td { background: none; box-shadow: none; }
}

@media (max-width: 640px) {
    .nat-recherche { max-width: none; flex-basis: 100%; }
    .nat-barre .tbl-barre-fin { flex-wrap: wrap; width: 100%; margin-left: 0; }
    .nat-barre .tbl-barre-fin > * { flex: 1 1 auto; justify-content: center; min-height: 44px; }
}

/* --- La fiche : un seul groupe, libellés au-dessus, sur deux colonnes ---- */
.nat-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-bottom: 16px; }
.nat-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.nat-champ.est-plein { grid-column: 1 / -1; }
.nat-champ-lbl { font-size: 13px; font-weight: 600; color: var(--et-ink); }
.nat-champ .mx-input, .nat-champ .mx-select { height: 40px; }
.nat-champ .nat-suffixe { max-width: 160px; }
.nat-alerte { font-size: 12px; line-height: 1.5; color: var(--et-avertissement-ink); }
.nat-cases { display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.nat-case {
    display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 12px;
    background: var(--et-surface-2); border: 1px solid var(--et-hairline); font-size: 14px; color: var(--et-ink); cursor: pointer;
}
.nat-case input { width: 18px; height: 18px; flex: none; accent-color: var(--et-form-blue); }

.nat-seg { display: inline-flex; align-self: flex-start; border: 1px solid var(--et-bord-champ); }
.nat-seg > button {
    min-height: 44px; min-width: 96px; padding: 0 14px; border: 0; border-right: 1px solid var(--et-filet-fort);
    background: var(--et-surface); font: inherit; font-size: 14px; color: var(--et-ink); cursor: pointer;
}
.nat-seg > button:last-child { border-right: 0; }
.nat-seg > button.est-actif { background: var(--et-form-blue); color: var(--et-sur-aplat); font-weight: 600; }
.nat-seg > button:disabled { cursor: not-allowed; }
.nat-seg > button:disabled:not(.est-actif) { background: var(--et-surface-2); color: var(--et-muted); }

/* La nature calculée : un encadré à interrupteur, la formule dedans. */
.nat-calcul { margin-bottom: 16px; border: 1px solid var(--et-hairline); }
.nat-calcul-tete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 14px; background: var(--et-surface-2); border-bottom: 1px solid var(--et-hairline); }
.nat-calcul-etat { font-size: 13px; color: var(--et-muted); }
.nat-calcul .nat-formule { margin: 0; padding: 14px; }
.nat-formule .champ { min-height: 44px; }
.nat-formule .ligne-saisie .mx-btn { min-height: 44px; }
.nat-formule .grammaire { color: var(--et-muted); }
.nat-formule .tete-variables .note { color: var(--et-muted); }
.nat-formule .jeton { height: 36px; }
@media (max-width: 1024px) {
    .nat-formule .jeton { height: 44px; min-width: 44px; justify-content: center; }
    .nat-formule .champ input { min-height: 44px; }
}
.nat-formule .jeton.est-eteinte { background: var(--et-danger-badge-bg); border-color: var(--et-danger); color: var(--et-danger-ink); }

@media (max-width: 720px) {
    .nat-champs { grid-template-columns: minmax(0, 1fr); }
    .nat-seg { align-self: stretch; }
    .nat-seg > button { flex: 1 1 0; min-width: 0; }
}
