
.newsletter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.newsletter-popup {
  background-color: var(--color_blanc);
  border-radius: 12px;
  padding: 30px 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  color: var(--color_rouge);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  position: relative;
  animation: popupFade 0.3s ease-out;
}

.newsletter-popup.success {
  border-top: 6px solid var(--color_orange);
}

.newsletter-popup.error {
  border-top: 6px solid darkred;
}

.newsletter-popup .close-popup {
  position: absolute;
  top: -23px;
  right: -18px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color_text);
  cursor: pointer;
  background: none;
  border: none;
  box-shadow: none;
}

.newsletter-popup p {
  margin: 10px 70px;
  color: var(--color_text);
  font-weight: 600;
}

@keyframes popupFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}


.newsletter-overlay a{
  color: var(--color_rouge);
  text-decoration: underline;
}


.image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-popup-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.image-popup-overlay .close-popup {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  filter: invert(1);
}
