/* Page Événements - Styles */

/* Navigation blanche comme sur la page index */
/* Les styles de navigation.css s'appliquent ici aussi */

/* 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;
}

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

/* Ajouter des éléments décoratifs flottants */
.events-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=600&q=80');
    background-size: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.35;
    z-index: 0;
}

.events-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=600&q=80');
    background-size: cover;
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    opacity: 0.35;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

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

.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);
}

/* Card événement */
.event-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* Layout avec photo */
.event-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    min-height: 250px;
}

/* Photo de l'événement */
.event-photo {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
}

.event-image {
    width: 100%;
    height: 100%;
    flex: 1;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.event-card:hover .event-image {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Contenu de l'événement */
.event-content {
    flex: 1;
    min-width: 0;
}

.event-card:hover {
    transform: translateY(-10px) scale(10.02);
    box-shadow: 0 25px 60px rgba(108, 92, 231, 0.3);
}

/* Date de l'événement */
.event-date {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Titre de l'événement */
.event-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Lieu */
.event-location {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-location i {
    margin-right: 8px;
}

/* Description */
.event-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Tags */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.event-tag {
    background: rgba(108, 92, 231, 0.1);
    color: #667eea;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Type d'événement */
.event-type {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.3);
}

/* Bouton retour */
.back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: #667eea;
    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: #667eea;
}

/* Année timeline */
.timeline-year {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 3rem 0 2rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
}

/* Responsive */
@media (max-width: 768px) {
    .events-header h1 {
        font-size: 2rem;
    }
    
    .events-header p {
        font-size: 1.1rem;
    }
    
    .event-card {
        padding: 2rem;
    }
    
    .event-title {
        font-size: 1.5rem;
    }
    
    /* Layout mobile - empiler verticalement */
    .event-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .event-photo {
        flex: none;
        width: 100%;
        height: 200px;
    }
    
    .event-image {
        border-radius: 12px;
    }
    
    .event-type {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .timeline-year {
        font-size: 1.5rem;
        margin: 2rem 0 1.5rem;
    }
    
    .back-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
    
    /* Cacher toutes les images décoratives sur mobile */
    .events-section::before,
    .events-section::after {
        display: none;
    }
}

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