/* ============== HEADER (sticky) ============== */
.site-header{
  position: sticky; top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-scrolled{ border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 96%, transparent); }
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  height: var(--header-h-mobile);
  padding: 0 20px;
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 768px){
  .site-header__inner{ height: var(--header-h); padding: 0 32px; }
}

/* Brand */
.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;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border-radius: 50%; padding: 6px;
  color: var(--accent); flex-shrink: 0;
}
.brand-mark svg{ width: 100%; height: 100%; display: block; }
.brand-name{ font-family: var(--ff-display); font-weight: 600; font-size: 1.1rem; line-height: 1; }
.brand-tag{ display:block; font-family: var(--ff-ui); font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--text-mute); margin-top: 3px; }

/* Nav desktop */
.nav-desktop{ display: none; }
@media (min-width: 900px){
  .nav-desktop{ display: flex; align-items: center; gap: 26px; }
  .nav-desktop a{ font-family: var(--ff-ui); font-size: .85rem; font-weight: 500; color: var(--text); text-decoration: none; letter-spacing: .04em; }
  .nav-desktop a:hover{ color: var(--accent); }
}

/* Header CTA : PIEGE PROD recurrent. Cache sur mobile, visible desktop. */
.header__cta{ display: none !important; }
@media (min-width: 900px){
  .header__cta{ display: inline-flex !important; }
}

/* Burger : enfant DIRECT du body (regle MENU MOBILE #1), position fixed top-right */
.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: var(--z-burger);
}
.burger span{
  display: block; width: 22px; height: 2px; background: var(--text);
  position: relative; border-radius: 2px;
  transition: transform .25s var(--ease), background .25s;
}
.burger span::before, .burger span::after{
  content:""; position:absolute; left:0; right:0; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), top .25s, bottom .25s;
}
.burger span::before{ top: -7px; }
.burger span::after{ bottom: -7px; }
.burger.is-open span{ background: transparent; }
.burger.is-open span::before{ top: 0; transform: rotate(45deg); }
.burger.is-open span::after{ bottom: 0; transform: rotate(-45deg); }
@media (min-width: 900px){ .burger{ display: none; } }

/* ============== MENU MOBILE ============== */
/* Enfant direct du body, fixed sur viewport, opaque, 100dvh */
.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: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu-mobile.is-open{
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.menu-mobile a:not(.btn){
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.menu-mobile a:not(.btn):hover{ color: var(--accent); }
.menu-mobile .btn{ margin-top: 12px; justify-content: center; }
.menu-mobile .btn.btn-primary, .menu-mobile .btn.btn-wa{ color: #fff !important; }
@media (min-width: 900px){ .menu-mobile{ display: none; } }

/* ============== FOOTER ============== */
.site-footer{
  background: var(--primary);
  color: #E5EBE8;
  padding: clamp(40px, 6vw, 64px) 0 24px;
  margin-top: 0;
}
.site-footer .container{ max-width: var(--container); }
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h4{
  font-family: var(--ff-display); font-size: .9rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent-on-dark); margin-bottom: 16px; font-weight: 600;
}
.footer-col p, .footer-col li, .footer-col a{ color: #BCC9C4; font-size: .92rem; line-height: 1.65; }
.footer-col a{ text-decoration: none; }
.footer-col a:hover{ color: #fff; }
.footer-col ul{ list-style: none; padding: 0; margin: 0; }
.footer-col li{ margin-bottom: 8px; }
.footer-brand .brand-name{ color: #fff; }
.footer-brand .brand-mark{ background: rgba(158, 199, 188, .15); color: var(--accent-on-dark); }
.footer-brand .brand-tag{ color: var(--accent-on-dark); }
.footer-desc{ margin-top: 16px; max-width: 32ch; }
.footer-social{ display: flex; gap: 12px; margin-top: 16px; }
.footer-social a{
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border-radius: 50%;
  transition: background .2s;
}
.footer-social a:hover{ background: rgba(158, 199, 188, .2); }
.footer-social svg{ width: 18px; height: 18px; color: #fff; }
.footer-bottom{
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px; font-size: .82rem; color: #8FA09A;
}
.footer-bottom a{ color: #BCC9C4; }
.footer-bottom a:hover{ color: #fff; }

/* ============== FAB (Floating Action Button) ============== */
.fab-call{
  position: fixed; right: 16px; bottom: 16px;
  z-index: var(--z-fab);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: var(--accent); color: #fff;
  border-radius: 30px;
  font-family: var(--ff-ui); font-weight: 600; font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 91, 78, .35);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.fab-call.is-visible{ opacity: 1; transform: none; pointer-events: auto; }
.fab-call svg{ width: 18px; height: 18px; }
@media (min-width: 900px){ .fab-call{ display: none; } }
