/* ==========================================================================
   Vroom GPS — statut public des services : /<lang>/status.html
   Chargée après home.css. Rendu : public/js/status.js.
   ========================================================================== */

.st-section { padding: 48px 0 110px; }
.st-wrap { max-width: 900px; }

.st-incident { margin-bottom: 20px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--white); border-left: 5px solid var(--violet); color: var(--ink); }
.st-incident p { display: inline; font-weight: 600; }
.st-incident a { color: var(--violet-deep); font-weight: 700; white-space: nowrap; }
.st-incident--warning { border-left-color: #F9A825; background: #FFF8E1; }
.st-incident--error { border-left-color: #C62828; background: #FDECEA; }

.st-overall { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 20px 24px; border-radius: var(--radius-md); background: var(--white); color: var(--violet-ink); font-size: 18px; box-shadow: 0 18px 40px -28px rgba(22, 11, 46, 0.45); }
.st-overall .st-dot { width: 14px; height: 14px; border-radius: 50%; background: #B9B2C7; flex: none; }
.st-overall--ok { background: #E8F5E9; color: #1B5E20; }
.st-overall--ok .st-dot { background: #2E7D32; box-shadow: 0 0 0 5px rgba(46, 125, 50, 0.18); }
.st-overall--degraded { background: #FFF8E1; color: #7A4F01; }
.st-overall--degraded .st-dot { background: #F9A825; box-shadow: 0 0 0 5px rgba(249, 168, 37, 0.2); }
.st-overall--down { background: #FDECEA; color: #8E1C1C; }
.st-overall--down .st-dot { background: #C62828; box-shadow: 0 0 0 5px rgba(198, 40, 40, 0.18); }
.st-updated { margin-left: auto; font-size: 14px; font-weight: 500; opacity: 0.8; }

.st-legend { margin: 36px 0 12px; color: var(--ink-soft); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.st-services { list-style: none; border-radius: var(--radius-md); background: var(--white); border: 1px solid #E7DEF6; overflow: hidden; }
.st-service { padding: 18px 22px; border-bottom: 1px solid #EEE7F8; }
.st-service:last-child { border-bottom: 0; }
.st-service-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-name { font-weight: 700; color: var(--violet-ink); }
.st-state { font-size: 14px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.st-state[data-state="ok"] { color: #2E7D32; }
.st-state[data-state="degraded"] { color: #B26A00; }
.st-state[data-state="down"] { color: #C62828; }

.st-bars { display: flex; gap: 2px; height: 32px; margin-top: 12px; }
.st-bar { flex: 1; min-width: 1px; border-radius: 2px; background: #E4E0EC; }
.st-bar--ok { background: #43A047; }
.st-bar--degraded { background: #F9A825; }
.st-bar--down { background: #C62828; }
.st-service-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--ink-soft); font-size: 12.5px; }
.st-uptime { font-weight: 600; }

.st-help { margin-top: 28px; text-align: center; color: var(--ink-soft); }
.st-help a { color: var(--violet-deep); font-weight: 700; }

@media (max-width: 640px) {
    .st-service { padding: 16px; }
    .st-bars { gap: 1px; height: 28px; }
    .st-updated { margin-left: 0; width: 100%; }
}
