/* Header sticky */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:var(--z-header);
  background:rgba(243,239,231,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:1px solid transparent;
  height:var(--header-h-mobile);
  display:flex;align-items:center;
  transition:background .25s ease, border-color .25s ease;
}
.site-header.scrolled{
  background:rgba(243,239,231,0.98);
  border-bottom-color:var(--border);
}
@media (min-width:768px){.site-header{height:var(--header-h);}}

.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}
@media (min-width:768px){.header-inner{padding:0 32px;}}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
}
.brand-mark{
  width:34px;height:34px;
  color:var(--accent);
  display:grid;place-items:center;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border-radius:50%;
  padding:6px;
  flex-shrink:0;
}
.brand-mark svg{width:100%;height:100%;display:block;}
.brand-text{
  display:flex;flex-direction:column;line-height:1.05;
}
.brand-name{
  font-family:var(--ff-display);
  font-weight:600;
  font-size:1.05rem;
  color:var(--text);
  letter-spacing:.01em;
}
.brand-tag{
  font-family:var(--ff-ui);
  font-size:.66rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--accent);
  margin-top:1px;
}
@media (min-width:768px){.brand-name{font-size:1.18rem;}}

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

.header-cta{display:none;}
@media (min-width:900px){
  .header-cta{
    display:inline-flex;align-items:center;gap:8px;
    background:var(--accent);
    color:#fff;
    padding:10px 18px;
    border-radius:999px;
    font-family:var(--ff-ui);
    font-weight:600;
    font-size:.92rem;
    text-decoration:none;
    transition:background .2s ease, transform .2s ease;
  }
  .header-cta:hover{background:var(--accent-2);color:#fff;transform:translateY(-1px);}
  .header-cta svg{width:16px;height:16px;}
}

/* Burger (piege #8 : enfant body, fixed top right) */
.burger{
  position:fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right:14px;
  width:44px;height:44px;
  display:grid;place-items:center;
  background:transparent;border:0;cursor:pointer;
  z-index: calc(var(--z-header) + 10);
}
.burger span,
.burger span::before,
.burger span::after{
  content:"";
  display:block;
  width:22px;height:2px;
  background:var(--text);
  border-radius:2px;
  position:absolute;
  transition: transform .3s ease, top .3s ease, opacity .2s ease, background .2s ease;
}
.burger span{position:relative;}
.burger span::before{top:-7px;}
.burger span::after{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);}
@media (min-width:900px){.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) 28px 40px;
  display:flex;flex-direction:column;
  gap:6px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  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.55rem;
  color:var(--text);
  padding:14px 0;
  border-bottom:1px solid var(--border-soft);
  font-weight:500;
}
.menu-mobile a:last-of-type{border-bottom:none;}
.menu-mobile a.btn{
  margin-top:14px;
  width:100%;
  justify-content:center;
  border-bottom:0;
  font-family:var(--ff-ui);
  font-size:1rem;
  padding:14px 22px;
}
.menu-mobile a.btn-primary{color:#fff;background:var(--accent);}
.menu-mobile a.btn-primary:hover{background:var(--accent-2);color:#fff;}
.menu-mobile a.btn-wa{color:#fff;background:var(--wa-green);}
.menu-mobile a.btn-wa:hover{background:var(--wa-green-d);color:#fff;}
@media (min-width:900px){.menu-mobile{display:none;}}

/* Footer */
.site-footer{
  background:var(--surface-dark);
  color:#E5DFD2;
  padding:48px 0 30px;
  margin-top:0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:36px;
  padding-bottom:32px;
  border-bottom:1px solid rgba(255,255,255,0.10);
}
@media (min-width:768px){.footer-grid{grid-template-columns:1.3fr 1fr 1fr;gap:48px;}}
.site-footer h4{
  color:#fff;
  font-family:var(--ff-display);
  font-size:1.1rem;
  margin-bottom:14px;
  font-weight:500;
}
.site-footer a{color:#E5DFD2;}
.site-footer a:hover{color:#fff;}
.site-footer .brand-name{color:#fff;}
.site-footer .brand-tag{color:#B6CFC2;}
.site-footer .brand-mark{
  background:rgba(255,255,255,0.10);
  color:#fff;
}
.site-footer .footer-about{
  font-size:.96rem;
  color:#CBC4B3;
  margin-top:14px;
  max-width:36ch;
}
.site-footer ul li{margin-bottom:8px;}
.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-top:24px;
  font-size:.85rem;
  color:#B6CFC2;
}
.footer-bottom a{color:#B6CFC2;}
.footer-bottom a:hover{color:#fff;text-decoration:underline;}

/* FAB mobile */
.fab-call{
  position:fixed;
  bottom:16px;right:16px;
  z-index:var(--z-fab);
  background:var(--accent);
  color:#fff;
  border-radius:999px;
  padding:14px 20px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--ff-ui);
  font-weight:600;
  font-size:.95rem;
  text-decoration:none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition:transform .2s ease, background .2s ease;
}
.fab-call:hover{background:var(--accent-2);color:#fff;transform:translateY(-2px);}
.fab-call svg{width:18px;height:18px;}
@media (min-width:900px){.fab-call{display:none;}}
