@import url('https://fonts.googleapis.com/css?family=Comfortaa&display=swap');

header {
  position: fixed;
  top: 0;
  left: 0;
  height: 15vh;
  width: 100vw;
  backdrop-filter: blur(10px);
  z-index: 5;
  font-size: 0.8em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.658), transparent);
}

.header.blurLess {
  backdrop-filter: none;
}

.header.fixed {
  position: absolute;
}

header.hide {
  top: -100px;
  transition: 0.4s ease-out;
}

@keyframes pulse {
  0% {
    background-color: #ffffff2e;
    transform: scale(1);
  }
  50% {
    background-color: #ffffff4f;
    transform: scale(1.05);
  }
  100% {
    background-color: #ffffff2e;
    transform: scale(1);
  }
}

.menu-notification {
  color: #ffffff;
  animation: pulse 1s infinite;
}

.menu-notification .fa-bell {
  color: white;
  font-size: 20px;
  margin-right: 5px;
  position: relative;
}
.menu-notification .fa-bell::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--alternate-color);
  border-radius: 50%;
  right: 1px;
}
header nav {
  display: flex;
  width: 90%;
  max-width: 80%;
  justify-content: right;
  align-items: center;
  height: 100%;
  padding-right: 2rem;
}

header ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  width: 100%;
  font-size: 0.9rem;
}

header .photoProfile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: 0.3s ease-out;
  border: solid white 2px;
}

header .photoProfile {
  margin-left: 0;
}

header .moncompte {
  margin-right: 10px;
}

header .photoProfile img:hover {
  transform: scale(1.05);
  transition: 0.3s ease-out;
}

header a {
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 0.9rem;
  padding: 5px 10px;
}

header a.selected {
  font-weight: 900;
  border-bottom: 3px solid white;
  border-radius: 5px;
  font-style: italic;
  font-family: comfortaa, Arial, sans-serif;
  font-size: 0.95rem;
}

.logo {
  width: max-content;
  object-fit: contain;
  height: 100px;
}

.logo img {
  max-height: 100%;
}

.logo.header {
  position: relative;
  max-height: 100%;
  padding-left: 10px;
  /*padding-top: 10px;*/
  width: 25%;
  z-index: 20;
}

.logo.header img {
  position: absolute;
  max-height: 80%;
  top: 50%;
  transform: translateY(-50%);
}

.notification.visible {
  animation: bottomUP 7s;
}

.notification {
  position: fixed;
  bottom: -120%;
  transition: ease-out 0.3s;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid black;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  font-size: 1rem;
  border-radius: 5px;
  z-index: 3;
  width: 80%;
  max-width: 400px;
  transition: bottom 0.5s ease-in-out;
  text-align: center;
}

.notification .notification-title {
  margin-bottom: 5px;
  font-weight: 500;
  font-family: 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
  display: block;
}
.notification strong {
  font-weight: bold;
  margin-top: 5px;
}

.notification ul {
  padding-left: 15px;
  list-style: initial;
  margin-top: 3px;
}
.notification ul li {
  margin-bottom: 5px; /* espace entre les éléments de la liste */
}
.notification.error {
  background-color: var(--alternate-color);
  border: 1px solid white;
  color: white;
  
}
.notification.info {
  background-color:  #bdf1b5;
  border: 1px solid rgb(118, 118, 118);
  color: black;
  
}


.notification.error strong {
  color: #e74c3c; /* couleur du texte pour le rendre cohérent avec la bordure */
}

@keyframes bottomUP {
  from,
  to {
    bottom: -120%;
  }

  10%,
  80% {
    bottom: 10px;
  }
}

@media screen and (max-width: 1100px) {
  header a {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 0.6rem;
  }
  header a.selected {
    font-size: 0.85rem;
  }
}
@media screen and (min-width: 768px) {
  /* Styles for desktop and tablet */
  .mobile-menu {
    display: none;
  }

  .burger-menu {
    display: none;
  }
  header a:hover {
    color: #eb2800;
    transition: ease-out 0.3s;
  }
}

@media screen and (max-width: 767px) {
  header a:hover {
    background-color: #ffffff0e;
    transition: ease-out 0.3s;
  }
  .logo.header{
    width:45%;
  }
  header a.selected {
    background-color: #ffffff38;
  }
  .notification {
    width: 60vw;
    text-align: center;
  }
  /* Styles for mobile */
  .logo.header img {
    max-height: 100%;
  }

  header {
/*    height: 7vh;*/
    height: 15vh;
    
  }

  header nav {
    padding-right: unset;
    width:40%;
  }

  header .moncompte {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu .moncompte {
    padding-right: 7px;
    margin-right: 0px;
  }

  .menu {
    display: none;
  }

  .mobile-menu {
    display: block;
    visibility: hidden;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 55%; /* Définir la largeur du menu mobile sur 100% */
    background-color: var(
      --secondary-color
    ); /* Ajouter une couleur de fond pour le menu mobile */
    position: absolute; /* Ajoutez la propriété "position" et la valeur "absolute" pour le menu mobile */
    top: 100%; /* Définir la position verticale du menu mobile */
    right: -100%; /* Définir la position horizontale du menu mobile */
    z-index: 1; /* Assurez-vous que le menu mobile est en arrière-plan */
    transition: all 0.3s ease-in-out; /* Ajouter une transition pour une animation plus fluide */
    border-bottom-left-radius: 30px;
    box-shadow: -10px 10px 25px #000000e7;
  }

  .mobile-menu li {
    color: #fff;
  }
  .mobile-menu li.menu-notification {
    padding: 20px;
    color: #fff;
  }
  .mobile-menu li:not(:last-child) {
    border-bottom: 2px solid #ffffff17;
  }

  .mobile-menu li a {
    color: #fff;
    text-decoration: none;
    padding-left: 20px;
    padding-top: 20px;
    display: block;
    padding-bottom: 20px;
  }

  .mobile-menu.active {
    visibility: visible;
    right: 0;
    transition: 0.3s ease;
  }

  .burger-menu {
    display: block;
    float: right;
    font-size: 30px;
    height: 40px;
    cursor: pointer;
    position: relative;
    padding: 10px 25px;
    box-sizing: border-box;
    z-index: 2;
    margin-right: 10px;
    margin-top: 2px;
  }
  .burger-menu .badge {
    position: absolute;
    top: 0px;
    right: 3px;
    background-color: var(--alternate-color);
    width: 16px;
    height: 18px;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 9px;
  }

  .burger-menu.active .burger-element.one {
    transform: rotate(45deg) scale(0.8);
    top: 50%;
  }

  .burger-menu.active .burger-element.two {
    opacity: 0;
  }

  .burger-menu.active .burger-element.three {
    transform: rotate(-45deg) scale(0.8);
    top: 50%;
  }

  .burger-menu .burger-element {
    display: block;
    width: 60%;
    height: 3px;
    position: absolute;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    left: 20%;
    top: 50%;
  }

  .burger-menu .burger-element.one {
    top: 30%;
  }
  .burger-menu .burger-element.three {
    top: 70%;
  }
}
