/* Intro Glitch / Hologram */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(27,172,255,0.1) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 5000;
    overflow: hidden; 
}

/* Effet scanlines sur le fond */
#intro-screen::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.05) 0px,
            rgba(255,255,255,0.05) 1px,
            transparent 2px,
            transparent 4px
    );
    animation: scanlines 1s linear infinite;
    pointer-events: none;
}

@keyframes scanlines {
    from { background-position: 0 0; }
    to { background-position: 0 4px; }
}

/* Logo image glitch */
#intro-logo-img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
    position: relative;
    animation: logoGlitch 2s infinite;
}


/* Texte glitch */
#intro-logo-text {
    font-family: 'HACKED', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-yellow);
    position: relative;
    animation: glitchText 1.5s infinite;
    text-shadow: 0 0 10px var(--neon-yellow), 0 0 20px var(--neon-yellow);
}

#intro-logo-text::before,
#intro-logo-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

#intro-logo-text::before {
    color: var(--neon-cyan);
    transform: translate(-2px, -2px);
    clip-path: inset(0 0 50% 0);
    animation: glitchBefore 2s infinite;
}

#intro-logo-text::after {
    color: var(--neon-red);
    transform: translate(2px, 2px);
    clip-path: inset(50% 0 0 0);
    animation: glitchAfter 1.5s infinite;
}

@keyframes glitchText {
    0% { transform: none; }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    60% { transform: none; }
    80% { transform: skew(-1deg); }
    100% { transform: none; }
}

@keyframes glitchBefore {
    0% { clip-path: inset(0 0 50% 0); }
    50% { clip-path: inset(10% 0 40% 0); }
    100% { clip-path: inset(0 0 50% 0); }
}

@keyframes glitchAfter {
    0% { clip-path: inset(50% 0 0 0); }
    50% { clip-path: inset(60% 0 0 0); }
    100% { clip-path: inset(50% 0 0 0); }
}

/* Disparition */
.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}


/* Contenu principal masqué au départ */
#main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

/* Quand l’intro est terminée */
#main-content.visible {
    opacity: 1;
}
