body {
  font-family: "Arial";
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

nav {
  position: sticky;
  top: 0;
  background-color: whitesmoke;
  padding: 10px 0;
  width: 100%;
  z-index: 10000;
}

nav ul li {
  float: left;
  text-align: center;
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  gap: 20px;
}

li {
  margin: 0;
  align-self: center;
  list-style: none;
}

a {
  text-decoration: none;
  cursor: pointer;
}

ul section li a {
  color: black;
  font-weight: bold;
  font-size: 20px;
  border-radius: 6px;
  transition: background 0.3s;
}

.pp-header {
  height: 29px;
  width: 29px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: #fff;
  vertical-align: middle;
  /* aligne l'image avec le texte */
  margin-right: 6px;
  /* espace entre l'image et le texte */
}

#menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: fixed;
  height: 100%;
  width: 4vw;
  top: 0;
  padding: 2px;
  padding-top: 6.6px;
  margin-top: 0;
  background-color: #175731;
  gap: 5%;
  z-index: 10001;
}

#logo {
  width: 40;
  height: 40;
  border-radius: 6px;
  z-index: 15;
}

#site {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#nomSite {
  position: relative;
  left: 5vw;
  font-weight: bold;
  text-decoration: none;
  color: black;
  font-size: 30px;
}

.icones {
  height: auto;
  width: 50%;
  margin: auto 25%;
}

.sous li {
  float: none;
  width: 100%;
  text-align: center;
  padding: 5px;
  cursor: pointer;
}

.sous li:hover {
  cursor: pointer;
  border-bottom: none;
  background-color: #17573149;
  padding: 5px;
}

.sous li a {
  color: black;
}

.deroulant > a::after {
  content: " ▼";
  font-size: 12px;
  margin-right: 5px;
}

.sous {
  display: none;
  background-color: rgb(255, 255, 255);
  position: absolute;
  right: 5%;
  top: 100%;
  width: max-content;
  border-radius: 5%;
  padding: 5%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.344);
  gap: 0;
  z-index: 1000;
}

.deroulant:hover {
  .sous {
    display: flex;
    flex-direction: column;
  }
}

#deco {
  color: red;
}

#overlay {
  position: fixed;
  display: none;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
}

.popup {
  position: absolute;
  width: 17%;
  height: min-content;
  text-align: center;
  background: #175731;
  border-radius: 6px;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

p {
  padding: 0px 20px;
}

#boutonsDeco {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 10px;
  margin: 0;
}

#boutonsDeco button {
  font-size: 18px;
  width: fit-content;
  height: fit-content;
  border: 2px solid #faff6e;
  border-radius: 22px;
  background-color: #175731;
  color: #faff6e;
  padding: inherit;
  cursor: pointer;
}

#boutonsDeco button[onclick="CloseModal()"] {
  border: 2px solid #faff6e;
  background-color: #faff6e;
  color: #175731;
}

#popDeco {
  display: flex;
  flex-direction: row;
  justify-content: right;
  gap: 4%;
  margin: 5px;
  color: #fff;
  font-weight: bold;
}

#popDeco h2 {
  margin: 5px;
}

#boutonsDeco button a[href="logout.php"] {
  color: #faff6e;
}

div[id="close"] {
  cursor: pointer;
}

main {
  width: 90vw;
  margin-left: 7vw;
  height: 100%;
}

h1 {
  font-size: 25px;
  font-weight: 700;
}

footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  z-index: 0;
  justify-content: space-around;
  align-content: center;
  border-top: 1px solid #175731;
  margin-top: 2%;
  font-size: 14px;
  bottom: 0;
}

#corpGeneralSite {
  flex-grow: 1;
}

/* NOTIFICATIONS */

.menuG {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.push-right {
  margin-left: auto;
  margin-right: 25px;
}

#notif-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.notif-icon-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 0.7rem;
  font-weight: bold;
  display: none;
  min-width: 15px;
  text-align: center;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: 45px;
  right: -10px;
  width: 300px;
  background: white;
  color: black;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999;
}

.notif-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.notif-item:hover {
  background-color: #f5f5f5;
}

.notif-content {
  flex: 1;
  cursor: pointer;
}

.notif-title {
  font-weight: bold;
  font-size: 0.9rem;
  display: block;
  color: #1b5e20;
}

.notif-text {
  color: #555;
  font-size: 0.8rem;
}

.btn-delete-notif {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 10px;
}

.btn-delete-img {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

.btn-delete-img:hover {
  opacity: 1;
}

.empty-msg {
  padding: 15px;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}

#hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
}

/* notif */
.notification-wrapper {
  position: relative;
  display: inline-block;
  width: 3vw;
  height: 3vw;
  cursor: pointer;
}

.notification-wrapper .icon-notif {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge-notif {
  position: absolute;
  top: -0.5vw;
  right: -0.5vw;
  background-color: var(--couleur-rouge-flash);
  color: white;
  font-size: 0.8vw;
  font-weight: bold;
  width: 1.4vw;
  height: 1.4vw;
  border-radius: 50%;
  border: 2px solid white;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10;
}
/* fin notif */

@media screen and (max-width: 450px) {
  #hamburger {
    display: block;
    margin-right: 0px;
    padding-right: 0px;
  }

  #menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #175731;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 0;
    gap: 10px;
    z-index: 10002;
    transition: transform 0.3s ease;
    transform: translateY(-100%);
  }

  #menu.open {
    display: flex;
    transform: translateY(0);
  }

  #menu li {
    flex: 1;
    text-align: center;
  }

  #menu .icones {
    width: 30px;
    height: auto;
  }

  #logo {
    width: 30px;
    height: 30px;
  }

  #nomSite {
    font-size: 22px;
  }

  .menuG {
    padding: 0 2px;
  }

  footer {
    flex-direction: column;

    font-size: 12px;
    flex-shrink: 0;
    bottom: 0;
    width: 100%;
    padding-top: 5px;
    height: 50px;
  }

  .popup {
    width: auto;
    margin-top: 5vh;
  }

  .notif-dropdown {
    width: 200px;
    right: -70px;
  }

  .notification-wrapper {
    width: 8vw;
    height: 8vw;
  }

  .badge-notif {
    top: -1vw;
    right: -1vw;
    width: 4vw;
    height: 4vw;
    font-size: 2.5vw;
  }
}
