html,
body {
  position: relative;
  height: 100%;
}

body {
  /* font-family: Helvetica Neue, Helvetica, Arial, sans-serif; */
  font-family: "DM sans", sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

swiper-container {
  width: 100%;
  height: 100%;
}

swiper-slide {
  background-position: center;
  background-size: cover;
}

swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 760px) {
  .swiper-button-next {
    right: 20px;
    transform: rotate(90deg);
  }

  .swiper-button-prev {
    left: 20px;
    transform: rotate(90deg);
  }
}

.image-cadre {
  width: 135px;
  height: 75px;
}

.image-cadre img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* scrol empilé  */

#stats-section {
  display: flex;
  align-items: flex-start;
}

#default-carousel {
  width: 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: flex-start;
  overflow: hidden;
}

#default-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#stats-right {
  width: 50%;
  padding: 2rem;
  box-sizing: border-box;
}

.stat-card {
  position: sticky;
  top: 0;
  height: 100vh;
  border-radius: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

.stat-card .inner {
  padding: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.stat-card.visible .inner {
  opacity: 1;
  transform: translateY(0);
}

.stat-num {
  color: #1a2744;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-lbl {
  color: #1a2744;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.stat-dsc {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.6;
}

.scroll-gap {
  height: 70vh;
}

/* Centre le contenu de la dernière carte uniquement */
.stat-card:last-of-type .inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 762px) {
  #stats-section {
    flex-wrap: wrap;
  }

  #default-carousel {
    width: 100%;
    position: relative;
    top: 0;
    height: 40vh;
    align-self: flex-start;
    overflow: hidden;
  }
  #stats-right {
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
  }

  .stat-card .inner {
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 0.5s ease,
      transform 0.5s ease;
  }

  .stat-card.visible .inner {
    opacity: 1;
    transform: translateY(0);
  }

  .stat-card {
    position: sticky;
    top: 0;
    height: 30vh;
    border-radius: 1rem;
    box-sizing: border-box;
    overflow: hidden;
  }
}
