/* Container principal */
.events-list {
    margin: 20px 0;
}

.events-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style de la carte */
.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Container de l'image */
.event-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #f5f5f5;
    overflow: hidden;
}

.event-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

/* Bannière de catégorie */

.event-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #8b0000;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


.event-category-banner {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #8b0000;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.event-category-banner i {
    font-size: 1.2em;
}

/* Contenu de la carte */
.event-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.event-metadata {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.event-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 1.1em;
}

.event-info i {
    color: #8b0000;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

/* Lien de la carte */
.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Message d'alerte */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

/* Responsive design */
@media (max-width: 1200px) {
    .event-title {
        font-size: 1.8em;
    }
}

@media (max-width: 992px) {
    .event-title {
        font-size: 1.6em;
    }
    
    .event-category-banner {
        font-size: 1em;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .event-title {
        font-size: 1.5em;
    }
    
    .event-category-banner {
        font-size: 0.9em;
        top: 10px;
        right: 10px;
    }
    
    .event-info {
        font-size: 1em;
    }
    
    .event-details {
        padding: 15px;
    }
}

.event-registration {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-registration span {
    color: #666;
}

.registration-time {
    color: #8b0000;
    font-weight: 500;
}

@media (max-width: 576px) {
    .event-title {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    .event-metadata {
        gap: 10px;
    }
}