/* Header + nav + menu mobile + footer */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h-mobile);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand / logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.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-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-sub {
  display: block;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  margin-top: 2px;
}

/* Nav desktop */
.nav-desktop { display: none; }

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-desktop a:hover { color: var(--accent); }

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav-desktop a:hover::after { transform: scaleX(1); }

.header-cta { display: none; }

/* Burger */
.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);
}

.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.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 { top: 0; transform: rotate(45deg); }
.burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Menu mobile (ENFANT DIRECT du body - PIEGE PROD #1) */
.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 .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;
  justify-content: space-between;
  padding: 1rem 0.4rem;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  min-height: 56px;
}

.menu-mobile a:hover { color: var(--accent); }

/* Fix wa button menu mobile (cf reglages memory) */
.menu-mobile a.btn {
  justify-content: center;
  gap: 10px;
  padding: 1rem 1.4rem;
  min-height: 56px;
  border-bottom: 0;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-family: var(--ff-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.menu-mobile a.btn-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.menu-mobile a.btn-wa { color: #fff; background: var(--wa-green); border-color: var(--wa-green); }
.menu-mobile a.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Footer */
.site-footer {
  background: var(--accent-dark);
  color: #DCE5DF;
  padding: 56px 0 28px;
  margin-top: 0;
}

.site-footer .container { display: grid; gap: 32px; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,0.65); }

.footer-brand p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 36ch;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; color: rgba(255,255,255,0.78); }
.footer-col a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom a { color: rgba(255,255,255,0.78); text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }
