.team-main {
    background-color: var(--color-taupe);
}

/* Conteneur principal */
.team {
    max-width: 1700px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

/* Conteneur de chaque personne */
.team-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--color-light);
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    width: calc(33% - 40px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-section:hover {
    transform: scale(1.05);
}

.team-section:hover img {
    opacity: 1;
}

.team-content {
    flex-grow: 1;
}

.team-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.team-content p {
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.team-content h1 {
    margin: 10px 0;
    font-size: 1.5rem;
    color: var(--font-color);
}

.team-separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Informations de contact */
.team-info {
    text-align: center;
    margin-top: 10px;
}

.team-info p {
    margin: 5px 0;
    font-weight: bold;
}

.team-info i {
    margin-right: 3px;
}

.team-info a {
    color: var(--font-color);
}

.team-button {
    display: inline-block;
    align-self: center;
    width: 150px;
    margin-top: 25px;
    padding: 10px 20px;
    background-color: var(--color-button);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.team-button:hover {
    background-color: var(--color-button-hover);
}

@media (max-width: 1440px) {
    .team {
        max-width: 1000px;
    }

    .team-section {
        width: calc(50% - 40px);
    }
}

@media (max-width: 770px) {
    .team-section {
        width: calc(80% - 40px);
    }
}

@media (max-width: 500px) {
    .team-section {
        width: 100%;
    }
}