header {
  width: 100%;
  margin-bottom: 50px;
}

nav {
  background-color: rgb(255, 255, 255);
  box-shadow: 1px 1px 10px var(--darkBlue);
  max-width: 100%;
  padding: 0 12px;
  z-index: 7;
  font-family: var(--fontNoto);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  transition: box-shadow 0.3s ease;
}

nav a {
  text-decoration: none;
  color: var(--darkBlue);
  font-size: 16px;
  padding: 0 1px;
  font-weight: 400;
  transform: scale(1);
  letter-spacing: 0;
}

nav a:hover {
  color: var(--darkBlue);
  font-weight: 700;
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
  letter-spacing: 0.3px;
}

nav .far {
  padding-right: 5px;
  display: inline-block;
}

#logo {
  width: 40px;
  height: 40px;
  opacity: 0.9;
  position: absolute;
  top: -10px;
  left: 44%;
  right: 44%;
  -webkit-left: 33%;
}

#navbar {
  list-style-position: inside;
  padding-left: 0;
  display: -webkit-flex;
  display: -webkit-box;
  -webkit-flex-wrap: nowrap;
  -webkit-justify-content: space-between;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  flex-direction: row;
  position: relative;
  list-style: none;
  font-size: 16px;
}

nav #welcomeSession {
  position: absolute;
  right: 20px;
  font-weight: bold;
  font-family: var(--fontNoto);
  color: var(--darkBlue);
  font-size: 16px;
  text-transform: capitalize;
}

#sous-menu {
  position: fixed;
  right: 0;
  background-color: var(--yellow);
  opacity: 0.95;
  top: 0;
  left: 0;
  display: none;
  list-style-position: inside;
  list-style-type: none;
  padding: 50px 10px;
  line-height: 1.5;
  z-index: 9;
  height: 100%;
  width: 100%;
  text-align: center;
  color: var(--darkBlue);
}

#sous-menu .closebtn {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 36px;
  font-weight: bold;
  margin-left: 50px;
}

#sous-menu li {
  padding: 20px;
  text-transform: capitalize;
}

#sous-menu a {
  font-size: 20px;
}



#sandwich-menu {
  cursor: pointer;
  color: var(--darkBlue);
  pointer-events: auto;
}

#sandwich-menu:hover {
  font-weight: bold ;
  font-family: inherit;
}

nav a.active,
nav a[aria-current="page"],
.profile a[aria-current="page"] {
  color: var(--red);
  font-weight: bold;
}

/******************************************footer*********************************************/

footer {
  width: 100vw;
  margin: 50px auto 0;
  padding: 50px 30px;
  background-color: var(--yellow);
  z-index: 9;
}

.newsletterForm button {
  color: var(--yellow);
  background-color: var(--darkBlue);
  box-sizing: border-box;
  margin: 5px 0;
}

footer img {
  width: 50px;
  display: block;
  margin: 10px auto 30px;
}

.newsletterForm {
  width: fit-content;
  padding: 0;
  margin: 50px auto;
  font-family: var(--fontNoto);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

footer p {
  color: var(--darkGrey);
  font-size: 16px;
  text-align: center;
}

.newsletterForm input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--darkBlue);
  font-size: 14px;
  box-sizing: border-box;
  height: 40px;
  min-width: 200px;
}
.newsletterForm span {
  font-family: var(--fontText);
  font-size: 14px;
  font-weight: bold;
  color: var(--red);
  width: auto;
  flex-basis: 100%;
  min-width: 100%;
  width: 0;
  text-align: left;
  white-space: nowrap;
  box-sizing: border-box;
}

small {
  display: block;
  font-family: var(--fontText);
  font-size: 12px;
  text-align: center;
}

small .fab {
  padding: 10px;
  font-size: 1.5rem;
  border-radius: 50%;
  background-color: var(--darkBlue);
  margin: 10px;
  box-shadow: 2px 2px 10px #9999;
}

small a {
  color: #f2cc59;
}

.rights-mention {
  color: var(--darkBlue);
  text-decoration: none;
}

small .fab:hover {
  transform: scale(1.4);
  transition: transform 2s ease;
}


@media screen and (max-width: 375px) {

    .newsletterForm {
      flex-direction: column;

    }
}
@media screen and (min-width: 767px) {
  nav #welcomeSession {
    font-size: 16px;
  }

  #navbar {
    font-weight: normal;
  }

  nav a {
    font-weight: normal;
  }

  #sous-menu {
    width: 60%;
  }

  .error {
    margin: 150px auto 100px;
    width: 50%;
  }

  .newsletterForm p {
    font-size: 1.5rem;
  }

  .newsletterForm input {
    padding: 15px 80px;
    width: 300px;
  }
}

@media screen and (min-width: 1024px) {
  .overlay {
    position: relative;
    background-color: unset;
    display: none;
  }

  #sandwich-menu {
    display: none;
  }

  nav #sous-menu {
    display: block;
    background-color: transparent;
    position: fixed;
    top: -2px;
    padding: 20px;
    line-height: 1;
    z-index: 1;
    height: 50px;
    width: 85vw;
    text-align: left;
  }

  #logo {
    width: 50px;
    position: fixed;
    top: 5px;
    left: 13px;
    padding-right: 13px;
  }

  #sous-menu li {
    display: inline-block !important;
    padding: 0 15px;
  }

  #sous-menu a {
    font-size: 16px;
  }

  #sous-menu .closebtn {
    display: none;
  }
}
