/* Styles spécifiques pour la page 404 */

/* Variables héritées du système existant */
.error-page {
    min-height: calc(100vh - var(--navbar-height, 120px));
    position: relative;
}

/* Hero Section 404 */
.error-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-gray, #f8f9fa) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.error-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Illustration 404 */
.error-illustration {
    text-align: center;
    position: relative;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color, #ffd700);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 
        3px 3px 0px rgba(44, 62, 80, 0.1),
        6px 6px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.error-code::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: shadow 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shadow {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
    50% { transform: translateX(-50%) scale(0.9); opacity: 0.1; }
}

.error-icon {
    font-size: 3rem;
    color: var(--text-light, #7f8c8d);
    margin-top: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Texte d'erreur */
.error-text h1 {
    color: var(--text-dark, #2c3e50);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.error-subtitle {
    font-size: 1.2rem;
    color: var(--text-light, #7f8c8d);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Suggestions d'aide */
.error-suggestions {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color, #ecf0f1);
    transition: var(--transition, all 0.3s ease);
}

.error-suggestions:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.05);
}

.error-suggestions h3 {
    color: var(--secondary-color, #2c3e50);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 2rem;
    border-bottom: 1px solid var(--border-color, #ecf0f1);
    transition: var(--transition, all 0.3s ease);
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background: var(--light-gray, #f8f9fa);
    margin: 0 -1rem;
    padding-left: 3rem;
    border-radius: 8px;
}

.suggestions-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--primary-color, #ffd700);
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition, all 0.3s ease);
}

.suggestions-list li:hover::before {
    transform: translateX(5px);
    color: var(--secondary-color, #2c3e50);
}

.suggestions-list a {
    color: var(--primary-color, #ffd700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition, all 0.3s ease);
}

.suggestions-list a:hover {
    color: var(--secondary-color, #2c3e50);
    text-decoration: underline;
}

/* Actions d'erreur */
.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Section de recherche */
.error-search {
    padding: 4rem 0;
    background: white;
    text-align: center;
    position: relative;
}

.error-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 215, 0, 0.02) 50%, transparent 52%);
}

.error-search h2 {
    color: var(--secondary-color, #2c3e50);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 600;
}

.section-subtitle {
    color: var(--text-light, #7f8c8d);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border-color, #ecf0f1);
    transition: var(--transition, all 0.3s ease);
}

.search-input-group:focus-within {
    border-color: var(--primary-color, #ffd700);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex: 1;
    padding: 1.2rem 2rem;
    border: none;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: var(--text-dark, #2c3e50);
}

.search-input::placeholder {
    color: var(--text-light, #7f8c8d);
}

.search-btn {
    padding: 1.2rem 2rem;
    background: var(--primary-color, #ffd700);
    color: var(--text-dark, #2c3e50);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    font-size: 1.1rem;
    white-space: nowrap;
}

.search-btn:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

.search-btn:active {
    transform: translateY(0);
}

/* Section produits d'erreur */
.error-products {
    padding: 4rem 0;
    background: var(--light-gray, #f8f9fa);
}

.error-products h2 {
    text-align: center;
    color: var(--secondary-color, #2c3e50);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 600;
}

.error-products .section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
}

/* Section de navigation d'erreur */
.error-navigation {
    padding: 4rem 0;
    background: white;
}

.error-navigation h2 {
    text-align: center;
    color: var(--secondary-color, #2c3e50);
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 600;
}

/* Section de contact d'erreur */
.error-contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary-color, #2c3e50) 0%, #34495e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.error-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.error-contact h2 {
    text-align: center;
    color: white;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Options de contact */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: var(--transition, all 0.3s ease);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-option:hover::before {
    left: 100%;
}

.contact-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.8rem;
    transition: var(--transition, all 0.3s ease);
}

.contact-option.whatsapp .contact-icon {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.contact-option.phone .contact-icon {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-color, #ffd700);
}

.contact-option.email .contact-icon {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.contact-option:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.contact-info p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Animations d'entrée */
.error-page section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.error-page section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .error-content {
        gap: 3rem;
    }
    
    .error-code {
        font-size: 6rem;
    }
    
    .contact-options {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .error-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-text h1 {
        font-size: 2rem;
    }
    
    .error-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input {
        border-radius: 12px 12px 0 0;
    }
    
    .search-btn {
        border-radius: 0 0 12px 12px;
        padding: 1rem 2rem;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .contact-option {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .error-hero,
    .error-search,
    .error-products,
    .error-navigation,
    .error-contact {
        padding: 3rem 0;
    }
    
    .error-suggestions {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .error-hero,
    .error-search,
    .error-products,
    .error-navigation,
    .error-contact {
        padding: 2rem 0;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-text h1 {
        font-size: 1.8rem;
    }
    
    .error-suggestions {
        padding: 1rem;
        margin: 0 -0.5rem 1.5rem -0.5rem;
    }
    
    .suggestions-list li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
    }
    
    .suggestions-list li:hover {
        margin: 0 -0.5rem;
        padding-left: 2rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .search-input,
    .search-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Performance et accessibilité */
@media (prefers-reduced-motion: reduce) {
    .error-code,
    .error-icon {
        animation: none;
    }
    
    .contact-option::before {
        display: none;
    }
    
    .error-page section {
        transition: opacity 0.3s ease;
        transform: none;
    }
}

/* Mode sombre (si implémenté) */
@media (prefers-color-scheme: dark) {
    .error-suggestions {
        background: #2c3e50;
        border-color: #34495e;
        color: white;
    }
    
    .search-input-group {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .search-input {
        color: white;
    }
    
    .search-input::placeholder {
        color: #7f8c8d;
    }
}

/* Impression */
@media print {
    .error-hero,
    .error-search,
    .error-contact {
        background: white !important;
        color: black !important;
    }
    
    .contact-option {
        background: transparent !important;
        border: 1px solid #ccc !important;
        color: black !important;
    }
    
    .error-code {
        color: #333 !important;
        text-shadow: none !important;
    }
}