/* =============================================================================
   SECTIONS - MHB Theme
   Système de spacing simplifié utilisant les variables CSS
   ============================================================================= */

/* =============================================================================
   SECTION BASE
   ============================================================================= */

.mhb-section {
    width: 100%;
    position: relative;
    background-repeat: no-repeat;
    margin: 0 0 var(--mhb-section-margin-bottom) 0;
    padding: 0 var(--mhb-section-padding-x) var(--mhb-section-padding-bottom) var(--mhb-section-padding-x);
}

/* Section avec fond image */
.mhb-section--has-bg {
    background-size: cover;
    background-position: center;
}

/* =============================================================================
   BLEED (PLEINE LARGEUR)
   ============================================================================= */

.mhb-bleed {
    width: calc(100vw - var(--mhb-bleed-margin) * 2);
    margin-left: var(--mhb-bleed-margin);
    margin-right: var(--mhb-bleed-margin);
    margin-bottom: var(--mhb-bleed-margin-bottom);
}

/* =============================================================================
   SECTION CONTAINER
   ============================================================================= */

.mhb-section__container {
    position: relative;
    width: 100%;
}

/* Padding-bottom entre les containers (sauf le dernier) */
.mhb-section__container:not(:last-child) {
    padding-bottom: 50px;
}

/* Container centré */
.mhb-section__container--centered {
    max-width: var(--mhb-container-max);
    margin: 0 auto;
}

/* Container avec titre absolute - ajoute du padding top */
.mhb-section__container--has-absolute-title {
    padding-top: var(--mhb-section-absolute-title-pt);
}

/* =============================================================================
   SECTION CONTENT
   ============================================================================= */

.mhb-section__content {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 var(--mhb-content-padding-x) var(--mhb-content-padding-bottom) var(--mhb-content-padding-x);
    z-index: 1;
}

/* Content avec fond */
.mhb-section__content--has-bg {
    background-size: cover;
    background-position: center;
}

/* Content arrondi avec shadow */
.mhb-section__content--rounded-shadow {
    border-radius: var(--mhb-radius-lg);
    box-shadow: var(--mhb-shadow-md);
}

/* Content avec titre absolute - ajoute du padding top */
.mhb-section__content--absolute-title {
    padding-top: var(--mhb-content-absolute-title-pt);
}

/* Content styles */
.mhb-section__content--light {
    background-color: #fff;
    color: var(--mhb-text-dark);
}

.mhb-section__content--dark {
    background-color: var(--mhb-bg-dark);
    color: var(--mhb-text-white);
}

/* =============================================================================
   SECTION HEADER
   ============================================================================= */

.mhb-section__header {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 3;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

/* Header absolute */
.mhb-section__header--absolute {
    position: absolute;
    top: -47px;
    left: 0;
    right: 0;
    height: 120px;
    margin-bottom: 0;
}

/* Header légendes */
.mhb-section__header--legends {
    position: absolute;
    top: -280px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Content avec titre legends - ajoute du padding top */
.mhb-section__content--legends-title {
    padding-top: var(--mhb-content-absolute-title-pt);
}

/* =============================================================================
   SECTION TITLE
   ============================================================================= */

.mhb-section__title {
    font-family: var(--mhb-font-display);
    font-weight: 900;
    font-size: 60px;
    line-height: 60px;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    margin: 0 auto;
    z-index: 3;
    position: relative;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Titre orange (absolute) */
.mhb-section__title--accent {
    color: var(--mhb-accent);
    font-size: 110px;
    line-height: 100px;
}

/* Titre bleu */
.mhb-section__title--secondary {
    color: var(--mhb-secondary);
    font-size: 110px;
    line-height: 100px;
}

/* Image MHB sous le titre */
.mhb-section__title-img {
    width: 220px;
    display: block;
    margin: -34px auto 0 auto;
    position: relative;
    z-index: 4;
}

/* =============================================================================
   LEGENDS TITLE (special)
   ============================================================================= */

.mhb-section__legends-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mhb-section__legends-title img {
    position: relative;
    z-index: 1;
}

.mhb-section__legends-stars {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-top: -15px;
}

/* =============================================================================
   SHORTCUTS (special container)
   ============================================================================= */

.mhb-shortcuts {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin: 0;
    position: relative;
    z-index: 2;
}

.mhb-shortcut-card {
    position: relative;
    width: 22%;
    min-height: 450px;
    border-radius: var(--mhb-radius-lg);
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(0 round var(--mhb-radius-lg));
    background-color: #000;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform var(--mhb-transition-base), box-shadow var(--mhb-transition-base);
}

.mhb-shortcut-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: 0;
    background-image: var(--shortcut-bg);
    background-color: #000;
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    transform: translateZ(0);
    transform-origin: center;
    backface-visibility: hidden;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Largeur selon le nombre de shortcuts */
.mhb-shortcuts--count-2 .mhb-shortcut-card {
    width: 45%;
}

.mhb-shortcuts--count-3 .mhb-shortcut-card {
    width: 30%;
}

.mhb-shortcuts--count-4 .mhb-shortcut-card,
.mhb-shortcuts--count-5 .mhb-shortcut-card,
.mhb-shortcuts--count-6 .mhb-shortcut-card {
    width: 22%;
}

.mhb-shortcut-card:hover {
    box-shadow: var(--mhb-shadow-lg);
}

.mhb-shortcut-card:hover::before {
    transform: translateZ(0) scale(1.03);
}

.mhb-shortcut-card__overlay {
    position: absolute;
    inset: -1px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.50) 40%, rgba(0, 0, 0, 0.90) 100%);
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
    transition: none;
    transform: translateZ(0);
}

.mhb-shortcut-card__content {
    position: relative;
    z-index: 2;
    padding: 30px;
    text-align: center;
}

.mhb-shortcut-card__title {
    font-family: var(--mhb-font-display);
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mhb-shortcut-card__desc {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 22px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.mhb-shortcut-card__btn {
    display: inline-block;
    font-family: var(--mhb-font-display);
    background: var(--mhb-secondary);
    color: #fff;
    padding: 12px 28px 10px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.2;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s;
}

.mhb-shortcut-card:hover .mhb-shortcut-card__btn {
    background: var(--mhb-accent);
}

.mhb-shortcut-card:hover .mhb-shortcut-card__desc {
    color: #fff;
}

/* =============================================================================
   SECTION HEADING (générique, réutilisable)
   Titre de rubrique avec bordure accent
   ============================================================================= */

.mhb-section-heading {
    font-family: var(--mhb-font-display, 'Formula Condensed', sans-serif);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--mhb-text-white, #fff);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--mhb-accent, #E95323);
    text-align: left;
}

/* Variante fond clair */
.mhb-section--light .mhb-section-heading,
.mhb-section__content--light .mhb-section-heading {
    color: var(--mhb-text-dark, #1E1E1E);
}

@media (max-width: 768px) {
    .mhb-section-heading {
        font-size: 1.5rem;
    }
}

/* =============================================================================
   GLASS BLOCK (générique, réutilisable)
   Bloc semi-transparent sur fond sombre
   Usage : formulaires, labels, panneaux, cartes sur fond dark
   ============================================================================= */

.mhb-glass-block {
    background: var(--mhb-bg-glass);
    border-radius: var(--mhb-radius-md, 16px);
    border: 1px solid var(--mhb-border-glass);
}

/* Variantes de padding */
.mhb-glass-block--padded {
    padding: 40px;
}

.mhb-glass-block--padded-sm {
    padding: 20px;
}

.mhb-glass-block--padded-lg {
    padding: 60px;
}

@media (max-width: 768px) {
    .mhb-glass-block--padded {
        padding: 25px;
    }

    .mhb-glass-block--padded-lg {
        padding: 40px;
    }
}

@media (max-width: 576px) {
    .mhb-glass-block--padded {
        padding: 20px;
    }

    .mhb-glass-block--padded-lg {
        padding: 30px;
    }
}

/* =============================================================================
   BLOCK TITLE (H3)
   ============================================================================= */

.mhb-block__title {
    font-family: var(--mhb-font-display, 'Formula Condensed', Arial, sans-serif);
    font-weight: 600;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0;
    margin: 0 0 20px 0;
}

/* Couleurs du titre selon le choix */
.mhb-block__title--white {
    color: #fff;
}

.mhb-block__title--light-blue {
    color: var(--mhb-secondary, #007AC1);
}

.mhb-block__title--dark-blue {
    color: var(--mhb-bg-dark, #001025);
}

.mhb-block__title--orange {
    color: var(--mhb-accent, #E95323);
}

.mhb-block__title--black {
    color: #000000;
}

/* =============================================================================
   BLOCK INNER PADDING
   Wrapper générique pour padding horizontal sans toucher au parent
   ============================================================================= */

.mhb-block__inner {
    padding-left: 30px;
    padding-right: 30px;
}

@media (max-width: 1024px) {
    .mhb-block__inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .mhb-block__inner {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 700px) {
    .mhb-block__inner {
        padding-left: 0;
        padding-right: 0;
    }
}

/* =============================================================================
   CTA WRAPPER
   ============================================================================= */

.mhb-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.mhb-cta-wrapper--absolute {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* =============================================================================
   RESPONSIVE - 1024px
   ============================================================================= */

@media (max-width: 1024px) {
    .mhb-section__header--absolute {
        top: -50px;
        height: 90px;
    }

    .mhb-section__title {
        font-size: 50px;
        line-height: 50px;
    }

    .mhb-section__title--accent,
    .mhb-section__title--secondary {
        font-size: 70px;
        line-height: 70px;
    }

    .mhb-section__header--legends {
        top: -150px;
        max-width: min(100%, 620px);
        margin-inline: auto;
    }

    .mhb-section__title-img {
        width: 150px;
        margin-top: -20px;
    }

    .mhb-shortcuts {
        gap: 20px;
        margin-bottom: 50px;
    }

    .mhb-shortcut-card,
    .mhb-shortcuts--count-2 .mhb-shortcut-card,
    .mhb-shortcuts--count-3 .mhb-shortcut-card,
    .mhb-shortcuts--count-4 .mhb-shortcut-card,
    .mhb-shortcuts--count-5 .mhb-shortcut-card,
    .mhb-shortcuts--count-6 .mhb-shortcut-card {
        width: calc(50% - 10px);
        min-height: 350px;
    }

    .mhb-shortcut-card__title {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .mhb-shortcut-card__content {
        padding: 25px;
    }
}

/* =============================================================================
   RESPONSIVE - 768px
   ============================================================================= */

@media (max-width: 768px) {
    .mhb-section__header--absolute {
        top: -40px;
        height: 70px;
    }

    .mhb-section__title--accent,
    .mhb-section__title--secondary {
        font-size: 60px;
        line-height: 1.1;
    }

    .mhb-section__title-img {
        width: 100px;
        margin-top: -20px;
    }

    .mhb-section__header--legends {
        top: -105px;
        max-width: min(100%, 420px);
        padding-inline: 20px;
        margin-inline: auto;
    }

    .mhb-section__legends-title img {
        max-width: 320px;
        height: auto;
    }

    .mhb-section__legends-stars {
        margin-top: -10px;
    }

    .mhb-section__legends-stars img {
        width: 58px;
        height: auto;
    }

    .mhb-shortcuts {
        gap: 15px;
        margin-bottom: 40px;
    }

    .mhb-shortcut-card,
    .mhb-shortcuts--count-2 .mhb-shortcut-card,
    .mhb-shortcuts--count-3 .mhb-shortcut-card,
    .mhb-shortcuts--count-4 .mhb-shortcut-card,
    .mhb-shortcuts--count-5 .mhb-shortcut-card,
    .mhb-shortcuts--count-6 .mhb-shortcut-card {
        width: 100%;
        min-height: 280px;
    }

    .mhb-shortcut-card__title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .mhb-shortcut-card__content {
        padding: 20px;
    }

    .mhb-shortcut-card__btn {
        padding: 10px 22px 8px;
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .mhb-block--palmares .mhb-block__inner {
        padding-top: 125px;
    }
}

/* =============================================================================
   PALMARES
   ============================================================================= */

.mhb-palmares {
    margin-bottom: 60px;
}

/* Filtre palmares - style noir/doré (spécificité renforcée pour écraser .filter-btn) */
.filter-btn.filter-btn--palmares {
    box-shadow: none;
    border: 1px solid #000000;
    color: #000000;
    background: transparent;
}

.filter-btn.filter-btn--palmares:hover {
    border: 1px solid #000000;
    color: #000000;
    background: transparent;
    box-shadow: none;
    opacity: 0.7;
}

.filter-btn.filter-btn--palmares.is-active {
    border: 1px solid #000000;
    background: #000000;
    color: #BB9860;
    opacity: 1;
}

/* Equipes show/hide */
.mhb-palmares__equipe {
    transition: opacity 0.3s ease;
}

.mhb-palmares__equipe.hidden {
    display: none !important;
}

/* Grille trophées */
.mhb-palmares__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin: 20px 0 40px;
}

.mhb-palmares__item {
    text-align: center;
}

.mhb-palmares__card {
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding: 20px 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.mhb-palmares__card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.mhb-palmares__logo {
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mhb-palmares__logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.mhb-palmares__nombre {
    font-weight: bold;
    font-size: 46px;
    color: #000;
    line-height: 1;
    margin-bottom: 10px;
}

.mhb-palmares__label {
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.2;
}

/* Responsive palmares */
@media (max-width: 1024px) {
    .mhb-palmares__grid {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .mhb-palmares__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mhb-palmares__nombre {
        font-size: 38px;
    }
}

@media (max-width: 576px) {
    .mhb-palmares__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mhb-palmares__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .mhb-palmares__nombre {
        font-size: 32px;
    }

    .mhb-palmares__label {
        font-size: 12px;
    }
}

/* =============================================================================
   PETIT CLASSEMENT (widget compact)
   ============================================================================= */

.mhb-block--petit_classement {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-width: 0;
}

.mhb-block--petit_classement > .mhb-block__inner {
    grid-column: 1;
    width: 100%;
    min-width: 0;
}

.mhb-standings-mini {
    width: 100%;
    min-width: 0;
}

.mhb-standings-mini__header {
    background: #E7E6E6;
    border-radius: 10px 10px 0 0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mhb-standings-mini__position {
    font-family: var(--mhb-font-display, 'Formula Condensed', sans-serif);
    font-weight: 700;
    font-size: 50px;
    line-height: 1;
    color: #001025;
}

.mhb-standings-mini__position span {
    color: var(--mhb-accent, #E95323);
}

.mhb-standings-mini__details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mhb-standings-mini__competition {
    font-size: 14px;
    font-weight: 600;
    color: #001025;
}

.mhb-standings-mini__day {
    font-size: 14px;
    color: var(--mhb-accent, #E95323);
    font-weight: 500;
}

.mhb-standings-mini__logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.mhb-standings-mini__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mhb-standings-mini__teams-wrapper {
    background: #DFDFDF;
    border-radius: 0 0 10px 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mhb-standings-mini__teams-container {
    flex: 1;
    overflow: hidden;
    cursor: grab;
}

.mhb-standings-mini__teams-container:active {
    cursor: grabbing;
}

.mhb-standings-mini__teams-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.mhb-standings-mini__team {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mhb-standings-mini__team img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mhb-standings-mini__team--mhb {
    width: 48px;
    height: 48px;
    margin-block: -4px;
    background: #F4F6F8;
    border: 1px solid rgba(0, 16, 37, 0.12);
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 3px 10px rgba(0, 16, 37, 0.12);
}

.mhb-standings-mini__team--mhb img {
    transform: scale(1.08);
}

.mhb-standings-mini__nav {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--mhb-accent, #E95323);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.mhb-standings-mini__nav.is-visible {
    display: flex;
}

.mhb-standings-mini__nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.mhb-standings-mini__nav svg {
    width: 12px;
    height: 12px;
}

/* Responsive Petit Classement */
@media (max-width: 768px) {
    .mhb-block--petit_classement {
        grid-template-columns: 1fr;
    }

    .mhb-block--petit_classement > .mhb-block__inner {
        grid-column: 1 / -1;
    }

    .mhb-standings-mini__position {
        font-size: 40px;
    }

    .mhb-standings-mini__logo {
        width: 50px;
        height: 50px;
    }

    .mhb-standings-mini__team {
        width: 35px;
        height: 35px;
    }

    .mhb-standings-mini__team--mhb {
        width: 43px;
        height: 43px;
    }
}

@media (max-width: 480px) {
    .mhb-standings-mini__position {
        font-size: 32px;
    }

    .mhb-standings-mini__logo {
        width: 40px;
        height: 40px;
    }

    .mhb-standings-mini__competition,
    .mhb-standings-mini__day {
        font-size: 12px;
    }
}

/* =============================================================================
   CLASSEMENT COMPLET (tableau)
   ============================================================================= */

.mhb-standings__filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.mhb-standings__table-wrapper {
    display: none;
}

.mhb-standings__table-wrapper.is-active {
    display: block;
}

.mhb-standings__table-scroll {
    overflow-x: auto;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar custom */
.mhb-standings__table-scroll::-webkit-scrollbar {
    height: 6px;
}

.mhb-standings__table-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.mhb-standings__table-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mhb-standings__table-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.mhb-standings__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    color: #fff;
}

.mhb-standings__table thead th {
    background: transparent;
    padding: 1rem 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.mhb-standings__table tbody td {
    padding: 18px 20px;
    text-align: center;
    background: var(--mhb-bg-semi-dark, #13213a);
    border: 0;
    box-shadow: none;
    font-size: 0.875rem;
    color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mhb-standings__table tbody td:first-child {
    border-radius: 10px 0 0 10px;
}

.mhb-standings__table tbody td:last-child {
    border-radius: 0 10px 10px 0;
}

.mhb-standings__table tbody tr:hover td {
    background: var(--mhb-bg-dark-alt, #0a1428);
}

/* Ligne MHB mise en avant */
.mhb-standings__row--mhb td {
    background: var(--mhb-accent, #E95323) !important;
    font-weight: 600;
}

.mhb-standings__row--mhb:hover td {
    background: var(--mhb-accent, #E95323) !important;
}

.mhb-standings__team-cell {
    text-align: left !important;
}

.mhb-standings__team-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.mhb-standings__team-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.mhb-standings__team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mhb-standings__team-name {
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive Classement Complet */
@media (max-width: 1024px) {
    .mhb-standings__table tbody td {
        padding: 14px 12px;
    }

    .mhb-standings__team-logo {
        width: 28px;
        height: 28px;
    }

    .mhb-standings__team-info {
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .mhb-standings__table-scroll {
        overflow-x: auto;
        cursor: grab;
    }

    .mhb-standings__table-scroll:active {
        cursor: grabbing;
    }

    .mhb-standings__table {
        min-width: 800px;
    }

    .mhb-standings__team-logo {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .mhb-standings__table tbody td {
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .mhb-standings__team-logo {
        width: 20px;
        height: 20px;
    }

.mhb-standings__team-name {
    font-size: 0.75rem;
}
}

/* Home team tabs */
.mhb-section__container--home-teams {
    position: relative;
    margin-top: clamp(5rem, 9vw, 9rem);
    overflow: visible;
}

.mhb-section__container--home-teams::before {
    content: '';
    position: absolute;
    top: clamp(-5.5rem, -6vw, -3rem);
    right: clamp(-12rem, -10vw, -5rem);
    width: min(62vw, 760px);
    aspect-ratio: 856 / 632;
    background: url('../../images/lequipe-flag.webp') center / contain no-repeat;
    opacity: 0.34;
    pointer-events: none;
    z-index: 0;
}

.mhb-section__container--home-teams > .mhb-section__content {
    position: relative;
    z-index: 1;
}

.mhb-team-tabs {
    width: 100%;
}

.mhb-team-tabs__nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 2rem;
    width: fit-content;
    max-width: calc(100% - 2rem);
    flex-wrap: wrap;
}

.mhb-team-tabs__btn {
    white-space: nowrap;
}

.mhb-team-tabs__panel {
    display: none;
}

.mhb-team-tabs__panel.is-active {
    display: block;
}

.mhb-team-tabs__panel--teams.is-active {
    display: block;
}

.mhb-team-tabs__panel--teams .mhb-block--petit_classement {
    width: 100%;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.mhb-team-tabs__panel--teams .mhb-block--petit_classement > .mhb-block__inner {
    position: relative;
}

.mhb-team-tabs__panel--teams .mhb-block--petit_classement .mhb-cta-wrapper {
    position: static;
    width: auto;
    margin-top: 1rem;
}

.mhb-section__container--home-teams .mhb-cta-wrapper--home-teams {
    justify-content: flex-start;
    width: auto;
    margin-top: 1rem;
}

.mhb-section__container--home-teams .mhb-cta-wrapper--home-teams:not(.mhb-cta-wrapper--absolute) {
    position: static;
}

.mhb-section__container--home-teams .mhb-cta-wrapper--home-teams.mhb-cta-wrapper--absolute {
    justify-content: center;
}

.mhb-team-tabs__panel--teams .mhb-block--carousel {
    width: 100%;
}

.mhb-section__container--home-teams .mhb-carousel--home-team-players {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: var(--mhb-section-padding-x);
    padding-right: var(--mhb-section-padding-x);
}

@media (max-width: 900px) {
    .mhb-section__container--home-teams {
        margin-top: clamp(3.5rem, 12vw, 6rem);
    }

    .mhb-section__container--home-teams::before {
        top: -3rem;
        right: -12rem;
        width: min(95vw, 560px);
        opacity: 0.24;
    }

    .mhb-team-tabs__panel--teams .mhb-block--petit_classement {
        width: 100%;
    }

    .mhb-team-tabs__panel--teams .mhb-block--petit_classement .mhb-cta-wrapper {
        position: static;
        width: auto;
        margin-top: 1rem;
    }
}

@media (max-width: 560px) {
    .mhb-section__container--home-teams {
        margin-top: 3rem;
    }

    .mhb-section__container--home-teams .mhb-carousel--home-team-players {
        padding-left: max(0px, calc((100vw - 320px) / 2));
        padding-right: max(0px, calc((100vw - 320px) / 2));
    }

    .mhb-section__container--home-teams::before {
        top: -1.5rem;
        right: -9rem;
        width: 430px;
        opacity: 0.18;
    }

    .mhb-team-tabs__nav {
        justify-content: flex-start;
        overflow-x: auto;
        width: auto;
        max-width: 100%;
        margin-bottom: 1.35rem;
        flex-wrap: nowrap;
    }

    .mhb-team-tabs__btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 350px) {
    .mhb-section__container--home-teams .mhb-carousel--home-team-players {
        padding-left: max(0px, calc((100vw - 300px) / 2));
        padding-right: max(0px, calc((100vw - 300px) / 2));
    }
}
