/* Shortcode [event_program] — programme d'un event en bascules */

.flip-event-program {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Item bascule ===== */
.flip-event-program__item {
    background: #FAFAF8;
    border: 1px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.flip-event-program__item.is-open {
    border-color: rgb(0 118 255 / 0.2);
}

.flip-event-program__head {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.flip-event-program__date {
    flex: 1;
    margin: 0;
    font-family: 'DM serif display', Georgia, serif;
    font-weight: 400;
    color: #161618;
}

.flip-event-program__arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #0076FF;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.flip-event-program__item .flip-event-program__head:hover .flip-event-program__arrow {
    transform: rotate(-90deg);
    background: #0076FF;
    color: #F4F5F5;
}

.flip-event-program__item.is-open .flip-event-program__arrow,
.flip-event-program__item.is-open .flip-event-program__head:hover .flip-event-program__arrow {
    background: #0076FF;
    color: #F4F5F5;
    transform: rotate(-180deg);
}

.flip-event-program__panel[hidden] {
    display: none;
}

.flip-event-program__panel-inner {
    padding: 0 24px 20px;
    color: #4b5563;
    line-height: 1.6;
}

.flip-event-program__panel-inner p { margin: 0 0 0.75rem; }
.flip-event-program__panel-inner p:last-child { margin-bottom: 0; }

/* Animation d'ouverture */
.flip-event-program__panel:not([hidden]) {
    animation: flip-event-program-expand 0.3s ease both;
}

@keyframes flip-event-program-expand {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .flip-event-program__panel:not([hidden]) { animation: none; }
    .flip-event-program__arrow { transition: none; }
}

/* Focus visible accessible */
.flip-event-program__head:focus-visible {
    outline: 2px solid #FFD166;
    outline-offset: 2px;
}

/* ===== Event sections ===== */
.et-db #et-boc .et-l .event-sections{
    .sup-title:empty{
        display: none;
    }
    .event-section:nth-of-type(odd){
        background: #F4F5F5;
    }
    .event-section:nth-of-type(even){
        background: #E0E7F0;

        .group-content{
            flex-direction: row-reverse;
        }
    }

}