.fond-comment {
  /* L'image de fond */
  background-image: url("..//image/img-commentaire.jpg");
  height: 100%;
  max-height: 4000px; /* L'image occupe tout l'écran */
  background-attachment: fixed; /* L'effet parallax se crée avec cette propriété */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* From Uiverse.io by ArturCodeCraft */
/* <reset-style> ============================ */
a {
  text-decoration: none;
}
/* <main-style> ============================ */
.main__scroll-text {
  color: rgba(28, 28, 30, 1);
}

.main__action:hover .main__scroll-box {
  animation: scroll-down 3s infinite;
}

/* Animate scroll icon */
@keyframes scroll-down {
  0%,
  100% {
    transform: translateY(0rem);
    opacity: 1;
  }

  35% {
    transform: translateY(1rem);
    opacity: 0;
  }

  70% {
    transform: translateY(-1rem);
    opacity: 0;
  }
}
.fond-comment h1 {
  color: white;
  font-size: clamp(32px, 2vw, 80px) !important;
  font-family: "Black-Mango";
}
.commentaire {
  width: 80%;
  max-width: 1200px;
  background-color: white;
  padding: 20px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.center-comment {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10%;
  padding-bottom: 10%;
  background-color: #311c0c47;
  flex-direction: column;
}

.galerie {
  width: 100%;
}

.rating-summary {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.comment_recent {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding-top: 10px;
  gap: 10px;
}

.comment-box {
  width: 49%;
  height: auto !important;
  min-height: 70px;
  
  min-width: 320px;
  max-width: 800px;
  border: solid 1px #959595;
  padding: 10px 15px 10px 15px;
  box-sizing: border-box;
}

.en-tete {
  width: 100%;
  justify-content:left ;
}

.centre_comment {
  justify-content: space-between;
  position: relative;
}

.comment-date {
  display: block; /* Pour qu'il prenne toute la largeur et soit bien en bas */
  text-align: right; /* Aligné à droite */
  font-size: 12px;
  color: gray;
  margin-top: 10px; /* Petit espace au-dessus */
}
h4 {
  font-family: "Poppins-semibold";
}
h2 {
  font-family: "Montserrat-semibold";
  text-align: left;
  font-size: clamp(16px, 2vw, 32px) !important;
}


.comment-media video {
  height: 100px;
  width: 100px;
  object-fit: cover;
}

.media-single {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.media-single img {
  max-width: 150px;
  height: 100px;
  width: 100px;
  object-fit: cover;
}
.media-preview {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.media-preview img,
.media-preview video {
  max-width: 150px;
  height: 100px;
  width: 100px;
  filter: brightness(0.7);
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 100%;
  height: 100%;
  font-size: 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox {
  display: none;
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.all-comments {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0 0 0;
}

.media-container {
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100%;
  max-height: 500px;
  position: relative;
}

.media-item {
  width: 100%;
  max-width: 600px;
  min-width: 300px;
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 2em;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2em;
  cursor: pointer;
  z-index: 7;
  color: black;
}

.close:hover {
  color: #959595;
}

.comment-text {
  display: inline; /* Texte et "Voir plus" sur la même ligne */
  word-wrap: break-word;
  color: #4b4b4b;
  font-family: "Poppins-Regular";
  text-align: left;
  box-sizing: border-box;
  padding-right: 5px;
}

.see-more {
  color: #755833;
  cursor: pointer;
  font-weight: bold;
  display: inline; /* Collé au texte */
  margin-left: 3px; /* Petit espace pour éviter d’être collé aux lettres */
}

/* Modal plein écran */
.media-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.single-media-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.media-modal .media-content {
  display: grid;
  grid-template-columns: repeat(4, 5fr);
  gap: 10px;
  padding: 20px;
  overflow-x: auto;
  background: #fff;
  border-radius: 10px;
  height: 80%;
}

.media-modal .media-content img,
.media-modal .media-content video {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}
.media-modal .media-content img:hover,
.media-modal .media-content video:hover {
  transform: scale(1.1);
}

.fullscreen-media {
  width: 150 !important;
  height: 150 !important;
  object-fit: contain;
  transition: none;
}

.media-container .media-item video {
  /* Styles spécifiques à la vidéo dans le lightbox */
  max-width: 100%;
  height: auto;
  width: 100%;
}

.close-single-modal,
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  height: 80%;
  max-height: 800px;
  overflow-y: auto;
}

.close-popup {
  float: right;
  font-size: 25px;
  cursor: pointer;
}

.show-more-comments {
  display: block;
  margin: 20px auto;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img,
.gallery-item video {
  width: 150px;
  height: 150px;
  object-fit: cover;
  
}

.gallery-more .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .gallery-item img,
  .gallery-item video {
    width: 70px;
    height: 70px;
    object-fit: cover;
  }

  .media-modal .media-content {
    grid-template-columns: repeat(2, 5fr);
  }
  h1{
    margin: 10%;
  }
}
