/* ============================================
   VARIABLES CSS - THÈME NOC
   ============================================ */
:root {
    /* Couleurs Primaires */
    --bg-primary: #0a0c10;
    --bg-secondary: #12151c;
    --bg-tertiary: #1a1e28;
    --bg-widget: #151921;

    /* Couleurs d'Accent */
    --accent-green: #00ff88;
    --accent-blue: #00d4ff;
    --accent-orange: #ff9500;
    --accent-red: #ff3366;
    --accent-purple: #9d4edd;

    /* Statuts */
    --status-ok: #00ff88;
    --status-warning: #ff9500;
    --status-critical: #ff3366;
    --status-info: #00d4ff;

    /* Texte */
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Bordures & Lignes */
    --border-color: #2a2f3d;
    --border-glow: rgba(0, 255, 136, 0.3);

    /* Polices */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Espacements */
    --sidebar-width: 240px;
    --header-height: 70px;

    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-glow-green: 0 0 20px rgba(0, 255, 136, 0.4);
    --shadow-glow-blue: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.mono {
    font-family: var(--font-mono);
}

/* ============================================
   EFFET SCANLINES
   ============================================ */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanlines-move 8s linear infinite;
    opacity: 0.03;
}

@keyframes scanlines-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

/* Effet de particules animées */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(157, 78, 221, 0.02) 0%, transparent 50%);
    animation: float-particles 20s ease-in-out infinite;
}

@keyframes float-particles {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -10px) scale(1.05); }
    50% { transform: translate(-5px, 5px) scale(0.95); }
    75% { transform: translate(-10px, -5px) scale(1.02); }
}

/* ============================================
   ANIMATIONS KEYFRAMES
   ============================================ */

/* Animation d'entrée pour le header */
@keyframes slideInDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation d'entrée pour la sidebar */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation de scan sur les widgets */
@keyframes scan-line {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

/* Animation de glow pulsant */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.2),
                    0 0 10px rgba(0, 255, 136, 0.1),
                    inset 0 0 15px rgba(0, 255, 136, 0.05);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.4),
                    0 0 25px rgba(0, 255, 136, 0.2),
                    inset 0 0 25px rgba(0, 255, 136, 0.1);
    }
}

/* Animation de glow bleu */
@keyframes glow-pulse-blue {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.2),
                    0 0 10px rgba(0, 212, 255, 0.1),
                    inset 0 0 15px rgba(0, 212, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.4),
                    0 0 25px rgba(0, 212, 255, 0.2),
                    inset 0 0 25px rgba(0, 212, 255, 0.1);
    }
}

/* Animation de glitch subtile */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

/* Pulsation Verte (Lente) */
@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 5px var(--status-ok), 0 0 10px var(--status-ok);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 10px var(--status-ok), 0 0 20px var(--status-ok);
        opacity: 0.8;
    }
}

/* Pulsation Orange (Moyenne) */
@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 5px var(--status-warning), 0 0 10px var(--status-warning);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 10px var(--status-warning), 0 0 20px var(--status-warning);
        opacity: 0.8;
    }
}

/* Pulsation Rouge (Rapide) */
@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 8px var(--status-critical), 0 0 15px var(--status-critical);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 15px var(--status-critical), 0 0 30px var(--status-critical);
        opacity: 0.7;
    }
}

/* Pulsation Bleue */
@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 5px var(--status-info), 0 0 10px var(--status-info);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 10px var(--status-info), 0 0 20px var(--status-info);
        opacity: 0.8;
    }
}

/* Pulsation Violette */
@keyframes pulse-purple {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-purple), 0 0 10px var(--accent-purple);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 10px var(--accent-purple), 0 0 20px var(--accent-purple);
        opacity: 0.8;
    }
}

/* Glow effet */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    }
    50% {
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    /* Animation gérée par GSAP */
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-green);
    animation: pulse-green 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--accent-green));
    position: relative;
}

.logo-icon:hover {
    animation: pulse-green 3s ease-in-out infinite, glitch 0.3s ease-in-out;
}

.sidebar-header h2 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    opacity: 0; /* État initial pour GSAP */
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-green);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--accent-green);
}

.nav-item::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.nav-item:hover::after {
    left: 100%;
}

.nav-item:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 5px var(--accent-green));
}

.nav-item.active {
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    opacity: 0; /* État initial pour GSAP */
}

.footer-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.stat-label {
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.stat-value {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-weight: 600;
}

/* ============================================
   MAIN CONTAINER & HEADER
   ============================================ */
.main-container {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 50;
    box-shadow: var(--shadow-md);
    /* Animation gérée par GSAP */
}

/* .header-left {} */

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    opacity: 0; /* État initial pour GSAP */
}

.highlight {
    color: var(--accent-green);
    font-weight: 700;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.global-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    opacity: 0; /* État initial pour GSAP */
}

.status-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--accent-green);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow-green);
    transform: rotate(180deg);
}

.theme-icon {
    transition: transform 0.3s ease;
}

.live-clock {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5),
                 0 0 20px rgba(0, 212, 255, 0.3);
    animation: glow-pulse-blue 3s ease-in-out infinite;
    opacity: 0; /* État initial pour GSAP */
}

/* ============================================
   STATUS INDICATORS
   ============================================ */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.pulse-green {
    background: var(--status-ok);
    animation: pulse-green 2s ease-in-out infinite;
}

.pulse-orange {
    background: var(--status-warning);
    animation: pulse-orange 1.5s ease-in-out infinite;
}

.pulse-red {
    background: var(--status-critical);
    animation: pulse-red 1s ease-in-out infinite;
}

.pulse-blue {
    background: var(--status-info);
    animation: pulse-blue 2s ease-in-out infinite;
}

.pulse-purple {
    background: var(--accent-purple);
    animation: pulse-purple 2s ease-in-out infinite;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-primary);
}

/* Views */
.view {
    display: none;
    animation: fadeIn 0.5s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   WIDGETS GRID (DASHBOARD)
   ============================================ */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.widget {
    background: var(--bg-widget);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0; /* État initial pour GSAP */
}

.widget::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-green) 30%,
        var(--accent-green) 70%,
        transparent);
    box-shadow: 0 0 15px var(--accent-green),
                0 0 30px var(--accent-green);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widget:hover::before {
    opacity: 1;
    animation: scan-line 3s linear infinite;
}

.widget:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-2px) scale(1.01);
    animation: glow-pulse 2s ease-in-out infinite;
}

.widget-header {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.widget-content {
    padding: 1rem;
}

/* Host Info Widget */
.host-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-row.bio {
    flex-direction: column;
    gap: 0.4rem;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 90px;
}

.info-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Badges */
.status-badge,
.severity-badge,
.metric-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-badge:hover,
.severity-badge:hover,
.metric-badge:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.status-badge.green {
    background: rgba(0, 255, 136, 0.2);
    color: var(--status-ok);
    border: 1px solid var(--status-ok);
}

.status-badge.orange {
    background: rgba(255, 149, 0, 0.2);
    color: var(--status-warning);
    border: 1px solid var(--status-warning);
}

.status-badge.red {
    background: rgba(255, 51, 102, 0.2);
    color: var(--status-critical);
    border: 1px solid var(--status-critical);
}

.severity-badge.high {
    background: rgba(255, 51, 102, 0.2);
    color: var(--status-critical);
    border: 1px solid var(--status-critical);
}

.severity-badge.medium {
    background: rgba(255, 149, 0, 0.2);
    color: var(--status-warning);
    border: 1px solid var(--status-warning);
}

.severity-badge.low {
    background: rgba(0, 212, 255, 0.2);
    color: var(--status-info);
    border: 1px solid var(--status-info);
}

.metric-badge {
    background: rgba(0, 255, 136, 0.2);
    color: var(--status-ok);
    border: 1px solid var(--status-ok);
    animation: pulse-green 3s ease-in-out infinite;
}

/* Experience Type Badges */
.exp-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.exp-type-badge.stage {
    background: rgba(157, 78, 221, 0.2);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.exp-type-badge.alternance {
    background: rgba(0, 255, 136, 0.2);
    color: var(--status-ok);
    border: 1px solid var(--status-ok);
}

.exp-type-badge.cdd {
    background: rgba(0, 212, 255, 0.2);
    color: var(--status-info);
    border: 1px solid var(--status-info);
}

.exp-type-badge.freelance {
    background: rgba(255, 149, 0, 0.2);
    color: var(--status-warning);
    border: 1px solid var(--status-warning);
}

.exp-type-badge.projet {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

/* ============================================
   DATA TABLES
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
}

.data-table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tbody tr {
    transition: background 0.2s ease;
    cursor: pointer;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   TRIGGERS VIEW
   ============================================ */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.filter-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.triggers-container {
    background: var(--bg-widget);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.triggers-table {
    margin: 0;
}

.trigger-row {
    cursor: pointer;
}

.trigger-row:hover {
    background: rgba(0, 255, 136, 0.05) !important;
}

/* ============================================
   SERVICES VIEW
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-widget);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-2px);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-header h3 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.service-status {
    margin-bottom: 1.5rem;
}

.service-metrics {
    margin-bottom: 1.5rem;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    /* Animation gérée par GSAP - commence à 0% */
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-green);
    font-weight: 600;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

/* ============================================
   PARCOURS VIEW (TIMELINE)
   ============================================ */
.timeline-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-item .stat-value {
    font-size: 0.875rem;
    color: var(--accent-green);
    font-weight: 700;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-event {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    opacity: 1;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 40px;
    flex-shrink: 0;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
    z-index: 2;
}

.marker-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(
        to bottom,
        var(--border-color) 0%,
        var(--border-color) 100%
    );
    margin-top: 0.5rem;
    position: relative;
}

.marker-line.last {
    background: linear-gradient(
        to bottom,
        var(--border-color) 0%,
        transparent 100%
    );
}

.timeline-content {
    flex: 1;
    background: var(--bg-widget);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-green);
    transform: translateX(5px);
}

.timeline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.timeline-badge.current {
    background: rgba(0, 255, 136, 0.2);
    color: var(--status-ok);
    border: 1px solid var(--status-ok);
    animation: pulse-green 2s ease-in-out infinite;
}

.timeline-badge.completed {
    background: rgba(0, 212, 255, 0.2);
    color: var(--status-info);
    border: 1px solid var(--status-info);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.timeline-institution {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-weight: 500;
}

.institution-icon {
    font-size: 1rem;
}

.timeline-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.timeline-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
    opacity: 0.6;
}

.end-icon {
    font-size: 1.5rem;
    color: var(--accent-green);
}

.end-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

/* Animation pour l'apparition des événements */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-event {
    animation: slideInFromLeft 0.6s ease forwards;
}

/* Délais d'animation en cascade */
.timeline-event:nth-child(1) { animation-delay: 0.1s; }
.timeline-event:nth-child(2) { animation-delay: 0.2s; }
.timeline-event:nth-child(3) { animation-delay: 0.3s; }
.timeline-event:nth-child(4) { animation-delay: 0.4s; }
.timeline-event:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-container {
        padding-left: 1rem;
    }

    .timeline-event {
        gap: 1rem;
    }

    .timeline-marker {
        width: 30px;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-stats {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* ============================================
   LOGS VIEW (TERMINAL)
   ============================================ */
.terminal-container {
    background: #000000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    height: 600px;
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.1);
}

.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.terminal-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.terminal-prompt {
    color: var(--accent-green);
    font-weight: 600;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding: 0.25rem;
}

.terminal-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.log-line {
    line-height: 1.6;
    padding: 0.25rem 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-line.info {
    color: var(--accent-blue);
}

.log-line.success {
    color: var(--accent-green);
}

.log-line.warning {
    color: var(--accent-orange);
}

.log-line.error {
    color: var(--accent-red);
}

.log-line.command {
    color: var(--text-primary);
}

.control-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* ============================================
   CONTACT VIEW (ESCALATION)
   ============================================ */
.escalation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.escalation-card {
    background: var(--bg-widget);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.escalation-card.level-1:hover {
    border-color: var(--status-info);
    box-shadow: var(--shadow-glow-blue);
}

.escalation-card.level-2:hover {
    border-color: var(--status-warning);
    box-shadow: 0 0 20px rgba(255, 149, 0, 0.4);
}

.escalation-card.level-3:hover {
    border-color: var(--status-critical);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
}

.escalation-card.level-special:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
}

.escalation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.escalation-level {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.level-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
}

.level-icon.blue {
    background: rgba(0, 212, 255, 0.2);
    color: var(--status-info);
    border: 2px solid var(--status-info);
}

.level-icon.orange {
    background: rgba(255, 149, 0, 0.2);
    color: var(--status-warning);
    border: 2px solid var(--status-warning);
}

.level-icon.red {
    background: rgba(255, 51, 102, 0.2);
    color: var(--status-critical);
    border: 2px solid var(--status-critical);
}

.level-icon.purple {
    background: rgba(157, 78, 221, 0.2);
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
}

.escalation-level h3 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.escalation-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.escalation-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.method-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    color: var(--accent-green);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow-green);
    transform: translateX(5px);
}

.contact-link.critical {
    color: var(--status-critical);
}

.contact-link.critical:hover {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--status-critical);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
}

.link-icon {
    font-size: 1rem;
}

/* ============================================
   DRAWER (TIROIR POUR DÉTAILS)
   ============================================ */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
}

.drawer.active {
    pointer-events: all;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 600px;
    max-width: 90vw;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
}

.drawer-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-widget);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drawer-close:hover {
    background: var(--bg-secondary);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.drawer-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.drawer-section {
    margin-bottom: 2rem;
}

.drawer-section h3 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.drawer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.drawer-section ul {
    list-style: none;
    padding-left: 0;
}

.drawer-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.drawer-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

.drawer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-widget);
    color: var(--accent-green);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.drawer-link:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow-green);
}

/* ============================================
   LIVE CHARTS (CPU)
   ============================================ */
.live-chart-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 200px;
}

.live-chart-container canvas {
    height: 200px !important;
    max-height: 200px;
}

.chart-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
    font-family: var(--font-mono);
}

/* ============================================
   WIDGET CENTRES D'INTÉRÊTS (DASHBOARD)
   ============================================ */
.interests-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.interest-preview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.interest-preview-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border-glow);
    transform: translateX(5px);
}

.preview-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.preview-icon.tech-mini {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    animation: pulse-green 3s ease-in-out infinite;
}

.preview-icon.learning-mini {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    animation: pulse-green 3s ease-in-out infinite;
}

.preview-icon.homelab-mini {
    background: rgba(255, 149, 0, 0.1);
    border-color: var(--accent-orange);
    animation: pulse-orange 2.5s ease-in-out infinite;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.preview-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.preview-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.preview-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    /* Animation gérée par GSAP - commence à 0% */
}

.preview-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.widget-link {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}

.widget-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.5s ease;
}

.widget-link:hover::before {
    left: 100%;
}

.widget-link:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3),
                inset 0 0 15px rgba(0, 255, 136, 0.1);
}

.link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.widget-link:hover .link-arrow {
    transform: translateX(5px);
    animation: pulse-arrow 1s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% {
        transform: translateX(5px);
    }
    50% {
        transform: translateX(10px);
    }
}

/* ============================================
   INTERESTS VIEW (CENTRES D'INTERETS)
   ============================================ */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.interest-card {
    background: var(--bg-widget);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
}

.interest-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-4px);
}

.interest-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 8px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.interest-icon.tech {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    animation: pulse-green 3s ease-in-out infinite;
}

.interest-icon.opensource {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-blue);
    animation: pulse-blue 3s ease-in-out infinite;
}

.interest-icon.security {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--accent-red);
    animation: pulse-red 2s ease-in-out infinite;
}

.interest-icon.gaming {
    background: rgba(157, 78, 221, 0.1);
    border-color: var(--accent-purple);
    animation: pulse-purple 3s ease-in-out infinite;
}

.interest-icon.homelab {
    background: rgba(255, 149, 0, 0.1);
    border-color: var(--accent-orange);
    animation: pulse-orange 2.5s ease-in-out infinite;
}

.interest-icon.learning {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    animation: pulse-green 3s ease-in-out infinite;
}

.interest-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.interest-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.interest-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interest-tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.interest-tag:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.interest-stats {
    margin-top: 0.5rem;
}

.interest-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.interest-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    border-radius: 3px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Animation d'apparition des cartes */
@keyframes slideInInterest {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive pour les centres d'intérêts */
@media (max-width: 768px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }

    .interest-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .interest-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
}

/* ============================================
   SCROLLBAR CUSTOM
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   BURGER MENU
   ============================================ */
.burger-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 150;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: all 0.3s ease;
}

.burger-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow-green);
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--accent-green);
}

.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay pour le menu mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* Tablette et petits écrans desktop */
@media (max-width: 1200px) {
    .widgets-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
    }

    .widgets-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .escalation-grid {
        grid-template-columns: 1fr;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .live-chart-container {
        height: 180px;
    }

    .live-chart-container canvas {
        height: 180px !important;
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    /* Afficher le bouton burger */
    .burger-btn {
        display: flex;
    }

    /* Sidebar mobile */
    .sidebar {
        position: fixed;
        left: -240px;
        width: 240px;
        z-index: 101;
        transition: left 0.3s ease;
    }

    .sidebar.mobile-open {
        left: 0;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .sidebar.mobile-open ~ .sidebar-overlay {
        display: block;
    }

    /* Réafficher les labels sur mobile quand le menu est ouvert */
    .sidebar.mobile-open .nav-label,
    .sidebar.mobile-open .sidebar-header h2 {
        display: block;
    }

    .main-container {
        margin-left: 0;
    }

    .header {
        padding: 0 1rem 0 5rem;
    }

    .header-title {
        font-size: 0.875rem;
    }

    .header-center {
        display: none;
    }

    .live-clock {
        font-size: 0.875rem;
    }

    .content {
        padding: 1rem;
    }

    .drawer-content {
        width: 100%;
        max-width: 100%;
    }

    /* Optimisations graphiques mobile */
    .live-chart-container {
        height: 150px;
    }

    .live-chart-container canvas {
        height: 150px !important;
        max-height: 150px;
    }

    /* Tables responsive */
    .data-table {
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    /* Widgets */
    .widget {
        margin-bottom: 1rem;
    }

    .widget-header h3 {
        font-size: 0.9rem;
    }

    /* Terminal mobile */
    .terminal-container {
        height: 400px;
        font-size: 0.75rem;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
body.high-contrast {
    --bg-primary: #000000;
    --bg-secondary: #0d0f14;
    --bg-tertiary: #1a1d25;
    --bg-widget: #0f1219;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #3a3f4d;
}

body.high-contrast .scanlines {
    opacity: 0;
}

body.high-contrast .widget {
    border: 2px solid var(--border-color);
}

body.high-contrast .widget:hover {
    border-color: var(--accent-green);
}

body.high-contrast .tech-tag,
body.high-contrast .interest-tag {
    border: 2px solid var(--border-color);
    font-weight: 600;
}

body.high-contrast .status-badge,
body.high-contrast .metric-badge,
body.high-contrast .exp-type-badge {
    font-weight: 700;
    border-width: 2px;
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   WIDGET MÉTRIQUES SYSTÈME
   ============================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-green), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.metric-icon-symbol {
    font-size: 1.3rem;
    z-index: 1;
}

.metric-icon.servers {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.metric-icon.incidents {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.metric-icon.automation {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(157, 78, 221, 0.05));
    border: 1px solid rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
}

.metric-icon.uptime {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.metric-card:hover .metric-icon {
    transform: scale(1.1) rotate(5deg);
}

.metric-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 2px;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.metric-trend.up {
    color: var(--accent-green);
}

.metric-trend.down {
    color: var(--accent-orange);
}

.metric-trend.stable {
    color: var(--accent-blue);
}

.trend-arrow {
    font-size: 0.9rem;
    font-weight: 700;
}

.trend-value {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

/* Animation du pulse sur les icônes */
@keyframes metric-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
    }
}

.metric-icon.servers {
    animation: metric-pulse 3s ease-in-out infinite;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WIDGET VUE D'ENSEMBLE INFRASTRUCTURE
   ============================================ */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.overview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.overview-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.circular-progress {
    position: relative;
    width: 100px;
    height: 100px;
}

.circular-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.circular-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.circular-bar {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
    filter: drop-shadow(0 0 8px currentColor);
}

.circular-bar.cloud {
    stroke: var(--accent-blue);
}

.circular-bar.security {
    stroke: var(--accent-orange);
}

.circular-bar.monitoring {
    stroke: var(--accent-purple);
}

.circular-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.circular-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.circular-unit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 2px;
}

.overview-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animation pulse sur les jauges */
@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 16px currentColor);
    }
}

.overview-item:hover .circular-bar {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .circular-progress {
        width: 140px;
        height: 140px;
    }
}
