/* HEADER STICKY ---------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-mobile);
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.header-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* BRAND ------------------------------------------------------------------ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  border-radius: 50%;
  color: var(--accent);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.22rem;
  letter-spacing: -0.005em;
}
.brand-name em {
  color: var(--accent);
  font-style: italic;
}
.brand-tag {
  display: none;
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-mute);
  margin-top: 4px;
}

/* NAV DESKTOP ------------------------------------------------------------ */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
  display: none;
  align-items: center;
  gap: 10px;
}

/* BURGER ----------------------------------------------------------------- */
.burger {
  position: fixed;                     /* PIEGE PROD #14 : top-right fixed */
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 14px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  z-index: var(--z-burger);
  transition: background .2s ease;
}
.burger:hover { background: color-mix(in srgb, var(--bg) 96%, transparent); }
.burger span {
  position: relative;
  width: 18px; height: 1.8px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: background .2s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 1.8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease), opacity .2s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }

.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, voir pattern obligatoire prompt) --- */
.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 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;        /* contain ICI = OK (scroller interne) */
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s var(--ease), opacity .35s ease, visibility 0s linear .35s;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .35s var(--ease), opacity .35s ease;
}
.menu-mobile a {
  font-family: var(--ff-display);
  font-size: 1.65rem;
  color: var(--text);
  text-decoration: none;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color .2s ease, padding-left .2s ease;
}
.menu-mobile a::after {
  content: "›";
  font-family: var(--ff-ui);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 400;
}
.menu-mobile a:hover { color: var(--accent); padding-left: 8px; }
.menu-mobile .menu-cta-row {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--border);
}
.menu-mobile a.btn { padding: 16px 18px; border-bottom: 0; justify-content: center; font-family: var(--ff-ui); font-size: 1rem; }
.menu-mobile a.btn::after { content: none; }
/* PIEGE PROD #10 : override contraste pour boutons dans menu (sinon ils heritent color du menu) */
.menu-mobile a.btn-primary { color: #fff !important; background: var(--accent); }
.menu-mobile a.btn-wa { color: #fff !important; background: var(--wa-green); }

/* DESKTOP NAV ----------------------------------------------------------- */
@media (min-width: 900px) {
  .site-header { height: var(--header-h); }
  .header-inner { padding: 0 32px; }
  .nav-desktop { display: inline-flex; }
  .header-cta { display: inline-flex; }
  .burger { display: none; }
  .menu-mobile { display: none; }
  .brand-tag { display: inline-block; }
}

/* MAIN OFFSET (sticky header) ------------------------------------------- */
main { padding-top: var(--header-h-mobile); }
@media (min-width: 900px) { main { padding-top: var(--header-h); } }

/* FOOTER ---------------------------------------------------------------- */
.site-footer {
  margin-top: 0;             /* PIEGE PROD #12 */
  background: var(--surface-deep);
  color: var(--text-on-dark);
  padding: 52px 0 28px;
}
.site-footer :where(h1,h2,h3,h4,p,li,span,a,strong,small) { color: inherit; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-brand {
  display: flex; flex-direction: column; gap: 14px;
}
.footer-brand .brand { color: var(--text-on-dark); }
.footer-brand .brand-mark { background: rgba(242,239,227,0.10); color: var(--accent-on-dark); }
.site-footer .brand-name em { color: var(--accent-on-dark); }
.site-footer .brand-tag { color: var(--text-on-dark-2); }
.footer-tagline {
  color: var(--text-on-dark-2);
  max-width: 36ch;
  font-size: 0.96rem;
}
.footer-col h4 {
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-on-dark);
  margin-bottom: 14px;
}
.footer-col ul li {
  padding: 6px 0;
  color: var(--text-on-dark-2);
  font-size: 0.95rem;
}
.footer-col ul li a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.footer-col ul li a:hover { border-bottom-color: var(--accent-on-dark); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(242,239,227,0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-on-dark-2);
}
@media (min-width: 600px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-bottom button {
  background: transparent; border: 0; color: var(--accent-on-dark);
  font-family: var(--ff-ui); font-size: 0.86rem;
  cursor: pointer; padding: 0; border-bottom: 1px solid currentColor;
}

/* FAB MOBILE ------------------------------------------------------------ */
.fab {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(44,42,32,0.32), 0 2px 6px rgba(44,42,32,0.18);
  z-index: var(--z-fab);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s var(--ease);
}
.fab.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .fab { display: none; } }
