.stc-renc {
    --stc-renc-accent: #ec4613;
    --stc-renc-domicile: #15803d;
    --stc-renc-exterieur: #6b7280;
    --stc-renc-gap: 20px;
    --stc-renc-par-page: 4;
}

/* ─── Éléments communs ─────────────────────────────────────────────────────── */

.stc-renc-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 72px;
    height: 72px;
}

.stc-renc-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.stc-renc-logo.is-vide {
    border-radius: 50%;
    background: #e5e7eb;
    color: #4b5563;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .03em;
}

.stc-renc-lieu {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    color: #fff;
    background: var(--stc-renc-exterieur);
}

.is-domicile .stc-renc-lieu {
    background: var(--stc-renc-domicile);
}

.stc-renc-equipe {
    font-weight: 700;
}

.stc-renc-details {
    font-size: 13px;
    opacity: .75;
}

.stc-renc-empty {
    font-style: italic;
}

/* ─── Cartes (carrousel) ───────────────────────────────────────────────────── */

.stc-renc-cartes {
    position: relative;
}

.stc-renc-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--stc-renc-par-page) - 1) * var(--stc-renc-gap)) / var(--stc-renc-par-page));
    gap: var(--stc-renc-gap);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.stc-renc-track::-webkit-scrollbar {
    display: none;
}

.stc-renc-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #242424;
    text-align: center;
    scroll-snap-align: start;
    transition: box-shadow .2s ease;
}

.stc-renc-card:hover {
    box-shadow: 0 0 10px #b5b3b3;
}

.stc-renc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: var(--stc-renc-accent);
    color: #fff;
}

.stc-renc-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.stc-renc-jour {
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
}

.stc-renc-mois {
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
}

.stc-renc-card-head .stc-renc-lieu {
    background: rgba(0, 0, 0, .3);
}

.stc-renc-card.is-domicile .stc-renc-card-head .stc-renc-lieu {
    background: #fff;
    color: var(--stc-renc-accent);
}

.stc-renc-card-logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    padding: 20px 12px 12px;
}

.stc-renc-card-logos .stc-renc-vs {
    font-size: 16px;
    font-weight: 700;
    color: var(--stc-renc-accent);
}

.stc-renc-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 12px 16px;
}

.stc-renc-card-teams {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.3;
    text-transform: uppercase;
}

.stc-renc-champ {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.stc-renc-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 0 4px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    transform: translateY(-50%);
    transition: background .3s ease, color .3s ease;
}

.stc-renc-nav[hidden] {
    display: none;
}

.stc-renc-nav:hover,
.stc-renc-nav:focus-visible {
    background: rgba(255, 255, 255, .9);
    color: #333;
}

.stc-renc-prev {
    left: -12px;
}

.stc-renc-next {
    right: -12px;
}

@media (max-width: 1169px) {
    .stc-renc { --stc-renc-par-page: 3; }
}

@media (max-width: 829px) {
    .stc-renc { --stc-renc-par-page: 2; --stc-renc-gap: 14px; }
    .stc-renc-prev { left: 0; }
    .stc-renc-next { right: 0; }
}

@media (max-width: 480px) {
    .stc-renc { --stc-renc-par-page: 1; }
}

/* ─── Liste ────────────────────────────────────────────────────────────────── */

.stc-renc-day {
    margin-bottom: 1.5em;
}

.stc-renc-date {
    margin: 0 0 .5em;
    padding-bottom: .3em;
    border-bottom: 2px solid var(--stc-renc-accent);
    font-size: 1.1em;
}

.stc-renc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stc-renc-match {
    display: grid;
    grid-template-columns: 6.5em 1fr;
    gap: 2px 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.stc-renc-match .stc-renc-lieu {
    grid-row: span 2;
    text-align: center;
}

.stc-renc-teams {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.stc-renc-liste .stc-renc-logo {
    width: 32px;
    height: 32px;
}

.stc-renc-liste .stc-renc-logo.is-vide {
    font-size: 11px;
}

.stc-renc-liste .stc-renc-vs {
    opacity: .6;
}

@media (max-width: 480px) {
    .stc-renc-match {
        grid-template-columns: 1fr;
    }

    .stc-renc-match .stc-renc-lieu {
        grid-row: auto;
        justify-self: start;
    }
}
