/* Bandeaux d'en-tête (remplacent Slider Revolution), voir inc/bandeaux.php */

/* Le contenu des pages est limité à 1920 px et coupe ce qui dépasse :
   sans ça, le bandeau s'arrête à 1920 px sur les grands écrans (4K). */
.entry-content:has(.lb-bandeau) {
    max-width: none!important;
    overflow: visible!important;
}

/* 100vw inclut la barre de défilement : pas de défilement horizontal parasite */
body:has(.lb-bandeau) {
    overflow-x: clip;
}

.lb-bandeau {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: #000;
    text-align: center;
    /* Pleine largeur même dans le conteneur centré de la page */
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.lb-bandeau__fond {
    position: absolute;
    inset: 0;
    width: 100%!important;
    height: 100%!important;
    max-width: none!important;
    object-fit: cover;
    z-index: 0;
}

/* Voile clair : texte noir lisible quelle que soit la photo */
.lb-bandeau::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .35);
    z-index: 1;
}

.lb-bandeau__contenu {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 40px 24px;
}

/* Pages : identité & valeurs, métiers. Hauteur limitée : le contenu commence sous le bandeau. */
.lb-bandeau--page {
    min-height: 0;
    height: clamp(520px, 65vh, 760px);
}

.lb-bandeau--page .lb-bandeau__contenu {
    padding-top: 220px; /* place pour le logo et le menu posés par-dessus */
}

.lb-bandeau__titre {
    font-family: josefinsans-sb, sans-serif!important;
    font-size: clamp(28px, 4vw, 44px)!important;
    line-height: 1.15!important;
    margin: 0 0 24px!important;
    color: #000!important;
    text-transform: none!important;
}

.lb-bandeau--page p {
    font-family: josefinsans-r, sans-serif;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.6;
    margin: 0 0 12px;
}

/* Accueil : logo, menu, contact */
.home #masthead {
    display: none!important;
}

.lb-bandeau--accueil .lb-bandeau__contenu {
    max-width: none;
}

/* La photo d'accueil a déjà son voile blanc incrusté */
.lb-bandeau--accueil::after {
    content: none;
}

.lb-bandeau__logo {
    margin: 0 0 40px!important;
    line-height: 0;
}

.lb-bandeau__logo img {
    width: clamp(200px, 22vw, 300px);
    height: auto;
}

.lb-bandeau__menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-family: josefinsans-r, sans-serif;
    font-size: clamp(16px, 1.6vw, 22px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lb-bandeau__menu a {
    color: #000;
    padding: 4px 18px;
    text-decoration: none;
    border-bottom: 0!important;
}

.lb-bandeau__menu a + a {
    border-left: 2px solid #000;
}

.lb-bandeau__menu a:hover,
.lb-bandeau__menu a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.lb-bandeau__contact {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 56px;
    color: #000;
    font-family: josefinsans-r, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

.lb-bandeau__contact span {
    opacity: 0;
    transition: opacity .2s;
}

.lb-bandeau__contact:hover span,
.lb-bandeau__contact:focus-visible span {
    opacity: 1;
}

@media screen and (max-width: 600px) {
    .lb-bandeau--page {
        min-height: 0;
        height: auto; /* la hauteur suit le texte, rien n'est coupé */
    }

    .lb-bandeau--page .lb-bandeau__contenu {
        padding: 230px 20px 48px;
    }

    .lb-bandeau__menu {
        flex-direction: column;
        gap: 6px;
    }

    .lb-bandeau__menu a + a {
        border-left: 0;
    }

    .lb-bandeau__contact span {
        opacity: 1;
    }
}
