/* CSS moderne pour menu-lessons.css */

main {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-bottom: 5rem;
}

/* Section titre */
.current-title {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 3rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.current-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.current-title h1, .current-title p {
    position: relative;
    z-index: 2;
}

.current-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.current-title p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* Wrapper container */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Bouton retour amélioré */
.retour-container {
    width: 100%;
    max-width: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.bouton-retour {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.bouton-retour:hover {
    background: linear-gradient(45deg, #1a3569, #245288);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.5);
}

.bouton-retour i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Menu des leçons modernisé */
.lesson-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 800px;
}

.lesson {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.lesson::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
}

.lesson:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.lesson h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lesson h3::first-letter,
.lesson p::first-letter {
    text-transform: uppercase;
}

.lesson p {
    margin: 0;
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Styles pour les leçons verrouillées */
.lesson.locked {
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
    pointer-events: none;
    background: #f8f9fa;
}

.lesson.locked::before {
    background: linear-gradient(45deg, #6c757d, #adb5bd);
}

.lesson.locked h3 {
    color: #6c757d;
}

.lesson.locked p {
    color: #adb5bd;
}

.lock-icon {
    font-size: 1.2rem;
    color: #dc3545;
    cursor: pointer;
    pointer-events: auto;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.lock-icon:hover {
    transform: scale(1.1);
}

.lock-info {
    font-size: 0.8em;
    color: #d32f2f;
    margin-top: 5px;
}

/* Styles pour les modales améliorées */
.lock-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.lock-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #adb5bd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #dc3545;
}

.modal-title {
    margin-top: 0;
    color: #dc3545;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-message {
    margin-top: 15px;
    line-height: 1.6;
    color: #495057;
    font-size: 1rem;
}

/* Pagination modernisée */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 0.5rem;
    padding: 0 2rem;
}

.pagination a {
    text-decoration: none;
    color: #1e3c72;
    background-color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(30, 60, 114, 0.1);
}

.pagination a.active {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.pagination a:hover:not(.active) {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .current-title h1 {
        font-size: 2rem;
    }
    
    .current-title p {
        font-size: 1.1rem;
    }
    
    .wrapper {
        padding: 1rem;
    }
    
    .lesson-menu {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lesson {
        padding: 1.5rem;
    }
    
    .lock-modal-content {
        margin: 20% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .pagination a {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .current-title {
        padding: 2rem 0;
    }
    
    .current-title h1 {
        font-size: 1.8rem;
    }
    
    .bouton-retour {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .lesson h3 {
        font-size: 1.2rem;
    }
    
    .lesson p {
        font-size: 0.9rem;
    }
}