/* HEADER STICKY */
.site-header{
  position:sticky;top:0;
  z-index:var(--z-header);
  height:var(--header-h-mobile);
  background:color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color .2s ease, background .2s ease;
}
.site-header.is-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;
  max-width:var(--container);margin:0 auto;padding:0 20px;
  gap:16px;
}
@media (min-width:768px){
  .site-header{height:var(--header-h)}
  .header-inner{padding:0 32px}
}

/* BRAND */
.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:var(--text)}
.brand:hover{text-decoration:none}
.brand-mark{
  width:38px;height:38px;
  background:color-mix(in srgb, var(--accent) 14%, var(--bg));
  color:var(--accent);
  border-radius:50%;
  display:grid;place-items:center;
  flex-shrink:0;
}
.brand-mark svg{width:22px;height:22px}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-name{font-family:var(--ff-display);font-weight:600;font-size:1.1rem;color:var(--text)}
.brand-tag{
  font-family:var(--ff-ui);
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:0.62rem;
  color:var(--text-mute);
  margin-top:2px;
}

/* NAV DESKTOP */
.nav-desktop{display:none;align-items:center;gap:28px}
.nav-desktop a{
  font-family:var(--ff-ui);
  font-size:0.92rem;
  color:var(--text);
  font-weight:500;
}
.nav-desktop a:hover{color:var(--accent);text-decoration:none}
.header-cta{display:none}

@media (min-width:980px){
  .nav-desktop{display:flex}
  .header-cta{display:inline-flex;align-items:center;gap:8px;
    background:var(--accent);color:#fff;
    padding:10px 16px;border-radius:999px;
    font-family:var(--ff-ui);font-weight:500;font-size:0.9rem;
  }
  .header-cta:hover{background:var(--primary);color:#fff;text-decoration:none}
}

/* BURGER (fixed, top-right, > tous z-index) */
.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) + 10);  /* > header, indispensable */
}
.burger span,
.burger span::before,
.burger span::after{
  content:"";display:block;
  width:22px;height:2px;
  background:var(--text);
  border-radius:2px;
  transition:transform .3s ease, opacity .2s ease, top .3s ease, bottom .3s ease;
}
.burger span{position:relative}
.burger span::before{position:absolute;top:-7px}
.burger span::after{position:absolute;bottom:-7px;top:auto}
.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:980px){.burger{display:none}}

/* MENU MOBILE (enfant direct du body, fixed, 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) + 28px) 24px 40px;
  display:flex;flex-direction:column;gap:0.5rem;
  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{
  font-family:var(--ff-display);
  font-size:1.5rem;
  color:var(--text);
  padding:14px 0;
  border-bottom:1px solid var(--border);
  text-decoration:none;
}
.menu-mobile a:last-of-type{border-bottom:0}
.menu-mobile a.btn-primary{
  margin-top:24px;
  background:var(--accent);color:#fff;
  padding:16px 22px;border-radius:999px;
  font-family:var(--ff-ui);font-size:1rem;
  text-align:center;border-bottom:0;
}
.menu-mobile a.btn-wa{
  margin-top:10px;
  background:var(--wa-green);color:#fff;
  padding:16px 22px;border-radius:999px;
  font-family:var(--ff-ui);font-size:1rem;
  text-align:center;border-bottom:0;
}
@media (min-width:980px){.menu-mobile{display:none}}

/* FAB Appeler mobile */
.fab-call{
  position:fixed;
  right:16px;bottom:16px;
  width:56px;height:56px;border-radius:50%;
  background:var(--accent);color:#fff;
  display:grid;place-items:center;
  box-shadow:0 8px 24px rgba(46,40,32,0.20);
  z-index:var(--z-fab);
  text-decoration:none;
  opacity:0;transform:translateY(20px);pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
}
.fab-call.is-visible{opacity:1;transform:none;pointer-events:auto}
.fab-call:hover{background:var(--primary);color:#fff;text-decoration:none}
.fab-call svg{width:24px;height:24px}
@media (min-width:980px){.fab-call{display:none}}

/* FOOTER */
.site-footer{
  background:var(--surface-dark);
  color:#fff;
  padding:48px 0 24px;
  margin-top:0;
}
.site-footer,
.site-footer :where(h1,h2,h3,h4,p,li,span,a,strong){color:#fff}
.site-footer p{color:rgba(255,255,255,0.72)}
.footer-grid{
  display:grid;grid-template-columns:1fr;gap:32px;
  max-width:var(--container);margin:0 auto;padding:0 20px;
}
@media (min-width:768px){
  .footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr;padding:0 32px}
}
.footer-brand .brand-name{color:#fff}
.footer-brand .brand-tag{color:rgba(255,255,255,0.55)}
.footer-brand .brand-mark{background:rgba(255,255,255,0.10);color:var(--accent-on-dark)}
.footer-brand p{margin-top:16px;max-width:36ch;font-size:0.95rem}
.footer-col h4{
  font-family:var(--ff-ui);
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:0.74rem;
  font-weight:600;
  color:rgba(255,255,255,0.55);
  margin-bottom:14px;
}
.footer-col ul li{margin-bottom:8px;font-size:0.95rem}
.footer-col a{
  color:rgba(255,255,255,0.86);
  text-decoration:none;
  transition:color .2s;
}
.footer-col a:hover{color:var(--accent-on-dark);text-decoration:none}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.10);
  margin-top:36px;padding:20px 20px 0;
  max-width:var(--container);
  margin-left:auto;margin-right:auto;
  display:flex;flex-direction:column;gap:8px;
  justify-content:space-between;
  font-size:0.84rem;
}
.footer-bottom a{color:rgba(255,255,255,0.55)}
.footer-bottom a:hover{color:#fff;text-decoration:underline}
@media (min-width:768px){
  .footer-bottom{flex-direction:row;padding:20px 32px 0}
}
