/* Page Événements - Styles */

/* Section événements */
.events-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Particles Background */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* S'assurer que le container est au-dessus des images */
.events-section .container {
    position: relative;
    z-index: 5;
}

/* En-tête */
.events-header {
    text-align: center;
    margin-bottom: 60px;
    color: white;
    position: relative;
    z-index: 5;
}

.events-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.events-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Année timeline */
.timeline-year {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 3rem auto 3rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.1);
    display: block;
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    width: fit-content;
}

/* Modern Event Card */
.event-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Image Wrapper */
.event-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card-modern:hover .event-image {
    transform: scale(1.1);
}

/* Date Badge */
.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 60px;
}

.event-date-badge .month {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c5ce7;
    text-transform: uppercase;
}

.event-date-badge .year {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2d3436;
    line-height: 1;
}

/* Event Content */
.event-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fd79a8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    align-items: center;
    color: #636e72;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.event-meta i {
    color: #6c5ce7;
    margin-right: 8px;
}

.event-description {
    color: #636e72;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Tags */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-tag {
    background: #f1f2f6;
    color: #6c5ce7;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-card-modern:hover .event-tag {
    background: rgba(108, 92, 231, 0.1);
}

/* Bouton retour */
.back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: #6c5ce7;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    font-size: 1.5rem;
}

.back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
    color: #6c5ce7;
}

/* Responsive */
@media (max-width: 768px) {
    .events-header h1 {
        font-size: 2rem;
    }

    .events-header p {
        font-size: 1.1rem;
    }

    .event-image-wrapper {
        height: 180px;
    }

    .timeline-year {
        font-size: 2rem;
        padding: 8px 25px;
    }

    .back-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

/* S'assurer que le contenu est visible */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}