/* Page « Vidéos réservées aux adhérents » (demande de Stéphane du 2 novembre 2026).
   Grille de vignettes, plus large que la colonne de texte : 4 côte à côte sur grand écran,
   3 ou 2 sur écran moyen, 1 sur téléphone. La lecture se fait dans une modale. */
.uaa-vp {
    width: min(1200px, calc(100vw - 32px));
    margin: 0 0 48px calc(50% - min(600px, 50vw - 16px));
}

.uaa-vp-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 32px 24px;
    margin-top: 24px;
}

.uaa-vp-item {
    min-width: 0;
}

.uaa-vp-vignette {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #1a1c4c, #009ee0);
    box-shadow: 0 10px 26px rgba(0, 30, 70, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.uaa-vp-vignette img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.uaa-vp-vignette:hover,
.uaa-vp-vignette:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 30, 70, 0.22);
}

.uaa-vp-vignette:focus-visible {
    outline: 3px solid #009ee0;
    outline-offset: 3px;
}

.uaa-vp-lecture {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: #009ee0;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.uaa-vp-lecture svg {
    margin-left: 3px;
}

.uaa-vp-duree {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
}

.uaa-vp-title {
    margin: 12px 0 4px;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #1a1c4c;
}

.uaa-vp-meta {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 0.85rem;
}

.uaa-vp-resume {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.uaa-vp-vide {
    text-align: center;
    color: #64748b;
}

/* Modale de lecture */
.uaa-vp-modale {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 16px;
    background: rgba(10, 14, 40, 0.88);
}

.uaa-vp-modale[hidden] {
    display: none;
}

.uaa-vp-modale-boite {
    position: relative;
    max-width: min(1100px, 100%);
}

.uaa-vp-modale video {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
    border-radius: 12px;
    background: #000;
}

.uaa-vp-fermer {
    position: absolute;
    top: -50px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
}

.uaa-vp-fermer:hover,
.uaa-vp-fermer:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

html.uaa-vp-bloque {
    overflow: hidden;
}
