/* Flex container to ensure equal height */
#evenements-liste.elementor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Flex columns for consistent alignment */
#evenements-liste.elementor-column {
    display: flex;
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
}

/* Event item equal height */
.evenement-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    min-height: 350px;
    width: 100%;
}

/* Event image */
.evenement-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Event content styling */
.evenement-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.evenement-item p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}


/* Titre Agenda */
.agenda-title {
    font-size: 50px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    margin-bottom: 1rem;
    font-family: Poppins, sans-serif;
}

.agenda-subtitle {
    color: #000000;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    line-height: 35px;
}

/* Description */
.agenda-description {
    text-align: center;
    color: #000000;
    margin-bottom: 2rem;
    font-family: Poppins, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

/* Container pour la barre de dates avec flèches */
.date-selector-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    width: 50%;
    gap: 10px;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

/* Boutons de navigation */
.date-nav-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    position: relative;
    overflow: hidden;
}

.date-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.date-nav-btn:hover::before {
    left: 100%;
}

.date-nav-btn:hover {
    background: #FF0200;
    color: white;
    transform: scale(1.1);
}
.date-nav-btn:focus{
    background: #FF0200;
}
.date-nav-btn.clicked {
    transform: scale(0.95);
    background: #FF0200;
    color: white;
}

.date-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Barre de sélection de dates */
.date-selector-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0 1rem;
    overflow-x: auto;
    max-width: 700px;
    flex: 1;
    transition: all 0.5s ease-in-out;
    position: relative;
    scroll-behavior: smooth;
}

/* Centrer la date active */
.date-selector-bar .date-option.active {
    flex-shrink: 0;
}

.date-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #999;
    font-family: Poppins, sans-serif;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.date-option.slide-out {
    animation: slideOut 0.3s ease-in forwards;
}

.date-option:hover {
    background-color: #f5f5f5;
}

.date-option.active {
    color: #FF0200;
    font-weight: bold;
    /*transform: scale(1.1);*/
    /*background-color: rgba(255, 2, 0, 0.1);*/
    /*border: 2px solid #FF0200;*/
    /*box-shadow: 0 4px 8px rgba(255, 2, 0, 0.3);*/
}

.date-option.active > .date-number, .date-option.active >.date-month{
    color: #FF0200;
    font-weight: bold;
    /*transform: scale(1.1);*/
    /*background-color: rgba(255, 2, 0, 0.1);*/
    /*box-shadow: 0 4px 8px rgba(255, 2, 0, 0.3);*/
}

.date-option.past {
    color: #ccc;
    opacity: 0.7;
}

.date-option.future {
    color: #666;
}

.date-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.date-month {
    font-size: 0.8rem;
    font-weight: normal;
}

/* Boutons de filtre */
.filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-family: Poppins, sans-serif;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f0f0f0;
    color: #000000;
}

.filter-btn.active {
    background-color: #FF0200;
    color: #ffffff;
}

.filter-btn:hover:not(.active) {
    background-color: #e0e0e0;
}

/* Titre programmation */
.programmation-title {
    color: #FF0200;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 2rem 0 1rem 0;
    font-family: Poppins, sans-serif;
}

/* Anciens styles conservés pour la compatibilité */
.evenements-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    width: 35%;
    font-family: Poppins, sans-serif;
    font-weight: bold;
    margin-bottom: 4%;
    text-align: left;
    letter-spacing: 0.34px;
    color: #000000;
}

.evenements-filters input,
.evenements-filters select,
.evenements-filters button {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 53px;
}

.evenements-filters button {
    background-color: #FF0200;
    color: #fff;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

.danger-btn {
    background-color: #FF0200;
    color: #fff;
    cursor: pointer;
    border: none;
    font-weight: bold;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 53px;
}

.evenements-filters button:hover {
    background-color: #333;
}

.evenements-filters input, .evenements-filters select{
    background: #38B3CB 0% 0% no-repeat padding-box;
    border: none !important;
    font-weight: bold;
}

/* Shortcode dates_evenement - Liste des dates et heures */
.dates-evenement-list {
    margin: 20px 0;
    font-family: Poppins, sans-serif;
}

.dates-evenement-list .dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dates-evenement-list .date-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dates-evenement-list .date-item:last-child {
    border-bottom: none;
}

.dates-evenement-list .date {
    font-weight: bold;
    color: #FF0200;
    font-size: 16px;
}

.dates-evenement-list .horaires {
    color: #666;
    font-size: 14px;
}

.dates-evenement-list .date-link {
    color: inherit;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dates-evenement-list .date-link:hover {
    color: #FF0200;
    text-decoration: underline;
}

/* Position the activity label relative to the image widget */
.image-widget-container {
    position: relative; /* Ensure the container positions elements relative to it */
    display: inline-block; /* Prevents it from breaking layout */
}

/* Style for the activity label */
.activity-label {
    position: absolute !important;
    top: 10px !important;
    right: 0px !important;
    background-color: #fff !important;
    color: #000 !important;
    padding: 5px 15px !important;
    border-radius: 20px 0 0 20px !important;
    font-size: 14px !important;
    font-weight: normal !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
@media (min-width: 768px) {
    .elementor-column.elementor-col-25, .elementor-column[data-col="25"] {
        max-width: 24%;
    }
}

/* Styling for the event date container */
.event-date {
    /* UI Properties */
    text-align: left;
    font-family: Poppins, sans-serif;
    letter-spacing: 0.28px;
    color: #000000;
}

.evenement-title .elementor-heading-title{
    text-align: left;
    text-transform: none !important;
    font-size: 18px;
}

.evenement-container{
    padding: 0 !important;
}
.show-event-modal .elementor-button-wrapper .elementor-button-link{
    border-radius: 50px !important;
    background-color: #000000 !important;
    font-size: 13px !important;
}
.lieu_evenement{
font-weight: normal !important;
    color: black;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .elementor-column {
        flex: 1 1 calc(50% - 20px); /* Two columns on tablet */
    }
    .evenements-filters{
        flex-direction: column;
        width: 80%;
    }
    .agenda-subtitle {
        font-size: 22px;
        line-height: 30px;
    }
    .date-selector-container {
        width: 90%;
    }
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .elementor-column {
        flex: 1 1 100%;
    }
    .date-selector-container {
        width: 90%;
    }
    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Code Seb */

div#evenements-liste {
    padding: 0 10px;
}

img.event-image.wp-post-image {
    margin-bottom: 10px;
}
 
#evenements-liste h2.elementor-heading-title.elementor-size-default {
    line-height: 25px;
}

.lieu_evenement {
    font-size: 1rem !important;
}
/* Code Seb FIN */



/* Future events list styling */
.future-events-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 10px;
}

/* Future events columns - same as calendar */
.future-events-list .elementor-column {
    display: flex;
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
}

/* Responsive adjustments for future events */
@media (min-width: 768px) {
    .future-events-list .elementor-column.elementor-col-25,
    .future-events-list .elementor-column[data-col="25"] {
        max-width: 24%;
    }
}

@media (max-width: 768px) {
    .future-events-list .elementor-column {
        flex: 1 1 calc(50% - 20px); /* Two columns on tablet */
    }
}

@media (max-width: 480px) {
    .future-events-list .elementor-column {
        flex: 1 1 100%; /* One column on mobile */
    }
}
