/* Header sticky, nav, footer, FAB */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(243, 239, 231, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  background: rgba(243, 239, 231, .96);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h-mobile);
}
@media (min-width: 1024px) {
  .header-inner { min-height: var(--header-h); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--accent);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  padding: 6px;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.005em;
}
.brand-name em { color: var(--accent); font-style: italic; font-weight: 500; }
.brand-tag {
  font-family: var(--ff-ui);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  margin-top: 4px;
}
@media (max-width: 560px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.12rem; }
  .brand-mark { width: 34px; height: 34px; }
}

.nav-desktop {
  display: none;
  gap: 28px;
  align-items: center;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.nav-desktop a:hover::after { transform: scaleX(1); }

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

/* Burger position fixed top right */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: calc(var(--z-header) + 100);
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .3s ease, opacity .2s ease;
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -8px; left: 0; }
.burger span::after { position: absolute; top: 8px; left: 0; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(8px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 1024px) {
  .burger { display: none; }
}

/* Menu mobile */
.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: 1rem;
  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.6rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.menu-mobile a:last-of-type { border-bottom: 0; }
.menu-mobile a:hover { color: var(--accent); }
.menu-mobile .menu-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.menu-mobile .menu-cta .btn {
  width: 100%;
  font-family: var(--ff-ui);
  font-size: .95rem;
  padding: 14px 22px;
  border-bottom: 0;
}
.menu-mobile .menu-cta a.btn-primary { color: var(--bg); }
.menu-mobile .menu-cta a.btn-primary:hover { color: var(--accent); }
.menu-mobile .menu-cta a.btn-wa { color: #fff; }
.menu-mobile .menu-cta a.btn-wa:hover { color: #fff; }

@media (min-width: 1024px) {
  .menu-mobile { display: none; }
}

/* Footer */
.site-footer {
  background: var(--surface-deep);
  color: var(--text-on-dark);
  padding: 56px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
}
.footer-col h4 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--text-on-dark);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col p, .footer-col a, .footer-col li {
  color: var(--text-on-dark-2);
  font-size: .94rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a:hover { color: var(--accent-on-dark); }
.footer-col .brand-mark { color: var(--accent-on-dark); background: rgba(184, 201, 179, .14); }
.footer-col .brand-name { color: var(--text-on-dark); }
.footer-col .brand-name em { color: var(--accent-on-dark); }
.footer-col .brand-tag { color: var(--text-on-dark-2); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: .84rem;
  color: var(--text-on-dark-2);
}
.footer-bottom button {
  background: none;
  border: 0;
  color: var(--accent-on-dark);
  font-family: var(--ff-ui);
  font-size: .84rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0;
}

/* FAB Appel mobile */
.fab-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(58, 74, 64, 0.35);
  z-index: var(--z-fab);
  opacity: 0;
  transform: translateY(20px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.fab-call.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-call svg { width: 24px; height: 24px; }
@media (min-width: 1024px) {
  .fab-call { display: none; }
}
