/* V1.3 — navigation principale allégée et stable */
html { scrollbar-gutter: stable; }

header .nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: nowrap;
}
.brand { flex: 0 0 auto; white-space: nowrap; }
.menu { display: none !important; }
nav { display: block; flex: 0 1 auto; min-width: 0; }
nav ul {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.55vw, 26px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}
nav li { flex: 0 0 auto; }
nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 2px;
  line-height: 1;
  font-size: .9rem;
  white-space: nowrap;
}
nav a[aria-current="page"] { color: var(--text); }
nav a[aria-current="page"]:not(.cta) { text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #c9a86a; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
nav .cta {
  min-height: 40px;
  margin: 0;
  padding: 9px 15px;
  white-space: nowrap;
  font-size: .86rem;
}

@media (max-width: 1050px) {
  header .nav { gap: 18px; }
  .brand { font-size: 1.06rem; }
  .brand span { font-size: .61rem; letter-spacing: .08em; }
  nav ul { gap: 11px; }
  nav a { font-size: .82rem; }
  nav .cta { padding-inline: 12px; font-size: .8rem; }
}

/* No hidden menu: on narrow screens the visible navigation becomes a second row. */
@media (max-width: 820px) {
  header .nav {
    min-height: auto;
    padding-top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .brand { align-self: center; text-align: center; }
  /* Mobile : le menu passe sur plusieurs lignes, tout est visible sans défilement */
  nav { width: 100%; max-width: 100%; overflow: visible; }
  nav ul { width: 100%; min-width: 0; flex-wrap: wrap; justify-content: center; gap: 4px 10px; padding: 0 0 12px; white-space: normal; }
  nav a { min-height: 40px; padding: 7px 6px; font-size: .86rem; }
  nav li:last-child { flex: 1 0 100%; display: flex; justify-content: center; margin-top: 4px; }
  nav .cta { min-height: 44px; padding: 10px 22px; font-size: .92rem; }
}

main > section:first-child:not(.hero) { padding-top: 86px; }
@media (max-width: 900px) { main > section:first-child:not(.hero) { padding-top: 64px; } }
.cta, .secondary { white-space: nowrap; }
