:root {
    --primary: #00d2ff; /* Bleu électrique plus vif */
    --accent: #0044cc;
    --dark: #050a18;
    --glass: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--dark);
    font-family: 'Poppins', sans-serif;
    color: white;
    height: 100vh;
    overflow: hidden;
}

/* --- FOND ANIMÉ (EFFET ESPACE/TECH) --- */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    z-index: -1;
}

/* --- MISE EN PAGE --- */
.error-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
}
.logo span { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

/* --- LE GLITCH 404 --- */
.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 12rem;
    font-weight: 900;
    position: relative;
    color: white;
    text-shadow: 0.05em 0 0 rgba(255, 0, 85, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(255, 0, 85, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(255, 0, 85, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75); }
    100% { text-shadow: -0.025em 0 0 rgba(255, 0, 85, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75); }
}

/* --- TITRE ET TEXTE --- */
.neon-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: white;
    text-shadow: 0 0 20px var(--primary);
    margin-bottom: 10px;
}

.error-desc {
    max-width: 500px;
    text-align: center;
    color: #a8b2d1;
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- BOUTONS --- */
.action-grid {
    display: flex;
    gap: 20px;
}

.btn-neon {
    padding: 15px 40px;
    background: var(--primary);
    color: var(--dark);
    text-decoration: none;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 0 0 20px var(--primary);
    transition: 0.3s;
}

.btn-neon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--primary);
}

.btn-glass {
    padding: 15px 40px;
    background: var(--glass);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- FOOTER --- */
.error-footer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .glitch { font-size: 7rem; }
    .neon-title { font-size: 1.5rem; }
    .action-grid { flex-direction: column; width: 100%; }
    .btn-neon, .btn-glass { text-align: center; }
}