/* HEADER STICKY */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  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;
  z-index: var(--z-header);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.site-header.is-scrolled{
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.site-header__inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: var(--container);
  margin: 0 auto;
}

/* BRAND / LOGO (picto arbre paysagiste + nom Fraunces) */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark{
  width: 36px;
  height: 36px;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  border-radius: 50%;
  padding: 7px;
  color: var(--accent);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name{
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand-name strong{ font-weight: 600; }
.brand-name span.brand-sub{
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 3px;
  font-weight: 400;
}

/* NAV desktop */
.nav-desktop { display: none; }
@media (min-width: 768px){
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 32px);
  }
  .nav-desktop a {
    font-family: var(--ff-ui);
    font-size: 0.92rem;
    color: var(--text);
    transition: color var(--t-fast);
    padding: 6px 2px;
    position: relative;
  }
  .nav-desktop a::after{
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-mid);
  }
  .nav-desktop a:hover { color: var(--accent); }
  .nav-desktop a:hover::after { transform: scaleX(1); }
}

/* HEADER : sur desktop, hauteur plus grande */
@media (min-width: 768px){
  .site-header{ height: var(--header-h); }
}

/* BURGER (mobile, fixed, droite — regle anti-bug position) */
.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: 1101; /* > menu-mobile (1000) et > header */
}
.burger span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background-color var(--t-fast);
}
.burger span::before, .burger span::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--text);
  transition: transform var(--t-fast);
}
.burger span::before{ top: -7px; }
.burger span::after{ top: 7px; }
.burger.is-open span{ background: transparent; }
.burger.is-open span::before{ transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after{ transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px){
  .burger { display: none; }
}

/* MENU MOBILE (enfant direct du body, fixed, 100dvh, opaque, z < 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) + 28px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  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: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.01em;
}
.menu-mobile a:last-child{ border-bottom: 0; }
.menu-mobile a.btn-wa{
  margin-top: 24px;
  background: var(--wa-green);
  color: #fff;
  border: 0;
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-family: var(--ff-ui);
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0;
}
@media (min-width: 768px){
  .menu-mobile { display: none; }
}

/* FOOTER */
.site-footer{
  background: #1F1B16;
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 24px;
  margin-top: 0;
  font-family: var(--ff-ui);
  font-size: 0.92rem;
}
.site-footer .container { padding: 0 24px; }
.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 1fr;
    gap: 40px;
  }
}
.footer-col h4{
  font-family: var(--ff-display);
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff;
}
.footer-brand .brand-mark{
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.footer-brand .brand-name{ color: #fff; }
.footer-brand .brand-name .brand-sub{ color: rgba(255,255,255,0.55); }

.footer-col p { line-height: 1.65; }
.footer-col a{
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--t-fast);
}
.footer-col a:hover{ color: #fff; }
.footer-col ul li{
  padding: 5px 0;
}
.footer-bottom{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
@media (min-width: 768px){
  .footer-bottom{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-bottom button{
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom button:hover{ color: #fff; }

/* FAB MOBILE (bouton appel flottant) */
.fab-mobile{
  position: fixed;
  bottom: 18px; right: 16px;
  background: var(--accent);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -8px rgba(46, 91, 62, 0.55);
  z-index: 900;
  transition: transform var(--t-fast);
}
.fab-mobile:active{ transform: scale(0.94); }
.fab-mobile svg{ width: 22px; height: 22px; color: #fff; }
@media (min-width: 768px){
  .fab-mobile { display: none; }
}

/* MAIN spacing : compense le header fixed */
main { padding-top: var(--header-h-mobile); }
@media (min-width: 768px){
  main { padding-top: var(--header-h); }
}
