/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-mobile);
  background: var(--bg);
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px color-mix(in srgb, var(--text) 8%, transparent);
}
@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
}

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

/* Brand / Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  padding: 6px;
}
.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;
}

/* Nav desktop */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .nav-desktop a {
    font-family: var(--ff-ui);
    font-size: .93rem;
    color: var(--text);
    text-decoration: none;
    opacity: .78;
    transition: opacity var(--t-base), color var(--t-base);
    position: relative;
  }
  .nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 100%;
    height: 1.5px;
    background: var(--accent);
    transition: right .25s ease;
  }
  .nav-desktop a:hover { opacity: 1; color: var(--accent); text-decoration: none; }
  .nav-desktop a:hover::after { right: 0; }
}

/* Header CTA (desktop only) */
.header-cta { display: none; }
@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}

/* Open dot indicator */
.open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #9ca3af;
  margin-left: 6px;
  vertical-align: middle;
  display: inline-block;
}
.open-dot.is-open { background: #22c55e; animation: pulse-dot 2s infinite; }
.open-dot.is-closed { background: #ef4444; }
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .8; }
}

/* Burger — enfant direct du body, position:fixed */
.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: 1001;
  padding: 0;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform .3s ease, opacity .3s ease, background .3s;
}
.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); background: var(--text); }
.burger.is-open span::after { transform: rotate(-45deg) translate(5px, -5px); background: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .burger span, .burger span::before, .burger span::after { transition: none; }
}
@media (min-width: 768px) { .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) + 24px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  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 {
  display: flex;
  align-items: center;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t-base);
}
.menu-mobile a:hover { color: var(--accent); text-decoration: none; }
.menu-mobile a.btn {
  justify-content: center;
  gap: 10px;
  padding: .95rem 1.6rem;
  min-height: 52px;
  border-bottom: 0;
  font-family: var(--ff-ui);
  font-size: 1rem;
  margin-top: 8px;
}
.menu-mobile a.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (min-width: 768px) {
  .burger { display: none; }
  .menu-mobile { display: none; }
}

/* Footer */
.site-footer {
  background: oklch(20% 0.03 80);
  color: oklch(88% 0.018 80);
  padding: clamp(40px, 6vw, 72px) 24px 32px;
  margin-top: 0;
}
.site-footer a { color: var(--accent-2); }
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .brand-mark { color: var(--accent-2); background: oklch(28% 0.04 80); }
.footer-brand .brand-name { color: oklch(92% 0.015 80); }
.footer-title {
  font-family: var(--ff-display);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: oklch(70% 0.02 80);
  margin-bottom: 12px;
}
.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid oklch(32% 0.02 80);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: oklch(62% 0.015 80);
  gap: 16px;
  flex-wrap: wrap;
}

/* FAB mobile */
.fab-call {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 20px;
  border-radius: 50px;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 40%, transparent);
  z-index: 900;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.fab-call:hover { transform: translateY(-2px); box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 50%, transparent); text-decoration: none; color: #fff; }
.fab-call svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (min-width: 768px) { .fab-call { display: none; } }
