/* ========================================
   css/pages.css - Styles spécifiques aux pages
======================================== */

/* =================================
   PAGE TRANSITIONS
================================= */

.page-container {
    opacity: 1;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.page-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

.page-container.fadeOut {
    opacity: 0;
    transform: translateY(-20px);
}

/* =================================
   PAGE HEADERS
================================= */

.page-header {
    text-align: center;
    margin-bottom: var(--space-12);
    padding: var(--space-8) 0;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}
.page-breadcrumb .breadcrumb-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    padding: var(--space-1) 0;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.2s ease;
}
.page-breadcrumb .breadcrumb-link:hover {
    text-decoration: underline;
    color: var(--primary-light);
}

/* =================================
   CONTENT SECTIONS
================================= */

.content-section {
    margin-bottom: var(--space-12);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.content-actions {
    display: flex;
    gap: var(--space-3);
}

/* =================================
   DEMO PAGES SPECIFIQUES
================================= */

.demo-page {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
}

.demo-header {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(124, 58, 237, 0.1) 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: var(--space-8) 0;
}

.demo-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.demo-content {
    flex: 1;
    padding: var(--space-8) 0;
}

.demo-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-6) 0;
}

/* =================================
   ERROR PAGES
================================= */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: var(--space-16);
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.error-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 500px;
}

.error-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

/* =================================
   LOADING STATES
================================= */

.loading-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =================================
   RESPONSIVE PAGES
================================= */

@media (max-width: 768px) {
    .page-header {
        padding: var(--space-6) 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .demo-title {
        font-size: 2rem;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .content-actions {
        width: 100%;
        justify-content: center;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}