/* Conteneur de l'équipe */
.team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 100%;
    overflow: hidden;
}

/* Titre des sections (ex : Fondateurs, Webmasters) */
.team-container h2 {
    font-size: 15px;
    font-weight: bold;
    color: #003366;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

/* Conteneur des membres alignés sur la même ligne */
.team-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Conteneur de chaque membre */
.team-member {
    background: #ffffff; /* Fond blanc pour contraste */
    border: 2px solid #003366; /* Bordure bleu ciel */
    border-radius: 10px; /* Bords légèrement arrondis */
    padding: 10px; /* Moins d’espace intérieur */
    width: 120px; /* Cadre plus compact */
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Effet au survol */
.team-member:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: white;
}

/* Avatar des membres */
.team-member img {
    width: 60px; /* Avatar plus petit */
    height: 60px;
    border-radius: 50%;
    margin-bottom: 5px;
    border: 2px solid #001f3d; /* Bordure bleu ciel */
}

/* Nom des membres */
.team-member h3 {
    font-size: 14px; /* Réduction de la taille du texte */
    font-weight: bold;
    color: #003366;
    margin: 5px 0;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

/* Description des membres */
.team-member p {
    font-size: 12px; /* Texte plus petit */
    color: #666;
    margin: 5px 0;
}

/* Empêche le défilement horizontal */
body {
    overflow-x: hidden;
}

.recruitment-message {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-top: 20px;
}

.recruitment-message a {
    color: #1bb6e0;
    font-weight: bold;
    text-decoration: none;
}

.recruitment-message a:hover {
    text-decoration: underline;
}

/* 🎯 RESPONSIVE : Ajustement pour mobile */
@media screen and (max-width: 768px) {
    .team-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 colonnes, évite le dépassement */
        gap: 20px; /* Espacement réduit pour éviter le débordement */
        justify-content: center; /* Centre correctement */
        padding: 0 10px; /* Ajout de padding pour éviter le dépassement */
    }

    .team-member {
        width: 100%;
        max-width: 140px; /* Taille contrôlée */
        padding: 15px;
        box-sizing: border-box; /* Assure que le padding ne casse pas la largeur */
    }

    .team-row:has(.team-member:only-child) {
        display: flex;
        justify-content: center;
    }

    .team-member img {
        width: 70px;
        height: 70px;
    }

    .team-member h3 {
        font-size: 14px;
    }

    .team-member p {
        font-size: 13px;
    }
}
