/*
 * My Events Calendar - Single Event Page Stylesheet
 * Version: 1.0
 */
@import url('https://fonts.googleapis.com/css2?family=Mooli&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

.event-single-container {
    background-color: #F1F3F6;
    margin: 0;
    /* Ajustement pour éviter les marges négatives qui peuvent causer des problèmes */
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.event-main-content {
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 100px;
}

.event-header h1 {
    color: #03499E;
    font-family: 'Mooli', sans-serif;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 40px;
    /* Réduction de la marge */
}

.event-meta-info {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 15px;
    color: #374151;
}

.event-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta-info .meta-item img {
    width: 20px;
    height: 20px;
}

.event-main-image img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.event-description {
    font-size: 16px;
    line-height: 1.8;
    color: #4B5563;
}

.event-programme {
    padding-top: 40px;
}

.event-programme h2 {
    color: #05519C;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

.programme-item {
    display: flex;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid #E5E7EB;
}

.programme-time {
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 30px;
}

.programme-details h3 {
    color: #434F6D;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
    margin: 0 0 8px 0;
}

.programme-details p {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.7;
    margin: 0;
}

/* --- STYLES DE LA SIDEBAR (LA PARTIE IMPORTANTE) --- */

.event-sidebar {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    margin-top: 40px;
    /* Ajout pour alignement vertical */
}

.event-sidebar .sidebar-widget {
    margin-bottom: 40px;
}

.event-sidebar .sidebar-widget:last-child {
    margin-bottom: 0;
}

.contact-widget img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.upcoming-events-widget h2 {
    color: #00194A;
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    /* Ligne-height ajustée */
    margin: 0 0 25px 0;
}

.upcoming-events-widget h2 span {
    color: #2874A6;
}

.upcoming-event-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E5E7EB;
}

.upcoming-event-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.upcoming-event-item h3 {
    margin: 0 0 5px 0;
}

.upcoming-event-item h3 a {
    color: #03499E;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    /* Taille de police ajustée pour le design */
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}

.upcoming-event-item h3 a:hover {
    color: #007BFF;
}

.upcoming-event-item .location {
    font-size: 14px;
    color: #4B5563;
    margin: 5px 0 15px 0;
}

.upcoming-event-item .meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 15px;
}

.upcoming-event-item .meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.upcoming-event-item .meta img {
    width: 16px;
    height: 16px;
}

.upcoming-event-item .excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 20px;
}

.btn-voir-plus {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #C5BA90;
    color: #374151;
    background-color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-voir-plus:hover {
    background-color: #C5BA90;
    border-color: #C5BA90;
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .event-single-container {
        grid-template-columns: 1fr;
    }

    .event-main-content {
        padding: 30px;
    }

    .event-sidebar {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .event-header h1 {
        font-size: 28px;
    }

    .upcoming-events-widget h2 {
        font-size: 32px;
    }
}


.event-main-image {
    width: 100%;
    height: 450px;
    /* Fixed height for consistency */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.event-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevents distortion */
    display: block;
    transition: transform 0.5s ease;
}

.event-main-image:hover img {
    transform: scale(1.03);
}

/* Meta Icons Fix */
.event-meta-info .meta-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

/* Sidebar List Images */
.mec-list-img {
    width: 85px !important;
    height: 65px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #f0f0f0;
}

.mec-list-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Contact Widget Background Fix */
.mec-contact-box {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

@media (max-width: 768px) {
    .event-main-image {
        height: 250px;
    }
}