/* Layout : header sticky, container, footer */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

/* HEADER STICKY */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h-mobile);
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid), background var(--t-mid);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 98%, transparent);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* BRAND */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--ff-display);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; display: block; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.brand-name__tag {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 2px;
}

/* NAV desktop (cache mobile) */
.nav-desktop { display: none; }
@media (min-width: 980px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav-desktop a {
    font-family: var(--ff-ui);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color var(--t-fast);
    position: relative;
    padding: 6px 0;
  }
  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--t-mid);
    transform-origin: left;
  }
  .nav-desktop a:hover { color: var(--text); }
  .nav-desktop a:hover::after { transform: scaleX(1); }
  .nav-desktop .btn-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
  }
  .nav-desktop .btn-call:hover { background: var(--primary); color: #fff; }
  .nav-desktop .btn-call::after { display: none; }
}

/* BURGER (PIEGE PROD #8 : enfant body, position fixed top-right) */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  z-index: var(--z-burger);
  background: transparent;
  border-radius: 999px;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-mid), background var(--t-mid), top var(--t-mid);
}
.burger span::before { position: absolute; top: -7px; left: 0; }
.burger span::after  { position: absolute; top:  7px; 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: 980px) {
  .burger { display: none; }
}

/* MENU MOBILE (PIEGE PROD #1 : enfant direct body, 100dvh, opaque) */
.menu-mobile {
  position: fixed;
  inset: 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: 8px;
  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:not(.btn) {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.menu-mobile .menu-mobile__ctas {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-mobile .btn { width: 100%; }
.menu-mobile .btn.btn-wa,
.menu-mobile .btn.btn-primary { color: #fff !important; }
@media (min-width: 980px) {
  .menu-mobile { display: none; }
}

/* MAIN spacing */
main { padding-top: var(--header-h-mobile); }
@media (min-width: 980px) {
  main { padding-top: var(--header-h); }
  .site-header { height: var(--header-h); }
}

/* FOOTER */
.site-footer {
  margin-top: 0;
  background: var(--primary);
  color: #E6E2D6;
  padding: 56px 0 28px;
  font-family: var(--ff-ui);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 720px) {
  .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1000px) {
  .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-col h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #E6E2D6; font-size: 0.92rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent-on-dark); }
.footer-col p { color: #C8C3B5; font-size: 0.92rem; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.08); color: var(--accent-on-dark); }
.footer-brand .brand-name__title { color: #fff; }
.footer-brand .brand-name__tag { color: var(--accent-on-dark); }
.footer-brand p { margin-top: 18px; max-width: 36ch; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  color: #B4AF9F;
}
.footer-bottom a { color: #B4AF9F; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* FAB Appel mobile */
.fab-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-fab);
  background: var(--accent);
  color: #fff;
  width: auto;
  padding: 14px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: 0 10px 24px -8px rgba(36,74,58,0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--t-mid), transform var(--t-mid);
}
.fab-call.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-call svg { width: 18px; height: 18px; }
@media (min-width: 980px) {
  .fab-call { display: none; }
}
