.ihotspot {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f3f3;
}

.ihotspot__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ddd;
}

.ihotspot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ihotspot__placer {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  cursor: crosshair;
  background: rgba(255, 0, 0, 0.02);
}

.ihotspot--placing .ihotspot__placer {
  display: block;
}

.ihotspot__dots {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.ihotspot__dot {
  position: absolute;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.92);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
  display: block;
}

.ihotspot__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
}

.ihotspot__dot.is-active {
  border-color: #f5c33b;
}

.ihotspot__dot:focus,
.ihotspot__dot:focus-visible {
  outline: none;
}

.ihotspot__panel {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 40;
  width: min(430px, calc(100% - 52px));
  padding: 28px 30px;
  pointer-events: none;
}

.ihotspot__panel[hidden] {
  display: none !important;
}

.ihotspot__eyebrow {
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #4253ff;
  margin-bottom: 16px;
  font-weight: 500;
}

.ihotspot__title {
  font-size: 34px;
  line-height: 1.12;
  font-weight: 500;
  color: #1f1f1f;
  margin-bottom: 26px;
}


.ihotspot__panel > * {
  pointer-events: auto;
}

.ihotspot__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
  z-index: -1;
}


.ihotspot__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: #d8d0c3;
  color: #111;
  text-decoration: none;
  margin-bottom: 26px;
  transition: background .2s ease, color .2s ease;
}

.ihotspot__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ihotspot__counter {
  font-size: 13px;
  color: #333;
}

.ihotspot__arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ihotspot__arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  padding: 0;
  flex: 0 0 auto;
  transition: background .2s ease;
}


.ihotspot__arrow:hover {
  background: #e8e4de;
}

.ihotspot__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #2d2d2d;
  border-right: 2px solid #2d2d2d;
  transform-origin: center;
}

.ihotspot__arrow--next::before {
  transform: translate(-60%, -50%) rotate(45deg);
}

.ihotspot__arrow--prev::before {
  transform: translate(-40%, -50%) rotate(-135deg);
}


.ihotspot__counter {
  font-size: 13px;
  color: #2f2f2f;
  flex: 0 0 auto;
  min-width: 34px;
}

.ihotspot__progress {
  position: relative;
  flex: 1 1 auto;
  height: 2px;
  background: rgba(0,0,0,.12);
  overflow: hidden;
}

.ihotspot__progressBar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(0,0,0,.28);
  transition: width .25s ease;
}


.ihotspot__thumb {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 132px;
  height: 92px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
  padding: 0;
  line-height: 0;
}

.ihotspot__thumbImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.ihotspot__thumb {
  z-index: 30;
}

.ihotspot__editToggle {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.75);
  color: #fff;
  cursor: pointer;
}

.ihotspot__editToggle[aria-pressed="true"] {
  background: #4f46e5;
}

.ihotspot__hud {
  position: absolute;
  left: 18px;
  bottom: 64px;
  z-index: 30;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
}


.ihotspot__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ihotspot__linkIcon {
  display: none;
  line-height: 0;
  flex: 0 0 auto;
}

.ihotspot__linkIcon img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}



/* Fix du hover noir sur tout ls liens */ 

.ihotspot__dot,
.ihotspot__arrow,
.ihotspot__thumb {
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
}

.ihotspot__dot:hover,
.ihotspot__dot:active,
.ihotspot__dot:focus,
.ihotspot__dot:focus-visible,
.ihotspot__arrow:hover,
.ihotspot__arrow:active,
.ihotspot__arrow:focus,
.ihotspot__arrow:focus-visible,
.ihotspot__thumb:hover,
.ihotspot__thumb:active,
.ihotspot__thumb:focus,
.ihotspot__thumb:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.ihotspot__dot:hover,
.ihotspot__dot:active,
.ihotspot__dot:focus,
.ihotspot__dot:focus-visible {
  background: rgba(255,255,255,.14) !important;
}

.ihotspot__dot.is-active,
.ihotspot__dot.is-active:hover,
.ihotspot__dot.is-active:active,
.ihotspot__dot.is-active:focus,
.ihotspot__dot.is-active:focus-visible {
  background: rgba(255,255,255,.14) !important;
  border-color: #f5c33b !important;
}

.ihotspot__arrow,
.ihotspot__arrow:hover,
.ihotspot__arrow:active,
.ihotspot__arrow:focus,
.ihotspot__arrow:focus-visible {
  background: transparent !important;
}

.ihotspot__thumb,
.ihotspot__thumb:hover,
.ihotspot__thumb:active,
.ihotspot__thumb:focus,
.ihotspot__thumb:focus-visible {
  background: transparent !important;
}

/* Couleur de hover = couleur du bouton */
.ihotspot__dot:hover,
.ihotspot__dot:active,
.ihotspot__dot:focus,
.ihotspot__dot:focus-visible {
  border-color: #d8d0c3 !important;
}

/* Dot actif */
.ihotspot__dot.is-active {
  border-color: #d8d0c3 !important;
}


/* RESPONSIVE */ 

@media (min-width: 768px) and (max-width: 1024px) {
  .ihotspot__panel {
    top: 18px;
    left: 18px;
    width: min(360px, calc(100% - 36px));
    padding: 22px 22px 24px;
  }

  .ihotspot__title {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .ihotspot__thumb {
    width: 104px;
    height: 74px;
    right: 18px;
    bottom: 18px;
  }

  .ihotspot__dot {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
  }

  .ihotspot__dot::after {
    width: 14px;
    height: 14px;
  }
}




@media (max-width: 767px) {
  .ihotspot {
    border-radius: 14px;
  }

  .ihotspot__stage {
    aspect-ratio: 4 / 5;
    min-height: 620px;
    position: relative;
    overflow: hidden;
  }

  .ihotspot__panel {
    top: 14px;
    left: 14px;
    width: calc(100% - 28px);
    max-width: none;
    padding: 18px 18px 20px;
  }

  .ihotspot__panel::before {
    border-radius: 16px;
  }

  .ihotspot__eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .ihotspot__title {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .ihotspot__link {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    margin-bottom: 16px;
    justify-content: center;
  }

  .ihotspot__nav {
    gap: 10px;
    align-items: center;
  }

  .ihotspot__counter {
    min-width: 28px;
    font-size: 12px;
  }

  .ihotspot__progress {
    height: 2px;
  }

  .ihotspot__arrows {
    gap: 6px;
  }

  .ihotspot__arrow {
    width: 30px;
    height: 30px;
  }

  .ihotspot__arrow::before {
    width: 7px;
    height: 7px;
  }

  .ihotspot__thumb {
    right: 14px;
    bottom: 14px;
    width: 86px;
    height: 62px;
    border-radius: 10px;
  }

  .ihotspot__editToggle {
    left: 14px;
    bottom: 14px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .ihotspot__hud {
    left: 14px;
    bottom: 54px;
    max-width: calc(100% - 28px);
    font-size: 11px;
  }

  .ihotspot__dot {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
  }

  .ihotspot__dot::after {
    width: 12px;
    height: 12px;
  }

  .ihotspot__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center top;
  display: block;
}

}