.hbc-calendrier-equipe {
    margin-block: 1.5rem;
}

.hbc-calendrier-equipe > h2 {
    margin-bottom: .25rem;
}

.hbc-calendrier-saison {
    margin-top: 0;
    color: #555;
}

.hbc-calendrier-filtres {
    margin-block: .5rem 1rem;
    padding: .65rem;
    border: 1px solid #d6d1da;
    background: #f5f2f7;
}

.hbc-calendrier-filtres fieldset {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}

.hbc-calendrier-filtres legend {
    margin-bottom: .55rem;
    color: #541878;
    font-weight: 700;
}

.hbc-calendrier-choix-equipes label {
    display: block;
    margin-block: .35rem;
}

.hbc-calendrier-vues {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    align-items: center;
}

.hbc-calendrier-vues label {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.hbc-calendrier-vues input {
    margin: 0;
    accent-color: #541878;
}

.hbc-calendrier-vues input:checked + span {
    color: #541878;
    font-weight: 700;
}

.hbc-calendrier-choix-equipes {
    display: none;
    margin-top: .8rem !important;
    padding-top: .75rem !important;
    border-top: 1px solid #d6d1da !important;
}

.hbc-calendrier-choix-equipes.est-visible,
.hbc-calendrier-filtres:has(input[name="hbc_vue"][value="equipes"]:checked) .hbc-calendrier-choix-equipes {
    display: block;
}

.hbc-calendrier-choix-equipes > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: .15rem 1rem;
}

.hbc-calendrier-filtres button {
    padding: .45rem .85rem;
    border: 0;
    border-radius: .25rem;
    background: #541878;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hbc-calendrier-filtres button:hover,
.hbc-calendrier-filtres button:focus-visible {
    background: #3d1059;
}

.hbc-calendrier-section {
    margin-block: 1rem;
}

.hbc-calendrier-section > h3 {
    margin-bottom: .75rem;
}

.hbc-calendrier-table-conteneur {
    overflow-x: auto;
}

.hbc-calendrier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.hbc-calendrier-table th,
.hbc-calendrier-table td {
    padding: .75rem;
    border: 1px solid #d6d1da;
    text-align: left;
    vertical-align: top;
}

.hbc-calendrier-table thead {
    background: #541878;
    color: #fff;
}

.hbc-calendrier-table tbody tr:nth-child(even) {
    background: #f5f2f7;
}

.hbc-calendrier-table td small {
    display: block;
    margin-top: .25rem;
    color: #666;
}

.hbc-calendrier-intitule {
    display: block;
    margin-bottom: .3rem;
}

.hbc-calendrier-intitule-match,
.hbc-calendrier-intitule-match a {
    color: #541878;
}

.hbc-calendrier-intitule-evenement {
    color: #222;
}

.hbc-calendrier-nom-club {
    display: inline;
}

.hbc-calendrier-a-confirmer {
    color: #7a5d16;
    font-size: .88rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .hbc-calendrier-vues {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    .hbc-calendrier-filtres button {
        width: 100%;
    }

    .hbc-calendrier-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .hbc-calendrier-table,
    .hbc-calendrier-table tbody,
    .hbc-calendrier-table tr,
    .hbc-calendrier-table td {
        display: block;
        width: 100%;
    }

    .hbc-calendrier-table tr {
        margin-bottom: .9rem;
        border: 1px solid #d6d1da;
    }

    .hbc-calendrier-table td {
        box-sizing: border-box;
        border: 0;
        border-bottom: 1px solid #e7e2e9;
    }

    .hbc-calendrier-table td::before {
        display: block;
        margin-bottom: .15rem;
        color: #541878;
        font-size: .78rem;
        font-weight: 700;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .hbc-calendrier-table td:last-child {
        border-bottom: 0;
    }
}
