/* =====================================================================
   Night Square — pied de page du site (accueil, oct 2026)
   Noir profond, blanc chaud, champagne #C6A66A · Montserrat
   ===================================================================== */

footer.nsf {
  --nsf-bg: #050505;
  --nsf-surface: #0d0d0f;
  --nsf-border: rgba(245, 244, 241, 0.09);
  --nsf-border-strong: rgba(245, 244, 241, 0.16);
  --nsf-text: #f5f4f1;
  --nsf-silver: #b5b5b8;
  --nsf-faint: #8e8e93;
  --nsf-gold: #c6a66a;
  --nsf-gold-hover: #d4b984;
  position: relative;
  display: block;
  margin: 0;
  padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--nsf-border);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(198, 166, 106, 0.08) 0%, transparent 70%),
    var(--nsf-bg);
  color: var(--nsf-silver);
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
footer.nsf *,
footer.nsf *::before,
footer.nsf *::after {
  box-sizing: border-box;
}
.nsf-anchor {
  position: absolute;
  top: 0;
}
.nsf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.nsf-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
footer.nsf a {
  color: inherit;
  text-decoration: none;
}
footer.nsf a:focus-visible,
footer.nsf button:focus-visible {
  outline: 2px solid var(--nsf-text);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ——— Bandeau d'appel ——— */
.nsf-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  margin: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid rgba(245, 244, 241, 0.14);
  border-radius: 24px;
  background: #0e0e0d;
}
footer.nsf .nsf-cta-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--nsf-text);
  text-wrap: balance;
}
footer.nsf .nsf-cta-sub {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
  color: var(--nsf-silver);
}
.nsf-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.nsf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0 1.35rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 800 0.95rem/1 "Montserrat", system-ui, sans-serif;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.nsf-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.18s ease;
}
.nsf-btn:active {
  transform: scale(0.98);
}
footer.nsf .nsf-btn--gold {
  background: var(--nsf-gold);
  color: #0a0a0b;
  box-shadow: 0 10px 28px -12px rgba(198, 166, 106, 0.6);
}
footer.nsf .nsf-btn--gold:hover {
  background: var(--nsf-gold-hover);
}
.nsf-btn--gold:hover svg {
  transform: translateX(3px);
}
footer.nsf .nsf-btn--ghost {
  border-color: var(--nsf-border-strong);
  color: var(--nsf-text);
  background: rgba(245, 244, 241, 0.02);
}
footer.nsf .nsf-btn--ghost:hover {
  background: rgba(245, 244, 241, 0.07);
}

/* ——— Grille de liens ——— */
.nsf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.nsf-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: 21rem;
}
.nsf-logo img {
  display: block;
  width: 132px;
  height: auto;
}
footer.nsf .nsf-tagline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--nsf-silver);
}
.nsf-socials {
  display: flex;
  gap: 0.5rem;
}
footer.nsf .nsf-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nsf-border-strong);
  border-radius: 12px;
  color: var(--nsf-text);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
footer.nsf .nsf-social svg {
  width: 18px;
  height: 18px;
}
footer.nsf .nsf-social:hover {
  border-color: rgba(198, 166, 106, 0.55);
  background: rgba(198, 166, 106, 0.1);
  color: var(--nsf-gold);
  transform: translateY(-2px);
}
footer.nsf .nsf-mail {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nsf-text);
  border-bottom: 1px solid rgba(198, 166, 106, 0.4);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
footer.nsf .nsf-mail:hover {
  color: var(--nsf-gold);
  border-color: var(--nsf-gold);
}

footer.nsf .nsf-col-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nsf-text);
}
.nsf-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer.nsf .nsf-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--nsf-silver);
  transition: color 0.15s ease;
}
footer.nsf .nsf-col a:hover {
  color: var(--nsf-text);
}
.nsf-ext {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

/* ——— Barre du bas ——— */
.nsf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1.4rem 0 1rem;
  border-top: 1px solid var(--nsf-border);
}
footer.nsf .nsf-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--nsf-faint);
}
footer.nsf .nsf-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin: 0;
  font-size: 0.85rem;
}
footer.nsf .nsf-legal a,
footer.nsf .nsf-legal .ns-cookie-manage-btn {
  font-size: 0.85rem;
  color: var(--nsf-silver);
  text-decoration: none;
}
footer.nsf .nsf-legal a:hover,
footer.nsf .nsf-legal .ns-cookie-manage-btn:hover {
  color: var(--nsf-text);
  text-decoration: none;
}
footer.nsf .nsf-legal .footer-nav-separator {
  color: rgba(245, 244, 241, 0.25);
}
.nsf-bottom-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nsf-langs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--nsf-border);
  border-radius: 10px;
}
footer.nsf .nsf-langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 0.4rem;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--nsf-faint);
}
footer.nsf .nsf-langs a:hover {
  color: var(--nsf-text);
}
footer.nsf .nsf-langs a[aria-current="true"] {
  background: rgba(245, 244, 241, 0.08);
  color: var(--nsf-text);
}
footer.nsf .nsf-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--nsf-border-strong);
  border-radius: 12px;
  color: var(--nsf-text);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
footer.nsf .nsf-top svg {
  width: 17px;
  height: 17px;
}
footer.nsf .nsf-top:hover {
  border-color: rgba(198, 166, 106, 0.55);
  color: var(--nsf-gold);
  transform: translateY(-2px);
}
footer.nsf .nsf-recaptcha {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(245, 244, 241, 0.38);
}
footer.nsf .nsf-recaptcha a {
  color: rgba(245, 244, 241, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— Responsive ——— */
@media (max-width: 1000px) {
  .nsf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .nsf-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}
@media (max-width: 700px) {
  .nsf-wrap {
    padding: 0 16px;
  }
  .nsf-cta {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }
  .nsf-cta-actions {
    flex-direction: column;
  }
  .nsf-btn {
    width: 100%;
  }
  .nsf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }
  footer.nsf .nsf-col a {
    min-height: 40px;
  }
  .nsf-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .nsf-bottom-end {
    width: 100%;
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nsf-btn,
  .nsf-btn svg,
  footer.nsf .nsf-social,
  footer.nsf .nsf-top {
    transition: none;
  }
}

/* Les <nav> du site sont en flex par défaut (style.css) : colonnes empilées ici */
footer.nsf nav.nsf-col {
  display: block;
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
footer.nsf nav.nsf-langs {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 700px) {
  /* Place pour la barre d'onglets fixe du mobile (mobile-tabbar.js) */
  footer.nsf {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  /* style.css empile et centre les liens légaux sur mobile : on garde une ligne qui passe à la ligne */
  footer.nsf .nsf-legal {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 0.35rem 0.6rem !important;
  }
  footer.nsf .nsf-legal .footer-nav-separator {
    display: inline !important;
  }
  .nsf-logo img {
    width: 112px;
  }
}

/* Villes : nombre de soirées à venir */
footer.nsf .nsf-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.25rem;
  margin-left: 0.15rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(198, 166, 106, 0.14);
  color: var(--nsf-gold);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Pages sans barre d'onglets mobile : pas besoin de réserver sa place */
@media (max-width: 700px) {
  body.ns-no-mobile-tabbar footer.nsf {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}

/* style.css impose un fond uni aux <footer> de certaines pages : on garde le fond du pied de page */
body footer.nsf {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(198, 166, 106, 0.08) 0%, transparent 70%),
    #050505 !important;
  border-top: 1px solid rgba(245, 244, 241, 0.09) !important;
  margin: 0 !important;
}
