/* Jeunes — visionneuse du carrousel photo du hero. */
body.page-id-11 .agd-youth-v2-hero__carousel .agd-youth-v2-hero__slide.is-active,
body.page-id-11 .agd-youth-v2-hero__carousel .agd-youth-v2-hero__slide.is-active img {
  pointer-events: auto;
}

body.page-id-11 .agd-youth-v2-hero__carousel .agd-youth-v2-hero__slide.is-active img {
  cursor: zoom-in;
}

body.page-id-11 .agd-youth-hero-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

body.page-id-11 .agd-youth-hero-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

body.page-id-11 .agd-youth-hero-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 19, 37, .78);
  backdrop-filter: blur(6px);
}

body.page-id-11 .agd-youth-hero-lightbox__dialog {
  position: relative;
  width: min(92vw, 1080px);
  height: min(88vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(241, 203, 119, .7);
  border-radius: 24px;
  background: linear-gradient(145deg, #082848, #126477);
  box-shadow: 0 28px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateY(14px) scale(.97);
  transition: transform 260ms cubic-bezier(.22,.75,.25,1);
}

body.page-id-11 .agd-youth-hero-lightbox.is-open .agd-youth-hero-lightbox__dialog {
  transform: translateY(0) scale(1);
}

body.page-id-11 .agd-youth-hero-lightbox__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(128deg, transparent 0 47%, rgba(116,199,205,.22) 47.2% 58%, transparent 58.2%);
}

body.page-id-11 .agd-youth-hero-lightbox__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

body.page-id-11 .agd-youth-hero-lightbox__close,
body.page-id-11 .agd-youth-hero-lightbox__arrow {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  color: #f4d184;
  background: rgba(255,255,255,.09);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

body.page-id-11 .agd-youth-hero-lightbox__close {
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}

body.page-id-11 .agd-youth-hero-lightbox__arrow {
  top: 50%;
  width: 44px;
  height: 52px;
  border-radius: 14px;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

body.page-id-11 .agd-youth-hero-lightbox__arrow--prev { left: 14px; }
body.page-id-11 .agd-youth-hero-lightbox__arrow--next { right: 14px; }

body.page-id-11 .agd-youth-hero-lightbox__close:hover,
body.page-id-11 .agd-youth-hero-lightbox__close:focus-visible,
body.page-id-11 .agd-youth-hero-lightbox__arrow:hover,
body.page-id-11 .agd-youth-hero-lightbox__arrow:focus-visible {
  color: #173653;
  background: #f4d184;
  outline: none;
}

body.page-id-11 .agd-youth-hero-lightbox__counter {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(244,209,132,.58);
  border-radius: 999px;
  color: #f4d184;
  background: rgba(6,29,58,.62);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
}

@media (max-width: 700px) {
  body.page-id-11 .agd-youth-hero-lightbox { padding: 12px; }
  body.page-id-11 .agd-youth-hero-lightbox__dialog { width: 96vw; height: 82vh; border-radius: 20px; }
  body.page-id-11 .agd-youth-hero-lightbox__close { top: 10px; right: 10px; }
  body.page-id-11 .agd-youth-hero-lightbox__arrow { width: 38px; height: 44px; border-radius: 12px; }
  body.page-id-11 .agd-youth-hero-lightbox__arrow--prev { left: 8px; }
  body.page-id-11 .agd-youth-hero-lightbox__arrow--next { right: 8px; }
  body.page-id-11 .agd-youth-hero-lightbox__counter { left: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-11 .agd-youth-hero-lightbox,
  body.page-id-11 .agd-youth-hero-lightbox__dialog,
  body.page-id-11 .agd-youth-hero-lightbox__close,
  body.page-id-11 .agd-youth-hero-lightbox__arrow { transition: none; }
}
