/* Fichier: assets/css/style.css */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    min-width: 100vw;
}

#menu-toggle {
    cursor: pointer;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.list-group-item-action {
    transition: all 0.3s;
}

.rounded-circle {
    object-fit: cover;
}

.cours-item {
    cursor: pointer;
    transition: all 0.3s;
}

.cours-item:hover {
    background-color: #f8f9fa;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    font-weight: 600;
}

.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* Responsive */
@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

/* Animation pour les tooltips */
.tooltip {
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip.show {
    opacity: 1;
}

/* Style pour les tableaux */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

/* Style pour les formulaires */
.form-control {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Style pour les boutons */
.btn {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Style pour les alertes */
.alert {
    border-radius: 0.25rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}
/* Ajoutez ces règles à la fin de votre fichier CSS */

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
    /* Sidebar */
    #sidebar-wrapper {
        margin-left: -15rem;
        width: 15rem;
    }
    
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
    
    /* Contenu principal */
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
    
    /* Cartes */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Tableaux */
    .table-responsive {
        overflow-x: auto;
        display: block;
        width: 100%;
    }
    
    /* Formulaire de connexion */
    .login-container {
        padding: 0 15px;
    }
    
    /* Images de profil */
    .profile-img {
        width: 80px;
        height: 80px;
    }
    
    /* Réorganisation des éléments */
    .mobile-stack {
        flex-direction: column !important;
    }
    
    .mobile-mt-2 {
        margin-top: 0.5rem !important;
    }
}

/* Correction spécifique pour Android */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .modal-dialog {
        margin: 0.5rem auto;
    }
}