/* Styles pour l'affichage des événements */

.fim-events-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fim-events-section h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #2271b1;
    border-bottom: 2px solid #f0f7ff;
    padding-bottom: 15px;
}

.fim-events-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px;
    width: 100%;
}

.fim-event-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    width: 100%;
}

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

.fim-event-image {
    width: 300px;
    min-width: 300px;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fim-event-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.fim-event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fim-event-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #1d2327;
    line-height: 1.4;
}

.fim-event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.fim-event-date,
.fim-event-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #646970;
}

.fim-event-date .fim-icon,
.fim-event-location .fim-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.fim-event-description {
    margin-bottom: 20px;
    color: #646970;
    font-size: 15px;
    line-height: 1.6;
}

.fim-event-description p {
    margin: 0;
}

.fim-event-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.fim-event-card .fim-btn {
    display: inline-block;
    text-align: center;
    flex: 1;
}

.fim-event-details-card {
    margin: 30px 0;
    background: #ffffff;
}

.fim-event-details-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    line-height: 1.3;
    color: #1d2327;
}

.fim-event-details-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d7dde3;
    table-layout: fixed;
}

.fim-event-details-row {
    border-bottom: 1px solid #d7dde3;
}

.fim-event-details-row:last-child {
    border-bottom: none;
}

.fim-event-details-label {
    width: 32%;
    padding: 14px 16px;
    font-weight: 700;
    color: #2271b1;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #d7dde3;
    background: #f8fafc;
}

.fim-event-details-value {
    padding: 14px 16px;
    color: #3c434a;
    line-height: 1.6;
    word-break: break-word;
    vertical-align: top;
}

.fim-event-details-value a {
    color: #2271b1;
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .fim-events-section {
        padding: 20px 15px;
    }
    
    .fim-events-section h3 {
        font-size: 20px;
    }
    
    .fim-event-card {
        flex-direction: column;
        align-items: center;
    }
    
    .fim-event-image {
        width: auto;
        min-width: auto;
        max-width: 250px;
        height: auto;
    }
    
    .fim-event-image img {
        max-height: 350px;
    }
    
    .fim-event-actions {
        flex-direction: column;
    }

    .fim-event-details-title {
        font-size: 20px;
    }

    .fim-event-details-label,
    .fim-event-details-value {
        display: block;
        width: auto;
        border-right: none;
    }

    .fim-event-details-label {
        border-bottom: 1px solid #e6ebf0;
    }

    .fim-event-details-row {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    .fim-events-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .fim-event-content {
        padding: 15px;
    }
    
    .fim-event-title {
        font-size: 18px;
    }
}
