@font-face {
    font-family: 'Jost';
    src: url('/biosquare/ressources/Jost.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Jost', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 40px;
  background: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  font-family: "Jost", sans-serif;
}

header .logo {
  max-width: 130px;
}

header nav {
  display: flex;
  gap: 20px;
}

.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 820px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  header nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  header nav{
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: white;
    width: 100%;
    padding: 1rem 0;
    gap: 15px;
  }

  header nav.active {
    display: flex;
  }

  header nav a {
    padding: 10px;
    width: 10em;
    border-radius: 5px;
    text-align: center;
    background-color: #BDD7C0;
  }

  .burger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
  }
}

header nav a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

header .auth-buttons {
  display: flex;
  gap: 15px;
}

#sign-up {
  text-decoration: none;
  color: white;
  background-color: #15730d;
  border-style: none;
  align-content:  center;
}

header .auth-buttons a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  border: #333;
  padding: 10px 20px;
  border-radius: 5px;
  border-style: solid;
  border-width: 2px;
  font-size: 14px;
}

footer {
  text-align: center;
  padding: 20px;
  background: #15730d;
  color: white;
  font-size: 14px;
  margin-top: auto;
  min-height: max-content;
  font-family: "Jost", sans-serif;
}

/* navbar connectée */

.has-dropdown {
  list-style: none;
}

.has-dropdown a {
  /* ALigner le pseudo au milieu de l'image */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #15730d;
  font-size: 1.1rem;
  font-weight: 400;
  font-family: "Rubik", sans-serif;
  /* AJouter de l'espace entre le pseudo et la photo de profil : */
  gap: 1rem;
}

.displayed {
  transition: all 0.15s ease-in-out;
  color: #15730d;
}

.displayed:hover {
  color: #BDD7C0;
}

#pdp {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 50%;
}

.dropdown {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: fit-content;
  z-index: 50;
  background: #15730d;
  border-radius: 10px;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1rem;
  height: fit-content;
  margin-top: 2rem;
  padding: 1rem;
  color: white;
  transform: translateY(-20%) translateX(-15%);
  transition: opacity .15s ease-out;
}

.dropdown-item a {
  width: 100%;
  height: 100%;
  transition: all 0.15s ease-in-out;
  color: #BDD7C0;
}

.profile:hover a {
  color: #FFF;
}

.logout:hover a {
  color: #FF0000;
}

.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
}