/* ====================== LAYOUT ======================
   Header sticky · nav · container · footer
   ======================================================= */

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1280px) { .container { padding: 0 40px; } }

/* ---- Header sticky ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h-mobile);
  z-index: var(--z-header);
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
}

/* En mode scrollé → fond opaque */
.site-header.is-scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px oklch(45% 0.12 145 / 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---- Brand logo ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--accent);
}

.brand-name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}
/* Sur hero immersif → texte blanc au début */
.header-on-dark .brand-name { color: #fff; }
.header-on-dark .brand-icon { color: #fff; }
.header-on-dark .nav-desktop a { color: rgba(255,255,255,.85); }
.header-on-dark .nav-desktop a:hover { color: #fff; }
.header-on-dark .header-cta { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }

/* Quand scrollé → retour couleur normale (surcharge on-dark) */
.site-header.is-scrolled .brand-name { color: var(--text); }
.site-header.is-scrolled .brand-icon { color: var(--accent); }
.site-header.is-scrolled .nav-desktop a { color: var(--text-2); }
.site-header.is-scrolled .nav-desktop a:hover { color: var(--accent); }
.site-header.is-scrolled .header-cta { background: var(--accent); border-color: var(--accent); color: #fff; }

.brand-sub {
  display: none;
}
@media (min-width: 1024px) {
  .brand-sub {
    display: block;
    font-family: var(--ff-ui);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent-2);
    line-height: 1;
    margin-top: 3px;
  }
}

/* ---- Nav desktop ---- */
.nav-desktop {
  display: none;
  margin-left: auto;
  gap: 32px;
}
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
  }
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: .04em;
  transition: color .2s;
  text-decoration: none;
}
.nav-desktop a:hover { color: var(--accent); text-decoration: none; }

/* ---- CTA header (masqué sur mobile, PIEGE PROD #13) ---- */
.header-cta {
  display: none !important;
}
@media (min-width: 768px) {
  .header-cta {
    display: inline-flex !important;
    margin-left: 16px;
    flex-shrink: 0;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--surface-dark);
  color: var(--on-dark);
  padding: 56px 0 32px;
  margin-top: 0; /* PIEGE PROD #12 : jamais de margin-top */
}

.footer-inner {
  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-name { color: var(--on-dark); }
.footer-brand .brand-icon { color: var(--accent-2); }
.footer-brand .brand-sub { color: var(--accent-2); display: block; }

.footer-tagline {
  font-family: var(--ff-body);
  font-size: .9rem;
  color: oklch(68% 0.09 145);
  margin-top: 12px;
  line-height: 1.5;
}

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

.footer-col p,
.footer-col a {
  font-size: .9rem;
  color: oklch(80% 0.04 100);
  line-height: 1.8;
  text-decoration: none;
}
.footer-col a:hover { color: var(--on-dark); text-decoration: none; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid oklch(45% 0.12 145 / 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--text-mute);
}
.footer-bottom a {
  color: var(--accent-2);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--on-dark); }

/* FAB call mobile */
.fab-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 8px 32px oklch(45% 0.12 145 / 0.35);
  z-index: 500;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.fab-call:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 12px 40px oklch(45% 0.12 145 / 0.45); text-decoration: none; color: #fff; }
@media (min-width: 768px) {
  .fab-call { display: none; }
}
.fab-call svg { width: 18px; height: 18px; flex-shrink: 0; }
