/* ══════════════════════════════════════════════
   NOCTAMBUS — HORAIRES.CSS
══════════════════════════════════════════════ */

/* ── Hero ── */
.page-hero {
  background-image: url(/assets/Materials/Img/horaires.png);
}

/* ══════════════════════════════════════════════
   HORAIRES SECTION — fond bleu foncé
══════════════════════════════════════════════ */
.horaires-section {
  background: var(--clr-bg);
  padding: var(--sp-lg) 0 var(--sp-xl);
}

.horaires-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-blanc);
  margin-bottom: var(--sp-lg);
}

/* ── Tabs Par ligne / Par arrêt ── */
.horaires-tabs {
  display: flex;
  border-bottom: 2px solid rgba(175, 175, 230, 0.2);
  margin-bottom: var(--sp-md);
}

.htab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: rgba(175, 175, 230, 0.5);
  padding: 14px 44px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  transition: all var(--t-fast);
  position: relative;
}

.htab.active {
  background: var(--clr-b2);
  color: var(--clr-blanc);
}

.htab:hover:not(.active) {
  color: var(--clr-blanc);
}

/* ── Sub tabs ── */
.horaires-subtabs {
  display: flex;
  border-bottom: 2px solid rgba(175, 175, 230, 0.15);
  margin-bottom: var(--sp-md);
  flex-wrap: wrap;
}

.hsubtab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(175, 175, 230, 0.5);
  padding: 12px 32px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
}

.hsubtab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clr-blanc);
  transform: scaleX(0);
  transition: transform var(--t-fast);
}

.hsubtab.active {
  color: var(--clr-blanc);
}

.hsubtab.active::after {
  transform: scaleX(1);
}

.hsubtab:hover:not(.active) {
  color: rgba(175, 175, 230, 0.8);
}

/* ── Lignes picker ── */
.lignes-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: var(--sp-sm) 0 var(--sp-md);
}

.picker-badge {
  cursor: pointer;
  transition: transform 0.18s, filter 0.18s;
  border-radius: 30px;
}

.picker-badge img {
  height: 75px;
  width: auto;
  display: block;
  border-radius: 30px;
}

.picker-badge:hover {
  transform: scale(1.12) translateY(-3px);
}

.picker-badge.selected {
  outline: 3px solid var(--clr-blanc);
  outline-offset: 3px;
  transform: scale(1.06);
}

/* ── Par arrêt search ── */
.arret-search-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: var(--sp-sm);
  flex-wrap: wrap;
}

.arret-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
  background: var(--clr-b2);
  border-radius: var(--r-full);
  padding: 14px 22px;
}

.arret-search-field img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: invert(40%) sepia(90%) saturate(600%) hue-rotate(355deg) brightness(1);
}

.arret-search-field input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--clr-blanc);
  width: 100%;
}

.arret-search-field input::placeholder {
  color: rgba(175, 175, 230, 0.55);
}

.arret-select-field {
  flex: 1;
  min-width: 240px;
  background: var(--clr-b2);
  border-radius: var(--r-full);
  padding: 15px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(175, 175, 230, 0.55);
  border: none;
  outline: none;
  appearance: none;
  cursor: pointer;
}

/* ══════════════════════════════════════════════
   TIMELINE SECTION — fond crème --clr-blanc
══════════════════════════════════════════════ */
.timeline-section {
  background: var(--clr-cream);
  padding: var(--sp-xl) 0;
}

.timeline-section .container {
  max-width: 1650px;
}

.timeline-header {
  margin-bottom: var(--sp-md);
}

.timeline-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.selected-line-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.sli-direction {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
}

.sli-validity {
  font-size: 0.78rem;
  color: var(--clr-bf);
  font-family: var(--font-body);
}

.btn-sens-inverse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--clr-orange);
  border: 1.5px solid var(--clr-orange);
  border-radius: var(--r-full);
  padding: 8px 18px;
  background: none;
  cursor: pointer;
  transition: all var(--t-fast);
}

.btn-sens-inverse:hover {
  background: var(--clr-orange);
  color: #fff;
}

/* Layout */
.timeline-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-lg);
  align-items: start;
}

/* ── Stop rows ── */
.timeline-stops {
  display: flex;
  flex-direction: column;
  max-width: 500px;
}

.stop-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 0px 10px;
  cursor: pointer;
  border-radius: 10px;
  height: 80px;
}

.stop-row:hover {
  background: rgba(27, 0, 105, 0.05);
}

.stop-row.active {
  background: rgba(27, 0, 105, 0.08);
}

/* Badges à gauche */
.stop-badges {
  display: flex;
  gap: 4px;
  width: 90px;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
}

/* Ligne continue verticale + dot */
.stop-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  flex-shrink: 0;
  position: relative;
}

.stop-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 5px solid var(--clr-bg);
  background: var(--clr-cream);
  flex-shrink: 0;
  z-index: 2;
  transition: all 0.15s;
  margin: 0;
  position: absolute;
  top: 32%;
}

.stop-row:hover .stop-dot,
.stop-row.active .stop-dot {
  background: var(--clr-orange);
  border-color: var(--clr-orange);
}

/* Terminateurs : premier et dernier = barre épaisse */
.stop-row.stop-terminal .stop-dot {
  width: 10px;
  height: 36px;
  border-radius: 4px;
  background: var(--clr-bg);
  border: none;
  transform: rotate(90deg);
}

.stop-line {
  width: 5px;
  flex: 1;
  background: var(--clr-bg);
  min-height: 20px;
}

/* Nom + temps */
.stop-info-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.stop-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #1a1a1a;
}

.stop-time {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(27, 0, 105, 0.35);
}

/* ── Info panel ── */
.timeline-info-panel {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-card {
  background: var(--clr-bg);
  border-radius: 20px;
  padding: 24px;
}

.tip-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-blanc);
  margin-bottom: 4px;
}

.tip-card>p {
  font-size: 0.8rem;
  color: rgba(175, 175, 230, 0.6);
  margin-bottom: 18px;
}

/* Dropdown arrêt */
.tip-dropdown-wrap {
  background: var(--clr-b2);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  cursor: pointer;
}

.tip-dropdown-wrap span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--clr-blanc);
}

.tip-dropdown-arrow {
  color: var(--clr-orange);
}

/* Date row */
.tip-date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tip-date-icon {
  width: 44px;
  height: 44px;
  background: var(--clr-orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tip-date-input {
  flex: 1;
  background: var(--clr-b2);
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-blanc);
  outline: none;
  color-scheme: dark;
}

/* Actions */
.tip-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tip-dl-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--clr-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.tip-dl-btn:hover {
  background: var(--clr-orange-dark);
}

/* select natif caché */
.tip-dropdown {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Connexions */
.tip-connections {
  background: var(--clr-bg);
  border-radius: 20px;
  padding: 20px 24px;
}

.tip-connections h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--clr-blanc);
  margin-bottom: 12px;
}

.conn-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .timeline-layout {
    grid-template-columns: 1fr;
  }

  .timeline-info-panel {
    position: static;
  }

  .arret-search-row {
    flex-direction: column;
  }
}