/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  height: var(--header-h-mobile);
  background: rgba(246, 240, 230, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(246, 240, 230, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(46, 40, 32, 0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name strong {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--primary);
}
.brand-name span {
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

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

.header-cta {
  display: none;
}
@media (min-width: 920px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: var(--primary);
    color: var(--surface);
    padding: 0.65rem 1.2rem;
    border-radius: var(--r-full);
    font-weight: 600;
    font-family: var(--ff-ui);
    font-size: 0.95rem;
    transition: transform .2s var(--ease), background .2s ease;
  }
  .header-cta:hover { background: var(--accent); color: var(--surface); transform: translateY(-1px); }
  .header-cta svg { width: 18px; height: 18px; }
}

/* Burger (mobile only) */
.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;
  z-index: 1150;   /* > header (1100) et > menu (1000), sous modal (1200) */
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2.2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s ease, top .3s var(--ease);
  position: relative;
}
.burger span { background: var(--primary); }
.burger span::before { position: absolute; top: -8px; left: 0; }
.burger span::after  { position: absolute; top:  8px; left: 0; }
.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: 920px) {
  .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) + 28px) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .38s var(--ease), opacity .35s ease, visibility 0s linear .38s;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .38s var(--ease), opacity .35s ease;
}
.menu-mobile a {
  color: var(--primary);
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 500;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.menu-mobile a.btn {
  border: none;
  font-family: var(--ff-ui);
  margin-top: 1.2rem;
}
@media (min-width: 920px) {
  .menu-mobile { display: none; }
}

/* ============ Footer ============ */
.site-footer {
  background: #2A241C;
  color: #D9CFB9;
  padding: 56px 0 28px;
  margin-top: 0;
}
.site-footer :where(h1,h2,h3,h4,h5,p,a,li,small,strong,span) { color: #ECDFC4; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 720px) {
  .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.footer-brand .brand-name strong { color: #F6F0E6; }
.footer-brand .brand-name span { color: #C9A765; }
.footer-brand p { color: #B7AC93; margin-top: 1rem; font-size: 0.95rem; line-height: 1.6; }

.footer-col h4 {
  color: #F6F0E6;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-style: normal;
}
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: #C9BFA8; font-size: 0.95rem; }
.footer-col a:hover { color: #F6F0E6; }
.footer-col svg { width: 16px; height: 16px; vertical-align: middle; margin-right: 6px; opacity: 0.85; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(217, 207, 185, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #998D75;
  align-items: flex-start;
}
.footer-bottom a { color: #C9A765; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* FAB mobile (appeler) */
.fab-call {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(85, 117, 68, 0.45);
  z-index: var(--z-fab);
  border: 3px solid var(--bg);
  transition: transform .25s var(--ease);
}
.fab-call:hover { transform: scale(1.08); color: var(--surface); }
.fab-call svg { width: 24px; height: 24px; }
.fab-call::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: fab-pulse 2.4s ease-out infinite;
}
@keyframes fab-pulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}
@media (min-width: 920px) { .fab-call { display: none; } }

/* Padding top du main pour eviter le header fixe */
main { padding-top: var(--header-h-mobile); }
@media (min-width: 920px) { main { padding-top: var(--header-h); } }
