/* Thème personnalisé pour la chronologie détaillée */

/* Couleurs de types d'événements avec effets améliorés */
.event-transport {
    background: linear-gradient(45deg, #28a745, #218838);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.event-hebergement {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.event-activite {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.event-repas {
    background: linear-gradient(45deg, #f39c12, #d35400);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.event-visite {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.event-autre {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Styles de la chronologie */
.timeline-vertical {
    position: relative;
    padding: 20px 0;
}

.timeline-day {
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.timeline-day:nth-child(1) { animation-delay: 0.1s; }
.timeline-day:nth-child(2) { animation-delay: 0.2s; }
.timeline-day:nth-child(3) { animation-delay: 0.3s; }
.timeline-day:nth-child(4) { animation-delay: 0.4s; }
.timeline-day:nth-child(5) { animation-delay: 0.5s; }
.timeline-day:nth-child(6) { animation-delay: 0.6s; }
.timeline-day:nth-child(7) { animation-delay: 0.7s; }

.timeline-day-header {
    border-radius: 12px;
    padding: 15px !important;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-day-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-day-events {
    position: relative;
    padding-left: 20px;
    padding-bottom: 20px;
}

.timeline-day-events:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #e9ecef, #28a745, #e9ecef);
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 1;
}

.timeline-event {
    position: relative;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-icon {
    /* position: absolute; */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    color: white;
    font-size: 1.2rem;
    z-index: 3;
    /* left: 50%;
    transform: translateX(-50%); */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-event:hover .timeline-icon {
    /* transform: translateX(-50%) scale(1.1); */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.timeline-event:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.timeline-time {
    padding-top: 15px;
}

.timeline-time .badge {
    padding: 8px 15px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-day-events:before {
        left: 20px;
    }
    
    .timeline-icon {
        left: 20px;
    }
    
    .timeline-content {
        margin-left: 60px;
    }
    
    .timeline-time {
        text-align: left;
        margin-left: 60px;
        margin-bottom: 10px;
    }
}

/* Filtres */
.filter-buttons {
    margin-bottom: 20px;
}

.filter-buttons .btn {
    margin-right: 5px;
    border-radius: 50px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.filter-buttons .btn:hover {
    transform: translateY(-2px);
}

.filter-buttons .btn.active {
    transform: scale(1.05);
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Effets de survol pour les cartes d'événements */
.event-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* Styles pour les événements continus sur plusieurs jours */
.event-continuous {
    position: relative;
}

.event-continuous::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -20px;
    height: 20px;
    width: 4px;
    background: linear-gradient(to top, var(--bs-primary), transparent);
    z-index: 1;
}

.event-continuous::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -20px;
    height: 20px;
    width: 4px;
    background: linear-gradient(to bottom, var(--bs-primary), transparent);
    z-index: 1;
}

.event-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.event-card .card-header {
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: none;
}

.event-card .card-body {
    padding: 20px;
}

.event-card .event-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: floatAnimation 3s ease-in-out infinite;
    display: inline-block;
}

/* Styles pour la vue calendrier */
.calendar-view {
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.fc-event {
    border-radius: 6px !important;
    border: none !important;
    padding: 5px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease;
}

.fc-event:hover {
    transform: scale(1.02);
    z-index: 5;
}

/* Tooltip personnalisé */
.custom-tooltip {
    position: absolute;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 250px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.custom-tooltip.show {
    opacity: 1;
}

.custom-tooltip-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.custom-tooltip-content {
    font-size: 0.9rem;
    color: #666;
}

/* Highlight pour les événements sélectionnés */
.highlight-event {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { box-shadow: 0 0 0 rgba(52, 152, 219, 0); }
    50% { box-shadow: 0 0 20px rgba(40, 167, 69, 0.8); }
    100% { box-shadow: 0 0 0 rgba(52, 152, 219, 0); }
}
