/* Layout — DPC : Header sticky, footer, menu mobile, FAB */

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-mobile);
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
}
@media (min-width: 768px) { .header { height: var(--header-h); } .header__inner { padding: 0 40px; } }

/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: 12px; color: var(--text);
}
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--accent);
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}
.brand-tag {
  font-family: var(--ff-ui);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-top: 4px;
}

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

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

/* Burger */
.burger {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  position: relative;
  z-index: calc(var(--z-header) + 1);
}
.burger span {
  position: relative; display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform var(--t-base), background var(--t-base);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--text);
  transition: transform var(--t-base), top var(--t-base);
}
.burger span::before { top: -7px; }
.burger span::after { 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: 1024px) { .burger { display: none; } }

/* ============ MENU MOBILE (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) + 24px) 24px 40px;
  display: flex; flex-direction: column; gap: 18px;
  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:not(.btn) {
  font-family: var(--ff-display); font-size: 1.6rem; color: var(--text);
  padding: 14px 0; border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.menu-mobile .menu-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.menu-mobile .menu-cta .btn { width: 100%; }
.menu-mobile .menu-cta .btn-primary { color: #fff; }
.menu-mobile .menu-cta .btn-wa { color: #fff; }
.menu-mobile .menu-meta {
  margin-top: auto; padding-top: 22px;
  font-family: var(--ff-ui);
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
}
.menu-mobile .menu-meta strong { display: block; color: var(--text); margin-bottom: 4px; }
@media (min-width: 1024px) { .menu-mobile { display: none !important; } }

/* ============ FOOTER ============ */
.footer {
  background: var(--primary);
  color: #E8E1D4;
  padding: 56px 0 24px;
  margin-top: 56px;
}
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

.footer h4 {
  font-family: var(--ff-display); font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #C9B79F; margin-bottom: 14px;
}
.footer p, .footer a, .footer li { font-size: 0.95rem; color: #C9B79F; line-height: 1.7; }
.footer a:hover { color: var(--accent-2); }

.footer__brand .brand-name { color: #F4EFE7; font-size: 1.3rem; }
.footer__brand .brand-mark { background: transparent; border: 1px solid #5C5247; color: var(--accent-2); }
.footer__brand p { margin-top: 14px; max-width: 38ch; }

.footer__bottom {
  margin-top: 32px; padding-top: 22px;
  border-top: 1px solid #4A4137;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.82rem; color: #948774;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__bottom a { color: #948774; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--accent-2); }

/* ============ FAB Appeler ============ */
.fab-call {
  position: fixed; bottom: 18px; right: 18px;
  z-index: var(--z-header);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px -4px rgba(168,90,54,0.55);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.fab-call.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab-call svg { width: 24px; height: 24px; }
@media (min-width: 1024px) { .fab-call { display: none; } }
