ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: black;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
  box-shadow: black 0 0px 7px 0px;
  height: 64px;
  margin-bottom: 16px;
  transition: all 0.3s ease-in-out;
}

main {
  display: flex;
  flex-direction: column;
  margin: 16px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  height: calc(90vh - 80px);
  /*margin-bottom: 10vh; !* Add when add content for manage mobile browser topbar *!*/
}

.hero img {
  height: 60%;
  animation: slideFromLeft 1s ease-in-out;
}

.hero-content {
  color: #555555;
  border-radius: 16px;
  padding: 8px 32px;
  width: max-content;
  box-shadow: rgba(0, 0, 0, 0.57) 2px 2px 5px 1px;
  animation: slideFromRight 1s ease-in-out;
}

.hero h1 {
  font-size: 1.5em;
}

.hero p {
  font-size: 1.5em;
}

.hero button {
  /* Styles pour le bouton */
}

/* TOPBAR - NAV MENU */
header nav ul.menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
  font-weight: bold;
  font-size: 1.1em;
}

header nav ul.menu .admin-link {
  color: red;
  opacity: 0.6;
}
.navbar .hamburger {
  display: none; /* Masquer le hamburger sur grand écran */
}

.hamburger {
  display: inline-block;
  cursor: pointer;
  background-color: transparent; /* Fond transparent */
  border: none; /* Pas de bordure */
  padding: 10px; /* Espacement autour des barres */
  position: absolute;
  top: 12px; /* Ajustez la position verticale */
  right: 20px; /* Ajustez la position horizontale */
  margin-bottom: 50px;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto; /* Espace entre les barres */
  background-color: #333; /* Couleur des barres */
}

/* Media Query pour mobile (ex: 768px) */
@media (max-width: 768px) {

  .navbar .menu {
    visibility: hidden;
    margin-top: 60px;
    margin-right: 10px;
    flex-direction: column;
    align-items: flex-end;
    rotate: x 90deg;
    transition: 0.3s rotate 0.3s ease;
  }

  .navbar .menu.active {
    visibility: visible;
    rotate: x 0deg;
  }

  .navbar .hamburger {
    display: block; /* Afficher le hamburger */
  }

  header.active {
    height: 150px;
  }
}

/* Messages */
ul.messages {
  display: flex;
  flex-direction: column;

  position: absolute;
  right: 10px;
  width: 300px;
  padding: 0;

  z-index: 10;
}

ul.messages li {
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
  color: #2f2c2c;

  opacity: 1;
  transition: opacity 1s ease-in-out;
  animation: slideFromRight 1s ease;
}

ul.messages li.success {
  background-color: #b4efbb;
}

ul.messages li.hidden {
  opacity: 0;
}

/* Form */
section.flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form div {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

form div label {
  font-weight: bold;
  margin-bottom: 4px;
}

form div input {
  padding: 8px;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.57) 2px 2px  5px -1px;
  border: none;
}

form div input:focus-visible {
  outline: none;
  box-shadow: inset rgba(0, 0, 0, 0.57) 0 0 4px 0;
}

form div textarea {
  padding: 8px;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.57) 2px 2px 5px 1px;
  border: none;
  font-family: 'Roboto', sans-serif;
}

form div textarea:focus-visible {
  outline: none;
  box-shadow: inset rgba(0, 0, 0, 0.57) 0 0 4px 0;
}

form div.buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

form button[type=submit] {
  border: none;
  background-color: #b4efbb;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.57) 2px 2px  5px -1px;
}

form button[type=submit]:hover {
  cursor: pointer;
  box-shadow: inset rgba(0, 0, 0, 0.57) 0 0 4px 0;
}
