/* HEADER STICKY */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-mobile);
  background: rgba(244, 240, 228, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(244, 240, 228, 0.97);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
}

/* BRAND */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  color: var(--accent);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; display: block; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.16rem;
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.brand-name em {
  font-style: italic;
  color: var(--accent);
}
.brand-tag {
  display: none;
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  color: var(--text-mute);
  font-weight: 500;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--border-strong);
}
@media (min-width: 980px) {
  .brand-tag { display: inline-block; }
}

/* NAV DESKTOP */
.nav-desk {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-desk a {
  font-family: var(--ff-ui);
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color var(--t-fast);
  position: relative;
}
.nav-desk a:hover { color: var(--accent); }
.nav-desk a.is-active { color: var(--text); }
@media (min-width: 980px) {
  .nav-desk { display: flex; }
}

/* HEADER CTA desktop (PIEGE PROD #13 : masque sous 980px). Specificite renforcee
   pour battre .btn { display: inline-flex } de components.css (charge apres). */
.site-header .header-cta { display: none; }
@media (min-width: 980px) {
  .site-header .header-cta { display: inline-flex; }
}

/* BURGER (PIEGE PROD #8 : fixed, haut a droite, z-burger > z-menu) */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 16px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  z-index: var(--z-burger);
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-med), top var(--t-med), opacity var(--t-fast), background var(--t-fast);
}
.burger span { position: relative; }
.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: 980px) {
  .burger { display: none; }
}

/* MENU MOBILE (enfant DIRECT du body, fixed full screen, opaque, dvh) */
.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) + 28px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  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;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.menu-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.menu-mobile-ctas a.btn {
  font-family: var(--ff-ui);
  font-size: 1rem;
  border: 0;
  padding: 14px 18px;
  text-align: center;
  border-radius: var(--r-md);
}
.menu-mobile-ctas a.btn-primary { background: var(--accent); color: #F4F0E4 !important; }
.menu-mobile-ctas a.btn-wa { background: var(--wa-green); color: #fff !important; }
@media (min-width: 980px) {
  .menu-mobile { display: none; }
}

/* FOOTER (PIEGE PROD #12 : margin-top 0) */
.site-footer {
  background: var(--surface-dark);
  color: #E6E2D2;
  padding: 56px 0 32px;
  margin-top: 0;
}
.site-footer p, .site-footer li, .site-footer a, .site-footer h4, .site-footer small {
  color: #DBD7C5;
}
.site-footer h4 {
  font-family: var(--ff-display);
  color: #F2EFE3;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.site-footer .brand-mark { background: rgba(197, 208, 149, 0.16); color: var(--accent-on-dark); }
.site-footer .brand-name { color: #F4F1E5; }
.site-footer .brand-name em { color: var(--accent-on-dark); }
.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-desc { margin-top: 16px; font-size: 0.94rem; max-width: 36ch; }
.footer-col li { font-size: 0.95rem; line-height: 1.9; }
.footer-col a:hover { color: var(--accent-on-dark); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom small { font-size: 0.84rem; opacity: 0.78; }
.footer-bottom button.ml-trigger {
  font-family: var(--ff-ui);
  font-size: 0.84rem;
  color: var(--accent-on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* FAB Appeler (mobile only, z-fab < z-menu) */
.fab-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(44, 42, 32, 0.22);
  z-index: var(--z-fab);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med);
}
.fab-call.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-call svg { width: 22px; height: 22px; }
@media (min-width: 980px) {
  .fab-call { display: none; }
}
