/* HEADER */
.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: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s 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: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand-mark {
  width: 38px;
  height: 38px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; display: block; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .005em;
}
.brand-tag {
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .58rem;
  color: var(--text-mute);
  margin-top: 3px;
}

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

/* header CTA */
.header-cta {
  display: none;
}
@media (min-width: 968px) {
  .site-header .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: var(--ff-ui);
    font-weight: 600;
    font-size: .92rem;
    transition: background .2s ease, transform .2s ease;
  }
  .site-header .header-cta:hover { background: var(--text); transform: translateY(-1px); }
  .site-header .header-cta svg { width: 16px; height: 16px; }
}

/* burger */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 12px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  z-index: 1101;
  border-radius: 8px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  position: relative;
  transition: transform .25s ease, background .2s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform .25s ease, top .25s 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: 968px) { .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) 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  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.5rem;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.menu-mobile a:last-of-type { border-bottom: 0; }
.menu-mobile .menu-cta-wrap {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
}
.menu-mobile .btn { width: 100%; }
@media (min-width: 968px) { .menu-mobile { display: none; } }

/* FOOTER */
.site-footer {
  background: var(--text);
  color: #fff;
  padding: 56px 0 26px;
  margin-top: 0;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (min-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}
.site-footer h4 {
  color: #fff;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.site-footer p, .site-footer a, .site-footer li {
  color: rgba(255,255,255,.78);
  font-size: .92rem;
}
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: rgba(255,255,255,.5); }
.site-footer .brand-mark { background: rgba(255,255,255,.1); color: #fff; }
.site-footer .footer-list { display: flex; flex-direction: column; gap: 8px; }
.site-footer .footer-list svg { width: 14px; height: 14px; margin-right: 8px; vertical-align: middle; color: var(--accent-2); }
.site-footer .footer-meta {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}
.site-footer .footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-brand-block { display: flex; flex-direction: column; gap: 14px; }
.site-footer .footer-brand-block .brand { color: #fff; }
.site-footer .footer-about { font-size: .92rem; opacity: .8; max-width: 38ch; }

/* push pour le header fixed */
main { padding-top: var(--header-h-mobile); }
@media (min-width: 768px) { main { padding-top: 0; } }

@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
  .burger { top: calc((var(--header-h) - 44px) / 2); }
}
