
/* /////////// HEADER /////////// */
header{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 170px;
    background-color: white;
}

#titre{
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    width: auto;
}

header h1{
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    font-size: 3em;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: #c04542;
}
header span{
    display: inline-block;
    text-align: center;
    width: 100%;
    font-size: 1.3em;
    font-weight: bold;
    color: #3e5756;
}

header img{
    position: absolute;
    left: -300px;
    top: 0;
    bottom: 0;
    width: 104px;
}


.h-btn{
    display: none;
}
/* /////////// NAV /////////// */



/* parents */
nav{  
    position: sticky; 
    top: 0;

    width: 100%;
    background-color: #3E5756;

    z-index: 4;
}
nav > ul{
    display: flex;
    justify-content: center;
    width: 100%;
}
/* listes  */
nav > ul > li{
    display: flex;
    list-style: none;
    margin-right: 3px; 

    position: relative;
}

/* particularité  */
.select{
    background-color: #c04542;
}
nav li:not(.select):hover{
    background-color: #c4cfac;
}
nav li:last-child{
    margin-right: 0;
}
li.defil > span{
    cursor: default;
}

/* éléments intérieur important  */
nav > ul > li > a, li.defil > span{
    font-weight: 500;
    font-size: 1em;
    color: white;
    padding: 20px 15px;
    text-decoration: none;
}
li.defil > span::after{
    content: '\25BC';
    margin-left: 10px;
    
    font-size: 10px;
    color: white;  
}

/* sous menu  */
li.defil:hover .sub-menu{
    visibility: visible;

}
.sub-menu{
    position: absolute;
    visibility: hidden;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    background-color: #3E5756;
   
    top: 100%;
    left: 0;
    min-width: 100%;

    z-index: 2;

}
.sub-menu > a{
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    white-space: nowrap;
}
.sub-menu > a:hover{
    background-color: #c4cfac;
}


/* BURGER  */

#i-burger{
    visibility: hidden;
}

#burger{
    position: absolute;
    right: 15px;
    top: 15px;

    visibility: hidden;
    display: none;

    flex-direction: column;
   
    justify-content: center;

    padding: 8px;

    width: 50px;
    height: 50px;

    background-color: #3e5756;
    
    border-radius: 4px;

    cursor: pointer;
}

#burger span{
    position: absolute;
    display: block;

    left: 9px;
    right: 9px;
    height: 5px;


    background: white;
    border-radius: 2px;
}


#burger span:first-child{
    transform: translateY(10px);
}
#burger span:nth-child(2){
    transform: translateY(0px);
}
#burger span:last-child{
    transform: translateY(-10px);
}



@media screen and (max-width: 1030px) {
    header{
        padding-left: 300px;
        justify-content: left;
    }
    
}


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

    /* burger  */
    #burger{
        display: flex;
        visibility: visible;

        z-index: 4;
    }


    nav{
        background-color: rgba(255, 0, 0, 0.438);

        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;

        width: 200px;

        transform: translateX(200px);

  
    }

    header::before{
        display: none;

        content: '';
        position: absolute;

        top: 0;
        bottom: 0;
        left: 0;
        right: 0;

        background: rgba(.7, .7, .7, .7);
        z-index: 3;

    }


    nav > ul{

        flex-direction: column;
        justify-content: flex-start;
     
        width: 100%;
        height: 100vh;

        background-color: #3e5756;
        
    }
    nav > ul a{
        width: 100%;
    }
    nav > ul li{
        margin-right: 0;
    }



    #i-burger:checked ~ #burger {
        background-color:#c04542;
    }
    
    #i-burger:checked ~ #burger span:first-child{
        transform: translateY(0px) rotate(45deg);
    }
    #i-burger:checked ~ #burger span:nth-child(2){
        transform: translateY(0px);
        opacity: 0;
    }
    #i-burger:checked ~ #burger span:last-child{
        transform: translateY(0px) rotate(-45deg);
    }
    
    #i-burger:checked ~ nav{
        transform: translateX(0);
        transition: all .2s ease-in-out;
    }
    #i-burger:checked ~ header::before{
       display: block;
    }
    

    #i-burger:checked ~ #burger {
        position: fixed;
        border-radius: 4px 0 0 4px;
        transform: translateX(-185px) translateY(-10px);
   
        transition: all .2s ease-in-out;
    }

    
    /* header  */

    header{
        flex-direction: column;
        padding-left: 0;
        padding-top: 80px;
        padding-bottom: 60px;
        justify-content: center;
        height: fit-content;

        border-bottom: 3px #c04542 solid;
    }

    header img{
        top: -80px;
        left: 0px;
        width: 35px;
    }

    header #titre h1{
        font-size: 2em;

    }
    header #titre span{
        color: #3e5756;
        font-size: 1em;

    }
    #titre{
        flex-direction: column;
    }
    .h-btn{
        margin-top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;

        width: 100%;
        text-align: center;
        background-color: #3e5756;

        font-size: 1.5em;
    }

    .h-btn svg{
       fill: white;
    }

    
}