/* ============================================================
   header.css — AppHeader
   Copie exacte des styles de AppHeader.vue <style scoped>
   + états de transition CSS (remplace les <Transition> Vue)
   ============================================================ */

/* ── Base ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 100px;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.app-header--scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.app-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-8);
}

/* ── Logo ── */
.app-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.app-header__logo img {
  height: 80px;
  width: auto;
}

/* ── Nav desktop ── */
.app-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
  justify-content: center;
}

.app-header__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-700);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.app-header__link:hover {
  color: var(--color-primary-600);
}

.app-header__link--active {
  color: var(--color-primary-600);
  border-bottom-color: var(--color-primary-500);
}

/* ── CTA ── */
.app-header__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary-500);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--border-radius-full);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.app-header__cta:hover {
  background: var(--color-primary-600);
  box-shadow: var(--shadow-sm);
}

.app-header__cta--full {
  width: 100%;
}

/* ── Hamburger ── */
.app-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}

.app-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-neutral-800);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.app-header__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.app-header__hamburger--open span:nth-child(2) {
  opacity: 0;
}
.app-header__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Overlay ──
   Vue  : <Transition name="overlay"> opacity 0→1 / 250ms (v-if retire du DOM)
   WP   : toujours dans le DOM, .is-visible déclenche la transition
   ── */
.app-header__overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.app-header__overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Drawer ──
   Vue  : <Transition name="drawer"> translateX(100%)→0 / 250ms (v-if retire du DOM)
   WP   : toujours dans le DOM, .is-open déclenche la transition
   ── */
.app-header__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: 280px;
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.app-header__drawer.is-open {
  transform: translateX(0);
}

.app-header__drawer-logo {
  margin-bottom: var(--space-8);
}

.app-header__drawer-logo img {
  max-height: 36px;
  width: auto;
}

.app-header__drawer-links {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-header__drawer-link {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-700);
  padding: 20px 24px;
  border-radius: var(--border-radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.app-header__drawer-link:hover {
  color: var(--color-primary-600);
  background: var(--bg-brand-light);
}

.app-header__drawer-link--active {
  color: var(--color-primary-600);
}

.app-header__drawer-footer {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .app-header {
    height: 100px;
  }

  .app-header__nav,
  .app-header__cta {
    display: none;
  }

  .app-header__hamburger {
    display: flex;
  }
}
