/**
 * Team Grid — Grille de l'equipe
 *
 * 4 colonnes desktop, 2 tablette, 1 mobile.
 * Photos carrees avec coins arrondis, effet scale au survol.
 */

/* =============================================================================
   Section
   ============================================================================= */
.team-grid {
    padding: var(--space-3xl) 0;
}

/* =============================================================================
   Grid
   ============================================================================= */
.team-grid__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

/* =============================================================================
   Item
   ============================================================================= */
.team-grid__item {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-grid__item:hover {
    transform: scale(1.04);
}

/* =============================================================================
   Photo
   ============================================================================= */
.team-grid__photo-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: var(--space-md);
}

.team-grid__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================================================
   Name & Role
   ============================================================================= */
.team-grid__name {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
}

.team-grid__role {
    font-size: var(--font-size-small);
    color: #6b6b6b;
    line-height: 1.4;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (min-width: 768px) {
    .team-grid__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid__list {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
}
