/* En-tête et pied de page communs à toutes les pages du site.
   Générés par header.js et footer.js. Préfixes : npvh (en-tête), npvf (pied). */

.npvh, .npvf, .npvh *, .npvf * { box-sizing: border-box; }
.npvh, .npvf { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; }

/* ---- En-tête ---- */
.npvh { position: relative; z-index: 20; background: #f3f5f8; color: #1c2a4a; font-size: 16px; }
.npvh-air, .npvf-air { height: 10px; background: repeating-linear-gradient(-45deg, #c63b3b 0 12px, #fff 12px 18px, #2d5da8 18px 30px, #fff 30px 36px); }
.npvh-bar { max-width: 1216px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.npvh-nav { display: flex; align-items: center; gap: 36px; }
.npvh-nav a { position: relative; color: #1c2a4a; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.npvh-nav a:hover { color: #c63b3b; }
.npvh-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: #c63b3b; }
.npvh-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px) { .npvh-actions { gap: 8px; } }
.npvh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background-color .18s ease, color .18s ease; }
.npvh-btn-red { background: #c63b3b; color: #fff; }
.npvh-btn-red:hover { background: #1c2a4a; color: #fff; }
.npvh-btn-line { box-shadow: inset 0 0 0 2px #1c2a4a; color: #1c2a4a; background: transparent; }
.npvh-btn-line:hover { background: #1c2a4a; color: #fff; }
.npvh-burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px #1c2a4a; color: #1c2a4a; align-items: center; justify-content: center; cursor: pointer; }
.npvh-burger:hover { background: transparent; color: #1c2a4a; }
.npvh-panel { display: none; background: #fff; border-radius: 24px; margin: 0 16px 12px; padding: 8px 20px; box-shadow: 0 8px 30px rgba(28, 42, 74, .12); }
.npvh.is-open .npvh-panel { display: block; }
.npvh-panel a { display: block; padding: 14px 0; color: #1c2a4a; font-weight: 600; text-decoration: none; border-bottom: 1px solid #e3e8f0; }
.npvh-panel a:last-child { border-bottom: 0; }
.npvh-panel a[aria-current="page"] { color: #c63b3b; }
.npvh a:focus-visible, .npvh button:focus-visible, .npvf a:focus-visible { outline: 3px solid #2d5da8; outline-offset: 3px; }
.npvh-round { display: none; width: 44px; height: 44px; border-radius: 50%; background: #2d5da8; color: #fff; align-items: center; justify-content: center; text-decoration: none; flex: none; transition: background-color .18s ease; }
.npvh-round:hover { background: #1c2a4a; color: #fff; }
@media (max-width: 900px) {
  .npvh-round { display: inline-flex; }
  .npvh-nav, .npvh-login { display: none; }
  .npvh-burger { display: inline-flex; }
  .npvh-bar { padding: 18px 16px; }
}
@media (min-width: 901px) { .npvh-panel { display: none !important; } }

/* ---- Pied de page ---- */
.npvf { position: relative; background: #1c2a4a; color: #fff; border-radius: 44px 44px 0 0; padding: 56px 24px 50px; }
.npvf.npvf-overlap { margin-top: -44px; }
.npvf-inner { max-width: 1088px; margin: 0 auto; }
.npvf-kicker { margin: 0 0 6px; font-weight: 700; font-size: 14px; line-height: 1.4; text-transform: uppercase; letter-spacing: .045em; }
.npvf p { margin: 0 0 16px; }
.npvf p.npvf-last { margin: 0; color: #e8eef6; }
.npvf-bottom { max-width: 1088px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.npvf-social { display: flex; align-items: center; gap: 10px; }
.npvf-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.npvf-legal { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-left: auto; }
.npvf a { color: #fff; text-underline-offset: 3px; }
.npvf-legal a { font-size: 14px; }
.npvf a:hover { color: #f3a8a8; }
.npvf-legal a[aria-current="page"] { text-decoration-thickness: 2px; }
.npvf .npvf-air { position: absolute; left: 0; right: 0; bottom: 0; }
@media (max-width: 900px) { .npvf-legal { margin-left: 0; padding-right: 56px; } }

/* ---- Retour en haut de page ---- */
.npv-back-to-top { position: fixed; z-index: 9; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 13px; background: #8fa3c0 url('/back-to-top.svg') center / contain no-repeat; box-shadow: 0 3px 12px rgb(28 42 74 / 18%); cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.npv-back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.npv-back-to-top:hover { filter: brightness(.93); }
.npv-back-to-top:focus-visible { outline: 3px solid #1c2a4a; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .npv-back-to-top { transition: none; } }

/* Repli sans JavaScript (balises noscript) */
.x1 { padding: 16px 24px; display: flex; gap: 20px; flex-wrap: wrap; }
.x2 { margin: 0 auto; max-width: 1088px; }
