/*------------------------------
		 CAROUSEL
		------------------------------*/
/* Le conteneur des slides */

#carouselA {
  height: 340px;
  margin: 0 20px;
}

#carouselB {
  height: 200px;
  margin-bottom: 10px;
}

#carouselA [data-slides] {
  height: 100%;
  position: relative;
  overflow: hidden;
}

[data-slides] {
  position: relative;
  overflow: hidden;
}

/* Toutes les slides sont empilées, non cliquables et invisibles */
[data-slides] .slide {
  position: absolute;
  inset: 0;
  /* top/right/bottom/left: 0 */
  opacity: 0;
  pointer-events: none;
  /* empêché de capter les clics */
  transition: opacity 0.3s ease;
}

.slide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

#carouselA .slide::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  top: 0;
}

/* Seule la slide active est visible et cliquable */
[data-slides] .slide[data-active] {
  opacity: 1;
  pointer-events: auto;
  /* redevient cliquable */
  z-index: 1;
}

[data-carousel] {
  position: relative;
  width: 100%;
  /*max-width: 520px;*/
  margin: 0 auto;
  border: 1px solid black;
  border-radius: 10px;
  overflow: hidden;
}

[data-slides] {
  position: relative;
  height: 100%;
  /* ou aspect-ratio: 16/9; */
  overflow: hidden;
}
.slide > img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.caption {
  position: absolute;
  /* left: 0;
  right: 0;
  bottom: 0px; */
  /*padding: 16px 24px;
  bottom: 6px;
  left: 24px;*/
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.caption > div {
  color: white;
  z-index: 2;
  border-radius: 6px 6px 6px 6px;
  font-size: 17px;
  font-weight: 700;
  background-color: #00000054;
  padding: 6px;
  margin: 0px 24px 10px 24px;
}

.float-title {
  position: absolute;
  color: white;
  left: 0px;
  top: 0px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  padding: 7px;
  border-radius: 10px;
  width: 100%;
  font-size: 1.25rem;
  text-align: center;
}

/* Boutons */
button.prev,
button.next {
  color: #ffffff;
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #00000054; /*rgba(0, 0, 0, 0.5);*/
  border: none;
  font-size: 24px;
  padding: 3px 14px 6px 14px;/*8px 12px;*/
  cursor: pointer;
  border-radius: 100%;/*0.25rem;*/
  transition: background-color 0.3s ease;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

button:hover {
  background: #000000cc;/*rgba(0, 0, 0, 0.8);*/
}

/* END CAROUSEL */

/* old carousel right */
#dandr_ipsoc_highlight {
  display: flex;
  justify-content: center;
  gap: 20px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  align-items: center;
}

.carousel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #f2f2f2;
}

.carousel-container {
  position: relative;
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel-image-filter {
  z-index: 7;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

#news-textpreview {
  z-index: 8;
  position: absolute;
  top: 3px;
  left: 44px;
  width: 70%;
  display: flex;
  justify-content: center;
}

.news-highlight-title {
  color: #fff;
  padding: 0px 4px;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0.24px;
  border-radius: 10px;
}

.news-highlight_arrow.left {
  left: 12px;
}

.news-highlight_arrow.right {
  right: 12px;
}

.news-highlight_arrow > img {
  display: none !important;
}

.news-highlight_arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: inline-block;
  width: 30px;
  height: 30px;
  z-index: 9999;
  background: url("../images/Ellipse 1.svg") center/contain no-repeat;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 0;
}

.news-highlight_arrow.left {
  left: 5px;
  background-image: url("./china_home_files/Group-left.svg"),
    url("./china_home_files/Ellipse 1.svg");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 30px 30px, contain;
}

.news-highlight_arrow.right {
  right: 5px;
  background-image: url("./china_home_files/Group-right.svg"),
    url("./china_home_files/Ellipse 1.svg");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 30px 30px, contain;
}

.news-highlight_arrow.left:hover {
  background-image: url("./china_home_files/Group-left.svg"),
    url("./china_home_files/Ellipse 2.svg");
}

.news-highlight_arrow.right:hover {
  background-image: url("./china_home_files/Group-right.svg"),
    url("./china_home_files/Ellipse 2.svg");
}

/* end old carousel right */
