/* ==========================================================================
   En-tête
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  color: var(--white);
  transition: background 260ms ease, color 260ms ease, border-color 260ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--hairline);
  color: var(--ink);
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: auto;
  height: 42px;
  padding: 5px 7px;
  border-radius: 8px;
  background: var(--white);
  transition: background 260ms ease;
}

.site-header.is-scrolled .brand-mark {
  background: transparent;
}

.brand > span:last-child {
  display: grid;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.1;
}

.brand small {
  font-family: var(--font-label);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  opacity: 0.72;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  opacity: 0.82;
  transition: opacity 200ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentcolor;
  transition: width 240ms ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a.is-current::after {
  width: 100%;
}

.site-nav a.is-current {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentcolor;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: currentcolor;
}
