/* ========== Header sticky ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(243, 239, 231, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(243, 239, 231, 0.98);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 768px) {
  .header-inner { height: var(--header-h-mobile); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; display: block; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand-tag {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.nav-desktop a:hover::after { width: 100%; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header-cta .btn { padding: 10px 18px; font-size: 0.88rem; }

/* Burger mobile */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 8px;
}
.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}
.burger::before { top: 15px; }
.burger span    { top: 21px; }
.burger::after  { top: 27px; }
.burger.is-open::before { top: 21px; transform: rotate(45deg); }
.burger.is-open::after  { top: 21px; transform: rotate(-45deg); }
.burger.is-open span    { opacity: 0; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-cta .btn:not(.btn-call-mini) { display: none; }
}
@media (max-width: 768px) {
  .burger { display: block; }
  .header-cta { display: none; }
}

/* ========== Menu mobile (enfant direct 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) + 28px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.menu-mobile a:not(.btn) {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.menu-mobile .btn { margin-top: 6px; }
.menu-mobile .btn-primary { color: #fff; }
.menu-mobile .btn-wa { color: #fff; }

@media (min-width: 769px) {
  .menu-mobile { display: none !important; }
  .burger { display: none !important; }
}

/* ========== Footer ========== */
.site-footer {
  background: var(--text);
  color: var(--bg);
  padding: 56px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.foot-col h4 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--bg);
  margin-bottom: 14px;
  letter-spacing: 0;
}
.foot-col p, .foot-col li, .foot-col a {
  font-family: var(--ff-ui);
  font-size: 0.92rem;
  color: rgba(243, 239, 231, 0.76);
  line-height: 1.65;
}
.foot-col a:hover { color: var(--bg); text-decoration: underline; text-decoration-color: var(--accent-2); text-underline-offset: 3px; }
.foot-col ul { display: flex; flex-direction: column; gap: 6px; }
.foot-brand .brand-mark { background: rgba(243, 239, 231, 0.12); color: var(--bg); }
.foot-brand .brand-name { color: var(--bg); }
.foot-brand .brand-tag { color: rgba(243, 239, 231, 0.55); }
.foot-tag {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 0.92rem;
  color: rgba(243, 239, 231, 0.72);
}
.foot-bottom {
  border-top: 1px solid rgba(243, 239, 231, 0.14);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-bottom p, .foot-bottom a {
  font-size: 0.82rem;
  color: rgba(243, 239, 231, 0.55);
}
.foot-bottom a:hover { color: var(--bg); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { margin-top: 56px; padding-top: 40px; }
}

/* ========== FAB mobile ========== */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-fab);
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(58, 74, 64, 0.28);
  text-decoration: none;
}
.fab svg { width: 26px; height: 26px; }
.fab.is-visible { display: inline-flex; }
@media (min-width: 769px) {
  .fab.is-visible { display: none; }
}
