.hero-programme {
  padding-top: var(--wp--preset--spacing--medium);
  padding-bottom: 72px;
}

.hero-programme__top {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 51px;
}

.hero-programme__surtitre {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .15px;
  text-transform: uppercase;
  line-height: 24px;
  color: var(--wp--preset--color--secondary);
  margin: 0 0 15px;
}

.hero-programme__titre {
  margin: 0;
  color: var(--wp--preset--color--secondary);
  font-family: var(--wp--preset--font-family--primary);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 9;
  font-size: clamp(28px, 4vw + 12px, 57px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.25px;
}

/* Galerie */
.hero-programme__gallery {
  position: relative;
}

.hero-programme__slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
}

.hero-programme__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity .8s cubic-bezier(.65, 0, .35, 1), transform 1.2s cubic-bezier(.65, 0, .35, 1);
}

.hero-programme__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.hero-programme__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  display: block;
}

.hero-programme__slides > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  display: block;
}

.hero-programme__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 72px;
  height: 56px;
  border-radius: 50px;
  border: none;
  background-color: var(--wp--preset--color--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-programme__nav--prev {
  left: -36px;
}

.hero-programme__nav--next {
  right: -36px;
}

.hero-programme__nav--next svg {
  transform: rotate(180deg);
}

.hero-programme__dots {
  display: none;
  position: absolute;
  bottom: -22px;
  right: 20px;
  z-index: 5;
  gap: 8px;
}

.hero-programme__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background-color .3s ease, width .3s ease;
}

.hero-programme__dot.is-active {
  width: 20px;
  border-radius: 4px;
  background-color: var(--wp--preset--color--primary);
}

/* Icônes fonctionnalités */
.hero-programme__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.hero-programme__icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--wp--preset--color--secondary);
  font-size: 14px;
  font-weight: 600;
}

.hero-programme__icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Bande icônes + descriptif : passe sous le panneau, mais son contenu s'arrête avant */
.hero-programme__row {
  display: flex;
  flex-direction: column;
  row-gap: 110px;
  background-color: var(--wp--preset--color--secondary-light);
  border-radius: 0 0 24px 24px;
  padding: 51px 776px 125px 129px;
}

.hero-programme__content {
  min-width: 0;
}

.hero-programme__content-titre {
  margin: 0 0 36px;
}

.hero-programme__content-texte {
  color: var(--wp--preset--color--secondary);
}

.hero-programme__content-texte p {
  margin-bottom: 0;
}

/* Panneau : chevauche la galerie (en bas) et la bande descriptif (en haut) */
.hero-programme__panel {
  position: absolute;
  top: calc(100% - 111px);
  right: 0;
  width: 631px;
  z-index: 3;
}

.hero-programme__panel-sticky {
  /* Position gérée en JS (fixe pendant le scroll utile, relâchée ensuite) :
     "position: sticky" natif ne se relâchait pas correctement ici. */
  width: 502px;
  margin-right: 129px;
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--base);
  border-radius: 24px;
  padding: 48px 72px 48px 48px;
}

.hero-programme__badge {
  position: absolute;
  top: -22px;
  left: 24px;
  z-index: 4;
  display: inline-flex;
  background-color: var(--wp--preset--color--sky-blue);
  color: var(--wp--preset--color--secondary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 16px 24px;
}

.hero-programme__panel-titre {
  color: var(--wp--preset--color--base);
  margin: 0 0 80px;
  font-size: 2.8125rem;
  font-weight: var(--wp--custom--font-weight--semi-bold);
  line-height: 52px;
}

.hero-programme__panel-resume {
  margin: 0 0 80px;
  font-size: 1.5rem;
  font-weight: var(--wp--custom--font-weight--bold);
  line-height: 32px;
}

.hero-programme__panel-resume strong {
  color: var(--wp--preset--color--primary);
}

.hero-programme__panel-infos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 66px;
  margin-bottom: 80px;
}

.hero-programme__panel-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.hero-programme__panel-info-label {
  font-size: var(--wp--preset--font-size--base);
  font-weight: var(--wp--custom--font-weight--regular);
  line-height: 24px;
  color: var(--wp--preset--color--sky-blue);
}

.hero-programme__panel-info-text {
  display: flex;
  flex-direction: column;
}

.hero-programme__panel-subtitle {
  color: var(--wp--preset--color--base);
  font-size: 24px;
  font-weight: var(--wp--custom--font-weight--bold);
  margin: 0 0 24px;
  line-height: 32px;
}

.hero-programme__panel-cta {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  margin-bottom: 80px;
}

.hero-programme__panel-btn {
  gap: 12px;
  font-size: 14px !important;
}

.hero-programme__panel-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  font-family: var(--wp--preset--font-family--secondary) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.hero-programme__share {
  display: flex;
  gap: 16px;
}

.hero-programme__share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
}

@media (max-width: 1700px) {
  .hero-programme__nav--prev {
    left: 12px;
  }

  .hero-programme__nav--next {
    right: 12px;
  }
}

@media (max-width: 1300px) {
  .hero-programme__row {
    row-gap: 50px;
    padding-top: 51px;
    padding-right: 716px;
    padding-bottom: 65px;
    padding-left: 69px;
  }

  .hero-programme__panel {
    width: 571px;
  }

  .hero-programme__panel-sticky {
    margin-right: 69px;
  }
}

@media (max-width: 991px) {
  .hero-programme__row {
    padding-right: var(--wp--preset--spacing--large);
    padding-left: 48px;
  }

  .hero-programme__panel-titre {
    margin-bottom: 30px;
  }

  .hero-programme__panel-resume {
    margin-bottom: 40px;
  }

  .hero-programme__panel-infos {
    margin-bottom: 40px;
  }

  .hero-programme__panel-cta {
    margin-bottom: 40px;
  }

  .hero-programme__icons {
    padding: 0;
    justify-content: space-around;
  }

  .hero-programme__panel {
    position: relative;
    top: auto;
    width: 100%;
    margin-bottom: 0;
  }

  .hero-programme__panel-sticky {
    position: static;
    width: 100%;
    margin-right: 0;
    border-radius: 0;
  }
}

@media (max-width: 550px) {
  .hero-programme__panel-infos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-programme__nav {
    display: none;
  }

  .hero-programme__dots {
    display: flex;
  }

  .hero-programme__badge {
    padding: 10px 15px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .hero-programme__panel-titre {
    font-size: 32px;
    line-height: 40px;
  }
}

.hero-programme #breadcrumbs {
  font-size: var(--wp--preset--font-size--small);
  margin-bottom: var(--wp--preset--spacing--small);
}
