/* Header sticky */
.site-header {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom-color: var(--border); }

.site-header__inner {
  height: var(--header-h-mobile);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .site-header__inner { height: var(--header-h); } }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 36px; height: 36px; color: var(--accent); flex-shrink: 0; display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.brand-name em { font-style: italic; color: var(--accent); font-weight: 400; }

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

.header-cta { display: none; }
@media (min-width: 900px) {
  .header-cta { display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: #fff; padding: 10px 18px;
    border-radius: 999px; font-family: var(--ff-ui); font-weight: 500; font-size: 0.92rem;
    transition: background var(--t-fast), transform var(--t-fast);
  }
  .header-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
}

/* Burger mobile - fixed top right, body-direct child, z-index > header */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 16px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(247, 241, 225, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(49, 42, 32, 0.10);
  border-radius: 50%;
  z-index: 1200;
  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 var(--t-base), top var(--t-base), opacity var(--t-base);
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
.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); }
@media (min-width: 900px) { .burger { display: none; } }

/* Menu mobile overlay - direct body child, never inside transformed parent */
.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;
  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.6rem;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  color: var(--text); transition: color var(--t-fast);
}
.menu-mobile a:hover { color: var(--accent); }
.menu-mobile .btn-wa, .menu-mobile .btn-call {
  margin-top: 12px; border-bottom: none; font-family: var(--ff-ui); font-size: 1rem;
  padding: 14px 18px; border-radius: 12px; text-align: center;
}
.menu-mobile .btn-wa { background: var(--wa-green); color: #fff; }
.menu-mobile .btn-call { background: var(--accent); color: #fff; }
@media (min-width: 900px) { .menu-mobile { display: none; } }

/* Footer */
.site-footer {
  background: #1f1a13;
  color: #E8E0CC;
  padding: 56px 0 28px;
  margin-top: 0;
}
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: var(--ff-display); font-size: 1.1rem; }
.site-footer p, .site-footer li, .site-footer a { color: #C9BFA8; font-size: 0.95rem; }
.site-footer a:hover { color: var(--accent-2); }
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { color: var(--accent-2); }
.footer-brand p { margin-top: 14px; max-width: 38ch; }
.footer-list li { padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.footer-list svg { flex-shrink: 0; color: var(--accent-2); }
.footer-bottom {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.85rem; color: #9A917D;
}
.footer-bottom a { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.15); }

/* FAB Appel mobile */
.fab-call {
  position: fixed; bottom: 18px; right: 18px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(49,42,32,0.35), 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent);
  z-index: var(--z-fab);
  animation: pulse-ring 2.6s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 6px 22px rgba(49,42,32,0.35), 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  70% { box-shadow: 0 6px 22px rgba(49,42,32,0.35), 0 0 0 14px transparent; }
  100% { box-shadow: 0 6px 22px rgba(49,42,32,0.35), 0 0 0 0 transparent; }
}
.fab-call svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .fab-call { display: none; } }
@media (prefers-reduced-motion: reduce) { .fab-call { animation: none; } }
