/* Rease Popup v2.1 */

#rease-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#rease-popup-overlay.rease-popup-visible {
  opacity: 1;
}

#rease-popup-overlay.rease-popup-visible #rease-popup-box {
  transform: translateY(0) scale(1);
}

/* Boîte — dégradé vert pâle → blanc */
#rease-popup-box {
  background: linear-gradient(180deg, #e6f5f2 0%, #f5fbfa 18%, #ffffff 42%);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 32px 30px 26px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

#rease-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #aaa;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

#rease-popup-close:hover {
  color: #333;
  background: rgba(0,0,0,.06);
}

/* Titre + emoji sur la même ligne */
#rease-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

#rease-popup-emoji {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}

#rease-popup-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.25;
}

#rease-popup-desc {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 8px;
  font-weight: 500;
}

/* Points clés */
#rease-popup-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

#rease-popup-benefits li {
  font-size: 14px;
  color: #008074;
  font-weight: 500;
  padding: 3px 0;
  line-height: 1.5;
}

/* Checkbox RGPD — au-dessus des champs */
#rease-rgpd-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

#rease-rgpd-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  accent-color: #008074;
  cursor: pointer;
}

#rease-rgpd-label span {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

#rease-rgpd-label a {
  color: #008074;
  text-decoration: underline;
}

/* Champs prénom + email */
.rease-field-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.rease-field-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid #cde9e5;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
  color: #1a1a2e;
}

.rease-field-row input:focus {
  border-color: #008074;
}

.rease-field-row input::placeholder {
  color: #777;
}

/* Ligne garantie + bouton */
#rease-popup-footer-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Garantie — saut de ligne après "protégées" */
#rease-popup-guarantee {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Bouton vert compact à droite */
#rease-popup-submit {
  flex-shrink: 0;
  background: #008074;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

#rease-popup-submit:hover:not(:disabled) {
  background: #006b60;
  transform: translateY(-1px);
}

#rease-popup-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Erreur */
#rease-popup-error {
  font-size: 13px;
  color: #e74c3c;
  margin-top: 8px;
  text-align: center;
}

/* Succès */
#rease-popup-success {
  text-align: center;
  padding: 16px 0 8px;
}

/* Mobile */
@media (max-width: 500px) {
  #rease-popup-box {
    padding: 26px 18px 22px;
  }

  .rease-field-row {
    flex-direction: column;
  }

  #rease-popup-title {
    font-size: 19px;
  }

  #rease-popup-footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  #rease-popup-submit {
    width: 100%;
    text-align: center;
  }
}
