/* Section Événements */
.events-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9f0 0%, #dcfce7 100%);
    position: relative;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #f97316);
}

.events-carousel {
    position: relative;
    margin-top: 3rem;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 10px;
}

.event-card {
    flex: 0 0 calc(25% - 15px); /* 4 éléments sur ordinateur */
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.event-image {
    position: relative;
    width: 100%;
    height: 200px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #059669, #10b981);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.event-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 200px);
}

.event-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 1rem;
}

.event-category i {
    font-size: 1rem;
}

.event-title {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.event-summary {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.event-info i {
    color: #fb923c;
}

.event-btn {
    background: linear-gradient(45deg, #fb923c, #f97316);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

/* Contrôles du carrousel */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: linear-gradient(45deg, #059669, #10b981);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #059669;
    transform: scale(1.2);
}

.dot:hover {
    background: #10b981;
}

/* Responsive pour tablette */
@media screen and (max-width: 1024px) {
    .event-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 éléments sur tablette */
    }
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .event-card {
        flex: 0 0 calc(50% - 10px); /* 2 éléments sur mobile */
    }
    
    .event-image {
        height: 180px;
    }
    
    .event-content {
        padding: 1.2rem;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
}

/* Pour très petits écrans */
@media screen and (max-width: 480px) {
    .event-card {
        flex: 0 0 calc(100% - 10px); /* 1 élément sur très petit écran */
    }
    
    .carousel-track {
        gap: 15px;
        padding: 8px;
    }
}

/* Modal pour les détails d'événement */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-body {
    padding: 2rem;
}

.modal-event-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f0f9f0;
    border-radius: 15px;
}

.modal-date, .modal-location, .modal-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 600;
}

.modal-date i, .modal-location i, .modal-time i {
    color: #fb923c;
    width: 20px;
}

.modal-description {
    margin-bottom: 2rem;
}

.modal-description p {
    color: #374151;
    line-height: 1.7;
    font-size: 1.1rem;
}

.modal-program, .modal-contact {
    margin-bottom: 1.5rem;
}

.modal-program h4, .modal-contact h4 {
    color: #059669;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal-program ul {
    list-style: none;
    padding: 0;
}

.modal-program li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #374151;
}

.modal-program li:before {
    content: '•';
    color: #fb923c;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-contact p {
    color: #374151;
    line-height: 1.6;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}