:root {
    --seuil-affichage-mobile: 992px;
    --elefen-hover-opacity: 0.75;
    --elefen-hover-duration: 0.2s;
    --elefen-hover-easing: ease-in-out;
}

:where(.wp-site-blocks) > *{
    margin-block-start: 0;
}

a{
    transition: ease-in-out 0.4s;
}



a.btn-red:hover,
.btn-red a:hover{
    background-color: var(--wp--preset--color--golden-yellow)!important;
    color:#ffffff!important;
    border:none!important;
}

a.btn-yellow:hover,
.btn-yellow a:hover{
    background-color: var(--wp--preset--color--red)!important;
    color:#ffffff!important;
    border:none!important;
}

a.btn-white:hover,
.btn-white a:hover{
    background-color: var(--wp--preset--color--red)!important;
    color:#ffffff!important;
    border:none!important;
}

body.menu-fixed .header-top{
    width: 100%;
    background-color:#ffffff;
    position: fixed;
    z-index:999;
    padding-top: 22px!important;
    padding-bottom: 22px!important;
}

.mobile-menu-active .hide-mobile{
    display: none!important;
}

.mobile-menu-active .home-slide-01 .wp-block-columns,
.mobile-menu-active .home-slide-02 .wp-block-columns{
    gap:0!important;
}

.mobile-menu-active .home-slide-01 .wp-block-column,
.mobile-menu-active .home-slide-02 .wp-block-column{
    padding-right:18px;
    padding-left:18px;
}

.mobile-menu-active .mobile-order-1{
    order:1!important;
}

.mobile-menu-active .mobile-order-2{
    order:2!important;
}

.mobile-menu-active .mobile-order-3{
    order:3!important;
}

.mobile-menu-active .mobile-order-4{
    order:4!important;
}

.mobile-menu-active .mobile-order-5{
    order:5!important;
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .wp-block-navigation__container li{
    border-bottom:solid 1px #dddddd;
    width:100%;
    padding-top:12px;
    padding-bottom:12px;
    align-items: center;
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open ul.wp-block-navigation__container{
    gap:0px!important;
    width:100%!important;
}

.wp-block-navigation__responsive-container-content{
    display: flex;
    align-items: center;
}

/* ─── Slideshow ──────────────────────────────────────────────────────
   Stack slides on top of each other, only .active is visible.
   Crossfade between slides (works with the Ken Burns zoom inside covers).

   IMPORTANT: all hiding rules are scoped to body:not(.wp-admin) so
   slides remain visible and editable inside the Gutenberg editor. */
.home .slideshow,
.slideshow {
    position: relative;
    overflow: hidden;
}

.slideshow .slides,
.slideshow .slidesWidth {
    position: relative;
    width: 100% !important;
    display: block;
}

body:not(.wp-admin) .slideshow .slide {
    position: absolute;
    inset: 0;
    width: 100% !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
    pointer-events: none;
}

body:not(.wp-admin) .slideshow .slide.active {
    position: relative; /* first slide drives the height */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0s;
    pointer-events: auto;
    z-index: 2;
}

/* Navigation dots — container centered at the bottom */
.home .navigation,
.slideshow .navigation {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}

/* Individual dots */
.slideshow .navigation.dots .dot,
.navigation.dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.slideshow .navigation.dots .dot:hover,
.navigation.dots .dot:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.9);
}

.slideshow .navigation.dots .dot-active,
.navigation.dots .dot-active {
    background-color: var(--elefen-mcd-yellow, #FFC72C);
    border-color: var(--elefen-mcd-yellow, #FFC72C);
    transform: scale(1.15);
}

/* ─── Slideshow — mobile (< 782px) ────────────────────────────────────
   On mobile we move the navigation dots UNDER the slideshow rather than
   overlaying them on top of the image. The slideshow itself has
   overflow: hidden (needed for the Ken Burns zoom), so we have to both
   (1) pull the navigation out of absolute positioning and (2) allow it
   to render outside the clipping box. We do this by making .slideshow
   overflow visible on mobile and anchoring the inner .slides clipping
   box instead, then laying the dots out in normal flow below. */
@media screen and (max-width: 782px) {

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        padding-top: 32px;
    }

    .has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog {
        margin-top: 0px;
    }

    .padding-mobile{
        padding-left:18px;
        padding-right:18px;
    }

    .home .slideshow,
    .slideshow {
        overflow: visible;
    }

    /* Keep the Ken Burns zoom contained to the slide area */
    .slideshow .slides,
    .slideshow .slidesWidth {
        overflow: hidden;
    }

    .home .navigation,
    .slideshow .navigation {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        justify-content: center;
        margin: 14px auto 0;
        padding: 8px 14px;
        gap: 10px;
        width: max-content;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 999px;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .slideshow .navigation.dots .dot,
    .navigation.dots .dot {
        width: 14px;
        height: 14px;
        border-width: 2px;
        /* Increase touch target without changing visual size */
        position: relative;
    }

    .slideshow .navigation.dots .dot::before,
    .navigation.dots .dot::before {
        content: '';
        position: absolute;
        inset: -10px;
    }
}

.m-outline-yellow-right{
    background-image: url(../images/M-Outline-Yellow.svg);
    background-repeat: no-repeat;
    background-size: 700px;
    background-position: center right;
}

.m-outline-white-left.light-header{
    background-position: -5% 78%;
}

.m-outline-white-left{
    background-image: url(../images/M-Outline-White.svg);
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: -5% 120%;
}

.m-outline-white-right{
    background-image: url(../images/M-Outline-White.svg);
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: 112% 50%;
}

/* 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;
}

.content1_2 {
    flex-basis: calc(var(--wp--style--global--content-size) * 0.5 + (50vw - 700px)) !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 (min-width: 1180px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none;
    }
}

@media screen and (max-width: 1180px) {
    
    .wp-block-navigation__responsive-container-close {
        right: 18px;
        top: 18px;
    }
    
    /* 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;
    }
    
        .wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open{
        background-image: url(../images/M-Outline-Yellow.svg);
        background-repeat: no-repeat;
        background-size: 92%;
        background-position: center 42px;
    }

    .container-main-menu{
        display: flex;
        justify-content: end;
    }

    .wp-block-navigation__responsive-container-close {
        right: 18px;
        top:18px;
    }

    nav.main-menu ul.main-menu{
        display: flex!important;;
        justify-content: center!important;;
        align-items: center!important;
        width: 100%;
    }

    .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 (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;
}

.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;
}


/* 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;
}

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

@media screen and (max-width: 992px) {


}

@media screen and (max-width: 782px) {

    .reverseMobile {
        flex-direction: column-reverse;
    }

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

    /*.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;
    }

}
