/* ============================================================
   ATELIER DU PLAN — Header / Navigation
   Fichier : assets/css/header.css
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  background: rgba(235, 227, 210, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 7, 0, 0.08);
  transition: padding var(--t-slow);
}

.site-header.is-scrolled {
  padding: 16px 60px;
}

/* Logo */
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo svg {
  width: 42px;
  height: 42px;
}

.site-header__logo-text {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  line-height: 1.3;
}

/* Navigation principale */
.site-header__nav {
  display: flex;
  align-items: center;
}

.site-header__menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__menu a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  text-decoration: none;
  transition: color var(--t-fast);
}

.site-header__menu a:hover,
.site-header__menu .current-menu-item a {
  color: var(--brown);
}

/* CTA */
.site-header__cta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--brown);
  color: var(--brown);
  background: transparent;
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base);
  white-space: nowrap;
}

.site-header__cta:hover {
  background: var(--brown);
  color: var(--beige);
}

/* Burger mobile */
.site-header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.site-header__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brown);
  transition: transform var(--t-base), opacity var(--t-base);
}

.site-header__burger.is-open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.site-header__burger.is-open span:nth-child(2) { opacity: 0; }
.site-header__burger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Drawer mobile */
.site-header__drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--beige);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 80px 24px 40px;
}

.site-header__drawer.is-open {
  display: flex;
}

.site-header__drawer a {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--brown);
  text-decoration: none;
  transition: color var(--t-fast);
}

.site-header__drawer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .site-header {
    padding: 20px 24px;
  }

  .site-header.is-scrolled {
    padding: 16px 24px;
  }

  .site-header__menu,
  .site-header__cta {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }
}

/* ── Icône connexion ── */
.site-header__login {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  color: var(--brown-mid);
  border: 1px solid transparent;
  transition: all var(--t-fast);
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__login:hover {
  color: var(--accent);
  border-color: var(--beige-deeper);
}

.site-header__login svg {
  display: block;
}