/* Header sticky */
.site-header{
  position: sticky; top: 0;
  z-index: var(--z-header);
  background: rgba(242, 238, 227, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled{
  border-bottom-color: var(--border);
  box-shadow: 0 4px 16px -10px rgba(44,40,32,0.18);
}
.header-inner{
  height: var(--header-h-mobile);
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px){
  .header-inner{ height: var(--header-h); padding: 0 32px; }
}

/* Brand */
.brand{
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
}
.brand-mark{
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent);
  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: 500;
  font-size: 1.18rem;
  letter-spacing: -0.005em;
}
.brand-tag{
  font-family: var(--ff-ui);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 2px;
  display: none;
}
@media (min-width: 1024px){ .brand-tag{ display: inline-block; } }

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

/* Header CTA (desktop only) */
.header-cta{
  display: none;
}
@media (min-width: 900px){
  .header-cta{
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent);
    color: #FBF7EE;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: var(--ff-ui);
    font-size: 0.92rem;
    font-weight: 500;
    transition: transform 0.18s ease, background 0.18s ease;
  }
  .header-cta:hover{ background: #876A35; transform: translateY(-1px); }
  .header-cta svg{ width: 16px; height: 16px; }
}

/* Burger (mobile only) - position fixed top right, PIEGE PROD #14 z > header */
.burger{
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 16px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  z-index: var(--z-burger);
}
.burger-bar{
  width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}
.burger-bar::before,
.burger-bar::after{
  content:""; position: absolute; left: 0;
  width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}
.burger-bar::before{ top: -7px; }
.burger-bar::after{ top: 7px; }
.burger.is-open .burger-bar{ background: transparent; }
.burger.is-open .burger-bar::before{ top: 0; transform: rotate(45deg); }
.burger.is-open .burger-bar::after{ top: 0; transform: rotate(-45deg); }
@media (min-width: 768px){ .burger{ display: none; } }

/* Menu mobile - PIEGE PROD #1 : enfant direct de body, 100dvh, opaque, z < burger mais > header */
.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) + 32px) 28px 40px;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}
.menu-mobile.is-open{
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.menu-mobile a{
  font-family: var(--ff-display);
  font-size: 1.6rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.menu-mobile a:last-of-type{ border-bottom: 0; }
.menu-mobile-ctas{
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.menu-mobile-ctas a{
  font-size: 1rem;
  padding: 14px 18px;
  border-bottom: 0;
  border-radius: 999px;
  text-align: center;
  font-family: var(--ff-ui);
  font-weight: 500;
}
/* PIEGE PROD #10 : override couleur boutons menu mobile */
.menu-mobile-ctas a.btn-primary{
  background: var(--accent);
  color: #FBF7EE !important;
}
.menu-mobile-ctas a.btn-wa{
  background: var(--wa-green);
  color: #FFFFFF !important;
}
@media (min-width: 768px){ .menu-mobile{ display: none; } }

/* Footer */
.site-footer{
  background: var(--surface-dark);
  color: rgba(248, 239, 218, 0.85);
  padding: 56px 0 24px;
  margin-top: 0; /* PIEGE PROD #12 : footer margin-top 0 */
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px){
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
}
.footer-brand .brand-name{ color: #F8EFDA; }
.footer-brand p{ margin-top: 14px; max-width: 32ch; color: rgba(248,239,218,0.72); font-size: 0.92rem; }
.footer-col h4{
  color: #F8EFDA;
  font-family: var(--ff-display);
  font-size: 1.08rem;
  margin-bottom: 14px;
}
.footer-col li{ margin-bottom: 8px; font-size: 0.93rem; }
.footer-col a{ color: rgba(248,239,218,0.78); transition: color 0.18s ease; }
.footer-col a:hover{ color: var(--accent-on-dark); }
.footer-icon{ display: inline-flex; align-items: center; gap: 8px; }
.footer-icon svg{ width: 14px; height: 14px; flex-shrink: 0; }
.footer-bottom{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(248,239,218,0.12);
  display: flex; flex-direction: column; gap: 10px;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(248,239,218,0.6);
}
@media (min-width: 768px){
  .footer-bottom{ flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom button{ color: rgba(248,239,218,0.68); text-decoration: underline; text-underline-offset: 4px; font-size: 0.82rem; }

/* FAB (mobile only) */
.fab{
  position: fixed;
  right: 16px; bottom: 16px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #FBF7EE;
  display: grid; place-items: center;
  z-index: var(--z-fab);
  box-shadow: 0 12px 24px -8px rgba(44,40,32,0.32);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fab.is-visible{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab svg{ width: 22px; height: 22px; }
@media (min-width: 768px){ .fab{ display: none; } }
