body.noScroll {
    overflow: hidden;
}

/* Define the CSS animation for opening the menu */
@keyframes slideIn {
    from {
        height: 0;
    }

    to {
        height: calc((var(--vh, 1vh) * 100));
    }
}

/* Define the CSS animation for closing the menu */
@keyframes slideOut {
    from {
        height: calc((var(--vh, 1vh) * 100));
    }

    to {
        height: 0;
    }
}

/* MENU */
#nav-icon3 {
    width: 45px;
    height: 29px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    cursor: pointer;
    display: block;
    z-index: 10000;
}

#nav-icon3 span {
    display: block;
    position: absolute;
    height: 5px;
    width: 100%;
    background: var(--color-text);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

#nav-icon3 span:nth-child(1) {
    top: 0px;
}

#nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) {
    top: 12px;
}

#nav-icon3 span:nth-child(4) {
    top: 24px;
}

#nav-icon3.open span:nth-child(1) {
    top: 18px;
    width: 0%;
    left: 50%;
}

#nav-icon3.open span:nth-child(2) {
    transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
    transform: rotate(-45deg);
}

#nav-icon3.open span:nth-child(4) {
    top: 18px;
    width: 0%;
    left: 50%;
}

.overflowHi {
    overflow: hidden;
}

/* FIN MENU */

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2em;
    font-family: "Avenir-Light", sans-serif;
    transition-duration: 0.4s;
    display: flex;
    align-items: center;
}

nav a:hover {
    color: var(--color-text-accent);
}

#containerSearchBar {
    margin: 0 30px;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

#containerSearchBar .searchbar i,
#containerSearchBar .searchbarPlaceholder {
    font-size: 19px;
}

#containerSearchBar.visible {
    opacity: 1;
    pointer-events: auto;
}

header {
    padding-right: 50px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999999999999999; /* Ensure header is above map (which is 400) */
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 70px;
    background-color: rgba(253, 233, 207, 0.8);
    transition: background-color 0.4s, box-shadow 0.4s;
}

@media screen and (min-width: 961px) {
    /*Container du bouton du menu hamburger, on le cache sur format pc*/
    #nav-icon3 {
        display: none;
    }

    header #headerIcon {
        height: 70%;
        margin: 0 5px 0 30px;
        opacity: 1;
        transition: opacity 0.8s ease;
    }

    header #headerIconLink {
        height: 100%;
        display: flex;
        align-items: center;
    }

    header.scrolled,
    header:hover {
        box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
            rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
        background-color: var(--color-accent);
    }

    #containerSearchBar {
        flex: 3;
    }
}

@media screen and (max-width: 960px) {
    nav {
        height: 0;
        overflow: hidden;
    }

    header nav {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        background-color: var(--color-accent);
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    header nav a {
        margin: 0;
        width: 90%;
        margin: 10px;
        background-color: white;
        justify-content: center;
        border: 1px solid var(--color-text-accent);
        border-radius: 10px;
        padding: 13px 25px 13px 20px;
    }

    header {
        padding: 20px 0 0 20px;
        height: auto;
        background-color: transparent;
        width: auto;
    }

    #containerSearchBar {
        margin: 10px;
        width: 90%;
    }
}
