.navbar { display: table-header-group; } .link { margin: 0 1vw; text-decoration: underline; } .connexion { position: absolute; top: 0; right: 0; margin: 2vh; } /**************************/ .overlay { width: 100%; bottom: 100%; position: fixed; z-index: 9001; top: 0; left: 0; background-color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0.9); overflow-x: hidden; transition: 1s; display: flex; align-items: center; justify-content: center; } .overlay-content { position: relative; height: 90%; top: 10px; width: 100%; text-align: center; margin-top: 5px; display: flex; flex-direction: column; align-items: center; } .overlay a { padding: 8px; text-decoration: none; font-size: 36px; color: #818181; display: block; transition: 0.2s; display: flex; justify-content: center; } .overlay a:hover, .overlay a:focus { color: #f1f1f1; } .overlay .closebtn { position: absolute; right: 25px; top: -20px; font-size: 60px; } @media screen and (max-height: 450px) { .overlay a { font-size: 20px } .overlay .closebtn { font-size: 40px; top: 15px; right: 35px; } } .burgerButton { font-size: 30px; cursor: pointer; } /* cache ou affiche un élement si mobile */ @media only screen and (max-width: 768px) { .hidden-mobile { display: none; } .show-mobile { display: flex; } } @media only screen and (min-width: 768px) { .hidden-mobile { display: flex; } .show-mobile { display: none; } }