


nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--backgroundMedium)
}





#contentToShow {
    /*https://www.w3schools.com/howto/howto_css_overlay.asp Classique et efficace. */
    position: fixed; /* Sit on top of the page content */
    display: flex; /* Hidden by default */
    width: 50%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    left: 100%;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
}

.rightToLeft {
    animation-name: rightToLeft;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}


.leftToRight {
    animation-name: leftToRight;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}



@keyframes rightToLeft {
    from {
        left: 100%;
    }
    to {
        left: 50%;
    }
}

@keyframes leftToRight {
    from {
        left: 50%;
    }
    to {
        left: 100%;
    }
}


