/* ─────────────────────────────────────────────
   Section : 80 Quartiers & Ses Habitants
   FULL WIDTH + carrousel CSS
   Desktop : ≈ 2.15 cartes visibles
   Mobile  : ≈ 1.15 carte visible
   ───────────────────────────────────────────── */

/* SECTION : plein écran (full bleed) */
#neighborhoods-strip {
  position: relative;
  margin-inline: calc(50% - 50vw);      /* sort du container centré */
  width: 100vw;
  max-width: 100vw;
  padding: 48px min(4vw, 32px);         /* marges internes */
}

/* Annule le margin-left:10px global de homepage.css */
.homepage-container > section#neighborhoods-strip {
  margin-left: 0 !important;
}

/* CONTENEUR INTERNE */
#neighborhoods-strip .ns-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* HEADER */
#neighborhoods-strip .ns-header {
  margin-bottom: 18px;
}
#neighborhoods-strip .ns-title {
  margin: 0 0 6px 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}
#neighborhoods-strip .ns-sub {
  margin: 0;
  font-family: Georgia, serif;
  opacity: .95;
}

/* PISTE HORIZONTALE = carrousel CSS */
#neighborhoods-strip .ns-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto !important;          /* clé pour le scroll */
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 10px;
  scrollbar-width: thin;                /* barre visible sur Firefox */
}

/* Barre de scroll visible sur WebKit (Chrome / Safari) */
#neighborhoods-strip .ns-strip::-webkit-scrollbar {
  height: 8px;
}
#neighborhoods-strip .ns-strip::-webkit-scrollbar-track {
  background: transparent;
}
#neighborhoods-strip .ns-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.25);
  border-radius: 4px;
}

/* CARTES — base desktop : ≈ 2.15 slides (≈ 46.5%) */
#neighborhoods-strip .ns-card {
  display: block;
  text-decoration: none;
  color: inherit;

  scroll-snap-align: start;
  flex: 0 0 calc(100% / 2.15) !important;
  max-width: calc(100% / 2.15) !important;

  border-radius: 6px;
  outline: 1px solid rgba(255,255,255,.12);
  background: #001944;
  color: #fef8f0;
}

/* CONTENU CARTE */
#neighborhoods-strip .ns-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 18px;
  padding: 20px;
  box-sizing: border-box;
}
#neighborhoods-strip .ns-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#neighborhoods-strip .ns-name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 800;
}
#neighborhoods-strip .ns-excerpt {
  margin: 0;
  font-family: Georgia, serif;
  line-height: 1.35;
}

/* BOUTON */
#neighborhoods-strip .ns-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .95rem;
  border-radius: 12px;
  background: #8B0000;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(139,0,0,.22);
  align-self: flex-start;
}

/* IMAGE – ton HTML utilise <figure class="ns-figure"> */
#neighborhoods-strip .ns-figure {
  width: 100%;
  aspect-ratio: 16 / 9;          /* hauteur cinéma stable */
  overflow: hidden;
  border-radius: 6px;
  margin: 0;
}
#neighborhoods-strip .ns-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* MOBILE : 1.15 carte visible (83%) */
@media (max-width: 767px) {
  #neighborhoods-strip .ns-card {
    flex: 0 0 calc(100% / 1.15) !important;
    max-width: calc(100% / 1.15) !important;
  }

  #neighborhoods-strip .ns-card-inner {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 20px 18px;
  }
}
/* ─────────────────────────────────────────────
   OVERRIDE : enlever la limite 1400px pour cette section
   ───────────────────────────────────────────── */

html body #neighborhoods-strip .stf-inner {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: min(4vw, 32px) !important;
  padding-right: min(4vw, 32px) !important;
}
