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

html {
    background-size: contain;
}

.logo {
    z-index: 50;
}

body:not(.home) .logo {
    padding: 20px 0;
    margin: 0 !important;
}

body:not(.home) .logo img {
    width: 181px !important;
}


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

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

/* ==========================================================
   Lucien Côté — styles de la déclinaison
   ========================================================== */

/* Icône menu en points rouges (3x3) */
.lucien-menu-icon {
    width: 20px;
    height: 20px;
    background-image: radial-gradient(circle, var(--wp--preset--color--custom-color-3) 2.2px, transparent 2.6px);
    background-size: 7px 7px;
    background-position: center;
}

/* Liens sociaux : verticaux, lecture de bas en haut, Facebook en bas */
.lucien-social {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 28px;
}

.lucien-social p {
    margin: 0 !important;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lucien-social a {
    text-decoration: none;
    color: inherit;
}

/* Titres de cartes (section expertise) : barre verticale grise */
.lucien-card-text {
    border-left: 8px solid var(--wp--preset--color--custom-color-5);
    padding-left: 23px;
}

/* Tag « Innovation » */
.lucien-tag {
    display: inline-block;
    background: var(--wp--preset--color--custom-color-10);
    color: var(--wp--preset--color--custom-color-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 6px 22px;
    border-radius: 4px;
}

/* Carte « Nous joindre » : dégradé du design (#4E000066 -> #6C000000 sur #A30013) */
.lucien-cta {
    background: linear-gradient(120deg, rgba(78, 0, 0, .4), rgba(108, 0, 0, 0)), var(--wp--preset--color--custom-color-3);
}

/* Rangée de logos fabricants */
.lucien-logos img {
    max-height: 74px;
    width: auto;
    filter: grayscale(1);
    opacity: .8;
}

.wp-block-template-part {
    margin-top: 0 !important;
}

nav > ul > li > a,
nav > div ul > li > a {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
}

/* Hover des boutons */
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.wp-block-button__link img {
    display: inline-block;
    width: 16px;
    height: auto;
    transition: transform .3s ease, filter .3s ease;
}

.wp-block-button__link:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

.wp-block-button__link:hover img {
    transform: translateX(5px);
}

/* Bouton blanc -> rouge au survol (la flèche SVG rouge devient blanche) */
.wp-block-button__link.has-custom-color-2-background-color:hover {
    background-color: var(--wp--preset--color--custom-color-3) !important;
    color: var(--wp--preset--color--custom-color-2) !important;
}

.wp-block-button__link.has-custom-color-2-background-color:hover img {
    filter: brightness(0) invert(1);
}

/* Bouton rouge -> rouge foncé au survol */
.wp-block-button__link.has-custom-color-3-background-color:hover {
    background-color: var(--wp--preset--color--custom-color-4) !important;
}

@media screen and (max-width: 992px) {
    .lucien-sidebar {
        display: none;
    }

    body {
        padding-left: 0;
    }
}

/* Menu pannel : apparition décalée des éléments (slide gauche -> droite + opacité) */
.pannel .wp-block-navigation-item {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.215, .61, .355, 1);
}

.pannel.active .wp-block-navigation-item {
    opacity: 1;
    transform: translateX(0);
}

/* Décalage progressif, après le slide du panneau (~700ms) */
.pannel.active .wp-block-navigation-item:nth-child(1) { transition-delay: .55s; }
.pannel.active .wp-block-navigation-item:nth-child(2) { transition-delay: .67s; }
.pannel.active .wp-block-navigation-item:nth-child(3) { transition-delay: .79s; }
.pannel.active .wp-block-navigation-item:nth-child(4) { transition-delay: .91s; }
.pannel.active .wp-block-navigation-item:nth-child(5) { transition-delay: 1.03s; }
.pannel.active .wp-block-navigation-item:nth-child(6) { transition-delay: 1.15s; }
.pannel.active .wp-block-navigation-item:nth-child(7) { transition-delay: 1.27s; }
.pannel.active .wp-block-navigation-item:nth-child(8) { transition-delay: 1.39s; }

/* Liens sociaux par-dessus le menu pannel ouvert */
body.menu-open .lucien-social {
    position: fixed;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent !important;
    padding: 0 !important;
}

body.menu-open .lucien-social p {
    color: var(--wp--preset--color--custom-color-2);
    opacity: 0;
    animation: lucienSocialIn .5s cubic-bezier(.215, .61, .355, 1) forwards;
}

body.menu-open .lucien-social a {
    color: inherit;
}

/* cascade synchronisée avec les éléments de menu */
body.menu-open .lucien-social p:nth-child(1) { animation-delay: .55s; }
body.menu-open .lucien-social p:nth-child(2) { animation-delay: .67s; }
body.menu-open .lucien-social p:nth-child(3) { animation-delay: .79s; }

@keyframes lucienSocialIn {
    from {
        opacity: 0;
        transform: rotate(180deg) translateX(24px); /* part 24px à gauche (axe inversé par la rotation) */
    }
    to {
        opacity: 1;
        transform: rotate(180deg) translateX(0);
    }
}
