/* Header sticky */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-mobile);
  gap: 16px;
}
@media (min-width: 768px) {
  .header-inner { height: var(--header-h); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--ff-display);
}
.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}
.brand-tag {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: 2px;
}

.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);
    transition: color .2s;
    position: relative;
  }
  .nav-desktop a:hover { color: var(--accent); }
  .nav-desktop .btn-header {
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 500;
  }
  .nav-desktop .btn-header:hover { background: var(--accent-2); color: #fff; }
}

/* Burger : enfant direct du body. 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: 1101;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  position: relative;
}
.burger span::before { position: absolute; top: -7px; left: 0; }
.burger span::after { position: absolute; top: 7px; left: 0; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) { .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) 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.6rem;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.menu-mobile a:last-child {
  border-bottom: 0;
  margin-top: 18px;
  background: var(--wa-green);
  color: #fff;
  border-radius: 999px;
  text-align: center;
  font-family: var(--ff-ui);
  font-size: 1rem;
  padding: 16px;
  font-weight: 500;
}
@media (min-width: 768px) {
  .menu-mobile { display: none; }
}

/* Footer */
.site-footer {
  background: var(--accent);
  color: #fff;
  padding: 56px 0 24px;
  margin-top: 0;
}
.site-footer * { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}
.footer-brand .brand-name { color: #fff; font-size: 1.4rem; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-tag { color: rgba(255,255,255,.7); }
.footer-brand p { color: rgba(255,255,255,.75); margin-top: 14px; max-width: 36ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
}
.footer-col ul li { margin-bottom: 10px; font-size: 0.95rem; color: rgba(255,255,255,.85); }
.footer-col ul li a { transition: opacity .2s; }
.footer-col ul li a:hover { opacity: 0.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; color: rgba(255,255,255,.75); }

/* FAB mobile */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform .25s ease;
}
.fab a:hover { transform: scale(1.06); }
.fab .fab-call { background: var(--accent); color: #fff; }
.fab .fab-wa { background: var(--wa-green); color: #fff; }
.fab svg { width: 26px; height: 26px; }
@media (min-width: 768px) { .fab { display: none; } }
