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

/* ==== Header ==== */
.site-header {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  height: var(--header-h-mobile);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.has-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
@media (min-width:768px) { .site-header { height: var(--header-h); } }

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

/* Brand : picto SVG metier + nom display (jamais initiales-carre) */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  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) 14%, var(--bg));
  border-radius: 50%;
  padding: 7px;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.brand-name em { font-style: italic; color: var(--accent); font-weight: 500; }
.brand-sub {
  display: none;
  font-family: var(--ff-ui);
  font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-mute);
  margin-top: 3px;
}
@media (min-width: 920px) {
  .brand-stack { display: flex; flex-direction: column; }
  .brand-sub { display: inline-block; }
}

/* Nav desktop */
.nav-desktop { display: none; }
@media (min-width: 920px) {
  .nav-desktop {
    display: flex; align-items: center; gap: 28px;
  }
  .nav-desktop a {
    color: var(--text);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
  }
  .nav-desktop a::after {
    content:""; position:absolute; left:0; right:0; bottom:-2px;
    height: 1.5px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
  }
  .nav-desktop a:hover::after,
  .nav-desktop a:focus-visible::after { transform: scaleX(1); }
}

/* CTA header desktop only — PIEGE PROD #13 : jamais sur mobile */
.header-cta {
  display: none;
}
@media (min-width: 920px) {
  .header-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .25s ease, transform .2s ease;
  }
  .header-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
  .header-cta svg { width: 14px; height: 14px; }
}

/* ==== Burger : enfant direct du body, top-RIGHT fixed ==== */
.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; padding: 0;
  cursor: pointer;
  z-index: var(--z-burger);
}
.burger span,
.burger span::before,
.burger span::after {
  content:""; display:block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.burger span { position: relative; }
.burger span::before { position:absolute; left:0; top:-7px; width:24px; }
.burger span::after  { position:absolute; left:0; top: 7px; width:24px; }
.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); }
@media (min-width: 920px) { .burger { display: none; } }

/* ==== 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: .9rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* limite au panneau, pas sur body/html */
  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; /* utile pour liens nav */
  gap: 12px;
  padding: .95rem .25rem;
  font-family: var(--ff-display);
  font-size: 1.45rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.menu-mobile a::after {
  content: "→";
  color: var(--accent);
  font-size: 1.1rem;
  font-family: var(--ff-ui);
}
/* Bouton WhatsApp dans menu-mobile : annule justify-content space-between (PATTERN jouvet-paysage) */
.menu-mobile a.btn-wa,
.menu-mobile a.btn-primary {
  justify-content: center;
  gap: 10px;
  padding: .95rem 1.5rem;
  min-height: 52px;
  border-bottom: 0;
  font-family: var(--ff-ui);
  font-size: 1rem;
  margin-top: 12px;
  color: #fff; /* preventif piege #15 */
}
.menu-mobile a.btn-wa::after,
.menu-mobile a.btn-primary::after { content: none; }
.menu-mobile a.btn-wa svg,
.menu-mobile a.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.menu-mobile-foot {
  margin-top: auto;
  padding-top: 24px;
  font-size: .85rem;
  color: var(--text-mute);
}
.menu-mobile-foot a { display: inline; padding: 0; border: 0; font-family: var(--ff-ui); font-size: .92rem; color: var(--accent-deep); }
.menu-mobile-foot a::after { content: none; }

@media (min-width: 920px) {
  .menu-mobile { display: none; }
}

/* ==== Footer ==== */
.site-footer {
  background: var(--surface-deep);
  color: var(--text-inverse);
  padding: 64px 0 24px;
  margin-top: 0; /* PIEGE PROD #12 : footer colle au contenu */
}
.site-footer :where(h1,h2,h3,h4,h5,h6,p,li,a,span,strong) { color: var(--text-inverse); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (min-width:768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}
.footer-brand .brand { color: var(--text-inverse); margin-bottom: 12px; }
.footer-brand .brand-mark {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-deep));
}
.footer-brand .brand-name { color: var(--text-inverse); }
.footer-brand p { font-size: .95rem; opacity: .82; max-width: 36ch; }
.footer-col h4 {
  font-family: var(--ff-ui); text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; color: var(--accent-soft); font-weight: 600; margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: .96rem; opacity: .92; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-bot {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--text-inverse) 14%, transparent);
  font-size: .82rem;
  opacity: .78;
}
.footer-bot a { text-decoration: underline; text-underline-offset: 3px; }

/* FAB mobile - bouton Appeler */
.fab-call {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: var(--z-fab);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(46,40,32,.22);
  transition: transform .2s ease, background .25s ease;
}
.fab-call:hover { background: var(--accent-deep); transform: translateY(-2px); }
.fab-call svg { width: 22px; height: 22px; }
@media (min-width: 920px) { .fab-call { display: none; } }
