/* ============================================================
   QUARTIER DETAIL — overrides only
   Inherits: ../css/style.css → ../arrondissements/arrondissement-detail.css
   ============================================================ */

/* ── Hero: single-column layout (no arrondissement number column) ── */
.arr-hero-content {
  position: relative;              /* positioning context for badge */
  grid-template-columns: 1fr;      /* override the arr 2-col grid */
  gap: 0;
  padding: 3rem 4rem 3.5rem;
}
.arr-hero-number {
  display: none;                   /* not used on quartier pages */
}
.arr-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

/* ── Arrondissement back-badge — top-right corner of hero ── */
.arr-hero-arr-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55);
  background: rgba(201, 150, 12, 0.1);
  border: 1px solid rgba(201, 150, 12, 0.3);
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.arr-hero-arr-badge:hover {
  color: var(--secondary-color);
  border-color: rgba(201, 150, 12, 0.55);
}

/* ── Section count link (e.g. "Voir les rues") ── */
.section-count a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 42, 66, 0.2);
  transition: color 0.15s, border-color 0.15s;
}
.section-count a:hover {
  color: var(--secondary-color);
  border-color: rgba(201, 150, 12, 0.4);
}

/* ============================================================
   STREET STRIP (Option C) — 3-column compact grid
   ============================================================ */
.street-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2.5rem;
}
.street-strip-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.48rem 0;
  border-bottom: 1px solid var(--surface-primary-foreground-muted, #e6ddca);
  transition: background 0.12s;
}
.street-strip-col .street-strip-row:first-child {
  border-top: 1px solid var(--surface-primary-foreground-muted, #e6ddca);
}
.street-strip-row:hover {
  background: var(--background-color-muted, #ede5d3);
  margin: 0 -0.4rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.street-strip-name {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.95rem;
  color: var(--primary-color, #1a2a42);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.35;
}
.street-strip-name:hover {
  color: var(--primary-color-strong, #d63020);
}
.street-strip-count {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle, #7a7060);
  white-space: nowrap;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.street-strip-count strong {
  color: var(--secondary-color, #c9960c);
  font-weight: 600;
}
.street-strip-footer {
  margin-top: 0.85rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-color-subtle, #7a7060);
  font-style: italic;
}
.street-strip-more {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color, #1a2a42);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 42, 66, 0.2);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.street-strip-more:hover {
  color: var(--primary-color-strong, #d63020);
  border-color: rgba(214, 48, 32, 0.3);
}

/* ============================================================
   SIGNALER UNE ERREUR — above footer
   ============================================================ */
.signaler-wrap {
  text-align: center;
  padding: 1rem 2rem 1.25rem;
  border-top: 1px solid var(--surface-primary-foreground-muted, #e6ddca);
}
.signaler-link {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-color-subtle, #7a7060);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(122, 112, 96, 0.25);
  padding-bottom: 1px;
  transition: color 0.15s;
}
.signaler-link:hover {
  color: var(--primary-color-strong, #d63020);
}
.signaler-link svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

/* ============================================================
   PREV / NEXT BAR — quartier navigation
   ============================================================ */
.prev-next {
  background: var(--surface-primary-background);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--secondary-color);
}
.prev-next-item {
  padding: 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  transition: background 0.15s;
}
.prev-next-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.prev-next-item + .prev-next-item {
  border-left: 1px solid rgba(201, 150, 12, 0.12);
  align-items: flex-end;
  text-align: right;
}
.prev-next-label {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
}
.prev-next-name {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--background-color, #f5f0e8);
  line-height: 1.2;
}
.prev-next-meta {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(201, 150, 12, 0.65);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .arr-hero-content {
    padding: 2rem 2rem 2.5rem;     /* narrower padding at medium widths */
  }
  .prev-next-item {
    padding: 1rem 2rem;
  }
}
@media (max-width: 860px) {
  .street-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;
  }
  .street-strip-col:last-child .street-strip-row:first-child {
    border-top: none;
  }
}
@media (max-width: 640px) {
  .arr-hero-content { padding: 1.5rem 1.25rem 2rem; }
  .arr-hero-title {
    font-size: 2rem;
  }
  .arr-hero-arr-badge {
    font-size: 0.58rem;
    padding: 0.25rem 0.6rem;
  }
  .prev-next {
    grid-template-columns: 1fr;
  }
  .prev-next-item + .prev-next-item {
    border-left: none;
    border-top: 1px solid rgba(201, 150, 12, 0.12);
    align-items: flex-start;
    text-align: left;
  }
  .signaler-wrap {
    padding: 1rem 1.25rem;
  }
}
@media (max-width: 560px) {
  .street-strip-grid {
    grid-template-columns: 1fr;
  }
  .street-strip-col + .street-strip-col .street-strip-row:first-child {
    border-top: none;
  }
}
