/* ============================================================
   VOIE LIST — page-specific styles
   Inherits: ../css/style.css → ../arrondissements/arrondissement-detail.css
   ============================================================ */

/* ── Page body: inherits from style.css ── */

/* ── Signaler une erreur ── */
.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);
}

/* ── Voie list header ── */
.voie-list-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--surface-primary-foreground-muted, #e6ddca);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}
.voie-list-header-left {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.voie-list-title {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--surface-primary-background, #1a2a42);
}
.voie-list-count {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-color-subtle, #7a7060);
}
.voie-list-sort {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-color-subtle, #7a7060);
  align-self: flex-end;
  flex-shrink: 0;
}
.sort-btn {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-color-subtle, #7a7060);
  background: none;
  border: 1px solid rgba(92, 82, 70, 0.25);
  padding: 0.22rem 0.6rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sort-btn.active {
  color: var(--primary-color, #1a2a42);
  border-color: rgba(26, 42, 66, 0.4);
  background: rgba(26, 42, 66, 0.06);
}
.sort-btn:hover:not(.active) {
  color: var(--primary-color, #1a2a42);
  border-color: rgba(26, 42, 66, 0.3);
}

/* ── Two-column grid of voie rows ── */
.voie-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 2.5rem;
  margin-bottom: 2.5rem;
}
.voie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--surface-primary-foreground-muted, #e6ddca);
  transition: background 0.12s;
}
.voie-list-col .voie-row:first-child {
  border-top: 1px solid var(--surface-primary-foreground-muted, #e6ddca);
}
.voie-row:hover {
  background: var(--background-color-muted, #ede5d3);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.voie-row-name {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.9rem;
  color: var(--primary-color, #1a2a42);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.15s;
}
.voie-row-name:hover {
  color: var(--primary-color-strong, #d63020);
}
.voie-row-count {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle, #7a7060);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.15rem;
  letter-spacing: 0.03em;
}
.voie-row-count strong {
  color: var(--secondary-color, #c9960c);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .voie-list-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }
}
@media (max-width: 600px) {
  .voie-list-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .voie-list-col + .voie-list-col .voie-row:first-child {
    border-top: none;
  }
}
@media (max-width: 560px) {
  .voie-list-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .voie-list-sort {
    align-self: flex-start;
  }
}
