/* Styles spécifiques pour les pages élèves */

.courses-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;

}

.course-item {
    background: white;
    padding: 0.4rem;
    border-radius: 5px;
    box-shadow: 0 8px 5px rgba(124, 121, 121, 0.1);
    
    transition: transform 0.5s, box-shadow 0.9s;
}

.course-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

}

.course-info h4 {
    color: rgb(75, 129, 180);
    margin-bottom: 0rem;
    font-style: unset;
    font-size: 1rem;
    font-weight: 490;
}

.course-info p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.course-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.no-courses {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-courses h3 {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-courses p {
    color: #888;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Modal PDF */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.pdf-modal-content {
    background: black;
    border-radius: 10px;
    width: 100%;
    max-width: 2200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pdf-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pdf-modal-header h3 {
    color: #333;
    margin: 0;
    font-size: 1.4rem;
    flex: 1;
    min-width: 200px;
}

.pdf-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pdf-controls .btn {
    padding: 0rem 1rem;
    font-size: 1.2rem;
    white-space: nowrap;
}

#zoomLevel {
    background: #f8f9fa;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    color: #333;
    min-width: 60px;
    text-align: center;
}

.pdf-modal-body {
    flex: 1;
    padding: 0px;
    overflow: hidden;
}

#pdfViewer {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
    background: rgb(240, 242, 245);
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-modal {
        padding: 0.5rem;
    }

    .pdf-modal-content {
        height: 175vh;
    }

    .pdf-modal-header {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-modal-header h3 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .pdf-controls {
        justify-content: center;
    }

    .course-actions {
        flex-direction: column;
    }

    .course-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pdf-controls {
        flex-direction: column;
        width: 100%;
    }

    .pdf-controls .btn {
        width: 100%;
    }

    #zoomLevel {
        width: 100%;
    }
}

/* Animations */
.course-item {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-modal {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pdf-modal-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Loading states */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error states */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* Success states */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    border: 1px solid #c3e6cb;
    text-align: center;
}