.videotheque-items {
    padding: 4rem 0 0 0;
}

.videotheque-items .wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.videotheque-items__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
}

.video-card,
.video-card:hover,
.video-card:focus,
.video-card:active,
.video-card:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: inherit !important;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    min-width: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.video-card.is-hidden {
    display: none;
}

.video-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
}

.video-card__image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.video-card:hover .video-card__image img {
    transform: scale(1.04);
}

.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    background: rgb(0 0 0 / 0.25);
    opacity: 0;
    transition: opacity .2s ease;
}

.video-card__play svg {
    width: 56px;
    height: 56px;
    padding: 14px;
    background: var(--c-vert-300);
    border-radius: 50%;
}

.video-card:hover .video-card__play,
.video-card:focus-visible .video-card__play {
    opacity: 1;
}

.video-card__body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.video-card__rubrique {
    color: #A2A2A2;
    font-family: "Monteserrat", sans-serif;
    font-size: 13px;
}

.video-card__title {
    color: var(--c-noir-900);
    font-family: "Monteserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-wrap: auto;
    transition: color .2s ease-in-out;
}

.video-card:hover .video-card__title {
    color: var(--c-vert-300);
}

.videotheque-items__empty {
    text-align: center;
    padding: 3rem 1rem;
    font-family: "Monteserrat", sans-serif;
    font-size: 16px;
    color: var(--c-noir-500);
}

.videotheque-items__load-more {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.video-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.video-popup.is-open {
    display: flex;
}

.video-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.85);
    cursor: zoom-out;
}

.video-popup__inner {
    position: relative;
    width: 100%;
    max-width: 960px;
    z-index: 1;
}

.video-popup__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
}

.video-popup__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-popup__title {
    color: #FFFFFF;
    font-family: "Monteserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 1rem 0 0 0;
    text-align: center;
}

.video-popup__close,
.video-popup__close:hover,
.video-popup__close:focus,
.video-popup__close:active {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.video-popup__close {
    position: absolute;
    top: -48px;
    right: 0;
    color: #FFFFFF !important;
    font-size: 2.5rem;
    line-height: 1;
    padding: .25rem .5rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.video-popup__close:hover {
    opacity: .7;
}

body.has-video-popup {
    overflow: hidden;
}

@media screen and (max-width: 1024px) {
    .videotheque-items__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .videotheque-items__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .video-popup__close {
        top: -44px;
    }
}
