/* Feedback is scoped to the discovery templates. The background sits behind real images. */
:where(.aa-site-active #content) .aa-media-pending {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #e8e2ef;
}
.aa-site-active #content .aa-media-pending::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 24%, #f9f6fc 50%, transparent 76%);
}
.aa-site-active #content .aa-discovery-list[aria-busy="true"] {
    position: relative;
}
.aa-site-active #content .aa-discovery-list[aria-busy="true"]::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 3px;
    background: #5023bc;
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    .aa-site-active #content .aa-discovery-list[aria-busy="true"]::before {
        transform-origin: left;
        animation: aa-filter-progress .95s ease-in-out .18s 3 alternate both !important;
    }
    @keyframes aa-filter-progress {
        from { transform: scaleX(.08); opacity: 0; }
        to { transform: scaleX(.92); opacity: 1; }
    }
    .aa-site-active #content .aa-media-pending::before {
        animation: aa-media-light 1.25s ease-in-out 3 !important;
    }
    @keyframes aa-media-light { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

    .aa-site-active #content .aa-discovery-hero-photo img {
        animation: aa-workshop-enter 420ms cubic-bezier(.18,.72,.28,1) both !important;
    }
    @keyframes aa-workshop-enter {
        from { transform: scale(1.035); }
        to { transform: scale(1); }
    }
    .aa-site-active #content .aa-discovery-advice-link svg {
        transition: transform 160ms ease-out !important;
    }
    .aa-site-active #content .aa-discovery-advice-link:focus-visible svg {
        transform: translateX(4px);
    }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .aa-site-active #content :is(.aa-home-offer, .aa-formation-card) :is(.aa-course-cover, .aa-formation-media) img {
        transition: transform 230ms cubic-bezier(.2,.7,.25,1) !important;
    }
    .aa-site-active #content :is(.aa-home-offer, .aa-formation-card):hover :is(.aa-course-cover, .aa-formation-media) img {
        transform: scale(1.035) !important;
    }
    .aa-site-active #content .aa-discovery-advice-link:hover svg { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .aa-site-active #content :is(.aa-discovery-hero-photo img, .aa-discovery-advice-link svg),
    .aa-site-active #content .aa-media-pending::before {
        animation: none !important;
        transition: none !important;
    }
}
