/* =====================================================================
   HABILLAGE C « Thermique » — 22/11/2026 (maquettes validées par Jean-Louis le 22/11)
   Couleurs de la marque ATIS (bleu nuit #123A5C, froid #23B7E5, chaud #FF902B),
   polices Archivo (titres) + IBM Plex Sans (texte), échelle froid -> chaud pour les statuts.
   Affichage seul : actif uniquement sous .atis-c (posée avec .atis-a .atis-b dans Layout.js),
   chargé après l'habillage B. Retour arrière : HABILLAGE_C = false dans atisHabillageB.js.
   ===================================================================== */

body .wrapper.atis-c { font-family: "IBM Plex Sans", "Source Sans Pro", system-ui, sans-serif; color: #12283A; }
body .wrapper.atis-c h1, body .wrapper.atis-c h2, body .wrapper.atis-c h3,
body .wrapper.atis-c .atisb-cpt-n, body .wrapper.atis-c .atisc-thermo b { font-family: "Archivo", "Source Sans Pro", sans-serif; letter-spacing: -0.005em; }
body .wrapper.atis-c,
body .wrapper.atis-c > section.section-container,
body .wrapper.atis-c .content-wrapper { background: #EEF3F6 !important; }

/* ---------- menu latéral ---------- */
@media (min-width: 769px) {
  body .wrapper.atis-c .topnavbar,
  body .wrapper.atis-c .topnavbar.navbar-fixed-top { background: #0F2F4B !important; }
  body .wrapper.atis-c .topnavbar > .container-fluid { position: relative; }
  body .wrapper.atis-c .topnavbar .navbar-brand { position: relative; padding-left: 18px; }
  body .wrapper.atis-c .topnavbar .navbar-brand::before {
    content: ""; position: absolute; left: 2px; top: 4px; width: 8px; height: 38px; border-radius: 3px;
    background: linear-gradient(180deg, #23B7E5, #6AA8E0 40%, #FF902B);
  }
  body .wrapper.atis-c .topnavbar .navbar-nav > li > a { color: #B9CCDA !important; font-weight: 500; }
  body .wrapper.atis-c .topnavbar .navbar-nav > li > a:hover,
  body .wrapper.atis-c .topnavbar .navbar-nav > li > a:focus { background: #1A4466 !important; color: #fff !important; }
  body .wrapper.atis-c .topnavbar .navbar-nav > li.active > a,
  body .wrapper.atis-c .topnavbar .navbar-nav > li.active > a:hover,
  body .wrapper.atis-c .topnavbar .navbar-nav > li.active > a:focus { background: #1F4F78 !important; color: #fff !important; box-shadow: inset 3px 0 0 #FF902B !important; }
  body .wrapper.atis-c .topnavbar .navbar-right { border-top-color: #22496B; }
  body .wrapper.atis-c .topnavbar .atisb-compte .fa-user-circle { color: #FF902B !important; }
  body .wrapper.atis-c .topnavbar .navbar-nav > li > a[href="/__recues/"] > span[style] > span[style] { background: #FF902B !important; color: #1A0D02 !important; }
  body .wrapper.atis-c .atisb-mcpt.on { background: #1F4F78; }
  body .wrapper.atis-c .atisb-mcpt.on .atisb-mcpt-n { background: #FF902B; color: #1A0D02; }
}
@media (max-width: 768px) {
  body .wrapper.atis-c .topnavbar,
  body .wrapper.atis-c .topnavbar .navbar-header,
  body .wrapper.atis-c .topnavbar .navbar-collapse { background: #0F2F4B !important; }
  body .wrapper.atis-c .topnavbar .navbar-nav > li.active > a { background: #1F4F78 !important; }
}

/* ---------- boutons ---------- */
body .wrapper.atis-c .btn-primary { background: #123A5C; border-color: #123A5C; }
body .wrapper.atis-c .btn-primary:hover, body .wrapper.atis-c .btn-primary:focus { background: #1A5A86; border-color: #1A5A86; }
body .wrapper.atis-c .atisb-entete a .btn-primary { background: #FF902B; border-color: #FF902B; color: #1A0D02; font-weight: 700; border-radius: 10px; }
body .wrapper.atis-c .atisb-entete a .btn-primary:hover { background: #EF8030; border-color: #EF8030; }
body .wrapper.atis-c .atisb-titre h1, body .wrapper.atis-c .atisb-carte-tete h2 { color: #12283A; }
body .wrapper.atis-c .atisb-titre h1 { font-weight: 800; }

/* ---------- statuts : échelle froid -> chaud (classe atis-st-N posée par CellStatus) ---------- */
body .wrapper.atis-c .label.atis-st-0 { background: #23B7E5; color: #062A3A; }   /* Envoyée */
body .wrapper.atis-c .label.atis-st-7 { background: #4AA9E6; color: #062A3A; }   /* Message laissé */
body .wrapper.atis-c .label.atis-st-3 { background: #7F9FD6; color: #0F2F4B; }   /* Planifiée */
body .wrapper.atis-c .label.atis-st-1 { background: #E59660; color: #2A1200; }   /* Traitée */
body .wrapper.atis-c .label.atis-st-5 { background: #FF902B; color: #1A0D02; }   /* PDF envoyé */
body .wrapper.atis-c .label.atis-st-2,
body .wrapper.atis-c .label.atis-st-6 { background: #D5DEE4; color: #34495A; }   /* Annulée, Supprimée */
body .wrapper.atis-c .label.atis-st-4 { background: #B42318; color: #fff; }      /* Anomalie */
body .wrapper.atis-c .label[class*="atis-st-"] { border-radius: 10px; padding: .3em .7em; font-weight: 600; }

/* ---------- liste : cartes, filtres ---------- */
body .wrapper.atis-c .atisb-cpt, body .wrapper.atis-c .atisb-filtres, body .wrapper.atis-c .atisb-carte,
body .wrapper.atis-c .atisb-vide { border-color: #D5E0E6; border-radius: 14px; }
body .wrapper.atis-c .atisb-cpt.on { border-color: #123A5C; }
body .wrapper.atis-c .atisb-pil.on { background: #123A5C; color: #fff; border-color: #123A5C; }
body .wrapper.atis-c .atisb-filtre-actif { background: #123A5C; color: #fff; border-color: #123A5C; }
body .wrapper.atis-c .ReactTable { border-radius: 12px; overflow: hidden; border-color: #D5E0E6; background: #fff; }
body .wrapper.atis-c .ReactTable .rt-thead.-header { background: #F4F7F9; box-shadow: none; }
body .wrapper.atis-c .ReactTable .rt-thead .rt-th { font-weight: 600; color: #34495A; }

/* ---------- thermomètre de la liste ---------- */
body .wrapper.atis-c .atisc-thermo {
  background: #123A5C; color: #E9F1F2; border-radius: 16px; padding: 14px 18px 12px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
body .wrapper.atis-c .atisc-thermo-barre { display: flex; gap: 3px; height: 10px; }
body .wrapper.atis-c .atisc-thermo-barre span { flex-basis: 0; min-width: 6px; border-radius: 2px; }
body .wrapper.atis-c .atisc-thermo-barre span:first-child { border-radius: 6px 2px 2px 6px; }
body .wrapper.atis-c .atisc-thermo-barre span:last-child { border-radius: 2px 6px 6px 2px; }
body .wrapper.atis-c .atisc-thermo-zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
body .wrapper.atis-c .atisc-zone {
  font: inherit; display: flex; align-items: baseline; gap: 8px; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 4px 8px; color: #B9D0D6;
}
body .wrapper.atis-c .atisc-zone b { font-size: 24px; line-height: 1.1; color: #fff; }
body .wrapper.atis-c .atisc-zone span:last-child { font-size: 13px; }
body .wrapper.atis-c .atisc-zone-p { width: 9px; height: 9px; border-radius: 50%; flex: none; align-self: center; }
body .wrapper.atis-c .atisc-zone:hover { border-color: #3D6A8E; }
body .wrapper.atis-c .atisc-zone.on { background: #1F4F78; border-color: #FF902B; color: #fff; }
body .wrapper.atis-c .atisc-zone:focus-visible { outline: 2px solid #23B7E5; outline-offset: 1px; }
@media (max-width: 768px) {
  body .wrapper.atis-c .atisc-thermo { padding: 10px 12px; border-radius: 12px; }
  body .wrapper.atis-c .atisc-thermo-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .wrapper.atis-c .atisc-zone b { font-size: 20px; }
  /* sur téléphone le thermomètre remplace la rangée des compteurs */
  body .wrapper.atis-c .atisb-compteurs { display: none; }
}

/* ---------- fiche : barre d'avancement ---------- */
body .wrapper.atis-c .atisc-etapes { background: #fff; border: 1px solid #D5E0E6; border-radius: 14px; padding: 12px 16px; margin: -4px 0 16px; }
body .wrapper.atis-c .atisc-etapes ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
body .wrapper.atis-c .atisc-etape { display: flex; flex-direction: column; gap: 6px; }
body .wrapper.atis-c .atisc-etape-barre { height: 8px; border-radius: 4px; background: #DFE7EC; }
body .wrapper.atis-c .atisc-etape-l { font-size: 13px; color: #4A6272; }
body .wrapper.atis-c .atisc-etape.faite .atisc-etape-l { color: #12283A; }
body .wrapper.atis-c .atisc-etape.en-cours .atisc-etape-l { color: #0F2F4B; font-weight: 700; }
body .wrapper.atis-c .atisc-etape.en-cours .atisc-etape-barre { box-shadow: 0 0 0 3px #D3E8F5; }
body .wrapper.atis-c .atisc-etapes.hors-flux { background: #F4F7F9; }
body .wrapper.atis-c .atisc-etapes-note { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #34495A; }
body .wrapper.atis-c .atisc-etapes-note.alerte { color: #A32020; }

/* ---------- fiche : chronologie aux couleurs de l'échelle ---------- */
body .wrapper.atis-c .atisb-chrono-demande .atisb-point { background: #23B7E5; }
body .wrapper.atis-c .atisb-chrono-demande strong { color: #0D5F80; }
body .wrapper.atis-c .atisb-chrono-planif .atisb-point { background: #7F9FD6; }
body .wrapper.atis-c .atisb-chrono-planif strong { color: #2F4F8F; }
body .wrapper.atis-c .atisb-chrono-interv .atisb-point { background: #FF902B; }
body .wrapper.atis-c .atisb-chrono-interv strong { color: #9A4A00; }
body .wrapper.atis-c .atisb-bon { border-color: #F3D2B0; background: #FFF9F2; }
