/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-mobile);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: var(--z-header);
  transition: border-color var(--t), background var(--t);
}
.header.is-scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 96%, transparent); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 768px) { .header { height: var(--header-h); } }

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-name em { font-style: italic; color: var(--accent-ink); }
.brand-tag {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-top: 3px;
}

/* Nav desktop */
.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; gap: 28px; }
  .nav-desktop a {
    font-family: var(--ff-ui);
    color: var(--text-2);
    font-size: 0.96rem;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
  }
  .nav-desktop a:hover { color: var(--text); }
  .nav-desktop a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav-desktop a:hover::after { transform: scaleX(1); }
}

/* Header CTA desktop */
.header-cta { display: none !important; }
@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary);
    color: var(--bg) !important;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-family: var(--ff-ui);
    text-decoration: none;
    transition: background var(--t-fast);
  }
  .header-cta:hover { background: var(--accent-ink); color: var(--bg) !important; }
}

/* Burger */
.burger {
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.3s ease, background 0.2s ease;
}
.burger span::before,
.burger span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.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); }
@media (min-width: 1024px) { .burger { display: none; } }

/* 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: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.menu-mobile > a:not(.btn) {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.menu-mobile > a:not(.btn):last-of-type { border-bottom: 0; }
.menu-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-cta .btn.btn-primary { color: var(--bg); }
.menu-cta .btn.btn-wa { color: #fff; }
.menu-meta {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-2);
}
.menu-meta strong { display: block; font-family: var(--ff-display); color: var(--text); font-weight: 500; }

@media (min-width: 1024px) { .menu-mobile { display: none; } }

/* Body offset header */
main { padding-top: var(--header-h-mobile); }
@media (min-width: 768px) { main { padding-top: var(--header-h); } }

/* Sections - regle padding mobile */
section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 88px 0; } }

/* Footer */
.footer {
  background: var(--primary);
  color: color-mix(in srgb, var(--bg) 88%, transparent);
  padding: 56px 0 28px;
}
.footer a { color: color-mix(in srgb, var(--accent) 90%, var(--bg)); }
.footer a:hover { color: var(--accent-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer h4 {
  color: var(--accent-soft);
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer .brand-name, .footer .brand-name em { color: var(--bg); }
.footer .brand-mark { color: var(--accent); }
.footer p { margin: 0 0 8px; color: color-mix(in srgb, var(--bg) 82%, transparent); }
.footer-baseline {
  border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  margin-top: 36px;
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}
.footer-baseline button {
  background: transparent;
  border: 0;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  font-family: var(--ff-ui);
}
.footer-baseline button:hover { color: var(--accent-soft); }
