/* apercus-overlays.css — cadres d'aperçu des overlays (image fixe + overlay
   animé), partagés par /creations/overlays et la galerie /overlays/. Le fond
   en damier et la bordure restent propres à chaque page. Voir
   apercus-overlays.js pour le fonctionnement. */

[data-apercu-overlay] { position: relative; overflow: hidden; }

[data-apercu-overlay] iframe {
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    transform-origin: top left;
    pointer-events: none;
}

/* Image fixe par-dessus l'iframe tant que l'overlay animé n'a pas pris le
   relais : jamais de cadre vide pendant le chargement. */
.apercu-affiche {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.35s ease;
}
[data-apercu-overlay].est-anime .apercu-affiche { opacity: 0; }

.apercu-animer {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 3px;
    background: rgba(8, 3, 22, 0.78);
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.apercu-animer::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent currentColor;
}
.apercu-animer[aria-pressed="true"]::before {
    width: 8px;
    height: 10px;
    border: 0;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}
.apercu-animer:focus-visible { outline: 2px solid #FFD23F; outline-offset: 2px; }
