/* ============================================
   Page d'erreur 404
   ============================================ */

.error-page {
    background: #f8fafc;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.error-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.error-hero-content {
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.error-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.error-subtitle {
    font-size: 1.05rem;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Details Section */
.error-details {
    padding: 2.5rem 0 3rem;
}

/* Info Card */
.error-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.error-info-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
}

.error-info-card h2 i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.error-reasons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-reasons li {
    padding: 0.5rem 0;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-reasons li i {
    color: #94a3b8;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.error-url {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.error-url small {
    color: #94a3b8;
    font-size: 0.8rem;
}

.error-url code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    word-break: break-all;
}

/* CTA Title */
.error-cta-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* CTA Grid */
.error-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.error-cta-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    color: inherit;
    text-decoration: none;
}

.error-cta-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 1.2rem;
}

.error-cta-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.error-cta-card p {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

/* Support Card */
.error-support-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.error-support-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.error-support-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.error-support-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.error-support-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.error-support-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 991px) {
    .error-cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .error-code {
        font-size: 5rem;
    }

    .error-hero {
        padding: 3rem 0 2rem;
    }

    .error-hero h1 {
        font-size: 1.35rem;
    }

    .error-subtitle {
        font-size: 0.95rem;
    }

    .error-cta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .error-cta-card {
        padding: 1.25rem 1rem;
    }

    .error-info-card {
        padding: 1.25rem 1.5rem;
    }

    .error-support-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .error-support-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-cta-grid {
        grid-template-columns: 1fr;
    }

    .error-code {
        font-size: 4rem;
    }
}
