@import url('https://fonts.cmsfly.com/css?family=Playfair+Display:400,500,600,700|Montserrat:400,500,600,700&display=swap');

:root {
    --unify-ink: #001225;
    --unify-muted: #b6bec7;
    --unify-text: #5d6d7f;
    --unify-sand: #c9ad87;
    --unify-hero: #c8ced3;
    --unify-paper: #ffffff;
}

html,
body {
    background: var(--unify-paper);
}

body,
button,
input,
select,
textarea {
    font-family: Montserrat, Poppins, Arial, sans-serif !important;
}

.unify-site {
    color: var(--unify-text);
    background: var(--unify-paper);
}

.unify-site #primary,
.unify-site #main,
.unify-site .entry-content,
.unify-site .page-content {
    color: var(--unify-text);
}

.unify-site p,
.unify-site li,
.unify-site td,
.unify-site th,
.unify-site label {
    color: var(--unify-text) !important;
    font-family: Montserrat, Poppins, Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.75;
}

.unify-site h1,
.unify-site h2,
.unify-site h3,
.unify-site h4,
.unify-site h5,
.unify-site h6 {
    color: var(--unify-ink) !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.unify-site a {
    color: var(--unify-text);
    font-family: Montserrat, Poppins, Arial, sans-serif;
    transition: color .2s ease;
}

.unify-site a:hover,
.unify-site a:focus {
    color: var(--unify-sand);
}

.unify-site blockquote {
    border-left: 2px solid var(--unify-sand);
    color: var(--unify-ink);
    font-family: 'Playfair Display', Georgia, serif;
}

.unify-site input:not([type='submit']):not([type='button']),
.unify-site select,
.unify-site textarea {
    border: 1px solid #d7dde2;
    border-radius: 0;
    color: var(--unify-text);
    background: var(--unify-paper);
    font-family: Montserrat, Poppins, Arial, sans-serif;
}

.unify-site input[type='submit'],
.unify-site input[type='button'],
.unify-site button:not(.unify-menu-button),
.unify-site .sweetthemes_button,
.unify-site .wpb_button,
.unify-site .wpb_btn,
.unify-site a.upme-button,
.unify-site input[type='submit'].upme-button,
.unify-site button.upme-button {
    min-height: 46px;
    padding: 12px 24px;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--unify-sand) !important;
    color: var(--unify-ink) !important;
    font-family: Montserrat, Poppins, Arial, sans-serif !important;
    font-size: 12px;
    font-weight: 600 !important;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.unify-site .container,
.unify-site .vc_row:not([data-vc-full-width='true']) {
    max-width: 1120px;
}

.unify-site .header-title-breadcrumb {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unify-site h1,
.unify-site h2,
.unify-site h3,
.unify-site h4,
.unify-site h5,
.unify-site h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
}

.unify-site .header-title-breadcrumb,
.unify-site .header-title-breadcrumb-overlay {
    background-color: var(--unify-ink) !important;
    background-image: radial-gradient(circle at 72% 34%, rgba(86, 104, 122, .65) 0%, rgba(60, 78, 96, .45) 18%, rgba(25, 42, 60, .18) 38%, transparent 62%), linear-gradient(135deg, #061728 0%, #0c2f4b 45%, #021223 100%) !important;
}

.unify-site .header-title-breadcrumb h1 {
    color: var(--unify-paper) !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(38px, 5vw, 64px) !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.unify-site .sweetthemes_button,
.unify-site a.upme-button,
.unify-site input[type='submit'].upme-button,
.unify-site button.upme-button {
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--unify-sand) !important;
    color: var(--unify-ink) !important;
    font-family: Montserrat, Poppins, Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.unify-header {
    position: relative;
    z-index: 20;
    width: 100%;
    background: var(--unify-paper) !important;
    border-bottom: 1px solid #eeeae4;
    box-shadow: none !important;
}

.unify-header__inner {
    width: min(88%, 1814px);
    min-height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(150px, 13vw, 265px);
}

.unify-header__logo img {
    display: block;
    width: 160px;
    height: auto;
}

nav.unify-header__nav {
    margin-left: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.unify-menu,
.unify-menu ul {
    display: flex;
    align-items: center;
    gap: clamp(18px, 1.5vw, 30px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.unify-menu li {
    position: relative;
}

.unify-menu a {
    color: #27323d !important;
    background: transparent !important;
    font-size: clamp(13px, .78vw, 16px);
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease;
}

.unify-menu a:hover {
    color: #b99b73 !important;
}

.unify-menu .current-menu-item > a,
.unify-menu .current-menu-parent > a {
    color: var(--unify-ink) !important;
}

.unify-menu .sub-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: -18px;
    display: none;
    min-width: 210px;
    padding: 14px 18px;
    background: var(--unify-paper);
    box-shadow: 0 14px 30px rgba(0, 18, 37, .12);
}

.unify-menu li:hover > .sub-menu,
.unify-menu li:focus-within > .sub-menu {
    display: block;
}

.unify-menu .sub-menu li + li {
    margin-top: 10px;
}

/* Keep the submenu connected to its parent while moving the pointer into it. */
.unify-menu .sub-menu {
    top: 100%;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.unify-menu .sub-menu li {
    display: block;
    width: 100%;
}

/* Keep the Unify header below the WordPress admin bar. */
body.admin-bar .unify-header {
    margin-top: 32px;
}

@media (min-width: 1200px) {
    .unify-site .unify-header__inner {
        width: 100%;
        max-width: 1110px;
        margin-left: auto;
        margin-right: auto;
        justify-content: space-between;
        gap: 0;
    }

    .unify-site nav.unify-header__nav {
        margin-left: auto;
    }

    .unify-site .unify-menu {
        max-width: 1110px;
        margin-left: auto;
        margin-right: auto;
    }

    .unify-site .wpb-content-wrapper {
        max-width: 1110px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 782px) {
    body.admin-bar .unify-header {
        margin-top: 46px;
    }
}

@media (min-width: 1200px) {
    .unify-menu .sub-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    }

    .unify-menu li:hover > .sub-menu,
    .unify-menu li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.unify-menu-toggle,
.unify-menu-button {
    display: none;
}

.unify-footer {
    padding: 40px 0 30px;
    background: var(--unify-ink);
    color: var(--unify-muted);
}

.unify-footer__inner,
.unify-footer__bottom {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
}

.unify-footer__inner {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.15fr 1.15fr;
    gap: 48px;
}

.unify-footer img {
    width: 178px;
    display: block;
}

.unify-footer p,
.unify-footer a {
    color: var(--unify-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
    text-decoration: none;
}

.unify-footer__brand p {
    max-width: 280px;
    margin: 20px 0 28px;
}

.unify-footer h2 {
    margin: 0 0 20px;
    color: var(--unify-sand) !important;
    font-family: Montserrat, Poppins, Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 500;
}

.unify-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.unify-footer li + li {
    margin-top: 8px;
}

.unify-footer a:hover {
    color: var(--unify-paper);
}

.unify-footer__socials {
    display: flex;
    gap: 20px;
}

.unify-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--unify-muted);
    font-size: 19px;
}

.unify-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid rgba(182, 190, 199, .22);
    font-size: 12px;
}

.unify-footer__bottom a,
.unify-footer__bottom span {
    font-size: 12px;
}

@media (max-width: 1199px) {
    .unify-header__inner,
    .unify-footer__inner,
    .unify-footer__bottom {
        width: min(100% - 40px, 620px);
    }

    .unify-header__inner {
        min-height: 82px;
        justify-content: space-between;
        gap: 0;
    }

    .unify-header__logo img {
        width: 160px;
    }

    .unify-menu-button {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .unify-menu-button span {
        display: block;
        width: 25px;
        height: 1px;
        background: var(--unify-ink);
    }

    .unify-header__nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none !important;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        padding: 0;
        background: var(--unify-paper) !important;
        border-top: 1px solid #e7e7e7;
        box-shadow: 0 12px 24px rgba(0, 18, 37, .08);
        z-index: 100;
    }

    .unify-menu-toggle:checked ~ .unify-header__nav {
        display: block !important;
    }

    .unify-menu,
    .unify-menu ul {
        display: block !important;
    }

    .unify-menu > li {
        display: block !important;
        border-bottom: 1px solid #e7e7e7;
    }

    .unify-menu > li > a {
        display: block;
        padding: 14px 50px 14px 15px;
        color: #333 !important;
        font-size: 14px;
        font-weight: 400 !important;
    }

    .unify-menu > li > a:hover,
    .unify-menu > li > a:focus {
        background: #f5f5f5 !important;
        color: #333 !important;
    }

    .unify-menu li + li {
        margin-top: 0;
    }

    .unify-menu .sub-menu {
        position: static;
        display: none !important;
        min-width: 0;
        padding: 0;
        box-shadow: none;
        background: #fafafa;
        border-top: 1px solid #e7e7e7;
    }

    .unify-menu .menu-item-has-children.is-open > .sub-menu {
        display: block !important;
    }

    .unify-menu .sub-menu li + li {
        margin-top: 0;
    }

    .unify-menu .sub-menu a {
        display: block;
        padding: 11px 15px 11px 30px;
        color: #555 !important;
        font-size: 13px;
        font-weight: 400 !important;
    }

    .unify-menu .sub-menu a:hover,
    .unify-menu .sub-menu a:focus {
        background: #f1f1f1 !important;
        color: #333 !important;
    }

    .unify-submenu-toggle {
        position: absolute;
        top: 8px;
        right: 0;
        display: block;
        width: 44px;
        height: 44px;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0;
        background: transparent !important;
        color: var(--unify-ink);
        font-size: 0;
        line-height: 1;
        cursor: pointer;
    }

    .unify-submenu-toggle::before,
    .unify-submenu-toggle::after {
        position: absolute;
        top: 21px;
        left: 14px;
        width: 0;
        height: 1px;
        border-top: 5px solid currentColor;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        background: transparent;
        content: '';
    }

    .unify-submenu-toggle::after {
        display: none;
    }

    .unify-menu .is-open > .unify-submenu-toggle::before {
        top: 19px;
        transform: rotate(180deg);
    }

    .unify-footer__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
    }

    .unify-footer__brand {
        grid-column: 1 / -1;
    }

    .unify-footer__bottom {
        display: block;
        line-height: 2;
    }
}

@media (min-width: 1200px) {
    .unify-submenu-toggle {
        display: none;
    }
}

@media (max-width: 520px) {
    .unify-footer__inner {
        grid-template-columns: 1fr;
    }

    .unify-footer__brand {
        grid-column: auto;
    }
}

/* Final brand layer for the Club Actionnaires templates. */
.reworld-club .header-title-breadcrumb,
.reworld-club .header-title-breadcrumb-overlay {
    display: flex !important;
    height: 174px !important;
    min-height: 174px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: linear-gradient(135deg, rgba(255,255,255,.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.02) 50%, rgba(255,255,255,.02) 75%, transparent 75%), radial-gradient(circle at 72% 34%, rgba(86,104,122,.65) 0%, rgba(60,78,96,.45) 18%, rgba(25,42,60,.18) 38%, transparent 62%), linear-gradient(135deg, #061728 0%, #0c2f4b 45%, #021223 100%) !important;
    background-size: 300px 300px, 100% 100%, 100% 100% !important;
}

/* Keep the texture on the full banner, never on a separate title rectangle. */
body:not(.reworld-club) .unify-site .header-title-breadcrumb h1 {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    background-size: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

@media (max-width: 1199px) {
    /* Keep the language selector centered after the legacy WPML desktop rules. */
    .unify-site .unify-menu li.menu-item-language {
        display: block !important;
        width: 100%;
        margin-top: 22px !important;
        text-align: center;
    }

    .unify-site .unify-menu li.menu-item-language > a {
        display: inline-flex !important;
        justify-content: center;
        width: auto;
        margin: 0 auto;
    }

    .unify-site .unify-menu li.menu-item-language .sub-menu {
        display: block !important;
        max-height: 0 !important;
        margin: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-8px);
    }

    .unify-site .unify-menu li.menu-item-language.is-open .sub-menu {
        max-height: 100px !important;
        margin: 8px 0 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
    }
}

/* Mobile menu reference layout: compact header, centered vertical navigation,
 * and an expanded Activities branch inside the white menu panel. */
@media (max-width: 1199px) {
    .unify-site .unify-header__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        width: calc(100% - 32px);
        min-height: 55px !important;
        gap: 0;
    }

    .unify-site .unify-header__logo img {
        width: 100px;
    }

    .unify-site .unify-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 35px;
        padding: 0;
        border: 1px solid #8b8b8b;
        border-radius: 8px;
        background: #fff;
        gap: 4px;
    }

    .unify-site .unify-menu-button span {
        width: 14px;
        height: 2px;
        background: #001225;
    }

    .unify-site .unify-header__nav {
        position: static;
        grid-column: 1 / -1;
        width: 100%;
        display: block !important;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        border-top: 0;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: max-height .42s ease, opacity .28s ease, padding .42s ease, transform .42s ease, visibility .42s ease;
    }

    .unify-site .unify-menu-toggle:checked ~ .unify-header__nav {
        max-height: 1200px;
        padding: 28px 0 82px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .unify-site .unify-menu,
    .unify-site .unify-menu ul {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .unify-site .unify-menu > li {
        display: block !important;
        margin: 0 !important;
        border: 0;
    }

    .unify-site .unify-menu > li > a {
        display: block;
        padding: 13px 0 !important;
        color: #001225 !important;
        font-size: 15px;
        font-weight: 400 !important;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .unify-site .unify-menu > li > a[href$="/activites/"] {
        color: #c9ad87 !important;
    }

    .unify-site .unify-menu .sub-menu {
        position: static;
        display: block !important;
        width: 100%;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: max-height .38s ease, margin .38s ease, opacity .25s ease, transform .38s ease, visibility .38s ease;
    }

    .unify-site .unify-menu .menu-item-has-children.is-open > .sub-menu {
        max-height: 500px;
        margin: 12px 0 4px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .unify-site .unify-menu .sub-menu li,
    .unify-site .unify-menu .sub-menu li + li {
        display: block;
        margin: 0 !important;
    }

    .unify-site .unify-menu .sub-menu a {
        display: block;
        padding: 12px 0 !important;
        color: #001225 !important;
        font-size: 16px;
        font-weight: 400 !important;
        line-height: 1.25;
        text-transform: none;
    }

    .unify-site .unify-menu .unify-submenu-toggle {
        display: none !important;
    }

    .unify-site .unify-menu li.menu-item-language {
        display: block !important;
        margin-top: 22px !important;
        text-align: center;
    }

    .unify-site .unify-menu li.menu-item-language > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        padding: 12px 0 !important;
    }

    .unify-site .unify-menu li.menu-item-language .sub-menu {
        display: block !important;
        max-height: 0;
        margin: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
    }

    .unify-site .unify-menu li.menu-item-language.is-open .sub-menu {
        max-height: 100px;
        margin: 8px 0 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .unify-site .unify-menu li.menu-item-language .sub-menu a {
        display: inline-flex;
        padding: 8px !important;
    }

    .unify-site .unify-menu li.menu-item-language .wpml-ls-flag {
        display: block;
        width: 24px;
        height: auto;
    }
}

body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay {
    position: relative;
}

body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay::before,
body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay::after {
    position: absolute;
    top: 50%;
    width: 210px;
    height: 2px;
    background: var(--unify-sand);
    content: '';
}

body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay::before {
    left: 21%;
}

body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay::after {
    right: 21%;
}

/* Club pages use the same full-width compact breadcrumb banner. */
body.reworld-club .unify-site .header-title-breadcrumb,
body.reworld-club .unify-site .header-title-breadcrumb-overlay {
    width: 100% !important;
    max-width: none !important;
    height: 174px !important;
    min-height: 174px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #021223 !important;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.02) 50%, rgba(255,255,255,.02) 75%, transparent 75%),
        radial-gradient(circle at 72% 34%, rgba(86,104,122,.65) 0%, rgba(60,78,96,.45) 18%, rgba(25,42,60,.18) 38%, transparent 62%),
        linear-gradient(135deg, #061728 0%, #0c2f4b 45%, #021223 100%) !important;
    background-size: 300px 300px, 100% 100%, 100% 100% !important;
}

body.reworld-club .unify-site .header-title-breadcrumb h1 {
    color: #fff !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    text-align: center !important;
}

body:not(.reworld-club) .unify-site .header-title-breadcrumb h1 {
    color: var(--unify-paper) !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    text-transform: none !important;
}

/* Match the compact Unify homepage strip exactly. */
body:not(.reworld-club) .unify-site .header-title-breadcrumb {
    height: 174px !important;
    min-height: 174px !important;
    padding: 20px 0 0 !important;
}

body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay {
    box-sizing: border-box;
    height: 174px !important;
    min-height: 174px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay > .container,
body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay .row,
body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay .col-md-12 {
    width: 100% !important;
    margin: 0 !important;
}

body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay .row,
body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay .col-md-12 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body:not(.reworld-club) .unify-site .header-title-breadcrumb h1 {
    position: relative;
    z-index: 1;
    text-align: center !important;
}

@media (max-width: 1023px) {
    body:not(.reworld-club) .unify-site .header-title-breadcrumb h1 { font-size: 26px !important; }
}

@media (max-width: 767px) {
    body:not(.reworld-club) .unify-site .header-title-breadcrumb h1 { font-size: 24px !important; }

    .unify-site .header-title-breadcrumb-overlay::before,
    .unify-site .header-title-breadcrumb-overlay::after {
        display: none !important;
    }
}

/* Keep the WPML language menu item visible on desktop. */
.unify-site .unify-menu li.wpml-ls-item,
.unify-site .unify-menu li.menu-item-language {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.unify-site .unify-menu li.wpml-ls-item > a,
.unify-site .unify-menu li.menu-item-language > a {
    display: flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 1199px) {
    .unify-site .unify-menu li.menu-item-language {
        display: block !important;
        width: 100%;
        margin-top: 22px !important;
        text-align: center;
    }

    .unify-site .unify-menu li.menu-item-language > a {
        display: inline-flex !important;
        justify-content: center;
        width: auto;
        margin: 0 auto;
    }

    .unify-site .unify-menu li.menu-item-language .sub-menu {
        display: block !important;
        max-height: 0 !important;
        margin: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-8px);
    }

    .unify-site .unify-menu li.menu-item-language.is-open .sub-menu {
        max-height: 100px !important;
        margin: 8px 0 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
    }
}

/* Hide only the UPME heading belonging to a login form. */
.unify-site .upme-wrap.upme-login .upme-head {
    display: none !important;
}

.reworld-club .header-title-breadcrumb-overlay {
    position: relative;
}

.reworld-club .header-title-breadcrumb-overlay::before,
.reworld-club .header-title-breadcrumb-overlay::after {
    position: absolute;
    top: 50%;
    width: 210px;
    height: 2px;
    background: var(--unify-sand);
    content: '';
}

.reworld-club .header-title-breadcrumb-overlay::before {
    left: 21%;
}

.reworld-club .header-title-breadcrumb-overlay::after {
    right: 21%;
}

.reworld-club .header-title-breadcrumb h1 {
    color: var(--unify-paper) !important;
    position: relative;
    z-index: 1;
    font-family: Montserrat, Poppins, Arial, sans-serif !important;
    font-size: clamp(24px, 2.2vw, 32px) !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message {
    position: relative;
    display: flex;
    height: 174px;
    min-height: 174px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    overflow: hidden;
    background-color: #071a2b;
    background-image: linear-gradient(135deg, rgba(255,255,255,.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.02) 50%, rgba(255,255,255,.02) 75%, transparent 75%), radial-gradient(circle at 72% 34%, rgba(86,104,122,.65) 0%, rgba(60,78,96,.45) 18%, rgba(25,42,60,.18) 38%, transparent 62%), linear-gradient(135deg, #061728 0%, #0c2f4b 45%, #021223 100%);
    background-size: 300px 300px, 100% 100%, 100% 100%;
    color: #fff;
    font-family: Montserrat, Poppins, Arial, sans-serif;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
}

:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message::before,
:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message::after {
    position: absolute;
    top: 50%;
    width: 210px;
    height: 2px;
    background: var(--unify-sand);
    content: '';
}

:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message::before {
    left: 21%;
}

:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message::after {
    right: 21%;
}

@media (max-width: 767px) {
    .reworld-club .header-title-breadcrumb,
    .reworld-club .header-title-breadcrumb-overlay {
        height: 150px !important;
        min-height: 150px !important;
    }

    :is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message {
        min-height: 150px;
        padding: 0 24px;
        font-size: 22px;
    }

    :is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message::before,
    :is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message::after,
    .reworld-club .header-title-breadcrumb-overlay::before,
    .reworld-club .header-title-breadcrumb-overlay::after {
        width: 72px;
    }

    :is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message::before,
    .reworld-club .header-title-breadcrumb-overlay::before {
        left: 5%;
    }

    :is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message::after,
    .reworld-club .header-title-breadcrumb-overlay::after {
        right: 5%;
    }
}

.reworld-club .entry-content p,
.reworld-club .entry-content li,
.reworld-club .entry-content span {
    color: var(--unify-text) !important;
    font-family: Montserrat, Poppins, Arial, sans-serif !important;
}

.reworld-club .entry-content h2,
.reworld-club .entry-content h3,
.reworld-club .entry-content h4 {
    color: var(--unify-ink) !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 400 !important;
}

/* The shortcode wraps its real link in .sweetthemes_button: keep that wrapper white. */
.reworld-club .sweetthemes_button {
    display: inline-block !important;
    width: auto !important;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* The global Unify CTA rule targets the shortcode wrapper as well as the
 * actual link. Keep the wrapper transparent and let only the pill carry color. */
.reworld-club .sweetthemes_button::before,
.reworld-club .sweetthemes_button::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.reworld-club .upme-wrap input[type='submit'].upme-button,
.reworld-club .upme-wrap input[type='button'].upme-button,
.reworld-club .upme-wrap button.upme-button {
    min-height: 52px;
    padding: 14px 24px;
    border: 0 !important;
    border-radius: 0 !important;
    background: #10396f !important;
    color: #ffffff !important;
    font-family: Montserrat, Poppins, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.reworld-club #upme-login-form input[type='submit'],
.reworld-club .upme-login-form input[type='submit'],
.reworld-club input[type='submit'].upme-button,
.reworld-club input[type='button'].upme-button {
    background: #10396f !important;
    background-color: #10396f !important;
    background-image: none !important;
    color: #ffffff !important;
}

.reworld-club .header-title-breadcrumb h1 {
    padding: 0 !important;
}


/* Unify feature card: large rectangular composition matching the reference. */
:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message {
    width: 100%;
    height: auto;
    min-height: 350px;
    aspect-ratio: 1.6 / 1;
    flex-direction: column;
    gap: 12px;
    padding: 40px;
    font-size: 50px !important;
    line-height: 1.1;
}

:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message span {
    display: block;
    color: #fff !important;
}

:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message span:nth-child(2) {
    color: var(--unify-sand) !important;
}

:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message::before,
:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message::after {
    display: none;
}

@media (max-width: 767px) {
    :is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message {
        min-height: 280px;
        aspect-ratio: auto;
        padding: 28px 18px;
        font-size: 44px !important;
    }
}


:is(.reworld-club-votre-espace-club-actionnaires, .reworld-club-shareholders-area) .unify-espace-message span {
    font-family: Montserrat, Poppins, Arial, sans-serif !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}


/* Footer layout aligned with the Unify reference. */
.unify-footer { padding: 64px 0 42px; background: #001225 !important; }
.unify-footer__inner, .unify-footer__bottom { width: min(92%, 1814px); }
.unify-footer__inner { grid-template-columns: 1.35fr 1fr 1.15fr 1.35fr; gap: 72px; }
.unify-footer img { width: 270px; }
.unify-footer p, .unify-footer a { color: #b6bec7; font-family: Montserrat, Poppins, Arial, sans-serif !important; font-size: 18px; line-height: 1.85; }
.unify-footer__brand p { max-width: 390px; margin: 28px 0 42px; }
.unify-footer h2 { margin-bottom: 30px; font-size: 23px; font-weight: 400; }
.unify-footer li + li { margin-top: 16px; }
.unify-footer__socials { gap: 16px; }
.unify-footer__socials a { width: 52px; height: 52px; border-radius: 4px; background: #fff; color: #001225 !important; font-size: 28px; line-height: 1; }
.unify-footer__bottom { margin-top: 64px; padding-top: 24px; border-top-color: rgba(201, 173, 135, .65); }
.unify-footer__bottom a, .unify-footer__bottom span { font-size: 17px; }
@media (max-width: 900px) { .unify-footer__inner, .unify-footer__bottom { width: min(100% - 40px, 620px); } .unify-footer img { width: 220px; } }

.unify-footer__column:nth-child(3) p, .unify-footer__column:nth-child(3) > a { position: relative; padding-left: 42px; }
.unify-footer__column:nth-child(3) p::before, .unify-footer__column:nth-child(3) > a::before { position: absolute; left: 0; top: 2px; color: var(--unify-sand); font-family: FontAwesome; font-size: 22px; }
.unify-footer__column:nth-child(3) p::before { content: "\f041"; }
.unify-footer__column:nth-child(3) > a::before { content: "\f0e0"; }


/* Footer sizing rollback: preserve the Unify visual treatment. */
.unify-footer { padding: 40px 0 30px; }
.unify-footer__inner, .unify-footer__bottom { width: min(1120px, calc(100% - 64px)); }
.unify-footer__inner { grid-template-columns: 1.7fr 1fr 1.15fr 1.15fr; gap: 48px; }
.unify-footer img { width: 178px; }
.unify-footer p, .unify-footer a { font-size: 14px; line-height: 1.75; }
.unify-footer__brand p { max-width: 280px; margin: 20px 0 28px; }
.unify-footer h2 { margin: 0 0 20px; font-size: 16px; }
.unify-footer li + li { margin-top: 8px; }
.unify-footer__socials { gap: 20px; }
.unify-footer__socials a { width: 34px; height: 34px; font-size: 19px; }
.unify-footer__bottom { margin-top: 42px; padding-top: 20px; }
.unify-footer__bottom a, .unify-footer__bottom span { font-size: 12px; }
@media (max-width: 900px) { .unify-footer__inner, .unify-footer__bottom { width: min(100% - 40px, 620px); } .unify-footer img { width: 178px; } }


/* Final footer structure matching the Unify reference grid. */
.unify-footer__inner, .unify-footer__bottom { width: min(92%, 1814px); }
.unify-footer__inner { grid-template-columns: 1.35fr 1fr 1.15fr 1.35fr; gap: 72px; }
.unify-footer img { width: 270px; }
.unify-footer__brand p { max-width: 390px; }
.unify-footer h2 { font-size: 23px; }
.unify-footer p, .unify-footer a { font-size: 18px; line-height: 1.85; }
.unify-footer__socials a { width: 52px; height: 52px; font-size: 28px; }
.unify-footer__bottom { margin-top: 64px; padding-top: 24px; }
.unify-footer__bottom a, .unify-footer__bottom span { font-size: 17px; }
@media (max-width: 900px) { .unify-footer__inner, .unify-footer__bottom { width: min(100% - 40px, 620px); } .unify-footer img { width: 220px; } }

.unify-footer { padding: 64px 0 42px; background: #001225 !important; }


/* Restore the previous footer dimensions; keep the four-column structure. */
.unify-footer { padding: 40px 0 30px; }
.unify-footer__inner, .unify-footer__bottom { width: min(1120px, calc(100% - 64px)); }
.unify-footer__inner { grid-template-columns: 1.7fr 1fr 1.15fr 1.15fr; gap: 48px; }
.unify-footer img { width: 178px; }
.unify-footer p, .unify-footer a { font-size: 14px; line-height: 1.75; }
.unify-footer__brand p { max-width: 280px; margin: 20px 0 28px; }
.unify-footer h2 { margin: 0 0 20px; font-size: 16px; }
.unify-footer li + li { margin-top: 8px; }
.unify-footer__socials a { width: 34px; height: 34px; font-size: 19px; }
.unify-footer__bottom { margin-top: 42px; padding-top: 20px; }
.unify-footer__bottom a, .unify-footer__bottom span { font-size: 12px; }


/* Footer: three columns, Club Actionnaires below Contact. */
.unify-footer__inner { grid-template-columns: 1.7fr 1fr 1.15fr; }
.unify-footer__column:nth-child(4) { grid-column: 3; }


/* Footer reference: centered three-column layout with Club below Contact. */
.unify-footer { position: relative; box-sizing: border-box; min-height: 498px; padding: 84px 0 38px; background: #001225 !important; overflow: hidden; }
.unify-footer__inner, .unify-footer__bottom { width: min(1200px, calc(100% - 48px)); }
.unify-footer__inner { grid-template-columns: 330px 270px minmax(0, 1fr); column-gap: 130px; row-gap: 34px; align-items: start; }
.unify-footer img { width: 240px; }
.unify-footer p, .unify-footer a { font-size: 17px; line-height: 1.45; }
.unify-footer__brand p { max-width: 310px; margin: 24px 0; }
.unify-footer h2 { margin: 0 0 22px; font-size: 18px; line-height: 1.2; font-weight: 400; }
.unify-footer li + li { margin-top: 16px; }
.unify-footer__column:nth-child(4) { grid-column: 3; grid-row: 2; }
.unify-footer__socials { gap: 14px; }
.unify-footer__socials a { width: 36px; height: 36px; border-radius: 4px; background: #fff; color: #001225 !important; font-size: 20px; }
.unify-footer__bottom { margin-top: 50px; padding-top: 16px; border-top-color: rgba(201,173,135,.65); }
.unify-footer__bottom a, .unify-footer__bottom span { font-size: 16px; line-height: 1.4; }
@media (max-width: 1100px) { .unify-footer__inner { grid-template-columns: 1fr 1fr minmax(0, 1.2fr); column-gap: 48px; } }
@media (max-width: 900px) { .unify-footer { min-height: 0; padding: 60px 0 32px; } .unify-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } .unify-footer__brand { grid-column: 1 / -1; } .unify-footer__column:nth-child(4) { grid-column: 2; grid-row: 2; } }
@media (max-width: 520px) { .unify-footer__inner { grid-template-columns: 1fr; } .unify-footer__brand, .unify-footer__column:nth-child(4) { grid-column: auto; grid-row: auto; } }


/* Footer typography and Contact/Club grouping. */
.unify-footer { font-size: 15px; }
.unify-footer p, .unify-footer a, .unify-footer li { font-size: 15px; }
.unify-footer__club { margin-top: 38px; }
.unify-footer__club h2 { margin-bottom: 22px; }
.unify-footer__bottom a, .unify-footer__bottom span { font-size: 15px; }


/* Footer title and list spacing refinement. */
.unify-footer h2, .unify-footer__club h2 { font-size: 16px; }
.unify-footer li + li { margin-top: 0; }


.unify-footer li a { display: inline-block; margin-bottom: 13px; }


.unify-footer p { color: #B6BEC7 !important; }

.unify-bottom-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.unify-bottom-menu li + li::before {
    margin: 0 10px;
    color: #b6bec7;
    content: '-';
}

.unify-bottom-menu a {
    display: inline-block !important;
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    .unify-bottom-menu {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}


/* Remove the shortcode wrapper background; keep only the blue CTA visible. */
.reworld-club .sweetthemes_button,
.reworld-club .sweetthemes_button_v2,
.reworld-club .sweetthemes_button_v2 a.btngoln { background: transparent !important; background-color: transparent !important; background-image: none !important; box-shadow: none !important; }

/* UPME headers use the Club blue background. */
div.upme-head,
div.upme-post-head,
div.upme-custom-head { background: #b99b73 !important; background-color: #b99b73 !important; color: #fff !important; }


/* UPME controls use the Unify sand color. */
.upme-field-type i,
.upme-post-field-type i { color: #b99b73 !important; }
.reworld-club .upme-wrap input[type="submit"].upme-button,
.reworld-club .upme-wrap input[type="button"].upme-button,
.reworld-club .upme-wrap button.upme-button { background: #b99b73 !important; background-color: #b99b73 !important; }


/* Investor page banners use the same textured Unify gradient as the Club. */
body:not(.reworld-club) .unify-site .header-title-breadcrumb,
body:not(.reworld-club) .unify-site .header-title-breadcrumb-overlay {
    min-height: 360px;
    background-color: #021223 !important;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.02) 50%, rgba(255,255,255,.02) 75%, transparent 75%),
        radial-gradient(circle at 72% 34%, rgba(86,104,122,.65) 0%, rgba(60,78,96,.45) 18%, rgba(25,42,60,.18) 38%, transparent 62%),
        linear-gradient(135deg, #061728 0%, #0c2f4b 45%, #021223 100%) !important;
    background-size: 300px 300px, 100% 100%, 100% 100% !important;
    background-repeat: initial;
}

body:not(.reworld-club) .unify-site .header-title-breadcrumb h1 {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    background-size: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}
