/* VITRERIE SMITH CUSTOM CSS */

.wp-block-columns{
    padding-left:18px;
    padding-right:18px;
}

.gform_confirmation_wrapper span{
    word-wrap: inherit;
    text-align: center;
    white-space: break-spaces;
}






/* 1. Les colonnes doivent s'étirer */
.wp-block-columns {
    display: flex !important;
    align-items: stretch !important;
}

/* 2. Les deux colonnes doivent grandir à part égale */
.wp-block-column {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 3. Colonne de gauche — s'assurer qu'elle remplit la hauteur */
.block-column-map {
    display: flex;
    flex-grow: 1;
    min-height:350px;
}

/* 4. Lien intérieur doit aussi remplir tout l'espace */
.vitreriesmith-map-link {
    display: block;
    width: 100%;
    height: 100%;
    flex-grow: 1;
    background-image: url('https://vitreriesmith.elefen.dev/wp-content/uploads/2025/06/vitrerie_smith_map.png'); /* optionnel */
    background-size: cover;
    background-position: center;
}







.map-img a:hover{
    background: rgba(0,0,0,0.3);
}

.gform_confirmation_message{
    color:#ffffff!important;
}

.hamburger-button.active span.line-dote, .hamburger-button.active span.line-dote::before, .hamburger-button.active span.line-dote::after{
    background:#ffffff!important;
}

.max-width-500{
    max-width:500px;
}

body input[type='text'],
body .gform_wrapper input[type='text'],
body input[type='email'],
body .gform_wrapper input[type='email'],
body textarea,
body .gform_wrapper textarea{
    border-radius: 0px;
    border: none;
    box-shadow: none;
    background: #ffffff;
    font-family: var(--wp--preset--font-family--space-grotesk);
    font-size: clamp(0.875rem, 0.8409rem + 0.1818vw, 1rem);
    font-style: normal;
    font-weight: 400;
    text-decoration: none;
}

.gform-theme--foundation .ginput_complex label, .gform-theme--foundation .ginput_complex legend{
    font-size:12px;
}

.gform-theme--framework .field_description_above .gfield_description:where(:not([class=gfield_description]):not(.gfield_creditcard_warning_message):not(.field_validation_above .gfield_validation_message):not(.ginput_counter_tinymce):not(.gfield_consent_description):not(.gfield_choice_limit_message)){
    font-size:12px;
}

body{
    color:var(--wp--preset--color--gris-fonce);
    font-family: var(--wp--preset--font-family--space-grotesk);
}

body.menu-open .hamburger-button-content{
    background-color: var(--wp--preset--color--gris-fonce) !important;
}

body.home .hamburger-button-content{
    background:#ffffff;
}

footer .logo-footer{
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

footer .footer-site-web-elefen-link{
    pointer-events: none;
}

body.home footer .footer-site-web-elefen-link{
    pointer-events: auto;
}

.hamburger-button-content{
    display: flex;
    position: absolute;
    flex-direction: column;
    justify-content: space-between;
    align-items: center!important;
    cursor: pointer;
    z-index: 9;
    top: 0;
    left: 0;
    /*transform: translateY(-50%);*/
    margin-top: 0 !important;
    background: transparent;
    height: 89px;
    width: 36px;
    padding-left: 36px !important;
    padding-right: 36px !important;
}

.hamburger-button-content .hamburger-button{
    position: relative;
    left:0px;
}

body.home .header-oslo .logo-header img{
    width: 140px;
    transform: translate(-50%, 4em) scale(1.5);
    position: absolute;
    z-index: 999;
    text-align: center;
}

body.home.menu-open .header-oslo .logo-header img{
    display:none;
}

body.home .header-oslo > .wp-block-group{
    height:100px;
}

.eight-opacity{
    opacity:0.4!important;
}

body a{
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

body a:hover{
    opacity:0.8;
}

.show-on-hover-services{
    transition: all 0.25s ease-in-out;
}

.show-on-hover-services .wp-block-cover__inner-container{
    transition: all 0.25s ease-in-out;
    opacity:0;
}

.show-on-hover-services .wp-block-cover__background{
    transition: all 0.25s ease-in-out;
}

.show-on-hover-services:hover .wp-block-cover__background{
    opacity:0.8!important;
}

.show-on-hover-services:hover .wp-block-cover__inner-container{
    opacity:1;
}

.service-column-offset{
    transform:translate(0, -14%);
}

.scale-img{
    transition: all 0.5s ease-in-out;
}

.scale-img:hover{
    transform:scale(1.1);
}

.products-row > .wp-block-column{
    transition: all 0.25s ease-in-out;
}

.products-row > .wp-block-column:hover{
    transform:scale(1.2);
}

.services-home-row .wp-block-column{
    transition: all 0.25s ease-in-out;
}

.services-home-row .wp-block-column:hover{
    transform:scale(1.04);
}

.side-menu-home-header{
    position: absolute;
    padding-left: 44px !important;
    padding-right: 44px !important;
    padding-top: 0px;
    padding-bottom: 45px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-home-header > .wp-block-column{
    flex-basis: content!important;
    justify-content: space-between!important;
    display: flex;
    flex-wrap: wrap!important;
}

.side-menu-home-header .wp-block-column > .wp-block-group{
    width: 100%;
    display: flex;
}

.side-menu-home-header .wp-block-column img{
    transition: 0.25s all ease-in-out;
}

.side-menu-home-header .wp-block-column img:hover{
    transform:scale(1.5);
}

.square-behind-img-hover .square-behind-img:after{
    transition: 0.25s all ease-in-out;
}

.square-behind-img-hover:hover .square-behind-img:after{
    transform:scale(1.05);
}

.square-behind-img{
    position:relative;
    overflow: visible;
    width: 100%;
    height: 100%;
}

.square-behind-img img{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1!important;
}

.square-behind-img:after{
    content: "";
    width: 70%;
    height: 116%;
    position: absolute;
    background-color: var(--wp--preset--color--bleu-logo-vs);
    opacity: 0.8;
    top: -6%;
    left: 8%;
    z-index: 0;
}

.square-behind-img.square-right:after {
    width: 55%;
    height: 120%;
    left: inherit;
    right: 8%;
}

.square-behind-img-hover .square-behind-img-row:after{
    transition: 0.25s all ease-in-out;
}

.square-behind-img-hover:hover .square-behind-img-row:after{
    transform:scale(1.05);
}

.square-behind-img-row{
    position:relative;
    overflow: visible;
    width: 100%;
    height: 100%;
}

.square-behind-img-row img{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1!important;
}

.square-behind-img-row:after{
    content: "";
    width: 48%;
    height: 124%;
    position: absolute;
    background-color: var(--wp--preset--color--bleu-logo-vs);
    opacity: 0.8;
    top: -10%;
    left: 8%;
    z-index: 0;
}

.square-behind-img-row.right:after {
    width: 48%;
    height: 120%;
    left: inherit;
    right: 8%;
}

.position-static{
    z-index: 999;
    position: static;
}

.wp-block-gallery img{
    transition: 0.25s all ease-in-out;
}

.wp-block-gallery img:hover{
    transform:scale(1.05);
}

/* --------------------------- */

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

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

.content-area{
    margin-top:0px!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--space-grotesk);
    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) {

    .remove-padding-top-mobile{
        padding-top:0px!important;
    }

    .remove-padding-bottom-mobile{
        padding-bottom:0px!important;
    }

    .wp-block-columns.no-padding-mobile-left-right{
        padding-left:0px;
        padding-right:0px;
    }

    .hide-square-mobile{
        display:none;
    }

    .hide-square-mobile .square-behind-img{
        display:none;
    }

    .hide-square-mobile .square-behind-img-row{
        display:none;
    }

    .content2_3, .content2_3 .wp-block-cover {
        min-height: 300px !important;
    }

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

    .side-menu-home-header{
        display:none!important;
    }

    .content-menu-home-header > .wp-block-column{
        padding-left:0px!important;
        padding-top:0px!important;
    }

    .hamburger-button-content{
        background: transparent !important;
    }

    .wp-block-group .wp-block-columns .wp-block-column{
        padding-left:18px;
        padding-right:18px;
    }

    footer .wp-block-columns:first-of-type{
        padding-left:18px;
        padding-right:18px;
    }

    body.home .header-oslo .logo-header img{
        position: relative;
        transform:inherit;
    }

    .header-oslo .wp-block-group.pannel .wp-block-group{
        flex-basis:100%;
    }

    .header-oslo nav ul li a{
        font-size: clamp(1.25rem, 1.1111rem + 0.4444vw, 1.5rem);
    }

    .pannel > .wp-block-group:first-child{
        align-items: baseline;
    }

}

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

}