@charset "UTF-8";
body {
  background-image: linear-gradient(to bottom, rgba(var(--bs-dark-rgb), 0), rgba(var(--bs-dark-rgb), 1)), url("../img/fond.jpg") !important;
  background-attachment: fixed;
  background-size: cover;
}

.text-container-dark {
  background-color: rgba(0, 0, 0, 0.5); /* Fond noir semi-transparent */
}

.text-container-light {
  background-color: rgba(255, 255, 255, 0.5); /* Fond noir semi-transparent */
  margin-bottom: 2em !important;
}

.text-shadow {
  text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.9);
}

.carousel-caption {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: -moz-max-content;
  height: max-content;
  width: -moz-max-content;
  width: max-content;
}

.carousel-item img {
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  width: auto;
}

.card {
  overflow: hidden;
}

.card-body {
  text-align: center;
  text-decoration: none !important;
  color: inherit;
}

.pagination {
  --bs-pagination-active-bg: $dark;
  --bs-pagination-active-border-color: $dark;
}

.zoom-hover {
  transition: transform 0.5s ease;
}

.zoom-hover:hover {
  transform: scale(1.1);
}

.zoom-container {
  overflow: hidden;
}

#portfolio .zoom-container {
    position: relative;
    width: 100%; /* Le conteneur prend toute la largeur disponible */
    padding-bottom: 100%; /* La hauteur est égale à la largeur */
}

#portfolio .zoom-container img {
    position: absolute;
    object-fit: contain;
    width: 100%;
    height: 100%;
  }

.modal {
  display: none; /* Masquer par défaut */
  position: fixed; /* Rester en place */
  z-index: 1031; /* Au-dessus des autres éléments */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Activer le défilement si nécessaire */
  background-color: rgba(0, 0, 0, 0.9); /* Fond noir avec transparence */
}

.modal.show {
  display: flex; /* Utiliser flexbox */
  align-items: center; /* Centrer verticalement */
  justify-content: center; /* Centrer horizontalement */
}

.modal-content {
  background: none;
}

.modal-content img {
  margin: auto !important;
  display: block;
  width: 80%;
  max-width: 700px;
  -o-object-fit: contain;
     object-fit: contain; /* Assurez-vous que l'image est contenue dans le modal */
}

#portfolio .modal-content img {
  height: 90%;
}

.modal-content video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
  color: white;
  text-align: center;
  padding: 10px;
  opacity: 0; /* Masquer par défaut */
  transition: opacity 0.3s ease; /* Transition pour l'effet de survol */
}

.modal-content:hover .caption {
  opacity: 1; /* Afficher la légende au survol */
}

.modal-content, .modal-caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1032;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  text-decoration: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.comment-content {
  position: relative;
  background: #f1f1f1;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
}

.comment-content::after {
  content: "";
  position: absolute;
  bottom: 100%; /* Positionne la pointe en bas de la bulle */
  left: 20px; /* Ajustez cette valeur pour aligner la pointe avec le paragraphe du dessus */
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #f1f1f1; /* La couleur de fond de la bulle */
}/*# sourceMappingURL=custom.css.map */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Pour un défilement fluide sur mobile */
}

.table-responsive table {
  width: 100%; /* Assurez-vous que le tableau s'adapte à son conteneur */
  border-collapse: collapse;
}

.limited-height {
  max-height: 200px; /* Limite la hauteur à 200px */
  object-fit: cover; /* Coupe l'image si elle dépasse la hauteur maximale */
  width: 100%; /* Assure que l'image occupe toute la largeur disponible */
}

.carousel-item .carousel-caption {
    opacity: 0; /* Masque la div par défaut */
    transition: opacity 0.3s ease-in-out; /* Ajoute une transition fluide */
}

.carousel-item:hover .carousel-caption {
    opacity: 1; /* Affiche la div au survol */
}