/* La surface de l'encart (fond blanc, bordure, coins arrondis, ombre douce) est
   fournie par .adeas-editorial-section, comme pour les autres rubriques. */

.adeas-videos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.adeas-videos-header h2 {
    font-size: 1.25rem;
    line-height: 1.25;
}

/* Pastille « direct » reprise du thème Géopolitique du Numérique : le rouge de
   charte pulse doucement, sur la courbe et le rythme d'animate-pulse (2 s,
   opacité ramenée à 50 %). */
.adeas-videos-header h2::before {
    content: "";
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: #E2241A;
    animation: adeas-video-live 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes adeas-video-live {
    50% {
        opacity: 0.5;
    }
}

.adeas-videos-header a {
    color: #1B499B;
    font-size: 0.75rem;
    font-weight: 700;
}

.adeas-video-card {
    min-width: 0;
}

.adeas-video-trigger {
    display: block;
    color: #1B499B;
    border-radius: 1rem;
}

.adeas-video-trigger:hover,
.adeas-editorial-section .adeas-video-trigger:hover {
    text-decoration: none;
}

.adeas-video-thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    background: #3C3C3B;
}

.adeas-video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.adeas-video-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #00000026;
    pointer-events: none;
}

.adeas-video-play {
    position: absolute;
    z-index: 1;
    inset: 0;
    margin: auto;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FF5D0E;
    color: #fff;
    box-shadow: 0 3px 10px #00000040;
}

.adeas-video-play i { margin-left: 2px; }

.adeas-video-date {
    position: absolute;
    z-index: 1;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0.3rem;
    background: #000000bf;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
}

.adeas-video-caption { display: block; padding-top: 0.75rem; }
.adeas-video-title {
    color: #1B499B;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "National Park", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.adeas-video-title:hover,
.adeas-video-title:focus-visible,
.adeas-editorial-section .adeas-video-title:hover { color: #FF5D0E; text-decoration: none; }
.adeas-video-trigger:hover .adeas-video-thumbnail img { transform: scale(1.04); }
.adeas-video-speaker,
.adeas-video-meta { display: block; margin-top: 0.3rem; color: #666; font-size: 0.75rem; }

.adeas-video-card-compact { margin-top: 0.75rem; display: flex; gap: 0.75rem; align-items: center; }
.adeas-video-card + .adeas-video-card-compact { border-top: 1px solid #f2f2f2; padding-top: 0.75rem; }
.adeas-video-card-compact .adeas-video-trigger { flex: 0 0 6rem; }
.adeas-video-card-compact .adeas-video-thumbnail { border-radius: 0.5rem; }
.adeas-video-card-compact .adeas-video-caption { min-width: 0; padding: 0; }
.adeas-video-card-compact .adeas-video-play { width: 1.75rem; height: 1.75rem; font-size: 0.65rem; }
.adeas-video-card-compact .adeas-video-title { font-size: 0.875rem; }
.adeas-video-card-compact .adeas-video-speaker { display: none; }

.adeas-video-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.adeas-video-grid .adeas-video-card { padding: 1rem; border: 1px solid #e5e5e5; border-radius: 1.5rem; background: #fff; }
.adeas-video-archive .pagination { margin-top: 2rem; }
.adeas-video-archive .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.adeas-video-archive .page-numbers { display: inline-flex; padding: 0.6rem 1rem; border: 1px solid #1B499B; border-radius: 0.5rem; color: #1B499B; }
.adeas-video-archive .page-numbers.current { background: #1B499B; color: #fff; }
.adeas-video-archive a.page-numbers:hover { background: #FFF2EB; border-color: #FF5D0E; color: #FF5D0E; }

.adeas-video-modal {
    width: min(56rem, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    margin: auto;
    border: 1px solid #ffffff40;
    border-radius: 1.5rem;
    background: #1B499B;
    color: #fff;
    overflow-y: auto;
    box-shadow: 0 20px 60px #00000066;
}

.adeas-video-modal::backdrop { background: #000000cc; backdrop-filter: blur(8px); }
.adeas-video-modal-header { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; }
.adeas-video-modal-header h2 { color: #fff; font-size: 1rem; line-height: 1.35; flex: 1; overflow-wrap: anywhere; }
.adeas-video-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer; color: #fff; }
.adeas-video-close:hover { background: #FF5D0E; }
.adeas-video-modal-player { aspect-ratio: 16 / 9; background: #000; }
.adeas-video-modal-player iframe,
.adeas-video-modal-player video { width: 100%; height: 100%; border: 0; display: block; }
.adeas-video-modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; padding: 0.75rem 1rem; font-size: 0.75rem; }
.adeas-video-source { color: #fff; text-decoration: underline; }
.adeas-video-status,
.adeas-video-muted-note { flex: 1 1 100%; }
.adeas-video-trigger:focus-visible,
.adeas-video-title:focus-visible,
.adeas-video-archive a:focus-visible { outline: 3px solid #1B499B; outline-offset: 4px; }
.adeas-video-modal :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (min-width: 640px) {
    .adeas-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .adeas-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .adeas-video-thumbnail img { transition: none; }
    .adeas-videos-header h2::before { animation: none; }
}
