.liste-competitions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.competition-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--lidfsg-border);
    border-left: 4px solid var(--lidfsg-light);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.competition-item:hover {
    box-shadow: 0 8px 24px rgba(0, 114, 187, 0.15);
    transform: translateY(-3px);
}

.competition-item a {
    font-family: var(--lidfsg-font-title);
    font-size: 1rem;
    font-weight: 600;
    color: var(--lidfsg-blue);
    text-decoration: none;
    line-height: 1.3;
    border-bottom: none;
}

.competition-item a:hover {
    color: var(--lidfsg-orange);
    border-bottom: none;
}

.competition-lieu,
.competition-dates {
    font-family: var(--lidfsg-font-body);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--lidfsg-muted);
    text-transform: uppercase;
}

.competition-item__disciplines {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.competition-tag {
    display: inline-block;
    background: #fdeceb;
    color: var(--lidfsg-red);
    border: 1px solid var(--lidfsg-red);
    font-family: var(--lidfsg-font-body);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.competitions-vide {
    font-style: italic;
    color: var(--lidfsg-muted);
}

.competition-liens {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.competition-badge {
    display: inline-block;
    font-family: var(--lidfsg-font-body);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: white !important;
    transition: background 0.2s;
    border: none;
}

.competition-badge--resultats {
    background: var(--lidfsg-blue);
    color: white;
}

.competition-badge--resultats:hover {
    background: #1e296e;
    color: white;
}

.competition-badge--medailles {
    background: var(--lidfsg-orange);
    color: white;
}

.competition-badge--medailles:hover {
    background: #1B3A4B;
    color: white;
}

.competition-badge--horaires {
    background: #2D7A4F;
    color: white;
}

.competition-badge--horaires:hover {
    background: #235E3C;
    color: white;
}

.competition-badge--annonce {
    background: var(--lidfsg-blue);
    color: white;
}

.competition-badge--annonce:hover {
    background: #1e296e;
    color: white;
}

.competition-badge--inscriptions {
    background: var(--lidfsg-blue);
    color: white;
}

.competition-badge--inscriptions:hover {
    background: #1e296e;
    color: white;
}

/* Boutons des cartes : fond blanc, texte et bordure de la couleur du bouton */
.competition-liens .competition-badge {
    --badge-color: var(--lidfsg-blue);
    background: white;
    color: var(--badge-color) !important;
    border: 1px solid var(--badge-color);
    padding: 2px 9px;
    transition: background 0.2s, color 0.2s;
}

.competition-liens .competition-badge--medailles {
    --badge-color: var(--lidfsg-orange);
}


.competition-liens .competition-badge:hover {
    background: var(--badge-color);
    color: white !important;
}

/* Horaires : bleu plein, texte blanc */
.competition-liens .competition-badge--horaires {
    background: var(--lidfsg-blue);
    color: white !important;
}

.competition-liens .competition-badge--horaires:hover {
    background: #1e296e;
    border-color: #1e296e;
}
