* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: rgb(224, 159, 159);
  color: #333;

  /* background: url("../img/background.png") no-repeat center center / cover fixed; */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  height: 32px;
  width: 100%;
  padding: 0px 0px;
  box-sizing: border-box;
}

main {
  margin-top: 32px; /* hauteur header */
  margin-bottom: 65px; /* hauteur footer */
  padding: 20px;
  height: calc(100vh - 32px - 65px); /* Prend tout l'espace restant */
  overflow-y: auto;
}

/* ---------------- NavBar (desktop par défaut) ---------------- */
.navbar {
  display: flex;
  justify-content: space-between; /* gauche vs droite */
  /* justify-content: space-between; */
  align-items: center; /* align vertical */
  background: rgb(100, 100, 255);
  color: rgb(230, 230, 230);
  padding: 0 0px;
  height: 32px;
  margin: 0px;
}

/* Logo */
.navbar .logo {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}

/* Liens */
.navbar-nav-container {
  display: flex;
}
.navbar-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.navbar-nav a {
  color: rgb(230, 230, 230);
  text-decoration: none;
  padding: 10px 6px;
}
.navbar-nav a:hover {
  text-decoration: underline;
}

.nav-item {
  margin: 0;
  padding: 0;
}

/* Menu profil à droite */
.menuContainer {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-width: 180px; /* garde un peu d'espace à droite */
  /* Le menu profil reste à droite sur la première ligne */
  order: 2;
}
#btnMenu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: inherit;
  padding: 10px 6px;
  cursor: pointer;
}
.img-profile {
  border-radius: 50%;
}

/* Dropdown profil */
.menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #f0f0f0;
  color: #000;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  z-index: 10;
  min-width: 250px;
  gap: 0;
}
.menu a {
  display: block;
  padding: 8px 16px;
  color: #000;
  text-decoration: none;
}
.menu a:hover {
  background: #ddd;
}

.menuNavbar-nav {
  display: none;
}
