/* Conteneur global de la liste */
.events-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Carte d'événement */
.event-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Image de l'événement (icone du type) */
.event-image img {
    border-radius: 5px;
    width: 100px !important;
    height: auto;
    object-fit: cover;
}

/* Zone de texte */
.event-details {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: space-between;
}

.event-details p {
    margin: 0 0 5px 0;
    padding: 0;
}

.event-top {
    margin-bottom: 8px;
}

/* Description */
.event-description {
    font-style: italic;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Version “raccourcie” (utilisée pour Voir plus...) */
.event-description.short-description {
    -webkit-line-clamp: 5; /* Limite à 5 lignes */
}

/* Justification quand on ajoute la classe "justify" */
.event-description.justify {
    text-align: justify;
}

/* Bouton d'action */
.event-signup {
    display: inline-block;
    text-align: center;
    padding: 5px 20px;
    color: #fff !important;
    background: #e87dea;
    border: 2px solid #e87dea;
    border-radius: 5px;
}

.event-signup:hover {
    text-decoration: none;
    background: #c28eff;
    border-color: #c28eff;
    transition: ease 0.3s;
}

/* Bouton Voir plus / Voir moins */
.toggle-description {
    background-color: transparent;
    font-weight: bold;
    color: #000;
    border: none;
    cursor: pointer;
    float: right;
    margin-top: 5px;
}

.toggle-description:hover {
    color: #c28eff;
    transition: 0.3s;
}

/* Responsive : empiler les blocs sur petits écrans */
@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-image img {
        width: 80px !important;
    }

    .toggle-description {
        float: none;
        display: block;
        text-align: right;
    }
}