/*!
Theme Name: Divi-Child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Version: 4.17.4
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* === LAYOUT PRINCIPAL  === */
.course-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.course-sidebar {
    width: 350px;
    min-width: 350px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-content {
    flex: 1;
    min-width: 0;
}

.course-info {
    /* Conteneur principal de la sidebar */
}

/* === BOUTON RETOUR === */
.back-to-formation {
    margin-bottom: 20px;
}

.back-to-formation .btn {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.2s ease;
}

.back-to-formation .btn:hover {
    background: #f8f9fa;
    border-color: #DCA54A;
    color: #DCA54A;
}

.btn {
    padding: 12px 20px;
    background: #DCA54A;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

.btn:hover {
    background: #005a87;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #DCA54A;
    color: #DCA54A;
}

.btn-outline:hover {
    background: #DCA54A;
    color: white;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* === BARRE DE PROGRESSION === */
.course-progress {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-header h4 {
    margin: 0;
    font-size: 16px;
    color: #495057;
}

.progress-header span {
    font-weight: 600;
    color: #DCA54A;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #DCA54A, #B8873A);
    transition: width 0.3s ease;
}

/* === ACCORDÉON BOOTSTRAP === */
.lesson-badge {
    background: #214561 !important;
}

.accordion-item {
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: white !important;
    border: none !important;
    font-weight: 600;
    color: #495057 !important;
    padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
    background: #DCA54A !important;
    color: white !important;
}

.accordion-button:focus {
    border: none;
}

.accordion-body {
    padding: 0 !important;
}

.accordion-header {
    /* Bootstrap class, styling handled above */
    margin-bottom: 0;
}

.accordion-collapse {
    /* Bootstrap class */
}

/* === LISTES DE LEÇONS === */
.list-group {
    /* Bootstrap class */
}

.list-group-flush {
    /* Bootstrap class */
}

.list-group-item {
    border: none !important;
    border-bottom: 1px solid #f1f3f4 !important;
    padding: 12px 20px;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-group-item:hover {
    background: #f8f9fa !important;
    color: #495057;
}

.list-group-item-action {
    /* Bootstrap class */
}

.list-group-item.active {
    background: #e3f2fd !important;
    border-left: 4px solid #DCA54A !important;
    font-weight: 600;
}

/* .list-group-item-success {
    background: #d4edda !important;
    color: #155724 !important;
} */

.lesson-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-title {
    font-weight: 500;
}

/* === CONTENU PRINCIPAL === */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.entry-content {
    /* Contenu des articles */
}

/* === NAVIGATION ENTRE LEÇONS === */
/* Navigation Leçons */
.lesson-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn-prev,
.btn-next {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: 2px solid #0073aa;
    border-radius: 8px;
    background: white;
    color: #0073aa;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 45%;
}

.btn-prev {
    text-align: left;
}

.btn-next {
    text-align: right;
    justify-content: flex-end;
}

.btn-prev:hover,
.btn-next:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.btn-prev.disabled,
.btn-next.disabled {
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-text small {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.nav-text strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-prev i,
.btn-next i {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
    }

    .btn-prev,
    .btn-next {
        max-width: 100%;
    }
}

.center-actions {
    /* Conteneur pour le bouton central */
}

/* === BOUTON MARQUER COMME TERMINÉ === */
.lesson-completion {
    margin-top: 30px;
    text-align: center;
}

.btn-complete {
    background: #28a745;
    color: white;
    font-size: 16px;
    padding: 15px 30px;
}

.btn-complete:hover {
    background: #218838;
}

.completed-badge {
    background: #d4edda;
    color: #155724;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
}

/* === CLASSES BOOTSTRAP UTILISÉES === */
.d-flex {
    /* Bootstrap utility class */
}

.w-100 {
    /* Bootstrap utility class */
}

.justify-content-between {
    /* Bootstrap utility class */
}

.align-items-center {
    /* Bootstrap utility class */
}

.me-2 {
    /* Bootstrap utility class */
}

.ms-auto {
    /* Bootstrap utility class */
}

.text-success {
    /* Bootstrap utility class */
}

.text-muted {
    /* Bootstrap utility class */
}

.p-0 {
    /* Bootstrap utility class */
}

.p-3 {
    /* Bootstrap utility class */
}

.bg-primary {
    /* Bootstrap utility class */
}

.badge {
    /* Bootstrap utility class */
}

.collapsed {
    /* Bootstrap utility class */
}

.show {
    /* Bootstrap utility class */
}

.collapse {
    /* Bootstrap utility class */
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .course-layout {
        flex-direction: column;
        padding: 15px;
    }

    .course-sidebar {
        width: 100%;
        min-width: auto;
        position: static;
    }
}

@media (min-width: 922px) {
    .ast-narrow-container .site-content>.ast-container {
        max-width: 1400px !important;
        /* Au lieu de 750px */
    }

    .course-layout {
        max-width: 1400px;
    }
}

