/* Layout — container, header, footer, menu mobile */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ===== Header sticky ===== */
.site-header{
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  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{
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom-color: var(--border);
}
.site-header__inner{
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h-mobile);
}
@media (min-width: 768px){
  .site-header__inner{ height: var(--header-h); }
}

/* Brand */
.brand{ display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark{ width: 36px; height: 36px; color: var(--accent); flex-shrink: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border-radius: 50%; padding: 6px; }
.brand-mark svg{ width: 100%; height: 100%; display: block; }
.brand-name{ font-family: var(--ff-display); font-weight: 600; font-size: 1.2rem; line-height: 1; letter-spacing: 0.01em; }
.brand-name em{ font-style: italic; color: var(--accent); font-weight: 500; }
.brand-tag{ display: none; font-family: var(--ff-ui); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--border); }
@media (min-width: 980px){ .brand-tag{ display: inline-block; } }

/* Nav desktop */
.nav-desktop{ display: none; align-items: center; gap: 28px; }
.nav-desktop a{ font-family: var(--ff-ui); font-size: 0.94rem; color: var(--text); text-decoration: none; transition: color var(--t-fast); }
.nav-desktop a:hover{ color: var(--accent); }
@media (min-width: 980px){ .nav-desktop{ display: flex; } }

/* Header CTA — DESKTOP UNIQUEMENT (PIEGE PROD #13.2) */
.header-cta{ display: none; }
@media (min-width: 980px){
  .header-cta{ display: inline-flex !important; align-items: center; gap: 8px;
    background: var(--accent); color: #fff !important; padding: 10px 18px; border-radius: 999px;
    font-family: var(--ff-ui); font-weight: 500; font-size: 0.92rem; text-decoration: none;
    transition: background var(--t-fast); }
  .header-cta:hover{ background: var(--surface-deep); color: #fff !important; }
}

/* ===== BURGER (fixed top-right, z-burger > z-menu) PIEGE PROD #8 ===== */
.burger{
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 12px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 0; border-radius: 50%;
  cursor: pointer;
  z-index: var(--z-burger);
}
.burger span, .burger span::before, .burger span::after{
  content: ""; display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  position: relative; transition: transform var(--t-base), opacity var(--t-base);
}
.burger span{ background: transparent; }
.burger span::before{ position: absolute; top: -6px; left: 0; background: var(--text); }
.burger span::after{ position: absolute; top: 6px; left: 0; background: var(--text); }
.burger.is-open span::before{ transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after{ transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 980px){ .burger{ display: none; } }

/* ===== MENU MOBILE (enfant direct de body, 100dvh, opaque) ===== */
.menu-mobile{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--accent) 8%, var(--bg)) 0%, var(--bg) 70%);
  z-index: var(--z-menu);
  padding: calc(var(--header-h-mobile) + 32px) 24px 40px;
  display: flex; flex-direction: column; gap: 14px;
  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{
  display: block; font-family: var(--ff-display); font-size: 1.7rem; color: var(--text);
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.menu-mobile a.btn-wa{
  margin-top: 18px; background: var(--wa-green) !important; color: #fff !important;
  border: 0; border-radius: 999px; padding: 16px 22px; text-align: center;
  font-family: var(--ff-ui); font-size: 1rem; font-weight: 500;
}
.menu-mobile a.btn-call{
  background: var(--surface-deep) !important; color: #fff !important;
  border: 0; border-radius: 999px; padding: 16px 22px; text-align: center;
  font-family: var(--ff-ui); font-size: 1rem; font-weight: 500;
}
@media (min-width: 980px){ .menu-mobile{ display: none; } }

/* ===== Footer ===== */
.site-footer{
  margin-top: 0;
  background: var(--surface-deep); color: var(--text-inverse);
  padding: 56px 0 28px;
}
.site-footer :where(h2,h3,h4,p,a,li,span,small,strong){ color: inherit; }
.footer-grid{ display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px){ .footer-grid{ grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; } }
.footer-brand .brand-name{ color: #fff; }
.footer-brand .brand-mark{ background: rgba(255,255,255,0.08); color: var(--accent-on-dark); }
.footer-brand p{ margin-top: 14px; color: rgba(255,255,255,0.78); max-width: 36ch; }
.footer-col h4{ font-family: var(--ff-display); font-size: 1.1rem; color: #fff; margin-bottom: 14px; }
.footer-col ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a{ color: rgba(255,255,255,0.82); text-decoration: none; transition: color var(--t-fast); }
.footer-col a:hover{ color: var(--accent-on-dark); }
.footer-coord{ display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.82); }
.footer-coord svg{ width: 16px; height: 16px; color: var(--accent-on-dark); flex-shrink: 0; }
.footer-bottom{
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  font-size: 0.84rem; color: rgba(255,255,255,0.6);
}
.footer-bottom button{ color: rgba(255,255,255,0.7); background: transparent; border: 0; cursor: pointer; font-size: 0.84rem; text-decoration: underline; text-underline-offset: 3px; font-family: var(--ff-ui); }
.footer-bottom button:hover{ color: #fff; }

/* FAB mobile : appel */
.fab-call{
  position: fixed; bottom: 18px; right: 18px;
  z-index: 900;
  background: var(--accent); color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(31, 53, 49, 0.28);
  text-decoration: none;
  transition: transform var(--t-base), background var(--t-base);
}
.fab-call:hover{ background: var(--surface-deep); color: #fff; transform: translateY(-3px); }
.fab-call svg{ width: 24px; height: 24px; }
@media (min-width: 980px){ .fab-call{ display: none; } }
