/* ==========================================================================
   layout.css — header et footer communs (toujours chargé, cf. bootstrap.css)
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow var(--transition-base);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 1rem;
}
.site-header__logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.site-header__nav ul {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.site-header__nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-body);
  padding-block: 0.3em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.site-header__nav a:hover,
.site-header__nav a.is-active {
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5em;
}
.site-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}
.site-header__cta { flex-shrink: 0; }

@media (max-width: 900px) {
  .site-header__toggle { display: flex; }
  .site-header__nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }
  .site-header__nav.is-open { max-height: 400px; }
  .site-header__nav ul { flex-direction: column; gap: 0; padding: var(--space-2) var(--space-3); }
  .site-header__nav a { display: block; padding-block: 0.7em; }
  .site-header__cta { display: none; }
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: #c7c9d9;
  padding-top: var(--space-6);
}
.site-footer a { color: #c7c9d9; }
.site-footer a:hover { color: #fff; }
.site-footer .text-muted { color: #8b8ea3; }
.site-footer__inner {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  grid-template-columns: 1fr;
}
.site-footer__logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5em;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.site-footer__col ul li { margin-bottom: 0.6em; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}
