/* Sous-menus de l'ordinateur. Le mobile n'utilise pas ces règles (barre du bas). */
@media (min-width: 1024px) {
  .top-nav { display: flex; align-items: center; justify-content: center; gap: .3rem; flex: 1; }
}
.tn-drop { position: relative; }
.tn-trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: 0 .95rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-secondary);
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background-color .18s ease, color .18s ease;
}
.tn-trigger::-webkit-details-marker { display: none; }
.tn-trigger svg { transition: transform .18s ease; }
.tn-trigger:hover { background: var(--background); color: var(--text-primary); }
.tn-drop[open] > .tn-trigger svg { transform: rotate(180deg); }
.tn-drop.is-active > .tn-trigger,
.tn-drop[open] > .tn-trigger { color: var(--primary); background: var(--primary-soft); }
.tn-trigger:focus-visible,
.tn-link:focus-visible { outline: 3px solid var(--primary-ring, rgba(37, 99, 235, .35)); outline-offset: 2px; }

.tn-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  padding: .45rem;
  display: grid;
  gap: .1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
  z-index: 60;
}
.tn-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding: 0 .85rem;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.tn-link svg { flex: none; color: var(--text-secondary); }
.tn-link:hover { background: var(--background); }
.tn-link.is-current { background: var(--primary-soft); color: var(--primary); }
.tn-link.is-current svg { color: var(--primary); }

/* Visiteur : boutons Connexion / Créer un compte dans la barre du haut */
.guest-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.guest-actions .btn { min-height: 42px; }
