/* module-hero — frontend + editor */

.mpb-module-hero {
    position: relative;
    background-image: var(--hero-img, none);
    background-size: cover;
    background-position: center;
    background-color: var(--blokka-bg-dark);
    padding: 7rem 0 5rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.mpb-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--hero-overlay, .5));
    pointer-events: none;
}

/* H1 */
.mpb-module-hero .mpb-hero-h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

/* InnerBlocks content (paragraphe lead, boutons, etc.) */
.mpb-module-hero .mpb-hero-content p {
    color: rgba(255, 255, 255, .85);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 60ch;
    margin-bottom: 1rem;
}

.mpb-module-hero .mpb-hero-content p.lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, .9);
}

.mpb-module-hero .mpb-hero-content .wp-block-buttons {
    margin-top: 1.5rem;
}

.mpb-module-hero .mpb-hero-content .wp-block-button__link {
    border-radius: var(--blokka-radius, .5rem);
    font-weight: 600;
}

.mpb-module-hero .mpb-hero-breadcrumb {
    margin-bottom: 1rem;
    font-size: .875rem;
}

.mpb-module-hero .mpb-hero-breadcrumb,
.mpb-module-hero .mpb-hero-breadcrumb a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
}

.mpb-module-hero .mpb-hero-breadcrumb a:hover {
    color: #fff;
}

.mpb-module-hero .mpb-hero-breadcrumb span[aria-current] {
    color: rgba(255, 255, 255, .9);
}

.mpb-hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

.mpb-hero-cat {
    background: var(--blokka-accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .35em .75em;
    text-decoration: none;
    letter-spacing: .03em;
    transition: background .15s;
}

.mpb-hero-cat:hover {
    background: var(--blokka-accent-2);
    color: #fff;
}

.mpb-module-hero .mpb-hero-date {
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    margin-top: -.5rem;
    margin-bottom: 0;
    letter-spacing: .03em;
}

@media (max-width: 767.98px) {
    .mpb-module-hero {
        padding: 4rem 0 3rem;
        min-height: 50vh;
    }

    .mpb-module-hero .mpb-hero-h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
