@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Days+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=WDXL+Lubrifont+TC&display=swap");

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background-color: #f4f4f4;
}

header {
  width: 100%;
  height: 500px;
  background-image: url("../img/retro.png");
  color: white;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1100;
  margin: 0 10px;
  align-self: center;
}

.burger span {
  width: 28px;
  height: 4px;
  margin: 3px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

nav {
  margin: 0;
  height: 60px;
  width: 100%;
  position: fixed;
  display: flex;
  opacity: 80%;
  background-color: #2c3e50;
  color: white;
}

ul {
  list-style: none;
  padding: 0;
  margin-left: auto;
  margin-right: 30px;
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
}

ul li {
  height: 100%;
  padding-right: 10px;
  padding-left: 10px;
  position: relative;
  display: flex;
}

ul li:hover {
  background-color: rgba(192, 57, 43, 0.8);
}

ul li a {
  height: 100%;
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  text-align: center;
  padding: 20px 0;
}

ul li ul {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2c3e50;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  margin: 0;
  min-width: 100%;
  width: max-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.4, 1.6, 0.4, 1),
    opacity 0.25s cubic-bezier(0.4, 1.6, 0.4, 1), visibility 0s linear 0.35s;
  visibility: hidden;
}

ul li:hover > ul {
  max-height: 500px; /* assez grand pour contenir tous les items */
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s, 0s, 0s;
}

ul li ul li {
  margin: 0;
  width: 100%;
  padding: 0;
}

ul li ul li a {
  display: block;
  color: white;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  margin: auto;
}

ul li ul li:hover {
  background-color: rgba(192, 57, 43, 0.8);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  nav ul {
    display: none;
  }
}
