/* Header sticky + burger + menu mobile + footer + FAB */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-quick), background var(--t-quick);
}

.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;
  gap: 16px;
  height: var(--header-h-mobile);
}
@media (min-width: 768px) { .header-inner { height: var(--header-h); } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border-radius: 50%;
  padding: 8px;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1;
}
.brand-name em { font-style: italic; color: var(--accent); font-weight: 400; }
.brand-tag {
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1;
}
@media (max-width: 560px) { .brand-tag { display: none; } }

/* Nav desktop */
.nav-desktop { display: none; align-items: center; gap: 28px; }
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-quick);
}
.nav-desktop a:hover::after { transform: scaleX(1); }
@media (min-width: 1024px) { .nav-desktop { display: inline-flex; } }

.header-cta { display: none; }
@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--r-md);
    font-family: var(--ff-ui);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--t-quick);
  }
  .header-cta:hover { background: var(--accent-2); }
  .header-cta svg { width: 16px; height: 16px; }
}

/* Burger (fixed, top right, child of body : PIEGE PROD #8) */
.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: 1px;
  transition: transform var(--t-soft), opacity var(--t-quick), background var(--t-quick);
}
.burger span { position: relative; }
.burger span::before { position: absolute; left: 0; top: -7px; }
.burger span::after { position: absolute; left: 0; top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); background: #fff; }
.burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); background: #fff; }
@media (min-width: 1024px) { .burger { display: none; } }

/* Menu mobile (child of body : PIEGE PROD #1, height 100dvh, opaque, z<header) */
.menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--surface-deep);
  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;
}

/* Link DIRECT child of menu-mobile only (selecteur > a : ne pas heriter sur les btn cta) */
.menu-mobile > a {
  display: block;
  padding: 16px 12px;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
  text-decoration: none;
  transition: color var(--t-quick);
}
.menu-mobile > a:hover, .menu-mobile > a:focus { color: var(--accent-on-dark); }
.menu-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
/* PIEGE PROD #15 : forcer la couleur des btn cta dans menu mobile fonce */
.menu-mobile .menu-cta .btn-primary,
.menu-mobile .menu-cta .btn-wa { color: #fff; }
@media (min-width: 1024px) {
  .menu-mobile { display: none; }
}

/* Footer (margin-top:0 PIEGE PROD #12) */
.site-footer {
  background: var(--surface-deep);
  color: var(--text-on-dark);
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
}
.footer-brand .brand-name { color: var(--text-on-dark); }
.footer-brand .brand-name em { color: var(--accent-on-dark); }
.footer-brand .brand-mark {
  background: color-mix(in srgb, var(--accent-on-dark) 18%, transparent);
  color: var(--accent-on-dark);
}
.footer-brand p {
  margin-top: 14px;
  color: var(--text-on-dark-2);
  font-size: 0.95rem;
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-on-dark);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a,
.footer-col li {
  color: var(--text-on-dark-2);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--accent-on-dark); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-on-dark-2);
  font-size: 0.85rem;
}
.footer-bottom button {
  color: var(--text-on-dark-2);
  text-decoration: underline;
  font-size: 0.85rem;
}
.footer-bottom button:hover { color: var(--accent-on-dark); }

/* FAB mobile (bouton flottant Appeler) */
.fab-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(30, 38, 34, 0.32);
  z-index: var(--z-fab);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--t-soft), transform var(--t-soft);
  text-decoration: none;
}
.fab-call.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-call svg { width: 24px; height: 24px; }
@media (min-width: 1024px) { .fab-call { display: none; } }
