/* =====================================================================
   ae-animations-list — Elementor widget
   ===================================================================== */

/* ── Container ─────────────────────────────────────────────────────── */
.ae-animations-page {
    width: 100%;
}

.ae-notice {
    padding: 14px 18px;
    background: #fff8e6;
    border: 1px solid #ffe8a0;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9em;
}

/* ── Searchbar ─────────────────────────────────────────────────────── */
.ae-animations__searchbar {
    padding: 28px 24px;
    margin-bottom: 36px;
    border-radius: 4px;
}

.ae-animations__search-container {
    max-width: 900px;
    margin: 0 auto;
}

.ae-animations__search-label {
    display: block;
    font-size: 1.05em;
    font-weight: 700;
    margin-bottom: 14px;
    color: #222;
}

.ae-animations__search-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ae-animations__search-field {
    display: flex;
    flex: 1;
    min-width: 240px;
    position: relative;
}

.ae-animations__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #696b72;
}

.ae-animations__search-input {
    flex: 1;
    height: 48px;
    padding: 0 16px 0 48px;
    border: 1px solid #cfd0d3;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #161a2d;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.ae-animations__search-input::placeholder {
    color: #696b72;
}

.ae-animations__search-input:focus {
    border-color: #fd1555;
}

/* ── Body : filters + main ─────────────────────────────────────────── */
.ae-animations__body {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.ae-animations__body.has-filters .ae-animations__main {
    flex: 1;
    min-width: 0;
}

.ae-animations__filters {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}

.ae-animations__main {
    flex: 1;
    min-width: 0;
}

/* ── Filters sidebar ───────────────────────────────────────────────── */
.ae-animations-page .filters-container {
    padding-left: 0;
}

.ae-animations-page .reset-filters {
    padding-bottom: 18px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ae-animations-page .reset-filters.hidden {
    display: none;
}

.ae-animations-page .reset-filters a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.ae-animations-page .reset-filters a:hover {
    color: #111;
}

.ae-animations-page h6.exhibitors-filters-main-title {
    margin: 27px 0 0;
    padding-left: 20px;
    font-size: 1.3em;
    font-weight: 700;
    color: #444;
    text-transform: none;
    letter-spacing: 0;
}

.ae-animations-page .exhibitors-filters-list {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.ae-animations-page .exhibitors-filter {
    padding-top: 25px;
}

.ae-animations-page .exhibitors-filter:not(:last-child) {
    padding-bottom: 25px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.ae-animations-page .exhibitors-filter--title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--e-global-color-accent, #333);
    background: transparent;
    user-select: none;
    width: fit-content;
}

.ae-animations-page .filter-chevron {
    flex-shrink: 0;
    width: 8px;
    height: 5px;
    transition: transform 0.2s;
}

.ae-animations-page .exhibitors-filter[aria-expanded="false"] .exhibitors-filter--terms {
    display: none;
}

.ae-animations-page .exhibitors-filter[aria-expanded="false"] .filter-chevron {
    transform: rotate(-90deg);
}

.ae-animations-page .exhibitors-filter--terms {
    margin-top: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    overflow: hidden;
}

.ae-animations-page .filter-value {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.ae-animations-page .filter-value input[type="checkbox"] {
    display: none;
}

.ae-animations-page .filter-value span {
    display: flex;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.73em;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    padding: 8px 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    line-height: 1.2;
    transition: color 0.2s, border-color 0.2s;
}

.ae-animations-page .filter-value:hover span {
    color: #E83759;
    border-color: #E83759;
}

.ae-animations-page .filter-value input[type="checkbox"]:checked + span {
    color: #E83759;
    border-color: #E83759;
}

/* ── Animations list ───────────────────────────────────────────────── */
.animations-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    transition: opacity 0.2s;
}

.animation-item {
    display: flex;
}

/* ── Animation card — layout plein fond ─────────────────────────────── */
.animation-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 5 / 3;
    border-radius: 4px;
    overflow: hidden;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.animation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

/* Overlay dégradé : sombre à gauche, translucide à droite */
.animation-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.70) 45%,
        rgba(0, 0, 0, 0.25) 75%,
        rgba(0, 0, 0, 0.10) 100%
    );
    pointer-events: none;
}

/* Pas d'image : fond sombre uni */
.animation-card--no-image {
    background-color: #222;
}

.animation-card--no-image .animation-card__overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Contenu texte — occupe la moitié gauche */
.animation-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    width: 65%;
    padding: 22px 24px;
    gap: 0;
    box-sizing: border-box;
}

/* Titre — spécificité (0,2,1) pour surcharger .elementor-kit-XXXXX h4 (0,1,1) */
.animation-card h4.animation-card__title {
    margin: 0 0 10px;
    font-size: 1.2em;
    font-weight: 800;
    color: var(--e-global-color-accent, #E83759);
    line-height: 1.25;
    word-break: break-word;
}

/* Intervenant / Lieu */
.animation-card__meta {
    margin: 0 0 4px;
    font-size: 0.7em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    line-height: 1.4;
}

/* Séparateur horizontal */
.animation-card__separator {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    margin: 12px 0 10px;
    flex-shrink: 0;
}

/* Date */
.animation-card__date {
    margin: 0 0 12px;
    font-size: 0.7em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.animation-card__extra-dates {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85em;
    letter-spacing: 0;
    font-weight: 700;
    color: #fff;
}

/* Pill horaire */
.animation-card__time-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(20, 20, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 0.68em;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Lien inscription */
.animation-card__register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    align-self: flex-start;
    padding: 7px 16px;
    background: #E83759;
    border-radius: 30px;
    font-size: 0.72em;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
}

.animation-card__register:hover {
    background: #c4213f;
}

/* ── No results ────────────────────────────────────────────────────── */
.ae-animations-page .ae-no-results {
    padding: 32px 20px;
    text-align: center;
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

/* ── Pagination ────────────────────────────────────────────────────── */
.ae-animations-page .ae-pagination-wrap {
    margin-top: 20px;
}

.ae-animations-page .exhibitors-pagination--links {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.ae-animations-page .exhibitors-page-link .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.87em;
    color: #555;
    background: #fff;
    user-select: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ae-animations-page .exhibitors-page-link .page-number:hover {
    border-color: #999;
    color: #111;
}

.ae-animations-page .exhibitors-page-link.current .page-number {
    background: #333;
    color: #fff;
    border-color: #333;
}

.ae-animations-page .exhibitors-page-link.previous-page .page-number,
.ae-animations-page .exhibitors-page-link.next-page .page-number {
    font-size: 0.65em;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .animation-card h4.animation-card__title {
        font-size: 1.05em;
    }
}

@media (max-width: 900px) {
    .animations-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .ae-animations__body {
        flex-direction: column;
    }

    .ae-animations__filters {
        width: 100%;
        position: static;
    }

    .ae-animations__search-content {
        flex-direction: column;
        align-items: stretch;
    }

    .animation-card {
        aspect-ratio: 5 / 3;
    }

    .animation-card__content {
        width: 75%;
        padding: 18px 20px;
    }
}

@media (max-width: 500px) {
    .animation-card {
        aspect-ratio: 4 / 3;
    }

    .animation-card__content {
        width: 90%;
        padding: 16px;
    }

    .animation-card__title {
        font-size: 1em;
    }
}
