/* =============================================================================
   ELEONE — Design system
   Souverain, technique, rassurant, premium, sobre. Beaucoup de blanc, donnees
   structurees, tres peu d'effets. Le bleu sert a l'action, a la selection et a
   la donnee ; rouge / orange / vert signalent UNIQUEMENT un etat reel.
   ============================================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette de marque */
  --noir: #080D14;
  --bleu: #1267E8;
  --bleu-fonce: #0B3F91;
  --bleu-clair: #EAF3FF;
  --fond: #F7F9FC;
  --surface: #FFFFFF;
  --bordure: #E4E9F0;
  --texte: #080D14;
  --texte-2: #667085;
  --texte-3: #98A2B3;
  --succes: #12A66A;
  --warning: #F5A623;
  --critique: #E5484D;
  --inactif: #98A2B3;

  /* Etats : fond clair + texte lisible (contraste AA) */
  --succes-fond: #E7F6EF;  --succes-texte: #0B7A4D;
  --warning-fond: #FEF4E4; --warning-texte: #8F5600;
  --critique-fond: #FDECEC; --critique-texte: #B42328;
  --info-fond: var(--bleu-clair); --info-texte: var(--bleu-fonce);
  --inactif-fond: #F2F4F7; --inactif-texte: #667085;

  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --rayon: 10px;
  --rayon-petit: 6px;
  --ombre: 0 1px 2px rgba(8, 13, 20, .04);
  --ombre-menu: 0 8px 24px rgba(8, 13, 20, .10);
  --focus: 0 0 0 3px rgba(18, 103, 232, .25);

  --h-entete: 64px;
  --l-barre: 256px;
  --l-barre-compacte: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 14px;
  line-height: 1.5;
  color: var(--texte);
  background: var(--fond);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code, kbd { font-family: var(--mono); font-size: .9em; }
mark { background: #FFF1C2; color: inherit; border-radius: 2px; padding: 0 1px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--rayon-petit); }
[hidden] { display: none !important; }

.ic { width: 20px; height: 20px; flex: none; }
.ic-petit { width: 16px; height: 16px; }
.texte-2 { color: var(--texte-2); }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.surtitre {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--texte-2);
}
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }
.bandeau-dev {
  background: var(--warning-fond); color: var(--warning-texte); text-align: center;
  font-size: 12px; font-weight: 600; padding: 4px 16px; border-bottom: 1px solid #F8DDB0;
}

/* ─────────────────────────────── marque ─────────────────────────────── */

.logo {
  display: inline-flex; align-items: baseline; gap: .02em;
  font-weight: 750; font-size: 20px; letter-spacing: .08em; color: var(--noir); line-height: 1;
}
.logo-o { width: .9em; height: .84em; margin: 0 .04em 0 .02em; color: var(--noir); transform: translateY(.035em); }
.logo-grand { font-size: 34px; }
.symbole { width: 32px; height: 30px; color: var(--noir); }

.drapeau { display: inline-flex; width: 18px; height: 13px; border-radius: 2px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(8,13,20,.08); }
.drapeau i { flex: 1; }
.drapeau i:nth-child(1) { background: #000; }
.drapeau i:nth-child(2) { background: #FDDA24; }
.drapeau i:nth-child(3) { background: #EF3340; }

/* ─────────────────────────────── composants ─────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  text-decoration: none !important; transition: background-color .12s, border-color .12s;
}
.btn-primaire { background: var(--bleu); color: #fff; }
.btn-primaire:hover { background: #0F5AD0; }
.btn-primaire:active { background: var(--bleu-fonce); }
.btn-secondaire { background: var(--surface); color: var(--texte); border-color: var(--bordure); }
.btn-secondaire:hover { border-color: #CBD3DE; background: var(--fond); }
.btn-fantome { background: transparent; color: var(--texte-2); border-color: var(--bordure); border-style: dashed; }
.btn-bloc { width: 100%; }
.btn:disabled { background: var(--inactif-fond); color: var(--texte-3); border-color: var(--bordure); cursor: not-allowed; }

.carte {
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: 24px;
}
.carte-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.carte-titre { font-size: 15px; font-weight: 650; }
.carte-sous-titre { color: var(--texte-2); font-size: 13px; margin-top: 2px; }
.lien-action { font-weight: 600; font-size: 13px; white-space: nowrap; }

.point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--inactif); }
.point-operationnel { background: var(--succes); }
.point-info { background: var(--bleu); }
.point-attention { background: var(--warning); }
.point-critique { background: var(--critique); }
.point-inactif, .point-inconnu { background: var(--inactif); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--inactif-fond); color: var(--inactif-texte);
}
.badge-operationnel { background: var(--succes-fond); color: var(--succes-texte); }
.badge-info { background: var(--info-fond); color: var(--info-texte); }
.badge-attention { background: var(--warning-fond); color: var(--warning-texte); }
.badge-critique { background: var(--critique-fond); color: var(--critique-texte); }

.etiquette {
  display: inline-block; padding: 2px 8px; border-radius: var(--rayon-petit);
  background: var(--fond); border: 1px solid var(--bordure); font-size: 12px; font-weight: 500; color: var(--texte-2);
  white-space: nowrap;
}
.etiquette-legere { background: transparent; }
.compteur {
  display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; text-align: center;
  background: var(--inactif-fond); color: var(--texte-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}

.avis { padding: 12px 16px; border-radius: 8px; border: 1px solid; margin-bottom: 16px; font-weight: 500; }
.avis-critique { background: var(--critique-fond); color: var(--critique-texte); border-color: #F7C9CA; }
.avis-attention, .avis-warn { background: var(--warning-fond); color: var(--warning-texte); border-color: #F8DDB0; }
.avis-info, .avis-message { background: var(--info-fond); color: var(--info-texte); border-color: #C9DDFB; }

/* Champs */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-weight: 600; font-size: 13px; }
.champ-aide { font-size: 12px; color: var(--texte-2); }
input[type="email"], input[type="text"], input[type="search"], input[type="password"], select {
  font: inherit; color: var(--texte); height: 42px; padding: 0 12px; width: 100%;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 8px;
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder { color: var(--texte-3); }
input:focus, select:focus { outline: none; border-color: var(--bleu); box-shadow: var(--focus); }
select { width: auto; padding-right: 32px; cursor: pointer; }
.pile { display: flex; flex-direction: column; gap: 16px; }

/* KPI : de grands nombres, tres lisibles */
.grille-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; color: inherit; }
.kpi-lien:hover { border-color: #C9DDFB; text-decoration: none; }
.kpi-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpi-libelle { font-size: 13px; font-weight: 500; color: var(--texte-2); }
.kpi-ic { color: var(--texte-3); display: inline-flex; }
.kpi-valeur { font-size: 32px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--texte-2); }

/* Tableaux */
.table-defil { overflow-x: auto; }
.carte-table { padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--texte-2); text-transform: uppercase;
  letter-spacing: .04em; padding: 12px 16px; border-bottom: 1px solid var(--bordure); background: #FBFCFE;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FBFCFE; }
.cell-titre a { font-weight: 600; color: var(--texte); }
.cell-titre a:hover { color: var(--bleu); }
.cell-titre p { font-size: 13px; margin-top: 2px; max-width: 110ch; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 16px; color: var(--texte-2); }
.pagination a { font-weight: 600; }

/* ─────────────────────────────── shell ─────────────────────────────── */

.shell { min-height: 100vh; }
.entete {
  position: sticky; top: 0; z-index: 30; height: var(--h-entete);
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  background: var(--surface); border-bottom: 1px solid var(--bordure);
}
.entete-logo { display: inline-flex; flex: none; text-decoration: none !important; width: calc(var(--l-barre) - 48px); }
.entete-btn.entete-menu, .entete-btn.entete-loupe { display: none; }
.entete-recherche {
  position: relative; flex: 1; max-width: 560px; display: flex; align-items: center;
}
.entete-recherche > .ic { position: absolute; left: 12px; color: var(--texte-3); pointer-events: none; }
.entete-recherche input { padding-left: 40px; padding-right: 40px; background: var(--fond); height: 40px; }
.entete-recherche input:focus { background: var(--surface); }
.entete-recherche kbd {
  position: absolute; right: 10px; font-size: 11px; color: var(--texte-3); border: 1px solid var(--bordure);
  border-radius: 4px; padding: 0 6px; background: var(--surface); pointer-events: none;
}
.entete-droite { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.entete-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--texte-2); cursor: pointer;
}
.entete-btn:hover { background: var(--fond); color: var(--texte); }
.etat {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--bordure); font-size: 12px; font-weight: 600; color: var(--texte-2); white-space: nowrap;
}
.etat-operationnel { color: var(--succes-texte); background: var(--succes-fond); border-color: transparent; }
.etat-critique { color: var(--critique-texte); background: var(--critique-fond); border-color: transparent; }
.etat-attention { color: var(--warning-texte); background: var(--warning-fond); border-color: transparent; }

.menu-util { position: relative; }
.menu-util summary {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 8px; cursor: pointer; list-style: none;
}
.menu-util summary::-webkit-details-marker { display: none; }
.menu-util summary:hover { background: var(--fond); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 650; font-size: 13px; flex: none;
}
.util-id { display: flex; flex-direction: column; line-height: 1.25; }
.util-id strong { font-size: 13px; font-weight: 600; }
.util-id small { font-size: 12px; color: var(--texte-2); }
.menu-util .ic-petit { color: var(--texte-3); }
.menu-util-panneau {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 6px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre-menu);
}
.menu-util-tete { display: flex; flex-direction: column; padding: 10px 12px; border-bottom: 1px solid var(--bordure); margin-bottom: 6px; }
.menu-util-tete small { color: var(--texte-2); }
.menu-util-panneau a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; color: var(--texte); font-weight: 500; }
.menu-util-panneau a:hover { background: var(--fond); text-decoration: none; }
.menu-util-panneau .ic { width: 18px; height: 18px; color: var(--texte-2); }

.cadre { display: flex; align-items: flex-start; }
.barre {
  position: sticky; top: var(--h-entete); height: calc(100vh - var(--h-entete));
  width: var(--l-barre); flex: none; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--bordure);
}
.barre-defil { flex: 1; overflow-y: auto; padding: 14px 12px 8px; }
.barre-section + .barre-section { margin-top: 12px; }
.barre-titre {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--texte-3);
  padding: 0 12px 6px;
}
.barre ul { list-style: none; margin: 0; padding: 0; }
.barre-lien {
  display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; border-radius: 8px;
  color: #344054; font-weight: 500; white-space: nowrap;
}
.barre-lien .ic { color: var(--texte-3); width: 19px; height: 19px; }
.barre-lien:hover { background: var(--fond); text-decoration: none; color: var(--texte); }
.barre-lien.actif { background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 600; }
.barre-lien.actif .ic { color: var(--bleu); }
.barre-lien.en-prep { color: var(--texte-2); }
.barre-lien.en-prep > span::after { content: ""; }
.ic-point { display: inline-flex; align-items: center; justify-content: center; }

.barre-pied { border-top: 1px solid var(--bordure); padding: 12px 12px 14px; }
.souverain { display: flex; align-items: center; gap: 10px; padding: 6px 12px 10px; }
.souverain span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.souverain strong { font-size: 12px; font-weight: 600; }
.souverain small { font-size: 12px; color: var(--texte-2); }
.barre-pied .barre-lien { height: 32px; font-size: 13px; }
.version { font-size: 11px; color: var(--texte-3); padding: 8px 12px 0; }

.voile { position: fixed; inset: var(--h-entete) 0 0 0; background: rgba(8, 13, 20, .32); z-index: 19; }
/* Fluide jusqu'a 1760 px, puis centre dans l'espace restant : plus de bande
   vide collee a droite sur les ecrans 1920 / 2560. */
.contenu { flex: 1; min-width: 0; max-width: 1760px; margin-inline: auto; padding: 32px 40px 56px; }
.contenu:focus { box-shadow: none; }

/* ─────────────────────────────── pages ─────────────────────────────── */

.page-tete { margin-bottom: 28px; }
.page-tete h1 { font-size: 28px; font-weight: 700; margin-top: 6px; }
.page-sous-titre { color: var(--texte-2); margin-top: 6px; font-size: 15px; }
.bloc { margin-bottom: 32px; }
.bloc-titre { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; margin-bottom: 14px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grille-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
/* Une carte de grille peut se retrecir sous la largeur de son contenu : un bloc
   de code long defile DANS la carte au lieu d'elargir la page (vu sur mobile). */
.grille-2 > *, .grille-2-1 > * { min-width: 0; }
.note-source code { overflow-wrap: anywhere; }
.vide { text-align: center; padding: 40px 24px; }
.vide p + p { margin-top: 4px; }

.fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--texte-2); margin-bottom: 20px; }
.fil a { color: var(--texte-2); }
.fil a:hover { color: var(--bleu); }
.fil [aria-current] { color: var(--texte); font-weight: 500; }

/* Tableau de bord : cartes de modules */
.grille-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.carte-module {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 14px;
  padding: 18px 20px; color: inherit; transition: border-color .12s;
}
.carte-module:hover { border-color: #C9DDFB; text-decoration: none; }
.carte-module-ic {
  grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 8px; background: var(--bleu-clair); color: var(--bleu);
}
.carte-module.en-prep .carte-module-ic { background: var(--fond); color: var(--texte-3); }
.carte-module-txt { display: flex; flex-direction: column; min-width: 0; }
.carte-module-txt strong { font-size: 15px; font-weight: 650; }
.carte-module-txt small { color: var(--texte-2); font-size: 13px; }
.carte-module .badge { grid-column: 2; justify-self: start; margin-top: 8px; }

/* Tableau de bord : modules + colonne de contexte sur grand ecran */
.tdb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 28px; align-items: start; }
.tdb-cote { display: flex; flex-direction: column; gap: 16px; }
.tdb .grille-modules { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.liste-sources-dense li { padding: 9px 0; }
.source-nom { display: flex; flex-direction: column; min-width: 0; }
.source-nom strong { font-weight: 600; font-size: 13px; }
.source-nom small { font-size: 12px; color: var(--texte-2); }
/* Pas de « sticky » : la colonne est plus haute qu'un ecran 1080 p, son bas
   (activite recente) resterait hors d'atteinte jusqu'a la fin de la page. */
@media (min-width: 1500px) {
  .tdb { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* Portrait */
.portrait-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; padding: 40px 48px;
  margin-bottom: 20px; overflow: hidden;
}
.portrait-hero h1 { font-size: 40px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.portrait-sous-titre { font-size: 18px; font-weight: 600; color: #344054; margin-top: 6px; }
.portrait-accroche { color: var(--texte-2); font-size: 15px; margin-top: 12px; max-width: 58ch; }
.portrait-visuel { display: flex; justify-content: center; }
.visuel { width: 100%; max-width: 380px; height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions:empty { display: none; }

.recherche-centrale { position: relative; display: flex; gap: 8px; margin-top: 24px; max-width: 560px; }
.recherche-centrale > .ic { position: absolute; left: 14px; top: 14px; color: var(--texte-3); pointer-events: none; }
.recherche-centrale input { height: 48px; padding-left: 44px; font-size: 15px; }
.recherche-centrale .btn { height: 48px; }

.parcours {
  display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 28px; padding: 0; gap: 0;
  font-size: 13px; color: var(--texte-2);
}
.parcours li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-weight: 500; }
.parcours li + li::before { content: ""; width: 20px; height: 1px; background: var(--bordure); margin-left: -14px; margin-right: 6px; }
.parcours-num { font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 700; color: var(--texte-3); }
.parcours li.actif { color: var(--bleu-fonce); font-weight: 600; }
.parcours li.actif .parcours-num { color: var(--bleu); }

.grille-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.categorie { display: flex; flex-direction: column; gap: 10px; padding: 18px; color: inherit; }
.categorie:hover { border-color: #C9DDFB; text-decoration: none; }
.categorie-ic { color: var(--bleu); display: inline-flex; }
.categorie-nom { font-weight: 600; }
.categorie-n { font-size: 12px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.categorie.est-vide .categorie-ic { color: var(--texte-3); }
.categorie.est-vide .categorie-nom { color: var(--texte-2); }

.liste-sources, .liste-docs { list-style: none; margin: 0; padding: 0; }
.liste-sources li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bordure); }
.liste-sources li:last-child { border-bottom: 0; }
.liste-sources span:first-child { font-weight: 500; }
.liste-docs li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--bordure); }
.liste-docs li:last-child { border-bottom: 0; }
.liste-docs a { font-weight: 600; color: var(--texte); }
.liste-docs a:hover { color: var(--bleu); }
.liste-docs .texte-2 { font-size: 12px; }
.note-source { font-size: 12px; margin-top: 12px; }
.carte > p + p { margin-top: 10px; }

/* Module operationnel : titre et contexte toujours visibles */
.module-tete {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--bordure);
}
.module-id { display: flex; align-items: center; gap: 12px; }
.module-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--bleu-clair); color: var(--bleu); }
.module-nom { font-size: 20px; font-weight: 700; line-height: 1.2; }
.onglets { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--bordure); border-radius: 8px; padding: 3px; }
.onglets a { padding: 6px 14px; border-radius: 6px; color: var(--texte-2); font-weight: 500; font-size: 13px; }
.onglets a:hover { color: var(--texte); background: var(--fond); text-decoration: none; }
.onglets a.actif { background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 600; }

/* Bibliotheque */
.biblio { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
/* Le tableau defile dans sa carte : il ne doit pas elargir la colonne (et les
   filtres avec elle) sur telephone. */
.biblio > * { min-width: 0; }
.biblio-filtres { position: sticky; top: calc(var(--h-entete) + 24px); }
.biblio-filtres ul { list-style: none; margin: 0; padding: 0; }
.filtre {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; color: #344054; font-weight: 500;
}
.filtre .ic { color: var(--texte-3); }
.filtre span:nth-last-child(2) { flex: 1; }
.filtre:hover { background: var(--surface); text-decoration: none; }
.filtre.actif { background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 600; }
.filtre.actif .compteur { background: #fff; color: var(--bleu-fonce); }
.filtre.est-vide { color: var(--texte-3); }
.barre-outils { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.champ-recherche { position: relative; flex: 1; min-width: 220px; }
.champ-recherche > .ic { position: absolute; left: 12px; top: 11px; color: var(--texte-3); pointer-events: none; }
.champ-recherche input { padding-left: 40px; }
.tri { display: flex; align-items: center; gap: 8px; color: var(--texte-2); font-size: 13px; font-weight: 500; }
.compte-resultats { font-size: 13px; color: var(--texte-2); margin-bottom: 12px; }
.filtres-groupe { margin-bottom: 20px !important; }
.doc-chemin { font-size: 12px; color: var(--texte-3); margin-top: 2px; }
.lien-source { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.source-nom a { color: var(--texte); }
.source-nom a:hover { color: var(--bleu); }

/* Resultats de recherche */
.resultats { list-style: none; margin: 0; padding: 0; }
.resultats li { padding: 16px 24px; border-bottom: 1px solid var(--bordure); }
.resultats li:last-child { border-bottom: 0; }
.resultat-titre { font-weight: 600; font-size: 15px; color: var(--texte); }
.resultat-titre:hover { color: var(--bleu); }
.resultat-meta { font-size: 12px; color: var(--texte-2); margin-left: 8px; }
.resultat-extrait { font-size: 13px; color: var(--texte-2); margin-top: 4px; max-width: 90ch; }

/* Document */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.doc-article { padding: 40px 48px; }
/* Colonne de lecture centree dans la carte : la carte suit la largeur de
   l'ecran, le texte garde une longueur de ligne confortable. */
.doc-article > * { max-width: 860px; margin-inline: auto; }
.doc-tete { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--bordure); }
.doc-tete h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; font-size: 13px; color: var(--texte-2); }
.doc-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.doc-pied { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--bordure); font-size: 12px; }
.doc-toc { position: sticky; top: calc(var(--h-entete) + 24px); max-height: calc(100vh - var(--h-entete) - 48px); overflow-y: auto; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--bordure); }
.doc-toc a { display: block; padding: 5px 12px; color: var(--texte-2); font-size: 13px; line-height: 1.4; margin-left: -1px; border-left: 1px solid transparent; }
.doc-toc a:hover { color: var(--bleu); border-left-color: var(--bleu); text-decoration: none; }
.doc-toc .toc-3 a { padding-left: 24px; font-size: 12px; }

.prose { font-size: 15px; line-height: 1.7; color: #1D2939; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 21px; margin-top: 2em; padding-top: .2em; scroll-margin-top: calc(var(--h-entete) + 16px); }
.prose h3 { font-size: 17px; margin-top: 1.6em; scroll-margin-top: calc(var(--h-entete) + 16px); }
.prose h4 { font-size: 15px; margin-top: 1.4em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .3em; }
.prose code { background: var(--fond); border: 1px solid var(--bordure); border-radius: 4px; padding: .05em .35em; font-size: .86em; }
.prose pre { background: #0B1220; color: #E4E9F0; border-radius: 8px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose blockquote { border-left: 3px solid var(--bleu); background: var(--bleu-clair); margin-left: 0; margin-right: 0; padding: 12px 16px; border-radius: 0 8px 8px 0; color: #1D2939; }
.prose blockquote > * + * { margin-top: .6em; }
.prose hr { border: 0; border-top: 1px solid var(--bordure); margin: 2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; }
.prose th, .prose td { border: 1px solid var(--bordure); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: #FBFCFE; font-weight: 600; }
.prose img { border-radius: 8px; border: 1px solid var(--bordure); }
.prose a { text-decoration: underline; text-decoration-color: rgba(18, 103, 232, .35); text-underline-offset: 2px; }

/* ─────────────────────────────── monitoring ─────────────────────────────── */

.grille-kpi-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grille-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.source-carte { display: flex; flex-direction: column; gap: 8px; }
.source-tete { display: flex; justify-content: space-between; align-items: center; }
.source-titre { font-size: 16px; font-weight: 650; }
.source-chiffre { font-size: 12px; color: var(--texte-2); font-weight: 500; margin-top: auto; }
.source-carte.est-inactive .carte-module-ic { background: var(--fond); color: var(--texte-3); }

.grille-kpi-5 .kpi { padding: 16px 20px; }
.grille-kpi-5 .kpi-valeur { font-size: 28px; }

/* Alertes : une ligne par service, lisible aussi sur telephone */
.carte-alertes { margin-bottom: 20px; padding: 0; border-color: #F7C9CA; }
.carte-alertes .carte-tete { padding: 16px 20px 4px; margin: 0; }
.alertes { list-style: none; margin: 0; padding: 0 8px 8px; }
.alerte-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 8px; color: var(--texte); }
.alerte-ligne:hover { background: var(--fond); text-decoration: none; }
.alerte-texte { display: flex; flex-direction: column; min-width: 0; }
.alerte-texte strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alerte-texte small { color: var(--texte-2); font-size: 12px; }
.alerte-quand { font-size: 12px; color: var(--texte-2); white-space: nowrap; }
.segments a { display: inline-flex; align-items: center; gap: 6px; }
.segments { display: inline-flex; background: var(--surface); border: 1px solid var(--bordure); border-radius: 8px; padding: 3px; gap: 2px; }
.segments a { padding: 7px 14px; border-radius: 6px; color: var(--texte-2); font-weight: 500; font-size: 13px; }
.segments a:hover { background: var(--fond); color: var(--texte); text-decoration: none; }
.segments a.actif { background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 600; }

/* Colonnes « maconnerie » : les cartes de hauteurs tres differentes (1 a 16
   services) s'empilent sans laisser de trous, dans l'ordre alphabetique. */
.grille-clients { column-width: 400px; column-gap: 16px; }
.client-carte { padding: 16px 18px 10px; break-inside: avoid; margin-bottom: 16px; display: block; scroll-margin-top: calc(var(--h-entete) + 16px); }
.client-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.services { list-style: none; margin: 0; padding: 0; }
.services li + li { border-top: 1px solid var(--bordure); }
.service-ligne, .service-hors {
  display: grid; grid-template-columns: 8px minmax(0, 1fr) 104px 64px 44px; align-items: center; gap: 10px;
  padding: 8px 4px; color: var(--texte); border-radius: 6px;
}
.service-ligne:hover { background: var(--fond); text-decoration: none; }
.service-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 13px; }
.service-hors .service-nom { color: var(--texte-2); font-weight: 400; }
.hors-texte { grid-column: 3 / -1; font-size: 12px; color: var(--texte-3); text-align: right; }
.barres { width: 104px; height: 14px; display: block; }
.b-ok { fill: #7FCBA8; }
.b-ko { fill: var(--critique); }
.b-vide { fill: #EEF1F5; }
.table-dense td, .table-dense th { padding: 9px 14px; }
.table-dense .barres { width: 120px; }
.ligne-groupe th { background: var(--fond); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 650;
  color: var(--texte); padding: 10px 14px; display: table-cell; }
.ligne-groupe .point { margin-right: 8px; vertical-align: middle; }
.ligne-hors td { color: var(--texte-2); }
.latence { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--texte-2); text-align: right; white-space: nowrap; }
.latence-lente { color: var(--warning-texte); font-weight: 600; }
.latence-ko { color: var(--critique-texte); font-weight: 600; }
.cert { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--texte-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cert-proche { color: var(--warning-texte); font-weight: 600; }
.note-mesure { font-size: 12px; margin-top: 20px; max-width: 110ch; }

.service-entete { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.service-entete h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; word-break: break-all; }
.service-actions { display: flex; align-items: center; gap: 12px; }
.graphe-defil { overflow-x: auto; }
.graphe { width: 100%; min-width: 560px; height: auto; display: block; }
.g-grille { stroke: var(--bordure); stroke-width: 1; }
.g-axe { stroke: #CBD3DE; stroke-width: 1; }
.g-texte { fill: var(--texte-2); font-size: 11px; font-family: var(--police); }
.g-aire { fill: rgba(18, 103, 232, .08); }
.g-ligne { fill: none; stroke: var(--bleu); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.g-echec { stroke: var(--critique); stroke-width: 2; opacity: .75; }
.legende { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--texte-2); margin-top: 10px; }
.leg { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-left: 8px; }
.leg:first-child { margin-left: 0; }
.leg-ligne { background: var(--bleu); }
.leg-echec { background: var(--critique); width: 3px; height: 12px; }
.conditions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.conditions li { display: flex; align-items: center; gap: 10px; }
.conditions code { font-size: 12px; background: var(--fond); border: 1px solid var(--bordure); border-radius: 4px; padding: 2px 6px; word-break: break-all; }
.cell-erreur { max-width: 38ch; font-size: 12px; }

@media (max-width: 639px) {
  .grille-clients { column-width: auto; columns: 1; }
  .service-ligne, .service-hors { grid-template-columns: 8px minmax(0, 1fr) 64px 40px; }
  .service-ligne .barres { display: none; }
  .hors-texte { grid-column: 3 / -1; }
  .alerte-ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .alerte-ligne .badge { grid-column: 1 / -1; justify-self: start; }
  .barre-outils .segments span { display: none; }
  .grille-kpi-5 .kpi:last-child { grid-column: 1 / -1; }
}

.actualise { font-size: 12px; font-variant-numeric: tabular-nums; }
.actualise-haut { text-align: right; margin: -8px 0 10px; }

/* ─────────────────────────────── mode mur (TV) ─────────────────────────────── */
/* CALQUE SUR LA DALLE SOC-TV04 « Sites web » du SOC (soc-web : sites.css,
   style.css, .dispo-hero) : meme ossature, memes couleurs d'etat, memes deux
   themes — les valeurs sont celles du SOC, pas une interpretation. Theme clair
   par defaut ; le sombre est a un clic (cookie, applique par le serveur). */

.page-mur {
  --m-bg: #eef1f6; --m-panel2: #f4f6fa; --m-border: #d5dbe3; --m-txt: #1a2330; --m-muted: #5a6675;
  --m-ok: #1a7f37; --m-crit: #d1242f; --m-warn: #9a6700;
  --m-barre-ok: #2ea043; --m-barre-ko: #f85149;
  --m-hero: linear-gradient(90deg, #ffffff, #eef2f8); --m-hero-ombre: 0 4px 14px rgba(30, 50, 80, .07);
  --m-hero-reflet: rgba(255, 255, 255, .75);
  --m-ligne: rgba(0, 0, 0, .035); --m-grp: rgba(0, 0, 0, .025); --m-grp-nom: #0a5f58;
  background: var(--m-bg); color: var(--m-txt);
}
.page-mur.theme-sombre {
  --m-bg: #0d1117; --m-panel2: #1c2330; --m-border: #2a3441; --m-txt: #e6edf3; --m-muted: #8b98a9;
  --m-ok: #2ea043; --m-crit: #f85149; --m-warn: #d29922;
  --m-hero: linear-gradient(90deg, #111826, #161b22); --m-hero-ombre: 0 6px 18px rgba(0, 0, 0, .20);
  --m-hero-reflet: rgba(255, 255, 255, .04);
  --m-ligne: rgba(255, 255, 255, .03); --m-grp: rgba(255, 255, 255, .022); --m-grp-nom: #7ee7f0;
  color-scheme: dark;
}
.page-mur .logo, .page-mur .logo-o { color: var(--m-txt); }

.mur { height: 100vh; display: flex; flex-direction: column; padding: 14px 46px 18px; }

/* Bandeau : la seule chose lisible depuis le fond de la piece. */
.mur-hero {
  flex: none; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  background: var(--m-hero); border: 1px solid var(--m-border); border-left: 6px solid var(--m-muted);
  border-radius: 14px; padding: 22px 26px; margin-bottom: 12px;
  box-shadow: inset 0 1px 0 var(--m-hero-reflet), var(--m-hero-ombre);
}
.mur-hero[data-etat="ok"] { border-left-color: var(--m-ok); }
.mur-hero[data-etat="warn"] { border-left-color: var(--m-warn); }
.mur-hero[data-etat="crit"] { border-left-color: var(--m-crit); }
.mur-hero-g { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.mur-titre { display: flex; align-items: baseline; flex-wrap: wrap; font-size: 30px; font-weight: 700; letter-spacing: .3px; }
.mur-titre .logo { font-size: 30px; }
.mur-titre-sep { color: var(--m-muted); font-weight: 400; padding: 0 .15em; }
.mur-titre-objet { font-weight: 500; }
.mur-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
.mur-live-point { width: 10px; height: 10px; border-radius: 50%; background: var(--m-barre-ok);
  box-shadow: 0 0 10px var(--m-barre-ok); animation: mur-pouls 2s ease-in-out infinite; }
@keyframes mur-pouls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.mur-hero-d { display: flex; align-items: center; gap: 30px; }
.mur-cmd { display: flex; gap: 10px; }
.mur-bouton {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 42px; border-radius: 9px;
  background: var(--m-panel2); border: 1px solid var(--m-border); color: var(--m-txt);
  font: inherit; font-size: 19px; line-height: 1; cursor: pointer; text-decoration: none !important;
}
.mur-bouton:hover { border-color: var(--bleu); }
.mur-score { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.mur-score-val { font-size: 52px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--m-muted); }
.mur-hero[data-etat="ok"] .mur-score-val { color: var(--m-ok); }
.mur-hero[data-etat="warn"] .mur-score-val { color: var(--m-warn); }
.mur-hero[data-etat="crit"] .mur-score-val { color: var(--m-crit); }
.mur-score-lbl { font-size: 14px; color: var(--m-muted); margin-top: 4px; }
.mur-horloge span { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Trois colonnes EXPLICITES, reparties cote serveur (meme algorithme que le
   SOC) ; les blocs grandissent en proportion de leur nombre de sites, pour
   que toutes les lignes d'une colonne aient la meme hauteur et que l'ecran
   soit plein jusqu'en bas. */
.mur-colonnes { flex: 1 1 auto; min-height: 0; display: flex; gap: 36px; }
.mur-col { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.mur-grp { display: flex; flex-direction: column; min-height: 0; background: var(--m-grp); border-radius: 8px; padding: 0 0 4px; }
.pousse-1 { flex-grow: 1; }
.pousse-2 { flex-grow: 2; }
.pousse-3 { flex-grow: 3; }
.pousse-4 { flex-grow: 4; }
.pousse-5 { flex-grow: 5; }
.pousse-6 { flex-grow: 6; }
.pousse-7 { flex-grow: 7; }
.pousse-8 { flex-grow: 8; }
.pousse-9 { flex-grow: 9; }
.pousse-10 { flex-grow: 10; }
.pousse-11 { flex-grow: 11; }
.pousse-12 { flex-grow: 12; }
.pousse-13 { flex-grow: 13; }
.pousse-14 { flex-grow: 14; }
.pousse-15 { flex-grow: 15; }
.pousse-16 { flex-grow: 16; }
.pousse-17 { flex-grow: 17; }
.pousse-18 { flex-grow: 18; }
.pousse-19 { flex-grow: 19; }
.pousse-20 { flex-grow: 20; }
.mur-grp-ko { background: rgba(248, 81, 73, .07); box-shadow: inset 3px 0 0 var(--m-barre-ko); }
.mur-grp-tete { flex: none; display: flex; align-items: baseline; gap: 8px; padding: 6px 10px 5px;
  border-bottom: 1px solid var(--m-border); margin-bottom: 4px; }
.mur-grp-ko .mur-grp-tete { border-bottom-color: rgba(248, 81, 73, .45); }
.mur-grp-nom { font-size: 19px; font-weight: 700; letter-spacing: .2px; color: var(--m-grp-nom); }
.mur-grp-tag { padding: 1px 6px; border-radius: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--m-muted); border: 1px solid var(--m-border); }
.mur-grp-score { margin-left: auto; font-size: 19px; font-weight: 800; color: var(--m-ok); font-variant-numeric: tabular-nums; }
.mur-grp-score.ko { color: var(--m-crit); }

/* Une ligne par site : nom, barres, mesures. */
/* Colonne des noms : 255 px, et non les 215 du SOC — « alacartebackoffice.eonix.be »
   en demande ~245 ; un nom tronque coute plus que quelques barres d'historique. */
.mur-ligne { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(150px, 255px) minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 3px 13px; margin: 0 4px; border-radius: 7px; background: var(--m-ligne); }
.mur-ligne + .mur-ligne { margin-top: 3px; }
/* Un site tombe se repere a la ligne entiere, pas seulement a sa pastille. */
.mur-ligne-ko { background: rgba(248, 81, 73, .12); box-shadow: inset 3px 0 0 var(--m-barre-ko); }
.mur-nom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mur-nom-t { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mur-point { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--m-barre-ok); }
.mur-point.ko { background: var(--m-barre-ko); }
.mur-point.hors { background: var(--m-muted); }
/* Une barre par controle, la plus recente A DROITE (row-reverse : le premier
   enfant est pose a droite ; un debordement est rogne a gauche, cote ancien). */
.mur-barres { display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: stretch;
  gap: 3px; height: 24px; min-width: 0; overflow: hidden; }
.mur-barre { width: 7px; flex: 0 0 7px; border-radius: 2px; background: var(--m-barre-ok); }
.mur-barre.ko { background: var(--m-barre-ko); }
.mur-vide { color: var(--m-muted); font-size: 13px; font-style: italic; align-self: center; }
.mur-mes { display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.mur-dispo { font-size: 16px; font-weight: 700; color: var(--m-ok); min-width: 62px; text-align: right; }
.mur-dispo.warn { color: var(--m-warn); }
.mur-ms { font-size: 14px; color: var(--m-muted); min-width: 62px; text-align: right; }
.mur-ms.lent { color: var(--m-warn); font-weight: 700; }
.mur-ligne-hors { grid-template-columns: minmax(150px, 255px) minmax(0, 1fr); }

/* ─────────────────────────────── VPN (page Statut) ─────────────────────────────── */
.grille-vpn { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grille-vpn > * { min-width: 0; }
.vpn { display: flex; flex-direction: column; gap: 14px; }
.vpn .table-dense code, .vpn-cibles code { font-size: 12px; }
@media (max-width: 1023px) { .grille-vpn { grid-template-columns: minmax(0, 1fr); } }
.mur-ligne-hors .mur-nom-t { color: var(--m-muted); font-weight: 500; }
.mur-hors-t { color: var(--m-muted); font-size: 13px; font-style: italic; }
.mur-message { font-size: 22px; color: var(--m-muted); margin-top: 10vh; text-align: center; }

/* Poste etroit et telephone : une colonne, la page defile. */
@media (max-width: 1100px) {
  .mur { height: auto; min-height: 100vh; padding: 12px 16px; }
  .mur-colonnes { flex-direction: column; gap: 10px; }
  .mur-col { flex: none; }
}
@media (max-width: 639px) {
  .mur-hero { padding: 14px 16px; }
  .mur-titre, .mur-titre .logo { font-size: 20px; }
  .mur-titre-sep, .mur-titre-objet { display: none; }
  .mur-hero-d { gap: 14px; width: 100%; justify-content: space-between; }
  .mur-bouton { width: 38px; height: 36px; font-size: 16px; }
  .mur-score-val { font-size: 34px; }
  .mur-horloge span { font-size: 20px; }
  .mur-ligne { grid-template-columns: minmax(0, 1fr) auto; padding: 7px 10px; }
  .mur-barres { display: none; }
  .mur-ligne-hors { grid-template-columns: minmax(0, 1fr); }
}

/* ─────────────────────────────── statut serveur ─────────────────────────────── */

.serveur-entete { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.serveur-id h1 { font-size: 26px; font-weight: 700; margin: 10px 0 4px; }
.grille-ressources { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.ressource { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
.ressource-tete { display: flex; justify-content: space-between; align-items: center; }
.ressource-valeur { font-size: 30px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ressource-attention { color: var(--warning-texte); }
.ressource-critique { color: var(--critique-texte); }
.jauge { width: 100%; height: 6px; display: block; }
.j-fond { fill: #EEF1F5; }
.j-operationnel { fill: var(--succes); }
.j-attention { fill: var(--warning); }
.j-critique { fill: var(--critique); }
.j-inconnu { fill: var(--inactif); }
/* min(…, 100%) : sur telephone, une colonne a la largeur de l'ecran au lieu de deborder. */
.grille-disques { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.disque { display: flex; flex-direction: column; gap: 16px; }
.disque-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.disque-nom { font-size: 22px; font-weight: 700; margin-top: 4px; }
.disque-nom span { font-size: 15px; font-weight: 500; }
.disque-modele { font-size: 13px; margin-top: 2px; }
.partitions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.partitions li { display: flex; flex-direction: column; gap: 6px; }
.partition-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.partition-ligne code { font-size: 13px; font-weight: 600; }
.partition-ligne strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.disque-activite { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; border-top: 1px solid var(--bordure);
  font-size: 13px; color: var(--texte-2); margin-top: auto; }
.disque-activite strong { color: var(--texte); font-variant-numeric: tabular-nums; }
.carte-tete-table { padding: 18px 20px 12px; margin: 0; }
.carte-vide-texte { padding: 0 20px 20px; }
.cell-image { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-family: var(--mono); }
.cell-memoire { min-width: 160px; }
.cell-memoire .jauge { margin-top: 6px; max-width: 160px; }
.fiche { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: 14px; }
.fiche dt { color: var(--texte-2); font-weight: 500; }
.fiche dd { margin: 0; word-break: break-word; }
.fiche code { font-size: 12px; background: var(--fond); border: 1px solid var(--bordure); border-radius: 4px; padding: 1px 5px; }
.montage { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.montage + .montage { margin-top: 6px; }
@media (max-width: 639px) {
  .fiche { grid-template-columns: 1fr; gap: 2px; }
  .fiche dd { margin-bottom: 10px; }
  .actualise-haut { text-align: left; margin-top: 0; }
}

/* ─────────────────────────────── configuration ─────────────────────────────── */

.bandeau-notif { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bandeau-notif .carte-titre { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.btn-petit { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-danger { background: var(--surface); color: var(--critique-texte); border-color: #F7C9CA; }
.btn-danger:hover { background: var(--critique-fond); }
.bloc-petit { display: block; font-size: 12px; margin-top: 2px; }
.bloc-apres { margin-top: 20px; }
.formulaire { display: flex; flex-direction: column; gap: 18px; }
.formulaire fieldset { border: 0; padding: 0; margin: 0; }
.formulaire legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.case { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.case input { width: 16px; height: 16px; accent-color: var(--bleu); }
.formulaire select { width: 100%; }
.exemple-json { background: #0B1220; color: #E4E9F0; border-radius: 8px; padding: 14px 16px; font-size: 12px; line-height: 1.55; overflow-x: auto; margin: 0; }

/* Erreur */
.page-erreur { min-height: 100vh; }
.erreur { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px 16px; }
.erreur-carte { max-width: 460px; width: 100%; text-align: center; padding: 40px 32px; }
.erreur-carte h1 { font-size: 24px; margin: 8px 0; }
.erreur-carte .btn { margin-top: 24px; }

/* ─────────────────────────────── connexion ─────────────────────────────── */

.page-connexion { background: var(--surface); }
.connexion { display: grid; grid-template-columns: 45fr 55fr; min-height: 100vh; }
/* Les trois blocs (marque, formulaire, pied) partagent une meme colonne
   centree dans le panneau : sur grand ecran, plus de formulaire cale a gauche. */
.connexion-gauche { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 48px 64px; gap: 40px; }
.connexion-marque, .connexion-form, .connexion-pied { width: 100%; max-width: 400px; }
.connexion-marque { display: flex; flex-direction: column; gap: 14px; }
.connexion-tag {
  display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--texte-2);
}
.connexion-tag .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--bleu); }
.connexion-form { width: 100%; max-width: 400px; }
.connexion-form h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.connexion-form > .texte-2 { margin: 8px 0 28px; font-size: 15px; }
.connexion-liens { margin-top: 16px; font-size: 13px; }
.connexion-liens a { font-weight: 600; }
.separateur { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--texte-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 1px; background: var(--bordure); }
.connexion-dev { margin-top: 24px; }
.connexion-pied { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--texte-2); }
.connexion-pied .ic { color: var(--succes); }

.connexion-droite { position: relative; overflow: hidden; background: var(--noir); color: #fff; }
.connexion-photo, .connexion-baies { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.connexion-voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 20, .10) 0%, rgba(8, 13, 20, .25) 45%, rgba(8, 13, 20, .82) 100%);
}
.connexion-message { position: absolute; left: 64px; right: 64px; bottom: 64px; }
.connexion-accroche { font-size: 40px; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
.connexion-indicateurs {
  list-style: none; margin: 32px 0 0; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 16px 36px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.connexion-indicateurs li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .92); }
.connexion-indicateurs .ic { color: #8DB8FF; }
.connexion-indicateurs .drapeau { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

/* ─────────────────────────────── responsive ─────────────────────────────── */

/* Grand ecran : barre laterale et recherche un peu plus larges */
@media (min-width: 1680px) {
  :root { --l-barre: 272px; }
  .entete-recherche { max-width: 640px; }
  .connexion-marque, .connexion-form, .connexion-pied { max-width: 420px; }
  .connexion-message { left: 80px; right: 80px; bottom: 80px; }
  .connexion-accroche { font-size: 48px; }
}

/* Laptop : barre laterale compacte (icones seules) */
@media (max-width: 1279px) {
  .entete-logo { width: auto; }
  .barre { width: var(--l-barre-compacte); }
  .barre-defil { padding: 12px 10px; }
  .barre-titre, .barre-lien > span:not(.ic-point), .souverain span:last-child, .version { display: none; }
  .barre-section + .barre-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bordure); }
  .barre-lien { justify-content: center; padding: 0; }
  .souverain { justify-content: center; padding: 6px 0 10px; }
  .barre-pied { padding: 10px; }
  .contenu { padding: 28px 32px 48px; }
  .util-id { display: none; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { display: none; }
}

/* Tablette : barre laterale retractable */
@media (max-width: 1023px) {
  .entete { gap: 12px; padding: 0 16px; }
  .entete-btn.entete-menu { display: inline-flex; }
  .barre {
    position: fixed; top: var(--h-entete); left: 0; bottom: 0; z-index: 20; width: 280px; height: auto;
    transform: translateX(-100%); transition: transform .18s ease; box-shadow: var(--ombre-menu);
  }
  .barre-ouverte .barre { transform: none; }
  .barre-titre, .barre-lien > span:not(.ic-point), .souverain span:last-child, .version { display: revert; }
  .barre-lien > span:not(.ic-point) { display: inline; }
  .souverain span:last-child { display: flex; }
  .barre-lien { justify-content: flex-start; padding: 0 12px; }
  .barre-section + .barre-section { border-top: 0; padding-top: 0; margin-top: 16px; }
  .souverain { justify-content: flex-start; padding: 6px 12px 10px; }
  .etat-libelle { display: none; }
  .etat { padding: 0 10px; }
  .portrait-hero { grid-template-columns: 1fr; padding: 32px; }
  .portrait-visuel { display: none; }
  .grille-2-1 { grid-template-columns: 1fr; }
  .biblio { grid-template-columns: minmax(0, 1fr); }
  .biblio-filtres { position: static; }
  .biblio-filtres ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .biblio-filtres .filtre { border: 1px solid var(--bordure); background: var(--surface); padding: 5px 10px; }
  .biblio-filtres .filtre .ic { display: none; }
  .connexion { grid-template-columns: 1fr; }
  .connexion-droite { display: none; }
  .connexion-gauche { padding: 32px 24px; align-items: center; text-align: left; }
  .connexion-marque, .connexion-form, .connexion-pied { width: 100%; max-width: 400px; }
}

/* Mobile : cartes verticales, actions prioritaires */
@media (max-width: 639px) {
  .entete-recherche kbd { display: none; }
  .entete-recherche input { padding-right: 12px; }
  .entete-logo .logo { font-size: 17px; }
  .entete-btn[aria-label^="Notifications"] { display: none; }
  .contenu { padding: 20px 16px 40px; }
  .page-tete h1 { font-size: 24px; }
  .grille-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 16px; }
  .kpi-valeur { font-size: 26px; }
  .grille-2 { grid-template-columns: 1fr; }
  .portrait-hero { padding: 24px 20px; }
  .portrait-hero h1 { font-size: 30px; }
  .recherche-centrale .btn { display: none; }
  .carte { padding: 18px; }
  .doc-article { padding: 24px 18px; }
  .doc-tete h1 { font-size: 24px; }
  .table th:nth-child(3), .table td:nth-child(3), .table th:nth-child(4), .table td:nth-child(4) { display: none; }
  .module-tete { align-items: flex-start; }
  .parcours li { padding: 6px 10px; }
}
@media (max-width: 479px) {
  .entete-recherche { display: none; }
  .entete-btn.entete-loupe { display: inline-flex; }
}
.recherche-page { max-width: 640px; margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ── Application mobile ─────────────────────────────────────── */
.apk-telechargement { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.apk-telechargement .btn { min-width: 0; }
.apk-qr { background: #FFFFFF; border: 1px solid #E4E9F0; border-radius: 12px; padding: 10px; width: 180px; max-width: 100%; height: auto; }
.apk-empreinte { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.apk-etapes { margin: 0; padding-left: 20px; line-height: 1.7; }
