/* ============================================================
   Header — Figma 3:8822 · 1905 × 100, conteneur 1320
   ============================================================ */
.site-header {
  position: relative;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;          /* → hauteur 100 avec le logo de 54 + la pilule de 60 */
  min-height: 100px;
}

/* --- Logo : SVG 255 × 54 --- */
.nav__brand {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
}
.nav__brand img {
  width: 255px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

/* --- Pilule centrale : 305 × 60 · p 12 · gap 8 · radius 16 --- */
.nav__menu {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-8);
  padding: 12px;
  border-radius: var(--r-card);
  background: var(--c-white);
  box-shadow: var(--sh-card), inset 0 0 0 1px var(--b-nav);
}

.nav__link {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  border-radius: var(--r-link);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-ink);
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.nav__link:hover,
.nav__link.is-active { background: var(--c-cream); }

/* --- Bouton CTA : 244 × 48, collé à droite --- */
.nav__end {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* --- Burger mobile --- */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Tablette ---------- */
@media (max-width: 991px) {
  .nav { min-height: 74px; padding-block: 12px; }
  .nav__brand img { width: 200px; height: 42px; }
  .nav__menu { padding: 8px; }
  .nav__link { padding: 4px 12px; font-size: 15px; }
  .nav__cta { padding: 9px 16px; font-size: 15px; }
}

/* ---------- Mobile : logo + burger ---------- */
@media (max-width: 767px) {
  .nav { min-height: 77px; padding-block: 14px; }
  .nav__brand img { width: 172px; height: 36px; }
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  /* Panneau déroulant */
  .nav__menu.is-open {
    position: absolute;
    top: 100%;
    left: var(--pad-x);
    right: var(--pad-x);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
  }
  .nav__menu.is-open .nav__link { justify-content: flex-start; padding: 10px 16px; }
}
