/* =====================================================================
   layout.css  -  header sticky, container, nav, footer
   ===================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 48px 0; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-mobile);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  z-index: var(--z-header);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* logo 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;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}
.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-top: 3px;
}
.brand-text { display: flex; flex-direction: column; }

/* nav desktop */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.nav-desktop a:hover::after { width: 100%; }

/* header CTA bar */
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-call {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur), color var(--dur);
}
.header-call:hover { border-color: var(--accent); color: var(--accent); }
.header-call svg { width: 16px; height: 16px; }

/* burger button */
.burger {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.6px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger::before { top: 14px; }
.burger span    { top: 21px; }
.burger::after  { top: 28px; }
.burger.is-open::before { top: 21px; transform: translateX(-50%) rotate(45deg); }
.burger.is-open span    { opacity: 0; }
.burger.is-open::after  { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* ---------- 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 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 var(--ease), opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.menu-mobile a:not(.btn) {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.menu-mobile a:not(.btn):hover { color: var(--accent); }
.menu-mobile .menu-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.menu-mobile .menu-cta .btn { width: 100%; }
.menu-mobile .btn-primary { color: #fff; }
.menu-mobile .btn-wa      { color: #fff; }
.menu-mobile .menu-meta {
  margin-top: 28px;
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  color: var(--text-mute);
  line-height: 1.6;
}
.menu-mobile .menu-meta strong { display: block; color: var(--text); font-weight: 600; font-family: var(--ff-display); font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--text);
  color: color-mix(in srgb, #fff 88%, transparent);
  padding: 56px 0 24px;
  margin-top: 32px;
}
.site-footer a { color: color-mix(in srgb, #fff 88%, transparent); text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); }
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.foot-col h4 {
  font-family: var(--ff-display);
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 12px;
  font-style: italic;
}
.foot-col p, .foot-col li { font-size: 0.92rem; line-height: 1.7; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 6px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; }
.foot-brand .brand-mark { color: var(--accent-2); }
.foot-brand .brand-name { color: #fff; }
.foot-mention {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
  line-height: 1.6;
}
.foot-bottom {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
.foot-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAB Appeler mobile ---------- */
.fab-call {
  position: fixed;
  bottom: 18px; right: 18px;
  z-index: var(--z-fab);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: 0.92rem;
  box-shadow: 0 8px 22px rgba(55,83,107,0.35);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.fab-call.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab-call svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .fab-call { display: none; } }
