/* =========================================================
   OWL CAROUSEL - CSS PROPRE + MINIATURES CARRÉES
   ========================================================= */

/* Base */
.owl-carousel,
.owl-carousel .owl-item {
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.owl-carousel {
  display: none;
  width: 100%;
  z-index: 1;
}

.no-js .owl-carousel,
.owl-carousel.owl-loaded {
  display: block;
}

/* Stage */
.owl-carousel .owl-stage-outer {
  position: relative;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.owl-carousel .owl-stage {
  position: relative;
  touch-action: pan-y;
}

.owl-carousel .owl-stage:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

/* Items */
.owl-carousel .owl-item {
  min-height: 1px;
  float: left;
  -webkit-backface-visibility: hidden;
  -webkit-touch-callout: none;
}

/* ✅ IMPORTANT : image Owl = image normale (PAS flex) */
.owl-carousel .owl-item img {
  display: block;
  width: 79px !important;
  height: 79px !important;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  border-radius: 5px;
  margin-top: 15px;
  object-fit: cover !important;
  overflow: hidden;
}

/* Nav / dots */
.owl-carousel .owl-dots.disabled,
.owl-carousel .owl-nav.disabled {
  display: none;
}

.owl-carousel .owl-dot,
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-nav .owl-prev {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.owl-carousel.owl-loading {
  opacity: 0;
  display: block;
}

.owl-carousel.owl-hidden {
  opacity: 0;
}

.owl-carousel.owl-refresh .owl-item {
  visibility: hidden;
}

.owl-carousel.owl-drag .owl-item {
  -webkit-user-select: none;
  user-select: none;
}

.owl-carousel.owl-grab {
  cursor: grab;
}

.owl-carousel.owl-rtl {
  direction: rtl;
}

.owl-carousel.owl-rtl .owl-item {
  float: right;
}

/* Animations */
.owl-carousel .animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.owl-carousel .owl-animated-in {
  z-index: 0;
}

.owl-carousel .owl-animated-out {
  z-index: 1;
}

.owl-carousel .fadeOut {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
}

@-webkit-keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.owl-height {
  transition: height 0.5s ease-in-out;
}

/* Lazy load */
.owl-carousel .owl-item .owl-lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.owl-carousel .owl-item img.owl-lazy {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

/* Video */
.owl-carousel .owl-video-wrapper {
  position: relative;
  height: 100%;
  background: #000;
}

.owl-carousel .owl-video-play-icon {
  position: absolute;
  height: 80px;
  width: 80px;
  left: 50%;
  top: 50%;
  margin-left: -40px;
  margin-top: -40px;
  background: url(owl.video.play.png) no-repeat;
  cursor: pointer;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  transition: transform 0.1s ease;
}

.owl-carousel .owl-video-play-icon:hover {
  transform: scale(1.3);
}

.owl-carousel .owl-video-playing .owl-video-play-icon,
.owl-carousel .owl-video-playing .owl-video-tn {
  display: none;
}

.owl-carousel .owl-video-tn {
  opacity: 0;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 0.4s ease;
}

.owl-carousel .owl-video-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
}

/* =========================================================
   MINIATURES CARRÉES (73x73)
   ➜ Utilise : <div class="owl-thumb"><img ...></div>
   ========================================================= */

.owl-thumb {
  width: 73px;
  height: 73px;
  margin-top: 15px;        /* tu avais 15px dans l’inspect */
  border-radius: 5px;
  overflow: hidden;        /* découpe nette */
  display: block;
  background: #fff;        /* optionnel */
}

.owl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* remplit le carré sans déformer */
  object-position: center;
  display: block;
}

/* =========================================================
   FALLBACK (si ta miniature est juste un <img> sans wrapper)
   ➜ Ajoute class="owl-thumb-img" sur l'img miniature
   ========================================================= */

.owl-thumb-img {
  width: 73px !important;
  height: 73px !important;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  margin-top: 15px;
}
