.hbc-horaires {
    --hbc-violet: #4b176d;
    --hbc-violet-fonce: #260536;
    --hbc-violet-clair: #f2e8f7;
    --hbc-bordure: #ddd3e3;
    --hbc-texte: #25202a;
    color: var(--hbc-texte);
    margin: 1.5rem 0;
}

.hbc-horaires-entete {
    background: linear-gradient(120deg, var(--hbc-violet-fonce), var(--hbc-violet));
    border-radius: 14px;
    color: #fff;
    margin-bottom: 1rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.hbc-horaires-entete h2,
.hbc-horaires-entete p {
    color: inherit;
    margin: 0;
}

.hbc-horaires-entete h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.hbc-horaires-surtitre {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: .45rem !important;
    text-transform: uppercase;
}

.hbc-horaires-saison {
    margin-top: .65rem !important;
    opacity: .9;
}

.hbc-horaires-recherche {
    align-items: end;
    background: var(--hbc-violet-clair);
    border-left: 5px solid var(--hbc-violet);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
}

.hbc-horaires-recherche label {
    font-weight: 700;
}

.hbc-horaires-recherche span {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.hbc-horaires-recherche input,
.hbc-horaires-recherche button {
    min-height: 40px;
}

.hbc-horaires-recherche input {
    max-width: 9rem;
}

.hbc-horaires-recherche button {
    background: var(--hbc-violet);
    border: 0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: .45rem .9rem;
}

.hbc-horaires-tableau-conteneur {
    overflow-x: auto;
}

.hbc-horaires .hbc-horaires-tableau {
    border: 1px solid #c3c4c7 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    font-family: inherit;
    font-size: .95rem;
    margin: 0 !important;
    table-layout: auto !important;
    width: 100% !important;
}

.hbc-horaires .hbc-horaires-tableau th,
.hbc-horaires .hbc-horaires-tableau td {
    border: 1px solid #c3c4c7 !important;
    float: none !important;
    padding: .48rem .75rem !important;
    text-align: left !important;
    vertical-align: baseline;
}

.hbc-horaires .hbc-horaires-groupe:nth-of-type(odd) th,
.hbc-horaires .hbc-horaires-groupe:nth-of-type(odd) td {
    background: #fff !important;
}

.hbc-horaires .hbc-horaires-groupe:nth-of-type(even) th,
.hbc-horaires .hbc-horaires-groupe:nth-of-type(even) td {
    background: #ece8ef !important;
}

.hbc-horaires .hbc-horaires-ligne-equipe th {
    border-top: 2px solid #8c8f94;
    padding-bottom: .5rem;
    padding-top: .6rem;
    text-align: left !important;
}

.hbc-horaires-equipe {
    font-size: 1.08rem;
    font-weight: 600;
}

.hbc-horaires-annees {
    color: #646970;
    font-size: .78rem !important;
    font-style: normal !important;
    font-weight: 400 !important;
    margin-left: .55rem;
}

.hbc-horaires-niveau {
    color: var(--hbc-violet);
    font-size: .94rem;
    font-weight: 650;
    margin-left: .55rem;
}

.hbc-horaires-niveau::before {
    content: '— ';
}

.hbc-horaires-surclassement {
    color: #625969;
    font-size: .82rem;
    font-weight: 400;
    margin-left: .55rem;
}

.hbc-horaires-horaire {
    font-size: .88rem;
    font-weight: 400;
}

.hbc-horaires .hbc-horaires-ligne-creneau td {
    font-size: .86rem;
    line-height: 1.35;
}

.hbc-horaires-lieu {
    color: var(--hbc-violet);
    font-weight: 400;
    margin-left: .35rem;
}

.hbc-horaires-lieu::before {
    content: '— ';
}

.hbc-horaires-commentaire {
    color: #625969;
    font-size: .86rem;
    margin-left: .35rem;
}

.hbc-horaires-commentaire::before {
    content: '(';
}

.hbc-horaires-commentaire::after {
    content: ')';
}

.hbc-horaires-a-venir {
    color: #765f25;
    font-style: italic;
}

@media (max-width: 720px) {
    .hbc-horaires-tableau th,
    .hbc-horaires-tableau td {
        padding-left: .7rem;
        padding-right: .7rem;
    }

    .hbc-horaires-ligne-equipe th {
        line-height: 1.5;
    }

    .hbc-horaires-surclassement {
        display: block;
        margin-left: 0;
    }

    .hbc-horaires-annees {
        display: inline;
    }

    .hbc-horaires-lieu,
    .hbc-horaires-commentaire {
        display: block;
        margin-left: 0;
    }

    .hbc-horaires-lieu::before {
        content: '';
    }
}
