/* ═══════════════════════════════════════════════════════════════
   NIMRY InfraXact — Habillage (17/11/2026)

   Le style d'Adarka Fueling, aux couleurs NIMRY : boutons en pilule,
   cartes à 22 px et ombre douce, champs de 56 px au libellé qui flotte
   sur le bord, cases rondes, puces sans bordure, onglets soulignés,
   fenêtres sur un fond flouté, police DM Sans.

   Chargée en DERNIER, après ui-pro.css : elle habille les composants
   existants sans changer leur balisage — aucune vue n'a été réécrite.
   Toute couleur passe par un jeton (tokens.css, Marque::styles).
   ═══════════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────────── */
body{font-size:14.5px; line-height:1.5}
h1,h2,h3,h4,h5{font-weight:700; letter-spacing:-.01em; text-wrap:balance}
h1{font-size:26px} h2{font-size:20px} h3{font-size:16.5px}
a:hover{text-underline-offset:3px}
:focus-visible{outline:none; box-shadow:0 0 0 4px var(--focus-anneau)}
.pagehead{margin-bottom:24px; align-items:center}
.pagehead__t h1{margin-bottom:4px}
.pagehead__t p{font-size:14px}
.pagehead__a{gap:10px}

/* ── Boutons : pilules (40 ; petit 34 ; grand 52) ──────────────
   Le bouton ordinaire est « doux » : fond teinté de la marque, texte de
   la marque, comme les actions secondaires d'Adarka. */
.btn{
  height:40px; padding:0 18px; gap:8px; border-radius:var(--r-pilule); border:1.5px solid transparent;
  background:var(--brand-50); color:var(--brand-700); font-size:14px; font-weight:700;
  box-shadow:none; transition:transform var(--d-appui) var(--c-sortie), background-color var(--d-court),
    border-color var(--d-court), box-shadow var(--d-court), color var(--d-court);
}
.btn:hover{background:var(--brand-100); border-color:transparent; transform:none; box-shadow:none}
.btn:active{transform:scale(.97)}
.btn svg{width:17px; height:17px}
.btn--primary{background:var(--brand); border-color:var(--brand); color:var(--texte-sur-marque); box-shadow:none}
.btn--primary:hover{background:var(--brand-600); border-color:var(--brand-600); color:var(--texte-sur-marque); box-shadow:none; transform:none}
.btn--accent{background:var(--accent); border-color:var(--accent); color:var(--texte-sur-accent)}
.btn--accent:hover{background:var(--accent-600); border-color:var(--accent-600); color:var(--texte-sur-accent)}
.btn--danger{background:var(--red); border-color:var(--red); color:#fff}
.btn--danger:hover{background:var(--red); border-color:var(--red); color:#fff}
.btn--ghost{background:transparent; border-color:transparent; color:var(--ink-2)}
.btn--ghost:hover{background:var(--brand-50); color:var(--brand-700)}
.btn--sm{height:34px; padding:0 14px; font-size:13px; border-radius:var(--r-pilule)}
.btn--sm svg{width:15px; height:15px}
.btn--lg, .btn--xl{height:52px; padding:0 24px; font-size:15px; border-radius:var(--r-pilule)}
.leaflet-container a.btn{color:var(--brand-700)}
.leaflet-container a.btn--primary{color:var(--texte-sur-marque)}
.leaflet-container a.btn--accent{color:var(--texte-sur-accent)}
.iconbtn{width:40px; height:40px; border-radius:50%; color:var(--ink-3)}
.iconbtn:hover{background:var(--brand-50); color:var(--brand-700)}
@media (prefers-reduced-motion: reduce){ .btn:active{transform:none} }

/* ── Cartes : 22 px, trait fin, ombre douce, sans filet sous le titre ─ */
.card, .kpi{border-radius:var(--r-lg); border:1px solid var(--line); box-shadow:var(--sh-1)}
.card__h{padding:20px 24px 6px; border-bottom:0}
.card__h h3{font-size:16px}
.card__h p{font-size:13px}
.card__b{padding:16px 24px 24px}
.card__h + .card__b--flush{border-top:1px solid var(--line-2); margin-top:12px}
.card__f{padding:14px 24px; background:transparent; border-top:1px solid var(--line-2);
  border-radius:0 0 var(--r-lg) var(--r-lg); font-size:13px}
.kpi{padding:20px 24px}
.kpi__l{font-size:13px; font-weight:600}
.kpi__v{font-weight:700}
@media (max-width:640px){
  .card__h{padding:16px 16px 4px}
  .card__b{padding:12px 16px 18px}
  .card__f{padding:12px 16px}
  .kpi{padding:16px}
}

/* ── Puces : sans bordure, fond teinté, texte gras ────────────── */
.badge{height:24px; padding:0 10px; border-color:transparent; font-size:12px; font-weight:700; letter-spacing:0}
.badge--libre{height:auto; min-height:24px; padding:3px 10px}
.b-red{background:var(--red-50); color:var(--red-700)}
.b-amber{background:var(--amber-50); color:var(--amber-700)}
.b-blue{background:var(--brand-50); color:var(--brand-700)}
.b-green{background:var(--green-50); color:var(--green-700)}
.b-slate{background:var(--slate-100); color:var(--ink-2)}
.b-violet{background:var(--violet-50); color:var(--violet-700)}
.pill{font-weight:700; font-size:12px}
.pill--accent{background:var(--accent-50); color:var(--accent-600)}

/* ── Bandeaux (notes) : fond teinté, sans bordure ─────────────── */
.note{padding:14px 16px; border-radius:var(--r-champ); border-color:transparent; font-size:13.5px; line-height:1.55}
.note--warn{background:var(--amber-50); color:var(--amber-800)}

/* ── Champs ───────────────────────────────────────────────────── */
/* Le champ seul (forme, bordure, chevron, focus) est dans base.css :
   les composants qui ont leur propre champ (recherche, connexion,
   filtres) passent après et gardent la main. */

/* Le champ au libellé flottant — la forme « libellé puis champ » d'un
   `.field`, soit neuf champs sur dix (mesuré sur toutes les pages le
   17/11/2026). Le libellé se pose dans le haut du cadre ; il reste sur
   une ligne, coupé d'une ellipse s'il est trop long. Les autres formes
   (une aide entre le libellé et le champ, deux champs côte à côte)
   gardent le libellé au-dessus. `:where()` ôte aux `:not()` leur poids :
   la règle du libellé trop long (plus bas) doit pouvoir l'emporter. */
.field{position:relative; margin-top:16px}
.field > label:first-child:where(:has(+ :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]),select:not([multiple]),textarea))){
  position:absolute; left:17px; right:16px; top:8px; z-index:1; margin:0;
  font-size:12px; font-weight:600; color:var(--ink-3); pointer-events:none;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:color var(--d-court);
}
.field > label:first-child + :where(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]),select:not([multiple]),textarea){
  min-height:56px; padding:24px 16px 8px; background-color:var(--surface);
}
.field > label:first-child + select:not([multiple]){padding-right:44px}
.field > label:first-child + textarea{padding-top:28px}
.field:focus-within > label:first-child{color:var(--brand-700)}
/* Le libellé trop long pour son champ (mesuré par shell.js) : il repasse
   au-dessus du champ, sur autant de lignes qu'il faut, et le champ reprend
   sa hauteur ordinaire. */
.field.field--libelle-long > label:first-child{position:static; display:block; margin:0 0 6px; padding:0 4px;
  white-space:normal; overflow:visible; text-overflow:clip; color:var(--ink-2); font-size:12.5px}
.field.field--libelle-long > label:first-child + :is(input,select,textarea){min-height:44px; padding-top:10px; padding-bottom:10px}
.field > label .req, .field .req{color:var(--red)}
.field .hint{font-size:12.5px; color:var(--ink-3); margin-top:6px; padding:0 4px}
.field .err{font-size:12.5px; font-weight:600; padding:0 4px}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:var(--red); box-shadow:none}
.formgrid{gap:0 14px}

/* Les filtres en ligne : des pilules. */
.selectwrap select{height:36px; min-height:36px; padding:0 34px 0 14px; border-radius:var(--r-pilule);
  font-size:13px; font-weight:600; background-image:none}
.chip{height:36px; padding:0 14px; border-radius:var(--r-pilule); border:1.5px solid var(--line); font-size:13px; font-weight:600}
.chip.is-on{background:var(--brand); border-color:var(--brand); color:var(--texte-sur-marque)}

/* ── Interrupteurs ────────────────────────────────────────────── */
.switch{width:44px; height:26px}
.switch::after{width:20px; height:20px; top:3px; left:3px}
.switch.is-on::after{transform:translateX(18px)}

/* ── Segments : choix exclusif compact, en pilules ───────────── */
.seg{padding:3px; border-radius:var(--r-pilule); background:var(--bg); border:1px solid var(--line); gap:2px}
.seg button{min-height:34px; padding:0 14px; border-radius:var(--r-pilule); font-weight:700; font-size:13px}
.seg button.is-on{background:var(--surface); color:var(--brand-700); box-shadow:var(--sh-2)}

/* ── Onglets : soulignés, texte gras ─────────────────────────── */
.tabs{gap:22px; margin-bottom:22px}
.tab{padding:10px 0 12px; font-size:14px; font-weight:600}
.tab.is-on{color:var(--ink); border-bottom-color:var(--brand)}
.tab .cnt{padding:0 7px; font-size:11.5px}

/* ── Tableaux ─────────────────────────────────────────────────── */
table.tbl{font-size:14px}
table.tbl th{font-size:12px; font-weight:700; letter-spacing:.05em; color:var(--ink-3); background:var(--bg); padding:12px 16px}
table.tbl td{padding:13px 16px; border-bottom-color:var(--line)}
table.tbl tbody tr:hover{background:var(--surface-2)}
table.tbl .id{color:var(--lien)}
table.tbl th.vr{background:var(--bg)}

/* ── Fenêtres, panneaux, messages ─────────────────────────────── */
.modal{background:var(--scrim); -webkit-backdrop-filter:var(--scrim-flou); backdrop-filter:var(--scrim-flou)}
.modal__box{border-radius:var(--r-xl); box-shadow:var(--sh-4); animation:monte var(--d-moyen) var(--c-sortie)}
.modal__h{padding:24px 24px 0}
.modal__f{background:transparent; border-top:1px solid var(--line-2); border-radius:0 0 var(--r-xl) var(--r-xl); gap:10px}
.notifpanel{border-radius:var(--r-lg); padding:6px}
.notif{border-radius:14px; border-bottom:0}
.notif .ic{border-radius:50%}
.toast{border-radius:var(--r-lg); padding:14px 18px; font-size:14px}
@keyframes monte{from{opacity:0; transform:translateY(18px) scale(.98)}}
@media (prefers-reduced-motion: reduce){ .modal__box{animation:none} }

/* ── Le logo, la nuit ─────────────────────────────────────────────
   Le logo d'origine a sa version blanche (Marque::urlLogoNuit) ; un logo
   déposé, dont on ignore les couleurs, est posé sur une pastille claire.
   Les deux blocs de nuit, à l'identique. */
.logo-nuit{display:none}
:root[data-theme="sombre"] .topbar__brand:has(.logo-nuit) .logo-jour{display:none}
:root[data-theme="sombre"] .topbar__brand .logo-nuit{display:block}
:root[data-theme="sombre"] .topbar__brand:not(:has(.logo-nuit)) .logo-jour{background:#ffffff; padding:3px 7px; border-radius:8px; box-sizing:content-box}
@media (prefers-color-scheme: dark){
  :root[data-theme="appareil"] .topbar__brand:has(.logo-nuit) .logo-jour{display:none}
  :root[data-theme="appareil"] .topbar__brand .logo-nuit{display:block}
  :root[data-theme="appareil"] .topbar__brand:not(:has(.logo-nuit)) .logo-jour{background:#ffffff; padding:3px 7px; border-radius:8px; box-sizing:content-box}
}

/* ── Connexion (et code, lien de signature) : une colonne centrée ──
   Fond uni, logo à 48 px, champs encadrés au libellé flottant, pays en
   pilules, bouton de 52 px — l'écran de connexion d'Adarka. */
body.pro-login{background-image:none}
.lp-wrap{max-width:448px}
.lp-logo{height:48px}
.lp-title{font-size:28px; font-weight:700; margin-top:18px}
.lp-sub{font-size:14px; color:var(--ink-3); margin-top:4px}
.lp-lab{font-size:12px; letter-spacing:.06em; color:var(--ink-3); margin:24px 0 8px}
.lp-countries{display:inline-flex; flex-wrap:wrap; gap:4px; padding:3px; border-radius:var(--r-pilule);
  background:var(--surface); border:1px solid var(--line)}
.lp-cty{min-height:36px; padding:0 16px; border:0; border-radius:var(--r-pilule); font-size:14px; font-weight:700; color:var(--ink-3)}
.lp-cty:hover{color:var(--brand-700)}
.lp-cty.is-on{background:var(--brand-50); color:var(--brand-700); border:0}
.lp-field{position:relative; margin-top:16px}
.lp-field > label{position:absolute; left:17px; right:52px; top:8px; z-index:1; margin:0; pointer-events:none;
  font-size:12px; font-weight:600; letter-spacing:0; color:var(--ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.lp-field:focus-within > label{color:var(--brand-700)}
.lp-input input{min-height:56px; padding:24px 48px 8px 16px; border:1.5px solid var(--line-fort); border-radius:var(--r-champ);
  background:var(--surface); font-size:15px}
.lp-input input:hover{border-color:var(--ink-4)}
.lp-input input:focus{border-color:var(--accent); box-shadow:0 0 0 4px var(--focus-anneau)}
.lp-eye{right:8px; width:40px; height:40px; border-radius:50%}
.lp-eye:hover{background:var(--brand-50); color:var(--brand-700)}
.lp-eye svg{width:20px; height:20px}
.lp-cta{height:52px; margin-top:24px; font-size:15px}

/* ═══════════════ LE CADRE (étape 2) ═══════════════
   La barre latérale reste (choix de l'exploitant, 17/11/2026) ; elle prend
   la forme des menus d'Adarka : entrées arrondies, l'entrée active sur un
   fond teinté, sans liseré. La barre du haut : verre flouté, pilules. */
body.pro{background-image:none}

/* ── Barre du haut ── */
body.pro .topbar{background:color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter:saturate(1.4) blur(12px); backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid var(--line); box-shadow:none}
.topbar__product{font-weight:700; border-left-color:var(--line)}
.topbar__search input, body.pro .topbar__search input{height:40px; border:1.5px solid transparent; background:var(--bg); border-radius:var(--r-pilule); font-size:14px}
.topbar__search input:hover, body.pro .topbar__search input:hover{border-color:var(--line-fort)}
.topbar__search input:focus, body.pro .topbar__search input:focus{border-color:var(--accent); box-shadow:0 0 0 4px var(--focus-anneau); background:var(--surface)}
.topbar__ctx{height:40px; border-radius:var(--r-pilule); border:1.5px solid var(--line); background:var(--surface); font-weight:600}
.topbar__ctx:hover{background:var(--brand-50); border-color:transparent; color:var(--brand-700)}
.topbar__ctxpanel{border-radius:var(--r-lg); box-shadow:var(--sh-4); padding:16px}
.topbar__langue{height:40px; border-radius:var(--r-pilule)}
.topbar__user{border-radius:var(--r-pilule); padding:4px 12px 4px 4px}
.topbar__user:hover{background:var(--brand-50)}
.topbar__user .avatar, .topbar .avatar{width:36px; height:36px; background:var(--brand-50); color:var(--brand-700); font-size:13px}
/* Sur téléphone, le compte reprend sa forme serrée (components.css) : la marge
   du poste de bureau prenait au logo la place qu'il lui faut (320 px). */
@media (max-width:760px){
  .topbar__user{padding:2px}
  .topbar__user .avatar, .topbar .avatar{width:32px; height:32px; font-size:12px}
}

/* ── Barre latérale ── */
.sidebar{background:var(--surface); border-right:1px solid var(--line); padding:12px 12px 32px}
.navitem, body.pro .navitem{min-height:42px; padding:10px 12px; margin:2px 0; border-radius:12px;
  color:var(--ink-2); font-size:14px; font-weight:600}
.navitem:hover, body.pro .navitem:hover{background:var(--bg); color:var(--ink)}
.navitem.is-on, body.pro .navitem.is-on{background:var(--brand-50); color:var(--brand-700); font-weight:700}
.navitem.is-on svg{color:var(--brand-700)}
body.pro .navitem::before{display:none}
.navitem .cnt{padding:1px 8px; font-size:11.5px}
.navitem.is-on .cnt{background:var(--brand); color:var(--texte-sur-marque)}
.navgroup__t, body.pro .navgroup__t{font-size:11px; letter-spacing:.08em; color:var(--ink-4)}
.navrow__t{border-radius:10px}
.navrow__t:hover{background:var(--bg)}
.navitem--sous{font-size:13.5px; font-weight:600; min-height:36px}
.navsous__l{border-left-color:var(--line)}
body.pro .health{border-radius:10px}
body.pro .health:hover{background:var(--bg)}

/* ── Rythme de page ── */
body.pro .main{padding-top:28px}
body.pro .pagehead h1{font-size:26px; letter-spacing:-.02em}
body.pro .card{border-radius:var(--r-lg)}
body.pro .card__h{padding:20px 24px 6px}
body.pro .card__b{padding:16px 24px 24px}
body.pro .card__f{border-radius:0 0 var(--r-lg) var(--r-lg)}
@media (max-width:640px){
  body.pro .card__h{padding:16px 16px 4px}
  body.pro .card__b{padding:12px 16px 18px}
}

/* ═══════════════ TABLEAU DE BORD ET FORMULAIRES (étape 3) ═══════════════ */
body.pro .kpi{border-radius:var(--r-lg)}
body.pro .modal__box{border-radius:var(--r-xl)}
body.pro .toast{border-radius:var(--r-lg); font-size:14px}

/* Les tuiles : 22 px, pastille ronde (Adarka) ; les blocs intérieurs à 16. */
.db-tile{border-radius:var(--r-lg); box-shadow:var(--sh-1)}
.db-tile .ic{border-radius:50%}
.db-tile .v{font-weight:700}
.db-tile .l{font-size:12.5px; font-weight:600}
.tdb-sec{border-radius:var(--r-lg)}
.tdb-heros{border-radius:var(--r-lg)}
.tdb-heros__etat{border-radius:var(--r-pilule)}
.tdb-compar{border-radius:var(--r-lg)}
.tdb-delta, .tdb-chiffre, .tdb-chrono, .tdb-podium__c{border-radius:16px}
.tdb-calme{border-radius:var(--r-champ)}
.tdb-delta__n{font-weight:600}

/* Le grand bloc, la nuit : une carte teintée de la marque, comme Adarka —
   pas un aplat de marine éclairci. Les deux blocs de nuit, à l'identique. */
:root[data-theme="sombre"] .tdb-heros{background:linear-gradient(135deg, var(--brand-100) 0%, var(--brand-50) 100%); color:var(--ink); border:1px solid var(--brand-200)}
:root[data-theme="sombre"] .tdb-heros:hover{color:var(--ink)}
:root[data-theme="sombre"] .tdb-heros__etat{background:color-mix(in srgb, var(--ink) 14%, transparent)}
@media (prefers-color-scheme: dark){
  :root[data-theme="appareil"] .tdb-heros{background:linear-gradient(135deg, var(--brand-100) 0%, var(--brand-50) 100%); color:var(--ink); border:1px solid var(--brand-200)}
  :root[data-theme="appareil"] .tdb-heros:hover{color:var(--ink)}
  :root[data-theme="appareil"] .tdb-heros__etat{background:color-mix(in srgb, var(--ink) 14%, transparent)}
}

/* ── Formulaires : sections en cartes, actions en bas ── */
.formgrid .field--full textarea{min-height:110px}
.field > input[type=file]{padding:10px 12px; border:1.5px dashed var(--line-fort); border-radius:var(--r-champ); background:var(--surface); width:100%}
input[type=file]::file-selector-button{margin-right:12px; height:34px; padding:0 14px; border:0; border-radius:var(--r-pilule);
  background:var(--brand-50); color:var(--brand-700); font:inherit; font-size:13px; font-weight:700; cursor:pointer}
input[type=file]::file-selector-button:hover{background:var(--brand-100)}
input[type=range]{accent-color:var(--brand)}
fieldset{border:1px solid var(--line); border-radius:var(--r-champ); padding:12px 16px 16px}
legend{padding:0 6px; font-size:13px; font-weight:700; color:var(--ink-2)}

/* ═══════════════ LES EXPLICATIONS DERRIÈRE UN (i) (17/11/2026) ═══════════════
   « Les explications doivent être dans (i) partout » : la phrase qui dit à
   quoi sert un écran, une carte ou une section se range derrière un rond (i),
   posé à côté du titre (helper explication(), shell.js). Une phrase qui porte
   une donnée reste visible : ce n'est pas une explication. */
.info-i{position:relative; display:inline-flex; vertical-align:middle; flex:none}
.info-i__b{display:inline-grid; place-items:center; width:26px; height:26px; padding:0; border-radius:50%;
  border:1.5px solid var(--line-fort); background:var(--surface); color:var(--ink-3); cursor:pointer}
.info-i__b svg{width:15px; height:15px}
.info-i__b:hover, .info-i__b[aria-expanded="true"]{border-color:var(--brand-200); background:var(--brand-50); color:var(--brand-700)}
.info-i__bulle{position:absolute; top:calc(100% + 8px); left:-8px; z-index:80; width:max-content;
  max-width:min(340px, calc(100vw - 48px)); padding:12px 14px; border:1px solid var(--line); border-radius:16px;
  background:var(--surface); box-shadow:var(--sh-4); color:var(--ink-2); font-size:13.5px; font-weight:500;
  line-height:1.55; text-transform:none; letter-spacing:0; white-space:normal; text-align:left; cursor:auto}
.js .info-i__bulle{display:none}
.js .info-i.is-ouvert .info-i__bulle{display:block; animation:monte var(--d-court) var(--c-sortie)}
/* Sans script : le rond s'efface, le texte reste lu à sa place, comme avant. */
html:not(.js) .info-i__b{display:none}
html:not(.js) .info-i{display:block; flex-basis:100%}
html:not(.js) .info-i__bulle{position:static; width:auto; max-width:none; padding:0; border:0; box-shadow:none;
  background:none; color:var(--ink-3); font-size:13px}

/* Le rond suit le titre, sur sa ligne ; le reste du bloc passe dessous. */
.pagehead__t{display:flex; flex-wrap:wrap; align-items:center; column-gap:10px}
.pagehead__t > :not(h1):not(h2):not(.info-i){flex-basis:100%}
.pagehead__t > h1, .pagehead__t > h2{margin-bottom:0}
.card__h > div:first-child:has(> .info-i){display:flex; flex-wrap:wrap; align-items:center; column-gap:8px}
.card__h > div:first-child:has(> .info-i) > :not(h2):not(h3):not(h4):not(.info-i){flex-basis:100%}
.tdb-sec__h .info-i{align-self:center}
/* Le haut du tableau de bord : plus de salutation, les seuls gestes, à droite. */
.db-hero--gestes{justify-content:flex-end; align-items:center; margin-bottom:16px}
@media (max-width:760px){ .db-hero--gestes{align-items:stretch} }
/* Dans le corps d'une carte : le rond à la place du paragraphe, près de ce qu'il explique. */
.info-i--bloc{display:flex; margin:6px 0}
.info-i--bloc .info-i__bulle{left:0}

/* Une règle de mot de passe enfreinte, en direct ; une erreur qui reste jusqu'à ce qu'on la ferme (29/11/2026). */
.mdp-regle.is-ko{color:var(--red-700)}
.mdp-regle.is-ko::before{content:"✕"}
.toasts{pointer-events:none}
.toast--fixe{pointer-events:auto; padding-right:10px}
.toast__fermer{margin-left:6px; width:28px; height:28px; border:0; border-radius:50%; background:transparent;
  color:inherit; font-size:18px; line-height:1; cursor:pointer; opacity:.8}
.toast__fermer:hover{opacity:1; background:color-mix(in srgb, currentColor 15%, transparent)}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════
   L'EN-TÊTE ALLÉGÉ (01/12/2026) — « pour la sélection du métier, du client, du pays, affiche juste un globe ; même
   chose pour la recherche et la langue ». Trois icônes rondes : chacune ouvre son panneau, aucune n'occupe la barre.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.topbar__scopes{flex:none}
.topbar__ctx{width:40px; height:40px; padding:0; justify-content:center; border-radius:50%; gap:0;
  border:0; background:transparent; color:var(--ink-3)}
.topbar__ctx:hover{background:var(--brand-50); color:var(--brand-700)}
.topbar__ctx-ic{color:inherit}
.topbar__ctx-ic svg{width:19px; height:19px}
.topbar__ctx-t, .topbar__ctx-chev{display:none}
.topbar__ctx[aria-expanded="true"]{border-color:var(--brand); color:var(--brand-700); background:var(--brand-50)}
.topbar__ctxresume{margin:0 0 2px; font-size:12.5px; color:var(--ink-3); line-height:1.4}
.topbar__ctxresume b{color:var(--ink); font-weight:650}

.topbar__search{flex:none; min-width:0; max-width:none; display:flex}
.topbar__search .iconbtn{width:40px; height:40px}
/* L'icône de l'ancien champ était posée à 13 px du bord (base.css) : la loupe reprend la place d'une icône de bouton. */
.topbar__search svg{position:static; left:auto; width:19px; height:19px; color:inherit}

/* La langue : son icône, le choix natif s'ouvre en la touchant (comme sur téléphone depuis le 17/11). */
.topbar__langue{position:relative; width:40px; height:40px; padding:0; justify-content:center; border-radius:50%;
  border:0; background:transparent; color:var(--ink-3)}
.topbar__langue:hover{background:var(--brand-50); color:var(--brand-700)}
.topbar__langue svg{width:19px; height:19px}
.topbar__langue form{position:absolute; inset:0}
.topbar__langue select{position:absolute; inset:0; width:100%; height:100%; max-width:none; opacity:0; cursor:pointer}

@media (max-width:980px){
  /* Plus de second rang pour le périmètre : le globe tient dans la barre, son panneau s'ouvre sous elle. */
  :root{--topbar-h:60px}
  .topbar__scopes{order:0; flex:none; padding:0}
  .topbar__ctx{width:38px; height:38px; max-width:none}
  .topbar__ctxpanel{position:fixed; left:12px; right:12px; top:calc(var(--topbar-h) + 4px); width:auto}
  .topbar__search{display:flex}
  .topbar__search .iconbtn{width:38px; height:38px}
  /* Un seul rang : plus de retour à la ligne, le logo cède la place (il garde 48 px, test_barre_perimetre). */
  .topbar{flex-wrap:nowrap; gap:0 6px}
}
@media (max-width:420px){
  /* « Me guider » et le manuel de l'écran quittent la barre ; ils restent dans le menu (Guide, Manuel). */
  .topbar__right #btnGuide, .topbar__right #btnManuel{display:none}
  .topbar{gap:0 4px; padding:0 8px}
  .topbar__right{gap:4px}
  .topbar__ctx, .topbar__search .iconbtn, .topbar__right .iconbtn{width:34px; height:34px}
  .topbar__ctx-ic svg, .topbar__search svg, .topbar__right .iconbtn svg{width:17px; height:17px}
}

/* ── La fenêtre de recherche ── */
html.palette-ouverte{overflow:hidden}
.palette{position:fixed; inset:0; z-index:200; display:flex; justify-content:center; align-items:flex-start;
  padding:12vh 16px 16px; background:color-mix(in srgb, var(--ink) 38%, transparent)}
.palette[hidden]{display:none}
.palette__box{width:min(640px, 100%); max-height:72vh; display:flex; flex-direction:column; overflow:hidden;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-4)}
.palette__champ{display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line)}
.palette__champ svg{width:18px; height:18px; flex:none; color:var(--ink-3)}
.palette__champ input{flex:1; min-width:0; height:40px; border:0; outline:0; background:transparent; font-size:16px; color:var(--ink); box-shadow:none}
.palette__champ input:focus{box-shadow:none; border:0}
.palette kbd{font-family:var(--font); font-size:11px; color:var(--ink-3); border:1px solid var(--line); border-radius:6px; padding:1px 6px; background:var(--bg)}
.palette__res{overflow-y:auto; padding:6px 8px 8px}
.palette__res[aria-busy="true"]{opacity:.6}
.palette__vide{margin:14px 10px; font-size:13.5px; color:var(--ink-3)}
.palette__groupe + .palette__groupe{margin-top:6px}
.palette__titre{margin:10px 10px 4px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-4)}
.palette__item{display:grid; grid-template-columns:auto 1fr; column-gap:12px; align-items:baseline; padding:9px 10px;
  border-radius:10px; color:var(--ink); text-decoration:none}
.palette__item b{font-family:var(--mono, ui-monospace, monospace); font-size:12.5px; font-weight:650; color:var(--brand-700)}
.palette__item span{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px}
.palette__item small{grid-column:2; font-size:12px; color:var(--ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.palette__item:hover, .palette__item.is-choisi{background:var(--brand-50); text-decoration:none}
.palette__pied{display:flex; gap:16px; align-items:center; padding:9px 16px; border-top:1px solid var(--line); font-size:12px; color:var(--ink-3)}
.palette__pied a{margin-left:auto}

/* ── Chaque (i) à côté de ce qu'il explique (shell.js, ranger) ── */
.info-i--titre{display:inline-flex; margin-left:6px; vertical-align:middle}
.info-i--titre .info-i__b{width:22px; height:22px}
.info-i--titre .info-i__b svg{width:13px; height:13px}
.info-i--titre .info-i__bulle{left:-8px; font-size:12.5px; font-weight:400; letter-spacing:normal; text-transform:none;
  line-height:1.5; color:var(--ink-2)}

/* ── Les tableaux sortis de la colonne étroite (shell.js, sortirDesColonnesEtroites) ── */
.grille-suite{display:grid; gap:16px; margin-top:16px}
.grid.grid--seule{grid-template-columns:minmax(0,1fr)}
.grille-suite--avant{margin-top:0; margin-bottom:16px}

/* ── Plus de dégradé (01/12/2026) : la disponibilité du réseau et les indicateurs en alerte, en aplat. ── */
.tdb-heros{background:var(--brand)}
.tdb-heros::after{display:none}
:root[data-theme="sombre"] .tdb-heros{background:var(--brand-50)}
@media (prefers-color-scheme: dark){ :root[data-theme="appareil"] .tdb-heros{background:var(--brand-50)} }
.kpi--alert{background:var(--red-50)}
.pcard--alert{background:var(--red-50)}

/* L'explication sous une jauge (fiche d'équipe), alignée sous son libellé : un décalage fixe de 192 px, écrit dans la
   vue, ne laissait qu'un mot par ligne dans la colonne étroite (01/12/2026). */
.meterrow__sub{margin:-4px 0 8px; line-height:1.45}
