/**
 * ========================================================================
 * PROJET      : LOOM-CMS
 * VERSION     : 1.0.12
 * MODULE      : CSS - Animations en bac a sable (shortcode [animation])
 * SOCIETE     : LOOM DIGITAL
 * EMPLACEMENT : /assets/css/animation.css
 * ========================================================================
 *
 * Cadre responsive des animations isolees (iframe sandbox="allow-scripts").
 * Chargee par public/article.php si LOOM_HAS_ANIMATION_SHORTCODE, et par
 * admin/animations/edit.php pour l'apercu (iframe identique).
 *
 * - Toutes les regles prefixees .loom-anim (aucune fuite sur le theme)
 * - Formats RG10 par aspect-ratio : 16/9, 4/3, 1/1, 3/4 (portrait <= 480 px)
 * - Legende : texte #212529 sur le fond blanc des articles, 15,4:1 (AAA)
 * - Aucun !important (DIRECTIVES par. 7.4)
 *
 * ADD v1.0.12 (2026-11-03) - MODULE ANIMATIONS (LOT 3)
 *
 * @author  ATLAS / LOOM DIGITAL (SPEC : Riley)
 * @version 1.0.12
 * @date    2026-11-03
 * ========================================================================
 */

.loom-anim {
    margin: 2rem 0;
    padding: 0;
    width: 100%;
}

.loom-anim__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f1f3f5;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    overflow: hidden;
}

.loom-anim--16x9 .loom-anim__frame {
    aspect-ratio: 16 / 9;
}

.loom-anim--4x3 .loom-anim__frame {
    aspect-ratio: 4 / 3;
}

.loom-anim--1x1 .loom-anim__frame {
    aspect-ratio: 1 / 1;
}

.loom-anim--3x4 {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.loom-anim--3x4 .loom-anim__frame {
    aspect-ratio: 3 / 4;
}

.loom-anim__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.loom-anim__caption {
    margin-top: 0.75rem;
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.6;
}

.loom-anim__caption strong {
    font-weight: 700;
}

/* Apercu du back-office : meme cadre, largeur bornee */
.loom-anim--preview {
    margin: 0;
}

/**
 * ========================================================================
 * SIGNATURE NUMERIQUE LOOM-CMS v1.0.12
 * ========================================================================
 * Module      : CSS - Animations en bac a sable
 * Emplacement : /assets/css/animation.css
 * Version     : 1.0.12
 * Date        : 2026-11-03
 * Auteur      : ATLAS / LOOM DIGITAL (SPEC : Riley)
 * ========================================================================
 *
 * ADD v1.0.12 (2026-11-03) - MODULE ANIMATIONS (LOT 3) :
 * [x] .loom-anim, .loom-anim__frame, .loom-anim__caption
 * [x] Formats 16x9, 4x3, 1x1, 3x4 (portrait centre, 480 px max)
 * [x] iframe 100 % x 100 %, sans bordure
 * [x] Legende contraste AAA (15,4:1 sur blanc)
 *
 * Hash : SHA256-CSS-ANIMATION-20261103
 * ========================================================================
 */
