/**
 * Styles pour l'affichage des événements en front-end
 */

/* Conteneur de liste d'événements */
.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

/* Style pour chaque événement */
.event-item {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Vignette de l'événement */
.event-thumbnail {
    height: 180px;
    overflow: hidden;
}

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

.event-item:hover .event-thumbnail img {
    transform: scale(1.05);
}

/* Contenu de l'événement */
.event-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 18px;
    margin: 0 0 15px;
    line-height: 1.3;
}

/* Méta-informations de l'événement */
.event-meta {
    margin-top: auto;
}

.event-date {
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.event-past {
    background-color: #f0f0f0;
    color: #666;
}

.event-future {
    background-color: #e8f4ff;
    color: #0066cc;
}

/* Boutons d'action */
.event-action {
    margin-top: 15px;
}

.event-action-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.event-register {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.event-register:hover {
    background-color: #45a049;
    color: white;
}

.event-replay {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ddd;
}

.event-replay:hover {
    background-color: #e9ecef;
    color: #212529;
}

/* Message quand il n'y a pas d'événements */
.no-events {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
}
