/* Animations séquentielles fluides pour les sections */

/* Configuration générale */
.section {
    position: relative;
}

/* Animation pour les headers de section */
.section-header {
    margin-bottom: 3rem;
}

.section-header svg {
    transition: all 0.6s ease;
}

.section-header .reveal-text {
    transition: all 0.6s ease;
}

/* Animation progressive des éléments */
.stagger-container {
    position: relative;
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animation des grilles */
.grid-container {
    display: grid;
    gap: 2rem;
}

.grid-item {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Animation des widgets musicaux */
.music-widget-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.6s ease;
    backdrop-filter: blur(10px);
}

.music-widget-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Animation des cartes vidéo */
.video-card {
    transition: all 0.6s ease;
    border-radius: 12px;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Animation des cartes événements */
.event-card {
    transition: all 0.6s ease;
    border-radius: 10px;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

/* Animation des éléments des spectacles */
.event-card .date {
    transition: all 0.6s ease;
}

.event-card .event-head {
    transition: all 0.6s ease;
}

.event-card .evnt-detail {
    transition: all 0.6s ease;
}

.event-card .evnt-btns {
    transition: all 0.6s ease;
}

/* Animation hover pour les éléments internes */
.event-card:hover .date {
    transform: scale(1.05);
}

.event-card:hover .ticket-bt {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
}

.event-card:hover .rsvp {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.1);
}

/* Animation des boutons de spectacles */
.ticket-bt, .rsvp {
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin: 0.25rem;
}

/* Animation de pulsation pour les boutons disponibles */
.ticket-bt:not([style*="opacity"]) {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.1); }
}

/* Animation spéciale pour les spectacles complets */
.sold-out-event {
    position: relative;
}

.sold-out-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 45%, rgba(74, 74, 74, 0.1) 50%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.sold-out-event .date {
    opacity: 0.3 !important;
}

.sold-out-event .event-head,
.sold-out-event .evnt-detail {
    opacity: 0.3 !important;
}

.sold-out-event .evnt-btns .ticket-bt {
    opacity: 0.3 !important;
}

.sold-out-event .evnt-btns .rsvp {
    opacity: 1 !important;
}

/* Animation des cartes news */
.news-card {
    transition: all 0.6s ease;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Animation des éléments de galerie */
.gallery-item {
    transition: all 0.6s ease;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animation des plateformes de streaming */
.streaming-platform {
    transition: all 0.6s ease;
    border-radius: 8px;
    padding: 1rem;
}

.streaming-platform:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

/* Animation en cascade pour les listes */
.cascade-animation {
    counter-reset: cascade-counter;
}

.cascade-animation > * {
    counter-increment: cascade-counter;
    animation-delay: calc(var(--cascade-delay, 0.1s) * counter(cascade-counter));
}

/* Animation fluide pour les conteneurs */
.smooth-container {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation de révélation progressive */
.reveal-animation {
    overflow: hidden;
    position: relative;
}

.reveal-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.reveal-animation.aos-animate::before {
    left: 100%;
}

/* Animation des boutons */
.animated-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.animated-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.animated-btn:hover::before {
    left: 100%;
}

/* Amélioration des performances */
.section {
    will-change: transform;
}

.stagger-item {
    will-change: transform, opacity;
}

.grid-item,
.music-widget-container,
.video-card,
.event-card,
.news-card,
.gallery-item {
    will-change: transform, box-shadow;
}

/* Responsive - simplification sur mobile */
@media (max-width: 768px) {
    .music-widget-container:hover,
    .video-card:hover,
    .event-card:hover,
    .news-card:hover,
    .gallery-item:hover {
        transform: none;
        box-shadow: none;
    }

    .stagger-item {
        transform: none;
    }
}

/* Transitions plus fluides pour les effets miroir */
.music-widget-container,
.video-card,
.event-card,
.news-card,
.gallery-item {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation fluide pour les boutons */
.animated-btn {
    transition: all 0.3s ease;
}
