
:focus-visible {
    outline: 2px solid var(--color-site-1);
    outline-offset: 2px;
}

/* Styles améliorés pour l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}




/* États ARIA pressés pour les boutons de filtre */
.filter-btn[aria-pressed="true"] {
    background-color: var(--color-site-1);
    color: white;
    border-color: var(--color-site-1);
}

/* Amélioration du contraste pour les textes */
.offer-price,
.train-time {
    font-weight: 600;
    color: #1a1a1a;
}

/* États focus pour les champs de formulaire */
/* .typeahead_station:focus,
.form-control:focus {
    border-color: var(--color-site-1);
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
} */

/* Animation réduite pour les utilisateurs préférant moins de mouvement */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skeleton Loader Styles */
.skeleton-loader {
    padding: 20px;
}

.skeleton-header {
    margin-bottom: 30px;
}

.skeleton-title {
    height: 32px;
    width: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-stepper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.skeleton-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.skeleton-step::before {
    content: '';
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 50%;
}

.skeleton-step::after {
    content: '';
    width: 80px;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-step:not(:last-child) {
    margin-right: 40px;
}

.skeleton-step:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin-left: 50px;
    margin-top: -8px;
    border-radius: 1px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
.hero-Train {
    margin-bottom: 20px;
}
.filtreTrain{border:1px solid #C7DBEB;position:relative;border-radius:8px;padding:8px;z-index:10;}

.filtreTrain  .custom-tabs{padding:8px;border:1px solid #C7DBEB;border-radius:6px;margin-right:16px;margin-bottom:18px;}
.filtreTrain  .custom-tabs .nav-link{color:#000;font-weight:600;font-size:14px;padding:10px 20px;cursor:pointer;display: flex;
  align-items: center;}
.filtreTrain  .custom-tabs .nav-link.active{background-color:var(--color-site-1);border-radius:8px;color:#fff;}
.filtreTrain  .custom-tabs .nav-link.active a{color:#fff;}
.filtreTrain  .custom-tabs .nav-link a{color:inherit;text-decoration:none;}
.filtreTrain  .dropdown-menu{padding:12px;width:100%;min-width:250px;}
.filtreTrain .passager-input{width:100%;background-color:#fff!important;border:none;color:#000;font-weight:500;}
.passenger-selector {
    background: #ffffff;
    border: 1px solid #d1d5db; /* Gris clair comme l'image */
    border-radius: 12px;       /* Coins arrondis prononcés */
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.passenger-selector:hover {
    border-color: #FF5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

/* On stylise l'input pour qu'il ne ressemble plus à un input */
.passenger-display-text {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    width: 100%;
    cursor: pointer;
    padding: 0;
}

/* Ajustement de l'icône utilisateur pour qu'elle soit bien ronde/douce */
.passenger-selector svg rect {
    rx: 12; /* Coins du carré orange clair */
}

.chevron-icon {
    transition: transform 0.3s ease;
}

/* Si le dropdown est ouvert (classe souvent ajoutée par Bootstrap) */
.passenger-selector[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}
.filtreTrain  .btn-search{background-color:var(--color-site-1);width:100%;height:90px;border:none;border-radius:8px;color:white;font-size:18px;font-weight:600;cursor:pointer;position:relative;overflow:hidden;transition:all 0.3s ease;box-shadow:0 4px 15px rgba(0, 0, 0, 0.1);}
.filtreTrain .btn-search:hover{background-color:#FF57221A;border:1px solid #ff57224d;}
.filtreTrain .btn-search:hover svg{filter:brightness(0) saturate(100%) invert(50%) sepia(35%) saturate(6959%) hue-rotate(346deg) brightness(100%) contrast(102%);}
.filtreTrain  .btn-valider-passagers{background-color:var(--color-site-1);color:white;border:none;border-radius:6px;padding:8px 16px;width:100%;cursor:pointer;font-weight:600;}
.filtreTrain  .btn-valider-passagers:hover{background-color:#e64a2e;}

.filtreTrain .form-control{background-color:white;padding:0; border: none;}

.filtreTrain .form-check{display:flex;align-items:center;gap:8px;}
.filtreTrain .form-check-input{margin:0!important;}
.filtreTrain .form-check-label{margin-bottom:0;font-weight:400;font-size:14px;color:#000;}
.filtreTrain .form-check-input[type="checkbox"]{appearance:none;-webkit-appearance:none;width:16px;height:16px;border:1px solid #C7DBEB;border-radius:2px;background-color:#fff;position:relative;flex-shrink:0;}
.filtreTrain .form-check-input[type=checkbox]:focus{outline:none;}
.filtreTrain .form-check-input[type="checkbox"]:checked{background-color:#C7DBEB;border-color:#C7DBEB;}
.filtreTrain .form-check-input[type="checkbox"]:checked::after{content:'';position:absolute;left:4px;top:0;width:6px;height:11px;border:1px solid #fff;border-top:none;border-left:none;transform:rotate(45deg);}
.filtreTrain .dropdown-menu select,.dropdown-menu .passenger-age{border:1px solid #C7DBEB;border-radius:6px;padding:6px;}


@media (min-width: 992px) {

 .Train .search-bar-container.my-0 {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
  }

 .Train .search-bar-main {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    flex-grow: 1;
    height: 85px;
  }

 .Train .search-col {
    display: flex;
    align-items: end;
    padding: 0 5px;
  }

 .Train .section-lg {
    flex: 1.7;
  }

 .Train .section-md {
    flex: 1.5;
  }

 .Train  .v-separator {
    width: 1px;
    height: 50px;
    background-color: #edf1f5;
    margin: 0 10px;
  }

 .Train .icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 87, 34, .1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-site-1);
    flex-shrink: 0;
  }

 .Train  .search-text label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
  }

 .Train  .search-text label.fw-bold.d-block.text-black {
    font-weight: 600;
    font-size: 16px;
    color: #000;
    margin-bottom: 0;
  }

 .Train  .btn-orange-search {
    background-color: var(--color-site-1);
    border: none;
    border-radius: 8px;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
  }

  .Train .btn-orange-search:hover {
    background-color: #e54d1f;
    box-shadow: 0 4px 10px rgba(255, 94, 44, .3);
  }

 .Train .no-icon {
    padding-left: 5px;
  }

 .Train .me-2 {
    margin-right: 8px !important;
  }
}


.Train .form-check {

padding-left: 0;
}
/* ====================== MOBILE ====================== */
@media (max-width: 991.99px) {

  .search-bar-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 14px;
    border: 1px solid #c7dbeb;
  }

  .search-bar-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .search-col {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #eee;
    transition: all 0.25s ease;
  }

  .search-col:hover,
  .search-col:focus-within {
    background: #fff;
    border-color: #FF5722;
    box-shadow: 0 4px 14px rgba(255,87,34,0.15);
  }

  .icon-box {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,87,34,0.15), rgba(255,87,34,0.05));
  }

  .search-text label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    margin-bottom: 2px;
  }

  .search-text input,
  .typeahead__query input {
    border: none;
    outline: none;
    background: transparent !important;
    font-size: 14px;
    font-weight: 600;
    color: #222;
  }

  .v-separator {
    display: none;
  }

  .btn-orange-search {
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FF5722, #ff784e);
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(255,87,34,0.4);
    padding: 10px 20px !important;
  }

  .btn-orange-search svg {
    width: 22px;
  }
}

/* Styles communs (indépendants du breakpoint) */

.search-bar-main .form-control,
.search-bar-main .typeahead__query input {
  font-weight: 500 !important;
  font-size: 16px !important;
}

.search-text input:focus,
.typeahead__query input:focus {
  outline: none;
}

::placeholder {
  color: #bbb;
  font-weight: 400;
}

/* Pour le dropdown des occupations (si tu l'ajoutes plus tard) */
.search-col .dropdown-menu {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  padding: 10px;
}



/* ============================================
   TRAIN CARD
   ============================================ */

.Train .train-card {
    background: #fff;
    border: 0.5px solid #C7DBEB;
   border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}


.Train  .leg-row .train-card {
 
    padding: 20px;
    
}
.Train .train-card.selected-card {
    border: 0.5px solid var(--color-site-1);

}

.Train .card-top {
    display: flex;
    align-items: center;
    padding: 16px 0;
    gap: 14px;
    flex-direction: column;
}


/* ============================================
   ROUTE BLOCK
   ============================================ */

.Train .route-block {
    display: flex;
    align-items: center;
    width: 100%;  
}

.Train .station {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 80px;
}

.Train .station .time {
    font-size: 19px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1;
}

.Train .station .city {
    font-size: 14px;
    color: #64748b;
    line-height: 1.3;
    font-weight: 500;
}

.Train .timeline {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 14px;
    align-items: stretch;
    flex: 1;    
}
.Train .station.right { align-items: flex-end; } 
.Train .tl-track-row {
    display: flex;
    align-items: center;
     width: 100%;
}

.Train .tl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #626568;
    background: transparent;
    flex-shrink: 0;
}

.Train .tl-line {
    flex: 1;            /* déjà présent, mais s'active correctement maintenant */
   height: 2px;
    background: linear-gradient(to right, #cbd5e1, var(--color-site-2));
}

.Train .tl-line::after {
    display: none;
}

.Train .tl-chips {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.Train .dur-chip {
    font-size: 14px;
    background: #f1f5f9;
    border: 0.5px solid #C7DBEB;
    border-radius: 20px;
    padding: 2px 8px;
    color: #475569;
}

.Train .chgt-chip {
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    padding: 2px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
    
.Train .chgt-chip.has-chgt {
    background: #fee2e2;
    color: var(--color-site-1);
}

.Train .chgt-chip.direct {
    background: #dcfce7;
    color: #16a34a;
}

.Train .divider-v {
    width: 0.5px;
    background: #C7DBEB;
    align-self: stretch;
    flex-shrink: 0;
}

/* ============================================
   ACCORDION SEGMENTS
   ============================================ */

.Train .segments-accordion {
    flex: 1;
   min-width: 100%;
}

.Train .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 12px;
    border: 0.5px solid #C7DBEB;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.2s;
}

.Train .accordion-header:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.Train .accordion-header.active {
    background: #fff7ed;
    border-color: var(--color-site-1);
}

.Train .accordion-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.Train .accordion-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.Train .accordion-summary {
    font-size: 14px;
    color: #626568;
}

.Train .accordion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
    color: #626568;
    font-size: 14px;
}

.Train .accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
    color: var(--color-site-1);
}

.Train .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.Train .accordion-content.show {
    max-height: 300px;
    overflow-y: auto;
}

.Train .segments-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 4px 4px;
}

.Train .seg-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #64748b;
    padding: 3px 0;
}

.Train .carrier-badge {
    background: #ede9fe;
    color: #4338ca;
    font-size: 14px;
    font-weight: 500;
    padding: 1px 7px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.Train .seg-stations {     
    color: #1e293b;
    font-size: 11px;
}

.Train .seg-dur {
    color: #626568;
    font-size: 14px;
}

.Train .seg-arrow-small {
    color: #cbd5e1;
}

/* Correspondance avec durée */
.Train .correspondance-row {
    display: flex;
    align-items: center;
    padding: 2px 0;
    margin: auto;
}

.Train .corr-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    border: 0.5px solid #f59e0b;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 14px;
    color: #b45309;
}

/* ============================================
   CARD BOTTOM — OFFRES
   ============================================ */

.Train .card-bottom {
    border-top: 0.5px dashed #C7DBEB;
    display: flex;
    background: #fff;
    gap:2px;
    flex-wrap: wrap;
    padding: 6px 0;
}

.Train .offer-item {
    flex: 1;
    display: flex;
    min-width: 200px;
    gap: 4px;
    padding: 6px;
    cursor: pointer;
    position: relative;
    transition: background 0.1s;
    border-radius: 4px;
}

.Train .offer-item:hover {     
    background: #fafafa;
}

.Train .offer-item:not(:last-child) {
    border-right: 0.5px solid #C7DBEB;
}

.Train .offer-item.best-price {
    background: #fff9f0;
    border: 0.5px solid #f59e0b;
}



.Train .offer-item.best-price.chosen {
    background: #fff3ed;
    border: 0.5px solid var(--color-site-1);
}

.Train .best-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    animation: badgePulse 2s infinite;
    position: absolute;
    letter-spacing: 0.3px;
    top: -10px;
  right: 0;
}

.Train .best-price-badge i {
    font-size: 10px;
    color: #fef3c7;
}

/* Animation pulse subtile */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 3px 12px rgba(245, 158, 11, 0.5);
    }
}
.Train .offer-radio {
    width: 13px;
    height: 13px;
    accent-color: var(--color-site-1);
    cursor: pointer;
    margin-bottom: 3px;
}

.Train .offer-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-site-1);
    line-height: 1.2;
}

.Train .offer-item.best-price .offer-price {
    color: var(--color-site-1);
}

.Train .offer-label {
    font-size: 14px;
    color: #626568;
    margin-top: 1px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.Train .offer-comfort,
.Train .offer-flexibility {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    white-space: nowrap;
}

.Train .offer-comfort i {
    color: #3b82f6;
    font-size: 10px;
}

.Train .offer-flexibility i {
    color: #10b981;
    font-size: 10px;
}

.Train .offer-links {
    font-size: 14px;
    color: #626568;
    margin-top: 2px;
}

.Train .offer-links a {
    color: #626568;
    text-decoration: none;
}

.Train .offer-links a:hover {
    color: #000;
    text-decoration: underline;
}

.Train .offer-links a i {
    font-size: 14px;
    margin-right: 3px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.Train .offer-links a:hover i {
    opacity: 1;
}
.Train .results-header {
 margin:20px 0;
 border-radius: 10px;
   
}



/* ============================================
   STEP 1 — STEPPER ALLER / RETOUR
   ============================================ */

.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #fff;
    border: 2px dashed #C7DBEB;
    border-radius: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.step-circle.done {
    background: var(--color-site-1);
    color: #fff;
}

.step-circle.active {
    background: #fff;
    border: 2px solid var(--color-site-1);
    color: var(--color-site-1);
}

.step-circle.pending {
    background: #f1f5f9;
    border: 0.5px solid #C7DBEB;
    color: #626568;
}

.step-text .s-title {
   font-size: 14px;
  font-weight: 500;
  color: #000;
}

.step-text .s-val {
    font-size: 12px;
    color: #626568;
    margin-top: 1px;
}

.step-connector {
    flex: 0 0 40px;
    height: 0.5px;
    background: #C7DBEB;
    margin: 0 8px;
}

.step-connector.done-c {
    background: var(--color-site-1);
}

/* ============================================
   STEP 2 — FILTRES + TRI
   ============================================ */

.Train .filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    background: #c7dbeb;
    border: 0.5px solid #C7DBEB;
    border-radius: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.Train .filter-bar-label {
    font-size: 12px;
    color: #000;
    flex-shrink: 0;
}

.Train .filter-btn {
    font-size: 11px;
    padding: 4px 11px;
    border: 0.5px solid #C7DBEB;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    color: #475569;
    transition: all 0.15s;
}

.Train .filter-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.Train .filter-btn.on {
    border-color: var(--color-site-1);
    color: var(--color-site-1);
    background: #fff9f0;
}

.Train .sort-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 12px;
}

.Train .sort-lbl {
    font-size: 11px;
    color: #626568;
}

.Train .sort-btn {
    font-size: 11px;
    padding: 3px 10px;
    border: 0.5px solid #C7DBEB;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    color: #475569;
    transition: all 0.15s;
}

.Train .sort-btn:hover {
    background: #f8fafc;
}

.Train .sort-btn.on {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 500;
    border-color: #cbd5e1;
}

/* ============================================
   STEP 4 — MESSAGE AUCUN RÉSULTAT
   ============================================ */

.Train .no-result-inline {
    font-size: 14px;
    color: #626568;
    text-align: center;
    padding: 20px;
    border: 0.5px dashed #C7DBEB;
    border-radius: 10px;
    margin-bottom: 10px;
}

.Train .no-result-inline a {
    color: var(--color-site-1);
    text-decoration: none;
}

.Train .no-result-inline a:hover {
    text-decoration: underline;
}

/* ============================================
   STEP 5 — BARRE STICKY SÉLECTION
   ============================================ */

.Train .selection-recap-sticky {
    position: sticky;
    bottom: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 0.5px solid #C7DBEB;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.Train .sticky-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.Train .sticky-chip {
    background: #f1f5f9;
    border: 0.5px solid #C7DBEB;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
    color: #475569;
    transition: all 0.15s;
}

.Train .sticky-chip strong {
    color: #0f172a;
}

.Train .sticky-chip.filled {
    border-color: var(--color-site-1);
    background: #fff9f0;
}

.Train .sticky-chip.filled strong {
    color: var(--color-site-1);
}

.Train .sticky-total {
    font-size: 17px;
    font-weight: 500;
    color: var(--color-site-1);
    white-space: nowrap;
}

.Train .btn-reserver {
    background: var(--color-site-1);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.Train .btn-reserver:hover {
    background: #d9622a;
    transform: translateY(-1px);
}

.Train .btn-reserver:active {
    transform: scale(0.98);
}

.Train .btn-reserver:disabled {
    background: #C7DBEB;
    color: #626568;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   LEGS GRID
   ============================================ */

.Train .legs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch; /* IMPORTANT */
}

.Train .leg-column {
    display: grid;
    grid-auto-rows: 1fr; /* MAGIC 🔥 */
    gap: 12px;
}
div.leg-column:nth-child(1),
div.leg-column:nth-child(2) {
display: block !important;
}
.Train .leg-title {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 10px 2px;
}
.Train  .leg-title {
    margin: 0 0 1.5rem 0;
    padding: 0.75rem 0;
    font-size: 16px;
    color:  #64748b;
    border-bottom: 1px solid  #C7DBEB;
  }
 .Train .station-label {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background:  #C7DBEB;
    color:  #000;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    margin: 0 0.5rem;
  }




.Train .results-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.Train .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    margin: 30px auto;
    /* max-width: 420px; */
    background: #fff;
    border-radius: 16px;
    border: 0.5px solid #C7DBEB;
}

.Train .empty-state img {
    width: 100px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.Train .empty-state h5 {
    font-size: 15px;
    font-weight: 400;
    color: #64748b;
    margin: 0;
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */

@media (max-width: 768px) {
    .Train .legs-grid {
        grid-template-columns: 1fr;
    }
    .Train .stepper {
        flex-wrap: wrap;
        gap: 12px;
    }
    .Train .step-connector {
        display: none;
    }
}

@media (max-width: 600px) {
    .Train .card-top {
        flex-direction: column;
        gap: 12px;
    }
    .Train .divider-v {
        width: 100%;
        height: 0.5px;
    }
    .Train .card-bottom {
        flex-direction: column;
    }
    .Train .offer-item:not(:last-child) {
        border-right: none;
        border-bottom: 0.5px solid #C7DBEB;
    }
    .Train .selection-recap-sticky {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .Train .btn-reserver {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    .Train .filter-bar {
        gap: 6px;
    }
}

/* Fade-in animation */
.Train .fade-in {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Bouton "Choisir le retour" — pulse au clic */
.Train .pulse-once {
    animation: pulseOnce 0.5s ease;
}
@keyframes pulseOnce {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Bouton retour arrière */
.Train .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
    background: #f8fafc;
    border: 0.5px solid #C7DBEB;
    border-radius: 20px;
    padding: 5px 14px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.15s;
}
.Train .back-btn:hover {
    border-color: #cbd5e1;
    color: #1e293b;
    background: #f1f5f9;
}

/* Banner récap aller affiché sur la vue retour */
.Train .selected-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff9f0;
    border: 0.5px solid var(--color-site-1);
    border-radius: 10px;
    margin-bottom: 12px;
}
.Train .selected-banner .s-route {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}
.Train .selected-banner .s-detail {
    font-size: 11px;
    color: #626568;
    margin-top: 2px;
}
.Train .selected-banner .s-price {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-site-1);
    white-space: nowrap;
}

/* Skeleton Loading Styles */
.Train .skeleton-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.Train .skeleton-card .placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    display: inline-block;
}

.Train .skeleton-card .placeholder-glow {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-card .placeholder-sm {
    height: 12px;
    width: 60px;
}

.skeleton-card .placeholder-lg {
    height: 20px;
    width: 100px;
}

.skeleton-card .time.placeholder {
    height: 24px;
    width: 60px;
    border-radius: 6px;
}

.skeleton-card .city.placeholder {
    height: 16px;
    width: 80px;
    margin-top: 4px;
}

.skeleton-card .tl-dot.placeholder {
    height: 12px;
    width: 12px;
    border-radius: 50%;
}

.skeleton-card .tl-line.placeholder {
    height: 2px;
    width: 100px;
    margin: 0 8px;
}

.skeleton-card .dur-chip.placeholder,
.skeleton-card .chgt-chip.placeholder {
    height: 20px;
    width: 40px;
    border-radius: 12px;
}

.skeleton-card .offer-type.placeholder {
    height: 14px;
    width: 50px;
}

.skeleton-card .offer-price.placeholder {
    height: 24px;
    width: 70px;
}

.skeleton-card .leg-title.placeholder-glow {
    height: 20px;
    width: 200px;
    margin-bottom: 16px;
}

.skeleton-card .s-val.placeholder-glow {
    height: 16px;
    width: 150px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.Train  .input-box {
display: flex;
gap: 10px;
}
/* ============================================
   TYPEAHEAD — GOOGLE MAPS STYLE
============================================ */

.Train  .typeahead__result {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    margin-top: 6px;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

/* LIST */
.Train  .typeahead__list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

/* ITEM */
.Train  .typeahead__item {
    position: relative;
}

/* ============================================
   CONTENT
============================================ */

.Train  .suggestion-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

/* hover / active */
.Train .typeahead__item:hover .suggestion-content,
.Train  .typeahead__item.active .suggestion-content {
    background: #f1f3f4;
}

/* ============================================
   ICON (Google style)
============================================ */

.Train  .suggestion-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background:  #C7DBEB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #626568;
    font-size: 14px;
    flex-shrink: 0;
}

/* ============================================
   TEXT
============================================ */

.Train  .suggestion-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

/* titre principal */
.Train  .suggestion-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* sous-texte (pays / région) */
.Train  .suggestion-code {
    font-size: 12px;
    color: #626568;
    background: none;
    padding: 0;
}

/* ============================================
   HIGHLIGHT (comme Google)
============================================ */

.Train  .typeahead-highlight {
    font-weight: 600;
    color: var(--color-site-1);
    background: transparent;
}

/* ============================================
   ACTIVE INDICATOR (barre gauche)
============================================ */

.Train  .typeahead__item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--color-site-2);
    border-radius: 3px;
}

/* ============================================
   EMPTY
============================================ */

.Train  .typeahead__empty {
    padding: 16px;
    font-size: 13px;
    color: #626568;
    text-align: center;
}

/* ============================================
   SCROLLBAR (light)
============================================ */

.Train  .typeahead__result::-webkit-scrollbar {
    width: 6px;
}

.Train .typeahead__result::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 10px;
}

/* ============================================
   SPINNER (Google style)
============================================ */

.Train .input-spinner::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid var(--color-site-2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}




/* Conteneur principal */
.Train .payment-side-block {
  
    
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

/* Style des Panneaux (Accordeon) */
.Train .panel-default {
    border: 1px solid #ddd;
    border-radius: 6px !important;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: none;
}

/* En-tête du panneau */
.Train .panel-heading {
    background-color: #f0f4f8 !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid #ddd;
}

.Train .panel-title a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

/* Corps du panneau */
.Train .panel-body {
    padding: 20px;
}

/* Badge de confort */
.Train .ticket-comfort-badge {
    margin-bottom: 15px;
}

/* Aligner l'itinéraire (Départ -> Arrivée) */
.Train .ticket-route h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: #2c3e50;
}

/* Organiser les horaires en colonnes propres */
.Train .ticket-schedule .row {
    display: flex;
    margin-top: 15px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

.Train .ticket-schedule .col-sm-6 {
    flex: 1;
}

/* Section Transport et Durée */
.Train .ticket-transport p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Liste des segments */
.Train .ticket-segments h6 {
    margin-top: 15px;
    color: #7f8c8d;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.Train .ticket-segments ul li {
    padding: 5px 0;
    border-bottom: 1px solid #f1f1f1;
}

/* Prix Total en bas */
.Train .recap-total-container {
    margin-top: 20px;
    padding: 15px;
    background: #27ae60;
    color: white;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.Train .recap-total {
    font-size: 1.4em;
}

/* Utilitaires */
.Train .pull-right {
    float: right;
}

/* ============================================
   TRAIN CARD HOVER EFFECTS
   ============================================ */

/* === BASE HOVER: Lift + Shadow + Border === */
.Train .train-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.Train .train-card:hover {
  border-color: #FF5722;

  transform: translateY(-4px);
}






@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}













/* === OFFER ITEM HOVER === */
.Train .train-card:hover .offer-item {
  border-color: #FF5722;
  transform: translateY(-3px);
  background: #fff9f0;

}

.Train .train-card:hover .offer-price {
  color: #e64a2e;
 
  font-weight: 700;
}



.Train .train-card:hover .offer-links a {
  color: #000;
}





/* === BEST PRICE BADGE ANIMATION === */
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.Train .best-price-badge {
  animation: badgeFloat 3s ease-in-out infinite;
}

/* === RESPONSIVE HOVER === */
@media (max-width: 768px) {
  .Train .train-card:hover {
    transform: translateY(-2px);
  }

  .Train .train-card:hover .offer-item {
    transform: translateY(-2px);
  }
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {

background: var(--color-site-2);
border-color: var(--color-site-2);
}