/* Club Actionnaires — editorial investor experience.
 * Scoped to the Club pages so the legacy theme remains unchanged elsewhere.
 */
:root {
    --club-ink: #10396f;
    --club-blue: #10396f;
    --club-sky: #f3f5f8;
    --club-coral: #10396f;
    --club-paper: #ffffff;
    --club-line: #c5cdd8;
    --club-shadow: none;
}

.reworld-club {
    background: var(--club-paper);
    color: #263746;
}

.reworld-club .breadcrumbs-section,
.reworld-club .page-title-section,
.reworld-club .header-title-breadcrumbs {
    display: none;
}

.reworld-club #primary {
    padding-top: 0;
    padding-bottom: 0;
}

.reworld-club #primary > .container,
.reworld-club #primary > .container > .row,
.reworld-club #main,
.reworld-club .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.reworld-club .entry-content > .vc_row {
    margin-left: auto;
    margin-right: auto;
    padding-left: max(24px, calc((100vw - 1180px) / 2));
    padding-right: max(24px, calc((100vw - 1180px) / 2));
}

.reworld-club .entry-content > .vc_row:first-child {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    padding-top: 74px;
    padding-bottom: 64px;
    background: var(--club-ink) !important;
    color: #fff;
}

.reworld-club .entry-content > .vc_row:first-child::before {
    position: absolute;
    right: 7%;
    bottom: -125px;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(223, 243, 247, .45);
    border-radius: 50%;
    content: '';
}

.reworld-club .entry-content > .vc_row:first-child::after {
    position: absolute;
    top: 52px;
    right: 15%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--club-coral);
    box-shadow: 0 0 0 12px rgba(239, 116, 93, .12), 0 0 0 24px rgba(239, 116, 93, .06);
    content: '';
}

.reworld-club .entry-content > .vc_row:first-child .wpb_wrapper {
    position: relative;
    z-index: 1;
    max-width: 790px;
}

.reworld-club .entry-content > .vc_row:first-child h1,
.reworld-club .entry-content > .vc_row:first-child h2 {
    margin: 0;
    color: #fff !important;
    font-family: 'Poppins-SemiBold', sans-serif;
    font-size: clamp(34px, 5vw, 66px) !important;
    line-height: 1.04;
    letter-spacing: -.045em;
    text-align: left !important;
}

.reworld-club .entry-content > .vc_row:first-child h1::after,
.reworld-club .entry-content > .vc_row:first-child h2::after {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 24px;
    background: var(--club-coral);
    content: '';
}

.reworld-club .entry-content > .vc_row:not(:first-child) {
    padding-top: 48px;
    padding-bottom: 48px;
}

.reworld-club .entry-content > .vc_row:nth-child(2) {
    background: #fff !important;
}

.reworld-club .entry-content p,
.reworld-club .entry-content li,
.reworld-club .entry-content span {
    color: #3e5060;
    font-family: 'Poppins-Regular', sans-serif;
    font-size: 15px;
    line-height: 1.85;
}

.reworld-club .entry-content h2,
.reworld-club .entry-content h3 {
    color: var(--club-ink) !important;
    font-family: 'Poppins-SemiBold', sans-serif;
    letter-spacing: -.025em;
}

.reworld-club .entry-content h2 {
    font-size: clamp(25px, 3vw, 38px);
}

.reworld-club .entry-content h3 {
    font-size: 21px;
}

.reworld-club .vc_col-sm-6:has(.upme-wrap),
.reworld-club .vc_col-sm-6:has(.sweetthemes_button) {
    border: 0 !important;
    border-radius: 2px;
    background: #fff;
    box-shadow: var(--club-shadow);
}

.reworld-club .vc_col-sm-6:has(.upme-wrap) {
    border-top: 5px solid var(--club-blue) !important;
}

.reworld-club .vc_col-sm-6:has(.sweetthemes_button) {
    border-top: 5px solid var(--club-coral) !important;
}

.reworld-club .upme-wrap {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Poppins-Regular', sans-serif;
}

.reworld-club .upme-wrap input[type='text'],
.reworld-club .upme-wrap input[type='email'],
.reworld-club .upme-wrap input[type='password'],
.reworld-club .upme-wrap select,
.reworld-club .upme-wrap textarea {
    min-height: 45px;
    border: 1px solid var(--club-line);
    border-radius: 0;
    background: #fbfcfd;
    box-shadow: none;
}

.reworld-club .entry-content a {
    color: var(--club-blue);
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.reworld-club .entry-content a:hover {
    color: #b99b73;
}

.reworld-club-reglement-club-actionnaires .entry-content > .vc_row:first-child,
.reworld-club-reinitialiser-votre-mot-de-passe .entry-content > .vc_row:first-child {
    min-height: 180px;
    padding-top: 48px;
    padding-bottom: 42px;
}

.reworld-club-reglement-club-actionnaires .entry-content > .vc_row:nth-child(2) {
    max-width: 930px;
    margin-top: 42px;
    margin-bottom: 72px;
    background: #fff !important;
    box-shadow: var(--club-shadow);
}

.reworld-club-reglement-club-actionnaires .entry-content ol {
    padding-left: 25px;
}

.reworld-club-reglement-club-actionnaires .entry-content li {
    margin-bottom: 8px;
}

.reworld-club-votre-espace-club-actionnaires .entry-content > .vc_row:first-child {
    min-height: 220px;
    padding-top: 55px;
    padding-bottom: 42px;
}

.reworld-club-votre-espace-club-actionnaires .entry-content > .vc_row:first-child p {
    max-width: 680px;
    color: var(--club-sky);
    font-size: 18px;
}

@media (max-width: 767px) {
    .reworld-club .entry-content > .vc_row {
        padding-left: 20px;
        padding-right: 20px;
    }

    .reworld-club .entry-content > .vc_row:first-child {
        min-height: 250px;
        padding-top: 50px;
        padding-bottom: 45px;
    }

    .reworld-club .entry-content > .vc_row:first-child::before {
        right: -150px;
        bottom: -175px;
        width: 310px;
        height: 310px;
    }

    .reworld-club .entry-content > .vc_row:not(:first-child) {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .reworld-club .vc_col-sm-6:has(.upme-wrap),
    .reworld-club .vc_col-sm-6:has(.sweetthemes_button) {
        margin-bottom: 20px;
        padding: 20px !important;
    }

    .reworld-club .entry-content p,
    .reworld-club .entry-content li,
    .reworld-club .entry-content span {
        font-size: 14px;
        line-height: 1.7;
    }

    .reworld-club-reglement-club-actionnaires .entry-content > .vc_row:nth-child(2) {
        margin-top: 20px;
        margin-bottom: 30px;
        box-shadow: none;
    }
}

/* Reference layout: full-width title band, centered boxed content canvas. */
.reworld-club .header-title-breadcrumb {
    display: block;
    min-height: 338px;
    background: var(--club-ink);
}

.reworld-club .header-title-breadcrumb-overlay {
    display: flex;
    align-items: center;
    min-height: 338px;
    background-image: none !important;
}

.reworld-club .header-title-breadcrumb h1 {
    margin: 0;
    color: #fff;
    font-family: 'Poppins-SemiBold', sans-serif;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: -.045em;
    text-align: center;
}

.reworld-club #primary {
    background: #edf1f5;
}

.reworld-club #primary > .container {
    width: calc(100% - 48px);
    max-width: 1400px;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0;
    padding-left: 0;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 47, 88, .08);
}

.reworld-club #primary > .container > .row,
.reworld-club #main {
    width: 100%;
    max-width: none;
}

.reworld-club #primary .vc_row[data-vc-full-width='true'] {
    width: 100% !important;
    left: auto !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.reworld-club-club-actionnaires .entry-content > .vc_row {
    padding-left: 54px;
    padding-right: 54px;
    text-align: center;
}

.reworld-club-club-actionnaires .entry-content > .vc_row:first-child {
    min-height: 0;
    padding-top: 74px;
    padding-bottom: 44px;
    background: #fff !important;
    text-align: center;
}

.reworld-club-club-actionnaires .entry-content > .vc_row:first-child::before,
.reworld-club-club-actionnaires .entry-content > .vc_row:first-child::after {
    display: none;
}

.reworld-club-club-actionnaires .entry-content > .vc_row:first-child p {
    max-width: 1250px;
    margin-right: auto;
    margin-left: auto;
    font-size: 18px;
    line-height: 1.75;
    text-align: center !important;
}

.reworld-club-club-actionnaires .entry-content > .vc_row:first-child .wpb_wrapper,
.reworld-club-club-actionnaires .entry-content > .vc_row .wpb_wrapper {
    margin-right: auto;
    margin-left: auto;
    text-align: center !important;
}

.reworld-club-club-actionnaires .entry-content > .vc_row:first-child,
.reworld-club-club-actionnaires .entry-content > .vc_row:first-child .vc_column-inner,
.reworld-club-club-actionnaires .entry-content > .vc_row:first-child .vc_column-text,
.reworld-club-club-actionnaires .entry-content > .vc_row:first-child strong {
    text-align: center !important;
}

.reworld-club-club-actionnaires .entry-content > .vc_row:first-child ul,
.reworld-club-club-actionnaires .entry-content > .vc_row:first-child ol {
    display: inline-block;
    padding-left: 0;
    list-style-position: inside;
    text-align: center;
}

.reworld-club-club-actionnaires .entry-content .upme-wrap {
    text-align: left;
}

/* Remove the legacy UPME field header and its surrounding frame. */
.reworld-club-club-actionnaires .upme-wrap .upme-head,
.reworld-club-club-actionnaires .upme-wrap .upme-post-head,
.reworld-club-club-actionnaires .upme-wrap .upme-custom-head {
    display: none !important;
}

body.logged-in .reworld-club-club-actionnaires .upme-wrap .upme-head,
body.logged-in .reworld-club-club-actionnaires .upme-wrap .upme-post-head,
body.logged-in .reworld-club-club-actionnaires .upme-wrap .upme-custom-head {
    display: block !important;
}

.reworld-club-club-actionnaires .entry-content .vc_row:has(.upme-wrap),
.reworld-club-club-actionnaires .entry-content .vc_column:has(.upme-wrap),
.reworld-club-club-actionnaires .entry-content .vc_column-inner:has(.upme-wrap),
.reworld-club-club-actionnaires .entry-content .upme-wrap {
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.reworld-club-club-actionnaires .entry-content .upme-wrap {
    padding: 0 !important;
}

.reworld-club div.upme-wrap div.upme-inner {
    border: 0 !important;
    box-shadow: none !important;
}

.reworld-club .upme-main {
    padding: 0 34px 0 0 !important;
    font-size: 14px !important;
}

/* Keep login labels and fields on the same row on translated pages. */
.reworld-club form[id^='upme-login-form-'] .upme-field {
    display: flex !important;
    align-items: center;
    gap: 16px;
}

.reworld-club form[id^='upme-login-form-'] .upme-field-type {
    flex: 0 0 30%;
    margin: 0;
}

.reworld-club form[id^='upme-login-form-'] .upme-field-value {
    flex: 1 1 auto;
    min-width: 0;
}

/* Hide the UPME heading only when this wrapper contains the login form. */
.reworld-club .upme-wrap:has(form[id^='upme-login-form-']) > .upme-head {
    display: none !important;
}

.reworld-club .upme-wrap.upme-login > .upme-head {
    display: none !important;
}

/* Layout-only overrides: keep the existing site palette untouched. */
.reworld-club,
.reworld-club #primary,
.reworld-club #primary > .container {
    background: #fff !important;
    color: inherit;
}

.reworld-club #primary > .container {
    box-shadow: none;
}

.reworld-club .header-title-breadcrumb,
.reworld-club .header-title-breadcrumb-overlay {
    background-color: transparent !important;
}

.reworld-club .entry-content p,
.reworld-club .entry-content li,
.reworld-club .entry-content span,
.reworld-club .entry-content h2,
.reworld-club .entry-content h3,
.reworld-club .entry-content a {
    color: inherit;
}

.reworld-club .vc_col-sm-6:has(.upme-wrap),
.reworld-club .vc_col-sm-6:has(.sweetthemes_button) {
    border: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

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

    .reworld-club #primary > .container {
        width: calc(100% - 24px);
    }

    .reworld-club-club-actionnaires .entry-content > .vc_row {
        padding-right: 20px;
        padding-left: 20px;
    }

    .reworld-club-club-actionnaires .entry-content > .vc_row:first-child p {
        font-size: 15px;
    }
}


/* The beige block is inherited by a WPBakery parent around the shortcode. */
.reworld-club .entry-content .vc_row_inner:has(.sweetthemes_button),
.reworld-club .entry-content .vc_column_inner:has(.sweetthemes_button),
.reworld-club .entry-content .vc_column:has(.sweetthemes_button) { background: transparent !important; background-color: transparent !important; background-image: none !important; }
