/* Custom styles for 5-column grid layout */
.team-liste .cover {
    margin: 0 -10px;
    display: flex;
    flex-wrap: wrap;
}

.team-item {
    padding: 0 10px 30px;
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Responsive breakpoints */
@media (min-width: 576px) {
    .team-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .team-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .team-item {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Team item styling */
.team-item-cover {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.team-item-cover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.team-item-cover:hover .team-image img {
    transform: scale(1.05);
}

.team-image {
    width: 100%;
    height: 280px; /* Hauteur fixe pour le conteneur d'image */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.team-infos {
    padding: 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px; /* Hauteur minimale pour la zone d'infos */
}

.team-infos .name {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.3;
}

.team-infos .function {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.4;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    transition: all 0.3s ease;
}

.social-links li a:hover {
    background: #4f46e5;
    color: #fff;
    transform: translateY(-2px);
}
