/* layout.css — header sticky + nav + menu mobile + footer + texture grille fine */

/* ----------- texture globale grille fine (TEX-4) ----------- */
body{
  background-image:
    linear-gradient(rgba(44,42,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,42,32,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
}

/* ----------- header sticky ----------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-mobile);
  background: rgba(244, 240, 228, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: var(--z-header);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled{
  border-bottom-color: var(--border);
  background: rgba(244, 240, 228, 0.98);
}
.header-inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* brand */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark{
  width: 34px; height: 34px;
  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: 600;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -.005em;
}
.brand-dot{ color: var(--accent); }

/* nav desktop */
.nav-desktop{ display: none; }
.nav-desktop a{
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: .94rem;
  color: var(--text-2);
  position: relative;
  padding: 6px 2px;
  transition: color .25s var(--ease);
}
.nav-desktop a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease);
}
.nav-desktop a:hover{ color: var(--text); }
.nav-desktop a:hover::after{ transform: scaleX(1); }

.header-actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* burger */
.burger{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--text);
  transition: background .25s var(--ease);
  position: relative;
  z-index: calc(var(--z-header) + 1);
}
.burger:hover{ background: var(--accent-soft); }
.burger span,
.burger span::before,
.burger span::after{
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span{ position: relative; }
.burger span::before,
.burger span::after{
  content: "";
  position: absolute; left: 0;
}
.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); }

/* menu mobile — enfant direct du body, fixed full screen */
.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: 6px;
  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{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.menu-mobile a::after{
  content: "→";
  font-family: var(--ff-ui);
  color: var(--accent);
  font-size: 1.1rem;
}
.menu-mobile .menu-cta{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
}
.menu-mobile .menu-cta a{
  border-bottom: 0;
  padding: 0;
  font-family: var(--ff-ui);
  font-size: 1rem;
}
.menu-mobile .menu-cta a::after{ content: none; }

/* footer */
.site-footer{
  position: relative;
  margin-top: 80px;
  padding: 64px 0 28px;
  background: #20201A;
  color: #D9D5C7;
}
.site-footer h4{ color: #FFFCEE; font-family: var(--ff-display); font-size: 1.25rem; margin-bottom: .8em; }
.site-footer a{ color: #D9D5C7; transition: color .25s var(--ease); }
.site-footer a:hover{ color: var(--accent-2); }
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .brand-mark{ color: var(--accent-2); width: 36px; height: 36px; }
.footer-brand .brand-name{ color: #FFFCEE; font-size: 1.55rem; }
.footer-tag{ font-size: .92rem; line-height: 1.6; opacity: .85; max-width: 36ch; }
.footer-block ul{ display: flex; flex-direction: column; gap: 8px; font-size: .94rem; }
.footer-block .ico-row{ display: flex; align-items: center; gap: 10px; }
.footer-block .ico-row svg{ width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; }
.footer-bottom{
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .82rem;
  opacity: .8;
  text-align: center;
}
.footer-bottom .ml-trigger{ text-decoration: underline; text-underline-offset: 3px; }

/* FAB mobile (bouton appel flottant) — apparait apres le hero */
.fab-call{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px 13px 15px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .92rem;
  box-shadow: 0 14px 32px -8px rgba(94,107,59,.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility 0s linear .35s, box-shadow .35s var(--ease);
  pointer-events: none;
}
.fab-call.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: transform .35s var(--ease), opacity .35s var(--ease), box-shadow .35s var(--ease);
}
.fab-call:hover{ box-shadow: 0 22px 40px -10px rgba(94,107,59,.55); }
.fab-call svg{ width: 18px; height: 18px; }

@media (min-width: 768px){
  .site-header{ height: var(--header-h); }
  .nav-desktop{ display: inline-flex; gap: 28px; }
  .burger, .menu-mobile{ display: none; }
  .fab-call{ display: none; }
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
  .footer-bottom{ flex-direction: row; justify-content: space-between; text-align: left; }
}
