/* Profundum — identité 2.2 : police commune, logo centré et fond bleu nuit. */
:root {
    --pf2-font-family: "Libre Baskerville", Georgia, serif;
    --pf2-header-background: #0b1f32;
    --pf2-brand-background: #0b1f32;
}

/* Les familles des icônes restent gérées par Font Awesome / Jegicon. */
body.jnews,
body.jnews :is(.jeg_header_wrapper, .jeg_header_sticky, .jeg_navbar_mobile_wrapper,
    .jeg_footer, .pf2-section, .pf2-carousel-status, .jeg_post_excerpt, .jeg_top_date, .jeg_copyright),
body.jnews :is(h1, h2, h3, h4, h5, h6, p, a, li, label, input, textarea, select,
    button, small, time, blockquote, figcaption, th, td):not(:is(.fa, .fas, .far, .fab, .fal, .fad, .jegicon, .jeg-icon)) {
    font-family: var(--pf2-font-family) !important;
}

/* Header principal, sticky, mobile, footer complet et zone de copyright. */
body.pf2-header-on :is(.jeg_header_wrapper, .jeg_header_sticky, .jeg_header,
    .jeg_topbar, .jeg_midbar, .jeg_bottombar, .jeg_stickybar,
    .jeg_navbar_mobile_wrapper, .jeg_navbar_mobile, .jeg_mobile_topbar,
    .jeg_mobile_midbar, .jeg_mobile_bottombar),
body.pf2-header-on .jeg_bottombar .jeg_nav_row,
body.jnews :is(.jeg_footer, .jeg_footer_container, .jeg_footer_content,
    .jeg_footer_primary, .jeg_footer_secondary, .jeg_footer_bottom) {
    background-color: var(--pf2-brand-background) !important;
}

/* Le trait clair entre le logo et le menu reste supprimé. */
body.pf2-header-on .jeg_header .jeg_bottombar,
body.pf2-header-on .jeg_header .jeg_bottombar .jeg_nav_row {
    border-top-width: 0 !important;
}

/* Trois colonnes : côtés de même largeur, logo exactement au centre. */
body.pf2-header-on .jeg_header .jeg_midbar .jeg_nav_row,
body.pf2-header-on .jeg_mobile_midbar .jeg_nav_row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

body.pf2-header-on .jeg_midbar .jeg_nav_row > .jeg_nav_col,
body.pf2-header-on .jeg_mobile_midbar .jeg_nav_row > .jeg_nav_col {
    min-width: 0;
    margin: 0 !important;
}

body.pf2-header-on :is(.jeg_midbar, .jeg_mobile_midbar) .jeg_nav_left {
    justify-self: start;
}
body.pf2-header-on :is(.jeg_midbar, .jeg_mobile_midbar) .jeg_nav_center {
    justify-self: center;
}
body.pf2-header-on :is(.jeg_midbar, .jeg_mobile_midbar) .jeg_nav_right {
    justify-self: end;
}

body.pf2-header-on :is(.jeg_desktop_logo, .jeg_mobile_logo) .site-title {
    margin: 0;
    line-height: 1;
}
body.pf2-header-on :is(.jeg_desktop_logo, .jeg_mobile_logo) .site-title a {
    display: block;
    padding: 0 !important;
    line-height: 1;
}
body.pf2-header-on .jeg_desktop_logo .jeg_logo_img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}
body.pf2-header-on .jeg_mobile_logo .jeg_logo_img {
    display: block;
    width: min(58vw, 260px);
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

/* Format compact du logo dans le menu fixe JNews. */
body.pf2-header-on .jeg_stickybar .jeg_logo_img {
    display: block;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}
@media (min-width: 1025px) and (max-width: 1279px) {
    body.pf2-header-on .jeg_stickybar .jeg_logo_img {
        width: 110px;
        min-width: 110px;
        max-width: 110px;
    }
    body.pf2-header-on .jeg_stickybar .jeg_logo {
        padding-left: 0;
        padding-right: 10px;
    }
    body.pf2-header-on .jeg_stickybar .jeg_nav_right .item_wrap {
        flex-wrap: nowrap;
    }
    body.pf2-header-on .jeg_stickybar .jeg_main_menu > li > a {
        font-size: 12px;
        padding-left: 0;
        padding-right: 0;
    }
    body.pf2-header-on .jeg_stickybar .jeg_main_menu > li {
        margin-left: 0;
        margin-right: 0;
    }
}
