/* =====================================================
   LAYOUT — header, nav, footer
   ===================================================== */

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

.site-header.has-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px color-mix(in srgb, var(--text) 8%, transparent);
}

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

/* BRAND */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  z-index: 2;
}

.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;
  letter-spacing: -.01em;
}

.brand-sub {
  font-family: var(--ff-ui);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent-2);
  display: none;
}

@media (min-width: 600px) {
  .brand-sub { display: block; }
}

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

.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s;
  letter-spacing: .01em;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: var(--accent); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
}

/* CTA header desktop — PIÈGE PROD #13: masqué sur mobile
   Specificité 0,2,0 > 0,1,0 de .btn pour gagner sur mobile */
.btn.header-cta-desktop { display: none; }

@media (min-width: 900px) {
  .btn.header-cta-desktop { display: inline-flex; }
}

@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--surface-deep);
  color: #E8E0D4;
  padding: 56px 24px 32px;
  /* PIÈGE PROD #12: margin-top: 0 */
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand .brand { color: #E8E0D4; }
.footer-brand .brand-mark { background: color-mix(in srgb, var(--accent) 24%, var(--surface-deep)); }
.footer-brand .brand-name { color: #E8E0D4; }
.footer-brand .brand-sub  { color: var(--accent-soft); }

.footer-tagline {
  font-size: .9rem;
  color: rgba(232, 224, 212, .65);
  margin-top: 14px;
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--ff-ui);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent-soft);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col li, .footer-col a { font-size: .9rem; color: rgba(232, 224, 212, .75); }
.footer-col a:hover { color: #E8E0D4; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 224, 212, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(232, 224, 212, .4);
}

.footer-bottom a {
  color: rgba(232, 224, 212, .55);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover { color: #E8E0D4; }
