/* ============================================================
   linstantpopup — Popup Promotionnel L'Instant Dragees
   ============================================================ */

.lid-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
}

.lid-popup-overlay.lid-popup-visible {
  display: flex;
  animation: lidFadeIn 0.35s ease;
}

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

.lid-popup-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  padding: 40px 35px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: lidSlideUp 0.35s ease;
  box-sizing: border-box;
}

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

/* ── Fermeture ── */
.lid-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0;
  transition: color 0.2s;
}
.lid-popup-close:hover {
  color: #333;
}

/* ── Header ── */
.lid-popup-header {
  border-bottom: 2px solid #c9a96e;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.lid-popup-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.lid-popup-title {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  line-height: 1.3;
}

/* ── Corps ── */
.lid-popup-message {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* ── Code promo ── */
.lid-popup-code-block {
  background: #faf7f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.lid-popup-code-label {
  font-size: 13px;
  color: #888;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lid-popup-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lid-popup-code {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.12em;
  border: 2px dashed #c9a96e;
  border-radius: 6px;
  padding: 8px 18px;
  color: #c9a96e;
  background: #fff;
  font-family: monospace;
  user-select: all;
  cursor: pointer;
}

.lid-popup-copy {
  background: #c9a96e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.lid-popup-copy:hover {
  opacity: 0.85;
}

.lid-popup-copy-confirm {
  font-size: 13px;
  color: #27ae60;
  margin: 8px 0 0;
  display: none;
  font-weight: 600;
}
.lid-popup-copy-confirm.lid-visible {
  display: block;
}

/* ── Bouton principal ── */
.lid-popup-btn {
  display: inline-block;
  background: #c9a96e;
  color: #fff !important;
  text-decoration: none;
  border-radius: 30px;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.2s;
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.lid-popup-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff !important;
}

/* ── Lien refus ── */
.lid-popup-dismiss {
  display: block;
  background: none;
  border: none;
  color: #bbb;
  font-size: 13px;
  cursor: pointer;
  margin: 0 auto;
  padding: 4px;
  transition: color 0.2s;
}
.lid-popup-dismiss:hover {
  color: #888;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .lid-popup-box {
    padding: 30px 20px 24px;
  }
  .lid-popup-title {
    font-size: 18px;
  }
  .lid-popup-code {
    font-size: 20px;
  }
}
