/*ajout--------------------------------------------------------------------*/


html {
  scroll-behavior: smooth;
}

.search-bar {
  position: absolute;
  top: 0;
  left: 34%;
  /* right: 30%; */
  transform: translateX(-50%);
  width: 890px;
  /* max-width: 600px; */
  background-color: white;
  display: none;
  z-index: 1000;
  padding: 15px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  transition: ease-in-out 0.5s;
  border-radius: 50px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  margin-right: 100px;
  padding-bottom: 20;
}

.search-bar.active {
  display: flex;
}

.stick-menu {
  transition: margin-top 0.5s ease;
}

.stick-menu.shifted {
  margin-top: 50px;
}

.search-icon,
.clear-icon {
  font-size: 16px;
  color: #9f9c9c;
  margin: 0 10px;
  cursor: pointer;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 5px;
  border-radius: 25px;
}

/*chat -----------*/

.chat {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 70px;
  /* border: 1px solid #ccc; */
  z-index: 9;
  background-color: white;
  width: 300px;
  height: auto;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 20px;
  padding-bottom: 10px;
  /* padding:50px; */
}

/* .chat{
  display: none;
  position: fixed;
  bottom:20px;
  right: 70px;
  border: 1px solid #ccc;
  z-index: 9;
  background-color: white;
  width: 300px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 20px;
  padding-bottom: 10px;
} */
.chat-title {
  font-size: 20px;
  font-weight: bold;
  color: #2aabe2;
}

.chat-header {
  padding: 10px;
  /* background-color: #f1f1f1; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  /* border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px; */
}

.chat-body form {
  /* padding: 10px 15px 30px 15px; */
  display: flex;
  padding: 20px 15px 30px 15px;
  flex-direction: column;
  /* justify-content: center;
  align-items: center; */
  gap: 10px;
  /* overflow-y: auto; */
  /* height: 250px; */
  /* background-color: #2aabe2; */
}

.chat-body form input,
.chat-body form textarea {
  /* width: calc(100% - 40px); */
  /* padding: 10px; */
  border: 1px solid #ccc;
  border-radius: 5px;
}

.chat-body form button {
  background-color: #2aabe2;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.chat-body form label {
  font-size: 14px;
  font-weight: bold;
  color: #35354a;
}

.close-btn {
  background: none;
  border: none;
  font-size: 25px;
  cursor: pointer;
  color: black;
}



.chat-footer input {
  width: calc(100% - 40px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}


.confirmation-message {
  text-align: center;
  padding: 20px;
  color: #28a745;
}

.success-icon {
  font-size: 50px;
  margin-bottom: 15px;
  color: #28a745;
}

.confirmation-message p {
  font-size: 18px;
  margin-top: 10px;
}


.PostContainer {
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px 100px;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.card {
  flex: 0 0 calc(33.33% - 20px);
  /* Largeur ajustée pour inclure l'espace */
  margin-right: 20px;
  /* Espace entre les cartes */
  height: 300px;
  /* Hauteur fixe pour les cartes */
  background-size: cover;
  /* Assure que l'image couvre tout l'espace */
  background-position: center;
  /* Centre l'image */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  /* Permet de positionner le contenu par rapport à la carte */
  overflow: hidden;
  /* Assure que l'image ne dépasse pas */
}

.card:last-child {
  margin-right: 0;
  /* Supprime la marge droite de la dernière carte */
}

.card-content {
  position: absolute;
  /* Positionne le contenu par rapport à la carte */
  bottom: 0;
  /* Espace en bas */
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  /* Couleur du texte sur l'image */
  z-index: 2;
  /* Place le texte au-dessus de l'image */
  background: #29abe2;
  height: 40px;
  
}

.card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}


.card-title {
  font-size: 1.5rem;
  margin: 0;
  color: #2aabe2;
}

.card-description {
  font-size: 1rem;
  margin: 5px 0 0;
  white-space: nowrap;       
  overflow: hidden;          
  text-overflow: ellipsis;   
  max-width: 100%;           
  display: block;  
  padding: 0 10px;
}


/* ----------------------------------------------------------------------------------- */
.TemoignageContainer {
  /* background-color: #4CAF50; */
  display: flex;
  flex-direction: row-reverse;
}

.CommentContainer {
  /* background-color: aqua; */
  width: 100%;
  padding-right: 30px;
  border-right: 1px solid #ccc;
}

.formAjout {
  /* flex: 3; */
  padding-left: 30px;
}

/* -------------------------------------------------------------- */

.hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.7); */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  /* Désactive les interactions */
}

.block-link:hover .hover {
  opacity: 1;
  visibility: visible;
}

.shuffle-item {
  cursor: pointer;
}

image-wrap img.thumbnail {
  width: 150px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: transform 0.2s ease;
}

image-wrap img.thumbnail:hover {
  transform: scale(1.1);
}

/* Masquer toutes les images sauf la première dans chaque album */
.image-wrap img.thumbnail:not(:first-child),
.image-wrap video.thumbnail:not(:first-child) {
  display: none;
}

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

.carousel {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

/* Uniformiser la taille des images dans le popup */
.carousel img {
  width: 800px;
  /* Largeur fixe */
  height: 600px;
  /* Hauteur fixe */
  object-fit: cover;
  /* Garantit que l'image remplit le conteneur sans déformation */
  margin: 0 auto;
  /* Centre l'image horizontalement */
  display: block;
}

.carousel video {
  width: 800px;
  /* Largeur fixe */
  height: 600px;
  /* Hauteur fixe */
  object-fit: cover;
  /* Garantit que la vidéo remplit le conteneur sans déformation */
  margin: 0 auto;
  /* Centre la vidéo horizontalement */
  display: block;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #2aabe2;
  ;
}

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

.prev:hover,
.next:hover {
  color: #2aabe2;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}



.media-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.media-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  /* width: auto; */
  width: 70%;
  height: 70%;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #fff;
}

.popup-media {
  max-width: auto;
  /* 90% de la largeur de la fenêtre */
  max-height: auto;
  /* 80% de la hauteur de la fenêtre */
  width: auto;
  height: auto;
  /* display: block; */
  /* object-fit: contain; */
  /* Garde le ratio de l'image */
}

/* Style spécifique pour les images */
.popup-media.img {
  max-width: auto;
  max-height: auto;

}

/* Style spécifique pour les vidéos */
.popup-media.video {
  max-width: 100%;
  max-height: 100%;
}

.popup-description {
  text-align: center;
  font-size: 16px;
  margin-top: 15px;
  padding: 0 20px;
  max-width: 700px;
}

.popup-description h1 {
  font-size: 22px;
  margin-bottom: 10px;
  color: white !important;

}

.close-popup {
  position: absolute;
  top: -40px;
  right: -40px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
}

/* Styles pour les boutons de navigation */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(11, 111, 161);
  font-size: 40px;
  cursor: pointer;
  background: rgba(235, 233, 233, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.prev-btn {
  left: -60px;
}

.next-btn {
  right: -60px;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .close-popup {
    top: -30px;
    right: 0;
    font-size: 25px;
  }

  .popup-media {
    max-width: 95vw;
    max-height: 70vh;
  }
}

/* -------------------------------------------------notification---------------------------------------- */


/* Style de la notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  transform: translateX(-60px);
  background-color: #4CAF50;
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 10px 6px rgba(30, 30, 30, 0.1);
  font-size: 16px;
  display: block;
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: center;
  max-width: 300px;
}


.notification-message {
  margin-bottom: 10px;
}


.notification-link {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
}


.notification.hidden {
  opacity: 0;
  transform: translateX(-20px) translateY(20px);
  pointer-events: none;
}

.medium-container-Sign-in {
  max-width: 540px;
  margin: 0 auto;
}

.filter-link.active {
  color: #fff;
  background-color: #29abe2;
  padding: 5px 10px;
}