/* layout.css — header sticky, footer, nav */

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-mobile);
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: var(--z-header);
  transition: box-shadow var(--tr-base);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(49,42,32,.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

/* Brand / logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 32px; height: 32px;
  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: 600;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
}
.brand-tag {
  font-family: var(--ff-ui);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  display: block;
  margin-top: 1px;
}

/* Nav desktop */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--tr-fast);
}
.nav-desktop a:hover { color: var(--accent); }

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

/* ── BURGER (position:fixed, enfant direct du body) ── */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 16px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: calc(var(--z-header) + 50);
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger span::before { top: -7px; }
.burger span::after  { top:  7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: rotate(45deg) translate(5px, 5px); }
.burger.is-open span::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MENU MOBILE (enfant direct du body, jamais dans le header) ── */
.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) + 24px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  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 {
  font-family: var(--ff-ui);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.menu-mobile a:hover { color: var(--accent); }
.menu-mobile a.btn {
  justify-content: center;
  gap: 10px;
  padding: .95rem 1.6rem;
  min-height: 52px;
  border-bottom: 0;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  width: 100%;
}
.menu-mobile a.btn svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--accent-deep);
  color: var(--on-dark);
  padding: 48px 20px 32px;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-brand .brand-name { color: var(--on-dark); }
.footer-brand .brand-tag { color: var(--accent-2); }
.footer-brand .brand-mark { color: var(--accent-2); }
.footer-desc {
  margin-top: 12px;
  font-size: .9rem;
  opacity: .78;
  max-width: 38ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--ff-display);
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--on-dark);
}
.footer-col ul li {
  font-size: .9rem;
  opacity: .78;
  margin-bottom: 6px;
  line-height: 1.5;
}
.footer-col a {
  opacity: .78;
  transition: opacity var(--tr-fast);
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(247,241,225,.12);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  opacity: .6;
}
.footer-bottom a { opacity: 1; text-decoration: underline; }

/* ── FAB MOBILE ── */
.fab-call {
  position: fixed;
  bottom: 20px; right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .9rem;
  padding: 14px 20px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  z-index: 900;
  transition: background var(--tr-fast), transform var(--tr-fast), opacity .6s ease;
  opacity: 0;
  pointer-events: none;
}
.fab-call.visible {
  opacity: 1;
  pointer-events: auto;
}
.fab-call:hover { background: var(--accent-deep); transform: translateY(-2px); }
.fab-call svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
  .nav-desktop { display: flex; }
  .header-cta { display: flex; }
  .burger { display: none; }
  .menu-mobile { display: none; }
  .fab-call { display: none; }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}
