/* Header sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(247, 241, 225, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(247, 241, 225, 0.96);
}
.header-inner {
  height: var(--header-h-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name .name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-name .tag {
  font-family: var(--ff-ui);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 2px;
}
.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.header-call:hover { background: var(--accent-soft); border-color: var(--accent); }
.header-call .label { display: none; }
.header-call svg { width: 16px; height: 16px; }

/* Burger */
.burger {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  position: relative;
  background: var(--bg);
  z-index: calc(var(--z-header) + 1);
}
.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1.6px;
  background: var(--text);
  transition: transform var(--t-base), opacity var(--t-base), top var(--t-base);
  left: 50%;
  transform: translateX(-50%);
}
.burger::before { top: 14px; }
.burger span { top: 50%; transform: translate(-50%, -50%); }
.burger::after { top: 26px; }
.burger.is-open::before { top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.burger.is-open::after { top: 50%; transform: translate(-50%, -50%) rotate(-45deg); }
.burger.is-open span { opacity: 0; }

/* Menu mobile (enfant direct du body, jamais imbrique) */
.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) + 30px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  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;
  /* texture grain identique pour cohesion */
  background-image:
    radial-gradient(rgba(49, 42, 32, 0.018) 1px, transparent 1px),
    radial-gradient(rgba(49, 42, 32, 0.012) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .35s ease, opacity .35s ease;
}
.menu-mobile a:not(.btn) {
  font-family: var(--ff-display);
  font-size: 1.7rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.menu-mobile .btn { margin-top: 12px; width: 100%; justify-content: center; }
.menu-mobile .btn-primary { color: var(--on-primary); }
.menu-mobile .btn-wa { color: #fff; }
.menu-mobile .menu-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.menu-mobile .menu-foot a:not(.btn) {
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  padding: 4px 0;
  border: none;
}

/* Footer */
.site-footer {
  background: #211c15;
  color: #d8cfba;
  padding: 56px 0 32px;
  font-size: 0.92rem;
}
.site-footer h4 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.2rem;
  color: #f0e9d5;
  margin-bottom: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer-grid a:hover { color: var(--accent-2); }
.footer-grid ul li { padding: 3px 0; }
.foot-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #8d836d;
}
.foot-bottom a { text-decoration: underline; text-decoration-color: rgba(216,207,186,0.2); }

/* FAB Appeler mobile */
.fab-call {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: var(--z-fab);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -10px rgba(49, 42, 32, 0.5);
  transition: transform var(--t-fast), background var(--t-fast);
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
}
.fab-call.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab-call:hover { transform: translateY(-4px); background: var(--text); }
.fab-call svg { width: 24px; height: 24px; }

/* Section default */
section { padding: 56px 0; position: relative; }
@media (min-width: 768px) {
  section { padding: 96px 0; }
  .header-inner { height: var(--header-h); }
  html { scroll-padding-top: 88px; }
  .burger { display: none; }
  .menu-mobile { display: none; }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--ff-ui);
    font-size: 0.94rem;
  }
  .nav-desktop a {
    color: var(--text);
    padding: 6px 0;
    position: relative;
    transition: color var(--t-fast);
  }
  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
  }
  .nav-desktop a:hover { color: var(--accent); }
  .nav-desktop a:hover::after { transform: scaleX(1); }
  .header-call .label { display: inline; }
  .fab-call { display: none; }
}
