/* Overlay d'arrière-plan */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* État affiché */
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Boîte Pop-up */
.popup-container {
  background: #ffffff;
  width: 90%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

/* Bouton Fermer (Croix) */
.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Image */
.popup-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 250px;
  object-fit: cover;
}

/* Contenu textuel */
.popup-content {
  padding: 20px;
  text-align: center;
}
.popup-content .title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.55rem;
    text-transform: uppercase;
}
.popup-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

.popup-btn-action {
    display: inline-block;
    background-color: #d9534f;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 2em;
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.popup-btn-action:hover {
  background-color: #c9302c;
  color: #ffffff;
  transform: scale(1.02);
}