/* Container pour gérer le scroll sur mobile */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch; /* fluidité iOS */
}

/* Table générale */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Entêtes */
table thead {
    background-color: #4f46e5; /* Indigo (cohérent avec ton thème fun) */
    color: white;
    text-align: left;
}

table th {
    padding: 12px 16px;
    font-weight: 600;
    white-space: nowrap;
}

/* Lignes */
table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb; /* gris clair */
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Alternance des lignes */
table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Hover sur desktop */
@media (hover: hover) {
    table tbody tr:hover {
        background-color: #eef2ff; /* indigo très clair */
    }
}

/* Responsive : réduire la taille des cellules */
@media (max-width: 768px) {
    table th, table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}


/* Cellule logo équipe */
.team-logo {
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre logo et nom */
}

/* Image du logo */
.team-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* rond */
    object-fit: cover;
    border: 2px solid #e5e7eb; /* petit contour gris clair */
    background-color: #f3f4f6;
}

/* Si pas d’image (initiales dans un cercle) */
.team-logo .placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    background: #4f46e5; /* Indigo */
    border: 2px solid #e5e7eb;
}
