/* ==============================================================
   TOPBAR PARTICULIERS · zenmoov.fr
   Source de vérité unique pour : index, devis, cgu,
   mentions-legales, politique-de-confidentialite, blog/*
   ============================================================== */

nav.zm-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.zm-topbar .nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.zm-topbar .nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
  position: relative;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;        /* crop l'espace blanc du SVG autour du contenu utile */
}

.zm-topbar .nav-brand-logo {
  display: block;
  height: 96px;            /* le SVG s'affiche grand, le crop fait le reste */
  width: auto;
  pointer-events: none;
  /* Le logo.svg a ~10,56 % d'espace blanc à gauche (carré "Z" à x=38 sur un
     viewBox de 360). On décale d'autant pour que le "Z" colle au bord du
     conteneur et s'aligne verticalement avec les textes en dessous.
     En %, ça reste correct quelle que soit la taille rendue (desktop/mobile). */
  transform: translateX(-10.56%);
}

.zm-topbar .nav-brand::after {
  content: "";
  position: absolute;
  inset: 0;
}

.zm-topbar .nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.zm-topbar .nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.zm-topbar .nav-links a:hover {
  color: var(--dark);
}

.zm-topbar .nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: var(--red);
  color: white !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--red-shadow);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.zm-topbar .nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 980px) {
  .zm-topbar .nav-links li:not(:last-child) { display: none; }
  .zm-topbar .nav-inner {
    padding: 0 3rem 0 1.25rem;
    gap: 0.5rem;
    height: 64px;
  }
  .zm-topbar .nav-brand { height: 44px; }
  .zm-topbar .nav-brand-logo { height: 72px; }
  .zm-topbar .nav-cta-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
    box-shadow: 0 2px 10px var(--red-shadow);
  }
}
