/* ============================================================
   Prozpx Shared Header — used on every public page
   Tokens are absolute (not CSS vars) so the file works on any page.
   ============================================================ */

/* ─── Legacy nav hiding — applied INSTANTLY via <html class="prz-hide-legacy"> ───
   header.js adds the class synchronously before the body parses, so any of these
   legacy nav patterns are hidden the moment they're encountered (no FOUC, no
   double-render layout thrash).
*/
.prz-hide-legacy #mainNav,
.prz-hide-legacy #mobileNav,
.prz-hide-legacy nav.nav:not(.prz-nav),
.prz-hide-legacy header.nav:not(.prz-nav),
.prz-hide-legacy nav.mobile-nav,
.prz-hide-legacy nav.mini-nav,
.prz-hide-legacy header.site-nav:not(.prz-nav),
.prz-hide-legacy header.header:not(.prz-nav),
.prz-hide-legacy nav#nav:not(.prz-nav),
.prz-hide-legacy header#nav:not(.prz-nav),
.prz-hide-legacy header.fnav,
.prz-hide-legacy header#fnav { display: none !important; }

/* Reset any padding-top a page added to compensate for its fixed legacy nav */
body.prz-has-header { padding-top: 0 !important; }

/* Fonts are loaded non-blocking by header.js (injected <link>).
   Many pages already include these; the browser de-dupes. */

/* ─── nav shell ──────────────────────────────────────────── */
.prz-nav { position: sticky; top: 0; z-index: 100;
  background: rgba(245, 243, 239, 0.78); backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s, box-shadow .3s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
.prz-nav.is-scrolled { border-color: #e3dfd6; background: rgba(245, 243, 239, 0.94);
  box-shadow: 0 2px 24px rgba(19, 17, 13, 0.06); }
.prz-nav-inner { max-width: 1240px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* ─── brand ──────────────────────────────────────────────── */
.prz-brand { display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  letter-spacing: -.02em; font-size: 22px; color: #13110d; text-decoration: none; }
.prz-brand-mark { width: 30px; height: 30px; border-radius: 8px;
  background: #13110d; color: #fff; display: grid; place-items: center;
  font: 700 14px/1 'Inter', sans-serif; letter-spacing: 0; }
.prz-brand-mark span { background: linear-gradient(180deg, #fff 0%, #c79b1a 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─── links ──────────────────────────────────────────────── */
.prz-nav-links { display: flex; gap: 4px; align-items: center; }
.prz-nav-links a { padding: 8px 14px; font: 500 13.5px 'Inter', sans-serif;
  color: #2a2823; border-radius: 8px; transition: color .2s, background .2s;
  text-decoration: none; }
.prz-nav-links a:hover { color: #c79b1a; }
.prz-nav-links a.is-active { color: #c79b1a; }

/* ─── ressources dropdown ────────────────────────────────── */
.prz-res { position: relative; }
.prz-res-btn { display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; font: 500 13.5px 'Inter', sans-serif; color: #2a2823;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  transition: color .2s; font-family: inherit; }
.prz-res-btn:hover, .prz-res:focus-within .prz-res-btn { color: #c79b1a; }
.prz-res-chev { width: 14px; height: 14px; transition: transform .2s; }
.prz-res:hover .prz-res-chev, .prz-res:focus-within .prz-res-chev { transform: rotate(180deg); }
.prz-res-panel { display: none; position: absolute; top: calc(100% + 6px);
  left: 50%; transform: translateX(-50%); z-index: 200; padding-top: 6px; min-width: 230px; }
.prz-res:hover .prz-res-panel, .prz-res:focus-within .prz-res-panel { display: block; }
.prz-res-inner { background: #fff; border: 1px solid #e3dfd6; border-radius: 14px;
  box-shadow: 0 12px 36px rgba(19, 17, 13, .12), 0 2px 8px rgba(19, 17, 13, .04);
  padding: 8px 0; overflow: hidden; }
.prz-res-item { display: block; padding: 10px 18px; font: 500 13.5px 'Inter', sans-serif;
  color: #2a2823; text-decoration: none; transition: color .15s, background .15s; }
.prz-res-item:hover { color: #c79b1a; background: #efece6; }
.prz-res-item.is-active { color: #c79b1a; font-weight: 600; }
.prz-res-divider { height: 1px; background: #e3dfd6; margin: 6px 0; }

/* ─── right side: lang + cta + hamburger ─────────────────── */
.prz-nav-cta { display: flex; align-items: center; gap: 10px; }
.prz-lang { display: flex; border: 1px solid #e3dfd6; border-radius: 100px;
  padding: 3px; font: 600 11px 'Inter', sans-serif; letter-spacing: .06em; background: #fff; }
.prz-lang button { padding: 5px 10px; border-radius: 100px; color: #6b6a65;
  background: none; border: 0; cursor: pointer; font: inherit; transition: all .2s; }
.prz-lang button.is-on { background: #13110d; color: #fff; }
.prz-cta-btn { background: #13110d; color: #fff; padding: 10px 18px; border-radius: 10px;
  font: 600 13.5px 'Inter', sans-serif; text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px; transition: background .2s, transform .2s; }
.prz-cta-btn:hover { background: #c79b1a; transform: translateY(-1px); }
.prz-cta-btn .arr { transition: transform .25s; }
.prz-cta-btn:hover .arr { transform: translateX(3px); }

.prz-ham { display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: 0; cursor: pointer; }
.prz-ham span { display: block; width: 22px; height: 2px; background: #13110d;
  border-radius: 2px; transition: transform .25s, opacity .2s; }
.prz-ham span:nth-child(3) { width: 14px; }

/* ─── mobile overlay ─────────────────────────────────────── */
#prz-mobile { display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(245, 243, 239, 0.98); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 48px 24px; overflow-y: auto;
  font-family: 'Inter', -apple-system, sans-serif; }
#prz-mobile.is-open { display: flex; }
#prz-mobile-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px;
  border-radius: 50%; background: #fff; border: 1px solid #e3dfd6; color: #13110d;
  display: grid; place-items: center; cursor: pointer; font-size: 22px; line-height: 1; }
.prz-m-link { font: 500 18px 'Inter', sans-serif; color: #13110d;
  text-decoration: none; transition: color .2s; }
.prz-m-link:hover { color: #c79b1a; }
.prz-m-link.is-cta { margin-top: 14px; padding: 16px 28px; background: #13110d;
  color: #fff; border-radius: 12px; font-weight: 600; font-size: 15px; }
.prz-m-divider { width: 48px; height: 1px; background: #e3dfd6; }
.prz-m-label { font: 600 11px 'Inter', sans-serif; color: #9c9a93;
  letter-spacing: .14em; text-transform: uppercase; }
.prz-m-sub { font: 500 15px 'Inter', sans-serif; color: #2a2823;
  text-decoration: none; transition: color .2s; }
.prz-m-sub:hover { color: #c79b1a; }

/* ─── responsive ─────────────────────────────────────────── */
@media (max-width: 920px) {
  .prz-nav-links { display: none; }
  .prz-nav-cta .prz-lang,
  .prz-nav-cta > a.prz-cta-btn { display: none; }
  .prz-ham { display: flex; }
}
