
.layout-container{
    position: relative;
    width: 100vw;

    header{                       
        position: fixed;
        z-index: 99;
        width: 100vw;
    }
}

#header-top {
    height: 7rem;
    background-color: $white;
    box-shadow: 1px 0px 8px $black;
    display: flex;
    flex-direction: row;
    // justify-content: space-between;
    color: $black;
    top:0%;

    scroll-margin: 8rem {};
    @media (max-width:810px){
        height: 5rem;
    }
   
 // logo
    .region-header-top-left {  
        // width: 80vw;   
        display:flex;
        flex-direction: row;
        // padding: 1rem;
        padding-left: 4%;
        align-items:center;  
        color: $black;  
        // font-weight: 800;
        flex: 1;
        
        #block-logogouv{
            display: flex;
            height: 100%;
            align-items: center;
            .field--name-field-logo{
                @media (max-width: 810px){
                      height: 100%;
                    }
            }
            img{
                width: auto;
                height: 100%;
            }
            
        }

  
        #block-eql-logoepau{
            height: 100%;
            align-content: center; 
            padding-left: 1rem;         
        }
    } 
    .region-header-top-rigth{
        display: flex;
        flex-direction: row;
        width: 40%;
        align-items: center;
        justify-content: flex-end;

            
        #block-eql-identitedusite{
            text-transform: uppercase;
            font-family: "Source Code Pro";
            color: $blue-dark !important;
            font-size: 1rem;
            text-align: end;
            width: 30%;
            :visited {
                color: $blue-dark !important;
            }
            :link{
                color: $blue-dark !important;
            }
            @media (max-width: 883px){
                display: none;
            }   
            
        }  
        #block-logoeql{
            padding-left: 1rem;
            padding-right: 2rem;
            height: 100%;
            align-items: center;
            @media (max-width:810px){
                padding-right: 1rem;
            }
            .field--name-field-logo{
                height: 100%;
                a{
                    display: flex;
                    align-items: center;
                    height: 100%;
                    img{
                        width: auto;
                        height: 80%;
                       
                    }
    
                }
            }
          
        }
        // menu burger à droite

        #block-burger {              
            z-index: 1;
            background-color: $blue-light;
            font-size: 0.7rem;
            color: black;
            display: block;
            width: 7rem;
            height: 100%;
            margin-top: 0;
            aspect-ratio: 1;
            :hover{
                cursor: pointer;
            }
            @media (max-width: 810px){
                width: 4rem;
            } 
            h2{
                padding-top: 1rem;
                font-size: 1em;
                font-weight: light;
                color: $blue-light;
                @media (max-width: 810px){
                    padding-top: 0;
                } 
            }
            h2:after{
                display: block;
                margin:auto;
                height: 70px;
                content:url('data:image/svg+xml,<svg width="50" height="50" xmlns="http://www.w3.org/2000/svg" version="1.1"> <path id="path930" d="M 5,13 H 65" stroke-linecap="round" stroke="black" stroke-width="2"/><path id="path930-3" d="M 5,25 H 65" stroke-linecap="round" stroke="black" stroke-width="2"/><path id="path930-6" d="M 5,37 H 65" stroke-linecap="round" stroke="black" stroke-width="2"/></svg>'); 
                @media (max-width: 810px){
                    content:url('data:image/svg+xml,<svg width="40" height="50" xmlns="http://www.w3.org/2000/svg" version="1.1"> <path id="path930" d="M 5,13 H 65" stroke-linecap="round" stroke="black" stroke-width="2"/><path id="path930-3" d="M 5,25 H 65" stroke-linecap="round" stroke="black" stroke-width="2"/><path id="path930-6" d="M 5,37 H 65" stroke-linecap="round" stroke="black" stroke-width="2"/></svg>'); 

                } 
            }        

            #block-burger-menu{
                display: block;
                margin: 0;
                align-self: center;
                text-align: center;
                // height:7rem;
            }


    // block menu open fond bleu

            .ul1:not(.sous-liste){    
                width: 300%;
                position: relative;
                right: 260px;
                margin: 0;
                padding-top: 2rem;
                padding-bottom: 2rem;
                z-index: 99;

            }
            ul  {
                display: none;
                background-color: $blue-light;
                line-height: 2rem;
                list-style: none;
            
                .ul1 .sous-liste{
                    a{
                        opacity: 1;
                    }
                }
                a{
                    opacity: 1;
                    color: $white;
                    font-weight: 800;
                    font-size: 1rem;
                }
            }
            &.opened ul {
            display: block;

            }
        }  
    }





    // reseaux sociaux

    #block-socialnetwork-2{
        display: none;
        position: relative;
        top: -33px;
        align-self: flex-end;
        margin-left: auto;
        .field--name-body{
            min-height: 75px;
            // margin-right: 1rem;
        }
            p{
                display: flex;
                flex-direction: row-reverse;
                margin-bottom: 0;
                min-height: 65px;
                justify-content: space-around;
                width: 140px;
                a{
                    color: $white;
                    font-size: 0;
                }
                svg.ext{
                    display: none;
                }
                .link-twitter{
                    display: flex;
                    background-color: black;
                    width: 40px;
                    justify-content: center;
                    align-items: flex-end;
                    &:before{
                        content: url("../images/pictos/logo_x_blanc.svg");
                        min-width: 30px;
                        padding-bottom: 0.5rem;

                    }
                }
                .link-youtube{
                    display: flex;
                    background-color: black;
                    min-width: 40px;
                    justify-content: center;
                    align-items: flex-end;
                    &:before{
                        content: url("../images/pictos/youtube_white.svg");
                        min-width: 25px;
                        padding-bottom: 0.5rem;
                    }
                }
                .link-linkedin{
                    display: flex;
                    background-color: black;
                    min-width: 40px;
                    justify-content: center;
                    align-items: flex-end;
                    // background-position-y: top;
                  
                &:before{
                        content: url("../images/pictos/linkedin_white.svg");
                        min-width: 35px;
                        padding-bottom: 0.2rem;
                    }
                }
            }
        
    }


}
.region-header-bottom{
    box-shadow: 0 4px 4px 3px rgba(0, 0, 0, 0.1);
    #block-headermenu{
        align-self: baseline;
        width: 100%;
        // margin-left: 3rem;
        // margin-right: 3rem;
        background-color: white;
        border-top: solid $blue-light 1px;
    }

    ul{
        font-size: 1rem;
        font-weight: 900;
        list-style: none;
        display: flex;
        flex-direction: row;
        // justify-content: space-between;
        justify-content: space-evenly;
        width: 100%;
        padding-inline-start: 0px;
        padding: 1rem;
        margin-top: 0 !important;
        padding-bottom: 0.5rem;
        .is-active{
            color:$blue-light;
        }
        ul{
            position: absolute;
            left: -28%;
            z-index: 1000;
            // display: none;
            display: flex;
            flex-direction: column;
            min-width: 210px;
            width: fit-content;
            justify-content: space-between;
            padding-inline-start: 0px;
            .is-active{
                color:$blue-light;
            }
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        li{
            position: relative;
            display: flex;
            flex-direction: column;
            background-color: $white;
            padding-bottom: 0.8rem;
            max-width: inherit;
            padding-left: 1rem;
            padding-right: 0.5rem;
            height: fit-content;
            a {
                color: $black;
            }
            .is-active{
                color:$blue-light;
            }
            :hover{
                color: $blue-light;
            }
        }

        li:hover ul {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
    
        .ul1.sous-liste.ul2{
            padding-left: 1rem;
        }
    }
 


}
