/* Variables CSS */
:root {
    --em-primary-color: #8B5CF6;
    --em-text-color: #374151;
    --em-border-color: #e5e7eb;
    --em-hover-shadow: rgba(139, 92, 246, 0.15);
}

/* Container principal */
.em-events-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Grille d'événements */
.em-events-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

/* 2 colonnes sur desktop */
.em-events-container[data-columns="2"] .em-events-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Item d'événement */
.em-event-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--em-border-color);
    transition: all 0.2s ease;
    position: relative;
}

.em-event-item:last-child {
    border-bottom: none;
}

.em-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--em-hover-shadow);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 16px;
    margin: 0 -16px;
}

/* Badge de date circulaire */
.em-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--em-primary-color);
    color: white;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.em-event-item:hover .em-date-badge {
    transform: scale(1.05);
}

.em-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.em-month {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
}

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

.em-location {
    font-size: 18px;
    font-weight: 500;
    color: var(--em-text-color);
    line-height: 1.4;
}

/* Styles pour une colonne */
.em-events-container[data-columns="1"] .em-events-grid {
    max-width: 600px;
    margin: 0 auto;
}

.em-events-container[data-columns="1"] .em-event-item {
    padding: 20px 0;
}

.em-events-container[data-columns="1"] .em-date-badge {
    width: 90px;
    height: 90px;
    margin-right: 25px;
}

.em-events-container[data-columns="1"] .em-day {
    font-size: 28px;
}

.em-events-container[data-columns="1"] .em-month {
    font-size: 14px;
}

.em-events-container[data-columns="1"] .em-location {
    font-size: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .em-events-container[data-columns="2"] .em-events-grid {
        grid-template-columns: 1fr;
    }
    
    .em-event-item {
        padding: 12px 0;
    }
    
    .em-date-badge {
        width: 70px;
        height: 70px;
        margin-right: 15px;
    }
    
    .em-day {
        font-size: 20px;
    }
    
    .em-month {
        font-size: 11px;
    }
    
    .em-location {
        font-size: 16px;
    }
    
    .em-event-item:hover {
        transform: none;
        margin: 0;
        padding: 12px 0;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .em-date-badge {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }
    
    .em-day {
        font-size: 18px;
    }
    
    .em-month {
        font-size: 10px;
    }
    
    .em-location {
        font-size: 15px;
    }
}

/* Animation d'entrée pour les nouveaux éléments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.em-event-item {
    animation: fadeInUp 0.3s ease forwards;
}

/* État vide */
.em-events-container .no-events {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-style: italic;
}