/* ============================================
   PAGES D'ERREUR - WOLFY LEGION
   Styles spécifiques pour 404.html et erreur.html
   ============================================ */

/* ============================================
   VARIABLES (cohérence avec style.css)
   ============================================ */
:root {
    --primary: #8e44ad;
    --primary-dark: #6c3483;
    --primary-light: #a55de8;
    --dark: #0a0a0f;
    --dark-light: #1a1a2e;
    --white: #ffffff;
    --gray: #b0b0b0;
    --gray-dark: #6c6c6c;
    --error-red: #ff6b6b;
    --error-red-dark: #ee5a5a;
    --error-yellow: #ffd93d;
}

/* ============================================
   STRUCTURE PRINCIPALE
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

/* Effet de fond animé (optionnel) */
.error-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(142, 68, 173, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.error-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 80%, rgba(142, 68, 173, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   CONTENU
   ============================================ */
.error-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* ============================================
   ICÔNE
   ============================================ */
.error-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

/* Icône spécifique pour 404 */
.error-page-404 .error-icon {
    color: var(--primary);
}

/* Icône pour erreurs génériques */
.error-page-generic .error-icon {
    color: var(--error-red);
}

/* ============================================
   CODE D'ERREUR
   ============================================ */
.error-code {
    font-size: 8rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* Gradient spécifique pour 404 */
.error-page-404 .error-code {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(142, 68, 173, 0.3);
}

/* Gradient pour erreurs génériques */
.error-page-generic .error-code {
    background: linear-gradient(135deg, var(--error-red) 0%, var(--error-red-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================
   TITRE ET MESSAGE
   ============================================ */
.error-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.error-message {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ============================================
   BOUTONS
   ============================================ */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(142, 68, 173, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ============================================
   FORMULAIRE DE RECHERCHE
   ============================================ */
.search-form {
    margin: 30px 0;
}

.search-input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.3);
}

.search-input-group input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--white);
    outline: none;
    font-size: 0.95rem;
}

.search-input-group input::placeholder {
    color: var(--gray);
}

.search-input-group button {
    background: var(--primary);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    color: var(--dark);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-input-group button:hover {
    background: var(--primary-light);
}

/* ============================================
   LIENS RAPIDES
   ============================================ */
.error-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.error-links a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.error-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   SUPPORT (pour erreur générique)
   ============================================ */
.error-support {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.error-support p {
    margin-bottom: 15px;
    color: var(--gray);
}

.error-support p:first-child {
    font-weight: 600;
    color: var(--white);
}

.support-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Animation pour l'icône d'erreur générique */
.error-page-generic .error-icon {
    animation: shake 0.5s ease-in-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .error-code {
        font-size: 6rem;
    }
    
    .error-icon {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .error-page {
        padding: 100px 15px 60px;
    }
    
    .error-code {
        font-size: 4.5rem;
    }
    
    .error-icon {
        font-size: 3rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-message {
        font-size: 0.95rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .error-actions {
        gap: 10px;
    }
    
    .search-input-group input {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .search-input-group button {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 3.5rem;
    }
    
    .error-icon {
        font-size: 2.5rem;
    }
    
    .error-title {
        font-size: 1.3rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .error-links {
        gap: 12px;
    }
    
    .error-links a {
        font-size: 0.8rem;
    }
}

/* ============================================
   MODE SOMBRE (déjà inclus dans le thème)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .error-page {
        background: linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
    }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .error-content,
    .error-icon,
    .btn-primary,
    .btn-secondary,
    .error-links a {
        animation: none;
        transition: none;
    }
    
    .error-icon {
        animation: none;
    }
}

/* Focus visible pour la navigation clavier */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.search-input-group input:focus-visible,
.search-input-group button:focus-visible,
.error-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}