/* Chargement progressif des photos : flou discret pendant le téléchargement, puis image nette. */
img.zaloria-photo {
    background-color: #eef4f7;
    filter: blur(5px);
    opacity: .82;
    transition: filter .38s ease-out, opacity .38s ease-out;
}

img.zaloria-photo.is-photo-ready {
    filter: blur(0);
    opacity: 1;
}

img.zaloria-photo.is-photo-error {
    filter: none;
    opacity: 1;
}

/* Les miniatures du bandeau de concours gardent leur assombrissement d'origine. */
.ml-thumb img.zaloria-photo:not(.is-photo-ready) {
    filter: blur(5px) brightness(.7);
}

.ml-thumb.is-active img.zaloria-photo:not(.is-photo-ready) {
    filter: blur(5px) brightness(.9);
}

.ml-thumb img.zaloria-photo.is-photo-error {
    filter: brightness(.7);
}

.ml-thumb.is-active img.zaloria-photo.is-photo-error {
    filter: brightness(.9);
}

.ml-thumb img.zaloria-photo.is-photo-ready {
    filter: brightness(.7);
}

.ml-thumb.is-active img.zaloria-photo.is-photo-ready {
    filter: brightness(.9);
}

/* Le même logo 3D de marque reste circulaire dans les en-têtes comme au préchargement. */
img[src*="zaloria-logo-3d.webp"] {
    border-radius: 50% !important;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    img.zaloria-photo,
    img.zaloria-photo.is-photo-ready,
    img.zaloria-photo.is-photo-error {
        filter: none;
        opacity: 1;
        transition: none;
    }

    .ml-thumb img.zaloria-photo:not(.is-photo-ready),
    .ml-thumb img.zaloria-photo.is-photo-ready {
        filter: brightness(.7);
    }

    .ml-thumb.is-active img.zaloria-photo:not(.is-photo-ready),
    .ml-thumb.is-active img.zaloria-photo.is-photo-ready {
        filter: brightness(.9);
    }
}
