﻿/* Styles pour les informations systÃ¨me dans le bandeau */

#system_info_wrapper {
    margin-top: 2rem;
    margin-left: 2rem;
    display: grid;
    grid-template-areas: "stack";
    width: fit-content;
}

#system_info, #system_info_hidden {
    grid-area: stack;
    font-family: 'pxlxxl', monospace;
    font-size: 1.2vw;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#system_info {
    position: relative;
    z-index: 2;
}

#system_info_hidden {
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.system_status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status_puce {
    width: 8px;
    height: 8px;
    background-color: rgba(157, 233, 193, 0.8);
    border-radius: 50%;
    display: inline-block;
}

.status_puce.blink {
    animation: blink-puce 2s ease-in-out infinite;
}

@keyframes blink-puce {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
}

.status_text {
    letter-spacing: 1px;
    color: rgba(157, 233, 193, 0.8);
    position: relative;
    animation: crt-flicker 0.15s infinite, crt-warmup 8s ease-in-out infinite;
    text-shadow: 
        0 0 2px rgba(240, 240, 240, 0.5),
        0 0 4px rgba(135, 206, 250, 0.3),
        0 0 6px rgba(135, 206, 250, 0.2);
}

.system_data {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data_icon {
    font-size: 0.5em;
    color: rgba(250, 226, 135, 0.7);
    line-height: 1;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.data_text {
    letter-spacing: 1px;
    color: rgba(250, 226, 135, 0.7);
    position: relative;
    animation: crt-flicker 0.15s infinite, crt-warmup-yellow 8s ease-in-out infinite;
    text-shadow: 
        0 0 2px rgba(250, 204, 21, 0.5),
        0 0 4px rgba(255, 215, 0, 0.3),
        0 0 6px rgba(255, 215, 0, 0.2);
}

/* Styles pour le titre de section ACTUALITÉ / ARCHIVES */
.section-title {
    font-family: 'pxlxxl', monospace;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: rgba(250, 250, 250, 1);
    text-transform: uppercase;
    text-align: left;
    padding: 0 0 30px 0;
    margin-bottom: 35px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

#main-centre {
    position: relative;
}

/* Animations CRT pour effet vieil ordinateur - Scintillement */
@keyframes crt-flicker {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    10% {
        opacity: 0.92;
        transform: translateY(0.5px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    30% {
        opacity: 0.95;
        transform: translateY(-0.3px);
    }
    40% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.90;
        transform: translateY(0.4px);
    }
    60% {
        opacity: 1;
        transform: translateY(0);
    }
    70% {
        opacity: 0.94;
        transform: translateY(-0.2px);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 0.93;
        transform: translateY(0.3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation d'Ã©chauffement pour SYSTEM ONLINE (blanc/cyan) */
@keyframes crt-warmup {
    0% {
        text-shadow: 
            0 0 2px rgba(240, 240, 240, 0.3),
            0 0 4px rgba(135, 206, 250, 0.2),
            0 0 6px rgba(135, 206, 250, 0.1);
        filter: contrast(1.0) brightness(0.95);
    }
    25% {
        text-shadow: 
            0 0 3px rgba(240, 240, 240, 0.4),
            0 0 5px rgba(135, 206, 250, 0.25),
            0 0 7px rgba(135, 206, 250, 0.15);
        filter: contrast(1.05) brightness(1.0);
    }
    50% {
        text-shadow: 
            0 0 2px rgba(240, 240, 240, 0.5),
            0 0 4px rgba(135, 206, 250, 0.3),
            0 0 6px rgba(135, 206, 250, 0.2);
        filter: contrast(1.1) brightness(1.05);
    }
    75% {
        text-shadow: 
            0 0 3px rgba(240, 240, 240, 0.4),
            0 0 5px rgba(135, 206, 250, 0.25),
            0 0 7px rgba(135, 206, 250, 0.15);
        filter: contrast(1.05) brightness(1.0);
    }
    100% {
        text-shadow: 
            0 0 2px rgba(240, 240, 240, 0.3),
            0 0 4px rgba(135, 206, 250, 0.2),
            0 0 6px rgba(135, 206, 250, 0.1);
        filter: contrast(1.0) brightness(0.95);
    }
}

/* Animation d'Ã©chauffement pour LOCAL CACHE (jaune) */
@keyframes crt-warmup-yellow {
    0% {
        text-shadow: 
            0 0 2px rgba(250, 204, 21, 0.3),
            0 0 4px rgba(255, 215, 0, 0.2),
            0 0 6px rgba(255, 215, 0, 0.1);
        filter: contrast(1.0) brightness(0.95);
    }
    25% {
        text-shadow: 
            0 0 3px rgba(250, 204, 21, 0.4),
            0 0 5px rgba(255, 215, 0, 0.25),
            0 0 7px rgba(255, 215, 0, 0.15);
        filter: contrast(1.05) brightness(1.0);
    }
    50% {
        text-shadow: 
            0 0 2px rgba(250, 204, 21, 0.5),
            0 0 4px rgba(255, 215, 0, 0.3),
            0 0 6px rgba(255, 215, 0, 0.2);
        filter: contrast(1.1) brightness(1.05);
    }
    75% {
        text-shadow: 
            0 0 3px rgba(250, 204, 21, 0.4),
            0 0 5px rgba(255, 215, 0, 0.25),
            0 0 7px rgba(255, 215, 0, 0.15);
        filter: contrast(1.05) brightness(1.0);
    }
    100% {
        text-shadow: 
            0 0 2px rgba(250, 204, 21, 0.3),
            0 0 4px rgba(255, 215, 0, 0.2),
            0 0 6px rgba(255, 215, 0, 0.1);
        filter: contrast(1.0) brightness(0.95);
    }
}
