/* === NAHIBU FOOTER === */

.nh-footer {
  background: var(--nh-navy-900);
  color: rgba(255,255,255,.85);
  padding: var(--s-12) 0 0;
}

[data-theme="dark"] .nh-footer { background: #050d1e; }

.nh-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-10);
  padding-bottom: var(--s-11);
}

.nh-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.nh-footer-logo {
  display: inline-flex;
  align-items: center;
}
.nh-footer-logo .nh-logo-img {
  height: 38px;
  width: auto;
  opacity: .92;
  display: block;
}
/* Footer toujours sur fond navy → toujours la version blanche */
.nh-footer-logo .nh-logo-light { display: none; }
.nh-footer-logo .nh-logo-dark  { display: block; }

.nh-footer-tagline {
  font: 400 14px/1.6 var(--nh-sans);
  color: rgba(255,255,255,.5);
  max-width: 260px;
}

.nh-footer-socials {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.nh-footer-socials a {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.15);
  display: grid; place-items: center;
  color: rgba(255,255,255,.6);
  transition: all var(--t-fast) var(--ease-out);
}
.nh-footer-socials a:hover { border-color: var(--nh-cyan-600); color: var(--nh-cyan-500); }
.nh-footer-socials svg { width: 16px; height: 16px; }

.nh-footer-col h3 {
  font: 600 11px/1 var(--nh-mono); /* +weight for legibility */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78); /* WCAG AA: was .4 (3.62:1), now ≈8.5:1 on #14224a */
  margin-bottom: var(--s-4);
}
.nh-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.nh-footer-col a {
  font: 400 14px/1.4 var(--nh-sans);
  color: rgba(255,255,255,.6);
  transition: color var(--t-fast) var(--ease-out);
}
.nh-footer-col a:hover { color: var(--nh-cyan-500); }

.nh-footer-bot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--s-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font: 400 12px/1.4 var(--nh-sans);
  color: rgba(255,255,255,.7); /* WCAG AA: was .35 (3.09:1), now ≈7:1 on #14224a */
}
.nh-footer-legal { display: flex; gap: var(--s-6); }
.nh-footer-legal a { color: rgba(255,255,255,.7); transition: color var(--t-fast) var(--ease-out); }
.nh-footer-legal a:hover { color: rgba(255,255,255,.95); }

/* ─── MOBILE-ONLY (≤880px). Desktop above is untouched. ─── */
@media (max-width: 880px) {
  .nh-footer-top { grid-template-columns: 1fr; gap: var(--s-7); }
  .nh-footer-bot { flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-5) 0; }
  .nh-footer-tagline { font-size: 15px; color: rgba(255,255,255,.62); max-width: none; }
  .nh-footer-brand { gap: var(--s-3); }

  /* Tap targets ≥44px on mobile only */
  .nh-footer-socials a { width: 44px; height: 44px; }
  .nh-footer-socials svg { width: 18px; height: 18px; }

  .nh-footer-col a {
    display: inline-block;
    font-size: 15px;
    color: rgba(255,255,255,.72);
    padding-block: 6px;
  }
  .nh-footer-col ul { gap: var(--s-1); }

  .nh-footer-legal { gap: var(--s-2) var(--s-5); flex-wrap: wrap; }
  .nh-footer-legal a {
    display: inline-flex;
    align-items: center;
    padding: 13px 4px;
    min-height: 44px;
  }

  .nh-footer-logo { padding: 4px 0; }
}
