/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  height: var(--header-h-mobile);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 18px rgba(46, 40, 32, 0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 18px;
}
.nav-desktop {
  display: none;
  gap: 28px;
  align-items: center;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color var(--t-fast);
}
.nav-desktop a:hover { color: var(--accent-deep); }
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast);
}
.nav-desktop a:hover::after { transform: scaleX(1); }
.header-cta { display: none; }
@media (min-width: 900px) {
  .site-header { height: var(--header-h); }
  .header-inner { padding: 0 32px; }
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
}

/* Burger (mobile only) — fixed top-right enfant direct du body */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-radius: 50%;
  border: 1px solid var(--border);
  z-index: var(--z-burger);
  cursor: pointer;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.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 { transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

/* Mobile fullscreen menu — enfant direct du body */
.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) + 32px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  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.7rem;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.menu-mobile > a:last-of-type { border-bottom: 0; }
.menu-mobile .menu-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-mobile .menu-cta .btn {
  font-family: var(--ff-ui);
  font-size: 1rem;
  border-bottom: 0;
  padding: 14px 22px;
}
.menu-mobile .menu-cta .btn-primary { color: #fff; }
.menu-mobile .menu-cta .btn-wa { color: #fff; }
@media (min-width: 900px) {
  .burger { display: none; }
  .menu-mobile { display: none; }
}

/* FAB mobile (sticky call button) */
.fab-call {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: var(--z-burger);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--wa-green);
  color: #fff;
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-fast), background var(--t-fast);
}
.fab-call svg { width: 18px; height: 18px; }
.fab-call:hover { background: var(--wa-green-dark); transform: translateY(-2px); }
@media (min-width: 900px) { .fab-call { display: none; } }
@media (prefers-reduced-motion: reduce) { .fab-call:hover { transform: none; } }

/* Footer */
.site-footer {
  background: var(--surface-deep);
  color: rgba(245, 241, 234, 0.85);
  padding: 44px 0 28px;
  margin-top: 0;
}
.site-footer .container { padding-bottom: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name em { color: var(--accent-on-dark); }
.footer-brand .brand-mark {
  background: rgba(255,255,255,0.08);
  color: var(--accent-on-dark);
}
.footer-brand p { color: rgba(245, 241, 234, 0.78); font-size: 0.92rem; max-width: 36ch; }
.footer-col h4 {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-on-dark);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col p, .footer-col span {
  font-size: 0.92rem;
  color: rgba(245, 241, 234, 0.78);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(245, 241, 234, 0.60);
}
.footer-bottom button {
  color: rgba(245, 241, 234, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  align-self: flex-start;
}
.footer-bottom button:hover { color: #fff; }
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Hero spacing to account for fixed header */
main { padding-top: var(--header-h-mobile); }
@media (min-width: 900px) { main { padding-top: var(--header-h); } }
