/* Progressive restyle: Elementor owns the layout; Merimag owns its widgets. */
body.pn-modern {
    --pn-accent: #009bb4;
    --pn-accent-strong: #007f93;
    --pn-text: #172b38;
    --pn-muted: #64748b;
    --pn-line: #e2e8ee;
    background: #fff;
    color: var(--pn-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.pn-modern :is(h1, h2, h3, h4, h5, h6, .block-title, .elementor-item) {
    font-family: inherit;
}

body.pn-modern a:focus-visible,
body.pn-modern button:focus-visible,
body.pn-modern [role="button"]:focus-visible {
    outline: 3px solid var(--pn-accent);
    outline-offset: 4px;
}

body.pn-modern .elementor-location-header {
    background: #fff;
    border-bottom: 1px solid var(--pn-line);
}

body.pn-modern .elementor-location-header > .elementor-section > .elementor-container {
    min-height: 112px;
    align-items: center;
}

body.pn-modern .elementor-location-header .elementor-widget-theme-site-logo img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

body.pn-modern .elementor-location-header .elementor-widget-spacer {
    display: none;
}

body.pn-modern .elementor-location-header .elementor-widget-nav-menu {
    width: 100%;
    max-width: 100%;
}

body.pn-modern .elementor-location-header .elementor-nav-menu--main .elementor-item {
    font-size: 16px;
    font-weight: 500;
    color: var(--pn-text);
    padding-inline: 20px;
}

body.pn-modern .elementor-location-header .elementor-nav-menu--main .elementor-item:is(:hover, :focus, .elementor-item-active) {
    color: var(--pn-accent-strong);
}

body.pn-modern .elementor-location-header .elementor-nav-menu--main .elementor-item::after {
    background-color: var(--pn-accent);
    height: 2px;
}

body.pn-modern.home .elementor-element-02d2d7f {
    background-color: #fff !important;
    padding-block: 28px;
}

body.pn-modern .merimag-block-color-layer {
    background-image: linear-gradient(180deg, transparent 20%, rgba(5, 18, 28, .86) 100%) !important;
}

body.pn-modern .merimag-block .block-infos-title {
    font-family: inherit;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
}

body.pn-modern .merimag-block .block-infos-title a {
    font-size: inherit;
    line-height: inherit;
}

body.pn-modern .merimag-block:not(.white-text) .block-infos-title a {
    color: var(--pn-text);
}

body.pn-modern .merimag-block:not(.white-text) .block-infos-title a:hover {
    color: var(--pn-accent);
}

body.pn-modern .merimag-block .block-infos-category {
    background-color: var(--pn-accent-strong) !important;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .035em;
    padding: 4px 7px;
}

body.pn-modern.home .elementor-element-8004f92 .block-infos-title-wrapper.small .block-infos-title {
    font-size: 17px;
}

body.pn-modern.home .elementor-element-8004f92 .block-infos-title-wrapper.medium .block-infos-title {
    font-size: 26px;
}

body.pn-modern.home .elementor-element-8004f92 .merimag-line-clamp-2 {
    -webkit-line-clamp: 3;
}

body.pn-modern.home .elementor-element-8004f92 .block-infos-title-wrapper.medium .merimag-line-clamp-2 {
    -webkit-line-clamp: 4;
}

body.pn-modern .block-infos-title-wrapper.small .block-infos-title {
    font-size: 16px;
}

body.pn-modern .block-title-wrapper.style-4 {
    border-top-color: var(--pn-accent) !important;
    border-bottom-color: var(--pn-line);
    margin-bottom: 20px;
}

body.pn-modern .block-title-wrapper .block-title {
    color: var(--pn-text);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.015em;
}

body.pn-modern .merimag-block:not(.white-text) .merimag-block-infos-meta,
body.pn-modern .merimag-block:not(.white-text) .merimag-block-infos-meta a {
    color: var(--pn-muted);
}

body.pn-modern .merimag-read-more {
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    border-color: var(--pn-line);
    padding: 9px 12px;
}

body.pn-modern .merimag-block .merimag-read-more {
    border-color: var(--pn-line) !important;
}

body.pn-modern .merimag-term-count {
    background-color: var(--pn-accent-strong) !important;
}

body.pn-modern .merimag-tabbed-widget .ui-state-active {
    border-top-color: var(--pn-accent) !important;
}

body.pn-modern .elementor-location-footer .elementor-widget-theme-site-logo img {
    width: 144px;
    height: auto;
    object-fit: contain;
}

body.pn-modern .elementor-location-footer > .elementor-section:first-child > .elementor-container {
    min-height: 144px;
    align-items: center;
}

body.pn-modern.home .elementor-element-fe0e643 > .elementor-widget-container {
    background-color: #fff;
    padding: 0;
}

body.pn-modern.home .elementor-element-fe0e643 .merimag-block {
    border-color: var(--pn-line) !important;
}

body.pn-modern .merimag-article-content,
body.pn-modern .entry-content {
    font-size: 18px;
    line-height: 1.8;
}

body.pn-modern .merimag-article-content p {
    margin-bottom: 1.3em;
}

body.pn-modern .pn-empty-slider {
    display: none;
}

.pn-footer-links {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    border-top: 1px solid #e2e8ee;
}

.pn-footer-links nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

body.pn-modern .pn-footer-links a {
    color: var(--pn-text);
    overflow-wrap: anywhere;
}

body.pn-modern .pn-footer-links a:hover {
    color: var(--pn-accent);
    text-decoration: underline;
}

@media (min-width: 768px) {
    body.pn-modern .elementor-location-header .elementor-top-column:first-child {
        width: 28%;
    }
    body.pn-modern .elementor-location-header .elementor-top-column:last-child {
        width: 72%;
    }
}

@media (max-width: 767px) {
    body.pn-modern .elementor-location-header > .elementor-section > .elementor-container {
        min-height: 88px;
        flex-wrap: nowrap;
    }
    body.pn-modern .elementor-location-header .elementor-top-column:first-child {
        width: 75%;
    }
    body.pn-modern .elementor-location-header .elementor-top-column:last-child {
        width: 25%;
    }
    body.pn-modern .elementor-location-header .elementor-widget-theme-site-logo {
        text-align: left;
    }
    body.pn-modern .elementor-location-header .elementor-widget-theme-site-logo img {
        width: 72px;
        height: 72px;
    }
    body.pn-modern .elementor-location-header .elementor-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        color: var(--pn-text);
    }
    body.pn-modern .elementor-location-header .elementor-widget-nav-menu {
        position: relative;
        z-index: 1000;
    }
    body.pn-modern .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto !important;
        width: calc(100vw - 32px) !important;
        max-width: none;
        margin-top: 8px;
        border: 1px solid var(--pn-line);
        background: #fff;
    }
    body.pn-modern .elementor-nav-menu--dropdown .elementor-item {
        font-size: 16px;
        min-height: 44px;
    }
    body.pn-modern.home .elementor-element-02d2d7f {
        padding-block: 12px;
    }
    body.pn-modern.home .elementor-element-8004f92 .block-infos-title-wrapper.medium .block-infos-title {
        font-size: 23px;
    }
    body.pn-modern .merimag-article-content,
    body.pn-modern .entry-content {
        font-size: 17px;
    }
    .pn-footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Editorial masthead and footer: scoped to the public site, not the editor. */
body.pn-chrome .elementor-394.elementor-location-header {
    position: relative;
    z-index: 1001;
    border-top: 4px solid var(--pn-accent);
    border-bottom: 1px solid var(--pn-line);
    box-shadow: 0 3px 16px rgba(23, 43, 56, .04);
}

body.pn-chrome .elementor-394 > .elementor-section > .elementor-container {
    width: 100%;
    max-width: 1188px;
    min-height: 108px;
    padding: 0 24px;
    align-items: center;
    flex-wrap: nowrap;
}

body.pn-chrome .elementor-394 .elementor-top-column {
    min-width: 0;
}

body.pn-chrome .elementor-394 .elementor-top-column > .elementor-widget-wrap {
    padding: 0;
    align-content: center;
}

body.pn-chrome .elementor-394 .elementor-widget {
    margin-bottom: 0;
}

body.pn-chrome .elementor-394 .elementor-top-column:first-child {
    width: 40%;
}

body.pn-chrome .elementor-394 .elementor-top-column:last-child {
    width: 60%;
}

body.pn-chrome .elementor-394 .pn-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    color: var(--pn-text);
    text-decoration: none;
}

body.pn-chrome .elementor-394 .pn-brand img {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    object-fit: contain;
}

.pn-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.pn-brand-name {
    font-size: 25px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.035em;
    white-space: nowrap;
}

.pn-brand-description {
    color: var(--pn-muted);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    white-space: nowrap;
}

body.pn-chrome .elementor-394 .elementor-nav-menu--main,
body.pn-chrome .elementor-394 .elementor-widget-nav-menu .elementor-widget-container {
    justify-content: flex-end;
}

body.pn-chrome .elementor-394 .elementor-nav-menu--main > .elementor-nav-menu {
    gap: 6px;
    flex-wrap: nowrap;
}

body.pn-chrome .elementor-394 .elementor-nav-menu--main .elementor-item {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 650;
    padding: 12px 14px;
    border-radius: 9px;
}

body.pn-chrome .elementor-394 .elementor-nav-menu--main .elementor-item::after {
    display: none;
}

body.pn-chrome .elementor-394 .elementor-item:is(:hover, :focus-visible, .elementor-item-active) {
    background: #e8f8fa;
    color: var(--pn-accent-strong);
}

body.pn-chrome .elementor-394 .elementor-menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 8px;
    margin-left: auto;
    border: 1px solid var(--pn-line);
    border-radius: 10px;
    color: var(--pn-text);
    background: #fff;
    font-size: 20px;
}

body.pn-chrome .elementor-394 .elementor-menu-toggle.elementor-active {
    border-color: var(--pn-accent);
    color: var(--pn-accent-strong);
}

body.pn-chrome .pn-site-footer {
    margin: 48px 0 0;
    border-top: 4px solid var(--pn-accent);
    background: var(--pn-accent-strong);
    color: #fff;
    font-family: inherit;
}

.pn-footer-inner {
    max-width: 1188px;
    padding: 56px 24px 24px;
    margin: 0 auto;
}

.pn-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .65fr) minmax(0, .65fr) minmax(0, 1.1fr);
    gap: 32px;
}

body.pn-chrome .pn-site-footer a {
    color: #fff;
    text-decoration: none;
}

body.pn-chrome .pn-site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.pn-chrome .pn-site-footer a:focus-visible {
    outline-color: #fff;
}

.pn-footer-brand-link {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pn-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
}

body.pn-chrome .pn-footer-logo img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.pn-footer-name {
    font-size: 32px;
    line-height: 1.06;
    letter-spacing: -.025em;
    font-weight: 800;
}

.pn-footer-brand p {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
}

body.pn-chrome .pn-site-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 750;
    letter-spacing: 0;
}

.pn-footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

body.pn-chrome .pn-footer-nav h2 {
    margin-bottom: 4px;
}

.pn-footer-email {
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

body.pn-chrome .pn-footer-write {
    display: block;
    width: 100%;
    min-width: 150px;
    margin-top: 18px;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 9px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

body.pn-chrome .pn-footer-write:hover {
    color: var(--pn-accent-strong);
    background: #fff;
    text-decoration: none;
}

.pn-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    body.pn-chrome .elementor-394 .elementor-top-column:first-child {
        width: calc(100% - 60px);
    }
    body.pn-chrome .elementor-394 .elementor-top-column:last-child {
        width: 60px;
    }
    body.pn-chrome .elementor-394 .elementor-widget-nav-menu {
        position: relative;
        z-index: 1000;
    }
    body.pn-chrome .elementor-394 .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        position: absolute;
        top: calc(100% + 20px);
        left: auto !important;
        right: 0;
        width: min(420px, calc(100vw - 48px)) !important;
        max-width: none;
        margin-top: 0;
        padding: 8px;
        border: 1px solid var(--pn-line);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 12px 36px rgba(23, 43, 56, .12);
    }
    body.pn-chrome .elementor-394 .elementor-nav-menu--dropdown .elementor-item {
        min-height: 48px;
        padding: 13px 16px;
        border-radius: 7px;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.5;
        color: var(--pn-text);
    }
    body.pn-chrome .elementor-394 .elementor-nav-menu--dropdown .elementor-item.elementor-item-active {
        background: #e8f8fa;
        color: var(--pn-accent-strong);
    }
    .pn-footer-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 36px 32px;
    }
    .pn-footer-brand {
        grid-column: 1 / -1;
    }
    .pn-footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    body.pn-chrome .elementor-394 > .elementor-section > .elementor-container {
        min-height: 88px;
        padding: 0 16px;
    }
    body.pn-chrome .elementor-394 .pn-brand {
        gap: 12px;
    }
    body.pn-chrome .elementor-394 .pn-brand img {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }
    .pn-brand-copy {
        gap: 4px;
    }
    .pn-brand-name {
        font-size: 19px;
    }
    .pn-brand-description {
        font-size: 11px;
    }
    body.pn-chrome .elementor-394 .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        width: calc(100vw - 32px) !important;
    }
    body.pn-chrome .pn-site-footer {
        margin-top: 32px;
    }
    .pn-footer-inner {
        padding: 40px 24px 24px;
    }
    .pn-footer-main {
        gap: 32px 24px;
    }
    .pn-footer-brand {
        text-align: center;
    }
    .pn-footer-brand-link {
        flex-direction: column;
        gap: 12px;
    }
    .pn-footer-name {
        font-size: 25px;
    }
    .pn-footer-name-break {
        display: none;
    }
    .pn-footer-brand p {
        margin-top: 10px;
    }
    body.pn-chrome .pn-footer-write {
        width: 100%;
    }
    .pn-footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin-top: 28px;
        text-align: center;
    }
}

@media (max-width: 359px) {
    body.pn-chrome .elementor-394 .pn-brand {
        gap: 10px;
    }
    body.pn-chrome .elementor-394 .pn-brand img {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }
    .pn-brand-name {
        font-size: 17px;
    }
    .pn-brand-description {
        font-size: 10px;
    }
}

/* The two corrected pages use their own editable Elementor content. */
body.pn-modern .pn-editorial-page {
    background: #fff;
    color: var(--pn-text);
}

body.pn-modern .pn-editorial-page h1 {
    margin: 0 0 24px;
    color: var(--pn-text);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}

body.pn-modern .pn-editorial-page .elementor-widget-text-editor {
    color: var(--pn-text);
    font-size: 18px;
    line-height: 1.8;
}

body.pn-modern .pn-editorial-page h2 {
    margin: 28px 0 12px;
    color: var(--pn-text);
    font-size: 24px;
    font-weight: 750;
    line-height: 1.3;
}

body.pn-modern .pn-editorial-page .pn-contact-email {
    color: var(--pn-accent-strong);
    font-weight: 650;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.pn-modern .pn-editorial-page .elementor-field-textual {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cbd5df;
    border-radius: 8px;
    background: #fff;
    color: var(--pn-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}

body.pn-modern .pn-editorial-page .elementor-field-textual:focus {
    border-color: var(--pn-accent);
    outline: 2px solid var(--pn-accent);
    outline-offset: 2px;
}

body.pn-modern .pn-editorial-page .elementor-field-label {
    color: var(--pn-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

body.pn-modern .pn-editorial-page .elementor-field-group {
    margin-bottom: 18px;
}

body.pn-modern .pn-editorial-page .elementor-button {
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 8px;
    background: var(--pn-accent-strong);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
}

body.pn-modern .pn-editorial-page .elementor-button:hover {
    background: #006e80;
}

@media (max-width: 767px) {
    body.pn-modern .pn-editorial-page .elementor-widget-text-editor {
        font-size: 17px;
    }
}
