  .carousel {
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
    max-width: 90%;
    display: flex;
    > * {
      flex: 0 0 0%;
    }

    &:hover .group {
      animation-play-state: paused;
    }
  }

  .card {
    width: 100%;
    border-radius: 24px;
    box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
    padding: 20px;
    justify-content: center;
    align-items: center;

    }
    /* Groupez les cartes pour une meilleure structure. */
  .group {
    display: flex;
    gap: 40px;
    /* Ajoutez un padding à droite pour créer un espace entre la dernière et la première carte. */
    padding-right: 50px;
    will-change: transform; /* Nous devons être sympas avec le navigateur - lui indiquer ce que nous allons animer. */
    animation: scrolling 14s linear infinite;
  }

  @keyframes scrolling {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }


.carousel .group .card .top {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
}

.carousel .group .card .personne-nom {
  text-align: right;
}

.carousel .group .card {
  width: 400px;
  height: 200px;
  background-color: #fff;
  border-left: 6px solid #ffcc00;

  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  margin: 10px;
  box-sizing: border-box;
}



.carousel .group .card  .img-avis {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.carousel .group .card  p {
  font-size: 0.95em;
  color: #333;
  line-height: 1.4;
  margin-top: 10px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

}

.carousel .group .card:hover {
  transform: scale(1.07);
  height: 300px;
  transition: transform 0.5s ease , height 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  white-space: normal;
}

.carousel .group .card:hover p {
  font-size: 0.85em !important;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
} 

.carousel .group .box-bottom {
  display: flex;
  margin-left: 150px;

}

.carousel .group .box-bottom h1 {
  font-size: 10em;
  color: #ff0000;
  line-height: 1.4;
  margin-top: 10px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}











  .carousel-bottom {
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
    max-width: 90%;
    display: flex;
    margin-left: 150px;
    > * {
      flex: 0 0 0%;
    }

    &:hover .group {
      animation-play-state: paused;
    }
  }

  .card {
    width: 100%;
    border-radius: 24px;
    box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
    padding: 20px;
    justify-content: center;
    align-items: center;

    }
    /* Groupez les cartes pour une meilleure structure. */
  .group {
    display: flex;
    gap: 40px;
    /* Ajoutez un padding à droite pour créer un espace entre la dernière et la première carte. */
    padding-right: 50px;
    will-change: transform; /* Nous devons être sympas avec le navigateur - lui indiquer ce que nous allons animer. */
    animation: scrolling 14s linear infinite;
  }

  @keyframes scrolling {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }


.carousel-bottom .group .card .top {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
}

.carousel-bottom .group .card .personne-nom {
  text-align: right;
}

.carousel-bottom .group .card {
  width: 400px;
  height: 200px;
  background-color: #fff;
  border-left: 6px solid #ffcc00;

  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  margin: 10px;
  box-sizing: border-box;
}



.carousel-bottom .group .card  .img-avis {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.carousel-bottom .group .card  p {
  font-size: 0.95em;
  color: #333;
  line-height: 1.4;
  margin-top: 10px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

}

.carousel-bottom .group .card:hover {
  transform: scale(1.07);
  height: 300px;
  transition: transform 0.5s ease , height 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  white-space: normal;
}

.carousel-bottom .group .card:hover p {
  font-size: 0.85em !important;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
} 

.carousel-bottom .group .box-bottom {
  display: flex;
  margin-left: 150px;

}

.carousel-bottom .group .box-bottom h1 {
  font-size: 10em;
  color: #ff0000;
  line-height: 1.4;
  margin-top: 10px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
