/* Styles pour l'affichage des informations de course */
.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin-bottom: 0;
}

.info-item {
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-label {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-label i {
    color: #00504B;
}

.info-value {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

/* Pour chaque "sous-valeur" qu'on affiche dans un même bloc */
.sub-value {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.5rem;
}

/* Icone info */
.info-icon {
    font-size: 0.8rem;
    cursor: pointer;
    color: #00504B;
}

/* Couleurs pour le badge des partants */
.runners-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.runners-badge.low {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.runners-badge.high {
    background-color: #fff3e0;
    color: #e65100;
}

/* Pour la 2e ligne */
.info-grid-secondary {
    margin-top: 0.5rem;
}

/* Troncature du texte (ex: libellé trop long) */
.truncate-text {
    max-width: 120px; /* Ajuste la largeur max selon ta mise en page */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-grid {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .info-item {
        flex: 1 1 calc(50% - 0.5rem);
        font-size: 0.7rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .truncate-text {
        max-width: 80px;
    }
}
