/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── 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 .3s, box-shadow .3s;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 12px color-mix(in srgb, #000 8%, transparent);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo { flex-shrink: 0; }

.brand-name {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.brand-name em {
  font-style: normal;
  color: var(--accent);
  display: block;
  font-size: .88em;
  font-weight: 400;
  letter-spacing: .01em;
}

/* Nav desktop */
.header-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-family: var(--ff-ui);
  font-size: .9rem;
  letter-spacing: .02em;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}

.header-nav a:hover { color: var(--accent); text-decoration: none; }
.header-nav a:focus-visible { color: var(--accent); }

/* CTA header — masqué sur mobile (piège prod #13).
   Spécificité .btn.header-cta > .btn seul : évite que components.css l'override */
.btn.header-cta { display: none; }

/* ── BURGER — position:fixed enfant direct de body (piège menu #1 + #6) ── */
.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: 1150; /* > z-header 1100 > z-menu 1000 */
  padding: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .25s;
  box-shadow:
    0  6px 0 0 var(--text),
    0 -6px 0 0 var(--text);
}

.burger.is-open span {
  background: transparent;
  box-shadow: none;
}

.burger.is-open span::before,
.burger.is-open span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease-out);
}
.burger.is-open span::before { transform: rotate(45deg); }
.burger.is-open span::after  { transform: rotate(-45deg); }

/* ── MENU MOBILE — enfant direct de body juste après header (piège #1) ── */
.menu-mobile {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100dvh;        /* dvh, jamais vh (piège menu #2) */
  background: var(--bg); /* opaque (piège menu #3) */
  z-index: var(--z-menu);
  padding: calc(var(--header-h-mobile) + 28px) 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  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: none;
  opacity: 1;
  visibility: visible;
  transition: transform .35s ease, opacity .35s ease;
}

.menu-mobile a {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s;
}

.menu-mobile a:last-child { border-bottom: 0; }
.menu-mobile a:hover { color: var(--accent); text-decoration: none; }

/* Jouvet pattern — bouton WA dans menu mobile */
.menu-mobile a.btn {
  justify-content: center;
  gap: 10px;
  padding: .95rem 1.6rem;
  min-height: 52px;
  border-bottom: 0;
  margin-top: 20px;
  font-family: var(--ff-ui);
  font-size: 1rem;
  color: #fff; /* piège #15 : toujours blanc sur btn coloré */
}

.menu-mobile a.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── FOOTER ── */
.site-footer {
  /* Piège prod #12 : margin-top:0 absolu */
  margin-top: 0;
  background: var(--accent);
  color: #fff;
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name em { color: rgba(255,255,255,.7); }

.footer-col h3 {
  font-family: var(--ff-ui);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  text-decoration: none;
}

.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom small { font-size: .8rem; color: rgba(255,255,255,.55); }

#ml-trigger {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--ff-body);
  padding: 0;
}

#ml-trigger:hover { color: #fff; }

/* ── MODAL MENTIONS LÉGALES ── */
#ml-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ml-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  cursor: pointer;
}

.ml-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.ml-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--text-mute);
  border-radius: var(--r-sm);
  transition: background .2s;
}
.ml-close:hover { background: var(--border); color: var(--text); }

.ml-box h2 { font-size: 1.4rem; margin-bottom: 20px; color: var(--text); }
.ml-box p { font-size: .88rem; line-height: 1.7; color: var(--text-2); }

/* ── SECTION BASE ── */
section {
  padding: 56px 0;
}

/* ── FAB MOBILE ── */
.fab-call {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: .95rem;
  font-weight: 600;
  padding: .75rem 1.6rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 45%, transparent);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}

.fab-call:hover { transform: translateX(-50%) translateY(-2px); text-decoration: none; }

.fab-call svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Desktop : masquer burger, FAB ; afficher nav, header-cta */
@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
  .burger { display: none; }
  .menu-mobile { display: none; }
  .header-nav { display: flex; }
  .btn.header-cta { display: inline-flex; }
  .fab-call { display: none; }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  section { padding: 88px 0; }
}
