/* =========================================================================
   [ N3XUS DEEP-SLEEP ENGINE ]
   ========================================================================= */

/* L'état d'apnée appliqué au site quand le screensaver s'active */
body.n3xus-is-sleeping .os-viewport {
    transform: scale(0.97);
    filter: blur(10px) brightness(0.2);
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

body .os-viewport {
    transition: all 0.4s ease-out; /* Vitesse de réveil (très rapide) */
}

/* L'Overlay du Screensaver */
#n3xus-deepsleep-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 5, 8, 0.95);
    z-index: 2147483647; /* Au-dessus de TOUT */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

#n3xus-deepsleep-overlay.n3xus-idle-active {
    opacity: 1;
    pointer-events: auto;
}

/* Le Canvas Matrix en fond */
#n3xus-deepsleep-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

/* Le contenu Central */
.n3xus-deepsleep-content {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: 'Inter', 'Orbitron', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.ds-status {
    color: #ff2851;
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.ds-cipher {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.1em;
    margin: 0;
    text-shadow: 0 0 30px rgba(255, 40, 81, 0.5);
}

.ds-pulse-line {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ds-pulse-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: #ff2851;
    box-shadow: 0 0 15px #ff2851;
    animation: ds-sweep 2.5s infinite ease-in-out;
}

@keyframes ds-sweep {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(350%); }
}

.ds-hint {
    color: #475569;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    animation: ds-blink 2s infinite;
}

@keyframes ds-blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}