/* ==========================================================================
   VSP TECH — État des services (/etat-des-services) et avis sur le support
   Complète vsp-site.css (mêmes variables --vs-*). Préfixe : st-
   ========================================================================== */

.st-hero .container { padding-bottom: 40px; }
.st-hero h1 { margin-bottom: 10px; }
.st-updated { color: rgba(255,255,255,.7); font-size: 14px; margin: 0; }

.st-wrap { max-width: 960px; margin: 0 auto; }
.st-section { padding: 0 0 56px; }
.st-first { margin-top: -28px; position: relative; z-index: 2; }

/* Bandeau d'état global */
.st-global {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-radius: var(--vs-radius); box-shadow: var(--vs-shadow-lg);
    padding: 22px 26px; border-left: 6px solid var(--vs-success);
}
.st-global .st-ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--vs-success); }
.st-global strong { display: block; font-family: var(--vs-title); font-size: 21px; color: var(--vs-navy); line-height: 1.3; }
.st-global span { color: var(--vs-muted); font-size: 14.5px; }
.st-global.is-warning { border-left-color: #e0a100; } .st-global.is-warning .st-ico { background: #e0a100; }
.st-global.is-danger { border-left-color: #d64545; } .st-global.is-danger .st-ico { background: #d64545; }
.st-global.is-info { border-left-color: #2f7fd1; } .st-global.is-info .st-ico { background: #2f7fd1; }

.st-h2 { font-family: var(--vs-title); font-size: 22px; font-weight: 700; color: var(--vs-navy); margin: 40px 0 16px; display: flex; align-items: center; gap: 10px; }
.st-h2 i { color: var(--vs-orange); }

/* Cartes incident / maintenance */
.st-card { background: #fff; border: 1px solid var(--vs-line); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--vs-shadow); }
.st-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.st-card-title { font-family: var(--vs-title); font-size: 17.5px; font-weight: 600; color: var(--vs-navy); margin: 0; flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.st-card-title a { color: inherit !important; text-decoration: none !important; }
.st-card-title a:hover { color: var(--vs-orange-dark) !important; }
.st-meta { color: var(--vs-muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
.st-meta i { margin-right: 4px; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pill.is-success { background: #e6f6ed; color: #16733f; }
.st-pill.is-warning { background: #fff4d6; color: #8a5a00; }
.st-pill.is-danger { background: #fde8e8; color: #b02f2f; }
.st-pill.is-info { background: #e5f0fb; color: #175a96; }
.st-pill.is-neutral { background: #eef1f5; color: #5b6875; }

/* Chronologie */
.st-timeline { list-style: none; margin: 4px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--vs-line); }
.st-timeline li { position: relative; padding: 0 0 14px 4px; }
.st-timeline li:last-child { padding-bottom: 0; }
.st-timeline li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--vs-orange); }
.st-timeline strong { font-size: 14px; color: var(--vs-navy); }
.st-timeline time { color: var(--vs-muted); font-size: 12.5px; margin-left: 6px; }
.st-timeline p { margin: 3px 0 0; font-size: 14.5px; color: var(--vs-text); line-height: 1.55; overflow-wrap: anywhere; }

/* Composants + disponibilité */
.st-components { background: #fff; border: 1px solid var(--vs-line); border-radius: 14px; box-shadow: var(--vs-shadow); overflow: hidden; }
.st-comp { padding: 18px 22px; border-bottom: 1px solid var(--vs-line); }
.st-comp:last-child { border-bottom: 0; }
.st-comp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-comp-name { font-weight: 700; color: var(--vs-navy); font-size: 15.5px; }
.st-comp-desc { color: var(--vs-muted); font-size: 13px; display: block; font-weight: 400; }
.st-bars { display: flex; gap: 2px; margin: 12px 0 6px; height: 32px; align-items: stretch; }
.st-bars span { flex: 1 1 0; min-width: 0; border-radius: 2px; background: #2fbf71; }
.st-bars span.is-minor { background: #f2b705; }
.st-bars span.is-major { background: #f08a24; }
.st-bars span.is-critical { background: #d64545; }
.st-bars span.is-maintenance { background: #5aa0e6; }
.st-bars-legend { display: flex; justify-content: space-between; color: var(--vs-muted); font-size: 12.5px; gap: 8px; }
.st-bars-legend strong { color: var(--vs-navy); }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--vs-muted); font-size: 12.5px; margin-top: 10px; }
.st-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* Historique */
.st-history { background: #fff; border: 1px solid var(--vs-line); border-radius: 14px; box-shadow: var(--vs-shadow); }
.st-history-day { padding: 16px 22px; border-bottom: 1px solid var(--vs-line); }
.st-history-day:last-child { border-bottom: 0; }
.st-history-date { font-weight: 700; color: var(--vs-navy); font-size: 14px; margin-bottom: 6px; }
.st-history-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 6px 0; font-size: 14.5px; }
.st-history-item a { color: var(--vs-orange-dark) !important; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.st-history-empty { color: var(--vs-muted); font-size: 14.5px; padding: 16px 22px; margin: 0; }
.st-empty { color: var(--vs-muted); background: #fff; border: 1px dashed #cfd7e1; border-radius: 14px; padding: 18px 22px; font-size: 14.5px; }

.st-note { color: var(--vs-muted); font-size: 14px; margin-top: 26px; }

/* Avis sur le support */
.rt-card { max-width: 620px; margin: -28px auto 0; position: relative; z-index: 2; background: #fff; border-radius: var(--vs-radius); box-shadow: var(--vs-shadow-lg); padding: 28px 30px; }
.rt-sub { color: var(--vs-muted); font-size: 14.5px; margin: 0 0 18px; }
.rt-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; margin: 6px 0 4px; }
.rt-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rt-stars label { cursor: pointer; font-size: 38px; line-height: 1; color: #cfd7e1; transition: color .15s, transform .15s; }
.rt-stars label:hover, .rt-stars label:hover ~ label, .rt-stars input:checked ~ label { color: #f2a91e; }
.rt-stars input:focus-visible + label { outline: 2px solid var(--vs-orange); outline-offset: 3px; border-radius: 6px; }
.rt-stars label:active { transform: scale(.92); }
.rt-scale { display: flex; justify-content: space-between; max-width: 230px; color: var(--vs-muted); font-size: 12.5px; margin-bottom: 18px; }
.rt-card textarea { width: 100%; border: 1px solid #d5dbe3; border-radius: 10px; padding: 12px 14px; font-size: 16px; min-height: 120px; resize: vertical; }
.rt-card textarea:focus { outline: 0; border-color: var(--vs-orange); box-shadow: 0 0 0 3px rgba(230,126,34,.15); }
.rt-label { font-weight: 600; color: var(--vs-navy); display: block; margin-bottom: 6px; }
.rt-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.rt-alert { border-radius: 10px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 16px; }
.rt-alert.is-success { background: #e6f6ed; color: #16733f; }
.rt-alert.is-danger { background: #fde8e8; color: #b02f2f; }
.rt-alert.is-info { background: #e5f0fb; color: #175a96; }
.rt-done { text-align: center; padding: 8px 0; }
.rt-done i { font-size: 46px; color: var(--vs-success); }
.rt-done-stars { color: #f2a91e; font-size: 26px; letter-spacing: 2px; }

@media (max-width: 640px) {
    .st-global { padding: 18px; gap: 12px; }
    .st-global strong { font-size: 18px; }
    .st-card, .st-comp, .st-history-day { padding-left: 16px; padding-right: 16px; }
    .st-bars { gap: 1px; height: 28px; }
    .rt-card { padding: 22px 18px; margin-left: 0; margin-right: 0; }
    .rt-stars label { font-size: 34px; }
}

/* Sur téléphone : 30 derniers jours seulement (barres lisibles) */
.st-only-m { display: none; }
@media (max-width: 575px) {
    .st-bars span:nth-child(-n+60) { display: none; }
    .st-only-d { display: none; }
    .st-only-m { display: inline; }
}
