/* ========== POPUP HOME « KRITER DE SÉLECTION » (bas gauche) ========== */
/* Desktop first. Fermée au clic sur la croix, réapparaît à chaque chargement de page */

.ks-popup {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 997;
  width: 300px;
  animation: ksPopupIn .5s ease .8s both;
}

.ks-popup.is-hidden {
  display: none;
}

.ks-popup__link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ks-popup__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .3);
}

.ks-popup__link:focus-visible {
  outline: 3px solid #137FB3;
  outline-offset: 3px;
}

.ks-popup__link img {
  display: block;
  width: 100%;
  height: auto;
}

/* Croix de fermeture */
.ks-popup__close {
  position: absolute;
  top: -12px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  color: #111;
  cursor: pointer;
}

.ks-popup__close:hover {
  background: #f0f0f0;
}

.ks-popup__close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

@keyframes ksPopupIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .ks-popup {
    left: 16px;
    bottom: 16px;
    width: 190px;
  }

  .ks-popup__close {
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ks-popup {
    animation: none;
  }

  .ks-popup__link {
    transition: none;
  }

  .ks-popup__link:hover {
    transform: none;
  }
}
