/* ARES – bibliothèque de vidéos métiers */
.ares-videos { --navy: #1d1a6e; --blue: #0b45d6; --muted: #5d5d7a; --tint: #f4f5fc; font-family: "Nunito", system-ui, sans-serif; }
.av-tools { display: flex; justify-content: center; margin-bottom: 16px; }
.ares-videos .av-search {
	width: min(520px, 100%); padding: 14px 20px; border: 2px solid #e3e5f2; border-radius: 999px; background: #fff;
	font-family: inherit; font-size: 16px; font-weight: 700; outline: none; height: auto; line-height: 1.4;
}
.ares-videos .av-search:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 69, 214, .12); }
.av-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.ares-videos .av-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 2px solid #e3e5f2; border-radius: 999px;
	background: #fff; color: var(--navy); font-family: inherit; font-weight: 800; font-size: 14px; cursor: pointer; line-height: 1.2;
	transition: background .2s, color .2s, border-color .2s, transform .25s;
}
.ares-videos .av-chip span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--tint); font-size: 12px; }
.ares-videos .av-chip:hover { border-color: var(--navy); transform: translateY(-2px); background: #fff; color: var(--navy); }
.ares-videos .av-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.ares-videos .av-chip.is-active span { background: #ffc400; color: var(--navy); }
.ares-videos .av-chip.is-empty { opacity: .55; }

.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.av-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(29, 26, 110, .12); display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.av-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(29, 26, 110, .2); }
.av-card[hidden] { display: none; }
.ares-videos .av-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; background: var(--navy); cursor: pointer; overflow: hidden; border-radius: 0; }
.av-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.av-card:hover .av-media img { transform: scale(1.07); }
.av-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 8, 50, .55), transparent 55%); }
.av-play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #e8230e; color: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); animation: av-ping 2.2s infinite; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.av-play svg { width: 28px; height: 28px; margin-left: 3px; }
.av-card:hover .av-play { transform: scale(1.15); }
@keyframes av-ping { 70%, 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
.av-time { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 2px 10px; border-radius: 99px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; font-weight: 800; }
.av-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.av-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ares-videos .av-tag { padding: 3px 10px; border-radius: 99px; background: var(--tint); color: var(--blue); font-size: 12px; font-weight: 900; text-decoration: none; }
.ares-videos .av-tag:hover { background: var(--blue); color: #fff; }
.ares-videos .av-title { margin: 2px 0 0; font-size: 18px; font-weight: 900; color: var(--navy); line-height: 1.25; }
.av-meta { margin: 0; color: var(--blue); font-weight: 800; font-size: 14px; }
.av-desc { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.av-empty { text-align: center; padding: 40px 20px; border: 2px dashed #d5d8ea; border-radius: 18px; color: var(--muted); font-weight: 800; }
.av-empty[hidden] { display: none; }

/* lecteur */
.av-lightbox { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; }
.av-lightbox[hidden] { display: none; }
.av-lightbox__bg { position: absolute; inset: 0; background: rgba(10, 8, 50, .88); backdrop-filter: blur(6px); }
.av-lightbox__box { position: relative; width: min(1000px, 100%); animation: av-pop .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes av-pop { from { opacity: 0; transform: scale(.88) translateY(24px); } }
.av-lightbox__player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.av-lightbox__player iframe, .av-lightbox__player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.av-lightbox__title { color: #fff; font-family: "Nunito", sans-serif; font-weight: 900; font-size: 20px; text-align: center; margin: 14px 0 0; }
.av-lightbox .av-lightbox__close { position: absolute; right: -6px; top: -52px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #1d1a6e; font-size: 18px; font-weight: 900; cursor: pointer; padding: 0; }
@media (max-width: 600px) { .av-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .ares-videos .av-chip { white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .av-play, .av-lightbox__box { animation: none; } .av-card, .av-media img { transition: none; } }
