/* ========================================
   POPUP CHANGEMENT D'ADRESSE - KIKI DECO
   Design moderne avec split layout
   ======================================== */

/* Overlay avec effet de flou */
.address-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Container principal du popup */
.address-popup-container {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Split Layout */
.popup-split-layout {
  display: flex;
  min-height: 500px;
}

/* Left Side - Content */
.popup-content-side {
  flex: 1;
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

/* Right Side - Image */
.popup-image-side {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
}

.popup-side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Brand/Logo */
.popup-brand h3 {
  font-size: 20px;
  font-weight: 700;
  color: #dc3545;
  margin: 0 0 25px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Main Title */
.popup-main-title {
  font-size: 32px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 15px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Subtitle */
.popup-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: #6c757d;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* Description */
.popup-description {
  font-size: 15px;
  color: #495057;
  line-height: 1.7;
  margin: 0 0 30px 0;
}

/* Address Info Block */
.popup-address-info {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #dc3545;
  margin-bottom: 25px;
}

.address-icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background: #dc3545;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-icon i {
  font-size: 24px;
  color: #ffffff;
}

.address-details {
  flex: 1;
}

.address-location {
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  margin: 0 0 5px 0;
}

.address-extra {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

/* Timer de fermeture automatique */
.auto-close-timer {
  margin-bottom: 25px;
  padding: 12px 15px;
  background: #fff5f5;
  border-radius: 8px;
  border: 1px solid #ffc9c9;
}

.timer-bar {
  height: 3px;
  background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
  border-radius: 2px;
  width: 0%;
  transition: width 1s linear;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.timer-text {
  margin: 0;
  font-size: 12px;
  color: #721c24;
  text-align: center;
  font-weight: 500;
}

.timer-text span {
  color: #dc3545;
  font-weight: 700;
  font-size: 13px;
}

/* CTA Button */
.popup-cta-button {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.popup-cta-button:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

/* Footer Note */
.popup-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6c757d;
  margin: 0;
  justify-content: center;
}

.popup-footer-note i {
  font-size: 16px;
  color: #dc3545;
}

/* Bouton de fermeture */
.address-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.address-popup-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.address-popup-close i {
  font-size: 24px;
  color: #212529;
}

/* Animation de départ */
.address-popup-overlay.closing .address-popup-container {
  transform: scale(0.9) translateY(20px);
  opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .popup-split-layout {
    flex-direction: column;
    min-height: auto;
  }

  .popup-content-side {
    padding: 35px 25px;
    order: 2;
  }

  .popup-image-side {
    order: 1;
    min-height: 250px;
    max-height: 250px;
  }

  .popup-main-title {
    font-size: 26px;
  }

  .popup-subtitle {
    font-size: 16px;
  }

  .popup-description {
    font-size: 14px;
  }

  .address-popup-container {
    width: 95%;
    margin: 20px;
  }
}

@media (max-width: 480px) {
  .popup-content-side {
    padding: 25px 20px;
  }

  .popup-main-title {
    font-size: 22px;
  }

  .popup-brand h3 {
    font-size: 16px;
  }

  .popup-address-info {
    padding: 15px;
  }

  .address-icon {
    width: 40px;
    height: 40px;
  }

  .address-icon i {
    font-size: 20px;
  }
}

/* Animations d'entrée */
.address-popup-overlay.active .popup-brand {
  animation: slide-in-left 0.5s ease-out 0.2s both;
}

.address-popup-overlay.active .popup-main-title {
  animation: slide-in-left 0.5s ease-out 0.3s both;
}

.address-popup-overlay.active .popup-subtitle {
  animation: slide-in-left 0.5s ease-out 0.4s both;
}

.address-popup-overlay.active .popup-description {
  animation: fade-in 0.5s ease-out 0.5s both;
}

.address-popup-overlay.active .popup-address-info {
  animation: slide-up 0.5s ease-out 0.6s both;
}

.address-popup-overlay.active .popup-cta-button {
  animation: slide-up 0.5s ease-out 0.7s both;
}

.address-popup-overlay.active .popup-image-side {
  animation: slide-in-right 0.6s ease-out 0.3s both;
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}