/* Shared theme, loader and header styles live in common.css */
body.subpage-body {
  background:
    radial-gradient(circle at top right, rgba(255,90,31,0.06), transparent 22%),
    linear-gradient(180deg, #050608 0%, var(--bg0) 100%);
  overflow-x: hidden;
}

.brand-badge {
  min-width: 0;
  height: auto;
  padding: 0 2px 4px 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.78;
  text-transform: lowercase;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: lowercase;
}

.subpage-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 56px;
}

.page-hero {
  margin-bottom: 30px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,90,31,0.12);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}


.page-title, .section-heading, .page-eyebrow {
  font-family: "Frankfurter", var(--font-title) !important;
}
.page-title {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.page-title .accent {
  color: var(--accent);
}

.page-subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--text-1);
  font-size: 15px;
  font-weight: 700;
}

.soft-panel {
  background: linear-gradient(180deg, rgba(18,25,41,0.94), rgba(13,18,33,0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.24);
}

.page-grid {
  display: grid;
  gap: 28px;
}

.page-grid.narrow {
  width: min(920px, 100%);
}

.page-grid.wide {
  width: 100%;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accent-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(18,25,41,0.96), rgba(13,18,33,0.98));
  padding: 22px;
}

.accent-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent-dim);
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}

.accent-card > * {
  position: relative;
}

.accent-card.purple::before { background: rgba(255,90,31,0.22); }
.accent-card.blue::before { background: rgba(59,130,246,0.22); }
.accent-card.amber::before { background: rgba(245,158,11,0.18); }

.label-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.muted-copy,
.card-copy {
  color: var(--text-2);
  line-height: 1.65;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  font-size: 11px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px var(--accent-glow);
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  border-color: var(--border);
}

.secondary-btn:hover {
  color: var(--text-1);
  background: rgba(255,255,255,0.08);
}

.subpage-footer {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding: 22px 24px 32px;
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.footer-lines {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-copy {
  color: var(--text-3);
  font-size: 11px;
}

.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.footer-logo-chip img {
  max-width: 30px;
  max-height: 24px;
  object-fit: contain;
}

/* Lines page */
.lines-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.lines-sidebar,
.lines-map-panel {
  padding: 22px;
}

.map-wrap {
  position: sticky;
  top: 104px;
  overflow: hidden;
}

#map {
  height: 620px;
  background: var(--bg0);
}

.lines-sidebar .filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.count-pill {
  opacity: 0.72;
  font-family: var(--font-mono);
  font-size: 10px;
}

.type-section + .type-section {
  margin-top: 24px;
}

.type-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.type-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.line-count {
  color: var(--text-3);
  font-size: 11px;
}

.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.line-btn {
  min-height: 112px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  text-align: left;
  color: var(--text-1);
  cursor: pointer;
  transition: transform .16s, border-color .18s, background .18s;
}

.line-btn:hover,
.line-btn.selected {
  transform: translateY(-1px);
}

.line-btn .route {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.55;
}

.detail-panel {
  margin-top: 14px;
  display: none;
}

.detail-panel.visible {
  display: block;
}

.detail-inner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18,25,41,0.94), rgba(13,18,33,0.96));
  padding: 18px;
}

.detail-glow {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}

.detail-content {
  position: relative;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-header-copy small,
.detail-section-title {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.detail-header-copy strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.detail-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  cursor: pointer;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.departures,
.corr-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dep {
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 11px;
}

.circ-item {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 12px;
}

.circ-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.map-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 500;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(13,18,33,0.9);
  backdrop-filter: blur(10px);
}

.legend-title {
  margin-bottom: 8px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
}

.legend-label {
  color: var(--text-2);
  font-size: 11px;
}

.leaflet-container {
  background: var(--bg0) !important;
  font-family: var(--font-body) !important;
}

.leaflet-control-zoom a {
  background: var(--bg2) !important;
  color: var(--text-1) !important;
  border-color: var(--border) !important;
}

.leaflet-control-attribution {
  background: rgba(7,11,20,0.8) !important;
  color: var(--text-3) !important;
  font-size: 9px !important;
}

.leaflet-control-attribution a {
  color: var(--text-3) !important;
}

/* Infos and FAQ */
.content-column {
  width: min(920px, 100%);
}

.section-block + .section-block {
  margin-top: 28px;
}

.schedule-list,
.tips-list,
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.night-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
}

.night-emoji,
.tip-icon,
.contact-icon,
.conn-icon {
  flex-shrink: 0;
}

.tarif-card,
.conn-card,
.why-card,
.contact-card,
.tip,
.acc-item {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.tarif-card,
.contact-card,
.why-card,
.acc-item {
  padding: 20px;
}

.conn-card,
.tip {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.tarif-header,
.contact-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.tarif-icon,
.conn-icon,
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,90,31,0.14);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.why-item {
  display: flex;
  gap: 10px;
}

.why-emoji {
  font-size: 22px;
  flex-shrink: 0;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-item.open {
  border-color: rgba(255,90,31,0.28);
  background: rgba(255,90,31,0.06);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.acc-q {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.acc-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}

.acc-item.open .acc-chevron {
  background: var(--accent);
  transform: rotate(180deg);
}

.acc-chevron svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  color: var(--text-2);
}

.acc-item.open .acc-chevron svg {
  color: #fff;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-body-inner {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  line-height: 1.7;
}

.fade-up {
  animation: fadeUp .5s ease both;
}

.line-logo {
  display: block;
  object-fit: contain;
  filter:
    saturate(1.14)
    contrast(1.03)
    brightness(1.01)
    drop-shadow(0 0 0.45px rgba(255,255,255,0.92))
    drop-shadow(0 0 1.1px rgba(255,255,255,0.42))
    drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

.line-logo-sm { width: 26px; height: 26px; }
.line-logo-md { width: 34px; height: 34px; }
.line-logo-lg { width: 44px; height: 44px; }
.badge-wrap { display: inline-flex; align-items: center; justify-content: center; }
.badge-wrap-sm { width: 26px; height: 26px; }
.badge-wrap-md { width: 34px; height: 34px; }
.badge-wrap-lg { width: 44px; height: 44px; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.badge-sm { min-width: 26px; height: 26px; font-size: 11px; padding: 0 5px; border-radius: 6px; }
.badge-md { min-width: 34px; height: 34px; font-size: 13px; padding: 0 7px; }
.badge-lg { min-width: 44px; height: 44px; font-size: 16px; padding: 0 10px; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .lines-layout {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    position: static;
  }

  #map {
    height: 420px;
  }

  .detail-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .subpage-main,
  .footer-inner {
    width: min(100%, calc(100% - 32px));
  }

  .subpage-main {
    padding-top: 28px;
  }

  .page-title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .page-subtitle {
    font-size: 14px;
  }

  .lines-sidebar,
  .lines-map-panel {
    padding: 18px;
  }

  .filter-btn {
    font-size: 12px;
  }

  .lines-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage-footer {
    padding: 20px 16px 28px;
  }
}
