/* Jeunes — polish ciblé de la carte hero École de badminton. */
html:has(body.page-id-11),
body.page-id-11 { background-color: #061d3a; }

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background-size: 174% 100%, 100% 100%;
  background-position: 0 0, 100% 0;
  box-shadow: 10px 12px 0 rgba(231, 195, 109, .48), 0 18px 34px rgba(6, 29, 58, .18);
  animation: agd-youth-hero-gradient 10s ease-in-out infinite alternate;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 0 45%, rgba(255,255,255,.06) 46% 48%, transparent 49% 62%, rgba(240,211,154,.08) 63% 64%, transparent 65%);
  transform: translate3d(-4%, 0, 0);
  animation: agd-youth-hero-depth 12s ease-in-out infinite alternate;
}

@keyframes agd-youth-hero-gradient {
  from { background-position: 0 0, 100% 0; }
  to { background-position: 9% 0, 92% 0; }
}

@keyframes agd-youth-hero-depth {
  from { transform: translate3d(-4%, 0, 0); opacity: .7; }
  to { transform: translate3d(4%, 0, 0); opacity: 1; }
}

@keyframes agd-youth-hero-gradient-mobile {
  from { background-position: 0 0, 100% 0; }
  to { background-position: 3% 0, 97% 0; }
}

@keyframes agd-youth-hero-depth-mobile {
  from { transform: translate3d(-1.5%, 0, 0); opacity: .82; }
  to { transform: translate3d(1.5%, 0, 0); opacity: 1; }
}

/* Le visuel horizontal est une fenêtre : chaque image garde les visages dans cette fenêtre. */
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .agd-youth-v2-hero__carousel-track > :nth-child(1) img { object-position: 50% 54% !important; }
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .agd-youth-v2-hero__carousel-track > :nth-child(2) img { object-position: 50% 36% !important; }
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .agd-youth-v2-hero__carousel-track > :nth-child(3) img { object-position: 50% 31% !important; }
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .agd-youth-v2-hero__carousel-track > :nth-child(4) img { object-position: 50% 45% !important; }
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .agd-youth-v2-hero__carousel-track > :nth-child(5) img { object-position: 50% 30% !important; }

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .agd-youth-v2-hero__copy > p:not(.eyebrow) {
  max-width: 31ch;
  font-size: .98rem;
  line-height: 1.36;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .agd-youth-v2-institutional,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .agd-youth-v2-hero__line {
  display: none !important;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-carousel.is-visible,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges.is-visible {
  pointer-events: auto !important;
}

/* Les logos participent eux aussi à la construction du hero, après le contenu principal. */
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges {
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translate3d(0, 16px, 0) !important;
  translate: none !important;
  scale: 1 !important;
  pointer-events: auto !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 4px 8px 0;
  transition: opacity 560ms cubic-bezier(.22,.75,.25,1), transform 560ms cubic-bezier(.22,.75,.25,1);
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges.is-youth-hero-entry {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges a {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 420ms cubic-bezier(.22,.75,.25,1), transform 420ms cubic-bezier(.22,.75,.25,1);
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges.is-youth-hero-entry a {
  opacity: 1;
  transform: none;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges a:nth-child(2) {
  transition-delay: 100ms;
}

/* Entrée plus incarnée du contenu : le reveal reste doux, mais chaque plan voyage réellement. */
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-kicker,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-title,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-copy,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-cta,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-carousel {
  opacity: 0 !important;
  transition: opacity 620ms cubic-bezier(.22,.75,.25,1), transform 720ms cubic-bezier(.16,1.08,.3,1) !important;
  transition-delay: var(--youth-delay, 0ms) !important;
  will-change: opacity, transform;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-kicker {
  transform: translate3d(-42px, 10px, 0) !important;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-title {
  transform: translate3d(-92px, 18px, 0) !important;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-copy {
  transform: translate3d(-42px, 24px, 0) !important;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-cta {
  transform: translate3d(0, 24px, 0) !important;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-carousel {
  transform: translate3d(92px, 0, 0) scale(.97) !important;
}

/* Certains anciens modules ajoutent is-visible avant notre cue : il ne doit pas court-circuiter l’entrée. */
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-copy.is-visible:not(.is-youth-hero-entry) {
  opacity: 0 !important;
  transform: translate3d(-42px, 24px, 0) !important;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-cta.is-visible:not(.is-youth-hero-entry) {
  opacity: 0 !important;
  transform: translate3d(0, 24px, 0) !important;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-carousel.is-visible:not(.is-youth-hero-entry) {
  opacity: 0 !important;
  transform: translate3d(92px, 0, 0) scale(.97) !important;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-kicker.is-youth-hero-entry,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-title.is-youth-hero-entry,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-copy.is-youth-hero-entry,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-cta.is-youth-hero-entry,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-carousel.is-youth-hero-entry {
  opacity: 1 !important;
  transform: none !important;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-kicker.is-youth-settled,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-title.is-youth-settled,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-copy.is-youth-settled,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-cta.is-youth-settled,
body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-carousel.is-youth-settled {
  will-change: auto;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges img {
  width: min(112px, 100%) !important;
  height: auto;
  object-fit: contain;
}

body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges a:nth-child(2) img {
  width: min(88px, 100%) !important;
}

/* Mobile browsers may preserve the tap/focus state after returning from an external badge link. */
@media (pointer: coarse) {
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges a {
    -webkit-tap-highlight-color: transparent;
  }

  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges a:active,
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges a:focus:not(:focus-visible),
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges a:focus-visible {
    background: transparent;
    transform: none;
    filter: none;
  }
}

@media (max-width: 700px) {
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero {
    box-shadow: 7px 8px 0 rgba(231, 195, 109, .42), 0 12px 26px rgba(6, 29, 58, .16);
    background-size: 190% 100%, 100% 100%;
    animation: agd-youth-hero-gradient-mobile 18s ease-in-out infinite alternate;
  }

  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero::before {
    animation: agd-youth-hero-depth-mobile 20s ease-in-out infinite alternate;
  }

  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges {
    justify-content: space-around;
    gap: 12px;
    padding-top: 2px;
  }

  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges img {
    width: min(92px, 100%) !important;
  }

  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges a:nth-child(2) img {
    width: min(74px, 100%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero,
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero::before {
    animation: none !important;
    background-position: 0 0, 100% 0;
  }

  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges,
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-badges a,
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-kicker,
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-title,
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-copy,
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-cta,
  body.page-id-11 .agd-youth-page--v2 > .agd-youth-hero .youth-motion-hero-carousel {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
