/* ======================================================================
   HEADER — barre de navigation fixe
   Balisage : index.html, <header class="site-header">
   Script   : sections/02-header/header.js
   ====================================================================== */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  padding-block: clamp(28px, 4.6vh, 44px);
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The bar slides away once the visitor stops scrolling, and comes back as soon as they
   scroll again, reach for the top of the window or tab into it. */
.site-header.is-away { transform: translateY(-105%); }

/* Once the page scrolls, the bar takes the site's pink at 70%. */
.site-header.is-scrolled {
  background-color: rgba(252, 112, 138, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-block: 16px;
  box-shadow: 0 12px 28px rgba(9, 49, 98, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4.2vw, 62px);
}

.nav-link {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: #1A2B4B;
  padding-block: 4px;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink-dark);
}

.nav-link:not(.is-active) {
  opacity: 0.82;
}

.nav-link:not(.is-active):hover {
  opacity: 1;
}

/* Symbole officiel à côté du nom dans le header */
.brand-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.site-header .brand-mark {
  width: 30px;
  height: 30px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  /* Alignement optique : le bord visible du symbole tombe sur celui du « S » du titre
     (0.061em de la taille du titre, moins la marge interne du SVG : 6/48 de 30px) */
  margin-inline-start: calc(clamp(3.17px, 0.433vw, 6.34px) - 3.75px);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(25, 47, 84, 0.14);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dark);
}
