@font-face { font-family: "Montserrat"; src: url("/polices/montserrat.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/polices/plex.ttf") format("truetype"); font-weight: 100 700; font-display: swap; }

:root {
  --navy: #0B1330; --blue: #1F6FE5; --blue-soft: #E9F1FD;
  --ink: #1B1D33; --sec: #4A5070; --muted: #5F6580;
  --line: #E1E5EE; --ground: #F4F6FA; --white: #FFFFFF; --soft: #E9EEF8;
  --ok: #1F7A4D; --ok-soft: #E6F4EC; --warn: #9A3412; --warn-soft: #FDECE3; --danger: #B42318;
  /* Graphiques : séries (bleu Furyo, orange, vert d'eau) et teintes d'une même rampe pour les intensités */
  --s1: #1F6FE5; --s2: #EB6834; --s3: #1BAF7A; --grid: #E8EBF2; --axis: #C9CFDC;
  --heat0: #F1F4F9; --heat1: #CDE2FB; --heat2: #9EC5F4; --heat3: #6DA7EC; --heat4: #3987E5; --heat5: #256ABF; --heat6: #184F95;
  /* États : réservés aux voyants, toujours accompagnés d'une icône et d'un mot */
  --st-ok: #0CA30C; --st-ok-soft: #E7F6E7; --st-ok-ink: #0F5F14;
  --st-att: #FAB219; --st-att-soft: #FEF5E1; --st-att-ink: #7A4A00;
  --st-alerte: #D03B3B; --st-alerte-soft: #FCEBEB; --st-alerte-ink: #8E1F1F;
  --st-inconnu: #8A90A8; --st-inconnu-soft: #EEF0F4;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --r-sm: 8px; --r-md: 10px; --r-lg: 12px;
  /* Largeur du menu de gauche (réduit aux icônes : voir html.menu-replie) et largeur utile des pages */
  --menu: 232px; --page: 1440px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
h2 { font-size: 15px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
p { margin: 0; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- menu de gauche ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 6; width: var(--menu); display: flex; flex-direction: column; gap: 18px; padding: 18px 12px 12px; background: var(--white); border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 0 8px; text-decoration: none; }
.brand .wordmark { width: 92px; height: 20px; overflow: visible; flex: none; }
.brand .logo-mini { display: none; width: 28px; height: 28px; flex: none; }
.brand-mot { font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav-btn { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: transparent; font-size: 14px; font-weight: 500; color: var(--sec); text-decoration: none; text-align: left; cursor: pointer; white-space: nowrap; }
.nav a:hover, .nav-btn:hover { background: var(--ground); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--blue-soft); color: var(--navy); font-weight: 600; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.nav svg, .nav-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a[aria-current="page"] svg { stroke: var(--blue); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 10px; font-size: 13px; color: var(--sec); }
.who-initiale { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
#who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-btn.replier svg { transition: transform .15s; }
@media (min-width: 861px) {
  html.menu-replie { --menu: 64px; }
  html.menu-replie .brand .wordmark, html.menu-replie .brand-mot, html.menu-replie .nav span, html.menu-replie .nav-btn span, html.menu-replie #who-name { display: none; }
  html.menu-replie .brand .logo-mini { display: block; }
  html.menu-replie .brand, html.menu-replie .nav a, html.menu-replie .nav-btn, html.menu-replie .who { justify-content: center; padding: 0; }
  html.menu-replie .nav-btn.replier svg { transform: rotate(180deg); }
}

/* Contenu : à droite du menu, centré dans une largeur utile de --page */
main { display: flex; flex-direction: column; gap: 16px; padding: 22px max(28px, calc((100vw - var(--menu) - var(--page)) / 2)) 48px; }
.sidebar:not([hidden]) ~ main { margin-left: var(--menu); }
main:focus { outline: none; }

/* ---------- éléments ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.hint { font-size: 12.5px; color: var(--muted); }
.btn { text-decoration: none; min-height: 34px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn.primary { background: var(--navy); color: var(--white); }
.btn.primary:hover { background: #1A2550; }
.btn.secondary { background: var(--white); border-color: var(--line); color: var(--navy); }
.btn.secondary:hover { background: var(--ground); }
.btn.ghost { background: transparent; color: var(--sec); padding: 0 10px; }
.btn.ghost:hover { background: var(--ground); color: var(--navy); }
.btn.danger { background: var(--white); border-color: #F3C9C4; color: var(--danger); }
.btn.danger:hover { background: #FEF3F2; }
.btn.small { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 180px; }
.field label { font-size: 12.5px; line-height: 18px; font-weight: 600; color: var(--sec); }
/* Dans une carte (colonne), un champ prend sa hauteur naturelle, pas la base de 180px prévue pour les lignes */
.card > .field, form.card > .field, .panneau-corps > .field { flex: none; }
.row.top { align-items: flex-start; }
/* Un champ de ligne ne s'étire pas au-delà de ce qu'il faut lire ; une liste dans un en-tête garde sa largeur */
.row > .field { max-width: 360px; }
.card-head select, .row-inline select { width: auto; min-width: 160px; }
.row.top > .btn { margin-top: 22px; }
input, textarea, select { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ground); font-size: 14px; }
input:focus, textarea:focus, select:focus { background: var(--white); border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { resize: vertical; line-height: 1.5; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.neutre { background: var(--soft); color: var(--sec); }
/* Étiquette sobre (offre, messagerie, fonctionnalité) */
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--sec); background: var(--white); white-space: nowrap; }
.tag.oui { border-color: #BFDCCB; background: var(--ok-soft); color: var(--ok); }
.tag.non { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(95, 101, 128, .5); }
.row-inline.serre { gap: 4px; }
/* Bouton qui se lit comme un lien (nom d'une offre dans la liste) */
.lien { padding: 0; border: 0; background: none; font-weight: 600; color: var(--navy); cursor: pointer; text-align: left; }
.lien:hover { color: var(--blue); text-decoration: underline; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.off { background: var(--warn-soft); color: var(--warn); }
.pill.attention { background: var(--st-att-soft); color: var(--st-att-ink); }
.pill.alerte { background: var(--st-alerte-soft); color: var(--st-alerte-ink); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.back { align-self: flex-start; }

/* ---------- connexion ---------- */
.login { max-width: 400px; margin: 10vh auto 0; }
.login .card { gap: 18px; padding: 32px; }
.login .wordmark { width: 128px; height: 27px; overflow: visible; }
.login .field { flex: none; }
.login .btn { justify-content: center; min-height: 46px; }
.error { color: var(--danger); font-size: 14px; }

/* ---------- tableau de bord ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.page-head p { color: var(--sec); margin-top: 4px; font-size: 13px; }
/* Tableaux denses : lignes compactes, en-tête collant dans une zone qui défile, pied (totaux) collant en bas */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th { position: sticky; top: 0; z-index: 1; background: var(--white); text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .btn.small { min-height: 26px; }
.table .menu-btn { min-height: 24px; }
.table.serre td { white-space: nowrap; }
.table select { width: auto; min-width: 130px; }
.table form.row { flex-wrap: nowrap; gap: 6px; }
.table form.row input { min-width: 220px; }
.table select, .table input { min-height: 30px; padding: 4px 8px; font-size: 13px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #F8FAFD; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a { color: var(--navy); font-weight: 600; text-decoration: none; }
.table a:hover { color: var(--blue); text-decoration: underline; }
.table-wrap { overflow: auto; max-height: min(72vh, 760px); margin: 0 -10px; overscroll-behavior: contain; }
.table-wrap:focus-visible { outline-offset: -2px; }
/* Première colonne collée à gauche quand le tableau défile en largeur (facturation) */
.table .colle { position: sticky; left: 0; z-index: 1; background: var(--white); }
.table thead .colle { z-index: 2; }
.table tbody tr:hover td.colle { background: #F8FAFD; }
.tri { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.tri:hover, .tri.actif { color: var(--navy); }
.tri-fleche { font-size: 10px; opacity: .45; }
.tri.actif .tri-fleche { opacity: 1; color: var(--blue); }
.outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.outils .recherche { flex: 0 1 280px; padding-left: 32px; background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6580' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center / 15px; }
.outils .recherche:focus { background-color: var(--white); }
.outils .filtre { width: auto; min-width: 150px; }
.outils > .hint:last-child { margin-left: auto; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 10px; }
.pagination .hint { margin-right: 4px; font-variant-numeric: tabular-nums; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.ariane li + li::before { content: "›"; margin-right: 6px; color: var(--axis); }
.ariane a { color: var(--sec); text-decoration: none; }
.ariane a:hover { color: var(--blue); text-decoration: underline; }
.ariane [aria-current] { color: var(--navy); font-weight: 600; }
.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter-bar { width: 64px; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.meter-bar span { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.meter-bar.high span { background: var(--st-att); }
.meter-bar.full span { background: var(--st-alerte); }
.meter-bar.wide { width: 100%; height: 8px; border-radius: 4px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.colonne-cartes { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.journal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.journal li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.journal li:last-child { border-bottom: 0; }
.journal strong { color: var(--navy); }
.journal time { display: block; color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* ---------- entreprise ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile .label { font-size: 12px; font-weight: 500; color: var(--muted); }
.tile .value { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.25; }
.tile .sub { font-size: 12px; color: var(--muted); }
/* Chiffres clés du haut d'une page : plus grands, cliquables pour certains (alertes) */
.kpis .tile { padding: 14px 16px; }
.kpis .tile .value { font-size: 26px; }
button.tile { font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.tile:hover { border-color: #C3CEE3; box-shadow: 0 2px 10px rgba(11, 19, 48, .06); }
.tile.alerte { border-color: #F1B8B8; background: #FFFBFB; }
.tile.alerte .value, .kpi-etat.alerte { color: var(--st-alerte-ink); }
.tile.attention { border-color: #F6D98F; background: #FFFDF5; }
.tile.attention .value, .kpi-etat.attention { color: var(--st-att-ink); }
.tile.ok .value, .kpi-etat.ok { color: var(--st-ok-ink); }
.kpi-etat { font-size: 12px; font-weight: 600; }
.kpi .meter-bar.wide { margin: 4px 0 2px; height: 6px; }
/* Bande de chiffres secondaires, en une ligne */
.stats { flex-direction: row; flex-wrap: wrap; gap: 0; padding: 0; }
.stat { flex: 1 1 180px; display: flex; flex-direction: column; gap: 1px; padding: 10px 16px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat .label { font-size: 12px; color: var(--muted); }
.stat strong { font-family: var(--display); font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 11.5px; color: var(--muted); }
.stat .delta { font-size: 11.5px; font-weight: 600; }
.stat .delta.up { color: var(--ok); }
.stat .delta.down { color: var(--danger); }

/* ---------- onglets, panneaux repliables, menu « … » ---------- */
.onglets-page { display: flex; flex-direction: column; gap: 16px; }
.tabs { position: sticky; top: 0; z-index: 4; display: flex; gap: 2px; overflow-x: auto; margin-top: -4px; padding-top: 4px; background: var(--ground); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--sec); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--navy); background: rgba(11, 19, 48, .04); }
.tab[aria-selected="true"] { color: var(--navy); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--blue); }
.tab:focus-visible { outline-offset: -2px; }
.tab-badge { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--sec); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.tab-badge.attention { background: var(--st-att-soft); color: var(--st-att-ink); }
.tab-badge.alerte { background: var(--st-alerte-soft); color: var(--st-alerte-ink); }
.tab-badge.ok { background: var(--st-ok-soft); color: var(--st-ok-ink); }
.tab-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
details.panneau { padding: 0; gap: 0; }
details.panneau > summary { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px; cursor: pointer; list-style: none; border-radius: var(--r-lg); }
details.panneau[open] > summary { border-radius: var(--r-lg) var(--r-lg) 0 0; }
details.panneau > summary::-webkit-details-marker { display: none; }
details.panneau > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 3px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
details.panneau[open] > summary::before { transform: rotate(45deg); }
details.panneau > summary:hover { background: #FAFBFD; }
details.panneau > summary > .hint, details.panneau > summary > .error { margin-left: auto; text-align: right; font-size: 12.5px; }
.panneau-corps { display: flex; flex-direction: column; gap: 12px; padding: 4px 18px 16px; min-width: 0; }
.panneau-corps > .card-head { justify-content: flex-end; }
.menu-btn { min-width: 30px; padding: 0 6px; font-size: 8px; letter-spacing: 1px; color: var(--muted); }
.menu-btn[aria-expanded="true"] { background: var(--ground); color: var(--navy); }
.menu-pop { position: fixed; z-index: 20; min-width: 210px; max-width: 320px; padding: 4px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(11, 19, 48, .16); }
.menu-item { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; font-size: 13.5px; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.menu-item:hover, .menu-item:focus { background: var(--ground); color: var(--navy); outline: none; }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover, .menu-item.danger:focus { background: #FEF3F2; color: var(--danger); }

/* ---------- synthèse de la fiche entreprise ---------- */
.synthese { gap: 14px; }
.synthese-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.synthese-titre { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.synthese-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 0 -18px -16px; }
.synthese-kpis .tile { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 12px 18px; background: transparent; }
.synthese-kpis .tile:first-child { border-left: 0; }
.synthese-kpis .tile .value { font-size: 20px; }
.modules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.module { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.module:first-child { border-top: 0; padding-top: 2px; }
.module strong { color: var(--navy); }
.module .hint { margin-top: 1px; }
/* Création d'images : ses réglages (nombre par poste et par jour, boutons) sous le texte, sur toute la ligne */
.module > .module-reglage { grid-column: 1 / -1; justify-self: start; }
.module-reglage input[type="number"] { width: 76px; }
.module-reglage label.hint { margin: 0; }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile .delta { font-size: 12px; font-weight: 600; }
.tile .delta.up { color: var(--ok); }
.tile .delta.down { color: var(--danger); }
.tile .delta.neutre { color: var(--sec); }

/* ---------- supervision ---------- */
.etat-general { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid; }
.etat-general.compact { padding: 9px 14px; }
.etat-general.compact .voyant-icone { width: 24px; height: 24px; font-size: 13px; }
.etat-general.compact > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.etat-general > div { flex: 1 1 auto; min-width: 0; }
.etat-general strong { font-family: var(--display); font-size: 14.5px; color: var(--navy); }
.etat-general p { font-size: 13px; color: var(--sec); }
.etat-general.ok { background: var(--st-ok-soft); border-color: #BFE5BF; }
.etat-general.attention { background: var(--st-att-soft); border-color: #F6D98F; }
.etat-general.alerte { background: var(--st-alerte-soft); border-color: #F1B8B8; }
.voyant-icone { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--white); background: var(--st-inconnu); }
.ok > .voyant-icone { background: var(--st-ok); }
.attention > .voyant-icone { background: var(--st-att); color: var(--navy); }
.alerte > .voyant-icone { background: var(--st-alerte); }
.voyants { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.voyant { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.voyant .voyant-icone { width: 24px; height: 24px; font-size: 13px; }
.voyant strong { display: block; font-size: 14px; color: var(--navy); }
.voyant p { font-size: 13px; color: var(--sec); margin-top: 2px; }
.voyant.attention { border-color: #F6D98F; }
.voyant.alerte { border-color: #F1B8B8; background: #FFFBFB; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sec); cursor: pointer; }
.switch input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--navy); }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-sm > .field { flex: none; }
.mesure { display: flex; flex-direction: column; gap: 6px; }
.mesure-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--sec); }
.mesure-head strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.faits { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0 0; font-size: 13px; }
.faits dt { color: var(--muted); }
.faits dd { margin: 0; color: var(--ink); }
.barres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.barres li { display: grid; grid-template-columns: minmax(90px, auto) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.barre-piste { height: 10px; border-radius: 0 4px 4px 0; background: var(--ground); overflow: hidden; }
.barre-remplie { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; }
.barres strong { font-variant-numeric: tabular-nums; color: var(--navy); }
.code-box { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-md); background: var(--blue-soft); }
.code-box code { font-family: "Consolas", "SFMono-Regular", monospace; font-size: 22px; font-weight: 700; letter-spacing: .08em; color: var(--navy); }
.repeat { display: flex; flex-direction: column; gap: 10px; }
.repeat-row { display: flex; gap: 10px; align-items: flex-start; }
.repeat-row > .field { flex: 1 1 0; }
.repeat-row .btn { margin-top: 22px; }
.form-end { display: flex; justify-content: flex-end; gap: 12px; align-items: center; padding-top: 4px; }

/* ---------- clients ---------- */
.pill.essai { background: var(--blue-soft); color: var(--navy); }
/* LAB (testeurs) : pastille pleine à la couleur d'accent, distincte de l'essai */
.pill.lab { background: var(--blue); color: var(--white); }
.row-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.marge-g { margin-left: 8px; }
.marge-d { margin-right: 8px; }
/* Fiche modifiée par le client depuis l'application (espace client) */
.note-client { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--st-att-soft); color: var(--st-att-ink); font-size: 14px; }
.note-client.en-place { font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); }
.checklist li .voyant-icone { width: 22px; height: 22px; font-size: 12px; background: var(--white); border: 2px solid var(--axis); color: var(--white); }
.checklist li.fait .voyant-icone { background: var(--st-ok); border-color: var(--st-ok); }
.checklist li.fait strong { color: var(--sec); }
.checklist strong { display: block; font-size: 14px; color: var(--navy); }
.checklist p { font-size: 12px; color: var(--muted); margin-top: 2px; }
details.repli { gap: 0; }
details.repli[open] { gap: 16px; }
details.repli summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--display); font-weight: 700; color: var(--navy); list-style: none; }
details.repli summary::-webkit-details-marker { display: none; }
.voyant-icone.ok-bg { width: 24px; height: 24px; font-size: 13px; background: var(--st-ok); }
.etape { border: 0; margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.etape:last-of-type { border-bottom: 0; }
/* Nouveau client : les étapes sur deux colonnes, le message d'erreur et les boutons sur toute la largeur */
.etapes-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; align-items: start; }
.etapes-grille > .etape { padding: 0; border: 0; }
.etapes-grille > .error, .etapes-grille > .form-end { grid-column: 1 / -1; }
.etapes-grille > .error:empty { display: none; }
.etapes-grille > .form-end { border-top: 1px solid var(--line); padding-top: 12px; }
.etape > .field { flex: none; }
.etape input[type="number"] { max-width: 200px; }
.page-head .row select { width: auto; min-width: 180px; }
.etat-general a { color: var(--navy); font-weight: 600; }
.table .nowrap { white-space: nowrap; }
.etape legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font-family: var(--display); font-size: 14.5px; font-weight: 700; color: var(--navy); }
.etape-n { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.apercu-modele { padding: 12px 14px; border-radius: var(--r-md); background: var(--ground); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.apercu-modele:empty { display: none; }
.coches { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.label-like { font-size: 13px; font-weight: 600; color: var(--sec); }
.table .negatif { color: var(--danger); font-weight: 600; }
.table .positif { color: var(--ok); font-weight: 600; }
.table tfoot th, .table tfoot td { position: sticky; top: auto; bottom: 0; z-index: 1; background: var(--white); padding: 8px 10px; border-top: 2px solid var(--line); font-weight: 700; color: var(--navy); text-align: left; text-transform: none; letter-spacing: 0; font-size: 13px; white-space: nowrap; }
.table tfoot .colle { z-index: 2; }
.table tfoot .num { text-align: right; }

/* ---------- graphiques ---------- */
.chart-block { display: flex; flex-direction: column; gap: 12px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--sec); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--muted); flex: none; }
.swatch.ligne { height: 3px; width: 14px; border-radius: 2px; }
.swatch.s1, .seg.s1 { background: var(--s1); }
.swatch.s2, .seg.s2 { background: var(--s2); }
.swatch.s3, .seg.s3 { background: var(--s3); }
.chart { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 8px; }
.chart-y { position: relative; height: 170px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-y span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.chart-y .y-top { top: 0; }
.chart-y .y-mid { top: 50%; }
.chart-y .y-bas { top: 100%; }
.chart-plot { position: relative; height: 170px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--axis); border-top: 1px solid var(--grid); }
.grid-mid { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--grid); pointer-events: none; }
.chart-slot { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.chart-slot:hover, .chart-slot:focus-visible { background: rgba(31, 111, 229, .06); outline: none; }
.stack { width: 100%; max-width: 24px; height: 100%; display: flex; flex-direction: column-reverse; gap: 2px; }
.stack .seg { flex: none; min-height: 0; }
.stack .seg:last-child { border-radius: 4px 4px 0 0; }
.chart-x { display: flex; justify-content: space-between; grid-column: 2; font-size: 11px; color: var(--muted); }
.lines-plot { display: block; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lines .line { fill: none; stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.lines .line.s1 { stroke: var(--s1); }
.lines .line.s2 { stroke: var(--s2); }
.lines .line.s3 { stroke: var(--s3); }
.crosshair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--axis); pointer-events: none; }
.hit-row { position: absolute; inset: 0; display: flex; }
.hit { flex: 1 1 0; height: 100%; }
.hit:focus-visible { outline: none; background: rgba(31, 111, 229, .06); }
.tooltip { position: absolute; z-index: 3; pointer-events: none; background: var(--navy); color: var(--white); font-size: 12px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -100%); box-shadow: 0 6px 18px rgba(11, 19, 48, .2); }
.tt-row { display: flex; align-items: center; gap: 6px; }
.tt-row .tt-title { font-weight: 600; }
.tt-row .tt-label { color: #C9D2E8; }
.tt-row strong { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.tooltip .swatch { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 10px; color: var(--muted); }
.heat-h { text-align: left; white-space: nowrap; }
.heat-j { display: flex; align-items: center; font-size: 11px; }
.heat-c { display: block; aspect-ratio: 1 / 1; min-height: 10px; border-radius: 3px; background: var(--heat0); }
.heat-c.n1 { background: var(--heat1); } .heat-c.n2 { background: var(--heat2); } .heat-c.n3 { background: var(--heat3); }
.heat-c.n4 { background: var(--heat4); } .heat-c.n5 { background: var(--heat5); } .heat-c.n6 { background: var(--heat6); }
.heat-scale { display: flex; align-items: center; gap: 3px; justify-content: flex-end; font-size: 11px; color: var(--muted); }
.heat-scale .heat-c { width: 12px; min-height: 12px; }
.heat-scale span:first-of-type { margin-left: 6px; }
.heat-scale span:last-of-type { margin-right: 6px; }

/* ---------- message ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10; background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 24px rgba(11, 19, 48, .18); max-width: calc(100vw - 32px); }
.toast.error { background: var(--danger); }

@media (max-width: 1280px) {
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .etapes-grille { grid-template-columns: 1fr; }
}
/* Écran étroit : le menu devient une barre en haut de page, les onglets restent collés en haut */
@media (max-width: 860px) {
  .sidebar { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px 6px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .sidebar:not([hidden]) ~ main { margin-left: 0; }
  .nav { order: 3; width: 100%; flex-direction: row; overflow-x: auto; }
  .nav a { flex: 1 1 0; width: auto; min-width: 0; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; padding: 4px 2px; font-size: 11.5px; }
  .nav a[aria-current="page"]::before { left: 10px; right: 10px; top: auto; bottom: -6px; width: auto; height: 2px; border-radius: 2px; }
  .sidebar-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; padding: 0; border: 0; }
  .sidebar-foot .nav-btn { width: auto; }
  .nav-btn.replier, .nav-btn span, #who-name { display: none; }
  main { padding: 16px 14px 40px; }
  .grid2, .grid2.even, .grid3 { grid-template-columns: 1fr; }
  .outils .recherche { flex: 1 1 100%; }
  .outils .filtre { flex: 1 1 140px; }
  .synthese-kpis .tile { border-left: 0; border-top: 1px solid var(--line); }
  .module { grid-template-columns: minmax(0, 1fr) auto; }
  .module > .btn, .module > .switch { grid-column: 1 / -1; justify-self: start; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heat { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 1px; }
  .heat-h { font-size: 8px; }
  .repeat-row { flex-direction: column; align-items: stretch; }
  .repeat-row .btn { margin-top: 0; align-self: flex-start; }
}
.raisons { margin: 0; padding-left: 18px; font-size: 13px; }

/* ---------- entretien de mise en place ---------- */
.taille-fiche { margin-right: auto; }
.ent-progression { display: flex; flex-direction: column; gap: 10px; }
.ent-rubriques { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ent-rubrique { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); cursor: pointer; text-align: left; }
.ent-rubrique span { font-size: 13px; font-weight: 600; color: var(--sec); }
.ent-rubrique small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ent-rubrique:hover { background: var(--ground); }
.ent-rubrique.faite { border-color: #BFE5BF; background: var(--st-ok-soft); }
.ent-rubrique.courante { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.ent-rubrique.courante span { color: var(--navy); }
.ent-rubrique-titre { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.ent-question { font-size: 21px; line-height: 1.3; }
.ent-exemple { padding: 10px 14px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; color: var(--sec); }
.ent-exemple strong { color: var(--navy); }
.ent-carte > .field { flex: none; }
.ent-manquantes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ent-manquantes .btn { white-space: normal; text-align: left; height: auto; padding: 6px 10px; }
.ent-notes { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.ent-notes-rubrique { display: flex; flex-direction: column; gap: 8px; }
.ent-notes-rubrique h3 { font-size: 14px; }
.ent-note { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .ent-rubriques { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ent-notes { position: static; max-height: none; }
}
.ent-carte .form-end { flex-wrap: wrap; }
.ent-carte .taille-fiche { flex: 1 1 180px; }
.apercu-modele a { color: var(--blue); font-weight: 600; }
/* Compléter la fiche avec un document */
.doc-bloc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 4px 0 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; }
.doc-bloc > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.doc-bloc p { margin: 0; }
.doc-changements { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-changement { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.doc-changement input { width: 18px; height: 18px; margin-top: 2px; }
.doc-changement label { display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-width: 0; }
.doc-avant, .doc-apres { display: block; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc-avant { opacity: 0.7; }
.doc-etiquette { display: inline-block; margin-right: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.doc-etiquette.nouveau { opacity: 1; color: var(--blue, #1F6FE5); }
/* Interrupteur compact (poste « Responsable » dans le tableau des postes) */
input.bascule { appearance: none; -webkit-appearance: none; position: relative; width: 30px; min-height: 0; height: 18px; padding: 0; margin: 0; flex: none;
  border: 0; border-radius: 999px; background: #C5CCDB; cursor: pointer; vertical-align: middle; transition: background 0.15s; }
input.bascule::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(11, 19, 48, 0.25); transition: transform 0.15s; }
input.bascule:checked { background: var(--blue); }
input.bascule:checked::after { transform: translateX(12px); }
input.bascule:focus, input.bascule:focus-visible { background: #C5CCDB; box-shadow: 0 0 0 3px var(--blue-soft); }
input.bascule:checked:focus, input.bascule:checked:focus-visible { background: var(--blue); }
input.bascule:disabled { opacity: 0.5; cursor: default; }
@media (prefers-reduced-motion: reduce) { input.bascule, input.bascule::after { transition: none; } }

/* Petite fenêtre (code à 6 chiffres de la sauvegarde) */
.fenetre { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; width: min(440px, calc(100vw - 32px)); background: var(--white); color: inherit; }
.fenetre::backdrop { background: rgba(11, 19, 48, .45); }
.fenetre h2 { font-size: 18px; }
.fenetre .field { flex: none; }
.fenetre .error:empty { display: none; }
/* Grande fenêtre : un formulaire de carte (offre) s'y affiche sans son cadre */
.fenetre.large { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 20px 22px; }
.fenetre.large > .card { border: 0; padding: 0; }
.row.end { justify-content: flex-end; }

/* Dossier de l'entreprise */
.onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.onglet { border: 1px solid var(--line, #DDE3EE); background: transparent; color: inherit; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.onglet.actif { background: var(--navy); border-color: var(--navy); color: #fff; }
.onglet:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dossier-corps h3 { margin: 0; font-size: 16px; }
.dossier-champs { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 6px 16px; margin: 10px 0 0; font-size: 14px; }
.dossier-champ { display: contents; }
.dossier-champ dt { color: var(--muted); }
.dossier-champ dd { margin: 0; }
.dossier-liste { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.dossier-liste .dossier-champs { margin-top: 4px; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.apercu-fiche { white-space: pre-wrap; margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--ground); font-size: 13px; line-height: 1.5; max-height: 420px; overflow: auto; }
.dossier-champ dd { overflow-wrap: anywhere; min-width: 0; }
/* Téléphones reliés à un poste, dans le tableau des postes */
ul.telephones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

/* ---------- coût réel et marge (0.69.0) ---------- */
.marge-basse { color: var(--danger); font-weight: 600; }
.estime, .hint.estime { color: var(--st-inconnu); font-style: italic; }
.tooltip .tt-row.estime .tt-label, .tooltip .tt-row.estime strong { color: #AEB4C8; font-style: italic; }
.tooltip .tt-row.marge-basse strong { color: #FF9C9C; }
details.calcul { margin-top: 10px; font-size: 12.5px; color: var(--sec); }
details.calcul > summary { cursor: pointer; color: var(--blue); width: fit-content; }
details.calcul ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.form-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.form-ligne .field { min-width: 150px; }
.en-cause { margin: 4px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--st-alerte-ink); }
.detail-cout { margin: 4px 0 0; padding-left: 16px; font-size: 12.5px; }
table.tarifs p.modeles { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--sec); margin-top: 2px; max-width: 420px; }
table.tarifs td { vertical-align: top; }
table.tarifs td:first-child { white-space: normal; min-width: 260px; max-width: 380px; }
table.tarifs p.modeles, table.tarifs td:first-child .hint { white-space: normal; word-break: break-word; }
.form-ligne input, .form-ligne select { max-width: 220px; }

/* ---------- support ---------- */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--st-alerte); color: var(--white); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
html.menu-replie .nav-badge { position: absolute; top: 2px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.pill.nouvelle { background: var(--blue-soft); color: var(--blue); }
.pill.violet { background: #F0EDFB; color: #5B3FA8; }
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.prio i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.prio.alerte { color: var(--st-alerte-ink); }
.prio.alerte i { background: var(--st-alerte); }
.prio.attention { color: var(--st-att-ink); }
.prio.attention i { background: var(--st-att); }
.num-support { font-weight: 600; color: var(--sec); font-variant-numeric: tabular-nums; }
.table td:has(> .num-support.nouvelle) { box-shadow: inset 3px 0 0 var(--blue); }
.table tr:has(.num-support.nouvelle) td { background: #FBFCFF; }
.table td.demande-support { white-space: normal; min-width: 260px; }
.table td.demande-support a { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico-capture { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sel-libelle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--sec); }
.sel-libelle select { width: auto; min-width: 130px; }
.fiche-support { grid-template-columns: minmax(0, 1fr) 380px; }
.texte-support { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.capture-support { position: relative; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--ground); }
.capture-support img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.capture-actions { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.capture-grande { width: min(1400px, calc(100vw - 32px)); }
.capture-grande img { display: block; width: 100%; height: auto; margin-bottom: 12px; border-radius: var(--r-sm); }
.fil-support { display: flex; flex-direction: column; gap: 10px; }
.message-support { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.message-support.equipe { border-color: #CFDDFB; box-shadow: inset 3px 0 0 var(--blue); }
.message-support .qui { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 13px; }
.message-support .qui strong { color: var(--navy); }
.note-interne { background: #FFFBEB; border: 1px solid #F5E2A8; border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; color: #5A4300; display: flex; flex-direction: column; gap: 4px; }
.note-interne strong { color: #4A3600; }
.modeles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag.cliquable { cursor: pointer; font: inherit; font-size: 12px; }
.tag.cliquable:hover { border-color: var(--blue); color: var(--navy); }
.case-support { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--sec); }
.case-support input { width: auto; min-height: 0; margin-top: 2px; }
.case-support.grisee { color: var(--muted); }
.actions-support { flex-wrap: wrap; }
.actions-support .pousse { margin-left: auto; }
.dl-support { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 5px 10px; font-size: 13px; }
.dl-support dt { color: var(--muted); }
.dl-support dd { margin: 0; overflow-wrap: anywhere; }
.journal-poste { margin: 0; max-height: 360px; overflow: auto; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 11.5px; line-height: 1.6; background: var(--navy); color: #C9D3EA; border-radius: var(--r-sm); padding: 10px 12px; white-space: pre-wrap; }
.journal-poste .w { color: var(--st-att); }
.journal-poste .e { color: #FF8A80; }
@media (max-width: 1100px) { .fiche-support { grid-template-columns: minmax(0, 1fr); } }
