/* Refonte 2026 : largeur de lecture sur grands écrans.
   En 2017 le contenu s'étalait sur toute la largeur : sur un écran large,
   texte collé à gauche, photo à l'extrême droite, grand vide au milieu. */

/* ==========================================================================
   Titres et introductions des pages sans bandeau (Références, Équipe, Contact)
   ========================================================================== */

.lb-titre-page,
#persons_top_text h2,
.page-id-34 .entry-content h2,
.page-id-1299 .entry-content h2 {
    font-family: josefinsans-sb, sans-serif!important;
    font-size: clamp(30px, 3vw, 42px)!important;
    font-style: normal!important;
    line-height: 1.15!important;
    letter-spacing: .02em!important;
    text-transform: none!important;
    text-align: center!important;
    color: #000!important;
    margin: 32px auto 24px!important;
}

.lb-titre-page {
    margin-bottom: 56px!important;
}

/* Contact (FR 34, EN 1299) : « Nous joindre » et « Nous écrire » en capitales, comme à l'origine */
.page-id-34 .entry-content h2,
.page-id-1299 .entry-content h2 {
    text-transform: uppercase!important;
    font-size: clamp(26px, 2.4vw, 34px)!important;
    letter-spacing: .06em!important;
    margin-top: 56px!important;
}

/* Mentions légales (FR 1022, EN 1834) : titre comme les autres pages, texte en colonne de lecture */
.page-id-1022 .entry-content h2,
.page-id-1834 .entry-content h2 {
    font-family: josefinsans-sb, sans-serif!important;
    font-size: clamp(26px, 2.4vw, 34px)!important;
    letter-spacing: .06em!important;
    text-align: center!important;
    margin: 32px auto 40px!important;
}

.page-id-1022 .ml-col,
.page-id-1834 .ml-col {
    float: none!important;
    width: auto!important;
    max-width: 760px!important;
    margin: 0 auto 48px!important;
    padding: 0 24px!important;
    box-sizing: border-box;
}

.page-id-1022 #ml-col2,
.page-id-1834 #ml-col2,
.page-id-1022 #ml-col2 p,
.page-id-1834 #ml-col2 p {
    text-align: left!important;
}

.page-id-1022 .ml-col h3,
.page-id-1834 .ml-col h3 {
    font-family: josefinsans-b, sans-serif!important;
    font-size: 22px!important;
    margin: 32px 0 10px!important;
    color: #000!important;
}

.page-id-1022 .ml-col p,
.page-id-1834 .ml-col p {
    font-family: josefinsans-r, sans-serif!important;
    font-size: 17px!important;
    line-height: 1.75!important;
    color: #222!important;
}

.page-id-1299 .entry-content p {
    font-family: josefinsans-r, sans-serif!important;
    font-size: 19px!important;
    line-height: 1.8!important;
    color: #222!important;
    text-align: center!important;
}

/* Introduction de l'équipe : colonne de lecture centrée */
#persons_top_text > div {
    max-width: 760px!important;
    padding: 0 24px;
    box-sizing: border-box;
}

#persons_top_text p,
.page-id-34 .entry-content p {
    font-family: josefinsans-r, sans-serif!important;
    font-size: 19px!important;
    line-height: 1.8!important;
    letter-spacing: .01em;
    color: #222!important;
    text-align: center!important;
}

#persons_top_text {
    margin-bottom: 64px;
}

/* ==========================================================================
   Fiches projet : même concept que Métiers (refonte 2026)
   - texte sur une colonne (520 px max) contre le centre de la page ;
   - photos du centre jusqu'au bord de l'écran, cadre à la hauteur du texte
     (+16 px de débord en haut et en bas), image centrée dans le cadre ;
   - 120 px entre les sections.
   1. texte | photo 1        2. photo 2 | texte + photo verticale        3. dernière photo entière
   ========================================================================== */

.single-projets article.projets {
    max-width: 1240px!important;
    margin: 0 auto;
    padding: 0 24px!important;
    box-sizing: border-box;
    --lb-debord: calc(max(0px, (100vw - 1240px) / 2) + 24px); /* du contenu au bord de l'écran */
}

.single-projets .entry-title {
    font-family: josefinsans-b, sans-serif!important;
    font-size: clamp(32px, 3.2vw, 46px)!important;
    line-height: 1.05!important;
    letter-spacing: .02em;
    margin: 0 0 12px!important;
}

.single-projets .entry-header a,
.single-projets .entry-header p {
    font-size: 12px!important;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #808080!important;
}

/* Texte : même typographie que Métiers */
.single-projets .text_block,
.single-projets .text_block > div {
    max-width: none!important;
    margin: 0!important;
}

.single-projets .text_block p,
.single-projets .text_block li {
    font-family: josefinsans-r, sans-serif!important;
    font-size: 19px!important;
    letter-spacing: .01em;
    line-height: 1.8!important;
    color: #222!important;
    text-align: left!important;
    margin: 0 0 1.1em!important;
}

.single-projets .text_block :last-child {
    margin-bottom: 0!important;
}

.single-projets .text_block strong,
.single-projets .text_block b {
    font-family: josefinsans-sb, sans-serif;
    color: #000;
}

/* Par défaut (mobile) : photos entières, l'une sous l'autre */
.single-projets .img_block {
    position: static!important;
    margin: 0!important;
    width: 100%!important;
}

.single-projets .img_block img {
    position: static!important;
    display: block;
    width: 100%!important;
    height: auto!important;
    max-width: 100%!important;
}

@media screen and (max-width: 770px) {
    .single-projets .entry-header { margin: 24px 0 32px; }
    .single-projets .desc_1_container,
    .single-projets .desc_2_container { display: flex!important; flex-direction: column; gap: 32px; margin: 0 0 48px!important; }
}

@media screen and (min-width: 771px) {
    /* En-tête aligné sur la colonne de texte */
    .single-projets .entry-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 72px;
        margin: 40px 0 48px;
    }

    .single-projets .entry-header > * {
        grid-column: 1;
        justify-self: end;
        width: 100%;
        max-width: 520px;
    }

    .single-projets .desc_1_container,
    .single-projets .desc_2_container {
        display: grid!important;
        grid-template-columns: 1fr 1fr;
        column-gap: 72px;
        min-height: 0!important;
        margin: 0 0 120px!important;
    }

    /* Section 1 : texte | photo vers le bord droit */
    .single-projets .desc_1_container > .text_block {
        justify-self: end;
        width: 100%;
        max-width: 520px!important;
    }

    /* Section 2 : photo vers le bord gauche | texte puis photo verticale */
    .single-projets .desc_2_container {
        grid-template-areas:
            "photo texte"
            "photo portrait";
        grid-template-rows: auto 1fr;
        row-gap: 48px;
    }

    .single-projets .desc_2_container > .img_block:first-child { grid-area: photo; }
    .single-projets .desc_2_container > .text_block            { grid-area: texte; }
    .single-projets .desc_2_container > .img_block:last-child:not(:first-child) {
        grid-area: portrait;
        max-width: 420px;
    }

    .single-projets .desc_2_container > .text_block {
        width: 100%;
        max-width: 520px!important;
    }

    /* Cadres des grandes photos : hauteur du texte d'en face + 16 px de débord en haut et en bas */
    .single-projets .desc_1_container > .img_block,
    .single-projets .desc_2_container > .img_block:first-child {
        position: relative!important;
        min-height: 420px;
    }

    .single-projets .desc_1_container > .img_block img,
    .single-projets .desc_2_container > .img_block:first-child img {
        position: absolute!important;
        top: -16px;
        height: calc(100% + 32px)!important;
        width: calc(100% + var(--lb-debord))!important;
        max-width: none!important;
        object-fit: cover;
        object-position: center;
    }

    .single-projets .desc_1_container > .img_block img {
        left: 0;
    }

    .single-projets .desc_2_container > .img_block:first-child img {
        right: 0;
    }

    /* Section 3 : dernière photo entière, sur toute la largeur du contenu.
       Elle ne déborde pas : 104 px au-dessus = 88 px visibles, comme entre les autres sections. */
    .single-projets .desc_2_container:has(+ .desc_3_container) {
        margin-bottom: 104px!important;
    }

    .single-projets .desc_3_container {
        margin: 0 0 120px;
    }
}

/* ==========================================================================
   Pages à bandeau (Métiers, Identité & valeurs) : sections texte | photo
   - texte sur une seule colonne (520 px max), collé vers le centre de la page ;
   - photo du centre jusqu'au bord de l'écran, cadre à la hauteur exacte du texte,
     image centrée dans ce cadre (object-fit: cover) ;
   - sections espacées régulièrement, côtés alternés comme dans le contenu.
   ========================================================================== */

.entry-content:has(.lb-bandeau) > #text_content {
    max-width: 1240px;
    margin: 0 auto!important;
    padding: 0 24px;
    box-sizing: border-box;
    --lb-debord: calc(max(0px, (100vw - 1240px) / 2) + 24px); /* du contenu au bord de l'écran */
}

/* Typographie commune à toutes les pages à bandeau (même que les fiches projet) */
.entry-content:has(.lb-bandeau) > :not(.lb-bandeau) p,
.entry-content:has(.lb-bandeau) > :not(.lb-bandeau) li {
    font-family: josefinsans-r, sans-serif!important; /* Regular : le Light gris était trop pâle */
    font-size: 19px!important;
    letter-spacing: .01em;
    line-height: 1.8!important;
    color: #222!important;
    text-align: left!important;
}

.entry-content:has(.lb-bandeau) > :not(.lb-bandeau) strong,
.entry-content:has(.lb-bandeau) > :not(.lb-bandeau) b {
    font-family: josefinsans-sb, sans-serif;
    color: #000;
}

/* ---------- « L'atout » : un seul encadré (étiquette + texte regroupés par inc/bandeaux.php) ---------- */
.entry-content .lb-atout {
    margin: 48px 0 8px;
    padding: 36px 44px 38px;
    background: #f5f2ec;
}

/* aside…p.… : plus spécifique que la règle du texte courant (Regular), sinon l'intitulé sortait maigre */
.entry-content aside.lb-atout p.lb-atout__titre {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px!important;
    font-family: josefinsans-b, sans-serif!important;
    font-size: 18px!important;
    line-height: 1!important;
    letter-spacing: .16em!important;
    text-transform: uppercase;
    color: #000!important;
}

.entry-content aside.lb-atout p.lb-atout__titre::before {
    content: "";
    width: 32px;
    height: 2px;
    background: #000;
    flex: none;
}

.entry-content .lb-atout p:not(.lb-atout__titre) {
    margin: 0!important;
    padding: 0!important;
    font-size: 20px!important;
    line-height: 1.7!important;
    color: #111!important;
    text-align: left!important;
}

@media screen and (max-width: 600px) {
    .entry-content .lb-atout {
        padding: 24px 22px 26px;
    }

    .entry-content .lb-atout p:not(.lb-atout__titre) {
        font-size: 18px!important;
    }
}

/* ---------- Identité & valeurs : une seule colonne de lecture centrée ---------- */
.entry-content:has(.lb-bandeau) #identite_col,
.entry-content:has(.lb-bandeau) #identite_col2 {
    max-width: 760px!important;
    margin: 0 auto 96px!important;
    padding: 0 24px;
    box-sizing: border-box;
}

.entry-content:has(.lb-bandeau) #identite_col .su-row,
.entry-content:has(.lb-bandeau) #identite_col .su-column,
.entry-content:has(.lb-bandeau) #identite_col .su-column-inner {
    display: block!important;
    width: auto!important;
    max-width: none!important;
    float: none!important;
    margin: 0!important;
    padding: 0!important;
}

/* Sous-rubriques (« L'écoute & le conseil »…) : vrais intertitres dans le style des titres */
.entry-content:has(.lb-bandeau) #identite_col p > strong:first-child:has(+ br) {
    display: block!important;
    margin: 40px 0 8px!important;
    font-family: josefinsans-b, sans-serif!important; /* !important : le thème force .entry-content strong */
    font-size: 24px!important;
    line-height: 1.25!important;
    letter-spacing: 0!important;
    color: #000!important;
}

.entry-content:has(.lb-bandeau) #identite_col p > strong:first-child:has(+ br) + br {
    display: none;
}

.entry-content:has(.lb-bandeau) #identite_col img,
.entry-content:has(.lb-bandeau) #identite_col2 img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 48px auto!important;
}

/* Partenariat : centré, intitulé en petites capitales */
.entry-content:has(.lb-bandeau) #identite_col2 p {
    text-align: center!important;
}

/* Liste des partenaires (architectes, banques, notaires…) : texte fin, catégories en noir */
.entry-content:has(.lb-bandeau) #identite_col3 {
    max-width: 960px!important;
    margin: 0 auto 120px!important;
    padding: 40px 24px 0;
    border-top: 1px solid #ddd;
    box-sizing: border-box;
}

.entry-content:has(.lb-bandeau) #identite_col3 p,
.entry-content:has(.lb-bandeau) #identite_col3 span {
    font-size: 13px!important;
    line-height: 2.1!important;
    letter-spacing: .03em;
    color: #666!important;
    text-align: center!important;
}

.entry-content:has(.lb-bandeau) #identite_col3 strong {
    color: #000;
    letter-spacing: .12em;
}

.entry-content:has(.lb-bandeau) #text_content h1 {
    text-align: left!important;
    margin: 0 0 24px!important;
}

/* Texte découpé en deux sous-colonnes en 2017 : remis en une seule colonne */
.entry-content:has(.lb-bandeau) #text_content [id$="_inner_rows"],
.entry-content:has(.lb-bandeau) #text_content .su-column-inner:has(> .colimn) {
    display: block!important;
}

.entry-content:has(.lb-bandeau) #text_content .colimn {
    flex: none!important;
    float: none!important;
    width: auto!important;
    max-width: none!important;
    margin: 0!important;
    padding: 0!important;
}

/* « L'atout » : petit intertitre aligné sur le texte, précédé d'un filet */
.entry-content:has(.lb-bandeau) #text_content .atout {
    display: block!important;
    width: auto!important;
    margin: 32px 0 10px!important;
    padding: 14px 0 0!important;
    border-top: 1px solid #000;
    max-width: 48px;
    white-space: nowrap;
    font-family: josefinsans-sb, sans-serif!important;
    font-size: 14px!important;
    letter-spacing: .14em;
}

@media screen and (min-width: 771px) { /* 771 px : seuil où le thème passe en deux colonnes */
    .entry-content:has(.lb-bandeau) #text_content .su-row {
        display: grid!important;
        grid-template-columns: 1fr 1fr;
        gap: 72px;
        align-items: stretch;
        margin: 0 0 120px!important;
    }

    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column {
        width: auto!important;
        margin: 0!important;
        padding: 0!important;
        float: none!important;
    }

    /* Colonne texte : une seule colonne, contre le centre de la page.
       Aucun blanc en haut ni en bas : la photo d'en face commence au haut du titre
       et s'arrête à la fin du bloc (même alignement pour toutes les sections). */
    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column:not(.desktop_content) > .su-column-inner {
        max-width: 520px!important;
        padding: 0!important;
        display: flow-root;
    }

    .entry-content:has(.lb-bandeau) #text_content .su-row h1 {
        margin-top: 0!important;
        line-height: 1.05!important;
    }

    /* Sous le bandeau : même blanc visible qu'entre deux sections (120 px - 2 × 16 px de débord = 88 px) */
    .entry-content:has(.lb-bandeau) > .su-spacer {
        display: none!important;
    }

    .entry-content:has(.lb-bandeau) > #text_content {
        padding-top: 104px!important; /* 88 px visibles au-dessus de la photo, qui déborde de 16 px */
    }
}

/* Restes de l'ancien contenu autour du bandeau (paragraphe vide au-dessus, saut de ligne dessous) */
.entry-content > p:has(+ .lb-bandeau),
.entry-content > .lb-bandeau + br,
.entry-content:has(.lb-bandeau) > p:empty {
    display: none!important;
}

/* Téléphone : sous le bandeau, même blanc que sur Identité & valeurs (48 px) */
@media screen and (max-width: 770px) {
    .entry-content:has(.lb-bandeau) > .su-spacer,
    .entry-content:has(.lb-bandeau) #text_content p:empty {
        display: none!important;
    }
    .entry-content:has(.lb-bandeau) > #text_content {
        padding-top: 48px!important;
    }
    .entry-content:has(.lb-bandeau) #text_content .su-row:first-child > .su-column:first-child {
        padding-top: 0!important;
    }
    .entry-content:has(.lb-bandeau) #text_content .su-row:first-child > .su-column:first-child .su-column-inner > p:first-child:not(:has(*)) {
        display: none!important;
    }

    /* Le bloc texte d'Asset management avait 100 px de marge haute */
    .entry-content:has(.lb-bandeau) #text_content [id$="_inner_rows"] {
        margin: 0!important;
        padding: 0!important;
    }

    /* Le « clearfix » du thème devenait une rangée de grille vide (+72 px sous chaque section) */
    .entry-content:has(.lb-bandeau) #text_content .su-row::before,
    .entry-content:has(.lb-bandeau) #text_content .su-row::after {
        display: none!important;
    }

    /* Paragraphes invisibles en ordinateur (photo réservée au mobile, paragraphes vides) */
    .entry-content:has(.lb-bandeau) #text_content p:has(> img.mobile_content:only-child),
    .entry-content:has(.lb-bandeau) #text_content p:empty {
        display: none!important;
    }

    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column:not(.desktop_content) .lb-atout {
        margin-bottom: 0;
    }

    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column:not(.desktop_content) .su-column-inner > :last-child,
    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column:not(.desktop_content) .colimn:last-child > :last-child,
    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column:not(.desktop_content) [id$="_inner_rows"] > :last-child {
        margin-bottom: 0!important;
    }

    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column:not(.desktop_content):first-child > .su-column-inner {
        margin: 0 0 0 auto!important;
    }

    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column:not(.desktop_content):last-child > .su-column-inner {
        margin: 0 auto 0 0!important;
    }

    /* Colonne photo : le cadre suit la hauteur du texte */
    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column.desktop_content {
        position: relative;
        min-height: 360px;
    }

    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column.desktop_content > .su-column-inner {
        position: absolute!important;
        top: -16px!important;
        bottom: auto!important;
        height: calc(100% + 32px)!important; /* hauteur du texte d'en face + 16 px de débord en haut et en bas */
        min-height: 0!important;
        padding: 0!important;
        width: calc(100% + var(--lb-debord))!important;
        max-width: none!important;
        overflow: hidden!important;
        margin: 0!important;
    }

    /* Photo à droite : vers le bord droit ; photo à gauche : vers le bord gauche */
    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column.desktop_content:last-child > .su-column-inner {
        left: 0;
    }

    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column.desktop_content:first-child > .su-column-inner {
        right: 0;
    }

    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column.desktop_content img {
        position: absolute!important;
        inset: 0;
        width: 100%!important;
        height: 100%!important;
        max-width: none!important;
        margin: 0!important;
        float: none!important;
        object-fit: cover;
        object-position: center;
    }

    .entry-content:has(.lb-bandeau) #text_content .su-row > .su-column.desktop_content br {
        display: none;
    }
}


/* Mobile : texte un peu plus petit pour ne pas allonger les pages */
@media screen and (max-width: 600px) {
    .single-projets .text_block p,
    .single-projets .text_block li,
    .entry-content:has(.lb-bandeau) > :not(.lb-bandeau) p,
    .entry-content:has(.lb-bandeau) > :not(.lb-bandeau) li {
        font-size: 17px!important;
        line-height: 1.75!important;
    }

    .entry-content:has(.lb-bandeau) .atout + p {
        font-size: 18px!important;
    }
}

/* ==========================================================================
   ÉCHELLE TYPOGRAPHIQUE UNIQUE (dernière section : elle prime sur tout le reste)
   Une seule taille par rôle, sur toutes les pages. Ancrée sur #page, le conteneur
   de tout le site, pour l'emporter sur les règles de 2017 (.page-id-82 …).
   ========================================================================== */

:root {
    --lb-t-bandeau: 44px;   /* titre de bandeau : « Souplesse & dynamisme » */
    --lb-t-titre: 36px;     /* titre de page / section : Investissement, Prysm, Nos références */
    --lb-t-inter: 24px;     /* intertitre : « L'écoute & le conseil », rubriques des mentions */
    --lb-t-nom: 20px;       /* nom sur une vignette : projets, équipe */
    --lb-t-texte: 19px;     /* texte courant, partout */
    --lb-t-second: 16px;    /* information secondaire : fonction, adresse d'un projet */
    --lb-t-etiquette: 18px; /* étiquette d'encadré : « L'atout » */
    --lb-t-petit: 14px;     /* petites capitales : mots-clés, titres du footer, partenaires */
}

@media screen and (max-width: 600px) {
    :root {
        --lb-t-bandeau: 32px;
        --lb-t-titre: 28px;
        --lb-t-inter: 21px;
        --lb-t-nom: 18px;
        --lb-t-texte: 17px;
        --lb-t-second: 15px;
        --lb-t-etiquette: 16px;
        --lb-t-petit: 13px;
    }
}

/* Petits téléphones : les titres en capitales (« CO-INVESTISSEMENT ») tiennent sur la largeur */
@media screen and (max-width: 400px) {
    :root {
        --lb-t-bandeau: 28px;
        --lb-t-titre: 24px;
    }
}

/* Titre de bandeau */
#page .lb-bandeau .lb-bandeau__titre {
    font-family: josefinsans-b, sans-serif!important;
    font-size: var(--lb-t-bandeau)!important;
    line-height: 1.1!important;
}

/* Titres de page et de section */
#page #text_content h1,
#page .entry-header .entry-title,
#page .lb-titre-page,
#page #persons_top_text h2,
.page-id-34 #page .entry-content h2,
.page-id-1299 #page .entry-content h2,
.page-id-1022 #page .entry-content h2,
.page-id-1834 #page .entry-content h2 {
    font-family: josefinsans-b, sans-serif!important;
    font-size: var(--lb-t-titre)!important;
    line-height: 1.1!important;
}

/* Intertitres */
#page #identite_col p > strong:first-child:has(+ br),
#page .ml-col h3 {
    font-family: josefinsans-b, sans-serif!important;
    font-size: var(--lb-t-inter)!important;
    line-height: 1.25!important;
}

/* Noms sur les vignettes (Références, Équipe) */
#page .projets_desc h2,
#page .person_name,
#page .person_name span {
    font-size: var(--lb-t-nom)!important;
    line-height: 1.25!important;
}

#page .person_name .last_name {
    font-family: josefinsans-b, sans-serif!important;
}

/* Informations secondaires : fonction, adresse d'un projet */
#page .person_function,
#page #projets_content .projets_desc div,
#page #projets_content .projets_desc div p,
#page #projets_content .projets_info {
    font-family: josefinsans-r, sans-serif!important;
    font-size: var(--lb-t-second)!important;
    line-height: 1.5!important;
}

/* Texte courant : bandeaux, pages, fiches projet, encadrés */
#page .lb-bandeau--page p,
#page .entry-content p:not(.lb-atout__titre):not(.lb-recaptcha-mention):not(.person_name):not(.person_function),
#page .entry-content li,
#page .text_block p,
#page .text_block li,
#page #persons_top_text p,
#page .lb-atout p:not(.lb-atout__titre) {
    font-family: josefinsans-r, sans-serif!important;
    font-size: var(--lb-t-texte)!important;
    line-height: 1.8!important;
}

/* Étiquette de l'encadré « L'atout » */
#page aside.lb-atout p.lb-atout__titre {
    font-family: josefinsans-b, sans-serif!important;
    font-size: var(--lb-t-etiquette)!important;
}

/* Petites capitales : mots-clés des projets, titres du footer, liste des partenaires */
#page .entry-header a,
#page .entry-header p,
#page .lb-footer__titre,
#page #identite_col3 p,
#page #identite_col3 span {
    font-size: var(--lb-t-petit)!important;
}

/* Fragments du texte saisis avec une taille en ligne dans l'éditeur (font-size: 10pt…) :
   ils prennent la taille de leur paragraphe */
#page .entry-content p :is(span, strong, b, em, a),
#page .text_block :is(p, li) :is(span, strong, b, em, a),
#page .entry-content li :is(span, strong, b, em, a) {
    font-size: inherit!important;
    line-height: inherit!important;
}

/* ==========================================================================
   Identité & valeurs (contenu réécrit en 2026 : sections, H2/H3, chiffres, partenaires)
   ========================================================================== */

#page #identite_page {
    padding-top: 88px;
}

#page #identite_page > .lb-id-section {
    max-width: 760px;
    margin: 0 auto 88px;
    padding: 0 24px;
    box-sizing: border-box;
}

#page #identite_page h2 {
    font-family: josefinsans-b, sans-serif!important;
    font-size: var(--lb-t-titre)!important;
    line-height: 1.1!important;
    text-align: left!important;
    color: #000!important;
    margin: 0 0 28px!important;
}

#page #identite_page h3 {
    font-family: josefinsans-b, sans-serif!important;
    font-size: var(--lb-t-inter)!important;
    line-height: 1.25!important;
    color: #000!important;
    margin: 40px 0 10px!important;
}

/* Chapeau : première phrase mise en avant */
#page #identite_page p.lb-chapo {
    font-size: calc(var(--lb-t-texte) + 4px)!important;
    line-height: 1.6!important;
    color: #000!important;
    margin-bottom: 20px!important;
}

/* Les 4 critères d'investissement : liste numérotée 01 → 04 */
#page #identite_page ol.lb-criteres {
    list-style: none;
    counter-reset: critere;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0 32px!important;
    padding: 0!important;
}

#page #identite_page ol.lb-criteres li {
    counter-increment: critere;
    position: relative;
    margin: 0!important;
    padding: 24px 24px 24px 76px;
    background: #f5f2ec;
    font-size: var(--lb-t-second)!important;
    line-height: 1.55!important;
    color: #444!important;
}

#page #identite_page ol.lb-criteres li::before {
    content: counter(critere, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 22px;
    font-family: josefinsans-b, sans-serif;
    font-size: 26px;
    line-height: 1;
    color: #a99f84;
}

#page #identite_page ol.lb-criteres li strong {
    display: block;
    margin-bottom: 4px;
    font-size: var(--lb-t-texte)!important;
    color: #000;
}

/* LEFT BANK en chiffres : bandeau pleine largeur */
#page #identite_page .lb-chiffres {
    width: 100vw;
    margin: 0 0 88px calc(50% - 50vw);
    padding: 72px 24px;
    background: #f5f2ec;
    box-sizing: border-box;
    text-align: center;
}

#page #identite_page .lb-chiffres h2 {
    text-align: center!important;
    margin-bottom: 48px!important;
}

#page #identite_page .lb-chiffres__grille {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
    max-width: 1000px;
    margin: 0 auto!important;
    padding: 0!important;
}

#page #identite_page .lb-chiffres__grille li {
    margin: 0!important;
    text-align: center!important;
}

#page #identite_page .lb-chiffres__valeur {
    display: block;
    font-family: josefinsans-b, sans-serif!important;
    font-size: var(--lb-t-bandeau)!important;
    line-height: 1.1!important;
    color: #000;
}

#page #identite_page .lb-chiffres__libelle {
    display: block;
    margin-top: 6px;
    font-size: var(--lb-t-second)!important;
    line-height: 1.4!important;
    letter-spacing: .04em;
    color: #555;
}

#page #identite_page p.lb-chiffres__repartition {
    margin: 48px 0 0!important;
    text-align: center!important;
    font-size: var(--lb-t-second)!important;
    letter-spacing: .04em;
    color: #555!important;
}

/* Nos partenaires : métiers en grille, un nom par ligne */
#page #identite_page .lb-partenaires {
    max-width: 1240px;
    margin: 0 auto 120px;
    padding: 0 24px;
    box-sizing: border-box;
}

#page #identite_page .lb-partenaires h2 {
    text-align: center!important;
    margin-bottom: 48px!important;
}

#page #identite_page .lb-partenaires__grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 48px;
}

#page #identite_page .lb-partenaires__metier h3 {
    margin: 0 0 14px!important;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
    font-size: var(--lb-t-petit)!important;
    letter-spacing: .16em;
    text-transform: uppercase;
}

#page #identite_page .lb-partenaires__metier ul {
    list-style: none;
    margin: 0!important;
    padding: 0!important;
}

#page #identite_page .lb-partenaires__metier li {
    margin: 0!important;
    font-size: var(--lb-t-second)!important;
    line-height: 1.9!important;
    color: #333!important;
}

@media screen and (max-width: 900px) {
    #page #identite_page .lb-chiffres__grille,
    #page #identite_page .lb-partenaires__grille {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 600px) {
    #page #identite_page { padding-top: 48px; }
    #page #identite_page > .lb-id-section { margin-bottom: 56px; }
    #page #identite_page ol.lb-criteres { grid-template-columns: 1fr; }
    #page #identite_page .lb-chiffres { padding: 48px 20px; margin-bottom: 56px; }
}

/* ==========================================================================
   Pas de mot orphelin : lignes équilibrées pour les titres et textes centrés,
   dernière ligne jamais réduite à un mot pour les paragraphes.
   (complété côté PHP par des espaces insécables : inc/bandeaux.php)
   ========================================================================== */
#page h1, #page h2, #page h3,
#page .lb-bandeau p,
#page .lb-chapo,
#page #persons_top_text p,
#page .lb-chiffres__libelle,
#page .lb-footer__titre {
    text-wrap: balance;
}

#page p, #page li {
    text-wrap: pretty;
}

/* Titres : jamais coupés au milieu d'un mot (le thème parent force word-break: break-word) ;
   sur petit écran, un mot composé trop long peut passer à la ligne sur son trait d'union */
#page h1, #page h2, #page h3 {
    word-break: normal;
    overflow-wrap: normal;
}
@media screen and (max-width: 420px) {
    #page h1 .lb-insecable, #page h2 .lb-insecable { white-space: normal; }
}

/* ==========================================================================
   Menu d'en-tête : filet qui se déploie depuis le centre au survol,
   affiché sous la page en cours ; séparateurs en points médians discrets.
   (ordinateur uniquement : le menu mobile garde son propre style)
   ========================================================================== */
@media screen and (min-width: 769px) {
    #page ul[id*="menu-header-menu"] li:last-child::after {
        content: none!important; /* petit pavé gris décoratif de 2017 */
    }

    #page ul[id*="menu-header-menu"] li:not(:last-child)::after {
        content: "·"!important;
        color: #9a9a9a;
        font-size: 18px;
        top: 50%!important;
        transform: translateY(-50%);
    }

    #page ul[id*="menu-header-menu"] li a {
        position: relative;
        border-bottom: 0!important;
        padding-bottom: 6px!important;
        background: none!important;
        transition: color .3s ease;
    }

    #page ul[id*="menu-header-menu"] li a::after {
        content: "";
        position: absolute;
        left: 50%;
        right: 50%;
        bottom: 0;
        height: 1px;
        background: #000;
        transition: left .35s ease, right .35s ease;
    }

    #page ul[id*="menu-header-menu"] li a:hover::after,
    #page ul[id*="menu-header-menu"] li a:focus-visible::after,
    #page ul[id*="menu-header-menu"] li.current-menu-item a::after,
    #page ul[id*="menu-header-menu"] li.current-menu-ancestor a::after {
        left: 1em;
        right: 1em;
    }

    #page ul[id*="menu-header-menu"] li a:hover {
        color: #000!important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #page ul[id*="menu-header-menu"] li a,
    #page ul[id*="menu-header-menu"] li a::after {
        transition: none;
    }
}

/* Identité & valeurs : titres en majuscules, comme les sections de Métiers */
#page #identite_page h2 {
    text-transform: uppercase;
    letter-spacing: .02em!important;
}

/* Mot composé dans un titre (co-investissement) : jamais coupé sur le trait d'union */
.lb-insecable {
    white-space: nowrap;
}

/* ==========================================================================
   Fiches projet : navigation « Projet précédent / Projet suivant »
   Sens en petites capitales, nom du projet dessous, flèche qui glisse vers
   l'extérieur et filet qui se déploie sous le nom au survol.
   ========================================================================== */
#page .post_nav_container {
    width: auto!important;
    min-width: 200px;
    height: auto!important;
    align-self: center;
}

#page .post_nav_container:last-child {
    justify-content: flex-end;
}

#page .mwdc_post_nav,
#page .mwdc_post_nav.mwdc_dotted_broder {
    border: 0!important;
    padding: 0!important;
    margin: 0!important;
}

#page .mwdc_post_nav > span {
    display: none!important; /* tirets décoratifs de 2017 */
}

#page a.lb-projet-nav {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 0!important;
    border: 0!important;
    background: none!important;
    color: #000!important;
    text-decoration: none!important;
}

#page a.lb-projet-nav--suiv {
    align-items: flex-end;
    text-align: right;
}

#page .lb-projet-nav__sens {
    font-family: josefinsans-sb, sans-serif;
    font-size: var(--lb-t-petit);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #777;
    transition: color .3s ease;
}

#page .lb-projet-nav__fleche {
    display: inline-block;
    letter-spacing: 0;
    transition: transform .35s ease;
}

#page .lb-projet-nav__nom {
    position: relative;
    font-family: josefinsans-b, sans-serif;
    font-size: var(--lb-t-nom);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-bottom: 6px;
}

#page .lb-projet-nav__nom::after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 1px;
    width: 0;
    background: #000;
    transition: width .35s ease;
}

#page .lb-projet-nav--prec .lb-projet-nav__nom::after { left: 0; }
#page .lb-projet-nav--suiv .lb-projet-nav__nom::after { right: 0; }

#page a.lb-projet-nav:hover .lb-projet-nav__sens,
#page a.lb-projet-nav:focus-visible .lb-projet-nav__sens {
    color: #000;
}

#page a.lb-projet-nav--prec:hover .lb-projet-nav__fleche,
#page a.lb-projet-nav--prec:focus-visible .lb-projet-nav__fleche {
    transform: translateX(-6px);
}

#page a.lb-projet-nav--suiv:hover .lb-projet-nav__fleche,
#page a.lb-projet-nav--suiv:focus-visible .lb-projet-nav__fleche {
    transform: translateX(6px);
}

#page a.lb-projet-nav:hover .lb-projet-nav__nom::after,
#page a.lb-projet-nav:focus-visible .lb-projet-nav__nom::after {
    width: 100%;
}

/* Premier ou dernier projet : le sens reste visible, estompé, non cliquable */
#page .mwdc_post_nav.disabled a.lb-projet-nav {
    opacity: .3;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #page .lb-projet-nav__fleche,
    #page .lb-projet-nav__nom::after {
        transition: none;
    }
}

@media screen and (min-width: 769px) {
    .single #page #header_nav_wrapper {
        padding: 0 clamp(24px, 4vw, 64px)!important;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Projets sans photo (ex. Les Champs) : vignette typographique dans Références,
   texte centré en une colonne sur la fiche
   ========================================================================== */
#page .lb-vignette-vide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 299px;
    aspect-ratio: 299 / 386;
    padding: 24px;
    box-sizing: border-box;
    background: #f5f2ec;
    text-align: center;
}

#page .lb-vignette-vide > span {
    position: relative;
    padding-top: 22px;
    font-family: josefinsans-b, sans-serif;
    font-size: var(--lb-t-nom);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #000;
}

#page .lb-vignette-vide > span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 32px;
    height: 2px;
    margin-left: -16px;
    background: #000;
}

/* Au survol, le voile du nom (prévu pour les photos) n'a pas lieu d'être */
#page .projet_img--sans-photo .projets_desc {
    background: rgba(245, 242, 236, .9);
}

@media screen and (min-width: 771px) {
    .single-projets #page .desc_1_container:not(:has(> .img_block)) {
        grid-template-columns: minmax(0, 760px);
        justify-content: center;
    }

    .single-projets #page .desc_1_container:not(:has(> .img_block)) > .text_block {
        justify-self: stretch;
        max-width: none!important;
    }

    .single-projets #page article.projets:not(:has(.img_block)) .entry-header {
        grid-template-columns: minmax(0, 760px);
        justify-content: center;
    }

    .single-projets #page article.projets:not(:has(.img_block)) .entry-header > * {
        justify-self: stretch;
        max-width: none;
    }

    .single-projets #page .desc_2_container:not(:has(> .img_block)) {
        grid-template-columns: minmax(0, 760px);
        grid-template-areas: "texte";
        justify-content: center;
    }

    .single-projets #page .desc_2_container:not(:has(> .img_block)) > .text_block {
        max-width: none!important;
    }

    /* Bloc sans texte ni photo : pas d'espace vide */
    .single-projets #page .desc_2_container:not(:has(> .img_block)):not(:has(.text_block :is(p, li, div):not(:empty))) {
        display: none!important;
    }
}

/* ==========================================================================
   TITRE PRINCIPAL DE CHAQUE PAGE : même taille, majuscules, même position.
   Le haut du titre est toujours à --lb-titre-y du haut de la page (ordinateur).
   ========================================================================== */
:root {
    --lb-titre-y: 400px;
}

#page .lb-bandeau .lb-bandeau__titre,
#page .lb-titre-page,
#page #persons_top_text h2,
.single-projets #page .entry-header .entry-title,
.page-id-34 #page .entry-content > h2:first-of-type,
.page-id-1299 #page .entry-content > h2:first-of-type,
.page-id-1022 #page .entry-content > h2:first-of-type,
.page-id-1834 #page .entry-content > h2:first-of-type {
    font-family: josefinsans-b, sans-serif!important;
    font-size: var(--lb-t-bandeau)!important;
    line-height: 1.1!important;
    letter-spacing: .04em!important;
    text-transform: uppercase!important;
    margin-top: 0!important;
}

@media screen and (min-width: 769px) {
    /* Pages à bandeau : le titre n'est plus centré verticalement mais calé à la même hauteur */
    #page .lb-bandeau--page {
        align-items: flex-start;
        height: auto;
        min-height: 0;
    }

    #page .lb-bandeau--page .lb-bandeau__contenu {
        padding: var(--lb-titre-y) 24px 120px!important;
    }

    /* Pages sans bandeau : rien au-dessus du titre ne décale sa position */
    body:not(:has(.lb-bandeau)) #page #content,
    body:not(:has(.lb-bandeau)) #page #primary,
    body:not(:has(.lb-bandeau)) #page #main,
    body:not(:has(.lb-bandeau)) #page article,
    body:not(:has(.lb-bandeau)) #page .entry-content,
    body:not(:has(.lb-bandeau)) #page #persons_top_text,
    body:not(:has(.lb-bandeau)) #page #persons_top_text > div,
    .single-projets #page .entry-header {
        margin-top: 0!important;
        padding-top: 0!important;
    }

    /* Décalage calculé pour que le haut du titre tombe à --lb-titre-y */
    body:not(:has(.lb-bandeau)) #page #content {
        padding-top: var(--lb-decalage-titre, 0px)!important;
    }
}

@media screen and (min-width: 769px) {
    :root {
        --lb-decalage-titre: calc(var(--lb-titre-y) - 319px); /* 319 px = bas du menu d'en-tête */
    }
}

/* Navigation projet : restes du thème de 2017 */
#page .mwdc_post_nav > a.lb-projet-nav::after {
    content: none!important; /* filet de 120 px décalé à gauche sous « précédent » */
}

#page .desktop.mwdc_post_nav.disabled {
    display: block!important; /* masqué en 2017 : l'en-tête changeait d'une fiche à l'autre */
}

/* Téléphone : navigation entre références en bas de fiche (lb_nav_projets_mobile) */
.lb-nav-projets {
    display: none;
}

@media screen and (max-width: 768px) {
    #page .post_nav_container,
    #page .desktop.mwdc_post_nav,
    #page .desktop.mwdc_post_nav.disabled {
        display: none!important;
    }

    .lb-nav-projets {
        display: block;
        margin: 48px 24px 0;
        border-top: 1px solid #000;
        text-align: center;
    }

    .lb-nav-projets__liens {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #page a.lb-nav-projets__lien {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        min-height: 96px;
        padding: 18px 12px 18px 0;
        color: #000;
        text-align: left;
        text-decoration: none;
    }

    #page a.lb-nav-projets__lien--suiv {
        grid-column: 2;
        padding: 18px 0 18px 12px;
        text-align: right;
    }

    #page a.lb-nav-projets__lien--prec + a.lb-nav-projets__lien--suiv {
        border-left: 1px solid #ddd;
    }

    .lb-nav-projets__sens {
        font-size: var(--lb-t-petit);
        letter-spacing: .14em;
        text-transform: uppercase;
        color: #6b6b6b;
    }

    .lb-nav-projets__nom {
        font-family: josefinsans-b, sans-serif;
        font-size: var(--lb-t-nom);
        line-height: 1.2;
        text-transform: uppercase;
    }
}

/* Titres remontés (retour client) et titre de bandeau sur une seule ligne */
:root {
    --lb-titre-y: 360px;
}

#page .lb-bandeau .lb-bandeau__contenu {
    max-width: 960px!important;
}

#page .lb-bandeau--page .lb-bandeau__contenu p {
    max-width: 640px;
    margin-left: auto!important;
    margin-right: auto!important;
}

/* Équipe : titre long sur une ligne, introduction en colonne de lecture */
#page #persons_top_text > div {
    max-width: 1100px!important;
}

#page #persons_top_text p {
    max-width: 760px;
    margin-left: auto!important;
    margin-right: auto!important;
}

/* ==========================================================================
   Équipe : biographie au survol lisible. Voile sombre dégradé, texte blanc.
   La photo passe toujours en couleur au survol (filtre grayscale du thème conservé).
   ========================================================================== */
#page p.person_desc {
    align-items: flex-end;
    padding: 32px 28px!important;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .6) 55%, rgba(0, 0, 0, .25) 100%)!important;
    color: #fff!important;
    font-family: josefinsans-r, sans-serif!important;
    font-size: var(--lb-t-second)!important;
    line-height: 1.6!important;
    letter-spacing: .01em;
    text-align: left!important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    transition: opacity .4s ease;
}

#page p.person_desc * {
    color: #fff!important;
    font-size: inherit!important;
}

/* ==========================================================================
   Fiches projet : « Voir tous les projets » (vers Références)
   Grille de 4 carrés qui s'écartent au survol, filet qui se déploie sous le texte.
   ========================================================================== */
#page .lb-tous-projets {
    clear: both;
    display: flex;
    justify-content: center;
    padding: 24px 24px 120px;
}

#page a.lb-tous-projets__lien {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #000!important;
    text-decoration: none!important;
    border: 0!important;
}

#page .lb-tous-projets__grille {
    display: grid;
    grid-template-columns: repeat(2, 9px);
    gap: 4px;
    transition: gap .35s ease, transform .35s ease;
}

#page .lb-tous-projets__grille span {
    width: 9px;
    height: 9px;
    background: #000;
    transition: background .35s ease;
}

#page .lb-tous-projets__texte {
    position: relative;
    padding-bottom: 6px;
    font-family: josefinsans-sb, sans-serif;
    font-size: var(--lb-t-petit);
    letter-spacing: .16em;
    text-transform: uppercase;
}

#page .lb-tous-projets__texte::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 1px;
    background: #000;
    transition: left .35s ease, right .35s ease;
}

#page a.lb-tous-projets__lien:hover .lb-tous-projets__grille,
#page a.lb-tous-projets__lien:focus-visible .lb-tous-projets__grille {
    gap: 7px;
    transform: rotate(45deg);
}

#page a.lb-tous-projets__lien:hover .lb-tous-projets__grille span:nth-child(2),
#page a.lb-tous-projets__lien:hover .lb-tous-projets__grille span:nth-child(3) {
    background: #a99f84;
}

#page a.lb-tous-projets__lien:hover .lb-tous-projets__texte::after,
#page a.lb-tous-projets__lien:focus-visible .lb-tous-projets__texte::after {
    left: 0;
    right: 0;
}

@media (prefers-reduced-motion: reduce) {
    #page .lb-tous-projets__grille,
    #page .lb-tous-projets__grille span,
    #page .lb-tous-projets__texte::after {
        transition: none;
    }
}

/* ==========================================================================
   ACCUEIL : animation d'arrivée (une fois par visite, classe .lb-intro posée
   par inc/bandeaux.php). Sans la classe, tout s'affiche normalement.
   1. la photo sort du blanc avec un lent zoom arrière
   2. en même temps, le logo se dévoile de gauche à droite, flou qui se résorbe
   3. les rubriques apparaissent une à une, puis l'enveloppe
   ========================================================================== */
#page .lb-bandeau--accueil .lb-bandeau__filet {
    display: none;
}

.lb-intro #page .lb-bandeau--accueil .lb-bandeau__fond {
    animation: lb-photo 2.6s cubic-bezier(.4, 0, .2, 1) both;
}

.lb-intro #page .lb-bandeau--accueil .lb-bandeau__logo img {
    animation: lb-logo 2.6s cubic-bezier(.4, 0, .2, 1) both;
}

.lb-intro #page .lb-bandeau--accueil .lb-bandeau__menu a {
    animation: lb-monte .8s cubic-bezier(.2, .7, .2, 1) both;
}

.lb-intro #page .lb-bandeau--accueil .lb-bandeau__menu a:nth-child(1) { animation-delay: 1.9s; }
.lb-intro #page .lb-bandeau--accueil .lb-bandeau__menu a:nth-child(2) { animation-delay: 2.05s; }
.lb-intro #page .lb-bandeau--accueil .lb-bandeau__menu a:nth-child(3) { animation-delay: 2.2s; }
.lb-intro #page .lb-bandeau--accueil .lb-bandeau__menu a:nth-child(4) { animation-delay: 2.35s; }

.lb-intro #page .lb-bandeau--accueil .lb-bandeau__contact {
    animation: lb-monte .8s cubic-bezier(.2, .7, .2, 1) 2.6s both;
}

@keyframes lb-photo {
    from { opacity: 0; transform: scale(1.14); }
    35%  { opacity: 1; }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes lb-logo {
    from { clip-path: inset(0 100% 0 0); filter: blur(6px); opacity: .2; }
    60%  { filter: blur(0); opacity: 1; }
    to   { clip-path: inset(0 0 0 0); filter: blur(0); opacity: 1; }
}

@keyframes lb-monte {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Le fond blanc reste derrière la photo pendant son apparition */
#page .lb-bandeau--accueil {
    background: #fff;
}

/* Les séparateurs du menu d'accueil suivent leur rubrique (bordure gauche) */
.lb-intro #page .lb-bandeau--accueil .lb-bandeau__menu a + a {
    border-left-color: #000;
}

@media (prefers-reduced-motion: reduce) {
    .lb-intro #page .lb-bandeau--accueil * {
        animation: none!important;
    }
}

/* ==========================================================================
   RÉFÉRENCES (refonte 2026) : introduction, filtres, grille en quinconce
   ========================================================================== */
#page .lb-refs {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 120px;
    box-sizing: border-box;
}

#page .lb-titre-page {
    margin-bottom: 24px!important;
}

#page .lb-refs__intro {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

#page p.lb-refs__chapo {
    margin: 0 0 20px!important;
    font-size: calc(var(--lb-t-texte) + 2px)!important;
    line-height: 1.6!important;
    color: #222!important;
    text-align: center!important;
    text-wrap: balance;
}

#page p.lb-refs__compteur {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin: 0!important;
    font-family: josefinsans-sb, sans-serif!important;
    font-size: var(--lb-t-petit)!important;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #777!important;
}

#page .lb-refs__compteur span {
    font-family: josefinsans-b, sans-serif;
    font-size: var(--lb-t-titre);
    letter-spacing: 0;
    color: #000;
}

/* Filtres */
#page .lb-refs__filtres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 32px;
    margin: 0 0 72px;
    padding: 20px 0;
    border-top: 1px solid #e3ded3;
    border-bottom: 1px solid #e3ded3;
}

#page button.lb-refs__filtre {
    position: relative;
    padding: 6px 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: josefinsans-sb, sans-serif;
    font-size: var(--lb-t-petit);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #888;
    transition: color .3s ease;
}

#page button.lb-refs__filtre span {
    margin-left: 4px;
    font-size: 11px;
    color: #a99f84;
    vertical-align: super;
}

#page button.lb-refs__filtre::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 1px;
    background: #000;
    transition: left .35s ease, right .35s ease;
}

#page button.lb-refs__filtre:hover,
#page button.lb-refs__filtre[aria-pressed="true"] {
    color: #000;
}

#page button.lb-refs__filtre:hover::after,
#page button.lb-refs__filtre[aria-pressed="true"]::after {
    left: 0;
    right: 0;
}

/* Grille en quinconce : la colonne du milieu est décalée vers le bas */
#page ol.lb-refs__grille {
    display: grid!important;
    grid-template-columns: repeat(3, 1fr);
    gap: 72px 48px;
    list-style: none;
    margin: 0!important;
    padding: 0 0 120px!important;
    transition: opacity .25s ease;
}

#page ol.lb-refs__grille.lb-refs__grille--transition {
    opacity: 0;
}

#page .lb-ref {
    margin: 0!important;
    animation: lb-monte .6s cubic-bezier(.2, .7, .2, 1) both;
}

#page .lb-ref--decale {
    position: relative;
    top: 120px; /* et non transform : l'animation d'apparition utilise déjà transform */
}

#page .lb-ref[hidden] {
    display: none!important;
}

#page a.lb-ref__lien {
    display: block;
    color: #000!important;
    text-decoration: none!important;
    border: 0!important;
}

#page .lb-ref__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #f5f2ec;
}

#page .lb-ref__image img {
    display: block;
    width: 100%!important;
    height: 100%!important;
    max-width: none!important;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}

#page .lb-ref__image .lb-vignette-vide {
    max-width: none;
    height: 100%;
}

#page a.lb-ref__lien:hover .lb-ref__image img,
#page a.lb-ref__lien:focus-visible .lb-ref__image img {
    transform: scale(1.06);
}

/* Légende : numéro, nom, ville, typologie, lien */
#page .lb-ref__legende {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    padding-top: 20px;
}

#page .lb-ref__num {
    grid-row: 1 / span 4;
    font-family: josefinsans-b, sans-serif;
    font-size: var(--lb-t-titre);
    line-height: .9;
    color: #a99f84;
}

#page .lb-ref__nom {
    font-family: josefinsans-b, sans-serif;
    font-size: var(--lb-t-nom);
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

#page .lb-ref__lieu,
#page .lb-ref__type {
    font-size: var(--lb-t-second);
    line-height: 1.5;
    color: #555;
}

#page .lb-ref__type {
    font-size: var(--lb-t-petit);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #888;
}

#page .lb-ref__voir {
    position: relative;
    justify-self: start;
    margin-top: 12px;
    padding-bottom: 4px;
    font-family: josefinsans-sb, sans-serif;
    font-size: var(--lb-t-petit);
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .35s ease, transform .35s ease;
}

#page .lb-ref__voir::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #000;
}

#page a.lb-ref__lien:hover .lb-ref__voir,
#page a.lb-ref__lien:focus-visible .lb-ref__voir {
    opacity: 1;
    transform: none;
}

/* Écrans tactiles : pas de survol, le lien reste visible */
@media (hover: none) {
    #page .lb-ref__voir {
        opacity: 1;
        transform: none;
    }
}

@media screen and (max-width: 900px) {
    #page ol.lb-refs__grille {
        grid-template-columns: repeat(2, 1fr);
        gap: 56px 24px;
    }

    #page .lb-ref--decale {
        top: 0;
    }
}

@media screen and (max-width: 600px) {
    #page .lb-refs__filtres {
        gap: 4px 20px;
        margin-bottom: 40px;
    }

    #page ol.lb-refs__grille {
        gap: 40px 16px;
        padding-bottom: 64px!important;
    }

    #page .lb-ref__legende {
        grid-template-columns: 1fr;
    }

    #page .lb-ref__num {
        grid-row: auto;
        font-size: var(--lb-t-nom);
        margin-bottom: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #page .lb-ref,
    #page .lb-ref__image img,
    #page ol.lb-refs__grille {
        animation: none;
        transition: none;
    }
}

/* Photos d'architecture recadrées : le ciel occupe le haut, le bâtiment le bas.
   Le point de cadrage descend à 70 % pour garder le bâtiment plutôt que le ciel. */
.single-projets #page .desc_1_container > .img_block img,
.single-projets #page .desc_2_container > .img_block:first-child img,
#page .lb-ref__image img {
    object-position: 50% 70%!important;
}

/* Accueil, animations réduites par le système : simple fondu d'apparition */
.lb-intro-douce #page .lb-bandeau--accueil .lb-bandeau__contenu,
.lb-intro-douce #page .lb-bandeau--accueil .lb-bandeau__fond {
    animation: lb-fondu 1.2s ease both;
}

.lb-intro-douce #page .lb-bandeau--accueil .lb-bandeau__contenu {
    animation-delay: .4s;
}

@keyframes lb-fondu {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ==========================================================================
   ACCUEIL : survol du menu et de l'enveloppe
   Menu : un filet se déploie depuis le centre sous la rubrique, les autres s'estompent.
   Enveloppe : le rabat s'ouvre, « Nous contacter » monte et se souligne.
   ========================================================================== */
#page .lb-bandeau--accueil .lb-bandeau__menu a {
    position: relative;
    text-decoration: none;
    transition: opacity .35s ease;
}

#page .lb-bandeau--accueil .lb-bandeau__menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 40%;
    height: 1px;
    margin-left: -20%;
    background: currentColor;
    transform: scaleX(0);
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

#page .lb-bandeau--accueil .lb-bandeau__menu a:hover::after,
#page .lb-bandeau--accueil .lb-bandeau__menu a:focus-visible::after {
    transform: scaleX(1);
}

@media (hover: hover) {
    #page .lb-bandeau--accueil .lb-bandeau__menu:hover a:not(:hover) {
        opacity: .45;
    }
}

#page .lb-bandeau--accueil .lb-bandeau__contact svg {
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

#page .lb-bandeau--accueil .lb-enveloppe__rabat {
    transform-box: view-box;
    transform-origin: 50% 1px;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

#page .lb-bandeau--accueil .lb-bandeau__contact span {
    position: relative;
    padding-bottom: 6px;
    font-size: 12px;
    letter-spacing: .28em;
    transform: translateY(-6px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}

#page .lb-bandeau--accueil .lb-bandeau__contact span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 24px;
    height: 1px;
    margin-left: -12px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform .4s cubic-bezier(.2, .7, .2, 1) .15s;
}

#page .lb-bandeau--accueil .lb-bandeau__contact:hover svg,
#page .lb-bandeau--accueil .lb-bandeau__contact:focus-visible svg {
    transform: translateY(-3px);
}

#page .lb-bandeau--accueil .lb-bandeau__contact:hover .lb-enveloppe__rabat,
#page .lb-bandeau--accueil .lb-bandeau__contact:focus-visible .lb-enveloppe__rabat {
    transform: scaleY(-1);
}

#page .lb-bandeau--accueil .lb-bandeau__contact:hover span,
#page .lb-bandeau--accueil .lb-bandeau__contact:focus-visible span {
    transform: translateY(0);
}

#page .lb-bandeau--accueil .lb-bandeau__contact:hover span::after,
#page .lb-bandeau--accueil .lb-bandeau__contact:focus-visible span::after {
    transform: scaleX(1);
}

@media screen and (max-width: 600px) {
    #page .lb-bandeau--accueil .lb-bandeau__contact span {
        transform: none;
    }
}

/* ==========================================================================
   CONTACT (refonte 2026, inc/contact.php) : coordonnées | formulaire.
   Remplace la carte Google Maps de 2017 (clé d'API hors service).
   ========================================================================== */
#page .lb-contact {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 620px);
    justify-content: center;
    gap: 120px;
    max-width: 1240px;
    margin: 56px auto 120px;
    padding: 0 24px;
    box-sizing: border-box;
    text-align: left;
}

#page .lb-contact__infos {
    padding-top: 12px;
}

#page .lb-contact__adresse {
    margin: 0 0 28px;
    font-style: normal;
    font-size: calc(var(--lb-t-texte) + 4px);
    line-height: 1.5;
    color: #000;
}

#page .lb-contact__infos p {
    margin: 0 0 6px!important;
    text-align: left!important;
}

#page .lb-contact__infos a {
    color: #000;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .35s ease;
}

#page .lb-contact__infos a:hover,
#page .lb-contact__infos a:focus-visible {
    background-size: 100% 1px;
}

#page p.lb-contact__etiquette {
    margin: 36px 0 12px!important;
    font-family: josefinsans-b, sans-serif;
    font-size: var(--lb-t-petit)!important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #000;
}

#page p.lb-contact__metro {
    font-size: var(--lb-t-second)!important;
}

#page .lb-contact__m {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    border: 1px solid #000;
    border-radius: 50%;
    font-size: 11px;
    vertical-align: 1px;
}

#page a.lb-contact__itineraire {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 22px 10px;
    border: 1px solid #000;
    font-size: var(--lb-t-petit);
    letter-spacing: .14em;
    text-transform: uppercase;
    background: none;
    transition: background-color .3s ease, color .3s ease;
}

#page a.lb-contact__itineraire:hover,
#page a.lb-contact__itineraire:focus-visible {
    background: #000;
    color: #fff;
}

#page .lb-contact__itineraire span {
    display: inline-block;
    transition: transform .3s ease;
}

#page .lb-contact__itineraire:hover span {
    transform: translateX(4px);
}

/* « Nous écrire » : intertitre aligné sur le formulaire, pas un second grand titre */
#page .lb-contact__ecrire h2.lb-contact__titre {
    margin: 0 0 24px!important;
    font-size: var(--lb-t-petit)!important;
    letter-spacing: .14em!important;
    text-align: left!important;
}

@media screen and (max-width: 900px) {
    #page .lb-contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 72px;
    }

    #page .lb-contact__infos,
    #page .lb-contact__infos p {
        text-align: center!important;
    }
}

/* Formulaire : tous les champs pleine largeur, bouton et mention alignés à gauche */
#page .lb-contact__ecrire .wpcf7-form > div {
    width: 100%!important;
    max-width: none!important;
    float: none!important;
    padding: 0!important;
    margin: 0!important;
}

#page .lb-contact__ecrire .wpcf7-form p {
    width: 100%!important;
    margin: 0 0 22px!important;
    text-align: left!important;
}

#page .lb-contact__ecrire input.wpcf7-text,
#page .lb-contact__ecrire textarea {
    width: 100%!important;
    box-sizing: border-box;
    padding: 10px 0!important;
    border: 0!important;
    border-bottom: 1px solid #bdbdbd!important;
    background: none!important;
    font-size: var(--lb-t-texte)!important;
    color: #000;
    transition: border-color .3s ease;
}

#page .lb-contact__ecrire textarea {
    height: 160px;
    resize: vertical;
}

#page .lb-contact__ecrire input.wpcf7-text:focus,
#page .lb-contact__ecrire textarea:focus {
    outline: 0;
    border-bottom-color: #000!important;
}

#page .lb-contact__ecrire input.wpcf7-submit {
    width: auto!important;
    margin: 8px 0 0!important;
    padding: 14px 36px 12px!important;
    border: 1px solid #000!important;
    background: #000!important;
    color: #fff!important;
    font-size: var(--lb-t-petit)!important;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease;
}

#page .lb-contact__ecrire input.wpcf7-submit:hover,
#page .lb-contact__ecrire input.wpcf7-submit:focus-visible {
    background: #fff!important;
    color: #000!important;
}

#page .lb-contact__ecrire p.lb-recaptcha-mention {
    margin-top: 24px!important;
    font-size: var(--lb-t-petit)!important;
    line-height: 1.6;
    color: #6b6b6b;
}

@media screen and (max-width: 900px) {
    #page .lb-contact__ecrire h2.lb-contact__titre {
        text-align: center!important;
    }
}

#page .lb-contact__ecrire textarea {
    height: 160px!important;
}

@media screen and (max-width: 900px) {
    #page .lb-contact__ecrire .wpcf7-form p:has(.wpcf7-submit) {
        text-align: center!important;
    }
}

/* Colonnes de même hauteur : « Itinéraire » se cale en bas, au niveau de « Envoyer » */
#page .lb-contact__infos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#page a.lb-contact__itineraire {
    margin-top: auto;
}

#page .lb-contact__infos > p.lb-contact__metro:last-of-type {
    margin-bottom: 36px!important;
}

#page .lb-contact__ecrire .wpcf7-form p:has(.wpcf7-submit) {
    margin-bottom: 0!important;
}

#page .lb-contact__ecrire .wpcf7-submit {
    margin-top: 8px!important;
}

#page .lb-contact > p.lb-recaptcha-mention {
    grid-column: 2;
    margin: -88px 0 0!important;
    font-size: var(--lb-t-petit)!important;
    line-height: 1.6;
    color: #6b6b6b;
    text-align: left!important;
}

@media screen and (max-width: 900px) {
    #page .lb-contact__infos {
        align-items: center;
    }

    #page .lb-contact > p.lb-recaptcha-mention {
        grid-column: 1;
        margin-top: -48px!important;
        text-align: center!important;
    }
}

#page .lb-contact__ecrire .wpcf7-form p:has(.wpcf7-submit) {
    position: relative;
    display: flex;
    align-items: center;
    line-height: 1;
}

#page .lb-contact__ecrire .wpcf7-spinner {
    position: absolute;
    left: 100%;
    margin-left: -40px;
}

#page .lb-contact__ecrire .wpcf7-submit {
    margin-top: 0!important;
}

@media screen and (max-width: 900px) {
    #page .lb-contact__ecrire .wpcf7-form p:has(.wpcf7-submit) {
        justify-content: center;
    }
}

/* Itinéraire et Envoyer : même hauteur, même ligne */
#page a.lb-contact__itineraire,
#page .lb-contact__ecrire input.wpcf7-submit {
    box-sizing: border-box;
    height: 46px;
    padding-top: 0!important;
    padding-bottom: 0!important;
    line-height: 44px!important;
}

/* Sélection de texte aux couleurs du site : noir et blanc, comme le logo */
::selection {
    background: #000;
    color: #fff;
    text-shadow: none;
}

/* Les traits sous le logo ouvrent le menu sur mobile ; sur ordinateur le menu est toujours
   affiché : simple ornement, sans survol ni clic */
@media screen and (min-width: 769px) {
    #page #header_lines a {
        pointer-events: none;
        cursor: default;
    }
}

/* ==========================================================================
   Formats de l'éditeur (menu « Formats », inc/admin.php) : introduction, bouton, note.
   L'encadré reprend les styles de « L'atout » (aside.lb-atout).
   ========================================================================== */
#page .entry-content p.lb-chapo {
    font-size: calc(var(--lb-t-texte) + 3px) !important;
    line-height: 1.65 !important;
    color: #000;
}

#page .entry-content a.lb-bouton {
    display: inline-block;
    padding: 14px 28px 12px;
    border: 1px solid #000;
    background: none;
    color: #000;
    font-size: var(--lb-t-petit);
    letter-spacing: .16em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .3s ease, color .3s ease;
}

#page .entry-content a.lb-bouton:hover,
#page .entry-content a.lb-bouton:focus-visible {
    background: #000;
    color: #fff;
}

#page .entry-content p.lb-note {
    font-size: var(--lb-t-second) !important;
    color: #6b6b6b;
}

/* ==========================================================================
   IDENTITÉ & VALEURS (FR 49, EN 1301) ET MÉTIERS (FR 82, EN 1303) : la photo du bandeau apparaît comme sur l'accueil
   (sortie du blanc et léger zoom arrière), en plus court, à chaque visite
   ========================================================================== */
.page-id-49 #page .lb-bandeau--page,
.page-id-1301 #page .lb-bandeau--page,
.page-id-82 #page .lb-bandeau--page,
.page-id-1303 #page .lb-bandeau--page {
    background: #fff;
}

.page-id-49 #page .lb-bandeau--page .lb-bandeau__fond,
.page-id-1301 #page .lb-bandeau--page .lb-bandeau__fond,
.page-id-82 #page .lb-bandeau--page .lb-bandeau__fond,
.page-id-1303 #page .lb-bandeau--page .lb-bandeau__fond {
    animation: lb-photo 1.4s cubic-bezier(.4, 0, .2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .page-id-49 #page .lb-bandeau--page .lb-bandeau__fond,
    .page-id-1301 #page .lb-bandeau--page .lb-bandeau__fond,
    .page-id-82 #page .lb-bandeau--page .lb-bandeau__fond,
    .page-id-1303 #page .lb-bandeau--page .lb-bandeau__fond {
        animation: lb-fondu .8s ease both;
    }
}

/* ==========================================================================
   ACCUEIL : choix de la langue sur une ligne centrée sous l'enveloppe (FR | EN),
   séparateur comme le menu, langue en cours soulignée. Arrive avec l'enveloppe.
   ========================================================================== */
#page .lb-bandeau--accueil .lb-bandeau__pied {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 56px;
}

#page .lb-bandeau--accueil .lb-bandeau__pied .lb-bandeau__contact {
    order: 1;
    margin-top: 0;
}

#page .lb-bandeau--accueil .lb-bandeau__langues {
    order: 2;
    display: flex;
    margin-top: 12px;
}

#page .lb-bandeau--accueil .lb-bandeau__langues a {
    padding: 6px 16px;
    font-family: josefinsans-r, sans-serif;
    font-size: 15px;
    letter-spacing: .2em;
    line-height: 1;
    color: rgba(0, 0, 0, .6); /* et non opacity, que l'animation d'arrivée remet à 1 */
    text-decoration: none;
    transition: color .3s ease;
}

#page .lb-bandeau--accueil .lb-bandeau__langues a + a {
    border-left: 1px solid #000;
}

#page .lb-bandeau--accueil .lb-bandeau__langues a[aria-current],
#page .lb-bandeau--accueil .lb-bandeau__langues a:hover,
#page .lb-bandeau--accueil .lb-bandeau__langues a:focus-visible {
    color: #000;
}

#page .lb-bandeau--accueil .lb-bandeau__langues a[aria-current] {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

.lb-intro #page .lb-bandeau--accueil .lb-bandeau__langues {
    animation: lb-monte .8s cubic-bezier(.2, .7, .2, 1) 2.75s both;
}

/* ==========================================================================
   MENU MOBILE (refonte du 18/11/2026) : panneau clair couleur « L'atout »,
   filets noirs en haut et en bas, intitulés espacés, page en cours soulignée.
   Les trois traits deviennent une croix quand le menu est ouvert (inc/js/mwdc_scripts.js).
   ========================================================================== */
@media screen and (max-width: 768px) {
    #page div#header_nav_wrapper {
        background: #f5f2ec!important;
        margin: 22px 0 0!important;
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
    }

    #page div#header_nav_wrapper > div,
    #page div#mwdc_header_menu {
        min-height: 0!important;
        max-width: none!important;
        padding: 0!important;
        margin: 0!important;
    }

    #page ul[id*="menu-header-menu"] {
        flex-direction: column;
        align-items: center;
        padding: 26px 0 28px!important;
        margin: 0!important;
    }

    #page ul[id*="menu-header-menu"] li {
        width: auto!important;
    }

    #page ul[id*="menu-header-menu"] li a,
    #page ul[id*="menu-header-menu"] li a:hover,
    #page ul[id*="menu-header-menu"] li.current-menu-item a {
        display: inline-block;
        padding: 13px 4px!important;
        background: none!important;
        border: 0!important;
        color: #000!important;
        font-size: 15px!important;
        letter-spacing: .26em!important;
        margin-right: -.26em!important; /* l'espacement des lettres ne décale pas le centrage */
        text-decoration: none;
    }

    #page ul[id*="menu-header-menu"] li a {
        color: rgba(0, 0, 0, .7)!important;
    }

    /* Page en cours : noire et soulignée d'un filet (sous le texte, hors espacement final) */
    #page ul[id*="menu-header-menu"] li.current-menu-item a,
    #page ul[id*="menu-header-menu"] li.current-menu-ancestor a,
    #page ul[id*="menu-header-menu"] li a[aria-current="page"] {
        color: #000!important;
        background: linear-gradient(#000, #000) no-repeat left 4px bottom 5px / calc(100% - 8px - .26em) 1px!important;
    }

    /* Trois traits → croix */
    #page #header_lines a p {
        transition: transform .35s ease, opacity .25s ease;
        transform-origin: center;
    }

    #page #header_lines a.lb-ouvert p:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    #page #header_lines a.lb-ouvert p:nth-child(2) {
        opacity: 0;
    }

    #page #header_lines a.lb-ouvert p:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #page #header_lines a p {
        transition: none;
    }
}

/* ==========================================================================
   MÉTIERS sur téléphone (photos réservées au mobile, < 450 px) :
   la photo passe en pleine largeur au-dessus de l'encadré « L'atout » au lieu de
   flotter à côté (l'intitulé de l'encadré se retrouvait sur la photo) ;
   même largeur pour toutes les sections ; air avant chaque titre de métier.
   ========================================================================== */
@media screen and (max-width: 449px) {
    #page .entry-content img.mobile_content {
        float: none!important;
        display: block!important;
        width: 100%!important;
        max-width: none!important;
        height: auto!important;
        margin: 40px 0 0!important;
    }

    #page .entry-content p:has(> img.mobile_content) {
        margin: 0!important;
        padding: 0!important;
        line-height: 0!important;
    }

    #page .entry-content p:has(> img.mobile_content) + .lb-atout,
    #page .entry-content p:has(> img.mobile_content) + p:empty + .lb-atout {
        margin-top: 0!important;
    }

    /* Paragraphe vide (un simple retour à la ligne) laissé après la photo : 25 px de trou */
    #page .su-row[class*="metier_"] p:has(> img.mobile_content) + p:last-child:not(:has(*)) {
        display: none!important;
    }

    #page .metier_first_row > .su-column {
        padding-left: 0!important;
        padding-right: 0!important;
    }

    /* Photo en fin de colonne de texte, encadré au début de la colonne suivante */
    #page .entry-content :is(div, p):has(img.mobile_content) + div > .lb-atout:first-child {
        margin-top: 0!important;
    }

    #page .metier_first_row > .su-column > .su-column-inner {
        width: 100%!important;
        max-width: none!important;
        margin-left: 0!important;
        margin-right: 0!important;
    }

    #page .entry-content .metier_second_row,
    #page .entry-content .metier_third_row_inner_rows {
        margin-top: 64px!important;
    }
}
