/* custom.css - popup */
.popup-overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  z-index: 9999;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup {
  position: relative;
background-image: url('/images/galets.jpg') ;
  background-size: cover;
  background-position: center;
  background-blend-mode: lighten; /* ou overlay pour un rendu plus contrasté */  border-radius: 14px;
  padding: 28px;
  max-width: 480px;
  width: calc(100% - 40px);
  box-shadow: 0 18px 40px rgba(13,24,40,0.25);
  transform: translateY(8px) scale(0.97);
  transition: transform 260ms cubic-bezier(.2,.9,.3,1);
  text-align: justify;
    color: #000;

}

/* animation d'entrée */
.popup-overlay.active .popup {
  transform: translateY(0) scale(1);
}

/* close button */

.close-btn {
  position: relative;
  display: block;
  margin: 20px auto 0; /* espace au-dessus et centré */
  color: #ddd;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  text-align: center;
  background: #333;
  border: 1px solid rgba(255,255,255,0.6);
}

.close-btn:hover {
  color: #333;
  background: #ddd;
}

/* CTA */
.cta-btn{
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(180deg,#0078ff,#005fcc);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

/* Responsive */
@media (max-width:420px){
  .popup { padding: 18px; border-radius: 12px; }
}
