/* =============================================================================
   SINGLE POST - Template Actualités
   ============================================================================= */

/* =============================================================================
   ARTICLE CONTENT
   ============================================================================= */

/* Hero article / vidéo */
.single-post .mhb-hero__media.has-picture,
.single-post .mhb-hero__media.has-video,
.single-video .mhb-hero__media.has-picture,
.single-video .mhb-hero__media.has-video {
    height: 900px;
}

.single-post .mhb-hero__title,
.single-video .mhb-hero__title {
    font-size: 58px;
}


.mhb-article {
    background: var(--mhb-bg-dark, #001025);
    padding: 20px 0 80px;
}

.mhb-article__wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Séparateur */
.mhb-article__separator {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0 40px;
}

/* Contenu principal */
.mhb-article__content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.8;
}

/* Espacement entre les blocs */
.mhb-article__content>* {
    margin-bottom: 30px;
}

.mhb-article__content>*:last-child {
    margin-bottom: 0;
}

/* Titres H2 */
.mhb-article__content h2 {
    font-family: var(--mhb-font-display, 'Formula Condensed', sans-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--mhb-accent, #E95323);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-top: 50px;
    margin-bottom: 25px;
}

.mhb-article__content h2:first-child {
    margin-top: 0;
}

/* Titres H3 */
.mhb-article__content h3 {
    font-family: var(--mhb-font-display, 'Formula Condensed', sans-serif);
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Titres H4 */
.mhb-article__content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Paragraphes */
.mhb-article__content p {
    margin-bottom: 25px;
}

/* Liens */
.mhb-article__content a {
    color: var(--mhb-accent, #E95323);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.mhb-article__content a:hover {
    color: #ff6b3d;
}

/* Images - Pleine largeur */
.mhb-article__content img {
    max-width: none;
    width: calc(100% + 100px);
    margin-left: -50px;
    margin-right: -50px;
    height: auto;
    border-radius: 12px;
}

.mhb-article__content .wp-block-image {
    margin: 40px 0;
}

.mhb-article__content .wp-block-image img {
    max-width: none;
    width: calc(100% + 100px);
    margin-left: -50px;
    margin-right: -50px;
}

.mhb-article__content .wp-block-image figcaption {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
    font-style: italic;
}

/* Galerie */
.mhb-article__content .wp-block-gallery {
    margin: 40px -50px;
    width: calc(100% + 100px);
}

/* Citations */
.mhb-article__content blockquote {
    border-left: 4px solid var(--mhb-accent, #E95323);
    padding: 20px 30px;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 12px 12px 0;
}

.mhb-article__content blockquote p {
    font-size: 20px;
    font-style: italic;
    color: #fff;
    margin-bottom: 10px;
}

.mhb-article__content blockquote cite {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-style: normal;
}

/* Listes */
.mhb-article__content ul,
.mhb-article__content ol {
    padding-left: 25px;
    margin-bottom: 25px;
}

.mhb-article__content li {
    margin-bottom: 10px;
}

.mhb-article__content ul li::marker {
    color: var(--mhb-accent, #E95323);
}

.mhb-article__content ol li::marker {
    color: var(--mhb-accent, #E95323);
    font-weight: 600;
}

/* Vidéos embed */
.mhb-article__content .wp-block-embed,
.mhb-article__content iframe {
    margin: 40px -50px;
    width: calc(100% + 100px);
    max-width: none;
}

.mhb-article__content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.mhb-article__content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 900px) {

    .single-post .mhb-hero__media.has-picture,
    .single-post .mhb-hero__media.has-video,
    .single-video .mhb-hero__media.has-picture,
    .single-video .mhb-hero__media.has-video {
        height: 760px;
    }

    .single-post .mhb-hero__title,
    .single-video .mhb-hero__title {
        font-size: 50px;
    }

    .mhb-article__content img,
    .mhb-article__content .wp-block-image img,
    .mhb-article__content .wp-block-gallery,
    .mhb-article__content .wp-block-embed,
    .mhb-article__content iframe {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .single-post .mhb-hero__media.has-picture,
    .single-post .mhb-hero__media.has-video,
    .single-video .mhb-hero__media.has-picture,
    .single-video .mhb-hero__media.has-video {
        height: 80svh;
    }

    .single-post .mhb-hero__title,
    .single-video .mhb-hero__title {
        font-size: 42px;
    }

    .mhb-article {
        padding: 15px 0 60px;
    }

    .mhb-article__content h2 {
        font-size: 26px;
    }

    .mhb-article__content h3 {
        font-size: 20px;
    }

    .mhb-article__content {
        font-size: 16px;
    }

    .mhb-article__content blockquote p {
        font-size: 18px;
    }
}

/* =============================================================================
   VIDEO EMBED (Single Video)
   ============================================================================= */

.mhb-video-embed {
    background: var(--mhb-bg-dark, #001025);
    padding: 0 0 40px;
}

.mhb-video-embed__wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.mhb-video-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Hero vidéo (plus compact) */
.mhb-hero--video .mhb-hero__media {
    min-height: 350px;
}

.mhb-hero--video .mhb-hero__title {
    font-size: clamp(28px, 5vw, 48px);
}

/* Article vidéo (sans le padding top car vidéo au-dessus) */
.mhb-article--video {
    padding-top: 40px;
}

@media (max-width: 768px) {
    .mhb-video-embed {
        padding: 0 0 30px;
    }

    .mhb-video-embed__wrapper {
        border-radius: 8px;
    }

    .mhb-hero--video .mhb-hero__media {
        min-height: 280px;
    }
}

/* =============================================================================
   SECTION "À LIRE AUSSI"
   ============================================================================= */

.mhb-section--related {
    padding: 200px 0 40px;
}

.mhb-related {
    --mhb-related-card-height: 430px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.mhb-related--player {
    --mhb-related-card-height: 423px;
}

/* Label "À lire aussi" */
/* Herite de .mhb-glass-block en HTML */
.mhb-related__label {
    flex-shrink: 0;
    width: 120px;
    min-height: var(--mhb-related-card-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.mhb-related__label-text {
    font-family: var(--mhb-font-display, 'Formula Condensed', sans-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--mhb-secondary, #007AC1);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Carrousel */
.mhb-carousel--related {
    flex: 1;
    min-width: 0;
}

.mhb-carousel--related .mhb-carousel__track {
    padding-bottom: 20px;
}

.mhb-carousel--related .mhb-carousel__pagination {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .mhb-related {
        --mhb-related-card-height: 400px;
    }

    .mhb-related--player {
        --mhb-related-card-height: 369px;
    }

    .mhb-related__label {
        width: 100px;
    }

    .mhb-related__label-text {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .mhb-section--related {
        padding: 40px 0 60px;
    }

    .mhb-related {
        flex-direction: column;
        gap: 30px;
    }

    .mhb-related__label {
        width: 100%;
        min-height: auto;
        padding: 20px 30px;
    }

    .mhb-related__label-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 28px;
    }
}
@media (max-width: 576px) {
    .single-post .mhb-hero__media.has-picture,
    .single-post .mhb-hero__media.has-video,
    .single-video .mhb-hero__media.has-picture,
    .single-video .mhb-hero__media.has-video {
        height: 80svh;
    }

    .single-post .mhb-hero__title,
    .single-video .mhb-hero__title {
        font-size: 38px;
    }
}
