/* Ex-bloc <style> de status.html (lot 21, CSP sans 'unsafe-inline'). */
.status-hero {
  text-align: center;
  padding: 60px 0 40px;
}
.status-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

/* Badge statut principal */
.global-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 18px 0 8px;
  transition: background .3s;
}
.global-badge.ok      { background: rgba(34,197,94,.12); color: #22c55e; border: 1.5px solid rgba(34,197,94,.3); }
.global-badge.warn    { background: rgba(245,158,11,.12); color: #f59e0b; border: 1.5px solid rgba(245,158,11,.3); }
.global-badge.down    { background: rgba(239,68,68,.12);  color: #ef4444; border: 1.5px solid rgba(239,68,68,.3); }
.global-badge.loading { background: var(--bg-secondary);  color: var(--text-muted); border: 1.5px solid var(--border); }
.pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.8); }
}

/* Cards */
.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  
  -webkit-
}
.status-card h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--text);
  border: none;
  padding: 0;
}

/* Tableau services */
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.service-row:last-child { border-bottom: none; }
.service-name { font-weight: 500; }
.service-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-ok      { background: rgba(34,197,94,.12);  color: #22c55e; }
.pill-warn    { background: rgba(245,158,11,.12); color: #f59e0b; }
.pill-down    { background: rgba(239,68,68,.12);  color: #ef4444; }
.pill-loading { background: var(--bg-secondary);  color: var(--text-muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Uptime bar 30 jours */
.uptime-bar-wrap {
  display: flex;
  gap: 3px;
  margin: 14px 0 8px;
  height: 32px;
  align-items: stretch;
}
.uptime-day {
  flex: 1;
  border-radius: 3px;
  cursor: default;
  position: relative;
  min-width: 3px;
}
.uptime-day.ok   { background: #22c55e; }
.uptime-day.down { background: #ef4444; }
.uptime-day.warn { background: #f59e0b; }
.uptime-day.no-data { background: var(--bg-secondary); }
.uptime-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.uptime-pct {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.uptime-pct span { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }

/* Graphe temps de réponse */
.response-chart {
  width: 100%;
  height: 80px;
  position: relative;
  margin: 10px 0 6px;
}
.response-chart canvas { width: 100% !important; height: 80px !important; }
.response-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.response-stat { font-size: 12px; color: var(--text-muted); }
.response-stat strong { color: var(--text); }

/* Incidents */
.incident-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.incident-item:last-child { border-bottom: none; }
.incident-date { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.incident-title { font-weight: 600; margin-bottom: 3px; }
.incident-desc { color: var(--text-muted); line-height: 1.5; }
.incident-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.badge-resolved { background: rgba(34,197,94,.15); color: #22c55e; }
.badge-ongoing  { background: rgba(239,68,68,.15);  color: #ef4444; }

.no-incident {
  text-align: center;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.no-incident .icon { font-size: 2rem; display: block; margin-bottom: 8px; }

.refresh-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* SLA summary */
.sla-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.sla-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease;
}
.sla-box:hover {
  transform: translateY(-2px);
  border-color: rgba(245,158,11,.2);
}
.sla-box .val { font-size: 20px; font-weight: 800; color: var(--accent); }
.sla-box .lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

@media (max-width: 768px) {
  .site-header .container { flex-wrap: wrap; gap: 8px; }
  .site-header nav { gap: 12px; font-size: 12px; flex-wrap: wrap; }
  .status-hero { padding: 36px 0 24px; }
  .status-hero h1 { font-size: 1.5rem; }
  .global-badge { font-size: .9rem; padding: 10px 20px; }
  .status-card { padding: 18px 16px; }
  .sla-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sla-box .val { font-size: 16px; }
  .response-stats { gap: 12px; }
  .service-row { font-size: 13px; }
}
@media (max-width: 480px) {
  .site-header nav { gap: 8px; font-size: 11px; }
  .sla-grid { grid-template-columns: 1fr; }
}

