main {
  margin-top: 120px; // espace par défaut pour compenser la navbar
}

@media (max-width: 768px) {
  main {
    margin-top: 140px; // un peu plus sur mobile
  }
}


// NAVBAR FIXE
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  color: #0ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px; // ✅ garde un espace équilibré
  border-bottom: 2px solid #0ff;
  z-index: 1000;
  box-sizing: border-box; // ✅ empêche le débordement
  padding-right: 40px;

}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 6px #0ff);
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.1);
}

// BOUTON CONNEXION
.login-btn {
  width: 21px;
  height: 42px;
  background: #0ff;
  color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 0 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

.username {
  color: #000;
  margin-left: 6px;
  font-size: 16px;
  font-weight: 600;
}




// AVATAR SUR LE BOUTON CONNEXION
.avatar-icon {
  position: fixed;
  top: 35px; // distance depuis le haut de la page
  right: 43px; // aligne avec ton bouton connexion
  width: 35px; // 🔧 change la taille ici
  height: 35px; // 🔧 idem
  object-fit: contain;
  z-index: 1001;
  filter: drop-shadow(0 0 10px #0ff);
  animation: float 2s ease-in-out infinite;
  pointer-events: none; // ✅ laisse le clic passer sur le bouton
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.logout-btn {
  width: 42px;
  height: 42px;
  background: #f66;
  color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  margin-left: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.logout-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  main {
    margin-top: 140px;
    /* un peu plus sur mobile */
  }
}


/* NAVBAR FIXE */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  color: #0ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  /* ✅ garde un espace équilibré */
  border-bottom: 2px solid #0ff;
  z-index: 1000;
  box-sizing: border-box;
  /* ✅ empêche le débordement */
  padding-right: 40px;

}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 6px #0ff);
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.1);
}

/* BOUTON CONNEXION */
.login-btn {
  width: 21px;
  height: 42px;
  background: #0ff;
  color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 0 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

.username {
  color: #000;
  margin-left: 6px;
  font-size: 16px;
  font-weight: 600;
}




/* AVATAR SUR LE BOUTON CONNEXION */
.avatar-icon {
  position: fixed;
  top: 35px;
  /* distance depuis le haut de la page */
  right: 43px;
  /* aligne avec ton bouton connexion */
  width: 35px;
  /* 🔧 change la taille ici */
  height: 35px;
  /* 🔧 idem */
  object-fit: contain;
  z-index: 1001;
  filter: drop-shadow(0 0 10px #0ff);
  animation: float 2s ease-in-out infinite;
  pointer-events: none;
  /* ✅ laisse le clic passer sur le bouton */
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.logout-btn {
  width: 42px;
  height: 42px;
  background: #f66;
  color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  margin-left: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.logout-btn:hover {
  background: #fff;
  transform: scale(1.05);
}