/* Définitions utiles (hauteur du header réutilisable) */
:root {
  --header-height: 70px;

  /* Définition locale de la variable de rayon des cartes (fallback si globals.css ne la définit pas) */
  border-radius: var(--card-radius);
}

.navbar {
  background-color: hsl(var(--background)); /* utilise la variable globale */
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;

  /* position fixe pour rester visible lors du scroll */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;

  /* z-index élevé pour rester au-dessus du contenu */
  z-index: 2000;

  font-family: 'Inter', sans-serif;
  margin-bottom: 0;

  /* léger effet visuel pour séparer du contenu */
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  /* garantir fond opaque pour lisibilité */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.navbar_w-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--brand-green);
}

.navbar_logo-icn {
  width: 32px;
  height: 32px;
}

.navbar_logo-txt {
  font-size: 1.2rem;
  font-weight: 600;
}

.navbar_w-menu-link {
  display: flex;
  gap: 2rem;
}

.navbar_link {
  font-size: 0.95rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar_link:hover {
  color: var(--brand-green);
}

/* === Boutons (mêmes dimensions, avec bordure) === */

.button,
.button.is-success {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  min-width: 140px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  outline: none;
  border: 1px solid transparent;
}

/* Bouton principal */
.button.is-success {
  background-color: var(--brand-green);
  color: #fff;
  border: 1px solid var(--brand-green);
}

.button.is-success:hover {
  background-color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar_w-menu-link {
    display: none;
  }
}

/* === Zone boutons (droite du header) === */

.navbar_w-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* La cloche est un conteneur flex pour centrer son bouton */
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
}

/* Le form du bouton Déconnexion ne doit pas ajouter de hauteur parasite */
.navbar_w-btn form {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}


/* Compensation globale : garantir que le contenu principal n'est pas masqué
   par le header fixe. Utiliser la variable pour cohérence. */
main.container,
.container {
  padding-top: calc(var(--header-height) + 1rem);
}

/* Si des pages utilisent d'autres wrappers, on peut sécuriser aussi body */
body {
  /* n'ajoute pas d'espace visuel en dehors des containers, mais garantit
     que le header n'empêche pas l'accès au contenu si .container absent */
  padding-top: 0;
}
