/* ═══════════════════════════════════════════════════════════════
   AUXÉO AGENCY — NAVIGATION
   Spec DS canonique : Components.jsx window.Navbar
   ───────────────────────────────────────────────────────────────
   • background: theme.bg avec alpha (66 au repos, f2 au scroll)
   • borderBottom au scroll: rgba(255,255,255,0.08) en dark, rgba(0,0,0,0.08) en light
   • links color: theme.fg au repos, theme.accent au hover ET actif
   • active = border-bottom: 1.5px solid theme.accent
   • CTA "Demander un devis": background theme.cta, color #fff, pill 999, padding 12x26
═══════════════════════════════════════════════════════════════ */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s;
}

/* Décale la nav sous la barre d'admin WordPress */
@media screen and (min-width: 601px) {
  body.admin-bar .site-nav { top: 32px; }
}
@media screen and (max-width: 600px) {
  body.admin-bar .site-nav { top: 46px; }
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 32px;
  max-width: 1200px; margin: 0 auto;
}

/* ── LOGO — règle intouchable (Auxéo. Title Case + dot accent) ── */
.nav-logo {
  font-family: var(--font-display);
  font-weight: 500; font-size: 22px;
  letter-spacing: 0.04em;
  color: #F4F7FF;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
@media (prefers-color-scheme: light) {
  .nav-logo { color: #1A0F4F; }
  /* dot accent reste cyan via var(--accent) */
}

/* ── LINKS — spec DS : fg au repos, accent hover/active ── */
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links > li {
  position: relative;
  display: flex; align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-primary);
  opacity: 0.92;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, opacity 0.15s, border-color 0.15s;
}
.nav-links a:hover,
.nav-links li.active > a,
.nav-links li.has-dropdown.active > a {
  color: var(--accent);
  opacity: 1;
  border-bottom-color: var(--accent);
}

.nav-arrow { font-size: 9px; opacity: 0.6; margin-left: 4px; }

/* ── CTA — pill, theme.cta, #fff text ── */
.nav-cta-link {
  background: var(--cta) !important;
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em;
  padding: 12px 26px !important;
  border-radius: var(--radius-pill);
  border: none;
  text-decoration: none;
  transition: background 0.15s !important;
}
.nav-cta-link:hover {
  background: var(--cta-hover) !important;
}

/* ── HAMBURGER (mobile) ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
  background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--fg-primary); border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── MOBILE MENU ── */
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--bg-nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 24px 32px; gap: 18px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-body);
  font-size: 16px; color: var(--fg-primary);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-cta {
  background: var(--cta) !important;
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 14px 24px !important;
  border-radius: var(--radius-pill);
  margin-top: 8px;
}
.nav-mobile .nav-cta:hover { background: var(--cta-hover) !important; }

.nav-mobile-sub {
  display: flex; flex-direction: column; gap: 10px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  margin: 4px 0 8px;
}
.nav-mobile-sub a {
  font-size: 14px !important;
  color: var(--fg-secondary) !important;
  opacity: 0.85;
}
.nav-mobile-sub a:hover { opacity: 1; color: var(--accent) !important; }

/* ── DROPDOWN — JS-controlled (display: none par défaut) ── */
.nav-item { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 0;
  min-width: 240px;
  list-style: none;
  z-index: 300;
  box-shadow: var(--shadow-lg);
}
.nav-dropdown li a {
  display: flex; align-items: center;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-primary);
  border-bottom: none;
  opacity: 0.85;
  transition: color 0.15s, background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.nav-dropdown li a:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  opacity: 1;
  border-bottom: none;
}

/* ── NAV SERVICE ICONS (dropdown desktop + mobile sub) ── */
.nav-service-icon {
  width: 18px; height: 18px;
  flex-shrink: 0; margin-right: 10px;
  opacity: 0.85; transition: opacity 0.15s, color 0.15s;
  display: inline-block; vertical-align: middle;
  color: currentColor;
}
.nav-dropdown a:hover .nav-service-icon { opacity: 1; }
.nav-mobile-sub a .nav-service-icon {
  width: 16px; height: 16px; margin-right: 8px;
  display: inline-block; vertical-align: middle;
}
@media (prefers-color-scheme: light) {
  .nav-service-icon { opacity: 0.75; }
  .nav-dropdown a:hover .nav-service-icon,
  .nav-mobile-sub a:hover .nav-service-icon { opacity: 1; }
}
