/* Popup de bienvenue OnMyShop */

.welcome-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.welcome-popup-container {
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: popupSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-popup-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  min-height: 400px;
  position: relative;
}

/* Image d'illustration */
.welcome-popup-image {
  flex: 0 0 45%;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.welcome-popup-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  animation: floatImage 3s ease-in-out infinite;
}

/* Décorations animées */
.welcome-popup-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: floatDecoration 4s ease-in-out infinite;
}

.circle-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 15%;
  animation-delay: 0s;
}

.circle-2 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 10%;
  animation-delay: 1s;
}

.circle-3 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 25%;
  animation-delay: 2s;
}

/* Contenu textuel */
.welcome-popup-text {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.welcome-popup-header {
  text-align: center;
  margin-bottom: 30px;
}

.welcome-logo {
  height: 50px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.welcome-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-popup-message {
  margin-bottom: 35px;
  text-align: center;
}

.welcome-message {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.welcome-popup-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.welcome-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  min-width: 160px;
  justify-content: center;
}

.welcome-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.welcome-btn:hover::before {
  left: 100%;
}

.welcome-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.welcome-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
  color: white;
}

.welcome-btn-secondary {
  background: white;
  color: #2563eb;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #2563eb;
  color: #2563eb;
}

.welcome-popup-footer {
  text-align: center;
  position: relative;
}

.welcome-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 35px;
  height: 35px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.welcome-close-btn:hover {
  background: #e2e8f0;
  color: #475569;
  transform: scale(1.1);
}

.welcome-note {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  font-style: italic;
}

/* Animations */
@keyframes popupSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatDecoration {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(180deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-popup-content {
    flex-direction: column;
    min-height: auto;
  }
  
  .welcome-popup-image {
    flex: none;
    height: 200px;
  }
  
  .welcome-popup-text {
    padding: 30px 25px;
  }
  
  .welcome-title {
    font-size: 1.8rem;
  }
  
  .welcome-message {
    font-size: 1rem;
  }
  
  .welcome-popup-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .welcome-btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .welcome-popup-container {
    width: 95%;
    margin: 20px;
  }
  
  .welcome-popup-text {
    padding: 25px 20px;
  }
  
  .welcome-title {
    font-size: 1.6rem;
  }
  
  .welcome-popup-image {
    height: 150px;
  }
}
