@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Fond (sombre = thème par défaut pour tout le monde depuis le 17/08/2026, decision explicite de Gerald - le clair reste disponible via data-theme="light") */
  --ink: #15181c;
  --surface: #1c1f26;
  --surface-raised: #21252c;
  --surface-hover: #262a33;
  --border: #2c313b;

  /* Texte */
  --text: #f2f3f5;
  --text-muted: #a8afba;
  --text-faint: #6b7280;

  /* Signal (accent de marque) */
  --signal: #6d5ef5;
  --signal-soft: rgba(109, 94, 245, 0.15);

  /* États de ticket */
  --etat-ouvert: #e8622f;
  --etat-en-cours: #1a8fd1;
  --etat-en-attente: #c99a13;
  --etat-resolu: #1fa974;
  --etat-ferme: #98a0ad;

  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Inter', sans-serif;

  --radius: 8px;
}

html[data-theme="light"] {
  --ink: #f4f5f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-hover: #f0f2f5;
  --border: #e1e4ea;

  --text: #1a2030;
  --text-muted: #5b6472;
  --text-faint: #98a0ad;

  --signal-soft: rgba(109, 94, 245, 0.09);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.mono { font-family: var(--font-mono); }

button, input, select, textarea { font-family: var(--font-body); font-size: 14px; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */

.sidebar-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.sidebar-toggle:hover { background: var(--surface-hover); color: var(--signal); }


.sidebar-logo-mini {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.app-shell {
  min-height: 100vh;
  position: relative;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.15s ease;
}

.main {
  margin-left: 220px;
  width: calc(100% - 220px);
  box-sizing: border-box;
  transition: margin-left 0.15s ease, width 0.15s ease;
}

/* Par défaut (non épinglé) : sidebar repliée, aperçu déclenché uniquement par la petite zone en haut à gauche */

html:not(.sidebar-epinglee) .sidebar {
  width: 64px;
  padding-left: 12px;
  padding-right: 12px;
  align-items: center;
}

html:not(.sidebar-epinglee) .main {
  margin-left: 64px;
  width: calc(100% - 64px);
}

html:not(.sidebar-epinglee) .sidebar.sidebar-survolee {
  width: 220px;
  padding-left: 16px;
  padding-right: 16px;
  align-items: stretch;
  box-shadow: 6px 0 24px rgba(16, 24, 40, 0.18);
}


html:not(.sidebar-epinglee) .sidebar:not(.sidebar-survolee) .sidebar-texte,
html:not(.sidebar-epinglee) .sidebar:not(.sidebar-survolee) .sidebar-texte-bloc {
  display: none;
}

html:not(.sidebar-epinglee) .sidebar:not(.sidebar-survolee) .sidebar-brand {
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

html:not(.sidebar-epinglee) .sidebar:not(.sidebar-survolee) .nav-link {
  justify-content: center;
  width: 40px;
  padding: 9px 0;
}

html:not(.sidebar-epinglee) .sidebar:not(.sidebar-survolee) .nav-group {
  align-items: center;
}

/* Zone de déclenchement : carré en haut à gauche, volet replié / épingle une fois déployé */

.sidebar-declencheur {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icone-volet {
  color: var(--text-faint);
}

html.sidebar-epinglee .icone-volet,
html:not(.sidebar-epinglee) .sidebar.sidebar-survolee .icone-volet {
  display: none;
}

.icone-epingle {
  display: none;
}

html.sidebar-epinglee .icone-epingle,
html:not(.sidebar-epinglee) .sidebar.sidebar-survolee .icone-epingle {
  display: inline-flex;
}

html.sidebar-epinglee .sidebar-toggle {
  color: var(--signal);
}

.nav-section-deconnexion {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.recherche-rapide {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 2px solid var(--text-faint);
  border-radius: var(--radius);
  color: var(--text-faint);
  background: var(--ink);
}

.recherche-rapide input {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text);
  width: 100%;
}

.recherche-rapide input:focus-visible { outline: none; }
.recherche-rapide:focus-within { border-color: var(--signal); }

.nav-section { display: flex; flex-direction: column; gap: 8px; }

.nav-section-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 0 10px;
  text-align: center;
}


.nav-group { display: flex; flex-direction: column; gap: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}

button.nav-link {
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.nav-link svg { flex-shrink: 0; opacity: 0.75; }

.nav-link:hover { background: var(--surface-hover); color: var(--text); }
.nav-link.active { background: var(--signal-soft); color: var(--signal); }
.nav-link.active svg { opacity: 1; }


.nav-badge {
  margin-left: auto;
  background: var(--signal);
  color: white;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
}





.main {
  padding: 28px 36px;
  max-width: 1600px;
}

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header h1 { font-size: 22px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.btn:hover { border-color: var(--signal); }

.btn-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: white;
}

.btn-primary:hover { background: #7d70ff; border-color: #7d70ff; }

.btn-succes {
  background: var(--etat-resolu);
  border-color: var(--etat-resolu);
  color: white;
}

.btn-succes:hover { filter: brightness(1.08); }

.btn-danger {
  background: transparent;
  border-color: var(--etat-ouvert);
  color: var(--etat-ouvert);
}

.btn-danger:hover { background: rgba(232, 98, 47, 0.08); }

/* ---------- Signal board (dashboard) ---------- */

.signal-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}

.signal-cell {
  background: var(--surface);
  padding: 18px 20px;
  position: relative;
}

.signal-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cell-color, var(--text-faint));
}

.signal-cell .valeur {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
}

.signal-cell .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Barre de statut segmentée (signature) ---------- */

.statut-bar {
  display: flex;
  gap: 4px;
  align-items: center;
}

.statut-segment {
  height: 22px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
}

.statut-segment.actif {
  color: #ffffff;
  background: var(--segment-color);
  border-color: var(--segment-color);
  font-weight: 600;
}

.statut-segment:not(.actif):hover {
  border-color: var(--segment-color);
  color: var(--text);
}

/* ---------- Tables ---------- */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 700;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 4px double var(--border);
  position: sticky;
  top: 0;
  z-index: 15;
}

th[data-triable] {
  cursor: pointer;
  user-select: none;
}

th[data-triable]:hover { color: var(--signal); }

thead tr:first-child th:first-child { border-top-left-radius: var(--radius); }
thead tr:first-child th:last-child { border-top-right-radius: var(--radius); }

.poste-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.poste-topbar-titre {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poste-topbar-titre h1 { font-size: 20px; }

.poste-retour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--text-muted);
}

.poste-retour:hover { background: var(--surface-hover); color: var(--signal); }

.poste-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poste-statut-ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.poste-corps {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.poste-corps--pleine-largeur { grid-template-columns: 1fr; }

.poste-panneau-principal { padding: 0; overflow: hidden; }

.poste-onglets {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.poste-onglet {
  padding: 8px 4px 12px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-muted);
  white-space: nowrap;
  border: none;
  border-bottom: 2px solid transparent;
  margin-right: 16px;
  background: transparent;
  cursor: pointer;
}

.poste-onglet--actif {
  color: var(--signal);
  border-bottom-color: var(--signal);
  font-weight: 600;
}


.poste-info-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px;
}

.poste-info-grille--3col {
  grid-template-columns: repeat(3, 1fr);
}

.poste-info-grille h3 {
  font-size: 14px;
  margin-bottom: 14px;
}

.poste-info-grille dt {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 12px;
}

.poste-info-grille dt:first-child { margin-top: 0; }

.poste-info-grille dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--text);
}







.disque-capacite-globale { padding: 20px; }

.disque-capacite-entete {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.disque-capacite-entete strong { font-size: 18px; }
.disque-capacite-entete span { font-size: 12.5px; color: var(--text-muted); }

.disque-barre {
  height: 8px;
  background: var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.disque-barre-remplissage {
  height: 100%;
  background: var(--signal);
  border-radius: 999px;
}

.disque-legende {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.disque-carte {
  display: grid;
  grid-template-columns: 28px 1fr 1fr;
  gap: 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}

.disque-icone { color: var(--text-faint); padding-top: 2px; }

.disque-colonne dt {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 10px;
}

.disque-colonne dt:first-child { margin-top: 0; }

.disque-colonne dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--text);
}

.os-section { padding: 20px; }
.os-section h3 { font-size: 14px; margin-bottom: 16px; }

.os-liste dt {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 12px;
}

.os-liste dt:first-child { margin-top: 0; }

.os-liste dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.os-avec-icone { display: flex; align-items: center; gap: 6px; }

.oeil-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  border-radius: 6px;
}

.oeil-toggle:hover { background: var(--surface-hover); color: var(--signal); }

.btn-acquitter-echec {
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-acquitter-echec:hover { border-color: var(--signal); color: var(--signal); }

.securite-ligne {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 13.5px;
}

.securite-label {
  width: 100px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text);
}

.badge-securite {
  margin-left: auto;
  background: var(--signal);
  color: white;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.peripherique-racine { font-size: 13px; }

.peripherique-groupe { border-bottom: 1px solid var(--border); }
.peripherique-groupe:last-child { border-bottom: none; }

.peripherique-groupe-titre {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.peripherique-groupe-titre::-webkit-details-marker { display: none; }

.peripherique-chevron { flex-shrink: 0; transition: transform 0.15s ease; color: var(--text-faint); }
.peripherique-groupe[open] > .peripherique-groupe-titre .peripherique-chevron,
.peripherique-racine[open] > .peripherique-groupe-titre .peripherique-chevron { transform: rotate(90deg); }

.peripherique-groupe-titre:hover { color: var(--signal); }
.peripherique-groupe-titre:hover .peripherique-chevron { color: var(--signal); }

.peripherique-groupe-alerte { color: var(--etat-en-attente); margin-left: 2px; }

.peripherique-liste { padding: 0 0 8px 34px; }

.peripherique-ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.peripherique-nom { color: var(--text); }
.peripherique-alerte-icone { color: var(--etat-en-attente); }
.peripherique-fabricant { margin-left: auto; color: var(--text-faint); font-size: 12px; }

[data-icone-theme-sombre] { display: none; }
html[data-theme="light"] [data-icone-theme-sombre] { display: block; }
html[data-theme="light"] [data-icone-theme-clair] { display: none; }

.onglet-barre-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
}

.onglet-recherche {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--text-faint);
  border-radius: var(--radius);
  color: var(--text-faint);
  flex: 1;
  max-width: 320px;
}

.onglet-recherche input {
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  color: var(--text);
}

.onglet-vide {
  text-align: center;
  padding: 50px 20px;
}

.onglet-vide h3 { font-size: 15px; margin-bottom: 6px; }
.onglet-vide p { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

.panneau-lateral-fond {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.35);
  z-index: 90;
  display: flex;
  justify-content: flex-end;
}

.panneau-lateral-fond[hidden] { display: none; }

.panneau-lateral {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -8px 0 24px rgba(16, 24, 40, 0.16);
}

.panneau-lateral h3 { font-size: 16px; margin-bottom: 4px; }

.panneau-lateral-sous-titre {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.tri-fleche { color: var(--signal); font-size: 10px; }

td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-hover); }


.ligne-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  color: var(--text-faint);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.ligne-menu:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* ---------- Priorité (petit indicateur, pas un badge pilule) ---------- */

.priorite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.priorite::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--prio-color, var(--text-faint));
  transform: rotate(45deg);
}

/* ---------- Filtres ---------- */

.filtres { display: flex; gap: 8px; margin-bottom: 18px; }

.filtres-barre {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}

.filtres-barre select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--text);
  min-width: 200px;
}

.filtres-barre input[type=text] {
  flex: 1;
  max-width: 320px;
  border: 2px solid var(--text-faint);
}

.icone-rotation {
  animation: tourner 0.6s linear infinite;
}

@keyframes tourner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.poste-power { display:inline-flex; vertical-align:middle; }
.poste-power--en-ligne { color: var(--etat-resolu); }
.poste-power--hors-ligne { color: var(--etat-ouvert); }

.entonnoir-panneau {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14);
  padding: 12px;
}

.entonnoir-panneau[hidden] { display: none; }

.entonnoir-titre {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.entonnoir-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 13px;
  cursor: default;
  user-select: none;
}

.entonnoir-item:hover { background: var(--surface-hover); }
.entonnoir-item--glisse { opacity: 0.4; }

.entonnoir-item span:nth-child(2) { flex: 1; }

.entonnoir-poignee {
  color: var(--text-muted);
  cursor: grab;
  display: flex;
  align-items: center;
}

.entonnoir-reinit {
  width: 100%;
  margin-top: 8px;
  padding: 6px 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  color: var(--text-faint);
  font-size: 12px;
  cursor: pointer;
}

.entonnoir-reinit:hover { color: var(--signal); }

.menu-contextuel {
  position: absolute;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16);
  padding: 6px;
  min-width: 160px;
}

.menu-contextuel[hidden] { display: none; }

.menu-contextuel button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
}

.menu-contextuel button:hover { background: var(--surface-hover); color: var(--signal); }

.menu-contextuel-separateur {
  height: 1px;
  background: var(--border);
  margin: 4px 2px;
}

.menu-contextuel button.action-danger { color: var(--etat-ouvert); }
.menu-contextuel button.action-danger:hover { background: rgba(232, 98, 47, 0.08); color: var(--etat-ouvert); }


.btn:disabled, .btn:disabled:hover {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}

.modale-fond {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  overflow-y: auto;
  padding: 40px 16px;
  z-index: 100;
  text-align: center;
}

.modale-fond::before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.modale-fond[hidden] { display: none; }

.modale-carte {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 520px;
  display: inline-block;
  vertical-align: middle;
  text-align: left;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.24);
}

.modale-carte h3 { font-size: 16px; margin-bottom: 8px; }

.modale-souscription {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.modale-carte form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modale-carte label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 0;
}

.modale-carte input,
.modale-carte select {
  width: 100%;
}

.filtre-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.filtre-chip.actif { border-color: var(--signal); color: var(--signal); background: var(--signal-soft); }



.champ-mdp-conteneur {
  position: relative;
}

.champ-mdp-conteneur input {
  width: 100%;
  padding-right: 40px;
  box-sizing: border-box;
}

.oeil-toggle-champ {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.oeil-toggle-champ:hover {
  color: var(--signal);
}

.filtre-chip-point {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--filtre-couleur, var(--text-faint));
  margin-right: 6px;
  vertical-align: middle;
}

.filtre-chip-compteur {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  margin-left: 2px;
}

.filtre-chip.actif .filtre-chip-compteur { background: var(--signal); color: #fff; }

.btn-toggle-scripts {
  padding: 10px 22px;
  border-radius: 8px;
  border: 2px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}

.btn-toggle-scripts--actif { border-color: var(--signal); color: var(--signal); background: var(--signal-soft); }

.btn-filtre-etat--actif { border-color: var(--signal); background: var(--signal-soft); }

/* ---------- Formulaires ---------- */

.form-grid { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
}

textarea { resize: vertical; min-height: 90px; font-family: var(--font-body); }

.combo { position: relative; }

.champ-combo-conteneur {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.combo input {
  padding-right: 34px;
  width: 100%;
}

.combo::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.combo-liste {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  z-index: 500;
}

.combo-option {
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}

.combo-option:hover {
  background: var(--signal-soft);
  color: var(--signal);
}

/* ---------- Login ---------- */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0b0f;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYwMCIgaGVpZ2h0PSIxMDAwIiB2aWV3Qm94PSIwIDAgMTYwMCAxMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHJhZGlhbEdyYWRpZW50IGlkPSJmb25kIiBjeD0iNTAlIiBjeT0iMjglIiByPSI3NSUiPgogICAgICA8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjMWIxZTJjIiAvPgogICAgICA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gPGNpcmNsZSBjeD0iMTQ3Mi4wIiBjeT0iNDI5LjkiIHI9IjIuNSIgLz4KICAgIDxjaXJjbGUgY3g9IjE1MjUuNiIgY3k9IjU4NS42IiByPSI0IiAvPgogICAgPGNpcmNsZSBjeD0iMTQ5Mi41IiBjeT0iNzU4LjUiIHI9IjIuNSIgLz4KICAgIDxjaXJjbGUgY3g9IjE0ODAuMCIgY3k9IjkxMi44IiByPSIzIiAvPgogIDwvZz4KPC9zdmc+");
  background-size: cover;
  background-position: center;
}

.login-card button[type="submit"] {
  justify-content: center;
  font-size: 15px;
  width: 100%;
}

.login-card {
  background: #1c1f26;
  border: 1px solid #2c313b;
  border-radius: 12px;
  padding: 36px;
  width: 100%;
  max-width: 360px;
}

.login-card label {
  color: #a8afba;
}

.login-card input[type="email"],
.login-card input[type="password"] {
  background: #15181c;
  border: 1px solid #2c313b;
  color: #f2f3f5;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #f2f3f5;
}


.login-brand-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.login-brand-empile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.login-brand-logo-grand {
  height: 72px;
  width: auto;
}

.login-brand-texte {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #f2f3f5;
  line-height: 1.35;
}

.erreur-msg {
  background: rgba(255, 107, 74, 0.12);
  border: 1px solid var(--etat-ouvert);
  color: var(--etat-ouvert);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ---------- Détail ticket : trace d'activité (signature) ---------- */

.ticket-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: start;
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bulle-ligne {
  display: flex;
}

.bulle-ligne--technicien,
.bulle-ligne--interne {
  justify-content: flex-end;
}

.bulle-ligne--client {
  justify-content: flex-start;
}

.bulle {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

.bulle--technicien {
  background: var(--signal);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.bulle--client {
  background: #ffe300;
  color: #000000;
  border-bottom-left-radius: 4px;
}

.bulle--interne {
  background: #dc2626;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.bulle-ligne--systeme {
  justify-content: flex-end;
  margin: 4px 0;
}

.bulle--systeme {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 72%;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  background: transparent;
  /* CORRECTIF du 18/08/2026 : couleur figee a #000000, ce qui convenait tant
     que le theme clair etait le defaut. Depuis le passage au theme sombre par
     defaut (17/08), la bulle systeme s'affichait en noir sur fond sombre, donc
     invisible : les changements de statut semblaient ne pas etre traces alors
     qu'ils l'etaient bien en base. Les autres bulles ne sont pas concernees,
     leur #000000 est pose sur un fond jaune opaque. */
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}

.bulle-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.bulle-contenu {
  white-space: pre-wrap;
}

.bulle-contenu a {
  color: inherit;
  text-decoration: underline;
}

.editeur-corps {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.editeur-carte {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--text-faint);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.editeur-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--ink);
}

.editeur-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
}

.editeur-btn:hover {
  background: var(--surface-hover);
  color: var(--signal);
}

.zone-saisie-message {
  background: var(--surface);
  border: none;
  border-radius: 0;
  min-height: 270px;
  width: 100%;
  padding: 12px 14px;
  overflow-y: auto;
  resize: vertical;
  color: var(--text);
  outline: none;
}

.zone-saisie-message:empty::before {
  content: attr(data-placeholder);
  color: var(--text-faint);
  pointer-events: none;
}

.editeur-pieces-jointes {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attache-declencheur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  justify-content: center;
}

.attache-declencheur:hover { border-color: var(--signal); color: var(--signal); }

.pieces-jointes-liste {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.piece-jointe-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text);
}

.piece-jointe-item svg { flex-shrink: 0; color: var(--text-faint); }

.piece-jointe-item a {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  text-decoration: underline;
}

.piece-jointe-item a:hover { color: var(--signal); }

.piece-jointe-retirer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #dc2626;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.piece-jointe-retirer:hover { background: rgba(220, 38, 38, 0.1); }

.editeur-separateur {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.editeur-popover-hote { position: relative; }

.editeur-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14);
  padding: 8px;
  display: flex;
  gap: 6px;
}

.editeur-popover[hidden] {
  display: none;
}

.editeur-popover button[data-couleur] {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  cursor: pointer;
}

.editeur-popover--emojis {
  display: grid;
  grid-template-columns: repeat(6, 28px);
  gap: 4px;
  max-width: none;
  width: max-content;
}

.editeur-popover--emojis button {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
}

.editeur-popover--emojis button:hover { background: var(--surface-hover); }

.editeur-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.editeur-select-statut {
  margin-right: auto;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.btn-danger svg { flex-shrink: 0; }

@media (max-width: 700px) {
  .editeur-corps { flex-direction: column; }
  .editeur-pieces-jointes { width: 100%; }
}

.panneau {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}

.panneau h3 { font-size: 13px; margin-bottom: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-body); font-weight: 600; }

.panneau dl { margin: 0; }
.panneau dt { font-size: 11px; color: var(--text-faint); margin-top: 12px; }
.panneau dt:first-child { margin-top: 0; }
.panneau dd { margin: 2px 0 0; font-size: 13.5px; }

.vide {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
}

.vide h3 { color: var(--text-muted); margin-bottom: 8px; }

/* ---------- Tableau de bord : refonte du 15/09/2026 (repartition
   hierarchisee au lieu d'un empilement lineaire de grilles identiques) ---------- */

.hero-rangee {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.hero-carte {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.hero-carte::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--cell-color, var(--border));
}

.hero-carte--actif {
  border-color: var(--cell-color, var(--border));
}

.hero-carte--actif::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--cell-color, transparent);
  opacity: 0.08;
}

.hero-carte .hero-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-carte .hero-valeur {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.hero-carte--actif .hero-valeur { color: var(--cell-color); }

.hero-carte .hero-etat {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 6px;
}

.hero-carte--actif .hero-etat { color: var(--cell-color); font-weight: 600; }

.dashboard-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .dashboard-grille { grid-template-columns: 1fr; }
}

.db-colonne-lateral {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.db-panneau-titre {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.db-panneau-titre h3 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin: 0;
}

.anneau-flotte-ligne {
  display: flex;
  align-items: center;
  gap: 16px;
}

.anneau-flotte-legende {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anneau-flotte-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.anneau-flotte-puce {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.anneau-flotte-item strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 600;
}

.mini-stat-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.mini-stat {
  padding: 10px 12px;
  background: var(--surface-hover);
  border-radius: 8px;
}

.mini-stat .mini-stat-valeur {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--mini-color, var(--text));
}

.mini-stat .mini-stat-label {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}
