/* ======================
   ANIMATIONS
   ====================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Classes d'animation */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
    opacity: 0;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-on-hover:hover {
    animation: pulse 0.3s ease-in-out;
}

/* Délais pour effet cascade */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

/* ======================
   STATUS INDICATORS
   ====================== */
.status-indicator {
    border-radius: 8px;
    padding: 12px 16px;
    border-left: 4px solid;
}

.status-online {
    background-color: #f0f9f0;
    border-left-color: #22c55e;
}

.status-offline {
    background-color: #fef3f3;
    border-left-color: #ef4444;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.status-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.status-text {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.status-hours {
    color: #6b7280;
    font-size: 13px;
    margin-left: auto;
}

.status-icon i {
    font-size: 2.5rem;
}

.next-opening-info {
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

/* ======================
   HERO SECTION
   ====================== */
.hero-title {
    color: #212529;
}

.feature-item {
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.feature-item:hover {
    transform: translateX(5px);
    background: rgba(0, 123, 255, 0.05);
}

.feature-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2);
}

.image-container {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
}

.image-container img {
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* ======================
   SERVICE OVERLAY
   ====================== */
.service-overlay {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    border-radius: inherit;
}

/* ======================
   FORMS & UTILITIES
   ====================== */
.fs-7 {
    font-size: 0.875rem;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Styles pour la carte de train */
.train-container {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.train-line-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    padding: 16px 20px;
}

.train-line-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 16px 20px;
}

.separator {
    border: none;
    height: 2px;
    background: #d1d4d7;
    margin: 0;
}

.train-schedule {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-row {
    display: flex;
    align-items: baseline;
}

.time {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    min-width: 50px;
}

.station {
    font-size: 16px;
    color: #000;
    margin-left: 8px;
}

.duration-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.duration-icon {
    width: 16px;
    height: 16px;
    border: 1px solid #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.duration-icon::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 5px;
    background: #6c757d;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
}

.duration-icon::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 1px;
    background: #6c757d;
    top: 50%;
    left: 7px;
    transform: translateY(-50%);
}

.duration-text {
    font-size: 14px;
    color: #6c757d;
}

.amenities {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amenity-icon {
    font-size: 14px;
    color: #6c757d;
}

.status-badge {
    font-size: 14px;
    color: #000;
    font-weight: 400;
}

/* Animation Morphing + Shimmer avec votre dégradé */
.status-badge-morph {
    font-size: 14px;
    color: white !important;
    font-weight: 600;
    background: linear-gradient(135deg, #453B90 0%, #6366f1 100%);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    animation: morph 3s infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(69, 59, 144, 0.3);
}

.status-badge-morph::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 20px;
        transform: scale(1) rotate(0deg);
        background: linear-gradient(135deg, #453B90 0%, #6366f1 100%);
    }

    25% {
        border-radius: 10px;
        transform: scale(1.1) rotate(5deg);
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    }

    50% {
        border-radius: 5px;
        transform: scale(1.05) rotate(-5deg);
        background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    }

    75% {
        border-radius: 15px;
        transform: scale(1.08) rotate(3deg);
        background: linear-gradient(135deg, #a855f7 0%, #453B90 100%);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

