:root {
    --seuil-affichage-mobile: 992px;
}

html {
    background-size: cover;
}

footer {
    margin-top: 0px !important;
}

body {
    overflow-x: hidden;
}

/* test style block */
.is-style-test-elefen {
    background-color: var(--wp--preset--color--vivid-red);
    position: relative;
}

.is-style-test-elefen::after {
    content: '';
    background-color: aqua;
    position: absolute;
    clip-path: polygon(44% 0%, 0% 100%, 66% 100%, 100% 0%);
    width: 56%;
    height: 60%;
    bottom: 0;
    z-index: 0;
    right: 0;
}

.is-style-test-elefen h2 {
    color: rgb(219, 233, 24);
    position: relative;
    z-index: 2;
}


.is-style-bouton-1 .wp-element-button {
    background-color: var(--wp--preset--color--luminous-vivid-amber);
    border-radius: 5px;
    transition: 0.5s all ease-in-out;
}

.is-style-bouton-1 .wp-element-button:hover {
    background-color: var(--wp--preset--color--vivid-purple);
    border-radius: 10px;
    padding-left: 50px;
    padding-right: 100px;
}

/*Top Bar*/
.top-bar {
    background-color: var(--theme--color--2);
    color: var(--theme--color--0);
}

.top-bar > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.menu-top-bar-menu-container .menu {
    margin: 0;
    display: flex;
    list-style: none;
    justify-content: flex-end;
}

.menu-top-bar-menu-container .menu li a {
    padding: 16px 18px 16px;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3.5px;
    font-family: var(--wp--preset--font-family--poppins);
    font-weight: 700;
    transition: all 0.5s ease-in-out;
}

.menu-top-bar-menu-container .menu li a:hover {
    color: var(--wp--preset--color--couleur-foncee-03);
}

.menu-top-bar-menu-container .menu li:last-child a {
    padding: 16px 0 16px 15px;
}

.content1_3 {
    flex-basis: calc(var(--wp--style--global--content-size) * 0.333 + (50vw - 600px)) !important;
}

.content2_3 {
    flex-basis: calc(var(--wp--style--global--content-size) * 0.666666 + (50vw - 600px)) !important;
}

.hamburger {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index:10;
}

.hamburger .line {
    width: 31px;
    height: 3px;
    background-color: #ecf0f1;
    display: block;
    margin: 3px 0;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.hamburger:hover{
    cursor: pointer;
}

.line {
    fill: none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke: #fff;
    stroke-width: 3.5;
    stroke-linecap: round;
}

#hamburger-1 .line:nth-child(1) {
    width: 19px;
    align-self: flex-end;
}

#hamburger-1 .line:nth-child(3) {
    width: 19px;
}

#hamburger-1.is-active .line:nth-child(2){
    opacity: 0;
}

#hamburger-1.is-active .line:nth-child(1){
    -webkit-transform: translateY(13px) rotate(45deg);
    -ms-transform: translateY(13px) rotate(45deg);
    -o-transform: translateY(13px) rotate(45deg);
    transform: translateY(13px) rotate(45deg);
    width: 31px;
}

#hamburger-1.is-active .line:nth-child(3){
    -webkit-transform: translateY(-6px) rotate(-45deg);
    -ms-transform: translateY(-6px) rotate(-45deg);
    -o-transform: translateY(-6px) rotate(-45deg);
    transform: translateY(-6px) rotate(-45deg);
    width: 31px;
}

@media screen and (max-width: 1200px) {
    .content2_3, .content1_3 {
        flex-basis: 50% !important;
    }
}

@media screen and (max-width: 782px) {
    .content2_3, .content2_3 .wp-block-cover {
        min-height: 300px !important;
    }

    .firstSectionOslo > .wp-block-group > .wp-block-columns {
        flex-direction: column-reverse;
    }
}

/* SubMenu */
.sub-menu {
    max-height: 0vh;
    overflow: hidden;
    transition: 0.5s all ease-in-out;
}

.sub_menu_open .sub-menu {
    max-height: 100vh;
}

/* Remonté footer par dessu dernière section avec image par dessu footer */
.cta .wp-block-columns {
    position: relative;
    z-index: 2;
}

.cta + .wp-block-template-part {
    margin-top: -30px !important;
}

/* Formes cleo */
.formeTopLarge::before {
    content: '';
    background-image: url('../images/topLargeCLip.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    width: 100%;
    position: absolute;
    height: 94%;
    left: 0;
    top: 0;
    z-index: -1;
}

.formeSectionClip::before {
    content: '';
    background-image: url('../images/sectionClip.svg');
    background-repeat: repeat-x;
    background-size: contain;
    background-position: center center;
    width: 100%;
    position: absolute;
    height: 107%;
    left: 0;
    top: 50%;
    z-index: -1;
    transform: translateY(-50%);
}

.formebottomLarge::before {
    content: '';
    background-image: url('../images/bottomLargeClip.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    width: 100%;
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
}


/* Menu oslo */


.pannel{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: -1;
    opacity: 0;
    transition: opacity .25s ease-in-out,z-index .5s ease;
    transition-delay: 700ms;
}

.pannel > .wp-block-group:first-child {
    background: var(--principal);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    position: relative;
    transition: transform 700ms cubic-bezier(.215,.61,.355,1);
    transition-timing-function: cubic-bezier(.215,.61,.355,1);
}

.pannel > .wp-block-group:last-child {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 700ms cubic-bezier(.215,.61,.355,1);
    transition-timing-function: cubic-bezier(.215,.61,.355,1);
}

.pannel.active > .wp-block-group  {
    transform: translateX(0)
}

.pannel.active {
    z-index: 4;
    opacity: 1;
    transition-delay: 0ms;
}

.bgFooter, .bgHeader {
    position: relative;

}

.bgHeader {
    position: relative;
    overflow: hidden;
}

.bgFooter:before {
    content: '';
    background-image: url(/wp-content/uploads/2026/05/Texture-ruban-abstrait-01-1.png);
    /* background-position: left center; */
    background-size: cover;
    background-repeat: no-repeat;
    display: block;
    width: 548px;
    height: 633px;
    position: absolute;
    right: 42px;
    /* right: clamp(20px, calc( ( 100vw - var(--wp--style--global--content-size) + 112px ) / 2 ), 100vw); */
    bottom: 5px;
    transform: rotate(270deg);
}

.bgHeader:before {
    content: '';
    background-image: url(/wp-content/uploads/2026/05/Texture-ruban-abstrait-01-1.png);
    /* background-position: left center; */
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    width: 1048px;
    height: 1343px;
    position: absolute;
    /*right: -88px;*/
    right:clamp(20px, calc( ( 100vw - var(--wp--style--global--content-size) ) / 2 ), 100vw);
    top: -329px;
    transform: rotate(221deg);
    z-index: -1;
}

.backgroundRond:before {
    content: '';
    background-image: url(/wp-content/uploads/2026/05/round-purple-shape.svg);
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    width: 100%;
    height: 590px;
    position: absolute;
    /*left: -30px;*/
    z-index: 0;
}

.wp-block-button__link {
    transition: 0.5s all ease-in-out;
}

.wp-block-button__link:hover {
    transform: translateY(-10px);
}

footer li a, header li a {
    transition: 0.5s all ease-in-out;
}

footer li a:hover, header li a:hover {
    color: var(--wp--preset--color--rose) !important;
}

.elefen-credit-link {
    color: white !important;
}

/* le PARENT du ruban doit être positionné */
.bs-hero { position: relative; overflow: hidden; }

.bs-ribbon {
    position: absolute;
    pointer-events: none;
    transform: rotate(221deg);
    width: 788px;
    height: 1093px;
    top: -99px;
    right: clamp(20px, calc((100vw - var(--wp--style--global--content-size)) / 2 - 240px), 100vw);
    z-index: -1;
}
.bs-ribbon::after{ /* halo coloré derrière, optionnel */
    content:""; position:absolute; inset:8% 4% 8% 12%;
    background:radial-gradient(60% 50% at 55% 45%,rgba(224,36,155,.10),rgba(122,60,240,.06) 45%,transparent 72%);
    filter:blur(20px); z-index:-1;
}
.bs-ribbon__layer{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:contain; object-position:center;
    will-change:transform,filter,opacity;
}
.bs-ribbon__base { animation:bs-drift 24s ease-in-out infinite alternate, bs-hue 46s linear infinite; }
.bs-ribbon__ghost{ mix-blend-mode: color-dodge; opacity:.42; animation:bs-driftGhost 19s ease-in-out infinite alternate; }

.bs-ribbon__sheen{
    position:absolute; inset:0; z-index:2; pointer-events:none; mix-blend-mode:overlay;
    background:linear-gradient(108deg,transparent 38%,rgba(255,255,255,.55) 50%,transparent 62%);
    background-size:260% 100%;
    /* ⬇️ même URL que l'image, sert de masque pour que le reflet épouse le ruban */
    -webkit-mask:url("/wp-content/uploads/2026/06/ruban-detoure.png") center/contain no-repeat;
    mask:url("/wp-content/uploads/2026/06/ruban-detoure.png") center/contain no-repeat;
    animation:bs-sheen 9s ease-in-out infinite;
}

input, textarea, select {
    font-family: var(--wp--preset--font-family--funnel-sans);
    border: 0px solid;
    border-radius: 2px;
    font-size: 16px !important;
}

input[type="submit"] {
    border-width: 2px;
    border-radius: 16px;
    border-color: var(--wp--preset--color--magenta) !important;
    background-color: var(--wp--preset--color--magenta) !important;
    padding: 12px 24px;
    color: #fff;
    font-family: var(--wp--preset--font-family--funnel-sans);
    font-size: var(--wp--preset--font-size--x-small) !important;
    font-style: normal;
    font-weight: 400;
    letter-spacing: inherit;
    line-height: inherit;
    transition: 0.5s all ease-in-out;
    cursor: pointer;
}

input[type="submit"]:hover {
    transform: translateY(-10px);
}

.gform_wrapper.gravity-theme #field_submit, .gform_wrapper.gravity-theme .gform_footer {
    display: flex;
    justify-content: center !important;
}


@keyframes bs-drift{
    0% {
        transform: translate3d(0, 0, 0) rotate(0) scale(1);
    }
    50% {
        transform: translate3d(-5px, -5px, 0) rotate(-2deg) scale(1.035);
    }

    100% {
        transform: translate3d(5px, 5px, 0) rotate(2deg) scale(1.05);
    }
}
@keyframes bs-driftGhost{
    0% {
        transform: translate3d(0, 0, 0) rotate(0) scale(1.01);
    }

    30% {
        transform: translate3d(5px, 5px, 0) rotate(5deg) scale(1.05);
    }
    100% {
        transform: translate3d(-5px, -5px, 0) rotate(-5deg) scale(0.95);
    }
}
@keyframes bs-hue{ 0%,100%{filter:hue-rotate(0) saturate(1);} 50%{filter:hue-rotate(-10deg) saturate(1.08);} }
@keyframes bs-sheen{ 0%{background-position:230% 0;opacity:0;} 18%{opacity:1;} 55%{opacity:1;} 100%{background-position:-130% 0;opacity:0;} }

@media (prefers-reduced-motion:reduce){
    .bs-ribbon__base,.bs-ribbon__ghost,.bs-ribbon__sheen{ animation:none!important; }
}

@media screen and (max-width: 1300px) {
    .top-bar > div {
        padding: 0 20px;
    }
}

@media screen and (min-width: 992px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none;
    }
}

@media screen and (max-width: 992px) {
    /* Affiche le bouton hamburger */
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }

    /* Cache le menu horizontal desktop */
    /*header .wp-block-navigation:not(.has-modal-open) .wp-block-navigation__container {*/
    /*display: none;*/
    /*}*/

    /* Remet l'overlay en mode "modal" (caché tant que pas ouvert) */
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }

    /* Quand l'overlay s'ouvre, il prend tout l'écran */
    .wp-block-navigation__responsive-container.is-menu-open {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: #fff; /* ajuste à ta couleur */
        /*padding: var(--wp--preset--spacing--40, 2rem);*/
        z-index: 100000;
    }

    /* Le menu à l'intérieur de l'overlay s'affiche en colonne */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        display: flex;
        flex-direction: column;
    }

    .top-bar {
        background-color: var(--wp--preset--color--couleur-pale-01);
        color: black;
    }

    .menu-top-bar-menu-container .menu li a {
        padding: 16px !important;
    }

    .top-bar > div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 15px;
        padding: 15px 0 0;
    }

    .menu-top-bar-menu-container .menu {
        margin: 0;
        display: flex;
        list-style: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    header > .top-bar {
        display: none;
    }
}

@media screen and (min-width: 782px) {
    .padding-left {
        padding-left: clamp(20px, calc( ( 100vw - var(--wp--style--global--content-size) ) / 2 ), 100vw) !important;
    }

    .padding-right {
        padding-right: clamp(20px, calc( ( 100vw - var(--wp--style--global--content-size) ) / 2 ), 100vw) !important;
    }
}

@media screen and (max-width: 782px) {
    .reverseMobile {
        flex-direction: column-reverse;
    }

    .gridFullWidthMobile {
        display: flex !important;
        flex-direction: column;
    }

    body .entry-content .is-content-justification-right {
        align-content: flex-start !important;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .rowReverseMobile {
        flex-direction: row-reverse;
    }

    .has-text-align-right {
        text-align: left;
    }

    .footer .wp-block-navigation__container {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .resetPaddingHorMobile {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .bgHeader:before {
        right: -90px;
        height: 753px;
    }

    .bgFooter:before {
        background-size: contain;
        width: 100%;
        height: 100vw;
        right: 0;
    }

    .OneColumnUlMobile {
        column-count: 1;
    }
}