/* ===== LAYOUT — Header, Nav, Menu mobile, Footer ===== */

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
.site-header.has-scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,.06);
}

/* Sur le hero immersif : texte blanc quand non-scrollé */
.site-header:not(.has-scrolled) .brand-name,
.site-header:not(.has-scrolled) .brand-sub,
.site-header:not(.has-scrolled) .nav-link,
.site-header:not(.has-scrolled) .brand-picto {
  color: rgba(255,255,255,0.95);
}
.site-header:not(.has-scrolled) .btn-header-call {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

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

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-picto {
  color: var(--accent);
  flex-shrink: 0;
  transition: color .3s;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  transition: color .3s;
}
.brand-sub {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  transition: color .3s;
}

/* Nav desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-link:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }

.btn-header-call {
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  padding: 7px 18px;
  text-decoration: none;
  transition: background .2s, color .2s;
  margin-left: 8px;
  white-space: nowrap;
}
.btn-header-call:hover { background: var(--accent); color: #fff; }

/* ——— Burger (enfant direct du body, JAMAIS dans le header) ——— */
/* PIÈGE PROD #8 : burger doit être position:fixed top+right, z-index > header */
.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); /* 1150 > header 1100 */
  padding: 0;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .3s, opacity .3s, width .3s;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }

.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: rotate(45deg) translate(5px, 5px); }
.burger.is-open span::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* PIÈGE PROD #13 : masquer le burger sur desktop + masquer btn-header-call sur mobile via responsive */

/* ——— Menu mobile (enfant direct du body, JAMAIS dans le header) ——— */
.menu-mobile {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100dvh; /* dvh, jamais vh */
  background: var(--bg); /* OPAQUE */
  z-index: var(--z-menu); /* 1000 < burger 1150 */
  padding: calc(var(--header-h-mobile) + 32px) 28px 48px;
  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;
}
.menu-mobile a {
  display: flex;
  align-items: center;
  font-family: var(--ff-ui);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color .2s;
}
.menu-mobile a:hover { color: var(--accent); }
.menu-mobile a:last-of-type { border-bottom: 0; }

/* PIÈGE jouvet-paysage : btn WhatsApp dans menu-mobile */
.menu-mobile a.btn,
.menu-mobile a.btn-wa,
.menu-mobile a.btn-primary {
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.6rem;
  min-height: 52px;
  border-bottom: 0;
  border-radius: 50px;
  margin-top: 12px;
  color: #fff !important; /* PIÈGE PROD #15 : hériage forçage couleur */
}
.menu-mobile a.btn-wa { background: var(--wa-green); color: #fff; }
.menu-mobile a.btn-wa svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ——— Footer ——— */
.site-footer {
  background: var(--accent-deep);
  color: rgba(255,255,255,0.9);
  padding: 56px 0 32px;
  /* PIÈGE PROD #12 : margin-top: 0 */
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px 48px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-name {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.footer-col p, .footer-col li, .footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.footer-ml-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
}
.footer-ml-link:hover { color: rgba(255,255,255,0.75); }

/* ——— FAB Call Mobile ——— */
.fab-call {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
}
.fab-call:hover { transform: scale(1.07); box-shadow: 0 6px 20px rgba(0,0,0,0.3); color: #fff; }
.fab-call svg { width: 24px; height: 24px; }
