/* Alertes de service affichées par trajet et par tronçon. */
.route-alert-chip {
  display: inline-flex;
  min-height: 25px;
  margin-left: auto;
  padding: 3px 8px;
  align-items: center;
  gap: 5px;
  color: #8a5310;
  font-size: .67rem;
  font-weight: 800;
  border: 1px solid #f2cd7d;
  border-radius: 7px;
  background: #fff6da;
}
.route-alert-chip.is-severe { color: #a12d2d; border-color: #efb0aa; background: #fff0ee; }
.route-alert-chip.is-info { color: #17627d; border-color: #add9e8; background: #edf9fd; }

.journey-alerts-summary {
  --alert-color: #c77912;
  --alert-soft: #fff8e7;
  margin: -13px 0 30px;
  padding: 15px;
  color: #5d420d;
  border: 1px solid #efd08b;
  border-radius: 18px;
  background: radial-gradient(circle at 95% 0, rgba(255, 202, 92, .25), transparent 38%), var(--alert-soft);
  box-shadow: 0 10px 25px rgba(94, 62, 9, .08);
  animation: journeyAlertsIn .35s both ease-out;
}
.journey-alerts-summary.is-severe { --alert-color: #c7433c; --alert-soft: #fff3f1; color: #752522; border-color: #efb7b1; }
.journey-alerts-summary.is-info { --alert-color: #2384a4; --alert-soft: #f0f9fc; color: #174e62; border-color: #b9dfe9; }

.journey-alerts-heading { display: flex; align-items: center; gap: 11px; }
.journey-alerts-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: var(--alert-color);
  box-shadow: 0 6px 15px color-mix(in srgb, var(--alert-color) 25%, transparent);
}
.journey-alerts-heading > div > span,
.journey-alerts-heading > div > strong { display: block; }
.journey-alerts-heading > div > span {
  margin-bottom: 1px;
  color: var(--alert-color);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.journey-alerts-heading > div > strong { color: #102a43; font-family: "Manrope", sans-serif; font-size: .9rem; }
.journey-alerts-list { display: grid; margin-top: 12px; gap: 7px; }

.journey-alert-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--alert-color) 24%, #dfe7e4);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
}
.journey-alert-card summary {
  display: grid;
  padding: 10px 11px;
  align-items: center;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  gap: 9px;
  list-style: none;
  cursor: pointer;
}
.journey-alert-card summary::-webkit-details-marker { display: none; }
.journey-alert-card-symbol {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--alert-color);
  border-radius: 8px;
  background: color-mix(in srgb, var(--alert-color) 12%, #fff);
}
.journey-alert-card-title { min-width: 0; }
.journey-alert-card-title small,
.journey-alert-card-title strong { display: block; }
.journey-alert-card-title small {
  color: var(--alert-color);
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.journey-alert-card-title strong {
  margin-top: 2px;
  overflow: hidden;
  color: #20384d;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.journey-alert-chevron { color: var(--alert-color); font-size: .75rem; transition: transform .2s ease; }
.journey-alert-card[open] .journey-alert-chevron { transform: rotate(180deg); }
.journey-alert-card-body { padding: 0 12px 11px 48px; color: #506779; font-size: .68rem; }
.journey-alert-card-body p { margin: 0 0 6px; }
.journey-alert-card-body a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--alert-color);
  font-weight: 800;
  text-decoration: none;
}

.journey-leg-alert {
  display: flex;
  margin-top: 10px;
  padding: 8px 9px;
  align-items: flex-start;
  gap: 8px;
  color: #88530d;
  border: 1px solid #efd08b;
  border-radius: 10px;
  background: #fff8e7;
}
.journey-leg-alert.is-severe { color: #9f302b; border-color: #efb7b1; background: #fff2f0; }
.journey-leg-alert.is-info { color: #17627d; border-color: #b9dfe9; background: #f0f9fc; }
.journey-leg-alert > i { margin-top: 1px; }
.journey-leg-alert span,
.journey-leg-alert strong,
.journey-leg-alert small { display: block; min-width: 0; }
.journey-leg-alert strong { font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.journey-leg-alert small {
  margin-top: 1px;
  overflow: hidden;
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes journeyAlertsIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 430px) {
  .route-alert-chip { width: 100%; margin-left: 0; justify-content: center; }
  .journey-alerts-summary { padding: 12px; }
  .journey-alert-card-body { padding-left: 12px; }
}

.journey-alert-operator {
  display: inline-flex;
  margin-top: 4px;
  align-items: center;
  gap: 5px;
  color: #58727f;
  font-size: .59rem;
  font-weight: 700;
}

.journey-alert-operator i {
  color: var(--alert-color);
}

.journey-leg-alert em {
  display: inline-flex;
  margin-top: 3px;
  align-items: center;
  gap: 4px;
  color: currentColor;
  font-size: .58rem;
  font-style: normal;
  font-weight: 700;
  opacity: .82;
}
