/* Menu burger partage entre les pages (index/inbox/coherence/settings). Suppose que la page
   hote definit deja les variables --bg2/--line/--txt/--muted/--accent/--card. */

.burger-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1001;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--txt);
  width: 46px;
  height: 46px;
  border-radius: 8px;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
}
.burger-btn:hover { border-color: var(--muted); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 100%;
  background: var(--bg2);
  border-left: 1px solid var(--line);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 72px 16px 16px;
  box-sizing: border-box;
  transition: right .2s ease;
}
.nav-menu.open { right: 0; }

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: .12s;
}
.nav-menu a:hover { background: var(--card); color: var(--txt); }
.nav-menu a.active { background: var(--accent); color: #fff; font-weight: 600; }

/* Logo cliquable (retour a l'accueil) + H1, groupes ensemble : c'est ce groupe qui
   devient le premier des deux blocs ecartes par .title-line/.nav-inline-header
   (l'autre etant le bandeau de liens, quand il y en a un). */
.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: 40px;
  width: auto;
  display: block;
}
.brand:hover { opacity: .85; }

/* Header sans .title-line propre (wishlist/inbox/parametres) : le H1 seul devient
   une ligne flex pour accueillir le bandeau de liens a cote, sur la meme ligne. */
.nav-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Liens rapides dans le bandeau, sur la meme ligne que le H1 : Videotheque/
   Wishlist/Inbox en plus du burger, ou les 3 sous-pages de Parametres entre elles.
   Icones seules (title/aria-label portent le libelle, affiche au survol). */
.quick-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-right:10%; /* laisse la place au burger-btn (fixed, 46px + marge) */
}
.quick-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  border: none;
  transition: .12s;
}
.quick-nav a svg { width: 30px; height: 30px; fill: currentColor; }
.quick-nav a:hover { color: var(--txt); border-color: var(--muted); }
.quick-nav a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
