/* @tailwind base; @tailwind components; @tailwind utilities; @layer components { .btn-primary { @apply py-2 px-5 bg-violet-500 text-white font-semibold rounded-full shadow-md hover:bg-violet-700 focus:outline-none focus:ring focus:ring-violet-400 focus:ring-opacity-75; } } @layer components { .btn-danger { @apply py-2 px-5 bg-red-500 text-white font-semibold rounded-full shadow-md hover:bg-red-700 focus:outline-none focus:ring focus:ring-red-400 focus:ring-opacity-75; } } */ *{ margin: 0; padding: 0; list-style: none; text-decoration: none; } header { height: 25vh; width: 100vw; background-image: url(../images/landscape.jpg); background-size: cover; transition: all 0.1s ease; } .navbar { /* position: absolute; */ padding: 50px; display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; } .navbar a { color: white; } .navbar .logo { font-size: 4em; font-weight: bold; } .navbar .nav-links ul { display: flex; } .navbar .nav-links ul li { margin: 0 25px; } .navbar .nav-links ul li.active a { color: #ed3c57; font-weight: 600; } .navbar .menu-burger { display: none; position: absolute; top: 50px; right: 30px; width: 35px; } .navbar .nav-links ul li { display: flex; justify-content: center; align-items: center; flex-direction: column; } @media screen and (max-width: 900px) { header.big { height: 100vh; } .navbar { padding: 0; position: absolute; } .nav-links { top: 0; left: 0; position: absolute; background-color: rgba(0, 255, 221, 0.308); width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(7px); margin-left: -100%; transition: all 0.1s ease; } .nav-links ul { display: flex; flex-direction: column; align-items: center; } .navbar .menu-burger { display: block; } .nav-links.mobile-menu { margin-left: 0; } .navbar .nav-links > ul > li { margin: 25px 0; font-size: 1.2em; } .navbar .nav-links ul li { flex-direction: column; } .navbar .logo { position: absolute; top: 40px; left: 30px; font-size: 2em; } /* Body */ } /* Body */ main { display: flex; flex-direction: column; align-items: center; width: 100%; /* S'assure que le main ne dépasse pas la largeur de l'écran */ box-sizing: border-box; flex-wrap: wrap; padding: 10px; } img, .contenu-flex { max-width: 100%; }