/* Pop-up image styles */
/* .image-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.image-popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.image-popup-box {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.image-popup-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
}
.image-popup-caption {
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 14px;
  text-align: center;
  background: rgba(0,0,0,0.45);
  width: 100%;
}
.image-popup-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
} */
/* small animation */
/* .image-popup-box.enter {
  transform: translateY(8px) scale(0.98);
  transition: transform 0.25s ease;
}
.image-popup-overlay.show .image-popup-box.enter {
  transform: translateY(0) scale(1);
} */


/* Overlay du popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container du popup */
.popup-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.7) translateY(-50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-btn:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* Image du popup */
.popup-image {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: contain;
}

/* Contenu additionnel sous l'image */
.popup-content {
    padding: 20px;
    text-align: center;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

.popup-content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.popup-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.popup-cta {
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.popup-cta:active {
    transform: translateY(0);
}

/* Animation de pulse pour attirer l'attention */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.popup-overlay.active .popup-container {
    animation: pulse 2s ease-in-out 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        max-width: 95%;
    }
    
    .popup-image {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .content h1 {
        font-size: 2rem;
    }

    .popup-content h2 {
        font-size: 1.4rem;
    }
}