/* Popup Offer Collector Styles */

/* ===== Exit-Intent Popup (Abandoned Cart) ===== */
.poc-exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pocFadeIn 0.3s ease;
}

.poc-exit-popup-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 460px;
  width: 90%;
  padding: 0;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: pocSlideUp 0.4s ease;
  overflow: hidden;
}

.poc-exit-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 2;
}

.poc-exit-popup-close:hover {
  background: #f3f4f6;
  color: #4b5563;
}

.poc-exit-popup-content {
  padding: 40px 32px 32px;
  text-align: center;
}

.poc-exit-popup-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.poc-exit-popup-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px;
  line-height: 1.3;
}

.poc-exit-popup-text {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 24px;
  line-height: 1.6;
}

.poc-exit-popup-form {
  margin-bottom: 12px;
}

.poc-exit-popup-field {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.poc-exit-popup-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.poc-exit-popup-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.poc-exit-popup-btn {
  padding: 12px 20px;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.poc-exit-popup-btn:hover {
  background: #047857;
}

.poc-exit-popup-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.poc-exit-popup-message {
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.poc-exit-popup-skip {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 16px;
  text-decoration: underline;
  transition: color 0.2s;
}

.poc-exit-popup-skip:hover {
  color: #6b7280;
}

@keyframes pocFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pocSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== Coupon Display in Exit Popup ===== */
.poc-coupon-display {
  margin: 20px 0;
  text-align: center;
}

.poc-coupon-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.poc-coupon-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.poc-coupon-code-value {
  display: inline-block;
  background: #f0fdf4;
  border: 2px dashed #059669;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: bold;
  color: #059669;
  letter-spacing: 2px;
  min-width: 140px;
  text-align: center;
}

.poc-coupon-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #059669;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.poc-coupon-copy-btn:hover {
  background: #047857;
}

.poc-coupon-copy-btn:active {
  transform: scale(0.97);
}

.poc-coupon-expiry {
  font-size: 12px;
  color: #9ca3af;
  margin: 4px 0 0;
}

.poc-coupon-success {
  font-size: 14px;
  color: var(--poc-cart-code-text, #059669);
  font-weight: 600;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--poc-cart-code-bg-start, #f0fdf4);
  border-radius: 6px;
}

.poc-exit-popup-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.poc-exit-popup-btn {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.poc-exit-popup-btn:hover {
  background: #2563eb;
  color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
  .poc-exit-popup-content {
    padding: 32px 20px 24px;
  }
  .poc-exit-popup-title {
    font-size: 20px;
  }
  .poc-coupon-code-wrapper {
    flex-direction: column;
  }
  .poc-coupon-copy-btn {
    width: 100%;
    justify-content: center;
  }
  .poc-exit-popup-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== Premium urgent abandoned-cart popup overrides ===== */
.poc-exit-popup-overlay {
  background: var(--poc-cart-overlay, rgba(15, 23, 42, 0.78));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.poc-exit-popup-modal {
  max-width: 520px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--poc-cart-modal-start, #ffffff) 0%, var(--poc-cart-modal-end, #fff7ed) 100%);
  border: 1px solid var(--poc-cart-modal-border, rgba(251, 146, 60, 0.35));
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.poc-exit-popup-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 42%);
}

.poc-exit-popup-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 48px 12px 24px;
  background: linear-gradient(90deg, var(--poc-cart-topbar-start, #ef4444), var(--poc-cart-topbar-mid, #f97316), var(--poc-cart-topbar-end, #f59e0b));
  color: var(--poc-cart-topbar-text, #fff);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.poc-urgency-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--poc-cart-topbar-text, #fff);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.75);
  animation: pocPulseDot 1.2s infinite;
}

.poc-exit-popup-close {
  top: 9px;
  right: 12px;
  color: var(--poc-cart-close-text, #ffffff);
  background: var(--poc-cart-close-bg, rgba(255, 255, 255, 0.16));
}

.poc-exit-popup-close:hover {
  background: var(--poc-cart-close-bg, rgba(255, 255, 255, 0.28));
  color: var(--poc-cart-close-text, #ffffff);
}

.poc-exit-popup-content {
  padding: 34px 34px 30px;
}

.poc-exit-popup-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--poc-cart-icon-start, #fff7ed), var(--poc-cart-icon-end, #fed7aa));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 35px rgba(249, 115, 22, 0.25);
  transform: rotate(-3deg);
}

.poc-exit-popup-icon {
  font-size: 52px;
  margin: 0;
  filter: drop-shadow(0 8px 10px rgba(154, 52, 18, 0.18));
}

.poc-discount-badge {
  position: absolute;
  right: -13px;
  top: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--poc-cart-badge-start, #dc2626), var(--poc-cart-badge-end, #f97316));
  color: var(--poc-cart-badge-text, #fff);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.32);
  border: 3px solid var(--poc-cart-badge-border, #fff);
  transform: rotate(10deg);
}

.poc-exit-popup-title {
  font-size: 30px;
  color: var(--poc-cart-title, #111827);
  letter-spacing: 0;
  margin-bottom: 10px;
}

.poc-exit-popup-text {
  color: var(--poc-cart-body-text, #4b5563);
  font-size: 16px;
  max-width: 410px;
  margin-left: auto;
  margin-right: auto;
}

.poc-urgency-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--poc-cart-urgency-bg, #fff7ed);
  color: var(--poc-cart-urgency-text, #c2410c);
  border: 1px solid var(--poc-cart-urgency-border, #fed7aa);
  font-size: 13px;
}

.poc-coupon-display {
  margin: 18px 0 16px;
  padding: 18px;
  border-radius: 20px;
  background: var(--poc-cart-coupon-bg, #ffffff);
  border: 1px solid var(--poc-cart-coupon-border, rgba(251, 146, 60, 0.34));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.poc-coupon-label {
  color: var(--poc-cart-coupon-label, #9a3412);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 12px;
}

.poc-coupon-code-value {
  background: linear-gradient(180deg, var(--poc-cart-code-bg-start, #fffbeb), var(--poc-cart-code-bg-end, #fff7ed));
  border: 2px dashed var(--poc-cart-code-border, #f97316);
  color: var(--poc-cart-code-text, #9a3412);
  font-size: 26px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 4px rgba(249, 115, 22, 0.06);
}

.poc-coupon-copy-btn,
.poc-exit-popup-btn {
  background: linear-gradient(135deg, var(--poc-cart-button-start, #ef4444), var(--poc-cart-button-end, #f97316));
  color: var(--poc-cart-button-text, #ffffff);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

.poc-coupon-copy-btn:hover,
.poc-exit-popup-btn:hover {
  background: linear-gradient(135deg, var(--poc-cart-button-hover-start, #dc2626), var(--poc-cart-button-hover-end, #ea580c));
  color: var(--poc-cart-button-text, #ffffff);
  transform: translateY(-1px);
}

.poc-coupon-expiry {
  color: var(--poc-cart-expiry-text, #dc2626);
  font-weight: 700;
}

.poc-benefit-list {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--poc-cart-benefit-text, #374151);
  font-size: 14px;
  text-align: left;
}

.poc-benefit-list li {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--poc-cart-benefit-bg, rgba(255, 255, 255, 0.68));
  border: 1px solid var(--poc-cart-benefit-border, rgba(251, 146, 60, 0.18));
}

.poc-exit-popup-btn {
  width: 100%;
  max-width: 340px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.poc-exit-popup-skip {
  color: var(--poc-cart-skip-text, #9ca3af);
  text-decoration: none;
}

.poc-exit-popup-skip:hover {
  color: var(--poc-cart-skip-hover, #6b7280);
  text-decoration: underline;
}

@keyframes pocPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75); }
  70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (max-width: 480px) {
  .poc-exit-popup-modal {
    width: 94%;
    border-radius: 20px;
  }

  .poc-exit-popup-topbar {
    font-size: 11px;
    padding-left: 16px;
  }

  .poc-exit-popup-content {
    padding: 28px 18px 22px;
  }

  .poc-exit-popup-title {
    font-size: 24px;
  }

  .poc-exit-popup-text {
    font-size: 14px;
  }

  .poc-coupon-display {
    padding: 14px;
  }

  .poc-coupon-code-value {
    width: 100%;
    font-size: 24px;
  }
}

/* Modal Overlay */
.popup-offer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-offer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

/* Modal Content */
.popup-offer-content {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  margin: 20px;
  animation: popupFadeIn 0.3s ease-out;
}

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

/* Close Button */
.popup-offer-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.popup-offer-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* Header */
.popup-offer-header {
  padding: 25px 25px 15px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.popup-offer-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

/* Body */
.popup-offer-body {
  padding: 25px;
}

.popup-offer-body p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  text-align: center;
}

/* Form */
.popup-offer-form {
  max-width: none;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group .required {
  color: #e74c3c;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e1e1;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Submit Button */
.popup-offer-submit {
  width: 100%;
  padding: 14px 20px;
  background-color: #007cba;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  /*box-shadow: 0 2px 10px rgba(32, 201, 151, 0.3) !important;*/
  box-shadow: none !important;
  letter-spacing: 0.5px;
}

.popup-offer-submit:hover:not(:disabled) {
  background-color: #005a87;
}

.popup-offer-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Skip link — "Je ne veux pas de la réduction" */
.popup-offer-skip-group {
  text-align: center;
  margin-top: -5px;
  margin-bottom: 0;
}

.popup-offer-skip-link {
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-family: inherit;
  text-transform: inherit;
}

.popup-offer-skip-link:hover {
  color: #666;
}

/* Messages */
.popup-offer-message {
  margin-top: 15px;
  padding: 12px 15px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

.popup-offer-message.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.popup-offer-message.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.popup-offer-message p {
  margin: 0;
  font-size: 14px;
}

.popup-offer-message strong {
  font-size: 18px;
  font-weight: 700;
  color: #007cba;
}

/* Body class for preventing scroll */
body.popup-offer-active {
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 600px) {
  .popup-offer-content {
    width: 95%;
    margin: 10px;
    max-height: 95vh;
  }

  .popup-offer-header {
    padding: 20px 20px 10px;
    margin-bottom: 10px;
  }

  .popup-offer-header h2 {
    font-size: 20px;
  }

  .popup-offer-body {
    padding: 20px;
  }

  .popup-offer-body p {
    font-size: 15px;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .popup-offer-submit {
    padding: 12px 16px;
    font-size: 15px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .popup-offer-content {
    animation: none;
  }

  .popup-offer-modal {
    transition: none;
  }

  .popup-offer-close,
  .popup-offer-submit,
  .form-group input {
    transition: none;
  }
}

/* Focus styles for accessibility */
.popup-offer-close:focus,
.popup-offer-submit:focus,
.form-group input:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* Coupon Display Styles */
.coupon-display {
  text-align: center;
  margin: 20px 0;
}

.coupon-code-display {
  margin-bottom: 15px;
}

.coupon-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
}

.coupon-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.coupon-code-wrapper code {
  background: #f8f9fa;
  border: 2px dashed #007cba;
  padding: 10px 15px;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: bold;
  color: #007cba;
  letter-spacing: 1px;
  min-width: 120px;
  text-align: center;
}

.copy-coupon-btn {
  background: #007cba;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 80px;
  justify-content: center;
}

.copy-coupon-btn:hover {
  background: #005a87;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.copy-coupon-btn:active {
  transform: translateY(0);
}

.copy-icon {
  font-size: 16px;
}

.copy-text {
  font-size: 14px;
}

.copy-success {
  color: #28a745;
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Existing User Popup Styles */
.popup-offer-existing-user {
  text-align: center;
}

.existing-user-actions {
  margin-top: 20px;
}

.popup-offer-close-btn {
  background: #6c757d;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.popup-offer-close-btn:hover {
  background: #5a6268;
}

/* Success Coupon Display */
.coupon-success-display {
  text-align: center;
}

.coupon-success-display p {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #155724;
}

/* Responsive coupon styles */
@media (max-width: 600px) {
  .coupon-code-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .coupon-code-wrapper code {
    font-size: 16px;
    padding: 8px 12px;
  }

  .copy-coupon-btn {
    width: 100%;
    padding: 12px;
  }
}

/* Enhanced animations */
.popup-offer-modal {
  animation: popupFadeIn 0.3s ease-out;
}

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

/* Loading state for copy button */
.copy-coupon-btn.copying {
  opacity: 0.7;
  cursor: not-allowed;
}

.copy-coupon-btn.copied {
  background: #28a745;
}

.copy-coupon-btn.copied .copy-text {
  content: "Copied!";
}

.copy-coupon-btn.copied .copy-icon:before {
  content: "✓";
}

/* Better focus styles for coupon elements */
.copy-coupon-btn:focus,
.popup-offer-close-btn:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}
/* TEXTE OFFRE SPÉCIALE EN VALEUR */
.popup-offer-special-text {
  color: white !important;
  border-radius: 12px !important;
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 900 !important;

  letter-spacing: 2px !important;
  margin-bottom: 25px !important;
  border: 3px solid rgba(255, 255, 255, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
}

.popup-offer-special-text::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .popup-offer-body {
    border-radius: 0 0 15px 15px;
    padding-top: 0 !important;
  }
  .popup-offer-special-text {
    font-size: 20px !important;
    padding: 12px 20px !important;
    margin-bottom: 20px !important;
  }
}
/* TEXTE OFFRE SPÉCIALE - VERSION ENCORE PLUS MISE EN VALEUR */
.popup-offer-special-text {
  color: white !important;
  border-radius: 15px !important;
  text-align: center !important;
  font-size: 28px !important; /* Plus grand */
  font-weight: 900 !important; /* Ultra gras */

  letter-spacing: 3px !important; /* Plus d'espacement */
  margin-bottom: 35px !important; /* Plus d'espace avec le paragraphe */
  border: 4px solid rgba(255, 255, 255, 0.4) !important; /* Bordure blanche */
  position: relative !important;
  overflow: hidden !important;
  line-height: 1.2 !important; /* Interligne serré pour impact */
}

/* Animation d'entrée */
.popup-offer-special-text {
  animation: textGlow 0.8s ease-out;
}

@keyframes textGlow {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  50% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Effet brillant amélioré */
.popup-offer-special-text::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 20%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 80%
  );
  animation: shine 4s ease-in-out infinite;
  animation-delay: 1s; /* Délai pour ne pas être trop distrayant */
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Version mobile encore plus impactante */
@media (max-width: 768px) {
  .popup-offer-special-text {
    font-size: 24px !important; /* Légèrement plus petit mais toujours grand */
    padding: 18px 25px !important;
    margin-bottom: 30px !important;
    letter-spacing: 2px !important;
    border-radius: 12px !important;
  }

  .popup-offer-body {
    padding-top: 0 !important;
  }
}

/* Version tablette */
@media (max-width: 1024px) and (min-width: 769px) {
  .popup-offer-special-text {
    font-size: 26px !important;
    padding: 18px 28px !important;
  }
}

/* Print styles */
@media print {
  .popup-offer-modal,
  .copy-coupon-btn {
    display: none !important;
  }
}

/* Newsletter shortcode container */
.popup-offer-newsletter-shortcode {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.popup-offer-newsletter-shortcode .popup-offer-body {
  background: transparent !important;
  padding: 0 !important;
}

.popup-offer-newsletter-shortcode .popup-offer-form {
  background: transparent !important;
  margin: 0;
}

.popup-offer-newsletter-shortcode .form-group {
  margin-bottom: 8px;
}

.popup-offer-newsletter-shortcode .form-group label {
  margin-bottom: 4px;
  font-size: 12px;
  color: #ffffff;
}

.popup-offer-newsletter-shortcode .form-group input {
  padding: 8px 10px;
  font-size: 14px;
}

.popup-offer-newsletter-shortcode .popup-offer-submit {
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0;
}

.popup-offer-newsletter-shortcode .popup-offer-newsletter-inline-group {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.popup-offer-newsletter-inline-group:hover {
  border-bottom: 1px solid rgba(255, 255, 255, 1);
}

.popup-offer-newsletter-shortcode .popup-offer-newsletter-email {
  flex: 1;
  background: transparent !important;
  color: #ffffff !important;
  /*border: 1px solid rgba(255, 255, 255, 0.7);*/
  border: none;
  margin-top: 8px;
}

.popup-offer-newsletter-shortcode .popup-offer-newsletter-email::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.popup-offer-newsletter-shortcode .popup-offer-newsletter-email:focus {
  background: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.popup-offer-newsletter-shortcode .popup-offer-newsletter-submit {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px;
}

.popup-offer-newsletter-shortcode
  .popup-offer-newsletter-submit:hover:not(:disabled),
.popup-offer-newsletter-shortcode .popup-offer-newsletter-submit:focus {
  background: transparent !important;
  color: #ffffff !important;
}

/* Contact shortcode container */
.popup-offer-contact-shortcode {
  padding: 0px;
  width: 100%;
  margin: 0 auto;
}

.popup-offer-contact-shortcode .popup-offer-contact-body {
  padding-top: 0 !important;
}

.popup-offer-contact-shortcode .popup-offer-form {
  margin: 0;
}

.popup-offer-contact-shortcode .popup-offer-contact-row {
  display: flex;
  gap: 10px;
}

.popup-offer-contact-shortcode .popup-offer-contact-row .form-group {
  flex: 1;
}

.popup-offer-contact-shortcode .form-group {
  margin-bottom: 10px;
}

.popup-offer-contact-shortcode .form-group textarea {
  width: 100%;
  min-height: 60px;
  height: 120px;
  padding: 12px 15px;
  border: 2px solid #e1e1e1;
  border-radius: 4px;
  font-size: 16px;
  resize: vertical;
  box-sizing: border-box;
}

.popup-offer-contact-shortcode .form-group textarea:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.popup-offer-discrimination-report-title {
  margin: 0 0 8px;
}

.popup-offer-discrimination-report-intro {
  margin: 0 0 20px;
}

.popup-offer-contact-shortcode .form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e1e1;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  box-sizing: border-box;
}

.popup-offer-contact-shortcode .form-group select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.popup-offer-contact-shortcode .popup-offer-turnstile-wrap .cf-turnstile {
  min-height: 65px;
}

/* Discrimination report shortcode */
.popup-offer-discrimination-report {
  width: min(100%, 1540px);
  margin: 36px auto;
  font-family: inherit;
  color: #171923;
}

.popup-offer-discrimination-report-header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin: 0 4px 24px;
}

.popup-offer-discrimination-report-icon {
  display: grid;
  place-items: center;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #12a7ae;
  background: #edfafa;
}

.popup-offer-discrimination-report-icon svg {
  width: 49px;
  height: 49px;
}

.popup-offer-discrimination-report-title {
  margin: 0 0 6px;
  color: #151722;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.popup-offer-discrimination-report-intro {
  max-width: 950px;
  margin: 0;
  color: #5f6470;
  font-size: 16px;
  line-height: 1.65;
}

.popup-offer-discrimination-report-card {
  padding: 28px;
  border: 1px solid #edf0f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 22px rgba(26, 38, 51, .08);
}

.popup-offer-discrimination-report-form .form-group {
  margin-bottom: 22px;
}

.popup-offer-discrimination-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.popup-offer-report-anonymous {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: -4px 0 20px;
  color: #59606d !important;
  font-weight: 500 !important;
}

.popup-offer-report-anonymous input {
  width: 17px;
  height: 17px;
  accent-color: #2CA8A8;
}

.popup-offer-report-confirmation {
  margin-top: 8px;
  padding: 26px;
  border: 1px solid #bde4e4;
  border-radius: 7px;
  background: #f1fbfb;
  color: #244247;
  text-align: center;
}

.popup-offer-report-confirmation h3 {
  margin: 0 0 8px;
  color: #168b92;
}

.popup-offer-discrimination-report .form-group label {
  display: block;
  margin: 0 0 9px;
  color: #2e3240;
  font-size: 15px;
  font-weight: 600;
}

.popup-offer-discrimination-input-wrap {
  position: relative;
  display: block;
}

.popup-offer-discrimination-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  stroke: #747a87;
  stroke-width: 1.6;
  fill: none;
  pointer-events: none;
}

.popup-offer-discrimination-report input[type="text"],
.popup-offer-discrimination-report input[type="email"],
.popup-offer-discrimination-report select,
.popup-offer-discrimination-report textarea {
  width: 100%;
  border: 1px solid #d7dbe1;
  border-radius: 6px;
  background: #fff;
  color: #292d38;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.popup-offer-discrimination-report input[type="text"],
.popup-offer-discrimination-report input[type="email"] {
  height: 45px;
  padding: 10px 14px 10px 48px;
}

.popup-offer-discrimination-report select {
  height: 46px;
  padding: 10px 42px 10px 15px;
}

.popup-offer-discrimination-report textarea {
  min-height: 128px;
  height: 128px;
  padding: 13px 15px;
  resize: vertical;
  border-radius: 6px !important;
}

.popup-offer-discrimination-report input::placeholder,
.popup-offer-discrimination-report textarea::placeholder {
  color: #9298a4;
}

.popup-offer-discrimination-report input:focus,
.popup-offer-discrimination-report select:focus,
.popup-offer-discrimination-report textarea:focus {
  border-color: #13a8af;
  box-shadow: 0 0 0 3px rgba(19, 168, 175, .12);
  outline: none;
}

.popup-offer-discrimination-upload {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  margin: 0 !important;
  padding: 12px 24px;
  border: 1px dashed #10a8b0;
  border-radius: 6px;
  background: #f8ffff;
  color: #313642;
  cursor: pointer;
  text-align: center;
  transition: background .2s ease, border-color .2s ease;
}

.popup-offer-discrimination-upload:hover,
.popup-offer-discrimination-upload.is-dragging {
  border-color: #078e96;
  background: #ecfbfb;
}

.popup-offer-discrimination-upload > svg {
  width: 43px;
  height: 43px;
  margin-right: 18px;
  fill: none;
  stroke: #0fa7ae;
  stroke-width: 1.8;
}

.popup-offer-discrimination-upload-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.popup-offer-discrimination-upload-copy strong {
  font-size: 15px;
  font-weight: 600;
}

.popup-offer-discrimination-upload-copy small,
.popup-offer-discrimination-upload-name {
  color: #7c8491;
  font-size: 13px;
}

.popup-offer-discrimination-upload-name:not(:empty) {
  display: block;
  margin-left: 14px;
  color: #078e96;
  font-weight: 600;
}

.popup-offer-discrimination-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.popup-offer-discrimination-report .popup-offer-turnstile-wrap {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 7px 14px;
  border: 1px solid #b9e0e3;
  border-radius: 5px;
  background: #f3fcfc;
}

.popup-offer-discrimination-report .popup-offer-turnstile-wrap .cf-turnstile {
  min-height: 0;
}

.popup-offer-discrimination-confidentiality {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 17px;
  color: #747b88;
  font-size: 13px;
}

.popup-offer-discrimination-confidentiality svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #4d5461;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.popup-offer-discrimination-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 5px;
  background: #13a8af;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.popup-offer-discrimination-submit:hover:not(:disabled) {
  background: #078f97;
}

.popup-offer-discrimination-submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

@media (max-width: 640px) {
  .popup-offer-contact-shortcode .popup-offer-contact-row {
    flex-direction: column;
    gap: 0;
  }

  .popup-offer-discrimination-report {
    margin: 24px auto;
  }

  .popup-offer-discrimination-report-header {
    gap: 14px;
  }

  .popup-offer-discrimination-report-icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .popup-offer-discrimination-report-icon svg {
    width: 34px;
    height: 34px;
  }

  .popup-offer-discrimination-report-card {
    padding: 18px;
  }

  .popup-offer-discrimination-report-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .popup-offer-discrimination-upload {
    padding: 14px;
  }

  .popup-offer-discrimination-upload > svg {
    width: 35px;
    height: 35px;
    margin-right: 10px;
  }
}


/* ========================================
   Newsletter Banner (Singulart-style)
   ======================================== */
.popup-offer-newsletter-banner {
  display: block;
  width: 100%;
  max-width: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  font-family: inherit;
}

.popup-offer-banner-inner {
  display: flex;
  flex-direction: row;
  min-height: 700px;
}

/* Left side — content */
.popup-offer-banner-left {
  flex: 1;
  background: var(--banner-bg-left, #f6f3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
}

.popup-offer-banner-left-content {
  width: 100%;
  max-width: 480px;
}

.popup-offer-banner-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--banner-title-color, #0b08c8);
  margin: 0 0 12px 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.popup-offer-banner-subtitle {
  font-size: 18px;
  color: var(--banner-subtitle-color, #8c8c8c);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.popup-offer-banner-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.popup-offer-banner-field {
  width: 100%;
}

.popup-offer-banner-input {
  width: 100%;
  padding: 14px 22px;
  border: 2px solid var(--banner-input-border-color, #e1e1e1);
  border-radius: 6px !important;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.popup-offer-banner-input:focus {
  border-color: var(--banner-btn-border-color, #48CAB2);
  box-shadow: 0 0 0 3px rgba(72, 202, 178, 0.15);
}

.popup-offer-banner-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}

.popup-offer-banner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  width: 100%;
  background: #48CAB2;
  border: 2px solid #48CAB2;
  border-radius: 24px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.popup-offer-banner-btn:hover {
  background: #3BA898;
  border-color: #3BA898;
  color: #fff;
}

.popup-offer-banner-btn svg {
  flex-shrink: 0;
}

/* Loading state */
.popup-offer-banner-btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: 0.85;
}

.popup-offer-banner-btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: poc-spin 0.6s linear infinite;
}

@keyframes poc-spin {
  to { transform: rotate(360deg); }
}

.popup-offer-banner-btn.is-loading svg {
  opacity: 0;
}

/* Right side — images */
.popup-offer-banner-right {
  flex: 1;
  background: var(--banner-bg-right, #0b08c8);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  background-image: url(https://urbanart.sharebnb.ma/wp-content/uploads/2026/05/generation-9d699389-e7bc-4b08-998e-2e8bc0b2af11.png);
  object-fit: cover;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

}

.popup-offer-banner-img {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
}

.popup-offer-banner-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-offer-banner-img--1 {
  width: 60%;
  height: 65%;
  bottom: 6%;
  left: 6%;
  z-index: 2;
}

.popup-offer-banner-img--2 {
  width: 52%;
  height: 52%;
  top: 6%;
  right: 1%;
  z-index: 3;
}

/* Banner message */
.popup-offer-banner-message {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

.popup-offer-banner-message.success {
  background: #dcfae6;
  color: #085d3a;
  border: 1px solid #a9efc5;
}

.popup-offer-banner-message.error {
  background: #ffe7e7;
  color: #9f0a0b;
  border: 1px solid #ffbfbf;
}

/* Responsive */
@media (max-width: 768px) {
  .popup-offer-banner-inner {
    flex-direction: column;
  }

  .popup-offer-banner-right {
    flex: none;
    width: 100%;
    min-height: 320px;
  }

  .popup-offer-banner-left {
    padding: 2rem;
  }

  .popup-offer-banner-title {
    font-size: 24px;
  }

  .popup-offer-banner-subtitle {
    font-size: 15px;
  }

  .popup-offer-banner-btn {
    justify-content: center;
  }
}
