/* NAVIGATION UNIQUEMENT : aucune règle .hero n'est redéfinie ici. */
:root {
  --navigation-ink: #F0E8DA;
  --navigation-background: #0F1E2E;
  --navigation-layer: 100;
  --project-modal-layer: 200; /* Réservé aux futures fenêtres de projets. */
}
html { scroll-behavior: smooth; }
/* Les sections ne passent plus sous un menu fixe. */
main > section { scroll-margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.site-header {
  position: absolute;
  z-index: var(--navigation-layer);
  top: max(16px, env(safe-area-inset-top));
  left: 3.3%;
  /* Pas de bandeau sur toute la largeur : le portrait reste dégagé. */
}
.site-navigation {
  color: var(--navigation-ink);
  font-family: "bodoni-moda", "Bodoni Moda", Didot, serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 6;
  font-weight: 400;
}
.site-navigation [hidden] { display: none !important; }
.navigation-list {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: clamp(12px, 1.3vw, 20px);
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 5px #0F1E2E;
}
.navigation-link[href] { cursor: pointer; }
.navigation-link[href]:hover { text-decoration: underline; text-underline-offset: 5px; }
.navigation-link[aria-disabled="true"] { cursor: default; }
.navigation-link:focus-visible, .navigation-toggle:focus-visible {
  outline: 2px solid var(--navigation-ink);
  outline-offset: 5px;
  border-radius: 2px;
}
.navigation-separator { font-size: clamp(12px, 1.3vw, 20px); }
.navigation-toggle {
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 1px solid rgb(240 232 218 / 25%);
  border-radius: 2px;
  background: var(--navigation-background);
  color: var(--navigation-ink);
  cursor: pointer;
}
.navigation-toggle-line {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 4px 0;
}
/* Icône de fermeture sans animation imposée. */
.navigation-toggle[aria-expanded="true"] .navigation-toggle-line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.navigation-toggle[aria-expanded="true"] .navigation-toggle-line:nth-child(2) { opacity: 0; }
.navigation-toggle[aria-expanded="true"] .navigation-toggle-line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 767px) {
  .site-header {
    top: max(8px, env(safe-area-inset-top));
    left: auto;
    right: max(8px, env(safe-area-inset-right));
  }
  .navigation-toggle { margin-left: auto; }
  .navigation-panel {
    position: absolute;
    top: 52px;
    right: 0;
    width: min(288px, calc(100vw - 32px));
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 16px 24px;
    background: var(--navigation-background);
    border: 1px solid #9F8F71;
    box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
  }
  .navigation-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .navigation-link { width: 100%; min-height: 48px; font-size: 22px; }
  .navigation-separator { display: none; }
}
