/* LAYOUT — header, footer, container, nav desktop */

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-mobile);
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px oklch(18% 0.018 71 / 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-picto { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* Nav desktop */
.header-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  font-family: var(--ff-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--accent); }

/* CTA header desktop */
.header-cta {
  display: none;
  align-items: center;
  gap: 10px;
}
.header-tel {
  font-family: var(--ff-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ===== BURGER — enfant direct du body (RÈGLE MENU MOBILE) ===== */
.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) + 10); /* > header (PIÈGE PROD #14) */
  padding: 0;
}
.burger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.burger-lines span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger.is-open .burger-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open .burger-lines span:nth-child(2) { opacity: 0; }
.burger.is-open .burger-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MENU MOBILE — enfant direct du body ===== */
.menu-mobile {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100dvh; /* dvh — pas vh */
  background: var(--bg);
  z-index: var(--z-menu);
  padding: calc(var(--header-h-mobile) + 32px) 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.38s var(--ease), opacity 0.38s var(--ease), visibility 0s linear 0.38s;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.38s var(--ease), opacity 0.38s var(--ease);
}
.menu-mobile a {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.menu-mobile a:hover { color: var(--accent); }
.menu-mobile .menu-sep { flex: 1; }
.menu-mobile a.btn-wa {
  font-style: normal;
  font-size: 1rem;
  font-family: var(--ff-ui);
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: var(--wa-green);
  color: #fff !important;
  text-align: center;
  border-bottom: 0;
  justify-content: center;
  gap: 8px;
  display: flex;
  align-items: center;
  min-height: 52px;
}
.menu-mobile a.btn-tel {
  font-style: normal;
  font-size: 1rem;
  font-family: var(--ff-ui);
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff !important;
  text-align: center;
  border-bottom: 0;
  justify-content: center;
  gap: 8px;
  display: flex;
  align-items: center;
  min-height: 52px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 56px 0 32px;
  margin-top: 0; /* PIÈGE PROD #12 */
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: oklch(90% 0.038 148);
  margin-bottom: 14px;
}
.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: oklch(90% 0.020 85);
  text-decoration: none;
  line-height: 1.7;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid oklch(100% 0 0 / 0.12);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: oklch(80% 0.015 85);
  margin: 0;
}
.footer-bottom a {
  font-size: 0.78rem;
  color: oklch(80% 0.015 85);
  text-decoration: underline;
}

/* ===== FAB APPELER ===== */
.fab-appel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-fab);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--ff-ui);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 20px oklch(47% 0.095 148 / 0.4);
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), background 0.2s;
  pointer-events: none;
}
.fab-appel.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.fab-appel:hover { background: var(--primary); color: #fff; }
.fab-appel svg { flex-shrink: 0; }

/* Desktop : header complet, masquer burger et menu-mobile */
@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
  html { scroll-padding-top: var(--header-h); }
  .header-nav { display: flex; }
  .header-cta { display: flex; }
  .burger { display: none; }
  .menu-mobile { display: none; }
  .fab-appel { display: none; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
