/* =============================================================================
   FOOTER - MHB Theme
   ============================================================================= */

/* Espace pour le logo qui déborde */
.mhb-main {
    padding-bottom: 120px;
}

.mhb-footer {
    color: #fff;
    padding-top: 0;
    margin: 0;
}

/* =============================================================================
   PARTNERS BLOCK - Bloc blanc
   ============================================================================= */

.mhb-footer__partners-block {
    background: #fff;
    padding: 40px 0 20px 0;
    position: relative;
}

/* Logo container - déborde du bloc */
.mhb-footer__logo-container {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 30px;
}

.mhb-footer__logo-stars {
    margin-top: -120px;
    height: 160px;
    width: auto;
}

/* =============================================================================
   PARTNERS TABS - Onglets partenaires
   ============================================================================= */

.mhb-footer__partners-tabs {
    margin-top: 30px;
}

.mhb-footer__tabs-nav {
    display: flex;
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.mhb-footer__tab-item {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1E1E1E;
    padding: 8px 18px;
    cursor: pointer;
    border-bottom: 1px solid #B1B1B1;
    transition: all 0.3s ease;
    position: relative;
}

.mhb-footer__tab-item:hover {
    color: var(--mhb-accent, #F26522);
}

.mhb-footer__tab-item.is-active {
    border-bottom: 1px solid var(--mhb-accent, #F26522);
}

.mhb-footer__tab-filler {
    flex: 1;
    background: transparent;
    border-bottom: 1px solid #B1B1B1;
}

/* Tab content */
.mhb-footer__tab-pane {
    display: none;
}

.mhb-footer__tab-pane.is-active {
    display: block;
}

/* =============================================================================
   PARTNERS GRID - Grille partenaires
   ============================================================================= */

.mhb-footer__partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px 0;
}

.mhb-footer__partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mhb-footer__partner-logo img {
    max-width: 140px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 1;
    transition: filter 0.3s ease;
}

.mhb-footer__partner-logo:hover img,
.mhb-footer__partner-logo a:hover img {
    filter: grayscale(0%);
}

/* =============================================================================
   COMPETITIONS - Logos compétitions/médias
   ============================================================================= */

.mhb-footer__competitions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px 0;
    padding-top: 40px;
    margin-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #B1B1B1;
}

.mhb-footer__competition-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 250px;
}

.mhb-footer__competition-logo img {
    max-width: 250px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.mhb-footer__competition-logo a:hover img {
    opacity: 0.8;
}

/* =============================================================================
   BASELINE - Bloc bleu foncé
   ============================================================================= */

.mhb-footer__baseline {
    padding: 20px 0;
    background: var(--mhb-bg-dark, #010E1E);
}

.mhb-footer__baseline-inner {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.mhb-footer__baseline-left {
    width: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.mhb-footer__baseline-right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

/* Logo baseline */
.mhb-footer__baseline-logo img {
    max-height: 60px;
    width: auto;
}

/* Menu footer */
.mhb-footer__menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mhb-footer__menu-list li {
    margin: 0;
}

.mhb-footer__menu-list li a {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.mhb-footer__menu-list li a:hover {
    opacity: 0.8;
}

/* Titre et social */
.mhb-footer__baseline-title h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    color: #fff;
    text-transform: lowercase;
}

.mhb-footer__baseline-title h3 span {
    color: var(--mhb-accent, #F26522);
}

.mhb-footer__baseline-social {
    margin-left: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.mhb-footer__baseline-social a {
    line-height: 18px;
}

.mhb-footer__baseline-social img {
    height: 18px;
    width: auto;
    transition: opacity 0.3s ease;
}

.mhb-footer__baseline-social a:hover img {
    opacity: 0.7;
}

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

@media (max-width: 1024px) {
    .mhb-main {
        padding-bottom: 80px;
    }

    .mhb-footer__competitions {
        padding: 20px;
    }

    .mhb-footer__baseline-inner {
        padding: 0 20px;
    }

    .mhb-footer__baseline {
        padding-bottom: 100px; /* Espace pour le header-float fixé en bas */
    }

    .mhb-footer__logo-stars {
        margin-top: -80px;
        height: 120px;
    }

    .mhb-footer__partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px 10px;
    }

    .mhb-footer__partner-logo img {
        max-width: 120px;
        max-height: 70px;
    }

    .mhb-footer__tab-item {
        font-size: 13px;
        padding: 8px 14px;
    }
}

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

@media (max-width: 768px) {
    .mhb-footer__baseline-inner {
        flex-direction: column;
        text-align: center;
    }

    .mhb-footer__baseline-left,
    .mhb-footer__baseline-right {
        width: 100%;
        justify-content: center;
    }

    .mhb-footer__baseline-left {
        flex-direction: column;
        gap: 15px;
    }

    .mhb-footer__menu-list {
        justify-content: center;
    }

    .mhb-footer__baseline-right {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .mhb-footer__baseline-social {
        margin-left: 0;
        justify-content: center;
    }

    .mhb-footer__partners-grid {
        gap: 15px;
    }

    .mhb-footer__partner-logo img {
        max-height: 50px;
    }

    .mhb-footer__tabs-nav {
        flex-wrap: wrap;
    }

    .mhb-footer__tab-item {
        font-size: 14px;
        padding: 10px 16px;
    }

    .mhb-footer__tab-filler {
        display: none;
    }
}

/* =============================================================================
   RESPONSIVE - 480px
   ============================================================================= */

@media (max-width: 480px) {
    .mhb-main {
        padding-bottom: 60px;
    }

    .mhb-footer__baseline {
        padding-bottom: 100px;
    }

    .mhb-footer__partners-block {
        padding: 30px 10px 15px;
    }

    .mhb-footer__logo-stars {
        margin-top: -60px;
        height: 100px;
    }

    .mhb-footer__partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px 5px;
    }

    .mhb-footer__partner-logo img {
        max-width: 90px;
        max-height: 45px;
    }

    .mhb-footer__competitions {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px 10px;
    }

    .mhb-footer__competition-logo img {
        max-width: 150px;
    }

    .mhb-footer__tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mhb-footer__tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .mhb-footer__tab-item {
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mhb-footer__baseline-inner {
        padding: 0 10px;
        gap: 15px;
    }

    .mhb-footer__menu-list {
        gap: 10px;
    }

    .mhb-footer__menu-list li a {
        font-size: 11px;
    }

    .mhb-footer__baseline-title h3 {
        font-size: 14px;
    }

    .mhb-footer__baseline-logo img {
        max-height: 50px;
    }
}
