.fancybox-wrap{
animation: slideIn 0.6s ease-out, popupPulse 1s ease-in-out 2s infinite;
}

.apc-hidden {
  opacity: 0 !important;
  transform: translateY(50px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.corner-popup { 
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  padding: 16px;
  font-family: sans-serif;
  z-index: 9999;
  transition: opacity 0.5s ease, transform 0.5s ease;
  overflow: visible; /* pour le SVG */
}

.close-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  transition: transform 0.2s;
}

.close-btn:hover {
  transform: rotate(90deg);
  color: #000;
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes popupPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
  50% { transform: scale(1.03); box-shadow: 0 8px 25px rgba(0,0,0,0.25); }
}

/* progress border SVG */
.corner-popup svg.progress-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.corner-popup svg.progress-border rect {
  fill: none;
  stroke: #000;
  stroke-width: 4;
  stroke-linecap: round;
   transition: stroke-dashoffset 0.2s linear;
  /* transition supprimée pour un suivi instantané */
}
.cornerPopup rect {
  transition: stroke-dashoffset 0.2s linear;
}

.apc-popup .progress-text{
  position: absolute;
  top: -25px;
  left: -25px;
  box-shadow: 0 0 5px 1px #4facfe;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: #fff;
  display:block;margin-top:8px;font-size:14px;color:#4facfe;font-weight:600;
}