/* =========================================================================
   PAGES STATIQUES (404, À propos, Aide, Contact, etc.)
   ========================================================================= */

/* --- 1. PAGE 404 --- */
html.error-404, body.error-404 {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
body.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
body.error-404 .site-header, 
body.error-404 footer {
    display: none !important;
}
.error-page-container {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 600px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.error-page-container h1 {
    font-size: 7rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.error-page-container h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.9;
}
.error-page-container p {
    margin-bottom: 2.5rem;
    opacity: 0.8;
    font-size: 1.1rem;
}

/* --- 2. PAGES DE CONTENU STATIQUE (À propos, Contact, etc.) --- */
.static-page-content { 
    max-width: 800px; 
    margin: -3rem auto 4rem auto; 
    position: relative; 
    z-index: 10; 
    background: white; 
    padding: 3rem; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
}
.static-page-content h2 { 
    font-size: 1.8rem; 
    margin-top: 2.5rem; 
    margin-bottom: 1rem; 
    color: #667eea; 
    border-bottom: 2px solid #f0f2f5; 
    padding-bottom: 10px; 
}
.static-page-content p { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    margin-bottom: 1.5rem; 
    color: #4a5568; 
}
.static-page-content strong { 
    color: #2d3748; 
}

/* --- 3. PAGE CENTRE D'AIDE --- */
html {
    scroll-padding-top: 100px;
}
.help-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}
.help-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f2f5;
    transition: transform 0.2s;
}
.help-card h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.help-icon {
    background: #e0e7ff;
    color: #667eea;
    width: 40px; 
    height: 40px;
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.2rem;
}

/* Timeline Inscription */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}
.steps-container::before {
    content: '';
    position: absolute;
    top: 15px; bottom: 0; left: 18px;
    width: 2px;
    background: #f0f2f5;
    z-index: 0;
}
.step-item {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.step-number {
    flex-shrink: 0;
    width: 38px; height: 38px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    border: 4px solid white;
}
.step-content {
    padding-top: 5px;
    flex-grow: 1;
}
.step-content strong {
    display: block;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 5px;
}
.step-content p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}
.badge-role {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid currentColor;
    display: inline-block;
}

/* Sidebar Aide */
.help-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f2f5;
}
.help-nav-link {
    display: block;
    padding: 10px 15px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    margin-bottom: 5px;
}
.help-nav-link:hover {
    background: #f7fafc;
    color: #667eea;
    transform: translateX(5px);
}
.help-nav-link.active {
    background: #e0e7ff;
    color: #667eea;
    font-weight: 700;
}

/* Responsive Aide */
@media (max-width: 900px) {
    .help-layout { grid-template-columns: 1fr; }
    .help-sidebar { position: static; margin-bottom: 2rem; }
    .steps-container::before { display: none; }
}


/* =========================================================================
   SURCHARGES POUR LE THÈME HALLOWEEN (Pages Statiques)
   ========================================================================= */
body.theme-halloween .static-page-content {
    background: rgba(45, 20, 68, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 122, 0, 0.4) !important;
}
body.theme-halloween .static-page-content h2 {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 122, 0, 0.4) !important;
}
body.theme-halloween .static-page-content p,
body.theme-halloween .static-page-content strong {
    color: #e9d5ff !important;
}

body.theme-halloween .help-card {
    background: rgba(45, 20, 68, 0.85) !important;
    border: 1px solid rgba(255, 122, 0, 0.4) !important;
}
body.theme-halloween .help-card h2,
body.theme-halloween .step-content strong {
    color: #ffffff !important;
}
body.theme-halloween .step-content p {
    color: #d8b4fe !important;
}
body.theme-halloween .help-sidebar {
    background: rgba(45, 20, 68, 0.85) !important;
    border: 1px solid rgba(255, 122, 0, 0.4) !important;
}
body.theme-halloween .help-nav-link {
    color: #e9d5ff !important;
}
body.theme-halloween .help-nav-link.active,
body.theme-halloween .help-nav-link:hover {
    background: rgba(255, 122, 0, 0.2) !important;
    color: #FF7A00 !important;
}