/* ==========================================================================
   404 ERROR — Page-Specific Styles
   ========================================================================== */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.error-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.error-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.error-code {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(120px, 25vw, 200px);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.error-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.error-description {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-btn-primary {
    background: #171717;
    color: white;
}

.error-btn-primary:hover {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.error-btn-secondary {
    background: white;
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
}

.error-btn-secondary:hover {
    border-color: var(--gray-900);
    transform: translateY(-2px);
}

.error-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.error-links p {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.error-links-list {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}


.error-links-list a:hover {
    color: var(--accent);
}

/* Particules flottantes */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; }
.particle:nth-child(3) { left: 70%; top: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 80%; top: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; top: 80%; animation-delay: 4s; }
.particle:nth-child(6) { left: 30%; top: 40%; animation-delay: 5s; }

@keyframes particle-float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.6; }
}

@media (max-width: 768px) {
    .error-actions {
        flex-direction: column;
    }

    .error-btn {
        width: 100%;
        justify-content: center;
    }
}
