.status-header {
    text-align: center;
    padding: 180px 20px 60px; 
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-header h1 {
    font-size: 3.8em;
    font-weight: 900;
    margin-bottom: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Gradient Text Néon */
    background: linear-gradient(135deg, #fcb49c 0%, #f85a25 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    filter: drop-shadow(0 0 30px rgba(248, 90, 37, 0.4));
    animation: titlePulse 4s ease-in-out infinite;
    letter-spacing: -1px;
}

.status-header p {
    font-size: 1.15em;
    color: rgba(252, 180, 156, 0.9);
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.6;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(248, 90, 37, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(248, 90, 37, 0.5));
    }
}

/* ==========================================
   INDICATEUR GLOBAL D'ÉTAT
   ========================================== */

.global-status {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05em;
    margin-top: 15px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    box-shadow: 
        0 0 30px rgba(16, 185, 129, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.global-status.optimal {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.5);
    color: #22d3ee;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.25);
}

.global-status.operational {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
}

.global-status.warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    box-shadow: 
        0 0 30px rgba(245, 158, 11, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.global-status.degraded {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.5);
    color: #fb923c;
    box-shadow: 0 0 30px rgba(251, 146, 60, 0.25);
}

.global-status.down {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
    box-shadow: 
        0 0 30px rgba(239, 68, 68, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.3);
    animation: globalAlert 2s infinite;
}

@keyframes globalAlert {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ==========================================
   CONTENEUR PRINCIPAL
   ========================================== */

.status-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ==========================================
   CATÉGORIES DE SERVICES
   ========================================== */

.service-category {
    margin-bottom: 60px;
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0; 
}

.service-category:nth-child(1) { animation-delay: 0.1s; }
.service-category:nth-child(2) { animation-delay: 0.2s; }
.service-category:nth-child(3) { animation-delay: 0.3s; }
.service-category:nth-child(4) { animation-delay: 0.4s; }
.service-category:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-title {
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.category-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 8px rgba(248, 90, 37, 0.4));
}

/* ==========================================
   GRILLE DE SERVICES
   ========================================== */

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ==========================================
   CARTES DE SERVICE (Design Professionnel)
   ========================================== */

.service-card {
    background: rgba(25, 25, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 32px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.service-card:hover {
    transform: translateY(-4px);
    background: rgba(30, 30, 38, 0.95);
    border-color: rgba(248, 90, 37, 0.4);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.5), 
        0 0 20px rgba(248, 90, 37, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Barre décorative latérale au hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 4px; 
    height: 100%;
    background: linear-gradient(to bottom, #f85a25, #fcb49c);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ==========================================
   INFORMATIONS DU SERVICE
   ========================================== */

.service-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.service-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.3px;
}

.service-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    flex-shrink: 0;
}

.service-meta {
    font-size: 0.88em;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge.status-hyper {
    background-color: rgba(168, 85, 247, 0.1); 
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.4);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.3), inset 0 0 8px rgba(192, 132, 252, 0.1);
}

.status-badge.status-hyper .pulse-dot {
    background-color: #d8b4fe;
    box-shadow: 0 0 8px #c084fc, 0 0 15px #c084fc; 
}

.service-meta.hyper {
    color: #c084fc;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}

.service-meta.instant { color: #22d3ee ;}
.service-meta.fast { color: #34d399; }
.service-meta.medium { color: #fbbf24; }
.service-meta.slow { color: #fb923c; }
.service-meta.down { color: #f87171; }

/* ==========================================
   BADGES D'ÉTAT
   ========================================== */

.status-badge {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.82em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

/* Pulse Dot Animation */
.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: currentColor;
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; 
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.5; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(2.8); 
        opacity: 0; 
    }
}

/* ==========================================
   COULEURS DES BADGES (États dynamiques)
   ========================================== */

.status-instant {
    background: rgba(6, 182, 212, 0.15); /* Cyan */
    color: #22d3ee;
    border: 1.5px solid rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15) inset;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

/* EN LIGNE - Vert */
.status-up {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    box-shadow: 
        0 0 18px rgba(16, 185, 129, 0.15) inset,
        0 4px 12px rgba(0, 0, 0, 0.25);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* LATENCE / DÉGRADÉ - Jaune/Orange */
.status-warn {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1.5px solid rgba(251, 191, 36, 0.5);
    box-shadow: 
        0 0 18px rgba(251, 191, 36, 0.15) inset,
        0 4px 12px rgba(0, 0, 0, 0.25);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.status-slow {
    background: rgba(251, 146, 60, 0.15); 
    color: #fb923c;
    border: 1.5px solid rgba(251, 146, 60, 0.5);
    box-shadow: 0 0 15px rgba(251, 146, 60, 0.15) inset;
    text-shadow: 0 0 8px rgba(251, 146, 60, 0.4);
}

/* HORS LIGNE - Rouge */
.status-down {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1.5px solid rgba(239, 68, 68, 0.5);
    box-shadow: 
        0 0 18px rgba(239, 68, 68, 0.15) inset,
        0 4px 12px rgba(0, 0, 0, 0.25);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    animation: borderFlash 2s infinite alternate;
}

@keyframes borderFlash {
    from { border-color: rgba(239, 68, 68, 0.5); }
    to { border-color: rgba(239, 68, 68, 0.9); }
}

/* CHARGEMENT - Gris */
.status-loading {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.status-loading .pulse-dot {
    animation: loadingSpin 1.5s linear infinite;
}

@keyframes loadingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .status-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .status-header { 
        padding-top: 140px; 
        padding-bottom: 40px;
    }
    
    .status-header h1 { 
        font-size: 2.8em; 
    }
    
    .status-header p {
        font-size: 1em;
    }
    
    .global-status {
        padding: 14px 32px;
        font-size: 0.95em;
    }
    
    .status-grid { 
        grid-template-columns: 1fr; 
        gap: 18px;
    }
    
    .category-title { 
        font-size: 1.25em; 
    }
    
    .service-card {
        padding: 22px 24px;
    }
    
    .status-badge {
        min-width: 120px;
        font-size: 0.75em;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .status-header h1 { 
        font-size: 2.2em; 
    }
    
    .service-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .status-badge {
        width: 100%;
    }
}