/* 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 - Mode 1 colonne */
.em-events-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Mode 2 colonnes - Utilisation de CSS columns */
.em-events-two-columns {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.em-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Item d'événement */
.em-event-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #000000;
    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: 12px;
    margin: 0 -16px;
}

/* Badge de date circulaire */
.em-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--em-primary-color);
    color: white;
    margin-right: 16px;
    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: 18px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2px;
}

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

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

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

/* Styles pour les liens d'événements */
.em-event-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.em-event-link:hover {
    text-decoration: none;
}

.em-event-link:hover .em-location {
    color: var(--em-primary-color);
    transition: color 0.2s ease;
}

/* 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: 16px 0;
    margin: 0;
}

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

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

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

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

/* Responsive design */
@media (max-width: 768px) {
    .em-events-two-columns {
        flex-direction: column;
        gap: 0;
    }
    
    .em-event-item {
        padding: 12px 0;
    }
    
    .em-date-badge {
        width: 55px;
        height: 55px;
        margin-right: 12px;
    }
    
    .em-day {
        font-size: 16px;
        font-weight: 600;
    }
    
    .em-month {
        font-size: 9px;
        font-weight: 500;
    }
    
    .em-location {
        font-size: 14px;
        font-weight: 400;
    }
    
    .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: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .em-day {
        font-size: 14px;
    }
    
    .em-month {
        font-size: 8px;
    }
    
    .em-location {
        font-size: 13px;
    }
}

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