/* ================================================
   MB HERO IMAGE — CSS FRONT-END
   ================================================ */

/* ── Pleine largeur : casse le conteneur Astra ── */
.mb-hero-wrapper {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    overflow: hidden;
    line-height: 0;
    padding: 0 !important;
}

/* ── Image ── */
.mb-hero-inner {
    width: 100%;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    line-height: normal;
}

/* ── Overlay ── */
.mb-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Texte ── */
.mb-hero-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 8%;
    box-sizing: border-box;
}

.mb-hero-titre {
    margin: 0 0 0.35em;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
    max-width: 860px;
    width: 100%;
}

.mb-hero-sous-titre {
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    max-width: 680px;
    width: 100%;
}

/* ── Classe overlap : appliquée sur Container Spectra ──
   Le CSS dynamique est généré via PHP (enqueue.php)
   en fonction des réglages admin. ── */

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
    .mb-hero-text { padding: 16px 6%; }
}
@media (max-width: 480px) {
    .mb-hero-text { padding: 12px 5%; }
    .mb-hero-titre { text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
}
