/* ===== HEADER & NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h-mobile);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  z-index: var(--z-header);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px color-mix(in srgb, var(--text) 8%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: var(--container);
  margin-inline: auto;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-picto {
  flex-shrink: 0;
  color: var(--accent);
}
.brand-name {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}
.brand-sub {
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  display: block;
}

/* Nav desktop */
.nav-desktop {
  display: none;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: 0.9rem;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-desktop a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* CTA header */
.header-cta {
  display: none;
  align-items: center;
  gap: 10px;
}

/* Burger — ENFANT DIRECT DU BODY (règle anti-bug menu) */
.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) + 50); /* > z-header ET z-menu */
  padding: 0;
}
.burger__lines {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.burger__lines span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.burger.is-open .burger__lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open .burger__lines span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open .burger__lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 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) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.menu-mobile a {
  display: flex;
  align-items: center;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.menu-mobile a:hover { color: var(--accent); text-decoration: none; }
.menu-mobile .btn {
  margin-top: 16px;
  font-size: 1rem;
  /* PIÈGE jouvet: forcer le centrage du btn WhatsApp */
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.6rem;
  min-height: 52px;
  border-bottom: 0;
}
.menu-mobile .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
/* couleur forcée en blanc sur boutons colorés dans menu */
.menu-mobile .btn-primary,
.menu-mobile .btn-wa { color: #fff; }

/* Footer — margin-top:0 (PIÈGE PROD #12) */
.site-footer {
  background: var(--accent-dark);
  color: var(--on-dark);
  padding: clamp(40px, 6vw, 72px) 0 28px;
  margin-top: 0;
}
.footer-inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-brand .brand-name,
.footer-brand .brand-sub { color: var(--on-dark); }
.footer-brand .brand-sub { opacity: 0.65; }
.footer-brand .brand-picto { color: color-mix(in srgb, var(--on-dark) 70%, transparent); }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.footer-col h4 {
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--on-dark) 55%, transparent);
  margin-bottom: 10px;
}
.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--on-dark) 80%, transparent);
  line-height: 1.7;
}
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--on-dark); text-decoration: underline; }

.footer-bottom {
  width: var(--container);
  margin-inline: auto;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--on-dark) 50%, transparent);
}
.footer-bottom a { color: color-mix(in srgb, var(--on-dark) 65%, transparent); }
.footer-bottom a:hover { color: var(--on-dark); }

/* FAB mobile */
.fab-call {
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 100px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 45%, transparent);
  text-decoration: none;
  white-space: nowrap;
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab-call:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 55%, transparent); text-decoration: none; color: #fff; }
.fab-call svg { flex-shrink: 0; }

@media (min-width: 720px) {
  .site-header { height: var(--header-h); }
  .burger { display: none; }
  .menu-mobile { display: none; }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .header-cta {
    display: flex;
  }
  .fab-call { display: none; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
