/* HEADER STICKY */
.site-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: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  border-radius: 50%;
  padding: 6px;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--primary);
  letter-spacing: 0.005em;
}

/* Nav desktop */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.nav-desktop a:hover::after { width: 100%; }

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

@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
  .nav-desktop { display: inline-flex; }
  .header-cta { display: inline-flex; }
}

/* BURGER — toujours en haut a DROITE, position fixed (piege #8) */
.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: 1200;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger span { position: relative; }
.burger span::before { content: ""; position: absolute; top: -7px; left: 0; }
.burger span::after { content: ""; position: absolute; top: 7px; left: 0; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) {
  .burger { display: none; }
}

/* MENU MOBILE — enfant DIRECT du body, fixed, 100dvh, OPAQUE, z < header burger */
.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: 8px;
  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-display);
  font-size: 1.6rem;
  color: var(--primary);
  text-decoration: none;
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.menu-mobile a.btn {
  margin-top: 18px;
  border: 0;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-ui);
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-bottom: 0;
  min-height: 52px;
}
.menu-mobile a.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (min-width: 768px) {
  .menu-mobile { display: none; }
}

/* FOOTER */
.site-footer {
  background: var(--primary);
  color: var(--surface);
  padding: 56px 0 32px;
  margin-top: 0;
}
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}
.site-footer p, .site-footer li, .site-footer a { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { background: color-mix(in srgb, var(--accent) 30%, var(--primary)); color: var(--accent-soft); }
.footer-contact-list { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact-list svg { color: var(--accent-2); flex-shrink: 0; width: 18px; height: 18px; }
.footer-horaires { font-size: 0.92rem; line-height: 1.9; }
.footer-horaires span { display: inline-block; min-width: 96px; color: var(--accent-2); font-weight: 500; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; color: rgba(255,255,255,0.78); }
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* FAB mobile */
.fab-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-fab);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(74, 139, 127, 0.6);
  text-decoration: none;
}
.fab-call svg { width: 24px; height: 24px; }
@media (min-width: 768px) {
  .fab-call { display: none; }
}
