.flip-card {
  width: 300px;
  height: 420px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 110%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  margin-top: -45px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  display: block;
}

/* Visionneuse */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: zoomIn 0.25s ease;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: white;
  color: black;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.btn.btn-Blue {
  background: transparent;
  border-color: #2272ff;
  color: #2272ff;
}

div#pb-img {
  display: flex;
  justify-content: center;
}

p.first-list-link {
  text-align: end;
}

.owl-dots {
  display: none;
}

@media (max-width: 767px) {
  div#pb-img {
    display: flex;
    justify-content: center;
    margin-top: 80px;
  }
}

@media (min-width: 768px) {
  div#pb-img {
    margin-top: 80px;
  }
}
