/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
}
.header-inner {
  height: var(--header-h-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
@media (min-width: 768px) {
  .header-inner { height: var(--header-h); }
}

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

.header-cta {
  display: none;
}
@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-md);
    font-family: var(--ff-ui);
    font-size: 0.88rem;
    font-weight: 600;
  }
  .header-cta:hover { background: var(--surface-deep); }
  .header-cta svg { width: 16px; height: 16px; }
}

/* Burger (fixed top right) */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  z-index: var(--z-burger);
  background: transparent;
  border: 0;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, top .25s ease, opacity .2s ease;
}
.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: 768px) {
  .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) 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  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.55rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.menu-mobile a.btn-wa,
.menu-mobile a.btn-primary {
  font-family: var(--ff-ui);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border: 0;
  margin-top: 18px;
  border-radius: var(--r-md);
  padding: 14px 18px;
  text-align: center;
}
.menu-mobile a.btn-wa { background: var(--wa-green); }
.menu-mobile a.btn-primary { background: var(--accent); }
@media (min-width: 768px) {
  .menu-mobile { display: none; }
}

/* Footer */
.site-footer {
  background: var(--surface-deep);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 24px;
  margin-top: 0;
}
.site-footer .container > .foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .site-footer .container > .foot-top {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
  }
}
.foot-block h4 {
  font-family: var(--ff-display);
  font-size: 1.06rem;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-block p, .foot-block li, .foot-block a { color: rgba(255,255,255,0.78); font-size: 0.94rem; }
.foot-block a:hover { color: #fff; }
.foot-block li { padding: 4px 0; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand .brand-mark { background: rgba(255,255,255,0.10); color: var(--accent-on-dark); }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { max-width: 38ch; }

.foot-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
}
@media (min-width: 600px) {
  .foot-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.foot-bottom a { color: rgba(255,255,255,0.72); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom a:hover { color: #fff; }

/* FAB mobile */
.fab-call {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: var(--z-burger);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(20,18,12,0.22);
}
.fab-call svg { width: 24px; height: 24px; }
@media (min-width: 768px) { .fab-call { display: none; } }
