/* En-tête à menu (20/10, maquette validée par Gilles), commun à l'accueil, aux guides et aux passerelles ; construit par
   src/modules/vitrine/menu.ts. Le panneau prolonge l'en-tête et la page s'efface derrière ; une seule chose forte par
   panneau (la carte de la nuit, le guide à la une), le reste calme : icônes fines, titres en encre, la couleur de chaque
   famille (celles de la phrase du haut de page) n'apparaît qu'au survol. */
.nv-h { position: relative; z-index: 50; }
/* Panneau ouvert : l’en-tête devient blanc d’un bord à l’autre de l’écran (il fait 1600 px au plus). */
.nv-h::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.nv-h:has(.nv-btn[aria-expanded="true"])::before { opacity: 1; }
.nv-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-header .nv-btn, .site-header .nv a.nv-lien { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font: 600 15px var(--body); color: var(--ink); cursor: pointer; text-decoration: none; transition: background-color .16s ease, transform .16s ease-out; }
.nv-btn[aria-expanded="true"] { background: #efe9df; }
@media (hover: hover) and (pointer: fine) { .site-header .nv-btn:hover, .site-header .nv a.nv-lien:hover { background: #efe9df; text-decoration: none; } }
.nv-chev { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s cubic-bezier(.23,1,.32,1); }
.nv-btn[aria-expanded="true"] .nv-chev { transform: rotate(180deg); }
.nv-btn:active, .nv-burger:active { transform: scale(.97); }

/* Le fond blanc (et son filet du bas) déborde de l’en-tête, large de 1600 px au plus, jusqu’aux bords de l’écran :
   une ombre ne crée pas de défilement horizontal ; le découpage l’empêche de déborder vers le bas. */
.nv-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #f1ebe1; box-shadow: 0 0 0 100vmax #fff, 0 1px 0 100vmax #e9e2d6; clip-path: inset(0 -100vmax -1px); }
.nv-panel:not([hidden]) { animation: nv-in .2s cubic-bezier(.23,1,.32,1); }
.nv-panel[data-instant]:not([hidden]) { animation: none; }
@keyframes nv-in { from { opacity: 0; transform: translateY(-6px); } }
/* Le voile couvre tout l’écran sous l’en-tête (menu.js mesure --nv-bas à l’ouverture). */
.nv-voile { position: fixed; left: 0; right: 0; top: var(--nv-bas, 89px); bottom: 0; z-index: -1; background: #16263f33; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.nv-h:has(.nv-btn[aria-expanded="true"]) .nv-voile { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.nv-in { max-width: 1600px; margin: 0 auto; padding: 26px max(4.5vw,24px) 30px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; }

/* Fonctionnalités */
.nv-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; align-content: start; }
.site-header .nv a.nv-feat, .nv-mobile a.nv-feat { display: flex; gap: 14px; align-items: flex-start; padding: 14px 14px 14px 12px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background-color .16s ease; }
.nv-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; color: var(--c); }
.nv-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nv-feat b { display: block; font-family: var(--heading); font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); transition: color .16s ease; }
.nv-feat small { display: block; max-width: 38ch; margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .nv-feat:hover { background: #f7f3ec; } .nv-feat:hover b { color: var(--c); } }

/* La carte de la nuit */
.nv-carte { position: relative; align-self: start; padding: 24px 24px 18px; border-radius: 20px; color: #e6ebf7; background: radial-gradient(260px 160px at 100% 0%, #4a4a8a 0%, #4a4a8a00 70%), #16263f; overflow: hidden; }
.nv-soleil { position: absolute; right: 24px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: #ffd36b; box-shadow: 0 0 0 6px #ffd36b33, 0 0 24px 6px #ffbf5a55; }
.nv-carte-t { margin: 0 34px 14px 0; font-family: var(--heading); font-size: 13px; font-weight: 700; letter-spacing: .1px; color: #ffd58a; }
.nv-nuit { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; }
.nv-nuit li { display: grid; grid-template-columns: 46px 1fr; align-items: baseline; gap: 8px; font-size: 15px; color: #e6ebf7; }
.nv-nuit b { font-family: var(--heading); font-size: 22px; font-weight: 800; letter-spacing: -.6px; color: #fff; text-align: right; }
.nv-carte .button { width: 100%; max-width: none; min-height: 46px; border-radius: 12px; font-size: 15px; }
.site-header .nv .nv-carte a:not(.button) { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; padding: 0; color: #ffd36b; font-weight: 600; font-size: 15px; }
.nv-carte small { display: block; margin-top: 4px; font-size: 12px; color: #8e9bb8; }

/* Guides, outils, passerelles */
.nv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.nv-col-t { margin: 0 0 8px; font-family: var(--heading); font-size: 14px; font-weight: 700; color: var(--muted); }
.nv-col ul, .nv-pass ul, .nv-m-l { list-style: none; margin: 0; padding: 0; }
.site-header .nv .nv-col a { display: inline-flex; align-items: center; min-height: 38px; padding: 0; color: var(--ink); font-size: 15.5px; text-decoration: none; }
.site-header .nv a.nv-une { align-self: start; display: grid; gap: 8px; padding: 24px; border-radius: 20px; background: linear-gradient(170deg, #fff6e6, #fdecd0); color: var(--ink); text-decoration: none; transition: transform .2s cubic-bezier(.23,1,.32,1); }
.nv-une-l { font-size: 13px; font-weight: 700; color: #8a5a00; }
.nv-une-t { font-family: var(--heading); font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.4px; }
.nv-une-d { font-size: 15px; line-height: 1.5; color: #5b4a2e; }
.nv-une-a { margin-top: 4px; font-weight: 700; color: #8a5a00; }
.nv-pass { grid-column: 1 / -1; }
.nv-pass ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 28px; }
.nv-intro { margin: 0 0 10px; font-family: var(--heading); font-size: 18px; font-weight: 700; letter-spacing: -.3px; color: var(--plum); }
.site-header .nv .nv-pass li a, .nv-m-l a { display: grid; gap: 1px; padding: 9px 0; color: var(--ink); font-size: 15.5px; line-height: 1.35; text-decoration: none; }
.nv-pass li a small, .nv-m-l a small { font-size: 13px; color: var(--muted); }
.site-header .nv .nv-tous a, .nv-mobile .nv-tous a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0; color: var(--plum); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .site-header .nv .nv-col a:hover, .site-header .nv .nv-pass li a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
  .site-header .nv a.nv-une:hover { transform: translateY(-2px); text-decoration: none; }
}

/* Bouton de l'en-tête et téléphone */
.nv-h .header-access.primary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; white-space: nowrap; }
.nv-burger, .nv-mobile { display: none; }
@media (max-width: 1100px) { .site-header .nv-btn, .site-header .nv a.nv-lien { padding: 0 8px; font-size: 14px; } .nv-in { grid-template-columns: 1fr; } .nv-carte, .site-header .nv a.nv-une { display: none; } }
@media (max-width: 1000px) {
  /* style.css affiche « .site-header nav » jusqu’à 640 px : le menu à panneaux s’efface dès 1000 px au profit du bouton « Menu ». */
  .site-header nav.nv, .nv-voile { display: none; }
  /* Même poids que la règle qui affiche le bouton (.nv-h .header-access.primary), sinon il réapparaît sur téléphone. */
  .nv-h .header-login, .nv-h .header-access.primary { display: none; }
  .nv-burger { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 1px solid #d8cfc2; border-radius: 12px; background: #fff; font: 650 15px var(--body); color: var(--ink); transition: transform .16s ease-out; }
  .nv-burger span, .nv-burger span::before, .nv-burger span::after { display: block; position: relative; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
  .nv-burger span { transition: background-color .2s ease; }
  .nv-burger span::before, .nv-burger span::after { content: ""; position: absolute; left: 0; transition: transform .2s cubic-bezier(.23,1,.32,1), top .2s cubic-bezier(.23,1,.32,1); }
  .nv-burger span::before { top: -5px; } .nv-burger span::after { top: 5px; }
  .nv-burger[aria-expanded="true"] span { background: transparent; }
  .nv-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nv-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  /* Le tiroir part du bas de l’en-tête, même si la page a un peu défilé (menu.js mesure --nv-top à l’ouverture). */
  .nv-mobile:not([hidden]) { display: block; position: fixed; left: 0; right: 0; top: var(--nv-top, 65px); height: calc(100dvh - var(--nv-top, 65px)); overflow-y: auto; overscroll-behavior: contain; padding: 8px 21px 28px; background: #fbf8f3; border-top: 1px solid #ece4d6; animation: nv-tiroir .24s cubic-bezier(.32,.72,0,1); }
  .nv-m-sec { border-bottom: 1px solid #ece4d6; }
  .nv-m-sec summary { display: flex; align-items: center; justify-content: space-between; min-height: 58px; font-family: var(--heading); font-size: 19px; font-weight: 700; color: var(--ink); list-style: none; cursor: pointer; }
  .nv-m-sec summary::-webkit-details-marker { display: none; }
  .nv-m-sec[open] summary .nv-chev { transform: rotate(180deg); }
  .nv-m-sec .nv-feats { grid-template-columns: 1fr; padding-bottom: 10px; }
  .nv-mobile a.nv-feat { padding: 10px 0; }
  .nv-m-sec .nv-col { padding-bottom: 10px; }
  .nv-mobile .nv-col a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15.5px; text-decoration: none; }
  .nv-mobile .nv-m-l a { min-height: 44px; }
  .nv-m-lien { display: flex; align-items: center; min-height: 58px; border-bottom: 1px solid #ece4d6; font-family: var(--heading); font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; }
  .nv-m-actions { display: grid; gap: 10px; margin-top: 22px; }
  .nv-m-actions .button { width: 100%; max-width: none; min-height: 52px; border-radius: 12px; justify-content: center; }
}
@keyframes nv-tiroir { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .nv-panel:not([hidden]) { animation: none; } .nv-mobile:not([hidden]) { animation: none; } .nv-chev, .site-header .nv a.nv-une, .nv-burger span::before, .nv-burger span::after { transition: none; } }
