/* CONTENEUR GLOBAL */
.event-list.cd-tile-h {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 960px;
    margin: 0 auto 40px;
    color: #123047;
    padding: 0 10px;
    overflow-x: hidden; /* sécurité anti-scroll horizontal */
}

/* TABLE */
.event-list.cd-tile-h .cd-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem; /* un peu plus serré */
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 40, 80, 0.12);
    border-radius: 0;
}

/* EN-TÊTES */
.event-list.cd-tile-h .cd-table-header {
    background: linear-gradient(135deg, #0074BC, #4fa7e2);
    color: #ffffff;
    text-align: left;
    padding: 10px 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

/* CELLULES */
.event-list.cd-tile-h .cd-table-value {
    padding: 8px 14px;
    border-bottom: 1px solid #e1ecf7;
    background: #ffffff;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word; /* évite tout débordement de texte */
}

/* DATE (colonne QUAND) */
.event-list.cd-tile-h .cd-table-date {
    font-weight: 600;
    color: #0074BC;
    white-space: normal;          /* plus de nowrap → ça peut passer à la ligne */
    overflow-wrap: anywhere;
}

/* COLONNE OBJET : texte + pastille sur 2 lignes */
.event-list.cd-tile-h .cd-tr-value td:nth-child(2) {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

/* ALTERNANCE */
.event-list.cd-tile-h .cd-tr-value:nth-child(even) .cd-table-value {
    background: #f2f7fc;
}

/* SURVOL */
.event-list.cd-tile-h .cd-tr-value:hover .cd-table-value {
    background: #e6f3ff;
}

/* --- ÉTIQUETTES --- */

/* Style général de la pastille (ENTRAÎNEMENT / COMPÉTITION) */
.event-list.cd-tile-h .cd-table-value-detail {
    display: block;        /* force la pastille sur la ligne suivante */
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;       /* petit espace sous "Kids" / "Ados" */
    font-weight: 600;
}

/* Pastille point avant le texte */
.event-list.cd-tile-h .cd-table-value-detail::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    display: inline-block;
    background: currentColor;
    border-radius: 50%;
}

/* Étiquette ENTRAÎNEMENT */
.event-list.cd-tile-h .cd-table-value-detail:contains("Entraînement"),
.event-list.cd-tile-h .cd-table-value-detail:contains("ENTRAÎNEMENT") {
    background: rgba(0, 116, 188, 0.12);
    color: #0074BC;
}

/* Étiquette COMPÉTITION */
.event-list.cd-tile-h .cd-table-value-detail:contains("Compétition"),
.event-list.cd-tile-h .cd-table-value-detail:contains("COMPÉTITION") {
    background: rgba(0, 52, 92, 0.15);
    color: #00345C;
}

/* BOUTON “Autres entrées” */
.event-list.cd-tile-h .cd-detailPageNavigation {
    text-align: right;
    margin-top: 14px;
}

.event-list.cd-tile-h .cd-detailPageNavigation .cd-button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid #0074BC;
    color: #0074BC;
    background: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.85rem;
    transition: 0.2s ease;
    text-decoration: none;
}

.event-list.cd-tile-h .cd-detailPageNavigation .cd-button:hover {
    background: #0074BC;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 116, 188, 0.35);
}

/* PETITS ÉCRANS : léger resserrage */
@media (max-width: 480px) {
    .event-list.cd-tile-h .cd-table table {
        font-size: 0.85rem;
    }

    .event-list.cd-tile-h .cd-table-header,
    .event-list.cd-tile-h .cd-table-value {
        padding: 6px 10px;
    }
}
