/* Animations du jour Widget Styles */

.animations-du-jour-widget {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* SVG Before - au-dessus de la première section */
.animations-du-jour-svg-before {
    width: 80%;
    height: 5px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* SVG After - en dessous de la section des résultats */
.animations-du-jour-svg-after {
    width: 80%;
    height: 8px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: -1px;

}

/* En-tête avec fond coloré */
.animations-du-jour-header {
    background-color: #1C4F5A;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.animations-du-jour-title {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.animations-du-jour-date-selector {
    position: relative;
    display: inline-block;
    cursor: pointer !important;
    color: #FAF5ED;
    font-family: "Brother 1816", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700 !important;
    line-height: 20px;
    text-transform: uppercase;
}

.animations-du-jour-date-selector::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 10px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.8);
    vertical-align: middle;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.animations-du-jour-date-selector:hover::after {
    transform: translateY(1px);
}

.date-display {
    font-size: 20px;
    cursor: pointer;
    display: inline-block;
    position: relative;
    user-select: none;
    font-family: "Brother 1816", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
}

.date-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    font-family: "Brother 1816", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
}

.animations-du-jour-description {
    font-size: 16px;
    margin: 20px 0 0 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* Section des résultats */
.animations-du-jour-results {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.animations-list {
    display: flex;
    flex-direction: column;

}

/* Lien d'animation */
.animation-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

.animation-item-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Élément d'animation individuel */
.animation-item {
    display: flex;
    align-items: flex-start;
    border-radius: 8px;
    padding: 20px;
    column-gap: 20px;
    border-bottom: 1px dashed rgba(28, 79, 90, 0.15);
    transition: all 0.2s ease;
}

.animation-item-link:hover .animation-item {
    background-color: rgba(28, 79, 90, 0.05);
}

.animation-item-link:last-child .animation-item {
    border-bottom: none;
}

.animation-image {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    overflow: hidden;
    padding-top: 0px !important;
    position: relative;
}

/* Le masque SVG est géré par les sélecteurs Elementor */

.animation-image img {
    width: 75px;
    height: 75px !important;
    object-fit: cover;
    display: block;
    border-radius: 100px;
}

.animation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.animation-title {
    color: #1C4F5A;
    font-family: "Brother 1816", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    margin-bottom: 0px;
}

.animation-hours {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.animation-hour {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 9px;
    letter-spacing: 0.45px;
    line-height: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* État de chargement */
.animations-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Message "Aucune animation" */
.no-animations {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-animations p {
    font-size: 16px;
    margin: 0;
}

/* Message "Prochain événement" */
.next-animation-date {
    margin-top: 15px !important;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #1C4F5A;
    border-radius: 4px;
    color: #1C4F5A !important;
}

.next-animation-date strong {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .animations-du-jour-header {
        padding: 20px;
    }

    .animations-du-jour-title {
        font-size: 20px;
    }

    .date-display {
        font-size: 18px;
        min-width: 180px;
    }

    .animations-du-jour-results {
        padding: 20px;
    }

    .animation-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .animation-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .animation-title {
        font-size: 18px;
    }

    .animation-hours {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .animations-du-jour-header {
        padding: 15px;
    }

    .animations-du-jour-title {
        font-size: 18px;
    }

    .date-display {
        font-size: 16px;
        min-width: 160px;
        padding: 8px 12px;
    }

    .animations-du-jour-results {
        padding: 15px;
    }

    .animation-item {
        padding: 15px;
    }

    .animation-image {
        height: 100px;
    }

    .animation-title {
        font-size: 16px;
    }

    .animation-hour {
        font-size: 12px;
        padding: 4px 8px;
    }
}