/* =============================================================================
   HERO - MHB Theme
   Bandeau hero pour les pages
   Note: Utilise .mhb-bleed pour largeur/marges (voir base.css)
   ============================================================================= */

/* =============================================================================
   HERO WRAPPER
   ============================================================================= */

.mhb-hero {
    position: relative;
    overflow: hidden;
}

/* =============================================================================
   HERO MEDIA / BACKGROUND
   ============================================================================= */

.mhb-hero__media {
    width: 100%;
    position: relative;
    height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Version générique (fond par défaut) */
.mhb-hero--generic .mhb-hero__media {
    height: 450px;
    background-image: url('../images/section-bg-news.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Version shop */
.mhb-hero--shop .mhb-hero__media {
    height: 100px;
    background: none;
}

/* Version large */
.mhb-hero--large .mhb-hero__media {
    height: 700px;
}

/* Hero avec image personnalisée */
.mhb-hero__media.has-picture {
    height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mhb-hero__media.has-video {
    height: 700px;
}

/* Image de fond */
.mhb-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* =============================================================================
   HERO VIDEO
   ============================================================================= */

.mhb-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.mhb-hero__video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.mhb-hero__video iframe,
.mhb-hero__video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Pour YouTube/Vimeo - couvrir sans bandes noires */
.mhb-hero__video iframe {
    width: 177.77vh;
    /* ratio 16:9 */
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw;
    /* ratio 16:9 */
}

/* =============================================================================
   HERO OVERLAY
   ============================================================================= */

.mhb-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Padding top pour hero générique */
.mhb-hero--generic .mhb-hero__overlay {
    padding-top: 150px;
}

.mhb-hero--shop .mhb-hero__overlay {
    display: none !important;
}

/* =============================================================================
   HERO CONTENT
   ============================================================================= */

.mhb-hero__content {
    text-align: left;
    color: var(--mhb-text-white);
    max-width: 1400px;
    width: 100%;
    padding: 0;
    position: relative;
    z-index: 3;
}

/* Badge */
.mhb-hero__badge {
    display: inline-block;
    background: var(--mhb-accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--mhb-radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Titre principal */
.mhb-hero__title {
    font-family: var(--mhb-font-display);
    font-weight: bold;
    font-size: 64px;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 15px;
    margin-bottom: 30px;
    color: var(--mhb-text-white);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.mhb-hero__title--with-subtitle {
    margin-bottom: 0;
}

/* Sous-titre */
.mhb-hero__subtitle {
    font-family: var(--mhb-font-display);
    font-weight: bold;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 2px;
    color: var(--mhb-secondary);
    margin-bottom: 20px;
}

/* Extrait / Description */
.mhb-hero__excerpt {
    font-family: var(--mhb-font-primary);
    font-size: 20px;
    line-height: 1.6;
    color: var(--mhb-text-white);
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
    max-width: 700px;
}

/* =============================================================================
   HERO PLAYER PROFILE (pour pages joueurs)
   ============================================================================= */

.mhb-hero__player {
    position: absolute;
    right: 20%;
    bottom: -70px;
    z-index: 3;
}

.mhb-hero__player img {
    height: 440px;
    width: auto;
}

/* =============================================================================
   HERO BOTTOM (barre sous le hero)
   ============================================================================= */

.mhb-hero__bottom {
    background: var(--mhb-bg-glass);
    padding: 0;
    min-height: 35px;
}

.mhb-hero--shop .mhb-hero__bottom {
    background: none !important;
    position: relative;
    z-index: 1000;
}

/* =============================================================================
   BREADCRUMB
   ============================================================================= */

.mhb-hero__breadcrumb {
    padding: 12px 0;
}

.mhb-hero__breadcrumb-wrapper {
    position: relative;
    overflow: hidden;
}

.mhb-hero__breadcrumb-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.mhb-hero__breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--mhb-text-gray);
    flex-shrink: 0;
}

.mhb-hero__breadcrumb-item a {
    color: var(--mhb-text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.mhb-hero__breadcrumb-item a:hover {
    color: var(--mhb-accent);
}

.mhb-hero__breadcrumb-icon {
    display: block;
    width: 16px;
    height: 16px;
}

.mhb-hero__breadcrumb-item.is-current {
    color: var(--mhb-text-white);
    font-weight: 500;
    white-space: nowrap;
}

.mhb-hero__breadcrumb-separator {
    margin: 0 8px;
    color: var(--mhb-text-gray);
    flex-shrink: 0;
}

/* Flèches de navigation breadcrumb */
.mhb-hero__breadcrumb-wrapper .mhb-scroll-carousel__arrow--prev {
    background: linear-gradient(to left, transparent, var(--mhb-bg-dark-alt, #010E1E) 70%);
}

.mhb-hero__breadcrumb-wrapper .mhb-scroll-carousel__arrow--next {
    background: linear-gradient(to right, transparent, var(--mhb-bg-dark-alt, #010E1E) 70%);
}

.mhb-hero__breadcrumb-wrapper .mhb-scroll-carousel__arrow svg {
    width: 16px;
    height: 16px;
}

/* =============================================================================
   SUB-NAVIGATION (Carrousel responsive)
   ============================================================================= */

.mhb-hero__subnav {
    padding: 12px 0;
    position: relative;
}

.mhb-hero__subnav-wrapper {
    position: relative;
    overflow: hidden;
}

.mhb-hero__subnav-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mhb-hero__subnav-list::-webkit-scrollbar {
    display: none;
}

/* Style des liens - inspiré de l'ancien thème */
.mhb-hero__subnav-item a,
.mhb-hero__subnav-list>li>a {
    display: block;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 10px;
    padding: 10px 20px 9px;
    font-family: var(--mhb-font-display, 'Formula Condensed', sans-serif);
    font-size: 18px;
    line-height: 17px;
    text-transform: none;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.mhb-hero__subnav-item a:hover,
.mhb-hero__subnav-list>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Lien actif */
.mhb-hero__subnav-item.current-menu-item a,
.mhb-hero__subnav-item.current_page_item a,
.mhb-hero__subnav-item.is-active a,
.mhb-hero__subnav-list>li.current-menu-item>a,
.mhb-hero__subnav-list>li.current_page_item>a {
    color: #FFF;
    background: var(--mhb-accent, #E95323);
}

/* Flèches de navigation - Override pour fond du hero bottom */
.mhb-hero__subnav-wrapper .mhb-scroll-carousel__arrow--prev {
    background: linear-gradient(to left, transparent, var(--mhb-bg-dark-alt, #010E1E) 70%);
}

.mhb-hero__subnav-wrapper .mhb-scroll-carousel__arrow--next {
    background: linear-gradient(to right, transparent, var(--mhb-bg-dark-alt, #010E1E) 70%);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1400px) {
    .mhb-hero--generic .mhb-hero__media {
        height: 350px;
    }

    .mhb-hero__media.has-picture,
    .mhb-hero__media.has-video {
        height: 550px;
    }
}

@media (max-width: 1024px) {
    .mhb-hero__content {
        padding: 0 20px;
    }

    .mhb-hero__title {
        font-size: 54px;
    }

    .mhb-hero--generic .mhb-hero__overlay {
        padding-top: 100px;
    }

    .mhb-hero__player img {
        height: 380px;
    }
}

@media (max-width: 800px) {
    .mhb-hero__excerpt {
        display: none;
    }
}

@media (max-width: 768px) {
    .mhb-hero--generic .mhb-hero__media {
        height: 320px;
    }

    .mhb-hero__media.has-picture,
    .mhb-hero__media.has-video {
        height: 450px;
    }

    .mhb-hero__title {
        font-size: 45px;
    }

    .mhb-hero__subtitle {
        font-size: 22px;
    }

    .mhb-hero__excerpt {
        font-size: 17px;
    }

    .mhb-hero__player {
        right: 10%;
        bottom: -50px;
    }

    .mhb-hero__player img {
        height: 300px;
    }

    /* Vidéo de fond sur mobile */
    .mhb-hero__video iframe,
    .mhb-hero__video video {
        width: 300%;
        height: 100%;
    }

    .mhb-hero__subnav-item a,
    .mhb-hero__subnav-list>li>a {
        font-size: 16px;
        padding: 8px 16px 7px;
    }

    .mhb-hero__breadcrumb {
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .mhb-hero--generic .mhb-hero__media {
        height: 280px;
    }

    .mhb-hero__media.has-picture,
    .mhb-hero__media.has-video {
        height: 80svh;
        margin-top: -20px;
    }

    .mhb-hero__title {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .mhb-hero__subtitle {
        font-size: 18px;
    }

    .mhb-hero__excerpt {
        font-size: 15px;
    }

    .mhb-hero__badge {
        font-size: 11px;
        padding: 4px 12px;
    }

    .mhb-hero__player {
        display: none;
    }

    .mhb-hero__subnav-item a,
    .mhb-hero__subnav-list>li>a {
        font-size: 14px;
        padding: 8px 14px 7px;
    }
}

@media (max-width: 400px) {
    .mhb-hero__content {
        padding: 0 5px;
    }

    .mhb-hero__title {
        font-size: 35px;
    }
}
