/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(244, 236, 222, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  z-index: var(--z-header);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 18px -14px rgba(42, 32, 24, 0.18);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-family: var(--ff-ui);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-mute);
  margin-top: 4px;
  display: block;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-med);
}
.nav-desktop a:hover::after { transform: scaleX(1); transform-origin: left; }

.header .header__cta { display: none !important; }

@media (min-width: 1024px) {
  .nav-desktop { display: inline-flex; }
  .header .header__cta { display: inline-flex !important; }
  .burger { display: none; }
}

/* Burger - position fixed top-right (PIEGE PROD #8) */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1201;
  color: var(--text);
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.burger span {
  position: relative;
}
.burger span::before {
  position: absolute;
  top: -7px;
  left: 0;
}
.burger span::after {
  position: absolute;
  top: 7px;
  left: 0;
}
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Menu mobile - enfant DIRECT du body (PIEGE PROD #1) */
.menu-mobile {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  z-index: var(--z-menu);
  padding: calc(var(--header-h-mobile) + 24px) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .35s ease, opacity .35s ease;
}
.menu-mobile a {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-mobile a::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  opacity: .7;
}
.menu-mobile .menu-cta {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.menu-mobile .menu-cta .btn {
  width: 100%;
  justify-content: center;
}
.menu-mobile .menu-cta a::after { display: none; }
.menu-mobile .menu-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-mute);
}
@media (min-width: 1024px) {
  .menu-mobile { display: none; }
}

/* Footer */
.footer {
  background: var(--primary);
  color: #F4ECDE;
  padding: 64px 0 28px;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer__col h4 {
  font-family: var(--ff-display);
  color: #F4ECDE;
  font-size: 1rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.footer .brand { color: #F4ECDE; }
.footer .brand-name { color: #F4ECDE; }
.footer .brand-tag { color: rgba(244, 236, 222, 0.55); }
.footer .brand-mark { background: rgba(194, 136, 80, 0.2); color: var(--accent-2); }
.footer__pitch {
  margin-top: 14px;
  font-size: .92rem;
  line-height: 1.6;
  color: rgba(244, 236, 222, 0.74);
  max-width: 30ch;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; font-size: .92rem; color: rgba(244, 236, 222, 0.78); }
.footer__col li a { transition: color var(--t-fast); }
.footer__col li a:hover { color: var(--accent-2); }
.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 236, 222, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .82rem;
  color: rgba(244, 236, 222, 0.62);
}
.footer__bottom a { text-decoration: underline; text-decoration-color: rgba(244, 236, 222, 0.3); }
.footer__bottom a:hover { color: var(--accent-2); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 48px 0 24px; }
}
