#nav-bar{
    height: 100%;
    width: 15%;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    background-color: cornflowerblue;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 5px 0 10px lightgrey;
    transition: all 0.3s;
}

#nav-accueil{
    text-decoration: none;
}

.nav-top{
    text-align: center;
    background-color: white;
    width: 100%;
    padding-bottom: 0.5rem;
    border-radius: 0 0 35px 35px;
}

#nav-logo{
    width: 50%;
}

#nav-title{
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: cornflowerblue;
    font-size: 20px;
    margin: 10px 0;
    transition: all 0.3s;
}


.nav-item{
    margin-top: 10px;
    text-decoration: none;
    display: flex;
    justify-content: left;
    align-items: center;
    color: white;
    font-size: 25px;
    background-image: linear-gradient(white, white);
    background-repeat: no-repeat;
    background-size: 0 100%;
    background-position: 0 100%;
    border-radius: 0 30px 30px 0;
    border: none;
    padding: 2px 0;
    margin-right: 10px;
    transition: all 0.3s cubic-bezier(.17,.67,.56,1);
}

.nav-item:not([id=""]):hover{
    color: cornflowerblue;
    padding-left: 20px;
    background-size: 100% 100%;
    cursor: pointer;
}

#nav-presentation:hover .nav-icon{
    content: url("../assets/icons/blue/eglise.svg");
}

#nav-histoire:hover .nav-icon{
    content: url("../assets/icons/blue/histoire.svg");
}

#nav-communaute:hover .nav-icon{
    content: url("../assets/icons/blue/communaute.svg");
}

#nav-evenements:hover .nav-icon{
    content: url("../assets/icons/blue/evenement.svg");
}

#nav-chorale:hover .nav-icon{
    content: url("../assets/icons/blue/chorale.svg");
}

#nav-sacrements:hover .nav-icon{
    content: url("../assets/icons/blue/prier2.svg");
}

#nav-catechisme:hover .nav-icon{
    content: url("../assets/icons/blue/enseignements.svg");
}

#nav-chaletlescun:hover .nav-icon{
    content: url("../assets/icons/blue/chalet.svg");
}

#nav-saintJacques:hover .nav-icon{
    content: url("../assets/icons/blue/coquille.svg");
}

#nav-diocese:hover .nav-icon{
    content: url("../assets/icons/blue/diocese.svg");
}

#nav-contact:hover .nav-icon{
    content: url("../assets/icons/blue/contact.svg");
}

.nav-icon{
    margin: 0 10px;
    width: 40px;
    position: relative;
    left: 0;
    transition: all 0.3s cubic-bezier(.17,.67,.56,1);
}

.nav-icon-component{
    fill: white;
}


#nav-bar[state=closed] .nav-text{
    opacity: 0;
    visibility: hidden;
}

#nav-bar[state=closed]{
    width: 100px;
}

#nav-bar[state=closed] #nav-title{
    opacity: 0;
    visibility: hidden;
}

#nav-bar[state=closed] #nav-logo{
    width: 80%;
}

#nav-bar[state=closed] .nav-top{
    padding-bottom: 0;
    height: 170px;
}

#nav-bar[state=closed] .nav-item{
    padding-left: 20px;
    height: 50px;
}


#nav-button{
    height: 50px;
    width: 70px;
    border-radius: 25px;
    border: none;
    position: fixed;
    top: 2%;
    left: 17%;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.16), 0 4px 6px rgba(0,0,0,0.2);
    background-color: #fff;
    z-index: 14;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.3s;
}

.nav-button-bar{
    height: 4px;
    width: 40px;
    background-color: cornflowerblue;
    border-radius: 2px;
    margin: 3px 0;
    transition: all 0.3s;
}

#nav-button:hover #bar-1{
    rotate: -45deg;
    translate: 0 0.25rem;
    width: 20px;
}

#nav-button:hover #bar-2{
    opacity: 0;
    scale: 0;
}

#nav-button:hover #bar-3{
    rotate: 45deg;
    translate: 0 -0.25rem;
    width: 20px;
}

#nav-button:hover{
    cursor: pointer;
    scale: 110%;
}

#nav-button:active{
    translate: 0 5px;
}

html:not([data-scroll~="0"]) #nav-button{
    scale: 70%;
    top: -0.25%;
}

#nav-button[nav=closed] {
    left: calc(2% + 100px);
}

#nav-button[nav=closed]:hover #bar-1{
    rotate: 45deg;
    translate: 0 0.25rem;
    width: 20px;
}

#nav-button[nav=closed]:hover #bar-3{
    rotate: -45deg;
    translate: 0 -0.25rem;
    width: 20px;
}