:root {
  --orange: #EE7203;
  --bleu: #004899;
  --bleu-clair: #A1C0E5;
  --gris: #DDDDD5;
  --rouge: #D7786A;
  --vert: #B4C82D;
  --jaune: #ECA224;
  --bg: #0a0e1a;
  --bg2: #131826;
  --bg3: #1c2336;
  --text: #e7edf7;
  --muted: #8896b2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg2);
  border-bottom: 2px solid var(--orange);
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 40px; height: 40px;
  background: var(--orange);
  color: white;
  font-weight: 900;
  font-size: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.brand h1 { margin: 0; font-size: 16px; }
.brand .sub { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.clock { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
#dateNow { font-size: 14px; }
.badge {
  background: var(--orange);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

main {
  display: flex;
  height: calc(100% - 64px);
}

#mapWrap {
  flex: 1;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
#map { display: block; width: 100%; height: 100%; }

#tooltip {
  position: absolute;
  background: rgba(19, 24, 38, 0.96);
  border: 1px solid var(--bleu);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  z-index: 10;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
#tooltip.hidden { display: none; }
#tooltip h3 { margin: 0 0 4px; font-size: 13px; color: var(--orange); }
#tooltip .row { display: flex; justify-content: space-between; margin: 2px 0; }
#tooltip .row .v { color: var(--bleu-clair); font-weight: 600; }

#zoomHint {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(19, 24, 38, 0.9);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid var(--orange);
}
#zoomHint.hidden { display: none; }
#zoomHint button {
  background: var(--orange);
  color: white;
  border: 0;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 12px;
}

#legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(161, 192, 229, 0.3);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text);
  pointer-events: none;
  z-index: 5;
}

#zoomControls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 6;
}
.zc-btn {
  width: 36px;
  height: 36px;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(161, 192, 229, 0.3);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.zc-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}
#legend .lg-title {
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
#legend .lg-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
  white-space: nowrap;
}
#legend .lg-row .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
#legend .lg-row .ring {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid #A1C0E5;
  background: var(--bg);
  display: inline-block;
}
#legend .lg-row .halo {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(215,120,106,0.7);
  background: rgba(215,120,106,0.15);
  display: inline-block;
}
#legend .lg-row .arrow-mini {
  width: 14px; height: 1.5px;
  background: linear-gradient(90deg, #EE7203, #A1C0E5);
  display: inline-block;
  position: relative;
}
#legend .lg-row .arrow-mini::after {
  content: "";
  position: absolute;
  right: -4px; top: -3px;
  border: 4px solid transparent;
  border-left-color: #A1C0E5;
  border-right: 0;
}
#legend .muted-lg {
  color: var(--muted);
  margin-top: 6px;
  font-size: 10px;
}

#sidebar {
  width: 340px;
  background: var(--bg2);
  border-left: 1px solid var(--bg3);
  overflow-y: auto;
  padding: 14px;
}

.panel {
  background: var(--bg3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.stats.small { grid-template-columns: 1fr 1fr; }
.stat {
  background: var(--bg2);
  padding: 8px;
  border-radius: 6px;
  text-align: center;
}
.stat .num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--bleu-clair);
  font-variant-numeric: tabular-nums;
}
.stats.small .stat .num { font-size: 16px; }
.stat .lbl {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.bigNum {
  text-align: center;
  padding: 8px 0;
}
.bigNum #popFrance {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.bigUnit {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.alert-stat .num {
  color: var(--rouge) !important;
}
.warn-stat .num {
  color: var(--jaune) !important;
}

.wp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 6px;
}
.wp-btn {
  background: var(--bg2);
  border: 1px solid var(--bg3);
  color: var(--text);
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}
.wp-btn:hover { background: var(--bleu); }
.wp-btn.active {
  background: var(--rouge);
  border-color: var(--rouge);
  color: white;
  animation: wpPulse 2s infinite;
}
@keyframes wpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215,120,106,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(215,120,106,0); }
}

.seir-region {
  background: var(--bg2);
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  font-size: 11px;
}
.seir-region .name {
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
}
.seir-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}
.seir-bar .s { background: var(--bleu-clair); }
.seir-bar .e { background: var(--jaune); }
.seir-bar .i { background: var(--rouge); }
.seir-bar .r { background: var(--vert); }
.seir-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

#recoList {
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.reco-item {
  background: var(--bg2);
  border-left: 3px solid var(--orange);
  padding: 6px 8px;
  margin-bottom: 4px;
  font-size: 11px;
  border-radius: 0 4px 4px 0;
}
.reco-item strong { color: var(--orange); }
.reco-item .arrow { color: var(--bleu-clair); margin: 0 4px; }
.reco-item .count {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 10px;
  margin-left: 4px;
}
.reco-item .dist {
  color: var(--muted);
  font-size: 10px;
  margin-left: 4px;
}

.bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0;
}
.barFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--vert), var(--jaune), var(--orange), var(--rouge));
  transition: width 0.3s;
}
.muted { color: var(--muted); font-size: 11px; margin: 4px 0; }

#sparkOcc {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 8px;
  background: var(--bg);
  border-radius: 4px;
}

.ctrl-row { display: flex; gap: 4px; }
.ctrl {
  flex: 1;
  background: var(--bg2);
  border: 1px solid transparent;
  color: var(--text);
  padding: 6px 0;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.ctrl.active { background: var(--bleu); border-color: var(--bleu-clair); }
.ctrl:hover:not(.active) { background: var(--bg3); }

.event {
  display: block;
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--bg3);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 6px;
  text-align: left;
  transition: background 0.15s;
}
.event:hover { background: var(--bleu); }
.event.active { background: var(--orange); border-color: var(--orange); }
.event.danger { background: var(--bg); color: var(--rouge); border-color: var(--rouge); }

#activeEvents {
  margin-top: 8px;
}
.activeTag {
  display: inline-block;
  background: var(--rouge);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  margin: 2px 4px 2px 0;
}

#log {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  font-size: 11px;
}
#log li {
  padding: 4px 6px;
  border-left: 2px solid var(--bleu);
  margin-bottom: 3px;
  background: var(--bg2);
  border-radius: 0 4px 4px 0;
}
#log li.warn { border-left-color: var(--jaune); }
#log li.alert { border-left-color: var(--rouge); }
#log li .t { color: var(--muted); font-size: 10px; }

/* ===== ICON BUTTONS ===== */
.iconBtn {
  background: var(--bg3);
  border: 1px solid transparent;
  color: var(--text);
  width: 32px; height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.iconBtn:hover { background: var(--bleu); }
.iconBtn.active { background: var(--orange); }

/* ===== TUTORIAL ===== */
#tutorial {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
#tutorial.hidden { display: none; }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

.tuto-modal {
  background: var(--bg2);
  border: 2px solid var(--orange);
  border-radius: 12px;
  padding: 32px;
  max-width: 560px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.tuto-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
}
.tuto-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg3);
}
.tuto-dot.active {
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}
.tuto-dot.done {
  background: var(--bleu-clair);
}
.tuto-content h2 {
  color: var(--orange);
  font-size: 22px;
  margin: 0 0 12px;
}
.tuto-content p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0;
}
.tuto-content ul {
  margin: 8px 0;
  padding-left: 18px;
}
.tuto-content li {
  font-size: 13px;
  margin: 4px 0;
  color: var(--text);
}
.tuto-content code {
  background: var(--bg3);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--bleu-clair);
}
.tuto-content .tuto-illu {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  background: var(--bg3);
  border-radius: 8px;
  align-items: center;
}
.tuto-content .tuto-illu .ico {
  width: 36px; height: 36px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.tuto-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.tuto-actions button {
  background: var(--bg3);
  border: 0;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.tuto-actions button.primary {
  background: var(--orange);
  color: white;
}
.tuto-actions button:hover { opacity: 0.85; }

/* ===== NEWS OVERLAY ===== */
#newsOverlay {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  pointer-events: none;
  animation: newsSlide 0.5s ease-out;
}
#newsOverlay.hidden { display: none; }
@keyframes newsSlide {
  from { transform: translateX(-50%) translateY(-30px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.news-frame {
  background: linear-gradient(135deg, rgba(10,14,26,0.97), rgba(28,35,54,0.97));
  border: 2px solid var(--orange);
  border-radius: 8px;
  min-width: 480px;
  max-width: 600px;
  box-shadow: 0 12px 40px rgba(238,114,3,0.3);
}
.news-bar {
  background: var(--orange);
  color: white;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}
.news-live {
  background: white;
  color: var(--orange);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  animation: blink 1.2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.news-title { flex: 1; text-transform: uppercase; letter-spacing: 0.5px; }
.news-time { font-size: 11px; opacity: 0.9; }
.news-body { padding: 16px 18px; }
.news-chyron {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}
.news-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.news-stats .ns {
  background: var(--bg2);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--bleu-clair);
}
.news-stats .ns strong {
  color: var(--orange);
  font-size: 14px;
  display: block;
}

/* ===== HISTORICAL ANNOTATIONS ===== */
.histAnnot {
  background: var(--bg2);
  border-left: 3px solid var(--bleu-clair);
  padding: 4px 8px;
  margin: 4px 0;
  font-size: 11px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.histAnnot:hover { background: var(--bleu); }
.histAnnot .date { color: var(--orange); font-weight: 700; }

#clinicDetail { border: 1px solid var(--orange); }

/* ===== LEFT PANEL ===== */
#leftPanel {
  width: 340px;
  background: var(--bg2);
  border-right: 2px solid var(--orange);
  padding: 14px;
  overflow-y: auto;
  transition: width 0.3s, padding 0.3s;
}
#leftPanel.hidden {
  width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}
.lp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.lp-header h2 {
  margin: 0;
  font-size: 14px;
  color: var(--orange);
  line-height: 1.3;
  flex: 1;
}
.lp-tabs {
  display: flex;
  gap: 2px;
  margin: 12px 0;
  border-bottom: 1px solid var(--bg3);
}
.lp-tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 8px 4px;
  font-size: 11px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.lp-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.lp-tab-content { padding: 4px 0; }
.act-btn.lpfull { width: 100%; margin-bottom: 4px; }

.lp-comp {
  background: var(--bg3);
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.lp-comp .name {
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.lp-comp .vals {
  font-size: 12px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}
.lp-comp .vals .v {
  color: var(--bleu-clair);
  font-weight: 700;
}
.lp-comp .mini-bar {
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.lp-comp .mini-bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--vert), var(--jaune), var(--rouge));
}

#lpKpis {
  margin-top: 8px;
}
.lp-kpi {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--bg3);
  font-size: 12px;
}
.lp-kpi .lbl { color: var(--muted); }
.lp-kpi .val { color: var(--bleu-clair); font-weight: 700; }
.lp-kpi.warn .val { color: var(--jaune); }
.lp-kpi.alert .val { color: var(--rouge); }

#lpHistChart, #lpQueueChart {
  display: block;
  width: 100%;
  background: var(--bg);
  border-radius: 4px;
  margin: 8px 0 4px;
}

/* ===== RUN SIM PANEL ===== */
.rs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 12px;
}
.rs-row label {
  color: var(--muted);
  flex: 1;
}
.rs-row select {
  flex: 2;
  background: var(--bg2);
  border: 1px solid var(--bg3);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.event.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  font-weight: 700;
}
.event.primary:hover { background: #d66200; }
.rs-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.rs-fill {
  height: 100%;
  background: var(--orange);
  width: 0%;
  transition: width 0.2s;
}

/* ===== REPORT MODAL ===== */
#reportModal {
  position: fixed;
  inset: 0;
  background: rgba(10,14,26,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow-y: auto;
  animation: fadeIn 0.3s;
}
#reportModal.hidden { display: none; }

.rep-wrap {
  background: white;
  color: #1a2540;
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.rep-header {
  background: var(--orange);
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.rep-header h2 { margin: 0; font-size: 18px; }
.rep-header .iconBtn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 0;
  width: 32px; height: 32px;
  margin-left: 4px;
}
.rep-header .iconBtn:hover { background: rgba(255,255,255,0.35); }

.rep-body {
  padding: 24px 32px;
  font-size: 13px;
  line-height: 1.5;
}
.rep-body h3 {
  color: var(--bleu);
  font-size: 16px;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange);
}
.rep-body h3:first-child { margin-top: 0; }
.rep-body .rep-meta {
  background: #f4f6fa;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}
.rep-body .rep-meta strong { color: var(--bleu); }
.rep-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.rep-stat {
  background: #f4f6fa;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}
.rep-stat .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--bleu);
  font-variant-numeric: tabular-nums;
  display: block;
}
.rep-stat.alert .num { color: var(--rouge); }
.rep-stat.warn .num { color: var(--jaune); }
.rep-stat .lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: #6b7a95;
  margin-top: 4px;
  display: block;
}
.rep-reco {
  background: #fafbfd;
  border-left: 4px solid var(--orange);
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 0 4px 4px 0;
}
.rep-reco.critical { border-left-color: #c0392b; background: #fdf3f1; }
.rep-reco.high { border-left-color: #e67e22; background: #fdf6f0; }
.rep-reco.medium { border-left-color: #f1c40f; background: #fdfaeb; }
.rep-reco .cat {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--bleu);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.rep-reco .act {
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0;
  color: #1a2540;
}
.rep-reco .det {
  font-size: 12px;
  color: #4a5775;
}
.rep-reco .meta {
  font-size: 11px;
  margin-top: 6px;
  display: flex;
  gap: 16px;
  color: #6b7a95;
}
.rep-reco .meta strong { color: #1a2540; }

.rep-chart {
  background: #f4f6fa;
  padding: 12px;
  border-radius: 6px;
  margin: 12px 0;
}
.rep-chart canvas {
  width: 100%;
  display: block;
}
.rep-footer {
  background: #f4f6fa;
  padding: 16px 24px;
  font-size: 11px;
  color: #6b7a95;
  text-align: center;
  border-top: 1px solid #e0e5ed;
}

@media print {
  body * { visibility: hidden; }
  #reportModal, #reportModal * { visibility: visible; }
  #reportModal { position: absolute; inset: 0; background: white; padding: 0; }
  .rep-wrap { box-shadow: none; max-width: 100%; }
  .rep-header { background: var(--orange) !important; -webkit-print-color-adjust: exact; }
  #repPrint, #repCsv, #repClose { display: none; }
}

.scoreWrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scoreBig {
  font-size: 42px;
  font-weight: 800;
  color: var(--vert);
  width: 70px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(180,200,45,0.4);
}
.scoreBig.warn { color: var(--jaune); text-shadow: 0 0 12px rgba(236,162,36,0.4); }
.scoreBig.bad { color: var(--orange); text-shadow: 0 0 12px rgba(238,114,3,0.4); }
.scoreBig.critical { color: var(--rouge); text-shadow: 0 0 12px rgba(215,120,106,0.5); }
.scoreBars { flex: 1; font-size: 10px; }
.scoreBar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}
.scoreBar .lbl { color: var(--muted); }
.scoreBar .v { font-weight: 700; color: var(--bleu-clair); }
.scoreBar .miniBar {
  height: 3px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1px;
}
.scoreBar .miniBar div {
  height: 100%;
  background: linear-gradient(90deg, var(--rouge), var(--jaune), var(--vert));
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.act-btn {
  flex: 1;
  background: var(--bleu);
  border: 0;
  color: white;
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.act-btn:hover { background: var(--orange); }
.act-btn:disabled { opacity: 0.4; cursor: not-allowed; }
