/* =====================================================================
   Wee-Work – site-wide header & footer (2026 redesign)
   Loaded on every front page from templates/CJXv3Pro/top/top_script.php.
   Scoped to html.wv2-site (class added in top_script.php) so it can be switched off there.
   Only restyles the existing header_topbar.php / footer_home.php markup.
   ===================================================================== */

html.wv2-site body {
    --wv-ink: #0D1015;
    --wv-ink-2: #171B22;
    --wv-ink-3: #252A33;
    --wv-sand: #F5F4F0;
    --wv-line: #E3E1DA;
    --wv-muted: #5D6370;
    --wv-muted-d: #9AA1AD;
    --wv-accent: #19C3D3;
    --wv-accent-2: #0E8E9B;
    --wv-accent-soft: #DDF7FA;
    --wv-font: "Plus Jakarta Sans", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wv-header-h: 84px;
}
@media (max-width: 991px) {
    html.wv2-site body { --wv-header-h: 72px; }
}

html.wv2-site body header.fixed {
    width: 100%;
    z-index: 999;
    /* No backdrop-filter here: it would turn the header into the containing block of the
       theme's position:fixed menus ("Nos services" panel, mobile menu) and clip them. */
    background: rgba(245, 244, 240, .97);
    border-bottom: 1px solid rgba(13, 16, 21, .06);
    box-shadow: none;
    font-family: var(--wv-font);
    transition: background .3s ease, box-shadow .3s ease;
}

@media (min-width: 992px) {
    html.wv2-site body header.fixed .header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: var(--wv-header-h);
    display: flex;
    align-items: center;
}

    html.wv2-site body header.fixed .logo img {
    height: 40px;
    width: auto;
}

    html.wv2-site body header.fixed .header-right {
    margin-left: auto;
}

    html.wv2-site body header.fixed .header-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

    html.wv2-site body header.fixed .header-menu > ul {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

    html.wv2-site body header.fixed .header-menu ul.navmenu-links {
    gap: 28px;
}

    html.wv2-site body header.fixed .header-menu > ul > li {
    margin: 0;
    padding: 0;
}

    html.wv2-site body header.fixed .header-menu ul.navmenu-links > li > a {
    font-family: var(--wv-font);
    font-size: 15px;
    font-weight: 600;
    color: #2B3039;
    text-transform: none;
    letter-spacing: 0;
    padding: 8px 0;
    position: relative;
}

    html.wv2-site body header.fixed .header-menu ul.navmenu-links > li > a.active,
html.wv2-site body header.fixed .header-menu ul.navmenu-links > li > a:hover {
    color: var(--wv-ink);
}

    html.wv2-site body header.fixed .header-menu ul.navmenu-links > li > a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--wv-accent);
    border-radius: 2px;
}

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.lang > a,
html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.curr > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--wv-line);
    background: #fff;
    font-family: var(--wv-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--wv-ink);
    text-transform: none;
}

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.login > a {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--wv-line);
    background: #fff;
    color: var(--wv-ink);
    font-family: var(--wv-font);
    font-size: 14.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.login:last-child > a {
    background: var(--wv-ink);
    border-color: var(--wv-ink);
    color: #fff;
}
}

html.wv2-site body #maine-footer {
    background: var(--wv-ink);
    color: #fff;
    font-family: var(--wv-font);
    border: 0;
    margin: 0;
}

html.wv2-site body #maine-footer .footer-top {
    background: transparent;
    padding: 64px 0 40px;
}

html.wv2-site body #maine-footer .footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

html.wv2-site body #maine-footer .footer-top .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.2fr 1fr;
    gap: 40px;
}

html.wv2-site body #maine-footer .footer-column {
    width: auto;
    float: none;
    padding: 0;
    margin: 0;
}

html.wv2-site body #maine-footer h4 {
    font-family: var(--wv-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--wv-muted-d);
    margin: 0 0 18px;
}

html.wv2-site body #maine-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

html.wv2-site body #maine-footer ul li {
    margin: 0 0 12px;
    padding: 0;
    font-size: 15px;
    color: #D7DBE1;
    line-height: 1.45;
}

html.wv2-site body #maine-footer ul li a,
html.wv2-site body #maine-footer address {
    font-family: var(--wv-font);
    font-size: 15px;
    color: #D7DBE1;
    font-style: normal;
    text-decoration: none;
    transition: color .2s ease;
}

html.wv2-site body #maine-footer ul li a:hover,
html.wv2-site body #maine-footer ul li a.active {
    color: var(--wv-accent);
}

html.wv2-site body #maine-footer .contact-data li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

html.wv2-site body #maine-footer .contact-data li > i {
    color: var(--wv-accent);
    width: 18px;
    flex: none;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    position: static;
}

html.wv2-site body #maine-footer .contact-data li > i img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(67%) sepia(57%) saturate(549%) hue-rotate(137deg) brightness(92%) contrast(90%);
}

html.wv2-site body #maine-footer .register-bottom-sec {
    margin-top: 28px;
}

html.wv2-site body #maine-footer .register-bottom-logo {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

html.wv2-site body #maine-footer .register-bottom-logo a {
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
}

html.wv2-site body #maine-footer .register-bottom-logo img {
    height: 30px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

html.wv2-site body #maine-footer .social-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

html.wv2-site body #maine-footer .social-media-list li {
    margin: 0;
}

html.wv2-site body #maine-footer .social-media-list li a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--wv-ink-3);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    background: transparent;
}

html.wv2-site body #maine-footer .social-media-list li a:hover {
    background: var(--wv-accent);
    border-color: var(--wv-accent);
    color: var(--wv-ink);
}

html.wv2-site body #maine-footer .download-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
}

html.wv2-site body #maine-footer .download-links br {
    display: none;
}

html.wv2-site body #maine-footer .download-links img {
    height: 44px;
    width: auto;
}

html.wv2-site body #maine-footer .footer-bottom {
    background: transparent;
    border-top: 1px solid var(--wv-ink-3);
    padding: 26px 0 34px;
    color: var(--wv-muted-d);
    font-size: 14px;
}

html.wv2-site body #maine-footer .footer-bottom span {
    color: var(--wv-muted-d);
    font-family: var(--wv-font);
}

html.wv2-site body #maine-footer .gotop {
    background: var(--wv-accent);
    border-radius: 50%;
}

@media (max-width: 1199px) {
    html.wv2-site body #maine-footer .footer-top .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    html.wv2-site body header.fixed .header-inner { padding: 0 18px; }
}

@media (max-width: 767px) {
    html.wv2-site body #maine-footer .footer-inner { padding: 0 18px; }

    html.wv2-site body #maine-footer .footer-top .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* desktop pill buttons only – below 992px the theme mobile menu keeps its own colours */
@media (min-width: 992px) {
    html.wv2-site body header.fixed .header-right ul li {
        padding: 0;
    }

    html.wv2-site body header.fixed .header-right ul li::after,
    html.wv2-site body header.fixed .header-right ul li.login::after,
    html.wv2-site body header.fixed .header-right ul li.lang::after,
    html.wv2-site body header.fixed .header-right ul li.curr::after {
        display: none !important;
    }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.lang > a,
    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.curr > a,
    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.login > a {
        color: var(--wv-ink) !important;
    }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.login:last-child > a {
        color: #fff !important;
        background: var(--wv-ink) !important;
    }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.login > a img {
        width: 16px;
        margin-right: 8px;
    }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.login:last-child > a img {
        filter: invert(1);
    }
}

html.wv2-site body #maine-footer,
html.wv2-site body #maine-footer .footer-top {
    border-top: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 991px) {
    html.wv2-site body header.fixed {
        background: rgba(255, 255, 255, .96);
    }

    html.wv2-site body header.fixed .header-inner {
        border-bottom: 0;
    }
}

@media (max-width: 767px) {
    html.wv2-site body #maine-footer .footer-top {
        padding: 40px 0 24px !important;
    }
}

@media (min-width: 992px) {
    html.wv2-site body header.fixed .header-inner {
        flex-wrap: nowrap !important;
        gap: 24px;
    }

    html.wv2-site body header.fixed .header-left {
        flex: none;
    }

    html.wv2-site body header.fixed .header-right {
        flex: 1 1 auto;
        min-width: 0;
        width: auto !important;
        margin-left: 0;
        padding-top: 0;
    }

    html.wv2-site body header.fixed .header-menu {
        justify-content: flex-end;
        width: 100%;
    }

    html.wv2-site body header.fixed .header-menu ul.navmenu-links > li > a {
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1279px) {
    html.wv2-site body header.fixed .header-inner { padding: 0 24px; gap: 16px; }

    html.wv2-site body header.fixed .logo img { height: 34px; }

    html.wv2-site body header.fixed .header-menu { gap: 16px; }

    html.wv2-site body header.fixed .header-menu ul.navmenu-links { gap: 16px; }

    html.wv2-site body header.fixed .header-menu ul.navmenu-links > li > a { font-size: 14px; }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) { gap: 6px; }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.lang > a,
    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.curr > a { padding: 0 10px; gap: 5px; font-size: 13px; }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.login > a { padding: 0 14px; font-size: 13.5px; }
}

@media (min-width: 992px) {
    html.wv2-site body header.fixed .header-menu,
    html.wv2-site body header.fixed .header-menu > ul,
    html.wv2-site body header.fixed .header-menu ul.navmenu-links {
        flex-wrap: nowrap !important;
    }

    html.wv2-site body header.fixed .header-menu { gap: 20px; }

    html.wv2-site body header.fixed .header-menu ul.navmenu-links { gap: 22px; }

    html.wv2-site body header.fixed .header-menu > ul > li { flex: none; }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.login > a { white-space: nowrap; }
}

@media (min-width: 992px) and (max-width: 1179px) {
    html.wv2-site body header.fixed .header-inner { padding: 0 20px; gap: 12px; }

    html.wv2-site body header.fixed .logo img { height: 30px; }

    html.wv2-site body header.fixed .header-menu { gap: 10px; }

    html.wv2-site body header.fixed .header-menu ul.navmenu-links { gap: 12px; }

    html.wv2-site body header.fixed .header-menu ul.navmenu-links > li > a { font-size: 13px; }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) { gap: 4px; }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.lang > a,
    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.curr > a {
        font-size: 0 !important;
        padding: 0 8px;
        gap: 4px;
        height: 38px;
    }

    html.wv2-site body header.fixed .header-menu > ul:not(.navmenu-links) > li.login > a {
        padding: 0 12px;
        font-size: 12.5px;
        height: 38px;
    }
}

@media (max-width: 991px) {
    html.wv2-site body header.fixed .has-level-menu .dropdown-content {
        top: 0 !important;
        bottom: 0 !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* video popup markup lives in the shared footer – keep it hidden until a video is opened (all pages) */
html.wv2-site body #video-popup-container {
    display: none;
    position: fixed;
    z-index: 996;
    width: 60%;
    left: 50%;
    margin-left: -30%;
    top: 20%;
    background-color: #fff;
}


html.wv2-site body #video-popup-close {
    cursor: pointer;
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 998;
    width: 25px;
    height: 25px;
    border-radius: 25px;
    text-align: center;
    font-size: 12px;
    background-color: #000;
    line-height: 25px;
    color: #fff;
}


html.wv2-site body #video-popup-iframe-container {
    position: absolute;
    z-index: 997;
    width: 100%;
    padding-bottom: 56.25%;
    border: 2px solid #000;
    border-radius: 2px;
    background-color: #000;
}


html.wv2-site body #video-popup-iframe {
    z-index: 999;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #000;
}


html.wv2-site body #video-popup-overlay {
    display: none;
    position: fixed;
    z-index: 995;
    top: 0;
    background-color: #000;
    opacity: .8;
    width: 100%;
    height: 100%;
}



/* Partenaires logos: three equal white tiles, logos large enough to read */
html.wv2-site body #maine-footer .register-bottom-logo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 330px;
}

html.wv2-site body #maine-footer .register-bottom-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    padding: 10px;
    background: #fff;
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}

html.wv2-site body #maine-footer .register-bottom-logo a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px var(--wv-accent);
}

html.wv2-site body #maine-footer .register-bottom-logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    margin: 0;
}

@media (max-width: 767px) {
    html.wv2-site body #maine-footer .register-bottom-logo { max-width: 360px; }
    html.wv2-site body #maine-footer .register-bottom-logo a { height: 92px; }
}
