/* ========================================
   STYLES - PAGE INCIDENTS
   ======================================== */

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #2563eb;
    padding: 0.75rem 1.5rem;
    border: 2px solid #2563eb;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-subscribe:hover {
    background: #2563eb;
    color: #ffffff;
}

/* STATUT GÉNÉRAL */
.status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.status-banner.operational {
    background: #d1fae5;
    border: 2px solid #10b981;
}

.status-banner.degraded {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.status-banner.outage {
    background: #fee2e2;
    border: 2px solid #ef4444;
}

.status-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.status-banner.operational .status-icon {
    color: #10b981;
}

.status-banner.degraded .status-icon {
    color: #f59e0b;
}

.status-banner.outage .status-icon {
    color: #ef4444;
}

.status-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.status-content p {
    font-size: 0.875rem;
    color: #64748b;
}

/* SECTIONS */
.incidents-section {
    margin-bottom: 3rem;
}

.incidents-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

/* CARTES D'INCIDENTS */
.incident-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.incident-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.incident-card.active {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.incident-card.maintenance {
    border-color: #a78bfa;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

.incident-card.resolved {
    border-color: #cbd5e1;
    opacity: 0.85;
}

/* HEADER INCIDENT */
.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.incident-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.impact-modere {
    background: #fed7aa;
    color: #9a3412;
}

.impact-modere .status-dot {
    background: #f59e0b;
}

.impact-planifie {
    background: #ddd6fe;
    color: #5b21b6;
}

.impact-planifie .status-dot {
    background: #8b5cf6;
    animation: none;
}

.impact-resolu {
    background: #d1fae5;
    color: #065f46;
}

.impact-resolu .status-dot {
    background: #10b981;
    animation: none;
}

.impact-critique {
    background: #fee2e2;
    color: #991b1b;
}

.impact-critique .status-dot {
    background: #ef4444;
}

.incident-time {
    font-size: 0.875rem;
    color: #64748b;
}

/* TITRE INCIDENT */
.incident-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

/* DÉTAILS */
.incident-details {
    margin-top: 1rem;
}

.incident-details.collapsed {
    display: none;
}

.incident-details p {
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.incident-details strong {
    color: #1a202c;
    font-weight: 600;
}

/* MISES À JOUR */
.incident-updates {
    margin-top: 1.5rem;
    border-left: 3px solid #e2e8f0;
    padding-left: 1.5rem;
}

.update-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.update-item:last-child {
    margin-bottom: 0;
}

.update-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    min-width: 3rem;
    padding-top: 0.25rem;
}

.update-content {
    flex: 1;
}

.update-content strong {
    display: block;
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.update-content p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* ACTIONS */
.incident-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-calendar,
.btn-notify {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-calendar:hover,
.btn-notify:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.btn-details {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-details:hover {
    color: #1d4ed8;
}

/* HISTORIQUE */
.history-link {
    text-align: center;
    padding: 2rem 0;
}

.history-link a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.history-link a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .incident-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .incident-actions {
        flex-direction: column;
    }

    .btn-calendar,
    .btn-notify {
        width: 100%;
    }

    .update-item {
        flex-direction: column;
        gap: 0.25rem;
    }
}