.pilot-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(22%, 2fr)); */
    grid-template-columns: 19.875% 19.875% 19.875% 19.875%;
    width: 100%;
    gap: 6.15%;
    /* padding: 20px; */
}

.pilot-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* padding: 15px; */
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    /* width: 400px; */
    width: 110%;
    height: 125px;
}



/* Effet au survol */
.pilot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

.pilot-card-photo {
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px;
    border: 2px solid #f0f0f0;
}

.pilot-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pilot-card-name {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.pilot-card-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pilot-card-best {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.best-times-list {
    overflow: scroll;
    height: 92px;
}

.best-time {
    font-weight: bold;
    color: #e74c3c;
}

.best-circuit {
    font-weight: bold;
    color: #000000;
}

.best-car-circuit {
    font-style: italic;
    font-size: 0.8rem;
}

.pilot-card-chevron {
    color: #ccc;
    font-size: 1.2rem;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.pilot-card:hover .pilot-card-chevron {
    color: #3498db;
}

.name-and-badge {
    display: flex;
    align-items: left;
    width: 200px;
    gap: 10px;
    flex-grow: 1;
    flex-direction: column;
}

.role-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

/* Couleurs par type */
.role-badge[data-role="pilote"] {
    background-color: #e3f2fd;
    color: #1976d2;
}

.role-badge[data-role="simracer"] {
    background-color: #f1f8e9;
    color: #388e3c;
}

.role-badge[data-role="mixte"] {
    background-color: #fff3e0;
    color: #f57c00;
}