/* ========================================
   NAVIGATION DES CHAPITRES
   ======================================== */

/* Navigation séquentielle en haut */
.chapter-sequential-navigation {
    margin: 2rem 0;
    padding: 0;
}

.navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Boutons de navigation */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #E4B600 0%, #FFD700 100%);
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #CC0000;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(204, 0, 0, 0.2);
    min-width: 200px;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(204, 0, 0, 0.3);
    text-decoration: none;
}

.nav-btn.disabled {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-btn.disabled:hover {
    background: #f8f9fa;
    color: #6c757d;
    transform: none;
    box-shadow: 0 2px 4px rgba(204, 0, 0, 0.2);
}

.nav-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Bouton retour au dossier (centré) */
.navigation-actions {
    text-align: center;
}

.navigation-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #E4B600;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(204, 0, 0, 0.3);
}

.navigation-actions .btn:hover {
    background: linear-gradient(135deg, #990000 0%, #CC0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(204, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

/* Navigation en bas de page */
.dossier-chapters-navigation-bottom {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #E4B600 0%, #FFD700 100%);
    border-radius: 10px;
    border: 2px solid #CC0000;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
}

.chapters-navigation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chapters-navigation-header .chapters-title {
    font-size: 1.5rem;
    color: #000000;
    margin: 0;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Liste des chapitres */
.chapters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 6px;
    border: 2px solid #E4B600;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    border-color: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(204, 0, 0, 0.2);
}

.chapter-item.current-chapter {
    background: #CC0000;
    color: white;
    border-color: #E4B600;
}

.chapter-number {
    background: #E4B600;
    color: #000000;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.chapter-item.current-chapter .chapter-number {
    background: #E4B600;
    color: #000000;
}

.chapter-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.chapter-item.current-chapter .chapter-link {
    color: white;
}

.chapter-link:hover {
    color: #CC0000;
    text-decoration: none;
}

.chapter-item.current-chapter .chapter-link:hover {
    color: #E4B600;
}

.current-indicator {
    font-size: 0.8rem;
    color: #E4B600;
    font-weight: 600;
}

/* Navigation en bas - 3 boutons répartis */
.bottom-navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.bottom-navigation-controls .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid;
    min-width: 150px;
    justify-content: center;
}

.bottom-navigation-controls .btn-secondary {
    background: linear-gradient(135deg, #E4B600 0%, #FFD700 100%);
    color: #000000;
    border-color: #CC0000;
    box-shadow: 0 2px 4px rgba(204, 0, 0, 0.2);
}

.bottom-navigation-controls .btn-secondary:hover {
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(204, 0, 0, 0.3);
    text-decoration: none;
}

.bottom-navigation-controls .btn-primary {
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    color: white;
    border-color: #E4B600;
    box-shadow: 0 2px 4px rgba(204, 0, 0, 0.3);
}

.bottom-navigation-controls .btn-primary:hover {
    background: linear-gradient(135deg, #990000 0%, #CC0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(204, 0, 0, 0.4);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navigation-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .bottom-navigation-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bottom-navigation-controls .btn {
        width: 100%;
        min-width: auto;
    }
    
    .chapters-list {
        flex-direction: column;
        align-items: center;
    }
    
    .chapter-item {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .dossier-chapters-navigation-bottom {
        padding: 1.5rem;
    }
    
    .nav-btn {
        padding: 0.75rem 1rem;
    }
    
    .nav-text {
        align-items: center;
    }
    
    .nav-label {
        font-size: 0.8rem;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
}
