/* Styles pour le module de gestion des groupes */

/* Styles des cartes. */
.groupe-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.groupe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.groupe-icon {
    margin-bottom: 15px;
    margin-top: 10px;
}

.groupe-card .btn {
    border-radius: 30px;
    padding: 8px 20px;
    transition: all 0.2s;
    margin-top: 10px;
}

.groupe-card .btn:hover {
    transform: scale(1.05);
}

/* Tableaux des groupes */
.table-groupes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
}

.table-groupes th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.table-groupes td {
    padding: 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.table-groupes tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Badges de niveau */
.badge-niveau {
    display: inline-block;
    padding: 0.4em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 0.25rem;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.badge-niveau-1 {
    background-color: #28a745;
    color: white;
}

.badge-niveau-1-plus {
    background-color: #ff009d;
    color: white;
}

.badge-niveau-2 {
    background-color: #17a2b8;
    color: white;
}

.badge-niveau-3 {
    background-color: #ffc107;
    color: #212529;
}

.badge-niveau-4 {
    background-color: #dc3545;
    color: white;
}

.badge-niveau-5 {
    background-color: #b71c1c;
    color: white;
}

.badge-niveau-e {
    background-color: #6f42c1;
    color: white;
}

/* Formulaires */
.groupe-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.groupe-form .form-group {
    margin-bottom: 1rem;
}

.groupe-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Filtres et recherche */
.filters-container {
    background-color: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.search-container {
    flex-grow: 1;
    max-width: 100%;
}

.filters-container .form-group {
    margin-bottom: 0;
    min-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .filters-container .form-group {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

/* Styles pour les badges des encadrants */
.encadrants-presents .badge {
    padding: 6px 10px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
}

.encadrants-presents .badge-secondary {
    background-color: #949494;
    color: white;
}

.encadrants-presents .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}